1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for lcms2mt 2.10. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='lcms2mt' 589PACKAGE_TARNAME='lcms2mt' 590PACKAGE_VERSION='2.10' 591PACKAGE_STRING='lcms2mt 2.10' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634LIBOBJS 635TIFFICC_DEPLIBS 636JPEGICC_DEPLIBS 637LCMS_LIB_DEPLIBS 638LIB_TIFF 639HasTIFF_FALSE 640HasTIFF_TRUE 641LIB_ZLIB 642HasZLIB_FALSE 643HasZLIB_TRUE 644LIB_JPEG 645HasJPEG_FALSE 646HasJPEG_TRUE 647LIB_THREAD 648LIB_MATH 649PTHREAD_CFLAGS 650PTHREAD_LIBS 651PTHREAD_CXX 652PTHREAD_CC 653acx_pthread_config 654inline 655MAINT 656MAINTAINER_MODE_FALSE 657MAINTAINER_MODE_TRUE 658LIBTOOL_DEPS 659CXXCPP 660OTOOL64 661OTOOL 662LIPO 663NMEDIT 664DSYMUTIL 665MANIFEST_TOOL 666RANLIB 667ac_ct_AR 668AR 669LN_S 670NM 671ac_ct_DUMPBIN 672DUMPBIN 673LD 674FGREP 675EGREP 676GREP 677SED 678LIBTOOL 679OBJDUMP 680DLLTOOL 681AS 682am__fastdepCXX_FALSE 683am__fastdepCXX_TRUE 684CXXDEPMODE 685ac_ct_CXX 686CXXFLAGS 687CXX 688CPP 689am__fastdepCC_FALSE 690am__fastdepCC_TRUE 691CCDEPMODE 692am__nodep 693AMDEPBACKSLASH 694AMDEP_FALSE 695AMDEP_TRUE 696am__include 697DEPDIR 698OBJEXT 699EXEEXT 700ac_ct_CC 701CPPFLAGS 702LDFLAGS 703CFLAGS 704CC 705AM_BACKSLASH 706AM_DEFAULT_VERBOSITY 707AM_DEFAULT_V 708AM_V 709am__untar 710am__tar 711AMTAR 712am__leading_dot 713SET_MAKE 714AWK 715mkdir_p 716MKDIR_P 717INSTALL_STRIP_PROGRAM 718STRIP 719install_sh 720MAKEINFO 721AUTOHEADER 722AUTOMAKE 723AUTOCONF 724ACLOCAL 725VERSION 726PACKAGE 727CYGPATH_W 728am__isrc 729INSTALL_DATA 730INSTALL_SCRIPT 731INSTALL_PROGRAM 732host_os 733host_vendor 734host_cpu 735host 736build_os 737build_vendor 738build_cpu 739build 740LIBRARY_AGE 741LIBRARY_REVISION 742LIBRARY_CURRENT 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762runstatedir 763localstatedir 764sharedstatedir 765sysconfdir 766datadir 767datarootdir 768libexecdir 769sbindir 770bindir 771program_transform_name 772prefix 773exec_prefix 774PACKAGE_URL 775PACKAGE_BUGREPORT 776PACKAGE_STRING 777PACKAGE_VERSION 778PACKAGE_TARNAME 779PACKAGE_NAME 780PATH_SEPARATOR 781SHELL 782am__quote' 783ac_subst_files='' 784ac_user_opts=' 785enable_option_checking 786enable_silent_rules 787enable_dependency_tracking 788enable_shared 789enable_static 790with_pic 791enable_fast_install 792with_gnu_ld 793with_sysroot 794enable_libtool_lock 795enable_maintainer_mode 796with_jpeg 797with_tiff 798with_zlib 799with_threads 800' 801 ac_precious_vars='build_alias 802host_alias 803target_alias 804CC 805CFLAGS 806LDFLAGS 807LIBS 808CPPFLAGS 809CPP 810CXX 811CXXFLAGS 812CCC 813CXXCPP' 814 815 816# Initialize some variables set by options. 817ac_init_help= 818ac_init_version=false 819ac_unrecognized_opts= 820ac_unrecognized_sep= 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852runstatedir='${localstatedir}/run' 853includedir='${prefix}/include' 854oldincludedir='/usr/include' 855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 856infodir='${datarootdir}/info' 857htmldir='${docdir}' 858dvidir='${docdir}' 859pdfdir='${docdir}' 860psdir='${docdir}' 861libdir='${exec_prefix}/lib' 862localedir='${datarootdir}/locale' 863mandir='${datarootdir}/man' 864 865ac_prev= 866ac_dashdash= 867for ac_option 868do 869 # If the previous option needs an argument, assign it. 870 if test -n "$ac_prev"; then 871 eval $ac_prev=\$ac_option 872 ac_prev= 873 continue 874 fi 875 876 case $ac_option in 877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 878 *=) ac_optarg= ;; 879 *) ac_optarg=yes ;; 880 esac 881 882 # Accept the important Cygnus configure options, so we can diagnose typos. 883 884 case $ac_dashdash$ac_option in 885 --) 886 ac_dashdash=yes ;; 887 888 -bindir | --bindir | --bindi | --bind | --bin | --bi) 889 ac_prev=bindir ;; 890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891 bindir=$ac_optarg ;; 892 893 -build | --build | --buil | --bui | --bu) 894 ac_prev=build_alias ;; 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896 build_alias=$ac_optarg ;; 897 898 -cache-file | --cache-file | --cache-fil | --cache-fi \ 899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900 ac_prev=cache_file ;; 901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903 cache_file=$ac_optarg ;; 904 905 --config-cache | -C) 906 cache_file=config.cache ;; 907 908 -datadir | --datadir | --datadi | --datad) 909 ac_prev=datadir ;; 910 -datadir=* | --datadir=* | --datadi=* | --datad=*) 911 datadir=$ac_optarg ;; 912 913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914 | --dataroo | --dataro | --datar) 915 ac_prev=datarootdir ;; 916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918 datarootdir=$ac_optarg ;; 919 920 -disable-* | --disable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=no ;; 935 936 -docdir | --docdir | --docdi | --doc | --do) 937 ac_prev=docdir ;; 938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939 docdir=$ac_optarg ;; 940 941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942 ac_prev=dvidir ;; 943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944 dvidir=$ac_optarg ;; 945 946 -enable-* | --enable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1106 | --runstate | --runstat | --runsta | --runst | --runs \ 1107 | --run | --ru | --r) 1108 ac_prev=runstatedir ;; 1109 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1110 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1111 | --run=* | --ru=* | --r=*) 1112 runstatedir=$ac_optarg ;; 1113 1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1115 ac_prev=sbindir ;; 1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1117 | --sbi=* | --sb=*) 1118 sbindir=$ac_optarg ;; 1119 1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1122 | --sharedst | --shareds | --shared | --share | --shar \ 1123 | --sha | --sh) 1124 ac_prev=sharedstatedir ;; 1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1128 | --sha=* | --sh=*) 1129 sharedstatedir=$ac_optarg ;; 1130 1131 -site | --site | --sit) 1132 ac_prev=site ;; 1133 -site=* | --site=* | --sit=*) 1134 site=$ac_optarg ;; 1135 1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1137 ac_prev=srcdir ;; 1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1139 srcdir=$ac_optarg ;; 1140 1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1142 | --syscon | --sysco | --sysc | --sys | --sy) 1143 ac_prev=sysconfdir ;; 1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1146 sysconfdir=$ac_optarg ;; 1147 1148 -target | --target | --targe | --targ | --tar | --ta | --t) 1149 ac_prev=target_alias ;; 1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1151 target_alias=$ac_optarg ;; 1152 1153 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1154 verbose=yes ;; 1155 1156 -version | --version | --versio | --versi | --vers | -V) 1157 ac_init_version=: ;; 1158 1159 -with-* | --with-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=\$ac_optarg ;; 1174 1175 -without-* | --without-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error $? "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184"with_$ac_useropt" 1185"*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=no ;; 1190 1191 --x) 1192 # Obsolete; use --with-x. 1193 with_x=yes ;; 1194 1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1196 | --x-incl | --x-inc | --x-in | --x-i) 1197 ac_prev=x_includes ;; 1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1200 x_includes=$ac_optarg ;; 1201 1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1204 ac_prev=x_libraries ;; 1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1207 x_libraries=$ac_optarg ;; 1208 1209 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1210Try \`$0 --help' for more information" 1211 ;; 1212 1213 *=*) 1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1215 # Reject names that are not valid shell variable names. 1216 case $ac_envvar in #( 1217 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1219 esac 1220 eval $ac_envvar=\$ac_optarg 1221 export $ac_envvar ;; 1222 1223 *) 1224 # FIXME: should be removed in autoconf 3.0. 1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1229 ;; 1230 1231 esac 1232done 1233 1234if test -n "$ac_prev"; then 1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1236 as_fn_error $? "missing argument to $ac_option" 1237fi 1238 1239if test -n "$ac_unrecognized_opts"; then 1240 case $enable_option_checking in 1241 no) ;; 1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1244 esac 1245fi 1246 1247# Check all directory arguments for consistency. 1248for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1249 datadir sysconfdir sharedstatedir localstatedir includedir \ 1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1251 libdir localedir mandir runstatedir 1252do 1253 eval ac_val=\$$ac_var 1254 # Remove trailing slashes. 1255 case $ac_val in 1256 */ ) 1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1258 eval $ac_var=\$ac_val;; 1259 esac 1260 # Be sure to have absolute directory names. 1261 case $ac_val in 1262 [\\/$]* | ?:[\\/]* ) continue;; 1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1264 esac 1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1266done 1267 1268# There might be people who depend on the old broken behavior: `$host' 1269# used to hold the argument of --host etc. 1270# FIXME: To remove some day. 1271build=$build_alias 1272host=$host_alias 1273target=$target_alias 1274 1275# FIXME: To remove some day. 1276if test "x$host_alias" != x; then 1277 if test "x$build_alias" = x; then 1278 cross_compiling=maybe 1279 elif test "x$build_alias" != "x$host_alias"; then 1280 cross_compiling=yes 1281 fi 1282fi 1283 1284ac_tool_prefix= 1285test -n "$host_alias" && ac_tool_prefix=$host_alias- 1286 1287test "$silent" = yes && exec 6>/dev/null 1288 1289 1290ac_pwd=`pwd` && test -n "$ac_pwd" && 1291ac_ls_di=`ls -di .` && 1292ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1293 as_fn_error $? "working directory cannot be determined" 1294test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1295 as_fn_error $? "pwd does not report name of working directory" 1296 1297 1298# Find the source files, if location was not specified. 1299if test -z "$srcdir"; then 1300 ac_srcdir_defaulted=yes 1301 # Try the directory containing this script, then the parent directory. 1302 ac_confdir=`$as_dirname -- "$as_myself" || 1303$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1304 X"$as_myself" : 'X\(//\)[^/]' \| \ 1305 X"$as_myself" : 'X\(//\)$' \| \ 1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1307$as_echo X"$as_myself" | 1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)[^/].*/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\/\)$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\).*/{ 1321 s//\1/ 1322 q 1323 } 1324 s/.*/./; q'` 1325 srcdir=$ac_confdir 1326 if test ! -r "$srcdir/$ac_unique_file"; then 1327 srcdir=.. 1328 fi 1329else 1330 ac_srcdir_defaulted=no 1331fi 1332if test ! -r "$srcdir/$ac_unique_file"; then 1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1335fi 1336ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1337ac_abs_confdir=`( 1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1339 pwd)` 1340# When building in place, set srcdir=. 1341if test "$ac_abs_confdir" = "$ac_pwd"; then 1342 srcdir=. 1343fi 1344# Remove unnecessary trailing slashes from srcdir. 1345# Double slashes in file names in object file debugging info 1346# mess up M-x gdb in Emacs. 1347case $srcdir in 1348*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1349esac 1350for ac_var in $ac_precious_vars; do 1351 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1352 eval ac_env_${ac_var}_value=\$${ac_var} 1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1354 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1355done 1356 1357# 1358# Report the --help message. 1359# 1360if test "$ac_init_help" = "long"; then 1361 # Omit some internal or obsolete options to make the list less imposing. 1362 # This message is too long to be a string in the A/UX 3.1 sh. 1363 cat <<_ACEOF 1364\`configure' configures lcms2mt 2.10 to adapt to many kinds of systems. 1365 1366Usage: $0 [OPTION]... [VAR=VALUE]... 1367 1368To assign environment variables (e.g., CC, CFLAGS...), specify them as 1369VAR=VALUE. See below for descriptions of some of the useful variables. 1370 1371Defaults for the options are specified in brackets. 1372 1373Configuration: 1374 -h, --help display this help and exit 1375 --help=short display options specific to this package 1376 --help=recursive display the short help of all the included packages 1377 -V, --version display version information and exit 1378 -q, --quiet, --silent do not print \`checking ...' messages 1379 --cache-file=FILE cache test results in FILE [disabled] 1380 -C, --config-cache alias for \`--cache-file=config.cache' 1381 -n, --no-create do not create output files 1382 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1383 1384Installation directories: 1385 --prefix=PREFIX install architecture-independent files in PREFIX 1386 [$ac_default_prefix] 1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1388 [PREFIX] 1389 1390By default, \`make install' will install all the files in 1391\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1392an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1393for instance \`--prefix=\$HOME'. 1394 1395For better control, use the options below. 1396 1397Fine tuning of the installation directories: 1398 --bindir=DIR user executables [EPREFIX/bin] 1399 --sbindir=DIR system admin executables [EPREFIX/sbin] 1400 --libexecdir=DIR program executables [EPREFIX/libexec] 1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1404 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2mt] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418_ACEOF 1419 1420 cat <<\_ACEOF 1421 1422Program names: 1423 --program-prefix=PREFIX prepend PREFIX to installed program names 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1430_ACEOF 1431fi 1432 1433if test -n "$ac_init_help"; then 1434 case $ac_init_help in 1435 short | recursive ) echo "Configuration of lcms2mt 2.10:";; 1436 esac 1437 cat <<\_ACEOF 1438 1439Optional Features: 1440 --disable-option-checking ignore unrecognized --enable/--with options 1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1443 --enable-silent-rules less verbose build output (undo: "make V=1") 1444 --disable-silent-rules verbose build output (undo: "make V=0") 1445 --enable-dependency-tracking 1446 do not reject slow dependency extractors 1447 --disable-dependency-tracking 1448 speeds up one-time build 1449 --enable-shared[=PKGS] build shared libraries [default=yes] 1450 --enable-static[=PKGS] build static libraries [default=yes] 1451 --enable-fast-install[=PKGS] 1452 optimize for fast installation [default=yes] 1453 --disable-libtool-lock avoid locking (might break parallel builds) 1454 --enable-maintainer-mode 1455 enable make rules and dependencies not useful (and 1456 sometimes confusing) to the casual installer 1457 1458Optional Packages: 1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1462 both] 1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1464 --with-sysroot=DIR Search for dependent libraries within DIR 1465 (or the compiler's sysroot if not specified). 1466 --with-jpeg=DIR use jpeg installed in DIR 1467 --with-tiff=DIR use tiff installed in DIR 1468 --without-zlib disable ZLIB support 1469 --without-threads disable POSIX threads API support 1470 1471Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 CPP C preprocessor 1480 CXX C++ compiler command 1481 CXXFLAGS C++ compiler flags 1482 CXXCPP C++ preprocessor 1483 1484Use these variables to override the choices made by `configure' or to help 1485it to find libraries and programs with nonstandard names/locations. 1486 1487Report bugs to the package provider. 1488_ACEOF 1489ac_status=$? 1490fi 1491 1492if test "$ac_init_help" = "recursive"; then 1493 # If there are subdirs, report their specific --help. 1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1495 test -d "$ac_dir" || 1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1497 continue 1498 ac_builddir=. 1499 1500case "$ac_dir" in 1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502*) 1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1504 # A ".." for each directory in $ac_dir_suffix. 1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1506 case $ac_top_builddir_sub in 1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1509 esac ;; 1510esac 1511ac_abs_top_builddir=$ac_pwd 1512ac_abs_builddir=$ac_pwd$ac_dir_suffix 1513# for backward compatibility: 1514ac_top_builddir=$ac_top_build_prefix 1515 1516case $srcdir in 1517 .) # We are building in place. 1518 ac_srcdir=. 1519 ac_top_srcdir=$ac_top_builddir_sub 1520 ac_abs_top_srcdir=$ac_pwd ;; 1521 [\\/]* | ?:[\\/]* ) # Absolute name. 1522 ac_srcdir=$srcdir$ac_dir_suffix; 1523 ac_top_srcdir=$srcdir 1524 ac_abs_top_srcdir=$srcdir ;; 1525 *) # Relative name. 1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1527 ac_top_srcdir=$ac_top_build_prefix$srcdir 1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1529esac 1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1531 1532 cd "$ac_dir" || { ac_status=$?; continue; } 1533 # Check for guested configure. 1534 if test -f "$ac_srcdir/configure.gnu"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1537 elif test -f "$ac_srcdir/configure"; then 1538 echo && 1539 $SHELL "$ac_srcdir/configure" --help=recursive 1540 else 1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1542 fi || ac_status=$? 1543 cd "$ac_pwd" || { ac_status=$?; break; } 1544 done 1545fi 1546 1547test -n "$ac_init_help" && exit $ac_status 1548if $ac_init_version; then 1549 cat <<\_ACEOF 1550lcms2mt configure 2.10 1551generated by GNU Autoconf 2.69 1552 1553Copyright (C) 2012 Free Software Foundation, Inc. 1554This configure script is free software; the Free Software Foundation 1555gives unlimited permission to copy, distribute and modify it. 1556_ACEOF 1557 exit 1558fi 1559 1560## ------------------------ ## 1561## Autoconf initialization. ## 1562## ------------------------ ## 1563 1564# ac_fn_c_try_compile LINENO 1565# -------------------------- 1566# Try to compile conftest.$ac_ext, and return whether this succeeded. 1567ac_fn_c_try_compile () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 rm -f conftest.$ac_objext 1571 if { { ac_try="$ac_compile" 1572case "(($ac_try" in 1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1574 *) ac_try_echo=$ac_try;; 1575esac 1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1577$as_echo "$ac_try_echo"; } >&5 1578 (eval "$ac_compile") 2>conftest.err 1579 ac_status=$? 1580 if test -s conftest.err; then 1581 grep -v '^ *+' conftest.err >conftest.er1 1582 cat conftest.er1 >&5 1583 mv -f conftest.er1 conftest.err 1584 fi 1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1586 test $ac_status = 0; } && { 1587 test -z "$ac_c_werror_flag" || 1588 test ! -s conftest.err 1589 } && test -s conftest.$ac_objext; then : 1590 ac_retval=0 1591else 1592 $as_echo "$as_me: failed program was:" >&5 1593sed 's/^/| /' conftest.$ac_ext >&5 1594 1595 ac_retval=1 1596fi 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 as_fn_set_status $ac_retval 1599 1600} # ac_fn_c_try_compile 1601 1602# ac_fn_c_try_cpp LINENO 1603# ---------------------- 1604# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1605ac_fn_c_try_cpp () 1606{ 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1608 if { { ac_try="$ac_cpp conftest.$ac_ext" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } > conftest.i && { 1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 }; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_cpp 1638 1639# ac_fn_cxx_try_compile LINENO 1640# ---------------------------- 1641# Try to compile conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_cxx_try_compile () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext 1646 if { { ac_try="$ac_compile" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_compile") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_cxx_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest.$ac_objext; then : 1665 ac_retval=0 1666else 1667 $as_echo "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_cxx_try_compile 1676 1677# ac_fn_c_try_link LINENO 1678# ----------------------- 1679# Try to link conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_link () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 rm -f conftest.$ac_objext conftest$ac_exeext 1684 if { { ac_try="$ac_link" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_link") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } && { 1700 test -z "$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 } && test -s conftest$ac_exeext && { 1703 test "$cross_compiling" = yes || 1704 test -x conftest$ac_exeext 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_link 1722 1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists and can be compiled using the include files in 1726# INCLUDES, setting the cache variable VAR accordingly. 1727ac_fn_c_check_header_compile () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731$as_echo_n "checking for $2... " >&6; } 1732if eval \${$3+:} false; then : 1733 $as_echo_n "(cached) " >&6 1734else 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 eval "$3=yes" 1742else 1743 eval "$3=no" 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746fi 1747eval ac_res=\$$3 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1749$as_echo "$ac_res" >&6; } 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 1752} # ac_fn_c_check_header_compile 1753 1754# ac_fn_c_try_run LINENO 1755# ---------------------- 1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1757# that executables *can* be run. 1758ac_fn_c_try_run () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 if { { ac_try="$ac_link" 1762case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_link") 2>&5 1769 ac_status=$? 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1772 { { case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_try") 2>&5 1779 ac_status=$? 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; }; }; then : 1782 ac_retval=0 1783else 1784 $as_echo "$as_me: program exited with status $ac_status" >&5 1785 $as_echo "$as_me: failed program was:" >&5 1786sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=$ac_status 1789fi 1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 as_fn_set_status $ac_retval 1793 1794} # ac_fn_c_try_run 1795 1796# ac_fn_c_check_func LINENO FUNC VAR 1797# ---------------------------------- 1798# Tests whether FUNC exists, setting the cache variable VAR accordingly 1799ac_fn_c_check_func () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1803$as_echo_n "checking for $2... " >&6; } 1804if eval \${$3+:} false; then : 1805 $as_echo_n "(cached) " >&6 1806else 1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808/* end confdefs.h. */ 1809/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1811#define $2 innocuous_$2 1812 1813/* System header to define __stub macros and hopefully few prototypes, 1814 which can conflict with char $2 (); below. 1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1816 <limits.h> exists even on freestanding compilers. */ 1817 1818#ifdef __STDC__ 1819# include <limits.h> 1820#else 1821# include <assert.h> 1822#endif 1823 1824#undef $2 1825 1826/* Override any GCC internal prototype to avoid an error. 1827 Use char because int might match the return type of a GCC 1828 builtin and then its argument prototype would still apply. */ 1829#ifdef __cplusplus 1830extern "C" 1831#endif 1832char $2 (); 1833/* The GNU C library defines this for functions which it implements 1834 to always fail with ENOSYS. Some functions are actually named 1835 something starting with __ and the normal name is an alias. */ 1836#if defined __stub_$2 || defined __stub___$2 1837choke me 1838#endif 1839 1840int 1841main () 1842{ 1843return $2 (); 1844 ; 1845 return 0; 1846} 1847_ACEOF 1848if ac_fn_c_try_link "$LINENO"; then : 1849 eval "$3=yes" 1850else 1851 eval "$3=no" 1852fi 1853rm -f core conftest.err conftest.$ac_objext \ 1854 conftest$ac_exeext conftest.$ac_ext 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861} # ac_fn_c_check_func 1862 1863# ac_fn_cxx_try_cpp LINENO 1864# ------------------------ 1865# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1866ac_fn_cxx_try_cpp () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 if { { ac_try="$ac_cpp conftest.$ac_ext" 1870case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873esac 1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875$as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } > conftest.i && { 1885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1886 test ! -s conftest.err 1887 }; then : 1888 ac_retval=0 1889else 1890 $as_echo "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=1 1894fi 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 as_fn_set_status $ac_retval 1897 1898} # ac_fn_cxx_try_cpp 1899 1900# ac_fn_cxx_try_link LINENO 1901# ------------------------- 1902# Try to link conftest.$ac_ext, and return whether this succeeded. 1903ac_fn_cxx_try_link () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 rm -f conftest.$ac_objext conftest$ac_exeext 1907 if { { ac_try="$ac_link" 1908case "(($ac_try" in 1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1910 *) ac_try_echo=$ac_try;; 1911esac 1912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1913$as_echo "$ac_try_echo"; } >&5 1914 (eval "$ac_link") 2>conftest.err 1915 ac_status=$? 1916 if test -s conftest.err; then 1917 grep -v '^ *+' conftest.err >conftest.er1 1918 cat conftest.er1 >&5 1919 mv -f conftest.er1 conftest.err 1920 fi 1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1922 test $ac_status = 0; } && { 1923 test -z "$ac_cxx_werror_flag" || 1924 test ! -s conftest.err 1925 } && test -s conftest$ac_exeext && { 1926 test "$cross_compiling" = yes || 1927 test -x conftest$ac_exeext 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1937 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1938 # interfere with the next link command; also delete a directory that is 1939 # left behind by Apple's compiler. We do this before executing the actions. 1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944} # ac_fn_cxx_try_link 1945 1946# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1947# ------------------------------------------------------- 1948# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1949# the include files in INCLUDES and setting the cache variable VAR 1950# accordingly. 1951ac_fn_c_check_header_mongrel () 1952{ 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 if eval \${$3+:} false; then : 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1956$as_echo_n "checking for $2... " >&6; } 1957if eval \${$3+:} false; then : 1958 $as_echo_n "(cached) " >&6 1959fi 1960eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962$as_echo "$ac_res" >&6; } 1963else 1964 # Is the header compilable? 1965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1966$as_echo_n "checking $2 usability... " >&6; } 1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968/* end confdefs.h. */ 1969$4 1970#include <$2> 1971_ACEOF 1972if ac_fn_c_try_compile "$LINENO"; then : 1973 ac_header_compiler=yes 1974else 1975 ac_header_compiler=no 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1979$as_echo "$ac_header_compiler" >&6; } 1980 1981# Is the header present? 1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1983$as_echo_n "checking $2 presence... " >&6; } 1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986#include <$2> 1987_ACEOF 1988if ac_fn_c_try_cpp "$LINENO"; then : 1989 ac_header_preproc=yes 1990else 1991 ac_header_preproc=no 1992fi 1993rm -f conftest.err conftest.i conftest.$ac_ext 1994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1995$as_echo "$ac_header_preproc" >&6; } 1996 1997# So? What about this header? 1998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1999 yes:no: ) 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2001$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2003$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2004 ;; 2005 no:yes:* ) 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2007$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2009$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2011$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2013$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2015$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2016 ;; 2017esac 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2019$as_echo_n "checking for $2... " >&6; } 2020if eval \${$3+:} false; then : 2021 $as_echo_n "(cached) " >&6 2022else 2023 eval "$3=\$ac_header_compiler" 2024fi 2025eval ac_res=\$$3 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2027$as_echo "$ac_res" >&6; } 2028fi 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 2031} # ac_fn_c_check_header_mongrel 2032cat >config.log <<_ACEOF 2033This file contains any messages produced by compilers while 2034running configure, to aid debugging if configure makes a mistake. 2035 2036It was created by lcms2mt $as_me 2.10, which was 2037generated by GNU Autoconf 2.69. Invocation command line was 2038 2039 $ $0 $@ 2040 2041_ACEOF 2042exec 5>>config.log 2043{ 2044cat <<_ASUNAME 2045## --------- ## 2046## Platform. ## 2047## --------- ## 2048 2049hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2050uname -m = `(uname -m) 2>/dev/null || echo unknown` 2051uname -r = `(uname -r) 2>/dev/null || echo unknown` 2052uname -s = `(uname -s) 2>/dev/null || echo unknown` 2053uname -v = `(uname -v) 2>/dev/null || echo unknown` 2054 2055/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2056/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2057 2058/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2059/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2060/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2061/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2062/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2063/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2064/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2065 2066_ASUNAME 2067 2068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2069for as_dir in $PATH 2070do 2071 IFS=$as_save_IFS 2072 test -z "$as_dir" && as_dir=. 2073 $as_echo "PATH: $as_dir" 2074 done 2075IFS=$as_save_IFS 2076 2077} >&5 2078 2079cat >&5 <<_ACEOF 2080 2081 2082## ----------- ## 2083## Core tests. ## 2084## ----------- ## 2085 2086_ACEOF 2087 2088 2089# Keep a trace of the command line. 2090# Strip out --no-create and --no-recursion so they do not pile up. 2091# Strip out --silent because we don't want to record it for future runs. 2092# Also quote any args containing shell meta-characters. 2093# Make two passes to allow for proper duplicate-argument suppression. 2094ac_configure_args= 2095ac_configure_args0= 2096ac_configure_args1= 2097ac_must_keep_next=false 2098for ac_pass in 1 2 2099do 2100 for ac_arg 2101 do 2102 case $ac_arg in 2103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2105 | -silent | --silent | --silen | --sile | --sil) 2106 continue ;; 2107 *\'*) 2108 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2109 esac 2110 case $ac_pass in 2111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2112 2) 2113 as_fn_append ac_configure_args1 " '$ac_arg'" 2114 if test $ac_must_keep_next = true; then 2115 ac_must_keep_next=false # Got value, back to normal. 2116 else 2117 case $ac_arg in 2118 *=* | --config-cache | -C | -disable-* | --disable-* \ 2119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2121 | -with-* | --with-* | -without-* | --without-* | --x) 2122 case "$ac_configure_args0 " in 2123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2124 esac 2125 ;; 2126 -* ) ac_must_keep_next=true ;; 2127 esac 2128 fi 2129 as_fn_append ac_configure_args " '$ac_arg'" 2130 ;; 2131 esac 2132 done 2133done 2134{ ac_configure_args0=; unset ac_configure_args0;} 2135{ ac_configure_args1=; unset ac_configure_args1;} 2136 2137# When interrupted or exit'd, cleanup temporary files, and complete 2138# config.log. We remove comments because anyway the quotes in there 2139# would cause problems or look ugly. 2140# WARNING: Use '\'' to represent an apostrophe within the trap. 2141# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2142trap 'exit_status=$? 2143 # Save into config.log some information that might help in debugging. 2144 { 2145 echo 2146 2147 $as_echo "## ---------------- ## 2148## Cache variables. ## 2149## ---------------- ##" 2150 echo 2151 # The following way of writing the cache mishandles newlines in values, 2152( 2153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2154 eval ac_val=\$$ac_var 2155 case $ac_val in #( 2156 *${as_nl}*) 2157 case $ac_var in #( 2158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2159$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2160 esac 2161 case $ac_var in #( 2162 _ | IFS | as_nl) ;; #( 2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2164 *) { eval $ac_var=; unset $ac_var;} ;; 2165 esac ;; 2166 esac 2167 done 2168 (set) 2>&1 | 2169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2170 *${as_nl}ac_space=\ *) 2171 sed -n \ 2172 "s/'\''/'\''\\\\'\'''\''/g; 2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2174 ;; #( 2175 *) 2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2177 ;; 2178 esac | 2179 sort 2180) 2181 echo 2182 2183 $as_echo "## ----------------- ## 2184## Output variables. ## 2185## ----------------- ##" 2186 echo 2187 for ac_var in $ac_subst_vars 2188 do 2189 eval ac_val=\$$ac_var 2190 case $ac_val in 2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2192 esac 2193 $as_echo "$ac_var='\''$ac_val'\''" 2194 done | sort 2195 echo 2196 2197 if test -n "$ac_subst_files"; then 2198 $as_echo "## ------------------- ## 2199## File substitutions. ## 2200## ------------------- ##" 2201 echo 2202 for ac_var in $ac_subst_files 2203 do 2204 eval ac_val=\$$ac_var 2205 case $ac_val in 2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2207 esac 2208 $as_echo "$ac_var='\''$ac_val'\''" 2209 done | sort 2210 echo 2211 fi 2212 2213 if test -s confdefs.h; then 2214 $as_echo "## ----------- ## 2215## confdefs.h. ## 2216## ----------- ##" 2217 echo 2218 cat confdefs.h 2219 echo 2220 fi 2221 test "$ac_signal" != 0 && 2222 $as_echo "$as_me: caught signal $ac_signal" 2223 $as_echo "$as_me: exit $exit_status" 2224 } >&5 2225 rm -f core *.core core.conftest.* && 2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2227 exit $exit_status 2228' 0 2229for ac_signal in 1 2 13 15; do 2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2231done 2232ac_signal=0 2233 2234# confdefs.h avoids OS command line length limits that DEFS can exceed. 2235rm -f -r conftest* confdefs.h 2236 2237$as_echo "/* confdefs.h */" > confdefs.h 2238 2239# Predefined preprocessor variables. 2240 2241cat >>confdefs.h <<_ACEOF 2242#define PACKAGE_NAME "$PACKAGE_NAME" 2243_ACEOF 2244 2245cat >>confdefs.h <<_ACEOF 2246#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2247_ACEOF 2248 2249cat >>confdefs.h <<_ACEOF 2250#define PACKAGE_VERSION "$PACKAGE_VERSION" 2251_ACEOF 2252 2253cat >>confdefs.h <<_ACEOF 2254#define PACKAGE_STRING "$PACKAGE_STRING" 2255_ACEOF 2256 2257cat >>confdefs.h <<_ACEOF 2258#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2259_ACEOF 2260 2261cat >>confdefs.h <<_ACEOF 2262#define PACKAGE_URL "$PACKAGE_URL" 2263_ACEOF 2264 2265 2266# Let the site file select an alternate cache file if it wants to. 2267# Prefer an explicitly selected file to automatically selected ones. 2268ac_site_file1=NONE 2269ac_site_file2=NONE 2270if test -n "$CONFIG_SITE"; then 2271 # We do not want a PATH search for config.site. 2272 case $CONFIG_SITE in #(( 2273 -*) ac_site_file1=./$CONFIG_SITE;; 2274 */*) ac_site_file1=$CONFIG_SITE;; 2275 *) ac_site_file1=./$CONFIG_SITE;; 2276 esac 2277elif test "x$prefix" != xNONE; then 2278 ac_site_file1=$prefix/share/config.site 2279 ac_site_file2=$prefix/etc/config.site 2280else 2281 ac_site_file1=$ac_default_prefix/share/config.site 2282 ac_site_file2=$ac_default_prefix/etc/config.site 2283fi 2284for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2285do 2286 test "x$ac_site_file" = xNONE && continue 2287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2289$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2290 sed 's/^/| /' "$ac_site_file" >&5 2291 . "$ac_site_file" \ 2292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2294as_fn_error $? "failed to load site script $ac_site_file 2295See \`config.log' for more details" "$LINENO" 5; } 2296 fi 2297done 2298 2299if test -r "$cache_file"; then 2300 # Some versions of bash will fail to source /dev/null (special files 2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2304$as_echo "$as_me: loading cache $cache_file" >&6;} 2305 case $cache_file in 2306 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2307 *) . "./$cache_file";; 2308 esac 2309 fi 2310else 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2312$as_echo "$as_me: creating cache $cache_file" >&6;} 2313 >$cache_file 2314fi 2315 2316# Check that the precious variables saved in the cache have kept the same 2317# value. 2318ac_cache_corrupted=false 2319for ac_var in $ac_precious_vars; do 2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2321 eval ac_new_set=\$ac_env_${ac_var}_set 2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2323 eval ac_new_val=\$ac_env_${ac_var}_value 2324 case $ac_old_set,$ac_new_set in 2325 set,) 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2327$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2328 ac_cache_corrupted=: ;; 2329 ,set) 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2331$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2332 ac_cache_corrupted=: ;; 2333 ,);; 2334 *) 2335 if test "x$ac_old_val" != "x$ac_new_val"; then 2336 # differences in whitespace do not lead to failure. 2337 ac_old_val_w=`echo x $ac_old_val` 2338 ac_new_val_w=`echo x $ac_new_val` 2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2341$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2342 ac_cache_corrupted=: 2343 else 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2345$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2346 eval $ac_var=\$ac_old_val 2347 fi 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2349$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2351$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2352 fi;; 2353 esac 2354 # Pass precious variables to config.status. 2355 if test "$ac_new_set" = set; then 2356 case $ac_new_val in 2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2358 *) ac_arg=$ac_var=$ac_new_val ;; 2359 esac 2360 case " $ac_configure_args " in 2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2363 esac 2364 fi 2365done 2366if $ac_cache_corrupted; then 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2370$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2372fi 2373## -------------------- ## 2374## Main body of script. ## 2375## -------------------- ## 2376 2377ac_ext=c 2378ac_cpp='$CPP $CPPFLAGS' 2379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2381ac_compiler_gnu=$ac_cv_c_compiler_gnu 2382 2383 2384 2385# Specify directory where m4 macros may be found. 2386 2387 2388# 2389# Libtool library revision control info 2390# See the libtool documentation under the heading "Libtool's versioning 2391# system" in order to understand the meaning of these fields 2392# 2393# Here are a set of rules to help you update your library version 2394# information: 2395# 2396# 1. Start with version information of `0:0:0' for each libtool library. 2397# 2. Update the version information only immediately before a public 2398# release of your software. More frequent updates are unnecessary, and 2399# only guarantee that the current interface number gets larger faster. 2400# 3. If the library source code has changed at all since the last update, 2401# then increment revision (`c:r:a' becomes `c:r+1:a'). 2402# 4. If any interfaces have been added, removed, or changed since the last 2403# update, increment current, and set revision to 0. 2404# 5. If any interfaces have been added since the last public release, then 2405# increment age. 2406# 6. If any interfaces have been removed since the last public release, 2407# then set age to 0. 2408# 2409LIBRARY_CURRENT=2 2410LIBRARY_REVISION=10 2411LIBRARY_AGE=0 2412 2413 2414# Obtain system type by running config.guess 2415ac_aux_dir= 2416for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2417 if test -f "$ac_dir/install-sh"; then 2418 ac_aux_dir=$ac_dir 2419 ac_install_sh="$ac_aux_dir/install-sh -c" 2420 break 2421 elif test -f "$ac_dir/install.sh"; then 2422 ac_aux_dir=$ac_dir 2423 ac_install_sh="$ac_aux_dir/install.sh -c" 2424 break 2425 elif test -f "$ac_dir/shtool"; then 2426 ac_aux_dir=$ac_dir 2427 ac_install_sh="$ac_aux_dir/shtool install -c" 2428 break 2429 fi 2430done 2431if test -z "$ac_aux_dir"; then 2432 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2433fi 2434 2435# These three variables are undocumented and unsupported, 2436# and are intended to be withdrawn in a future Autoconf release. 2437# They can cause serious problems if a builder's source tree is in a directory 2438# whose full name contains unusual characters. 2439ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2440ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2441ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2442 2443 2444# Make sure we can run config.sub. 2445$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2446 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2447 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2449$as_echo_n "checking build system type... " >&6; } 2450if ${ac_cv_build+:} false; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 ac_build_alias=$build_alias 2454test "x$ac_build_alias" = x && 2455 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2456test "x$ac_build_alias" = x && 2457 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2458ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2460 2461fi 2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2463$as_echo "$ac_cv_build" >&6; } 2464case $ac_cv_build in 2465*-*-*) ;; 2466*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2467esac 2468build=$ac_cv_build 2469ac_save_IFS=$IFS; IFS='-' 2470set x $ac_cv_build 2471shift 2472build_cpu=$1 2473build_vendor=$2 2474shift; shift 2475# Remember, the first character of IFS is used to create $*, 2476# except with old shells: 2477build_os=$* 2478IFS=$ac_save_IFS 2479case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2480 2481 2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2483$as_echo_n "checking host system type... " >&6; } 2484if ${ac_cv_host+:} false; then : 2485 $as_echo_n "(cached) " >&6 2486else 2487 if test "x$host_alias" = x; then 2488 ac_cv_host=$ac_cv_build 2489else 2490 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2491 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2492fi 2493 2494fi 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2496$as_echo "$ac_cv_host" >&6; } 2497case $ac_cv_host in 2498*-*-*) ;; 2499*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2500esac 2501host=$ac_cv_host 2502ac_save_IFS=$IFS; IFS='-' 2503set x $ac_cv_host 2504shift 2505host_cpu=$1 2506host_vendor=$2 2507shift; shift 2508# Remember, the first character of IFS is used to create $*, 2509# except with old shells: 2510host_os=$* 2511IFS=$ac_save_IFS 2512case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2513 2514 2515 2516am__api_version='1.16' 2517 2518# Find a good install program. We prefer a C program (faster), 2519# so one script is as good as another. But avoid the broken or 2520# incompatible versions: 2521# SysV /etc/install, /usr/sbin/install 2522# SunOS /usr/etc/install 2523# IRIX /sbin/install 2524# AIX /bin/install 2525# AmigaOS /C/install, which installs bootblocks on floppy discs 2526# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2527# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2528# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2529# OS/2's system install, which has a completely different semantic 2530# ./install, which can be erroneously created by make from ./install.sh. 2531# Reject install programs that cannot install multiple files. 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2533$as_echo_n "checking for a BSD-compatible install... " >&6; } 2534if test -z "$INSTALL"; then 2535if ${ac_cv_path_install+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 # Account for people who put trailing slashes in PATH elements. 2544case $as_dir/ in #(( 2545 ./ | .// | /[cC]/* | \ 2546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2547 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2548 /usr/ucb/* ) ;; 2549 *) 2550 # OSF1 and SCO ODT 3.0 have their own names for install. 2551 # Don't use installbsd from OSF since it installs stuff as root 2552 # by default. 2553 for ac_prog in ginstall scoinst install; do 2554 for ac_exec_ext in '' $ac_executable_extensions; do 2555 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2556 if test $ac_prog = install && 2557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2558 # AIX install. It has an incompatible calling convention. 2559 : 2560 elif test $ac_prog = install && 2561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2562 # program-specific install script used by HP pwplus--don't use. 2563 : 2564 else 2565 rm -rf conftest.one conftest.two conftest.dir 2566 echo one > conftest.one 2567 echo two > conftest.two 2568 mkdir conftest.dir 2569 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2570 test -s conftest.one && test -s conftest.two && 2571 test -s conftest.dir/conftest.one && 2572 test -s conftest.dir/conftest.two 2573 then 2574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2575 break 3 2576 fi 2577 fi 2578 fi 2579 done 2580 done 2581 ;; 2582esac 2583 2584 done 2585IFS=$as_save_IFS 2586 2587rm -rf conftest.one conftest.two conftest.dir 2588 2589fi 2590 if test "${ac_cv_path_install+set}" = set; then 2591 INSTALL=$ac_cv_path_install 2592 else 2593 # As a last resort, use the slow shell script. Don't cache a 2594 # value for INSTALL within a source directory, because that will 2595 # break other packages using the cache if that directory is 2596 # removed, or if the value is a relative name. 2597 INSTALL=$ac_install_sh 2598 fi 2599fi 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2601$as_echo "$INSTALL" >&6; } 2602 2603# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2604# It thinks the first close brace ends the variable substitution. 2605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2606 2607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2608 2609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2610 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2612$as_echo_n "checking whether build environment is sane... " >&6; } 2613# Reject unsafe characters in $srcdir or the absolute working directory 2614# name. Accept space and tab only in the latter. 2615am_lf=' 2616' 2617case `pwd` in 2618 *[\\\"\#\$\&\'\`$am_lf]*) 2619 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2620esac 2621case $srcdir in 2622 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2623 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2624esac 2625 2626# Do 'set' in a subshell so we don't clobber the current shell's 2627# arguments. Must try -L first in case configure is actually a 2628# symlink; some systems play weird games with the mod time of symlinks 2629# (eg FreeBSD returns the mod time of the symlink's containing 2630# directory). 2631if ( 2632 am_has_slept=no 2633 for am_try in 1 2; do 2634 echo "timestamp, slept: $am_has_slept" > conftest.file 2635 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2636 if test "$*" = "X"; then 2637 # -L didn't work. 2638 set X `ls -t "$srcdir/configure" conftest.file` 2639 fi 2640 if test "$*" != "X $srcdir/configure conftest.file" \ 2641 && test "$*" != "X conftest.file $srcdir/configure"; then 2642 2643 # If neither matched, then we have a broken ls. This can happen 2644 # if, for instance, CONFIG_SHELL is bash and it inherits a 2645 # broken ls alias from the environment. This has actually 2646 # happened. Such a system could not be considered "sane". 2647 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2648 alias in your environment" "$LINENO" 5 2649 fi 2650 if test "$2" = conftest.file || test $am_try -eq 2; then 2651 break 2652 fi 2653 # Just in case. 2654 sleep 1 2655 am_has_slept=yes 2656 done 2657 test "$2" = conftest.file 2658 ) 2659then 2660 # Ok. 2661 : 2662else 2663 as_fn_error $? "newly created file is older than distributed files! 2664Check your system clock" "$LINENO" 5 2665fi 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2667$as_echo "yes" >&6; } 2668# If we didn't sleep, we still need to ensure time stamps of config.status and 2669# generated files are strictly newer. 2670am_sleep_pid= 2671if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2672 ( sleep 1 ) & 2673 am_sleep_pid=$! 2674fi 2675 2676rm -f conftest.file 2677 2678test "$program_prefix" != NONE && 2679 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2680# Use a double $ so make ignores it. 2681test "$program_suffix" != NONE && 2682 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2683# Double any \ or $. 2684# By default was `s,x,x', remove it if useless. 2685ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2686program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2687 2688# Expand $ac_aux_dir to an absolute path. 2689am_aux_dir=`cd "$ac_aux_dir" && pwd` 2690 2691if test x"${MISSING+set}" != xset; then 2692 case $am_aux_dir in 2693 *\ * | *\ *) 2694 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2695 *) 2696 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2697 esac 2698fi 2699# Use eval to expand $SHELL 2700if eval "$MISSING --is-lightweight"; then 2701 am_missing_run="$MISSING " 2702else 2703 am_missing_run= 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2705$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2706fi 2707 2708if test x"${install_sh+set}" != xset; then 2709 case $am_aux_dir in 2710 *\ * | *\ *) 2711 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2712 *) 2713 install_sh="\${SHELL} $am_aux_dir/install-sh" 2714 esac 2715fi 2716 2717# Installed binaries are usually stripped using 'strip' when the user 2718# run "make install-strip". However 'strip' might not be the right 2719# tool to use in cross-compilation environments, therefore Automake 2720# will honor the 'STRIP' environment variable to overrule this program. 2721if test "$cross_compiling" != no; then 2722 if test -n "$ac_tool_prefix"; then 2723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2724set dummy ${ac_tool_prefix}strip; ac_word=$2 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2726$as_echo_n "checking for $ac_word... " >&6; } 2727if ${ac_cv_prog_STRIP+:} false; then : 2728 $as_echo_n "(cached) " >&6 2729else 2730 if test -n "$STRIP"; then 2731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2732else 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2740 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745 done 2746IFS=$as_save_IFS 2747 2748fi 2749fi 2750STRIP=$ac_cv_prog_STRIP 2751if test -n "$STRIP"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2753$as_echo "$STRIP" >&6; } 2754else 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756$as_echo "no" >&6; } 2757fi 2758 2759 2760fi 2761if test -z "$ac_cv_prog_STRIP"; then 2762 ac_ct_STRIP=$STRIP 2763 # Extract the first word of "strip", so it can be a program name with args. 2764set dummy strip; ac_word=$2 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2766$as_echo_n "checking for $ac_word... " >&6; } 2767if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test -n "$ac_ct_STRIP"; then 2771 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2772else 2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774for as_dir in $PATH 2775do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2780 ac_cv_prog_ac_ct_STRIP="strip" 2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784done 2785 done 2786IFS=$as_save_IFS 2787 2788fi 2789fi 2790ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2791if test -n "$ac_ct_STRIP"; then 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2793$as_echo "$ac_ct_STRIP" >&6; } 2794else 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2796$as_echo "no" >&6; } 2797fi 2798 2799 if test "x$ac_ct_STRIP" = x; then 2800 STRIP=":" 2801 else 2802 case $cross_compiling:$ac_tool_warned in 2803yes:) 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2806ac_tool_warned=yes ;; 2807esac 2808 STRIP=$ac_ct_STRIP 2809 fi 2810else 2811 STRIP="$ac_cv_prog_STRIP" 2812fi 2813 2814fi 2815INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2816 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2818$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2819if test -z "$MKDIR_P"; then 2820 if ${ac_cv_path_mkdir+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2825do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_prog in mkdir gmkdir; do 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2831 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2832 'mkdir (GNU coreutils) '* | \ 2833 'mkdir (coreutils) '* | \ 2834 'mkdir (fileutils) '4.1*) 2835 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2836 break 3;; 2837 esac 2838 done 2839 done 2840 done 2841IFS=$as_save_IFS 2842 2843fi 2844 2845 test -d ./--version && rmdir ./--version 2846 if test "${ac_cv_path_mkdir+set}" = set; then 2847 MKDIR_P="$ac_cv_path_mkdir -p" 2848 else 2849 # As a last resort, use the slow shell script. Don't cache a 2850 # value for MKDIR_P within a source directory, because that will 2851 # break other packages using the cache if that directory is 2852 # removed, or if the value is a relative name. 2853 MKDIR_P="$ac_install_sh -d" 2854 fi 2855fi 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2857$as_echo "$MKDIR_P" >&6; } 2858 2859for ac_prog in gawk mawk nawk awk 2860do 2861 # Extract the first word of "$ac_prog", so it can be a program name with args. 2862set dummy $ac_prog; ac_word=$2 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if ${ac_cv_prog_AWK+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$AWK"; then 2869 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2878 ac_cv_prog_AWK="$ac_prog" 2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888AWK=$ac_cv_prog_AWK 2889if test -n "$AWK"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2891$as_echo "$AWK" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898 test -n "$AWK" && break 2899done 2900 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2902$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2903set x ${MAKE-make} 2904ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2905if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 cat >conftest.make <<\_ACEOF 2909SHELL = /bin/sh 2910all: 2911 @echo '@@@%%%=$(MAKE)=@@@%%%' 2912_ACEOF 2913# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2914case `${MAKE-make} -f conftest.make 2>/dev/null` in 2915 *@@@%%%=?*=@@@%%%*) 2916 eval ac_cv_prog_make_${ac_make}_set=yes;; 2917 *) 2918 eval ac_cv_prog_make_${ac_make}_set=no;; 2919esac 2920rm -f conftest.make 2921fi 2922if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2924$as_echo "yes" >&6; } 2925 SET_MAKE= 2926else 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2928$as_echo "no" >&6; } 2929 SET_MAKE="MAKE=${MAKE-make}" 2930fi 2931 2932rm -rf .tst 2>/dev/null 2933mkdir .tst 2>/dev/null 2934if test -d .tst; then 2935 am__leading_dot=. 2936else 2937 am__leading_dot=_ 2938fi 2939rmdir .tst 2>/dev/null 2940 2941# Check whether --enable-silent-rules was given. 2942if test "${enable_silent_rules+set}" = set; then : 2943 enableval=$enable_silent_rules; 2944fi 2945 2946case $enable_silent_rules in # ((( 2947 yes) AM_DEFAULT_VERBOSITY=0;; 2948 no) AM_DEFAULT_VERBOSITY=1;; 2949 *) AM_DEFAULT_VERBOSITY=1;; 2950esac 2951am_make=${MAKE-make} 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2953$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2954if ${am_cv_make_support_nested_variables+:} false; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 if $as_echo 'TRUE=$(BAR$(V)) 2958BAR0=false 2959BAR1=true 2960V=1 2961am__doit: 2962 @$(TRUE) 2963.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2964 am_cv_make_support_nested_variables=yes 2965else 2966 am_cv_make_support_nested_variables=no 2967fi 2968fi 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2970$as_echo "$am_cv_make_support_nested_variables" >&6; } 2971if test $am_cv_make_support_nested_variables = yes; then 2972 AM_V='$(V)' 2973 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2974else 2975 AM_V=$AM_DEFAULT_VERBOSITY 2976 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2977fi 2978AM_BACKSLASH='\' 2979 2980if test "`cd $srcdir && pwd`" != "`pwd`"; then 2981 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2982 # is not polluted with repeated "-I." 2983 am__isrc=' -I$(srcdir)' 2984 # test to see if srcdir already configured 2985 if test -f $srcdir/config.status; then 2986 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2987 fi 2988fi 2989 2990# test whether we have cygpath 2991if test -z "$CYGPATH_W"; then 2992 if (cygpath --version) >/dev/null 2>/dev/null; then 2993 CYGPATH_W='cygpath -w' 2994 else 2995 CYGPATH_W=echo 2996 fi 2997fi 2998 2999 3000# Define the identity of the package. 3001 PACKAGE='lcms2mt' 3002 VERSION='2.10' 3003 3004 3005# Some tools Automake needs. 3006 3007ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3008 3009 3010AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3011 3012 3013AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3014 3015 3016AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3017 3018 3019MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3020 3021# For better backward compatibility. To be removed once Automake 1.9.x 3022# dies out for good. For more background, see: 3023# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3024# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3025mkdir_p='$(MKDIR_P)' 3026 3027# We need awk for the "check" target (and possibly the TAP driver). The 3028# system "awk" is bad on some platforms. 3029# Always define AMTAR for backward compatibility. Yes, it's still used 3030# in the wild :-( We should find a proper way to deprecate it ... 3031AMTAR='$${TAR-tar}' 3032 3033 3034# We'll loop over all known methods to create a tar archive until one works. 3035_am_tools='gnutar pax cpio none' 3036 3037am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3038 3039 3040 3041 3042 3043 3044# POSIX will say in a future version that running "rm -f" with no argument 3045# is OK; and we want to be able to make that assumption in our Makefile 3046# recipes. So use an aggressive probe to check that the usage we want is 3047# actually supported "in the wild" to an acceptable degree. 3048# See automake bug#10828. 3049# To make any issue more visible, cause the running configure to be aborted 3050# by default if the 'rm' program in use doesn't match our expectations; the 3051# user can still override this though. 3052if rm -f && rm -fr && rm -rf; then : OK; else 3053 cat >&2 <<'END' 3054Oops! 3055 3056Your 'rm' program seems unable to run without file operands specified 3057on the command line, even when the '-f' option is present. This is contrary 3058to the behaviour of most rm programs out there, and not conforming with 3059the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3060 3061Please tell bug-automake@gnu.org about your system, including the value 3062of your $PATH and any error possibly output before this message. This 3063can help us improve future automake versions. 3064 3065END 3066 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3067 echo 'Configuration will proceed anyway, since you have set the' >&2 3068 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3069 echo >&2 3070 else 3071 cat >&2 <<'END' 3072Aborting the configuration process, to ensure you take notice of the issue. 3073 3074You can download and install GNU coreutils to get an 'rm' implementation 3075that behaves properly: <https://www.gnu.org/software/coreutils/>. 3076 3077If you want to complete the configuration process using your problematic 3078'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3079to "yes", and re-run configure. 3080 3081END 3082 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3083 fi 3084fi 3085 3086 3087 3088# Check for programs 3089DEPDIR="${am__leading_dot}deps" 3090 3091ac_config_commands="$ac_config_commands depfiles" 3092 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3094$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3095cat > confinc.mk << 'END' 3096am__doit: 3097 @echo this is the am__doit target >confinc.out 3098.PHONY: am__doit 3099END 3100am__include="#" 3101am__quote= 3102# BSD make does it like this. 3103echo '.include "confinc.mk" # ignored' > confmf.BSD 3104# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3105echo 'include confinc.mk # ignored' > confmf.GNU 3106_am_result=no 3107for s in GNU BSD; do 3108 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3109 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3110 ac_status=$? 3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3112 (exit $ac_status); } 3113 case $?:`cat confinc.out 2>/dev/null` in #( 3114 '0:this is the am__doit target') : 3115 case $s in #( 3116 BSD) : 3117 am__include='.include' am__quote='"' ;; #( 3118 *) : 3119 am__include='include' am__quote='' ;; 3120esac ;; #( 3121 *) : 3122 ;; 3123esac 3124 if test "$am__include" != "#"; then 3125 _am_result="yes ($s style)" 3126 break 3127 fi 3128done 3129rm -f confinc.* confmf.* 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3131$as_echo "${_am_result}" >&6; } 3132 3133# Check whether --enable-dependency-tracking was given. 3134if test "${enable_dependency_tracking+set}" = set; then : 3135 enableval=$enable_dependency_tracking; 3136fi 3137 3138if test "x$enable_dependency_tracking" != xno; then 3139 am_depcomp="$ac_aux_dir/depcomp" 3140 AMDEPBACKSLASH='\' 3141 am__nodep='_no' 3142fi 3143 if test "x$enable_dependency_tracking" != xno; then 3144 AMDEP_TRUE= 3145 AMDEP_FALSE='#' 3146else 3147 AMDEP_TRUE='#' 3148 AMDEP_FALSE= 3149fi 3150 3151 3152ac_ext=c 3153ac_cpp='$CPP $CPPFLAGS' 3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3156ac_compiler_gnu=$ac_cv_c_compiler_gnu 3157if test -n "$ac_tool_prefix"; then 3158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3159set dummy ${ac_tool_prefix}gcc; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if ${ac_cv_prog_CC+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3175 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195fi 3196if test -z "$ac_cv_prog_CC"; then 3197 ac_ct_CC=$CC 3198 # Extract the first word of "gcc", so it can be a program name with args. 3199set dummy gcc; ac_word=$2 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201$as_echo_n "checking for $ac_word... " >&6; } 3202if ${ac_cv_prog_ac_ct_CC+:} false; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 if test -n "$ac_ct_CC"; then 3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3207else 3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3209for as_dir in $PATH 3210do 3211 IFS=$as_save_IFS 3212 test -z "$as_dir" && as_dir=. 3213 for ac_exec_ext in '' $ac_executable_extensions; do 3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3215 ac_cv_prog_ac_ct_CC="gcc" 3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3217 break 2 3218 fi 3219done 3220 done 3221IFS=$as_save_IFS 3222 3223fi 3224fi 3225ac_ct_CC=$ac_cv_prog_ac_ct_CC 3226if test -n "$ac_ct_CC"; then 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3228$as_echo "$ac_ct_CC" >&6; } 3229else 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3231$as_echo "no" >&6; } 3232fi 3233 3234 if test "x$ac_ct_CC" = x; then 3235 CC="" 3236 else 3237 case $cross_compiling:$ac_tool_warned in 3238yes:) 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3241ac_tool_warned=yes ;; 3242esac 3243 CC=$ac_ct_CC 3244 fi 3245else 3246 CC="$ac_cv_prog_CC" 3247fi 3248 3249if test -z "$CC"; then 3250 if test -n "$ac_tool_prefix"; then 3251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3252set dummy ${ac_tool_prefix}cc; ac_word=$2 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3254$as_echo_n "checking for $ac_word... " >&6; } 3255if ${ac_cv_prog_CC+:} false; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 if test -n "$CC"; then 3259 ac_cv_prog_CC="$CC" # Let the user override the test. 3260else 3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262for as_dir in $PATH 3263do 3264 IFS=$as_save_IFS 3265 test -z "$as_dir" && as_dir=. 3266 for ac_exec_ext in '' $ac_executable_extensions; do 3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3268 ac_cv_prog_CC="${ac_tool_prefix}cc" 3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3270 break 2 3271 fi 3272done 3273 done 3274IFS=$as_save_IFS 3275 3276fi 3277fi 3278CC=$ac_cv_prog_CC 3279if test -n "$CC"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3281$as_echo "$CC" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 3288 fi 3289fi 3290if test -z "$CC"; then 3291 # Extract the first word of "cc", so it can be a program name with args. 3292set dummy cc; ac_word=$2 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3294$as_echo_n "checking for $ac_word... " >&6; } 3295if ${ac_cv_prog_CC+:} false; then : 3296 $as_echo_n "(cached) " >&6 3297else 3298 if test -n "$CC"; then 3299 ac_cv_prog_CC="$CC" # Let the user override the test. 3300else 3301 ac_prog_rejected=no 3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303for as_dir in $PATH 3304do 3305 IFS=$as_save_IFS 3306 test -z "$as_dir" && as_dir=. 3307 for ac_exec_ext in '' $ac_executable_extensions; do 3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3310 ac_prog_rejected=yes 3311 continue 3312 fi 3313 ac_cv_prog_CC="cc" 3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3315 break 2 3316 fi 3317done 3318 done 3319IFS=$as_save_IFS 3320 3321if test $ac_prog_rejected = yes; then 3322 # We found a bogon in the path, so make sure we never use it. 3323 set dummy $ac_cv_prog_CC 3324 shift 3325 if test $# != 0; then 3326 # We chose a different compiler from the bogus one. 3327 # However, it has the same basename, so the bogon will be chosen 3328 # first if we set CC to just the basename; use the full file name. 3329 shift 3330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3331 fi 3332fi 3333fi 3334fi 3335CC=$ac_cv_prog_CC 3336if test -n "$CC"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3338$as_echo "$CC" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345fi 3346if test -z "$CC"; then 3347 if test -n "$ac_tool_prefix"; then 3348 for ac_prog in cl.exe 3349 do 3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3351set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3353$as_echo_n "checking for $ac_word... " >&6; } 3354if ${ac_cv_prog_CC+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if test -n "$CC"; then 3358 ac_cv_prog_CC="$CC" # Let the user override the test. 3359else 3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3361for as_dir in $PATH 3362do 3363 IFS=$as_save_IFS 3364 test -z "$as_dir" && as_dir=. 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375fi 3376fi 3377CC=$ac_cv_prog_CC 3378if test -n "$CC"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3380$as_echo "$CC" >&6; } 3381else 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383$as_echo "no" >&6; } 3384fi 3385 3386 3387 test -n "$CC" && break 3388 done 3389fi 3390if test -z "$CC"; then 3391 ac_ct_CC=$CC 3392 for ac_prog in cl.exe 3393do 3394 # Extract the first word of "$ac_prog", so it can be a program name with args. 3395set dummy $ac_prog; 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 ${ac_cv_prog_ac_ct_CC+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 if test -n "$ac_ct_CC"; then 3402 ac_cv_prog_ac_ct_CC="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3411 ac_cv_prog_ac_ct_CC="$ac_prog" 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 3421ac_ct_CC=$ac_cv_prog_ac_ct_CC 3422if test -n "$ac_ct_CC"; then 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3424$as_echo "$ac_ct_CC" >&6; } 3425else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427$as_echo "no" >&6; } 3428fi 3429 3430 3431 test -n "$ac_ct_CC" && break 3432done 3433 3434 if test "x$ac_ct_CC" = x; then 3435 CC="" 3436 else 3437 case $cross_compiling:$ac_tool_warned in 3438yes:) 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3441ac_tool_warned=yes ;; 3442esac 3443 CC=$ac_ct_CC 3444 fi 3445fi 3446 3447fi 3448 3449 3450test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3452as_fn_error $? "no acceptable C compiler found in \$PATH 3453See \`config.log' for more details" "$LINENO" 5; } 3454 3455# Provide some information about the compiler. 3456$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3457set X $ac_compile 3458ac_compiler=$2 3459for ac_option in --version -v -V -qversion; do 3460 { { ac_try="$ac_compiler $ac_option >&5" 3461case "(($ac_try" in 3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3463 *) ac_try_echo=$ac_try;; 3464esac 3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3466$as_echo "$ac_try_echo"; } >&5 3467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3468 ac_status=$? 3469 if test -s conftest.err; then 3470 sed '10a\ 3471... rest of stderr output deleted ... 3472 10q' conftest.err >conftest.er1 3473 cat conftest.er1 >&5 3474 fi 3475 rm -f conftest.er1 conftest.err 3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3477 test $ac_status = 0; } 3478done 3479 3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483int 3484main () 3485{ 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491ac_clean_files_save=$ac_clean_files 3492ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3493# Try to create an executable without -o first, disregard a.out. 3494# It will help us diagnose broken compilers, and finding out an intuition 3495# of exeext. 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3497$as_echo_n "checking whether the C compiler works... " >&6; } 3498ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3499 3500# The possible output files: 3501ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3502 3503ac_rmfiles= 3504for ac_file in $ac_files 3505do 3506 case $ac_file in 3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3508 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3509 esac 3510done 3511rm -f $ac_rmfiles 3512 3513if { { ac_try="$ac_link_default" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_link_default") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; then : 3524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3525# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3526# in a Makefile. We should not override ac_cv_exeext if it was cached, 3527# so that the user can short-circuit this test for compilers unknown to 3528# Autoconf. 3529for ac_file in $ac_files '' 3530do 3531 test -f "$ac_file" || continue 3532 case $ac_file in 3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3534 ;; 3535 [ab].out ) 3536 # We found the default executable, but exeext='' is most 3537 # certainly right. 3538 break;; 3539 *.* ) 3540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3541 then :; else 3542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3543 fi 3544 # We set ac_cv_exeext here because the later test for it is not 3545 # safe: cross compilers may not add the suffix if given an `-o' 3546 # argument, so we may need to know it at that point already. 3547 # Even if this section looks crufty: it has the advantage of 3548 # actually working. 3549 break;; 3550 * ) 3551 break;; 3552 esac 3553done 3554test "$ac_cv_exeext" = no && ac_cv_exeext= 3555 3556else 3557 ac_file='' 3558fi 3559if test -z "$ac_file"; then : 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3561$as_echo "no" >&6; } 3562$as_echo "$as_me: failed program was:" >&5 3563sed 's/^/| /' conftest.$ac_ext >&5 3564 3565{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3567as_fn_error 77 "C compiler cannot create executables 3568See \`config.log' for more details" "$LINENO" 5; } 3569else 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3571$as_echo "yes" >&6; } 3572fi 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3574$as_echo_n "checking for C compiler default output file name... " >&6; } 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3576$as_echo "$ac_file" >&6; } 3577ac_exeext=$ac_cv_exeext 3578 3579rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3580ac_clean_files=$ac_clean_files_save 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3582$as_echo_n "checking for suffix of executables... " >&6; } 3583if { { ac_try="$ac_link" 3584case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3589$as_echo "$ac_try_echo"; } >&5 3590 (eval "$ac_link") 2>&5 3591 ac_status=$? 3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3593 test $ac_status = 0; }; then : 3594 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3595# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3596# work properly (i.e., refer to `conftest.exe'), while it won't with 3597# `rm'. 3598for ac_file in conftest.exe conftest conftest.*; do 3599 test -f "$ac_file" || continue 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3603 break;; 3604 * ) break;; 3605 esac 3606done 3607else 3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3610as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3611See \`config.log' for more details" "$LINENO" 5; } 3612fi 3613rm -f conftest conftest$ac_cv_exeext 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3615$as_echo "$ac_cv_exeext" >&6; } 3616 3617rm -f conftest.$ac_ext 3618EXEEXT=$ac_cv_exeext 3619ac_exeext=$EXEEXT 3620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622#include <stdio.h> 3623int 3624main () 3625{ 3626FILE *f = fopen ("conftest.out", "w"); 3627 return ferror (f) || fclose (f) != 0; 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633ac_clean_files="$ac_clean_files conftest.out" 3634# Check that the compiler produces executables we can run. If not, either 3635# the compiler is broken, or we cross compile. 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3637$as_echo_n "checking whether we are cross compiling... " >&6; } 3638if test "$cross_compiling" != yes; then 3639 { { ac_try="$ac_link" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645$as_echo "$ac_try_echo"; } >&5 3646 (eval "$ac_link") 2>&5 3647 ac_status=$? 3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3649 test $ac_status = 0; } 3650 if { ac_try='./conftest$ac_cv_exeext' 3651 { { case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656$as_echo "$ac_try_echo"; } >&5 3657 (eval "$ac_try") 2>&5 3658 ac_status=$? 3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3660 test $ac_status = 0; }; }; then 3661 cross_compiling=no 3662 else 3663 if test "$cross_compiling" = maybe; then 3664 cross_compiling=yes 3665 else 3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3668as_fn_error $? "cannot run C compiled programs. 3669If you meant to cross compile, use \`--host'. 3670See \`config.log' for more details" "$LINENO" 5; } 3671 fi 3672 fi 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3675$as_echo "$cross_compiling" >&6; } 3676 3677rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3678ac_clean_files=$ac_clean_files_save 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3680$as_echo_n "checking for suffix of object files... " >&6; } 3681if ${ac_cv_objext+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main () 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695rm -f conftest.o conftest.obj 3696if { { ac_try="$ac_compile" 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_compile") 2>&5 3704 ac_status=$? 3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3706 test $ac_status = 0; }; then : 3707 for ac_file in conftest.o conftest.obj conftest.*; do 3708 test -f "$ac_file" || continue; 3709 case $ac_file in 3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3712 break;; 3713 esac 3714done 3715else 3716 $as_echo "$as_me: failed program was:" >&5 3717sed 's/^/| /' conftest.$ac_ext >&5 3718 3719{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3721as_fn_error $? "cannot compute suffix of object files: cannot compile 3722See \`config.log' for more details" "$LINENO" 5; } 3723fi 3724rm -f conftest.$ac_cv_objext conftest.$ac_ext 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3727$as_echo "$ac_cv_objext" >&6; } 3728OBJEXT=$ac_cv_objext 3729ac_objext=$OBJEXT 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3731$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3732if ${ac_cv_c_compiler_gnu+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737 3738int 3739main () 3740{ 3741#ifndef __GNUC__ 3742 choke me 3743#endif 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749if ac_fn_c_try_compile "$LINENO"; then : 3750 ac_compiler_gnu=yes 3751else 3752 ac_compiler_gnu=no 3753fi 3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3755ac_cv_c_compiler_gnu=$ac_compiler_gnu 3756 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3759$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3760if test $ac_compiler_gnu = yes; then 3761 GCC=yes 3762else 3763 GCC= 3764fi 3765ac_test_CFLAGS=${CFLAGS+set} 3766ac_save_CFLAGS=$CFLAGS 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3768$as_echo_n "checking whether $CC accepts -g... " >&6; } 3769if ${ac_cv_prog_cc_g+:} false; then : 3770 $as_echo_n "(cached) " >&6 3771else 3772 ac_save_c_werror_flag=$ac_c_werror_flag 3773 ac_c_werror_flag=yes 3774 ac_cv_prog_cc_g=no 3775 CFLAGS="-g" 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777/* end confdefs.h. */ 3778 3779int 3780main () 3781{ 3782 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787if ac_fn_c_try_compile "$LINENO"; then : 3788 ac_cv_prog_cc_g=yes 3789else 3790 CFLAGS="" 3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794int 3795main () 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802if ac_fn_c_try_compile "$LINENO"; then : 3803 3804else 3805 ac_c_werror_flag=$ac_save_c_werror_flag 3806 CFLAGS="-g" 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809 3810int 3811main () 3812{ 3813 3814 ; 3815 return 0; 3816} 3817_ACEOF 3818if ac_fn_c_try_compile "$LINENO"; then : 3819 ac_cv_prog_cc_g=yes 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822fi 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3824fi 3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3826 ac_c_werror_flag=$ac_save_c_werror_flag 3827fi 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3829$as_echo "$ac_cv_prog_cc_g" >&6; } 3830if test "$ac_test_CFLAGS" = set; then 3831 CFLAGS=$ac_save_CFLAGS 3832elif test $ac_cv_prog_cc_g = yes; then 3833 if test "$GCC" = yes; then 3834 CFLAGS="-g -O2" 3835 else 3836 CFLAGS="-g" 3837 fi 3838else 3839 if test "$GCC" = yes; then 3840 CFLAGS="-O2" 3841 else 3842 CFLAGS= 3843 fi 3844fi 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3846$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3847if ${ac_cv_prog_cc_c89+:} false; then : 3848 $as_echo_n "(cached) " >&6 3849else 3850 ac_cv_prog_cc_c89=no 3851ac_save_CC=$CC 3852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3853/* end confdefs.h. */ 3854#include <stdarg.h> 3855#include <stdio.h> 3856struct stat; 3857/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3858struct buf { int x; }; 3859FILE * (*rcsopen) (struct buf *, struct stat *, int); 3860static char *e (p, i) 3861 char **p; 3862 int i; 3863{ 3864 return p[i]; 3865} 3866static char *f (char * (*g) (char **, int), char **p, ...) 3867{ 3868 char *s; 3869 va_list v; 3870 va_start (v,p); 3871 s = g (p, va_arg (v,int)); 3872 va_end (v); 3873 return s; 3874} 3875 3876/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3877 function prototypes and stuff, but not '\xHH' hex character constants. 3878 These don't provoke an error unfortunately, instead are silently treated 3879 as 'x'. The following induces an error, until -std is added to get 3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3881 array size at least. It's necessary to write '\x00'==0 to get something 3882 that's true only with -std. */ 3883int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3884 3885/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3886 inside strings and character constants. */ 3887#define FOO(x) 'x' 3888int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3889 3890int test (int i, double x); 3891struct s1 {int (*f) (int a);}; 3892struct s2 {int (*f) (double a);}; 3893int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3894int argc; 3895char **argv; 3896int 3897main () 3898{ 3899return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3900 ; 3901 return 0; 3902} 3903_ACEOF 3904for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3906do 3907 CC="$ac_save_CC $ac_arg" 3908 if ac_fn_c_try_compile "$LINENO"; then : 3909 ac_cv_prog_cc_c89=$ac_arg 3910fi 3911rm -f core conftest.err conftest.$ac_objext 3912 test "x$ac_cv_prog_cc_c89" != "xno" && break 3913done 3914rm -f conftest.$ac_ext 3915CC=$ac_save_CC 3916 3917fi 3918# AC_CACHE_VAL 3919case "x$ac_cv_prog_cc_c89" in 3920 x) 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3922$as_echo "none needed" >&6; } ;; 3923 xno) 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3925$as_echo "unsupported" >&6; } ;; 3926 *) 3927 CC="$CC $ac_cv_prog_cc_c89" 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3929$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3930esac 3931if test "x$ac_cv_prog_cc_c89" != xno; then : 3932 3933fi 3934 3935ac_ext=c 3936ac_cpp='$CPP $CPPFLAGS' 3937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3939ac_compiler_gnu=$ac_cv_c_compiler_gnu 3940 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3947$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3948if ${am_cv_prog_cc_c_o+:} false; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953 3954int 3955main () 3956{ 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962 # Make sure it works both with $CC and with simple cc. 3963 # Following AC_PROG_CC_C_O, we do the test twice because some 3964 # compilers refuse to overwrite an existing .o file with -o, 3965 # though they will create one. 3966 am_cv_prog_cc_c_o=yes 3967 for am_i in 1 2; do 3968 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3969 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3970 ac_status=$? 3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3972 (exit $ac_status); } \ 3973 && test -f conftest2.$ac_objext; then 3974 : OK 3975 else 3976 am_cv_prog_cc_c_o=no 3977 break 3978 fi 3979 done 3980 rm -f core conftest* 3981 unset am_i 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3984$as_echo "$am_cv_prog_cc_c_o" >&6; } 3985if test "$am_cv_prog_cc_c_o" != yes; then 3986 # Losing compiler, so override with the script. 3987 # FIXME: It is wrong to rewrite CC. 3988 # But if we don't then we get into trouble of one sort or another. 3989 # A longer-term fix would be to have automake use am__CC in this case, 3990 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3991 CC="$am_aux_dir/compile $CC" 3992fi 3993ac_ext=c 3994ac_cpp='$CPP $CPPFLAGS' 3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 3999 4000depcc="$CC" am_compiler_list= 4001 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4003$as_echo_n "checking dependency style of $depcc... " >&6; } 4004if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006else 4007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4008 # We make a subdir and do the tests there. Otherwise we can end up 4009 # making bogus files that we don't know about and never remove. For 4010 # instance it was reported that on HP-UX the gcc test will end up 4011 # making a dummy file named 'D' -- because '-MD' means "put the output 4012 # in D". 4013 rm -rf conftest.dir 4014 mkdir conftest.dir 4015 # Copy depcomp to subdir because otherwise we won't find it if we're 4016 # using a relative directory. 4017 cp "$am_depcomp" conftest.dir 4018 cd conftest.dir 4019 # We will build objects and dependencies in a subdirectory because 4020 # it helps to detect inapplicable dependency modes. For instance 4021 # both Tru64's cc and ICC support -MD to output dependencies as a 4022 # side effect of compilation, but ICC will put the dependencies in 4023 # the current directory while Tru64 will put them in the object 4024 # directory. 4025 mkdir sub 4026 4027 am_cv_CC_dependencies_compiler_type=none 4028 if test "$am_compiler_list" = ""; then 4029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4030 fi 4031 am__universal=false 4032 case " $depcc " in #( 4033 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4034 esac 4035 4036 for depmode in $am_compiler_list; do 4037 # Setup a source with many dependencies, because some compilers 4038 # like to wrap large dependency lists on column 80 (with \), and 4039 # we should not choose a depcomp mode which is confused by this. 4040 # 4041 # We need to recreate these files for each test, as the compiler may 4042 # overwrite some of them when testing with obscure command lines. 4043 # This happens at least with the AIX C compiler. 4044 : > sub/conftest.c 4045 for i in 1 2 3 4 5 6; do 4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4047 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4048 # Solaris 10 /bin/sh. 4049 echo '/* dummy */' > sub/conftst$i.h 4050 done 4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4052 4053 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4054 # mode. It turns out that the SunPro C++ compiler does not properly 4055 # handle '-M -o', and we need to detect this. Also, some Intel 4056 # versions had trouble with output in subdirs. 4057 am__obj=sub/conftest.${OBJEXT-o} 4058 am__minus_obj="-o $am__obj" 4059 case $depmode in 4060 gcc) 4061 # This depmode causes a compiler race in universal mode. 4062 test "$am__universal" = false || continue 4063 ;; 4064 nosideeffect) 4065 # After this tag, mechanisms are not by side-effect, so they'll 4066 # only be used when explicitly requested. 4067 if test "x$enable_dependency_tracking" = xyes; then 4068 continue 4069 else 4070 break 4071 fi 4072 ;; 4073 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4074 # This compiler won't grok '-c -o', but also, the minuso test has 4075 # not run yet. These depmodes are late enough in the game, and 4076 # so weak that their functioning should not be impacted. 4077 am__obj=conftest.${OBJEXT-o} 4078 am__minus_obj= 4079 ;; 4080 none) break ;; 4081 esac 4082 if depmode=$depmode \ 4083 source=sub/conftest.c object=$am__obj \ 4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4086 >/dev/null 2>conftest.err && 4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4091 # icc doesn't choke on unknown options, it will just issue warnings 4092 # or remarks (even with -Werror). So we grep stderr for any message 4093 # that says an option was ignored or not supported. 4094 # When given -MP, icc 7.0 and 7.1 complain thusly: 4095 # icc: Command line warning: ignoring option '-M'; no argument required 4096 # The diagnosis changed in icc 8.0: 4097 # icc: Command line remark: option '-MP' not supported 4098 if (grep 'ignoring option' conftest.err || 4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4100 am_cv_CC_dependencies_compiler_type=$depmode 4101 break 4102 fi 4103 fi 4104 done 4105 4106 cd .. 4107 rm -rf conftest.dir 4108else 4109 am_cv_CC_dependencies_compiler_type=none 4110fi 4111 4112fi 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4114$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4116 4117 if 4118 test "x$enable_dependency_tracking" != xno \ 4119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4120 am__fastdepCC_TRUE= 4121 am__fastdepCC_FALSE='#' 4122else 4123 am__fastdepCC_TRUE='#' 4124 am__fastdepCC_FALSE= 4125fi 4126 4127 4128 case $ac_cv_prog_cc_stdc in #( 4129 no) : 4130 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4131 *) : 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4133$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4134if ${ac_cv_prog_cc_c99+:} false; then : 4135 $as_echo_n "(cached) " >&6 4136else 4137 ac_cv_prog_cc_c99=no 4138ac_save_CC=$CC 4139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140/* end confdefs.h. */ 4141#include <stdarg.h> 4142#include <stdbool.h> 4143#include <stdlib.h> 4144#include <wchar.h> 4145#include <stdio.h> 4146 4147// Check varargs macros. These examples are taken from C99 6.10.3.5. 4148#define debug(...) fprintf (stderr, __VA_ARGS__) 4149#define showlist(...) puts (#__VA_ARGS__) 4150#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4151static void 4152test_varargs_macros (void) 4153{ 4154 int x = 1234; 4155 int y = 5678; 4156 debug ("Flag"); 4157 debug ("X = %d\n", x); 4158 showlist (The first, second, and third items.); 4159 report (x>y, "x is %d but y is %d", x, y); 4160} 4161 4162// Check long long types. 4163#define BIG64 18446744073709551615ull 4164#define BIG32 4294967295ul 4165#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4166#if !BIG_OK 4167 your preprocessor is broken; 4168#endif 4169#if BIG_OK 4170#else 4171 your preprocessor is broken; 4172#endif 4173static long long int bignum = -9223372036854775807LL; 4174static unsigned long long int ubignum = BIG64; 4175 4176struct incomplete_array 4177{ 4178 int datasize; 4179 double data[]; 4180}; 4181 4182struct named_init { 4183 int number; 4184 const wchar_t *name; 4185 double average; 4186}; 4187 4188typedef const char *ccp; 4189 4190static inline int 4191test_restrict (ccp restrict text) 4192{ 4193 // See if C++-style comments work. 4194 // Iterate through items via the restricted pointer. 4195 // Also check for declarations in for loops. 4196 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4197 continue; 4198 return 0; 4199} 4200 4201// Check varargs and va_copy. 4202static void 4203test_varargs (const char *format, ...) 4204{ 4205 va_list args; 4206 va_start (args, format); 4207 va_list args_copy; 4208 va_copy (args_copy, args); 4209 4210 const char *str; 4211 int number; 4212 float fnumber; 4213 4214 while (*format) 4215 { 4216 switch (*format++) 4217 { 4218 case 's': // string 4219 str = va_arg (args_copy, const char *); 4220 break; 4221 case 'd': // int 4222 number = va_arg (args_copy, int); 4223 break; 4224 case 'f': // float 4225 fnumber = va_arg (args_copy, double); 4226 break; 4227 default: 4228 break; 4229 } 4230 } 4231 va_end (args_copy); 4232 va_end (args); 4233} 4234 4235int 4236main () 4237{ 4238 4239 // Check bool. 4240 _Bool success = false; 4241 4242 // Check restrict. 4243 if (test_restrict ("String literal") == 0) 4244 success = true; 4245 char *restrict newvar = "Another string"; 4246 4247 // Check varargs. 4248 test_varargs ("s, d' f .", "string", 65, 34.234); 4249 test_varargs_macros (); 4250 4251 // Check flexible array members. 4252 struct incomplete_array *ia = 4253 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4254 ia->datasize = 10; 4255 for (int i = 0; i < ia->datasize; ++i) 4256 ia->data[i] = i * 1.234; 4257 4258 // Check named initializers. 4259 struct named_init ni = { 4260 .number = 34, 4261 .name = L"Test wide string", 4262 .average = 543.34343, 4263 }; 4264 4265 ni.number = 58; 4266 4267 int dynamic_array[ni.number]; 4268 dynamic_array[ni.number - 1] = 543; 4269 4270 // work around unused variable warnings 4271 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4272 || dynamic_array[ni.number - 1] != 543); 4273 4274 ; 4275 return 0; 4276} 4277_ACEOF 4278for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4279do 4280 CC="$ac_save_CC $ac_arg" 4281 if ac_fn_c_try_compile "$LINENO"; then : 4282 ac_cv_prog_cc_c99=$ac_arg 4283fi 4284rm -f core conftest.err conftest.$ac_objext 4285 test "x$ac_cv_prog_cc_c99" != "xno" && break 4286done 4287rm -f conftest.$ac_ext 4288CC=$ac_save_CC 4289 4290fi 4291# AC_CACHE_VAL 4292case "x$ac_cv_prog_cc_c99" in 4293 x) 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4295$as_echo "none needed" >&6; } ;; 4296 xno) 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4298$as_echo "unsupported" >&6; } ;; 4299 *) 4300 CC="$CC $ac_cv_prog_cc_c99" 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4302$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4303esac 4304if test "x$ac_cv_prog_cc_c99" != xno; then : 4305 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4306else 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4308$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4309if ${ac_cv_prog_cc_c89+:} false; then : 4310 $as_echo_n "(cached) " >&6 4311else 4312 ac_cv_prog_cc_c89=no 4313ac_save_CC=$CC 4314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4315/* end confdefs.h. */ 4316#include <stdarg.h> 4317#include <stdio.h> 4318struct stat; 4319/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4320struct buf { int x; }; 4321FILE * (*rcsopen) (struct buf *, struct stat *, int); 4322static char *e (p, i) 4323 char **p; 4324 int i; 4325{ 4326 return p[i]; 4327} 4328static char *f (char * (*g) (char **, int), char **p, ...) 4329{ 4330 char *s; 4331 va_list v; 4332 va_start (v,p); 4333 s = g (p, va_arg (v,int)); 4334 va_end (v); 4335 return s; 4336} 4337 4338/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4339 function prototypes and stuff, but not '\xHH' hex character constants. 4340 These don't provoke an error unfortunately, instead are silently treated 4341 as 'x'. The following induces an error, until -std is added to get 4342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4343 array size at least. It's necessary to write '\x00'==0 to get something 4344 that's true only with -std. */ 4345int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4346 4347/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4348 inside strings and character constants. */ 4349#define FOO(x) 'x' 4350int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4351 4352int test (int i, double x); 4353struct s1 {int (*f) (int a);}; 4354struct s2 {int (*f) (double a);}; 4355int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4356int argc; 4357char **argv; 4358int 4359main () 4360{ 4361return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4362 ; 4363 return 0; 4364} 4365_ACEOF 4366for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4368do 4369 CC="$ac_save_CC $ac_arg" 4370 if ac_fn_c_try_compile "$LINENO"; then : 4371 ac_cv_prog_cc_c89=$ac_arg 4372fi 4373rm -f core conftest.err conftest.$ac_objext 4374 test "x$ac_cv_prog_cc_c89" != "xno" && break 4375done 4376rm -f conftest.$ac_ext 4377CC=$ac_save_CC 4378 4379fi 4380# AC_CACHE_VAL 4381case "x$ac_cv_prog_cc_c89" in 4382 x) 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4384$as_echo "none needed" >&6; } ;; 4385 xno) 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4387$as_echo "unsupported" >&6; } ;; 4388 *) 4389 CC="$CC $ac_cv_prog_cc_c89" 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4391$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4392esac 4393if test "x$ac_cv_prog_cc_c89" != xno; then : 4394 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4395else 4396 ac_cv_prog_cc_stdc=no 4397fi 4398 4399fi 4400 ;; 4401esac 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4403$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4404 if ${ac_cv_prog_cc_stdc+:} false; then : 4405 $as_echo_n "(cached) " >&6 4406fi 4407 4408 case $ac_cv_prog_cc_stdc in #( 4409 no) : 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4411$as_echo "unsupported" >&6; } ;; #( 4412 '') : 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4414$as_echo "none needed" >&6; } ;; #( 4415 *) : 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4417$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4418esac 4419 4420ac_ext=c 4421ac_cpp='$CPP $CPPFLAGS' 4422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4424ac_compiler_gnu=$ac_cv_c_compiler_gnu 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4426$as_echo_n "checking how to run the C preprocessor... " >&6; } 4427# On Suns, sometimes $CPP names a directory. 4428if test -n "$CPP" && test -d "$CPP"; then 4429 CPP= 4430fi 4431if test -z "$CPP"; then 4432 if ${ac_cv_prog_CPP+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 # Double quotes because CPP needs to be expanded 4436 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4437 do 4438 ac_preproc_ok=false 4439for ac_c_preproc_warn_flag in '' yes 4440do 4441 # Use a header file that comes with gcc, so configuring glibc 4442 # with a fresh cross-compiler works. 4443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4444 # <limits.h> exists even on freestanding compilers. 4445 # On the NeXT, cc -E runs the code through the compiler's parser, 4446 # not just through cpp. "Syntax error" is here to catch this case. 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448/* end confdefs.h. */ 4449#ifdef __STDC__ 4450# include <limits.h> 4451#else 4452# include <assert.h> 4453#endif 4454 Syntax error 4455_ACEOF 4456if ac_fn_c_try_cpp "$LINENO"; then : 4457 4458else 4459 # Broken: fails on valid input. 4460continue 4461fi 4462rm -f conftest.err conftest.i conftest.$ac_ext 4463 4464 # OK, works on sane cases. Now check whether nonexistent headers 4465 # can be detected and how. 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467/* end confdefs.h. */ 4468#include <ac_nonexistent.h> 4469_ACEOF 4470if ac_fn_c_try_cpp "$LINENO"; then : 4471 # Broken: success on invalid input. 4472continue 4473else 4474 # Passes both tests. 4475ac_preproc_ok=: 4476break 4477fi 4478rm -f conftest.err conftest.i conftest.$ac_ext 4479 4480done 4481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4482rm -f conftest.i conftest.err conftest.$ac_ext 4483if $ac_preproc_ok; then : 4484 break 4485fi 4486 4487 done 4488 ac_cv_prog_CPP=$CPP 4489 4490fi 4491 CPP=$ac_cv_prog_CPP 4492else 4493 ac_cv_prog_CPP=$CPP 4494fi 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4496$as_echo "$CPP" >&6; } 4497ac_preproc_ok=false 4498for ac_c_preproc_warn_flag in '' yes 4499do 4500 # Use a header file that comes with gcc, so configuring glibc 4501 # with a fresh cross-compiler works. 4502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4503 # <limits.h> exists even on freestanding compilers. 4504 # On the NeXT, cc -E runs the code through the compiler's parser, 4505 # not just through cpp. "Syntax error" is here to catch this case. 4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4507/* end confdefs.h. */ 4508#ifdef __STDC__ 4509# include <limits.h> 4510#else 4511# include <assert.h> 4512#endif 4513 Syntax error 4514_ACEOF 4515if ac_fn_c_try_cpp "$LINENO"; then : 4516 4517else 4518 # Broken: fails on valid input. 4519continue 4520fi 4521rm -f conftest.err conftest.i conftest.$ac_ext 4522 4523 # OK, works on sane cases. Now check whether nonexistent headers 4524 # can be detected and how. 4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527#include <ac_nonexistent.h> 4528_ACEOF 4529if ac_fn_c_try_cpp "$LINENO"; then : 4530 # Broken: success on invalid input. 4531continue 4532else 4533 # Passes both tests. 4534ac_preproc_ok=: 4535break 4536fi 4537rm -f conftest.err conftest.i conftest.$ac_ext 4538 4539done 4540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4541rm -f conftest.i conftest.err conftest.$ac_ext 4542if $ac_preproc_ok; then : 4543 4544else 4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4547as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4548See \`config.log' for more details" "$LINENO" 5; } 4549fi 4550 4551ac_ext=c 4552ac_cpp='$CPP $CPPFLAGS' 4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4555ac_compiler_gnu=$ac_cv_c_compiler_gnu 4556 4557ac_ext=cpp 4558ac_cpp='$CXXCPP $CPPFLAGS' 4559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4562if test -z "$CXX"; then 4563 if test -n "$CCC"; then 4564 CXX=$CCC 4565 else 4566 if test -n "$ac_tool_prefix"; then 4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4568 do 4569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4570set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4572$as_echo_n "checking for $ac_word... " >&6; } 4573if ${ac_cv_prog_CXX+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 if test -n "$CXX"; then 4577 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4578else 4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_exec_ext in '' $ac_executable_extensions; do 4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4586 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4588 break 2 4589 fi 4590done 4591 done 4592IFS=$as_save_IFS 4593 4594fi 4595fi 4596CXX=$ac_cv_prog_CXX 4597if test -n "$CXX"; then 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4599$as_echo "$CXX" >&6; } 4600else 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4602$as_echo "no" >&6; } 4603fi 4604 4605 4606 test -n "$CXX" && break 4607 done 4608fi 4609if test -z "$CXX"; then 4610 ac_ct_CXX=$CXX 4611 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4612do 4613 # Extract the first word of "$ac_prog", so it can be a program name with args. 4614set dummy $ac_prog; ac_word=$2 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4616$as_echo_n "checking for $ac_word... " >&6; } 4617if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if test -n "$ac_ct_CXX"; then 4621 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4622else 4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_exec_ext in '' $ac_executable_extensions; do 4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4630 ac_cv_prog_ac_ct_CXX="$ac_prog" 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4632 break 2 4633 fi 4634done 4635 done 4636IFS=$as_save_IFS 4637 4638fi 4639fi 4640ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4641if test -n "$ac_ct_CXX"; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4643$as_echo "$ac_ct_CXX" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4646$as_echo "no" >&6; } 4647fi 4648 4649 4650 test -n "$ac_ct_CXX" && break 4651done 4652 4653 if test "x$ac_ct_CXX" = x; then 4654 CXX="g++" 4655 else 4656 case $cross_compiling:$ac_tool_warned in 4657yes:) 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4660ac_tool_warned=yes ;; 4661esac 4662 CXX=$ac_ct_CXX 4663 fi 4664fi 4665 4666 fi 4667fi 4668# Provide some information about the compiler. 4669$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4670set X $ac_compile 4671ac_compiler=$2 4672for ac_option in --version -v -V -qversion; do 4673 { { ac_try="$ac_compiler $ac_option >&5" 4674case "(($ac_try" in 4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4676 *) ac_try_echo=$ac_try;; 4677esac 4678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4679$as_echo "$ac_try_echo"; } >&5 4680 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4681 ac_status=$? 4682 if test -s conftest.err; then 4683 sed '10a\ 4684... rest of stderr output deleted ... 4685 10q' conftest.err >conftest.er1 4686 cat conftest.er1 >&5 4687 fi 4688 rm -f conftest.er1 conftest.err 4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4690 test $ac_status = 0; } 4691done 4692 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4694$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4695if ${ac_cv_cxx_compiler_gnu+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699/* end confdefs.h. */ 4700 4701int 4702main () 4703{ 4704#ifndef __GNUC__ 4705 choke me 4706#endif 4707 4708 ; 4709 return 0; 4710} 4711_ACEOF 4712if ac_fn_cxx_try_compile "$LINENO"; then : 4713 ac_compiler_gnu=yes 4714else 4715 ac_compiler_gnu=no 4716fi 4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4718ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4719 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4722$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4723if test $ac_compiler_gnu = yes; then 4724 GXX=yes 4725else 4726 GXX= 4727fi 4728ac_test_CXXFLAGS=${CXXFLAGS+set} 4729ac_save_CXXFLAGS=$CXXFLAGS 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4731$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4732if ${ac_cv_prog_cxx_g+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4736 ac_cxx_werror_flag=yes 4737 ac_cv_prog_cxx_g=no 4738 CXXFLAGS="-g" 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740/* end confdefs.h. */ 4741 4742int 4743main () 4744{ 4745 4746 ; 4747 return 0; 4748} 4749_ACEOF 4750if ac_fn_cxx_try_compile "$LINENO"; then : 4751 ac_cv_prog_cxx_g=yes 4752else 4753 CXXFLAGS="" 4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4755/* end confdefs.h. */ 4756 4757int 4758main () 4759{ 4760 4761 ; 4762 return 0; 4763} 4764_ACEOF 4765if ac_fn_cxx_try_compile "$LINENO"; then : 4766 4767else 4768 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4769 CXXFLAGS="-g" 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4771/* end confdefs.h. */ 4772 4773int 4774main () 4775{ 4776 4777 ; 4778 return 0; 4779} 4780_ACEOF 4781if ac_fn_cxx_try_compile "$LINENO"; then : 4782 ac_cv_prog_cxx_g=yes 4783fi 4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4785fi 4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4787fi 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4792$as_echo "$ac_cv_prog_cxx_g" >&6; } 4793if test "$ac_test_CXXFLAGS" = set; then 4794 CXXFLAGS=$ac_save_CXXFLAGS 4795elif test $ac_cv_prog_cxx_g = yes; then 4796 if test "$GXX" = yes; then 4797 CXXFLAGS="-g -O2" 4798 else 4799 CXXFLAGS="-g" 4800 fi 4801else 4802 if test "$GXX" = yes; then 4803 CXXFLAGS="-O2" 4804 else 4805 CXXFLAGS= 4806 fi 4807fi 4808ac_ext=c 4809ac_cpp='$CPP $CPPFLAGS' 4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4812ac_compiler_gnu=$ac_cv_c_compiler_gnu 4813 4814depcc="$CXX" am_compiler_list= 4815 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4817$as_echo_n "checking dependency style of $depcc... " >&6; } 4818if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4822 # We make a subdir and do the tests there. Otherwise we can end up 4823 # making bogus files that we don't know about and never remove. For 4824 # instance it was reported that on HP-UX the gcc test will end up 4825 # making a dummy file named 'D' -- because '-MD' means "put the output 4826 # in D". 4827 rm -rf conftest.dir 4828 mkdir conftest.dir 4829 # Copy depcomp to subdir because otherwise we won't find it if we're 4830 # using a relative directory. 4831 cp "$am_depcomp" conftest.dir 4832 cd conftest.dir 4833 # We will build objects and dependencies in a subdirectory because 4834 # it helps to detect inapplicable dependency modes. For instance 4835 # both Tru64's cc and ICC support -MD to output dependencies as a 4836 # side effect of compilation, but ICC will put the dependencies in 4837 # the current directory while Tru64 will put them in the object 4838 # directory. 4839 mkdir sub 4840 4841 am_cv_CXX_dependencies_compiler_type=none 4842 if test "$am_compiler_list" = ""; then 4843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4844 fi 4845 am__universal=false 4846 case " $depcc " in #( 4847 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4848 esac 4849 4850 for depmode in $am_compiler_list; do 4851 # Setup a source with many dependencies, because some compilers 4852 # like to wrap large dependency lists on column 80 (with \), and 4853 # we should not choose a depcomp mode which is confused by this. 4854 # 4855 # We need to recreate these files for each test, as the compiler may 4856 # overwrite some of them when testing with obscure command lines. 4857 # This happens at least with the AIX C compiler. 4858 : > sub/conftest.c 4859 for i in 1 2 3 4 5 6; do 4860 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4861 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4862 # Solaris 10 /bin/sh. 4863 echo '/* dummy */' > sub/conftst$i.h 4864 done 4865 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4866 4867 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4868 # mode. It turns out that the SunPro C++ compiler does not properly 4869 # handle '-M -o', and we need to detect this. Also, some Intel 4870 # versions had trouble with output in subdirs. 4871 am__obj=sub/conftest.${OBJEXT-o} 4872 am__minus_obj="-o $am__obj" 4873 case $depmode in 4874 gcc) 4875 # This depmode causes a compiler race in universal mode. 4876 test "$am__universal" = false || continue 4877 ;; 4878 nosideeffect) 4879 # After this tag, mechanisms are not by side-effect, so they'll 4880 # only be used when explicitly requested. 4881 if test "x$enable_dependency_tracking" = xyes; then 4882 continue 4883 else 4884 break 4885 fi 4886 ;; 4887 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4888 # This compiler won't grok '-c -o', but also, the minuso test has 4889 # not run yet. These depmodes are late enough in the game, and 4890 # so weak that their functioning should not be impacted. 4891 am__obj=conftest.${OBJEXT-o} 4892 am__minus_obj= 4893 ;; 4894 none) break ;; 4895 esac 4896 if depmode=$depmode \ 4897 source=sub/conftest.c object=$am__obj \ 4898 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4899 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4900 >/dev/null 2>conftest.err && 4901 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4903 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4905 # icc doesn't choke on unknown options, it will just issue warnings 4906 # or remarks (even with -Werror). So we grep stderr for any message 4907 # that says an option was ignored or not supported. 4908 # When given -MP, icc 7.0 and 7.1 complain thusly: 4909 # icc: Command line warning: ignoring option '-M'; no argument required 4910 # The diagnosis changed in icc 8.0: 4911 # icc: Command line remark: option '-MP' not supported 4912 if (grep 'ignoring option' conftest.err || 4913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4914 am_cv_CXX_dependencies_compiler_type=$depmode 4915 break 4916 fi 4917 fi 4918 done 4919 4920 cd .. 4921 rm -rf conftest.dir 4922else 4923 am_cv_CXX_dependencies_compiler_type=none 4924fi 4925 4926fi 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4928$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4929CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4930 4931 if 4932 test "x$enable_dependency_tracking" != xno \ 4933 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4934 am__fastdepCXX_TRUE= 4935 am__fastdepCXX_FALSE='#' 4936else 4937 am__fastdepCXX_TRUE='#' 4938 am__fastdepCXX_FALSE= 4939fi 4940 4941 4942 4943#AM_PROG_LD 4944#AC_SUBST(LD) 4945#AC_PROG_INSTALL 4946#AC_PROG_MAKE_SET 4947#AC_PROG_LN_S 4948 4949# 4950# Tests for Windows 4951# 4952 4953 4954 4955# Configure libtool 4956# Check whether --enable-shared was given. 4957if test "${enable_shared+set}" = set; then : 4958 enableval=$enable_shared; p=${PACKAGE-default} 4959 case $enableval in 4960 yes) enable_shared=yes ;; 4961 no) enable_shared=no ;; 4962 *) 4963 enable_shared=no 4964 # Look at the argument we got. We use all the common list separators. 4965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4966 for pkg in $enableval; do 4967 IFS="$lt_save_ifs" 4968 if test "X$pkg" = "X$p"; then 4969 enable_shared=yes 4970 fi 4971 done 4972 IFS="$lt_save_ifs" 4973 ;; 4974 esac 4975else 4976 enable_shared=yes 4977fi 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987# Check whether --enable-static was given. 4988if test "${enable_static+set}" = set; then : 4989 enableval=$enable_static; p=${PACKAGE-default} 4990 case $enableval in 4991 yes) enable_static=yes ;; 4992 no) enable_static=no ;; 4993 *) 4994 enable_static=no 4995 # Look at the argument we got. We use all the common list separators. 4996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4997 for pkg in $enableval; do 4998 IFS="$lt_save_ifs" 4999 if test "X$pkg" = "X$p"; then 5000 enable_static=yes 5001 fi 5002 done 5003 IFS="$lt_save_ifs" 5004 ;; 5005 esac 5006else 5007 enable_static=yes 5008fi 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018enable_win32_dll=yes 5019 5020case $host in 5021*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5022 if test -n "$ac_tool_prefix"; then 5023 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5024set dummy ${ac_tool_prefix}as; ac_word=$2 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5026$as_echo_n "checking for $ac_word... " >&6; } 5027if ${ac_cv_prog_AS+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 if test -n "$AS"; then 5031 ac_cv_prog_AS="$AS" # Let the user override the test. 5032else 5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5034for as_dir in $PATH 5035do 5036 IFS=$as_save_IFS 5037 test -z "$as_dir" && as_dir=. 5038 for ac_exec_ext in '' $ac_executable_extensions; do 5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5040 ac_cv_prog_AS="${ac_tool_prefix}as" 5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5042 break 2 5043 fi 5044done 5045 done 5046IFS=$as_save_IFS 5047 5048fi 5049fi 5050AS=$ac_cv_prog_AS 5051if test -n "$AS"; then 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5053$as_echo "$AS" >&6; } 5054else 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5056$as_echo "no" >&6; } 5057fi 5058 5059 5060fi 5061if test -z "$ac_cv_prog_AS"; then 5062 ac_ct_AS=$AS 5063 # Extract the first word of "as", so it can be a program name with args. 5064set dummy as; ac_word=$2 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5066$as_echo_n "checking for $ac_word... " >&6; } 5067if ${ac_cv_prog_ac_ct_AS+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 if test -n "$ac_ct_AS"; then 5071 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5072else 5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074for as_dir in $PATH 5075do 5076 IFS=$as_save_IFS 5077 test -z "$as_dir" && as_dir=. 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5080 ac_cv_prog_ac_ct_AS="as" 5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 break 2 5083 fi 5084done 5085 done 5086IFS=$as_save_IFS 5087 5088fi 5089fi 5090ac_ct_AS=$ac_cv_prog_ac_ct_AS 5091if test -n "$ac_ct_AS"; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5093$as_echo "$ac_ct_AS" >&6; } 5094else 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5096$as_echo "no" >&6; } 5097fi 5098 5099 if test "x$ac_ct_AS" = x; then 5100 AS="false" 5101 else 5102 case $cross_compiling:$ac_tool_warned in 5103yes:) 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5106ac_tool_warned=yes ;; 5107esac 5108 AS=$ac_ct_AS 5109 fi 5110else 5111 AS="$ac_cv_prog_AS" 5112fi 5113 5114 if test -n "$ac_tool_prefix"; then 5115 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5116set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5118$as_echo_n "checking for $ac_word... " >&6; } 5119if ${ac_cv_prog_DLLTOOL+:} false; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 if test -n "$DLLTOOL"; then 5123 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5124else 5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5126for as_dir in $PATH 5127do 5128 IFS=$as_save_IFS 5129 test -z "$as_dir" && as_dir=. 5130 for ac_exec_ext in '' $ac_executable_extensions; do 5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5132 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5134 break 2 5135 fi 5136done 5137 done 5138IFS=$as_save_IFS 5139 5140fi 5141fi 5142DLLTOOL=$ac_cv_prog_DLLTOOL 5143if test -n "$DLLTOOL"; then 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5145$as_echo "$DLLTOOL" >&6; } 5146else 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148$as_echo "no" >&6; } 5149fi 5150 5151 5152fi 5153if test -z "$ac_cv_prog_DLLTOOL"; then 5154 ac_ct_DLLTOOL=$DLLTOOL 5155 # Extract the first word of "dlltool", so it can be a program name with args. 5156set dummy dlltool; ac_word=$2 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5158$as_echo_n "checking for $ac_word... " >&6; } 5159if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 if test -n "$ac_ct_DLLTOOL"; then 5163 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5164else 5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5166for as_dir in $PATH 5167do 5168 IFS=$as_save_IFS 5169 test -z "$as_dir" && as_dir=. 5170 for ac_exec_ext in '' $ac_executable_extensions; do 5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5172 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5174 break 2 5175 fi 5176done 5177 done 5178IFS=$as_save_IFS 5179 5180fi 5181fi 5182ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5183if test -n "$ac_ct_DLLTOOL"; then 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5185$as_echo "$ac_ct_DLLTOOL" >&6; } 5186else 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5188$as_echo "no" >&6; } 5189fi 5190 5191 if test "x$ac_ct_DLLTOOL" = x; then 5192 DLLTOOL="false" 5193 else 5194 case $cross_compiling:$ac_tool_warned in 5195yes:) 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5198ac_tool_warned=yes ;; 5199esac 5200 DLLTOOL=$ac_ct_DLLTOOL 5201 fi 5202else 5203 DLLTOOL="$ac_cv_prog_DLLTOOL" 5204fi 5205 5206 if test -n "$ac_tool_prefix"; then 5207 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5208set dummy ${ac_tool_prefix}objdump; ac_word=$2 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5210$as_echo_n "checking for $ac_word... " >&6; } 5211if ${ac_cv_prog_OBJDUMP+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 if test -n "$OBJDUMP"; then 5215 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5216else 5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5218for as_dir in $PATH 5219do 5220 IFS=$as_save_IFS 5221 test -z "$as_dir" && as_dir=. 5222 for ac_exec_ext in '' $ac_executable_extensions; do 5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5224 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5226 break 2 5227 fi 5228done 5229 done 5230IFS=$as_save_IFS 5231 5232fi 5233fi 5234OBJDUMP=$ac_cv_prog_OBJDUMP 5235if test -n "$OBJDUMP"; then 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5237$as_echo "$OBJDUMP" >&6; } 5238else 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5240$as_echo "no" >&6; } 5241fi 5242 5243 5244fi 5245if test -z "$ac_cv_prog_OBJDUMP"; then 5246 ac_ct_OBJDUMP=$OBJDUMP 5247 # Extract the first word of "objdump", so it can be a program name with args. 5248set dummy objdump; ac_word=$2 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5250$as_echo_n "checking for $ac_word... " >&6; } 5251if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 if test -n "$ac_ct_OBJDUMP"; then 5255 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5256else 5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258for as_dir in $PATH 5259do 5260 IFS=$as_save_IFS 5261 test -z "$as_dir" && as_dir=. 5262 for ac_exec_ext in '' $ac_executable_extensions; do 5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5264 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5266 break 2 5267 fi 5268done 5269 done 5270IFS=$as_save_IFS 5271 5272fi 5273fi 5274ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5275if test -n "$ac_ct_OBJDUMP"; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5277$as_echo "$ac_ct_OBJDUMP" >&6; } 5278else 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280$as_echo "no" >&6; } 5281fi 5282 5283 if test "x$ac_ct_OBJDUMP" = x; then 5284 OBJDUMP="false" 5285 else 5286 case $cross_compiling:$ac_tool_warned in 5287yes:) 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5290ac_tool_warned=yes ;; 5291esac 5292 OBJDUMP=$ac_ct_OBJDUMP 5293 fi 5294else 5295 OBJDUMP="$ac_cv_prog_OBJDUMP" 5296fi 5297 5298 ;; 5299esac 5300 5301test -z "$AS" && AS=as 5302 5303 5304 5305 5306 5307test -z "$DLLTOOL" && DLLTOOL=dlltool 5308 5309 5310 5311 5312 5313test -z "$OBJDUMP" && OBJDUMP=objdump 5314 5315 5316 5317 5318 5319 5320 5321 5322case `pwd` in 5323 *\ * | *\ *) 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5325$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5326esac 5327 5328 5329 5330macro_version='2.4.2' 5331macro_revision='1.3337' 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345ltmain="$ac_aux_dir/ltmain.sh" 5346 5347# Backslashify metacharacters that are still active within 5348# double-quoted strings. 5349sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5350 5351# Same as above, but do not quote variable references. 5352double_quote_subst='s/\(["`\\]\)/\\\1/g' 5353 5354# Sed substitution to delay expansion of an escaped shell variable in a 5355# double_quote_subst'ed string. 5356delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5357 5358# Sed substitution to delay expansion of an escaped single quote. 5359delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5360 5361# Sed substitution to avoid accidental globbing in evaled expressions 5362no_glob_subst='s/\*/\\\*/g' 5363 5364ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5365ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5366ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5367 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5369$as_echo_n "checking how to print strings... " >&6; } 5370# Test print first, because it will be a builtin if present. 5371if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5372 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5373 ECHO='print -r --' 5374elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5375 ECHO='printf %s\n' 5376else 5377 # Use this function as a fallback that always works. 5378 func_fallback_echo () 5379 { 5380 eval 'cat <<_LTECHO_EOF 5381$1 5382_LTECHO_EOF' 5383 } 5384 ECHO='func_fallback_echo' 5385fi 5386 5387# func_echo_all arg... 5388# Invoke $ECHO with all args, space-separated. 5389func_echo_all () 5390{ 5391 $ECHO "" 5392} 5393 5394case "$ECHO" in 5395 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5396$as_echo "printf" >&6; } ;; 5397 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5398$as_echo "print -r" >&6; } ;; 5399 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5400$as_echo "cat" >&6; } ;; 5401esac 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5417$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5418if ${ac_cv_path_SED+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5422 for ac_i in 1 2 3 4 5 6 7; do 5423 ac_script="$ac_script$as_nl$ac_script" 5424 done 5425 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5426 { ac_script=; unset ac_script;} 5427 if test -z "$SED"; then 5428 ac_path_SED_found=false 5429 # Loop through the user's path and test for each of PROGNAME-LIST 5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5431for as_dir in $PATH 5432do 5433 IFS=$as_save_IFS 5434 test -z "$as_dir" && as_dir=. 5435 for ac_prog in sed gsed; do 5436 for ac_exec_ext in '' $ac_executable_extensions; do 5437 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5438 as_fn_executable_p "$ac_path_SED" || continue 5439# Check for GNU ac_path_SED and select it if it is found. 5440 # Check for GNU $ac_path_SED 5441case `"$ac_path_SED" --version 2>&1` in 5442*GNU*) 5443 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5444*) 5445 ac_count=0 5446 $as_echo_n 0123456789 >"conftest.in" 5447 while : 5448 do 5449 cat "conftest.in" "conftest.in" >"conftest.tmp" 5450 mv "conftest.tmp" "conftest.in" 5451 cp "conftest.in" "conftest.nl" 5452 $as_echo '' >> "conftest.nl" 5453 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5455 as_fn_arith $ac_count + 1 && ac_count=$as_val 5456 if test $ac_count -gt ${ac_path_SED_max-0}; then 5457 # Best one so far, save it but keep looking for a better one 5458 ac_cv_path_SED="$ac_path_SED" 5459 ac_path_SED_max=$ac_count 5460 fi 5461 # 10*(2^10) chars as input seems more than enough 5462 test $ac_count -gt 10 && break 5463 done 5464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5465esac 5466 5467 $ac_path_SED_found && break 3 5468 done 5469 done 5470 done 5471IFS=$as_save_IFS 5472 if test -z "$ac_cv_path_SED"; then 5473 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5474 fi 5475else 5476 ac_cv_path_SED=$SED 5477fi 5478 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5481$as_echo "$ac_cv_path_SED" >&6; } 5482 SED="$ac_cv_path_SED" 5483 rm -f conftest.sed 5484 5485test -z "$SED" && SED=sed 5486Xsed="$SED -e 1s/^X//" 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5499$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5500if ${ac_cv_path_GREP+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 if test -z "$GREP"; then 5504 ac_path_GREP_found=false 5505 # Loop through the user's path and test for each of PROGNAME-LIST 5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5508do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_prog in grep ggrep; do 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5514 as_fn_executable_p "$ac_path_GREP" || continue 5515# Check for GNU ac_path_GREP and select it if it is found. 5516 # Check for GNU $ac_path_GREP 5517case `"$ac_path_GREP" --version 2>&1` in 5518*GNU*) 5519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5520*) 5521 ac_count=0 5522 $as_echo_n 0123456789 >"conftest.in" 5523 while : 5524 do 5525 cat "conftest.in" "conftest.in" >"conftest.tmp" 5526 mv "conftest.tmp" "conftest.in" 5527 cp "conftest.in" "conftest.nl" 5528 $as_echo 'GREP' >> "conftest.nl" 5529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5531 as_fn_arith $ac_count + 1 && ac_count=$as_val 5532 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5533 # Best one so far, save it but keep looking for a better one 5534 ac_cv_path_GREP="$ac_path_GREP" 5535 ac_path_GREP_max=$ac_count 5536 fi 5537 # 10*(2^10) chars as input seems more than enough 5538 test $ac_count -gt 10 && break 5539 done 5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5541esac 5542 5543 $ac_path_GREP_found && break 3 5544 done 5545 done 5546 done 5547IFS=$as_save_IFS 5548 if test -z "$ac_cv_path_GREP"; then 5549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5550 fi 5551else 5552 ac_cv_path_GREP=$GREP 5553fi 5554 5555fi 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5557$as_echo "$ac_cv_path_GREP" >&6; } 5558 GREP="$ac_cv_path_GREP" 5559 5560 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5562$as_echo_n "checking for egrep... " >&6; } 5563if ${ac_cv_path_EGREP+:} false; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5567 then ac_cv_path_EGREP="$GREP -E" 5568 else 5569 if test -z "$EGREP"; then 5570 ac_path_EGREP_found=false 5571 # Loop through the user's path and test for each of PROGNAME-LIST 5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5574do 5575 IFS=$as_save_IFS 5576 test -z "$as_dir" && as_dir=. 5577 for ac_prog in egrep; do 5578 for ac_exec_ext in '' $ac_executable_extensions; do 5579 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5580 as_fn_executable_p "$ac_path_EGREP" || continue 5581# Check for GNU ac_path_EGREP and select it if it is found. 5582 # Check for GNU $ac_path_EGREP 5583case `"$ac_path_EGREP" --version 2>&1` in 5584*GNU*) 5585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5586*) 5587 ac_count=0 5588 $as_echo_n 0123456789 >"conftest.in" 5589 while : 5590 do 5591 cat "conftest.in" "conftest.in" >"conftest.tmp" 5592 mv "conftest.tmp" "conftest.in" 5593 cp "conftest.in" "conftest.nl" 5594 $as_echo 'EGREP' >> "conftest.nl" 5595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5597 as_fn_arith $ac_count + 1 && ac_count=$as_val 5598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5599 # Best one so far, save it but keep looking for a better one 5600 ac_cv_path_EGREP="$ac_path_EGREP" 5601 ac_path_EGREP_max=$ac_count 5602 fi 5603 # 10*(2^10) chars as input seems more than enough 5604 test $ac_count -gt 10 && break 5605 done 5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5607esac 5608 5609 $ac_path_EGREP_found && break 3 5610 done 5611 done 5612 done 5613IFS=$as_save_IFS 5614 if test -z "$ac_cv_path_EGREP"; then 5615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5616 fi 5617else 5618 ac_cv_path_EGREP=$EGREP 5619fi 5620 5621 fi 5622fi 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5624$as_echo "$ac_cv_path_EGREP" >&6; } 5625 EGREP="$ac_cv_path_EGREP" 5626 5627 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5629$as_echo_n "checking for fgrep... " >&6; } 5630if ${ac_cv_path_FGREP+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5634 then ac_cv_path_FGREP="$GREP -F" 5635 else 5636 if test -z "$FGREP"; then 5637 ac_path_FGREP_found=false 5638 # Loop through the user's path and test for each of PROGNAME-LIST 5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5641do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_prog in fgrep; do 5645 for ac_exec_ext in '' $ac_executable_extensions; do 5646 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5647 as_fn_executable_p "$ac_path_FGREP" || continue 5648# Check for GNU ac_path_FGREP and select it if it is found. 5649 # Check for GNU $ac_path_FGREP 5650case `"$ac_path_FGREP" --version 2>&1` in 5651*GNU*) 5652 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5653*) 5654 ac_count=0 5655 $as_echo_n 0123456789 >"conftest.in" 5656 while : 5657 do 5658 cat "conftest.in" "conftest.in" >"conftest.tmp" 5659 mv "conftest.tmp" "conftest.in" 5660 cp "conftest.in" "conftest.nl" 5661 $as_echo 'FGREP' >> "conftest.nl" 5662 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5664 as_fn_arith $ac_count + 1 && ac_count=$as_val 5665 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5666 # Best one so far, save it but keep looking for a better one 5667 ac_cv_path_FGREP="$ac_path_FGREP" 5668 ac_path_FGREP_max=$ac_count 5669 fi 5670 # 10*(2^10) chars as input seems more than enough 5671 test $ac_count -gt 10 && break 5672 done 5673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5674esac 5675 5676 $ac_path_FGREP_found && break 3 5677 done 5678 done 5679 done 5680IFS=$as_save_IFS 5681 if test -z "$ac_cv_path_FGREP"; then 5682 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5683 fi 5684else 5685 ac_cv_path_FGREP=$FGREP 5686fi 5687 5688 fi 5689fi 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5691$as_echo "$ac_cv_path_FGREP" >&6; } 5692 FGREP="$ac_cv_path_FGREP" 5693 5694 5695test -z "$GREP" && GREP=grep 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715# Check whether --with-gnu-ld was given. 5716if test "${with_gnu_ld+set}" = set; then : 5717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5718else 5719 with_gnu_ld=no 5720fi 5721 5722ac_prog=ld 5723if test "$GCC" = yes; then 5724 # Check if gcc -print-prog-name=ld gives a path. 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5726$as_echo_n "checking for ld used by $CC... " >&6; } 5727 case $host in 5728 *-*-mingw*) 5729 # gcc leaves a trailing carriage return which upsets mingw 5730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5731 *) 5732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5733 esac 5734 case $ac_prog in 5735 # Accept absolute paths. 5736 [\\/]* | ?:[\\/]*) 5737 re_direlt='/[^/][^/]*/\.\./' 5738 # Canonicalize the pathname of ld 5739 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5740 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5741 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5742 done 5743 test -z "$LD" && LD="$ac_prog" 5744 ;; 5745 "") 5746 # If it fails, then pretend we aren't using GCC. 5747 ac_prog=ld 5748 ;; 5749 *) 5750 # If it is relative, then search for the first ld in PATH. 5751 with_gnu_ld=unknown 5752 ;; 5753 esac 5754elif test "$with_gnu_ld" = yes; then 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5756$as_echo_n "checking for GNU ld... " >&6; } 5757else 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5759$as_echo_n "checking for non-GNU ld... " >&6; } 5760fi 5761if ${lt_cv_path_LD+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -z "$LD"; then 5765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5766 for ac_dir in $PATH; do 5767 IFS="$lt_save_ifs" 5768 test -z "$ac_dir" && ac_dir=. 5769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5770 lt_cv_path_LD="$ac_dir/$ac_prog" 5771 # Check to see if the program is GNU ld. I'd rather use --version, 5772 # but apparently some variants of GNU ld only accept -v. 5773 # Break only if it was the GNU/non-GNU ld that we prefer. 5774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5775 *GNU* | *'with BFD'*) 5776 test "$with_gnu_ld" != no && break 5777 ;; 5778 *) 5779 test "$with_gnu_ld" != yes && break 5780 ;; 5781 esac 5782 fi 5783 done 5784 IFS="$lt_save_ifs" 5785else 5786 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5787fi 5788fi 5789 5790LD="$lt_cv_path_LD" 5791if test -n "$LD"; then 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5793$as_echo "$LD" >&6; } 5794else 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5796$as_echo "no" >&6; } 5797fi 5798test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5800$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5801if ${lt_cv_prog_gnu_ld+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5805case `$LD -v 2>&1 </dev/null` in 5806*GNU* | *'with BFD'*) 5807 lt_cv_prog_gnu_ld=yes 5808 ;; 5809*) 5810 lt_cv_prog_gnu_ld=no 5811 ;; 5812esac 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5815$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5816with_gnu_ld=$lt_cv_prog_gnu_ld 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5827$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5828if ${lt_cv_path_NM+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 if test -n "$NM"; then 5832 # Let the user override the test. 5833 lt_cv_path_NM="$NM" 5834else 5835 lt_nm_to_check="${ac_tool_prefix}nm" 5836 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5837 lt_nm_to_check="$lt_nm_to_check nm" 5838 fi 5839 for lt_tmp_nm in $lt_nm_to_check; do 5840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5841 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5842 IFS="$lt_save_ifs" 5843 test -z "$ac_dir" && ac_dir=. 5844 tmp_nm="$ac_dir/$lt_tmp_nm" 5845 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5846 # Check to see if the nm accepts a BSD-compat flag. 5847 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5848 # nm: unknown option "B" ignored 5849 # Tru64's nm complains that /dev/null is an invalid object file 5850 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5851 */dev/null* | *'Invalid file or object type'*) 5852 lt_cv_path_NM="$tmp_nm -B" 5853 break 5854 ;; 5855 *) 5856 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5857 */dev/null*) 5858 lt_cv_path_NM="$tmp_nm -p" 5859 break 5860 ;; 5861 *) 5862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5863 continue # so that we can try to find one that supports BSD flags 5864 ;; 5865 esac 5866 ;; 5867 esac 5868 fi 5869 done 5870 IFS="$lt_save_ifs" 5871 done 5872 : ${lt_cv_path_NM=no} 5873fi 5874fi 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5876$as_echo "$lt_cv_path_NM" >&6; } 5877if test "$lt_cv_path_NM" != "no"; then 5878 NM="$lt_cv_path_NM" 5879else 5880 # Didn't find any BSD compatible name lister, look for dumpbin. 5881 if test -n "$DUMPBIN"; then : 5882 # Let the user override the test. 5883 else 5884 if test -n "$ac_tool_prefix"; then 5885 for ac_prog in dumpbin "link -dump" 5886 do 5887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_DUMPBIN+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$DUMPBIN"; then 5895 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914DUMPBIN=$ac_cv_prog_DUMPBIN 5915if test -n "$DUMPBIN"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5917$as_echo "$DUMPBIN" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 5924 test -n "$DUMPBIN" && break 5925 done 5926fi 5927if test -z "$DUMPBIN"; then 5928 ac_ct_DUMPBIN=$DUMPBIN 5929 for ac_prog in dumpbin "link -dump" 5930do 5931 # Extract the first word of "$ac_prog", so it can be a program name with args. 5932set dummy $ac_prog; ac_word=$2 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5934$as_echo_n "checking for $ac_word... " >&6; } 5935if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test -n "$ac_ct_DUMPBIN"; then 5939 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5948 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953 done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5959if test -n "$ac_ct_DUMPBIN"; then 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5961$as_echo "$ac_ct_DUMPBIN" >&6; } 5962else 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964$as_echo "no" >&6; } 5965fi 5966 5967 5968 test -n "$ac_ct_DUMPBIN" && break 5969done 5970 5971 if test "x$ac_ct_DUMPBIN" = x; then 5972 DUMPBIN=":" 5973 else 5974 case $cross_compiling:$ac_tool_warned in 5975yes:) 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5978ac_tool_warned=yes ;; 5979esac 5980 DUMPBIN=$ac_ct_DUMPBIN 5981 fi 5982fi 5983 5984 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5985 *COFF*) 5986 DUMPBIN="$DUMPBIN -symbols" 5987 ;; 5988 *) 5989 DUMPBIN=: 5990 ;; 5991 esac 5992 fi 5993 5994 if test "$DUMPBIN" != ":"; then 5995 NM="$DUMPBIN" 5996 fi 5997fi 5998test -z "$NM" && NM=nm 5999 6000 6001 6002 6003 6004 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6006$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6007if ${lt_cv_nm_interface+:} false; then : 6008 $as_echo_n "(cached) " >&6 6009else 6010 lt_cv_nm_interface="BSD nm" 6011 echo "int some_variable = 0;" > conftest.$ac_ext 6012 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6013 (eval "$ac_compile" 2>conftest.err) 6014 cat conftest.err >&5 6015 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6016 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6017 cat conftest.err >&5 6018 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6019 cat conftest.out >&5 6020 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6021 lt_cv_nm_interface="MS dumpbin" 6022 fi 6023 rm -f conftest* 6024fi 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6026$as_echo "$lt_cv_nm_interface" >&6; } 6027 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6029$as_echo_n "checking whether ln -s works... " >&6; } 6030LN_S=$as_ln_s 6031if test "$LN_S" = "ln -s"; then 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6033$as_echo "yes" >&6; } 6034else 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6036$as_echo "no, using $LN_S" >&6; } 6037fi 6038 6039# find the maximum length of command line arguments 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6041$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6042if ${lt_cv_sys_max_cmd_len+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 i=0 6046 teststring="ABCD" 6047 6048 case $build_os in 6049 msdosdjgpp*) 6050 # On DJGPP, this test can blow up pretty badly due to problems in libc 6051 # (any single argument exceeding 2000 bytes causes a buffer overrun 6052 # during glob expansion). Even if it were fixed, the result of this 6053 # check would be larger than it should be. 6054 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6055 ;; 6056 6057 gnu*) 6058 # Under GNU Hurd, this test is not required because there is 6059 # no limit to the length of command line arguments. 6060 # Libtool will interpret -1 as no limit whatsoever 6061 lt_cv_sys_max_cmd_len=-1; 6062 ;; 6063 6064 cygwin* | mingw* | cegcc*) 6065 # On Win9x/ME, this test blows up -- it succeeds, but takes 6066 # about 5 minutes as the teststring grows exponentially. 6067 # Worse, since 9x/ME are not pre-emptively multitasking, 6068 # you end up with a "frozen" computer, even though with patience 6069 # the test eventually succeeds (with a max line length of 256k). 6070 # Instead, let's just punt: use the minimum linelength reported by 6071 # all of the supported platforms: 8192 (on NT/2K/XP). 6072 lt_cv_sys_max_cmd_len=8192; 6073 ;; 6074 6075 mint*) 6076 # On MiNT this can take a long time and run out of memory. 6077 lt_cv_sys_max_cmd_len=8192; 6078 ;; 6079 6080 amigaos*) 6081 # On AmigaOS with pdksh, this test takes hours, literally. 6082 # So we just punt and use a minimum line length of 8192. 6083 lt_cv_sys_max_cmd_len=8192; 6084 ;; 6085 6086 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6087 # This has been around since 386BSD, at least. Likely further. 6088 if test -x /sbin/sysctl; then 6089 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6090 elif test -x /usr/sbin/sysctl; then 6091 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6092 else 6093 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6094 fi 6095 # And add a safety zone 6096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6098 ;; 6099 6100 interix*) 6101 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6102 lt_cv_sys_max_cmd_len=196608 6103 ;; 6104 6105 os2*) 6106 # The test takes a long time on OS/2. 6107 lt_cv_sys_max_cmd_len=8192 6108 ;; 6109 6110 osf*) 6111 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6112 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6113 # nice to cause kernel panics so lets avoid the loop below. 6114 # First set a reasonable default. 6115 lt_cv_sys_max_cmd_len=16384 6116 # 6117 if test -x /sbin/sysconfig; then 6118 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6119 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6120 esac 6121 fi 6122 ;; 6123 sco3.2v5*) 6124 lt_cv_sys_max_cmd_len=102400 6125 ;; 6126 sysv5* | sco5v6* | sysv4.2uw2*) 6127 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6128 if test -n "$kargmax"; then 6129 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6130 else 6131 lt_cv_sys_max_cmd_len=32768 6132 fi 6133 ;; 6134 *) 6135 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6136 if test -n "$lt_cv_sys_max_cmd_len"; then 6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6139 else 6140 # Make teststring a little bigger before we do anything with it. 6141 # a 1K string should be a reasonable start. 6142 for i in 1 2 3 4 5 6 7 8 ; do 6143 teststring=$teststring$teststring 6144 done 6145 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6146 # If test is not a shell built-in, we'll probably end up computing a 6147 # maximum length that is only half of the actual maximum length, but 6148 # we can't tell. 6149 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6150 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6151 test $i != 17 # 1/2 MB should be enough 6152 do 6153 i=`expr $i + 1` 6154 teststring=$teststring$teststring 6155 done 6156 # Only check the string length outside the loop. 6157 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6158 teststring= 6159 # Add a significant safety factor because C++ compilers can tack on 6160 # massive amounts of additional arguments before passing them to the 6161 # linker. It appears as though 1/2 is a usable value. 6162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6163 fi 6164 ;; 6165 esac 6166 6167fi 6168 6169if test -n $lt_cv_sys_max_cmd_len ; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6171$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6172else 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6174$as_echo "none" >&6; } 6175fi 6176max_cmd_len=$lt_cv_sys_max_cmd_len 6177 6178 6179 6180 6181 6182 6183: ${CP="cp -f"} 6184: ${MV="mv -f"} 6185: ${RM="rm -f"} 6186 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6188$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6189# Try some XSI features 6190xsi_shell=no 6191( _lt_dummy="a/b/c" 6192 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6193 = c,a/b,b/c, \ 6194 && eval 'test $(( 1 + 1 )) -eq 2 \ 6195 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6196 && xsi_shell=yes 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6198$as_echo "$xsi_shell" >&6; } 6199 6200 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6202$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6203lt_shell_append=no 6204( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6205 >/dev/null 2>&1 \ 6206 && lt_shell_append=yes 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6208$as_echo "$lt_shell_append" >&6; } 6209 6210 6211if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6212 lt_unset=unset 6213else 6214 lt_unset=false 6215fi 6216 6217 6218 6219 6220 6221# test EBCDIC or ASCII 6222case `echo X|tr X '\101'` in 6223 A) # ASCII based system 6224 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6225 lt_SP2NL='tr \040 \012' 6226 lt_NL2SP='tr \015\012 \040\040' 6227 ;; 6228 *) # EBCDIC based system 6229 lt_SP2NL='tr \100 \n' 6230 lt_NL2SP='tr \r\n \100\100' 6231 ;; 6232esac 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6243$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6244if ${lt_cv_to_host_file_cmd+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 case $host in 6248 *-*-mingw* ) 6249 case $build in 6250 *-*-mingw* ) # actually msys 6251 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6252 ;; 6253 *-*-cygwin* ) 6254 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6255 ;; 6256 * ) # otherwise, assume *nix 6257 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6258 ;; 6259 esac 6260 ;; 6261 *-*-cygwin* ) 6262 case $build in 6263 *-*-mingw* ) # actually msys 6264 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6265 ;; 6266 *-*-cygwin* ) 6267 lt_cv_to_host_file_cmd=func_convert_file_noop 6268 ;; 6269 * ) # otherwise, assume *nix 6270 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6271 ;; 6272 esac 6273 ;; 6274 * ) # unhandled hosts (and "normal" native builds) 6275 lt_cv_to_host_file_cmd=func_convert_file_noop 6276 ;; 6277esac 6278 6279fi 6280 6281to_host_file_cmd=$lt_cv_to_host_file_cmd 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6283$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6284 6285 6286 6287 6288 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6290$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6291if ${lt_cv_to_tool_file_cmd+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 #assume ordinary cross tools, or native build. 6295lt_cv_to_tool_file_cmd=func_convert_file_noop 6296case $host in 6297 *-*-mingw* ) 6298 case $build in 6299 *-*-mingw* ) # actually msys 6300 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6301 ;; 6302 esac 6303 ;; 6304esac 6305 6306fi 6307 6308to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6310$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6311 6312 6313 6314 6315 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6317$as_echo_n "checking for $LD option to reload object files... " >&6; } 6318if ${lt_cv_ld_reload_flag+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 lt_cv_ld_reload_flag='-r' 6322fi 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6324$as_echo "$lt_cv_ld_reload_flag" >&6; } 6325reload_flag=$lt_cv_ld_reload_flag 6326case $reload_flag in 6327"" | " "*) ;; 6328*) reload_flag=" $reload_flag" ;; 6329esac 6330reload_cmds='$LD$reload_flag -o $output$reload_objs' 6331case $host_os in 6332 cygwin* | mingw* | pw32* | cegcc*) 6333 if test "$GCC" != yes; then 6334 reload_cmds=false 6335 fi 6336 ;; 6337 darwin*) 6338 if test "$GCC" = yes; then 6339 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6340 else 6341 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6342 fi 6343 ;; 6344esac 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354if test -n "$ac_tool_prefix"; then 6355 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6356set dummy ${ac_tool_prefix}objdump; ac_word=$2 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6358$as_echo_n "checking for $ac_word... " >&6; } 6359if ${ac_cv_prog_OBJDUMP+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 if test -n "$OBJDUMP"; then 6363 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6364else 6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6366for as_dir in $PATH 6367do 6368 IFS=$as_save_IFS 6369 test -z "$as_dir" && as_dir=. 6370 for ac_exec_ext in '' $ac_executable_extensions; do 6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6372 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6374 break 2 6375 fi 6376done 6377 done 6378IFS=$as_save_IFS 6379 6380fi 6381fi 6382OBJDUMP=$ac_cv_prog_OBJDUMP 6383if test -n "$OBJDUMP"; then 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6385$as_echo "$OBJDUMP" >&6; } 6386else 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6388$as_echo "no" >&6; } 6389fi 6390 6391 6392fi 6393if test -z "$ac_cv_prog_OBJDUMP"; then 6394 ac_ct_OBJDUMP=$OBJDUMP 6395 # Extract the first word of "objdump", so it can be a program name with args. 6396set dummy objdump; ac_word=$2 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6398$as_echo_n "checking for $ac_word... " >&6; } 6399if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 if test -n "$ac_ct_OBJDUMP"; then 6403 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6404else 6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6406for as_dir in $PATH 6407do 6408 IFS=$as_save_IFS 6409 test -z "$as_dir" && as_dir=. 6410 for ac_exec_ext in '' $ac_executable_extensions; do 6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6412 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6414 break 2 6415 fi 6416done 6417 done 6418IFS=$as_save_IFS 6419 6420fi 6421fi 6422ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6423if test -n "$ac_ct_OBJDUMP"; then 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6425$as_echo "$ac_ct_OBJDUMP" >&6; } 6426else 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6428$as_echo "no" >&6; } 6429fi 6430 6431 if test "x$ac_ct_OBJDUMP" = x; then 6432 OBJDUMP="false" 6433 else 6434 case $cross_compiling:$ac_tool_warned in 6435yes:) 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6438ac_tool_warned=yes ;; 6439esac 6440 OBJDUMP=$ac_ct_OBJDUMP 6441 fi 6442else 6443 OBJDUMP="$ac_cv_prog_OBJDUMP" 6444fi 6445 6446test -z "$OBJDUMP" && OBJDUMP=objdump 6447 6448 6449 6450 6451 6452 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6454$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6455if ${lt_cv_deplibs_check_method+:} false; then : 6456 $as_echo_n "(cached) " >&6 6457else 6458 lt_cv_file_magic_cmd='$MAGIC_CMD' 6459lt_cv_file_magic_test_file= 6460lt_cv_deplibs_check_method='unknown' 6461# Need to set the preceding variable on all platforms that support 6462# interlibrary dependencies. 6463# 'none' -- dependencies not supported. 6464# `unknown' -- same as none, but documents that we really don't know. 6465# 'pass_all' -- all dependencies passed with no checks. 6466# 'test_compile' -- check by making test program. 6467# 'file_magic [[regex]]' -- check by looking for files in library path 6468# which responds to the $file_magic_cmd with a given extended regex. 6469# If you have `file' or equivalent on your system and you're not sure 6470# whether `pass_all' will *always* work, you probably want this one. 6471 6472case $host_os in 6473aix[4-9]*) 6474 lt_cv_deplibs_check_method=pass_all 6475 ;; 6476 6477beos*) 6478 lt_cv_deplibs_check_method=pass_all 6479 ;; 6480 6481bsdi[45]*) 6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6483 lt_cv_file_magic_cmd='/usr/bin/file -L' 6484 lt_cv_file_magic_test_file=/shlib/libc.so 6485 ;; 6486 6487cygwin*) 6488 # func_win32_libid is a shell function defined in ltmain.sh 6489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6490 lt_cv_file_magic_cmd='func_win32_libid' 6491 ;; 6492 6493mingw* | pw32*) 6494 # Base MSYS/MinGW do not provide the 'file' command needed by 6495 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6496 # unless we find 'file', for example because we are cross-compiling. 6497 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6498 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6500 lt_cv_file_magic_cmd='func_win32_libid' 6501 else 6502 # Keep this pattern in sync with the one in func_win32_libid. 6503 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6504 lt_cv_file_magic_cmd='$OBJDUMP -f' 6505 fi 6506 ;; 6507 6508cegcc*) 6509 # use the weaker test based on 'objdump'. See mingw*. 6510 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6511 lt_cv_file_magic_cmd='$OBJDUMP -f' 6512 ;; 6513 6514darwin* | rhapsody*) 6515 lt_cv_deplibs_check_method=pass_all 6516 ;; 6517 6518freebsd* | dragonfly*) 6519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6520 case $host_cpu in 6521 i*86 ) 6522 # Not sure whether the presence of OpenBSD here was a mistake. 6523 # Let's accept both of them until this is cleared up. 6524 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6525 lt_cv_file_magic_cmd=/usr/bin/file 6526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6527 ;; 6528 esac 6529 else 6530 lt_cv_deplibs_check_method=pass_all 6531 fi 6532 ;; 6533 6534gnu*) 6535 lt_cv_deplibs_check_method=pass_all 6536 ;; 6537 6538haiku*) 6539 lt_cv_deplibs_check_method=pass_all 6540 ;; 6541 6542hpux10.20* | hpux11*) 6543 lt_cv_file_magic_cmd=/usr/bin/file 6544 case $host_cpu in 6545 ia64*) 6546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6548 ;; 6549 hppa*64*) 6550 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]' 6551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6552 ;; 6553 *) 6554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6555 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6556 ;; 6557 esac 6558 ;; 6559 6560interix[3-9]*) 6561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6563 ;; 6564 6565irix5* | irix6* | nonstopux*) 6566 case $LD in 6567 *-32|*"-32 ") libmagic=32-bit;; 6568 *-n32|*"-n32 ") libmagic=N32;; 6569 *-64|*"-64 ") libmagic=64-bit;; 6570 *) libmagic=never-match;; 6571 esac 6572 lt_cv_deplibs_check_method=pass_all 6573 ;; 6574 6575# This must be glibc/ELF. 6576linux* | k*bsd*-gnu | kopensolaris*-gnu) 6577 lt_cv_deplibs_check_method=pass_all 6578 ;; 6579 6580netbsd*) 6581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6583 else 6584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6585 fi 6586 ;; 6587 6588newos6*) 6589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6590 lt_cv_file_magic_cmd=/usr/bin/file 6591 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6592 ;; 6593 6594*nto* | *qnx*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598openbsd*) 6599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6601 else 6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6603 fi 6604 ;; 6605 6606osf3* | osf4* | osf5*) 6607 lt_cv_deplibs_check_method=pass_all 6608 ;; 6609 6610rdos*) 6611 lt_cv_deplibs_check_method=pass_all 6612 ;; 6613 6614solaris*) 6615 lt_cv_deplibs_check_method=pass_all 6616 ;; 6617 6618sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6619 lt_cv_deplibs_check_method=pass_all 6620 ;; 6621 6622sysv4 | sysv4.3*) 6623 case $host_vendor in 6624 motorola) 6625 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]' 6626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6627 ;; 6628 ncr) 6629 lt_cv_deplibs_check_method=pass_all 6630 ;; 6631 sequent) 6632 lt_cv_file_magic_cmd='/bin/file' 6633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6634 ;; 6635 sni) 6636 lt_cv_file_magic_cmd='/bin/file' 6637 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6638 lt_cv_file_magic_test_file=/lib/libc.so 6639 ;; 6640 siemens) 6641 lt_cv_deplibs_check_method=pass_all 6642 ;; 6643 pc) 6644 lt_cv_deplibs_check_method=pass_all 6645 ;; 6646 esac 6647 ;; 6648 6649tpf*) 6650 lt_cv_deplibs_check_method=pass_all 6651 ;; 6652esac 6653 6654fi 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6656$as_echo "$lt_cv_deplibs_check_method" >&6; } 6657 6658file_magic_glob= 6659want_nocaseglob=no 6660if test "$build" = "$host"; then 6661 case $host_os in 6662 mingw* | pw32*) 6663 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6664 want_nocaseglob=yes 6665 else 6666 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6667 fi 6668 ;; 6669 esac 6670fi 6671 6672file_magic_cmd=$lt_cv_file_magic_cmd 6673deplibs_check_method=$lt_cv_deplibs_check_method 6674test -z "$deplibs_check_method" && deplibs_check_method=unknown 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697if test -n "$ac_tool_prefix"; then 6698 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6699set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6701$as_echo_n "checking for $ac_word... " >&6; } 6702if ${ac_cv_prog_DLLTOOL+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 if test -n "$DLLTOOL"; then 6706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6707else 6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in $PATH 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6715 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720 done 6721IFS=$as_save_IFS 6722 6723fi 6724fi 6725DLLTOOL=$ac_cv_prog_DLLTOOL 6726if test -n "$DLLTOOL"; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6728$as_echo "$DLLTOOL" >&6; } 6729else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731$as_echo "no" >&6; } 6732fi 6733 6734 6735fi 6736if test -z "$ac_cv_prog_DLLTOOL"; then 6737 ac_ct_DLLTOOL=$DLLTOOL 6738 # Extract the first word of "dlltool", so it can be a program name with args. 6739set dummy dlltool; ac_word=$2 6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6741$as_echo_n "checking for $ac_word... " >&6; } 6742if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6743 $as_echo_n "(cached) " >&6 6744else 6745 if test -n "$ac_ct_DLLTOOL"; then 6746 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6747else 6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6749for as_dir in $PATH 6750do 6751 IFS=$as_save_IFS 6752 test -z "$as_dir" && as_dir=. 6753 for ac_exec_ext in '' $ac_executable_extensions; do 6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6755 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6757 break 2 6758 fi 6759done 6760 done 6761IFS=$as_save_IFS 6762 6763fi 6764fi 6765ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6766if test -n "$ac_ct_DLLTOOL"; then 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6768$as_echo "$ac_ct_DLLTOOL" >&6; } 6769else 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771$as_echo "no" >&6; } 6772fi 6773 6774 if test "x$ac_ct_DLLTOOL" = x; then 6775 DLLTOOL="false" 6776 else 6777 case $cross_compiling:$ac_tool_warned in 6778yes:) 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6781ac_tool_warned=yes ;; 6782esac 6783 DLLTOOL=$ac_ct_DLLTOOL 6784 fi 6785else 6786 DLLTOOL="$ac_cv_prog_DLLTOOL" 6787fi 6788 6789test -z "$DLLTOOL" && DLLTOOL=dlltool 6790 6791 6792 6793 6794 6795 6796 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6798$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6799if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 lt_cv_sharedlib_from_linklib_cmd='unknown' 6803 6804case $host_os in 6805cygwin* | mingw* | pw32* | cegcc*) 6806 # two different shell functions defined in ltmain.sh 6807 # decide which to use based on capabilities of $DLLTOOL 6808 case `$DLLTOOL --help 2>&1` in 6809 *--identify-strict*) 6810 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6811 ;; 6812 *) 6813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6814 ;; 6815 esac 6816 ;; 6817*) 6818 # fallback: assume linklib IS sharedlib 6819 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6820 ;; 6821esac 6822 6823fi 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6825$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6826sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6827test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6828 6829 6830 6831 6832 6833 6834 6835 6836if test -n "$ac_tool_prefix"; then 6837 for ac_prog in ar 6838 do 6839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6840set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6842$as_echo_n "checking for $ac_word... " >&6; } 6843if ${ac_cv_prog_AR+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 if test -n "$AR"; then 6847 ac_cv_prog_AR="$AR" # Let the user override the test. 6848else 6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6850for as_dir in $PATH 6851do 6852 IFS=$as_save_IFS 6853 test -z "$as_dir" && as_dir=. 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6856 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6858 break 2 6859 fi 6860done 6861 done 6862IFS=$as_save_IFS 6863 6864fi 6865fi 6866AR=$ac_cv_prog_AR 6867if test -n "$AR"; then 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6869$as_echo "$AR" >&6; } 6870else 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6872$as_echo "no" >&6; } 6873fi 6874 6875 6876 test -n "$AR" && break 6877 done 6878fi 6879if test -z "$AR"; then 6880 ac_ct_AR=$AR 6881 for ac_prog in ar 6882do 6883 # Extract the first word of "$ac_prog", so it can be a program name with args. 6884set dummy $ac_prog; ac_word=$2 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6886$as_echo_n "checking for $ac_word... " >&6; } 6887if ${ac_cv_prog_ac_ct_AR+:} false; then : 6888 $as_echo_n "(cached) " >&6 6889else 6890 if test -n "$ac_ct_AR"; then 6891 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6892else 6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6900 ac_cv_prog_ac_ct_AR="$ac_prog" 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904done 6905 done 6906IFS=$as_save_IFS 6907 6908fi 6909fi 6910ac_ct_AR=$ac_cv_prog_ac_ct_AR 6911if test -n "$ac_ct_AR"; then 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6913$as_echo "$ac_ct_AR" >&6; } 6914else 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6916$as_echo "no" >&6; } 6917fi 6918 6919 6920 test -n "$ac_ct_AR" && break 6921done 6922 6923 if test "x$ac_ct_AR" = x; then 6924 AR="false" 6925 else 6926 case $cross_compiling:$ac_tool_warned in 6927yes:) 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6930ac_tool_warned=yes ;; 6931esac 6932 AR=$ac_ct_AR 6933 fi 6934fi 6935 6936: ${AR=ar} 6937: ${AR_FLAGS=cru} 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6950$as_echo_n "checking for archiver @FILE support... " >&6; } 6951if ${lt_cv_ar_at_file+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 lt_cv_ar_at_file=no 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957 6958int 6959main () 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_c_try_compile "$LINENO"; then : 6967 echo conftest.$ac_objext > conftest.lst 6968 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6970 (eval $lt_ar_try) 2>&5 6971 ac_status=$? 6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6973 test $ac_status = 0; } 6974 if test "$ac_status" -eq 0; then 6975 # Ensure the archiver fails upon bogus file names. 6976 rm -f conftest.$ac_objext libconftest.a 6977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6978 (eval $lt_ar_try) 2>&5 6979 ac_status=$? 6980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6981 test $ac_status = 0; } 6982 if test "$ac_status" -ne 0; then 6983 lt_cv_ar_at_file=@ 6984 fi 6985 fi 6986 rm -f conftest.* libconftest.a 6987 6988fi 6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6990 6991fi 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6993$as_echo "$lt_cv_ar_at_file" >&6; } 6994 6995if test "x$lt_cv_ar_at_file" = xno; then 6996 archiver_list_spec= 6997else 6998 archiver_list_spec=$lt_cv_ar_at_file 6999fi 7000 7001 7002 7003 7004 7005 7006 7007if test -n "$ac_tool_prefix"; then 7008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7009set dummy ${ac_tool_prefix}strip; ac_word=$2 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7011$as_echo_n "checking for $ac_word... " >&6; } 7012if ${ac_cv_prog_STRIP+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 if test -n "$STRIP"; then 7016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7017else 7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7019for as_dir in $PATH 7020do 7021 IFS=$as_save_IFS 7022 test -z "$as_dir" && as_dir=. 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7025 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029done 7030 done 7031IFS=$as_save_IFS 7032 7033fi 7034fi 7035STRIP=$ac_cv_prog_STRIP 7036if test -n "$STRIP"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7038$as_echo "$STRIP" >&6; } 7039else 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041$as_echo "no" >&6; } 7042fi 7043 7044 7045fi 7046if test -z "$ac_cv_prog_STRIP"; then 7047 ac_ct_STRIP=$STRIP 7048 # Extract the first word of "strip", so it can be a program name with args. 7049set dummy strip; ac_word=$2 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7051$as_echo_n "checking for $ac_word... " >&6; } 7052if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 if test -n "$ac_ct_STRIP"; then 7056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7057else 7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059for as_dir in $PATH 7060do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7065 ac_cv_prog_ac_ct_STRIP="strip" 7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069done 7070 done 7071IFS=$as_save_IFS 7072 7073fi 7074fi 7075ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7076if test -n "$ac_ct_STRIP"; then 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7078$as_echo "$ac_ct_STRIP" >&6; } 7079else 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7081$as_echo "no" >&6; } 7082fi 7083 7084 if test "x$ac_ct_STRIP" = x; then 7085 STRIP=":" 7086 else 7087 case $cross_compiling:$ac_tool_warned in 7088yes:) 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7091ac_tool_warned=yes ;; 7092esac 7093 STRIP=$ac_ct_STRIP 7094 fi 7095else 7096 STRIP="$ac_cv_prog_STRIP" 7097fi 7098 7099test -z "$STRIP" && STRIP=: 7100 7101 7102 7103 7104 7105 7106if test -n "$ac_tool_prefix"; then 7107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7108set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7110$as_echo_n "checking for $ac_word... " >&6; } 7111if ${ac_cv_prog_RANLIB+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113else 7114 if test -n "$RANLIB"; then 7115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7116else 7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7118for as_dir in $PATH 7119do 7120 IFS=$as_save_IFS 7121 test -z "$as_dir" && as_dir=. 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128done 7129 done 7130IFS=$as_save_IFS 7131 7132fi 7133fi 7134RANLIB=$ac_cv_prog_RANLIB 7135if test -n "$RANLIB"; then 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7137$as_echo "$RANLIB" >&6; } 7138else 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140$as_echo "no" >&6; } 7141fi 7142 7143 7144fi 7145if test -z "$ac_cv_prog_RANLIB"; then 7146 ac_ct_RANLIB=$RANLIB 7147 # Extract the first word of "ranlib", so it can be a program name with args. 7148set dummy ranlib; ac_word=$2 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150$as_echo_n "checking for $ac_word... " >&6; } 7151if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 if test -n "$ac_ct_RANLIB"; then 7155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7156else 7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 test -z "$as_dir" && as_dir=. 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7164 ac_cv_prog_ac_ct_RANLIB="ranlib" 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172fi 7173fi 7174ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7175if test -n "$ac_ct_RANLIB"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7177$as_echo "$ac_ct_RANLIB" >&6; } 7178else 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7180$as_echo "no" >&6; } 7181fi 7182 7183 if test "x$ac_ct_RANLIB" = x; then 7184 RANLIB=":" 7185 else 7186 case $cross_compiling:$ac_tool_warned in 7187yes:) 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7190ac_tool_warned=yes ;; 7191esac 7192 RANLIB=$ac_ct_RANLIB 7193 fi 7194else 7195 RANLIB="$ac_cv_prog_RANLIB" 7196fi 7197 7198test -z "$RANLIB" && RANLIB=: 7199 7200 7201 7202 7203 7204 7205# Determine commands to create old-style static archives. 7206old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7207old_postinstall_cmds='chmod 644 $oldlib' 7208old_postuninstall_cmds= 7209 7210if test -n "$RANLIB"; then 7211 case $host_os in 7212 openbsd*) 7213 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7214 ;; 7215 *) 7216 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7217 ;; 7218 esac 7219 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7220fi 7221 7222case $host_os in 7223 darwin*) 7224 lock_old_archive_extraction=yes ;; 7225 *) 7226 lock_old_archive_extraction=no ;; 7227esac 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267# If no C compiler was specified, use CC. 7268LTCC=${LTCC-"$CC"} 7269 7270# If no C compiler flags were specified, use CFLAGS. 7271LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7272 7273# Allow CC to be a program name with arguments. 7274compiler=$CC 7275 7276 7277# Check for command to grab the raw symbol name followed by C symbol from nm. 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7279$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7280if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7281 $as_echo_n "(cached) " >&6 7282else 7283 7284# These are sane defaults that work on at least a few old systems. 7285# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7286 7287# Character class describing NM global symbol codes. 7288symcode='[BCDEGRST]' 7289 7290# Regexp to match symbols that can be accessed directly from C. 7291sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7292 7293# Define system-specific variables. 7294case $host_os in 7295aix*) 7296 symcode='[BCDT]' 7297 ;; 7298cygwin* | mingw* | pw32* | cegcc*) 7299 symcode='[ABCDGISTW]' 7300 ;; 7301hpux*) 7302 if test "$host_cpu" = ia64; then 7303 symcode='[ABCDEGRST]' 7304 fi 7305 ;; 7306irix* | nonstopux*) 7307 symcode='[BCDEGRST]' 7308 ;; 7309osf*) 7310 symcode='[BCDEGQRST]' 7311 ;; 7312solaris*) 7313 symcode='[BDRT]' 7314 ;; 7315sco3.2v5*) 7316 symcode='[DT]' 7317 ;; 7318sysv4.2uw2*) 7319 symcode='[DT]' 7320 ;; 7321sysv5* | sco5v6* | unixware* | OpenUNIX*) 7322 symcode='[ABDT]' 7323 ;; 7324sysv4) 7325 symcode='[DFNSTU]' 7326 ;; 7327esac 7328 7329# If we're using GNU nm, then use its standard symbol codes. 7330case `$NM -V 2>&1` in 7331*GNU* | *'with BFD'*) 7332 symcode='[ABCDGIRSTW]' ;; 7333esac 7334 7335# Transform an extracted symbol line into a proper C declaration. 7336# Some systems (esp. on ia64) link data and code symbols differently, 7337# so use this general approach. 7338lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7339 7340# Transform an extracted symbol line into symbol name and symbol address 7341lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7342lt_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'" 7343 7344# Handle CRLF in mingw tool chain 7345opt_cr= 7346case $build_os in 7347mingw*) 7348 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7349 ;; 7350esac 7351 7352# Try without a prefix underscore, then with it. 7353for ac_symprfx in "" "_"; do 7354 7355 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7356 symxfrm="\\1 $ac_symprfx\\2 \\2" 7357 7358 # Write the raw and C identifiers. 7359 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7360 # Fake it for dumpbin and say T for any non-static function 7361 # and D for any global variable. 7362 # Also find C++ and __fastcall symbols from MSVC++, 7363 # which start with @ or ?. 7364 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7365" {last_section=section; section=\$ 3};"\ 7366" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7367" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7368" \$ 0!~/External *\|/{next};"\ 7369" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7370" {if(hide[section]) next};"\ 7371" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7372" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7373" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7374" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7375" ' prfx=^$ac_symprfx" 7376 else 7377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7378 fi 7379 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7380 7381 # Check to see that the pipe works correctly. 7382 pipe_works=no 7383 7384 rm -f conftest* 7385 cat > conftest.$ac_ext <<_LT_EOF 7386#ifdef __cplusplus 7387extern "C" { 7388#endif 7389char nm_test_var; 7390void nm_test_func(void); 7391void nm_test_func(void){} 7392#ifdef __cplusplus 7393} 7394#endif 7395int main(){nm_test_var='a';nm_test_func();return(0);} 7396_LT_EOF 7397 7398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7399 (eval $ac_compile) 2>&5 7400 ac_status=$? 7401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7402 test $ac_status = 0; }; then 7403 # Now try to grab the symbols. 7404 nlist=conftest.nm 7405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7406 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7407 ac_status=$? 7408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7409 test $ac_status = 0; } && test -s "$nlist"; then 7410 # Try sorting and uniquifying the output. 7411 if sort "$nlist" | uniq > "$nlist"T; then 7412 mv -f "$nlist"T "$nlist" 7413 else 7414 rm -f "$nlist"T 7415 fi 7416 7417 # Make sure that we snagged all the symbols we need. 7418 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7419 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7420 cat <<_LT_EOF > conftest.$ac_ext 7421/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7422#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7423/* DATA imports from DLLs on WIN32 con't be const, because runtime 7424 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7425# define LT_DLSYM_CONST 7426#elif defined(__osf__) 7427/* This system does not cope well with relocations in const data. */ 7428# define LT_DLSYM_CONST 7429#else 7430# define LT_DLSYM_CONST const 7431#endif 7432 7433#ifdef __cplusplus 7434extern "C" { 7435#endif 7436 7437_LT_EOF 7438 # Now generate the symbol file. 7439 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7440 7441 cat <<_LT_EOF >> conftest.$ac_ext 7442 7443/* The mapping between symbol names and symbols. */ 7444LT_DLSYM_CONST struct { 7445 const char *name; 7446 void *address; 7447} 7448lt__PROGRAM__LTX_preloaded_symbols[] = 7449{ 7450 { "@PROGRAM@", (void *) 0 }, 7451_LT_EOF 7452 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7453 cat <<\_LT_EOF >> conftest.$ac_ext 7454 {0, (void *) 0} 7455}; 7456 7457/* This works around a problem in FreeBSD linker */ 7458#ifdef FREEBSD_WORKAROUND 7459static const void *lt_preloaded_setup() { 7460 return lt__PROGRAM__LTX_preloaded_symbols; 7461} 7462#endif 7463 7464#ifdef __cplusplus 7465} 7466#endif 7467_LT_EOF 7468 # Now try linking the two files. 7469 mv conftest.$ac_objext conftstm.$ac_objext 7470 lt_globsym_save_LIBS=$LIBS 7471 lt_globsym_save_CFLAGS=$CFLAGS 7472 LIBS="conftstm.$ac_objext" 7473 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7475 (eval $ac_link) 2>&5 7476 ac_status=$? 7477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7478 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7479 pipe_works=yes 7480 fi 7481 LIBS=$lt_globsym_save_LIBS 7482 CFLAGS=$lt_globsym_save_CFLAGS 7483 else 7484 echo "cannot find nm_test_func in $nlist" >&5 7485 fi 7486 else 7487 echo "cannot find nm_test_var in $nlist" >&5 7488 fi 7489 else 7490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7491 fi 7492 else 7493 echo "$progname: failed program was:" >&5 7494 cat conftest.$ac_ext >&5 7495 fi 7496 rm -rf conftest* conftst* 7497 7498 # Do not use the global_symbol_pipe unless it works. 7499 if test "$pipe_works" = yes; then 7500 break 7501 else 7502 lt_cv_sys_global_symbol_pipe= 7503 fi 7504done 7505 7506fi 7507 7508if test -z "$lt_cv_sys_global_symbol_pipe"; then 7509 lt_cv_sys_global_symbol_to_cdecl= 7510fi 7511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7513$as_echo "failed" >&6; } 7514else 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7516$as_echo "ok" >&6; } 7517fi 7518 7519# Response file support. 7520if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7521 nm_file_list_spec='@' 7522elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7523 nm_file_list_spec='@' 7524fi 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7553$as_echo_n "checking for sysroot... " >&6; } 7554 7555# Check whether --with-sysroot was given. 7556if test "${with_sysroot+set}" = set; then : 7557 withval=$with_sysroot; 7558else 7559 with_sysroot=no 7560fi 7561 7562 7563lt_sysroot= 7564case ${with_sysroot} in #( 7565 yes) 7566 if test "$GCC" = yes; then 7567 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7568 fi 7569 ;; #( 7570 /*) 7571 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7572 ;; #( 7573 no|'') 7574 ;; #( 7575 *) 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7577$as_echo "${with_sysroot}" >&6; } 7578 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7579 ;; 7580esac 7581 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7583$as_echo "${lt_sysroot:-no}" >&6; } 7584 7585 7586 7587 7588 7589# Check whether --enable-libtool-lock was given. 7590if test "${enable_libtool_lock+set}" = set; then : 7591 enableval=$enable_libtool_lock; 7592fi 7593 7594test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7595 7596# Some flags need to be propagated to the compiler or linker for good 7597# libtool support. 7598case $host in 7599ia64-*-hpux*) 7600 # Find out which ABI we are using. 7601 echo 'int i;' > conftest.$ac_ext 7602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7603 (eval $ac_compile) 2>&5 7604 ac_status=$? 7605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7606 test $ac_status = 0; }; then 7607 case `/usr/bin/file conftest.$ac_objext` in 7608 *ELF-32*) 7609 HPUX_IA64_MODE="32" 7610 ;; 7611 *ELF-64*) 7612 HPUX_IA64_MODE="64" 7613 ;; 7614 esac 7615 fi 7616 rm -rf conftest* 7617 ;; 7618*-*-irix6*) 7619 # Find out which ABI we are using. 7620 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7622 (eval $ac_compile) 2>&5 7623 ac_status=$? 7624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7625 test $ac_status = 0; }; then 7626 if test "$lt_cv_prog_gnu_ld" = yes; then 7627 case `/usr/bin/file conftest.$ac_objext` in 7628 *32-bit*) 7629 LD="${LD-ld} -melf32bsmip" 7630 ;; 7631 *N32*) 7632 LD="${LD-ld} -melf32bmipn32" 7633 ;; 7634 *64-bit*) 7635 LD="${LD-ld} -melf64bmip" 7636 ;; 7637 esac 7638 else 7639 case `/usr/bin/file conftest.$ac_objext` in 7640 *32-bit*) 7641 LD="${LD-ld} -32" 7642 ;; 7643 *N32*) 7644 LD="${LD-ld} -n32" 7645 ;; 7646 *64-bit*) 7647 LD="${LD-ld} -64" 7648 ;; 7649 esac 7650 fi 7651 fi 7652 rm -rf conftest* 7653 ;; 7654 7655x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7656s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7657 # Find out which ABI we are using. 7658 echo 'int i;' > conftest.$ac_ext 7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7660 (eval $ac_compile) 2>&5 7661 ac_status=$? 7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7663 test $ac_status = 0; }; then 7664 case `/usr/bin/file conftest.o` in 7665 *32-bit*) 7666 case $host in 7667 x86_64-*kfreebsd*-gnu) 7668 LD="${LD-ld} -m elf_i386_fbsd" 7669 ;; 7670 x86_64-*linux*) 7671 LD="${LD-ld} -m elf_i386" 7672 ;; 7673 ppc64-*linux*|powerpc64-*linux*) 7674 LD="${LD-ld} -m elf32ppclinux" 7675 ;; 7676 s390x-*linux*) 7677 LD="${LD-ld} -m elf_s390" 7678 ;; 7679 sparc64-*linux*) 7680 LD="${LD-ld} -m elf32_sparc" 7681 ;; 7682 esac 7683 ;; 7684 *64-bit*) 7685 case $host in 7686 x86_64-*kfreebsd*-gnu) 7687 LD="${LD-ld} -m elf_x86_64_fbsd" 7688 ;; 7689 x86_64-*linux*) 7690 LD="${LD-ld} -m elf_x86_64" 7691 ;; 7692 ppc*-*linux*|powerpc*-*linux*) 7693 LD="${LD-ld} -m elf64ppc" 7694 ;; 7695 s390*-*linux*|s390*-*tpf*) 7696 LD="${LD-ld} -m elf64_s390" 7697 ;; 7698 sparc*-*linux*) 7699 LD="${LD-ld} -m elf64_sparc" 7700 ;; 7701 esac 7702 ;; 7703 esac 7704 fi 7705 rm -rf conftest* 7706 ;; 7707 7708*-*-sco3.2v5*) 7709 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7710 SAVE_CFLAGS="$CFLAGS" 7711 CFLAGS="$CFLAGS -belf" 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7713$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7714if ${lt_cv_cc_needs_belf+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716else 7717 ac_ext=c 7718ac_cpp='$CPP $CPPFLAGS' 7719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7721ac_compiler_gnu=$ac_cv_c_compiler_gnu 7722 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725 7726int 7727main () 7728{ 7729 7730 ; 7731 return 0; 7732} 7733_ACEOF 7734if ac_fn_c_try_link "$LINENO"; then : 7735 lt_cv_cc_needs_belf=yes 7736else 7737 lt_cv_cc_needs_belf=no 7738fi 7739rm -f core conftest.err conftest.$ac_objext \ 7740 conftest$ac_exeext conftest.$ac_ext 7741 ac_ext=c 7742ac_cpp='$CPP $CPPFLAGS' 7743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7745ac_compiler_gnu=$ac_cv_c_compiler_gnu 7746 7747fi 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7749$as_echo "$lt_cv_cc_needs_belf" >&6; } 7750 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7751 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7752 CFLAGS="$SAVE_CFLAGS" 7753 fi 7754 ;; 7755*-*solaris*) 7756 # Find out which ABI we are using. 7757 echo 'int i;' > conftest.$ac_ext 7758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7759 (eval $ac_compile) 2>&5 7760 ac_status=$? 7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7762 test $ac_status = 0; }; then 7763 case `/usr/bin/file conftest.o` in 7764 *64-bit*) 7765 case $lt_cv_prog_gnu_ld in 7766 yes*) 7767 case $host in 7768 i?86-*-solaris*) 7769 LD="${LD-ld} -m elf_x86_64" 7770 ;; 7771 sparc*-*-solaris*) 7772 LD="${LD-ld} -m elf64_sparc" 7773 ;; 7774 esac 7775 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7776 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7777 LD="${LD-ld}_sol2" 7778 fi 7779 ;; 7780 *) 7781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7782 LD="${LD-ld} -64" 7783 fi 7784 ;; 7785 esac 7786 ;; 7787 esac 7788 fi 7789 rm -rf conftest* 7790 ;; 7791esac 7792 7793need_locks="$enable_libtool_lock" 7794 7795if test -n "$ac_tool_prefix"; then 7796 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7797set dummy ${ac_tool_prefix}mt; ac_word=$2 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7799$as_echo_n "checking for $ac_word... " >&6; } 7800if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7801 $as_echo_n "(cached) " >&6 7802else 7803 if test -n "$MANIFEST_TOOL"; then 7804 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7805else 7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7807for as_dir in $PATH 7808do 7809 IFS=$as_save_IFS 7810 test -z "$as_dir" && as_dir=. 7811 for ac_exec_ext in '' $ac_executable_extensions; do 7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7813 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7815 break 2 7816 fi 7817done 7818 done 7819IFS=$as_save_IFS 7820 7821fi 7822fi 7823MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7824if test -n "$MANIFEST_TOOL"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7826$as_echo "$MANIFEST_TOOL" >&6; } 7827else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7829$as_echo "no" >&6; } 7830fi 7831 7832 7833fi 7834if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7835 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7836 # Extract the first word of "mt", so it can be a program name with args. 7837set dummy mt; ac_word=$2 7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7839$as_echo_n "checking for $ac_word... " >&6; } 7840if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 if test -n "$ac_ct_MANIFEST_TOOL"; then 7844 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7845else 7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7847for as_dir in $PATH 7848do 7849 IFS=$as_save_IFS 7850 test -z "$as_dir" && as_dir=. 7851 for ac_exec_ext in '' $ac_executable_extensions; do 7852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7853 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7855 break 2 7856 fi 7857done 7858 done 7859IFS=$as_save_IFS 7860 7861fi 7862fi 7863ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7864if test -n "$ac_ct_MANIFEST_TOOL"; then 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7866$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7867else 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7869$as_echo "no" >&6; } 7870fi 7871 7872 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7873 MANIFEST_TOOL=":" 7874 else 7875 case $cross_compiling:$ac_tool_warned in 7876yes:) 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7879ac_tool_warned=yes ;; 7880esac 7881 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7882 fi 7883else 7884 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7885fi 7886 7887test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7889$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7890if ${lt_cv_path_mainfest_tool+:} false; then : 7891 $as_echo_n "(cached) " >&6 7892else 7893 lt_cv_path_mainfest_tool=no 7894 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7895 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7896 cat conftest.err >&5 7897 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7898 lt_cv_path_mainfest_tool=yes 7899 fi 7900 rm -f conftest* 7901fi 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7903$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7904if test "x$lt_cv_path_mainfest_tool" != xyes; then 7905 MANIFEST_TOOL=: 7906fi 7907 7908 7909 7910 7911 7912 7913 case $host_os in 7914 rhapsody* | darwin*) 7915 if test -n "$ac_tool_prefix"; then 7916 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7917set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7919$as_echo_n "checking for $ac_word... " >&6; } 7920if ${ac_cv_prog_DSYMUTIL+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 if test -n "$DSYMUTIL"; then 7924 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7925else 7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7927for as_dir in $PATH 7928do 7929 IFS=$as_save_IFS 7930 test -z "$as_dir" && as_dir=. 7931 for ac_exec_ext in '' $ac_executable_extensions; do 7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7933 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7935 break 2 7936 fi 7937done 7938 done 7939IFS=$as_save_IFS 7940 7941fi 7942fi 7943DSYMUTIL=$ac_cv_prog_DSYMUTIL 7944if test -n "$DSYMUTIL"; then 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7946$as_echo "$DSYMUTIL" >&6; } 7947else 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7949$as_echo "no" >&6; } 7950fi 7951 7952 7953fi 7954if test -z "$ac_cv_prog_DSYMUTIL"; then 7955 ac_ct_DSYMUTIL=$DSYMUTIL 7956 # Extract the first word of "dsymutil", so it can be a program name with args. 7957set dummy dsymutil; ac_word=$2 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7959$as_echo_n "checking for $ac_word... " >&6; } 7960if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 if test -n "$ac_ct_DSYMUTIL"; then 7964 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7965else 7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7967for as_dir in $PATH 7968do 7969 IFS=$as_save_IFS 7970 test -z "$as_dir" && as_dir=. 7971 for ac_exec_ext in '' $ac_executable_extensions; do 7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7973 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7975 break 2 7976 fi 7977done 7978 done 7979IFS=$as_save_IFS 7980 7981fi 7982fi 7983ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7984if test -n "$ac_ct_DSYMUTIL"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7986$as_echo "$ac_ct_DSYMUTIL" >&6; } 7987else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989$as_echo "no" >&6; } 7990fi 7991 7992 if test "x$ac_ct_DSYMUTIL" = x; then 7993 DSYMUTIL=":" 7994 else 7995 case $cross_compiling:$ac_tool_warned in 7996yes:) 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7999ac_tool_warned=yes ;; 8000esac 8001 DSYMUTIL=$ac_ct_DSYMUTIL 8002 fi 8003else 8004 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8005fi 8006 8007 if test -n "$ac_tool_prefix"; then 8008 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8009set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8011$as_echo_n "checking for $ac_word... " >&6; } 8012if ${ac_cv_prog_NMEDIT+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 if test -n "$NMEDIT"; then 8016 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8017else 8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8019for as_dir in $PATH 8020do 8021 IFS=$as_save_IFS 8022 test -z "$as_dir" && as_dir=. 8023 for ac_exec_ext in '' $ac_executable_extensions; do 8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8025 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8027 break 2 8028 fi 8029done 8030 done 8031IFS=$as_save_IFS 8032 8033fi 8034fi 8035NMEDIT=$ac_cv_prog_NMEDIT 8036if test -n "$NMEDIT"; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8038$as_echo "$NMEDIT" >&6; } 8039else 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041$as_echo "no" >&6; } 8042fi 8043 8044 8045fi 8046if test -z "$ac_cv_prog_NMEDIT"; then 8047 ac_ct_NMEDIT=$NMEDIT 8048 # Extract the first word of "nmedit", so it can be a program name with args. 8049set dummy nmedit; ac_word=$2 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8051$as_echo_n "checking for $ac_word... " >&6; } 8052if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 if test -n "$ac_ct_NMEDIT"; then 8056 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8057else 8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8059for as_dir in $PATH 8060do 8061 IFS=$as_save_IFS 8062 test -z "$as_dir" && as_dir=. 8063 for ac_exec_ext in '' $ac_executable_extensions; do 8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8065 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8067 break 2 8068 fi 8069done 8070 done 8071IFS=$as_save_IFS 8072 8073fi 8074fi 8075ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8076if test -n "$ac_ct_NMEDIT"; then 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8078$as_echo "$ac_ct_NMEDIT" >&6; } 8079else 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8081$as_echo "no" >&6; } 8082fi 8083 8084 if test "x$ac_ct_NMEDIT" = x; then 8085 NMEDIT=":" 8086 else 8087 case $cross_compiling:$ac_tool_warned in 8088yes:) 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8091ac_tool_warned=yes ;; 8092esac 8093 NMEDIT=$ac_ct_NMEDIT 8094 fi 8095else 8096 NMEDIT="$ac_cv_prog_NMEDIT" 8097fi 8098 8099 if test -n "$ac_tool_prefix"; then 8100 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8101set dummy ${ac_tool_prefix}lipo; ac_word=$2 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8103$as_echo_n "checking for $ac_word... " >&6; } 8104if ${ac_cv_prog_LIPO+:} false; then : 8105 $as_echo_n "(cached) " >&6 8106else 8107 if test -n "$LIPO"; then 8108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8109else 8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8111for as_dir in $PATH 8112do 8113 IFS=$as_save_IFS 8114 test -z "$as_dir" && as_dir=. 8115 for ac_exec_ext in '' $ac_executable_extensions; do 8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8117 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8119 break 2 8120 fi 8121done 8122 done 8123IFS=$as_save_IFS 8124 8125fi 8126fi 8127LIPO=$ac_cv_prog_LIPO 8128if test -n "$LIPO"; then 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8130$as_echo "$LIPO" >&6; } 8131else 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8133$as_echo "no" >&6; } 8134fi 8135 8136 8137fi 8138if test -z "$ac_cv_prog_LIPO"; then 8139 ac_ct_LIPO=$LIPO 8140 # Extract the first word of "lipo", so it can be a program name with args. 8141set dummy lipo; ac_word=$2 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8143$as_echo_n "checking for $ac_word... " >&6; } 8144if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 if test -n "$ac_ct_LIPO"; then 8148 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8149else 8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8151for as_dir in $PATH 8152do 8153 IFS=$as_save_IFS 8154 test -z "$as_dir" && as_dir=. 8155 for ac_exec_ext in '' $ac_executable_extensions; do 8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8157 ac_cv_prog_ac_ct_LIPO="lipo" 8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8159 break 2 8160 fi 8161done 8162 done 8163IFS=$as_save_IFS 8164 8165fi 8166fi 8167ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8168if test -n "$ac_ct_LIPO"; then 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8170$as_echo "$ac_ct_LIPO" >&6; } 8171else 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8173$as_echo "no" >&6; } 8174fi 8175 8176 if test "x$ac_ct_LIPO" = x; then 8177 LIPO=":" 8178 else 8179 case $cross_compiling:$ac_tool_warned in 8180yes:) 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8183ac_tool_warned=yes ;; 8184esac 8185 LIPO=$ac_ct_LIPO 8186 fi 8187else 8188 LIPO="$ac_cv_prog_LIPO" 8189fi 8190 8191 if test -n "$ac_tool_prefix"; then 8192 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8193set dummy ${ac_tool_prefix}otool; ac_word=$2 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8195$as_echo_n "checking for $ac_word... " >&6; } 8196if ${ac_cv_prog_OTOOL+:} false; then : 8197 $as_echo_n "(cached) " >&6 8198else 8199 if test -n "$OTOOL"; then 8200 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8201else 8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8203for as_dir in $PATH 8204do 8205 IFS=$as_save_IFS 8206 test -z "$as_dir" && as_dir=. 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8209 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213done 8214 done 8215IFS=$as_save_IFS 8216 8217fi 8218fi 8219OTOOL=$ac_cv_prog_OTOOL 8220if test -n "$OTOOL"; then 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8222$as_echo "$OTOOL" >&6; } 8223else 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8225$as_echo "no" >&6; } 8226fi 8227 8228 8229fi 8230if test -z "$ac_cv_prog_OTOOL"; then 8231 ac_ct_OTOOL=$OTOOL 8232 # Extract the first word of "otool", so it can be a program name with args. 8233set dummy otool; ac_word=$2 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8235$as_echo_n "checking for $ac_word... " >&6; } 8236if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 if test -n "$ac_ct_OTOOL"; then 8240 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8241else 8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8243for as_dir in $PATH 8244do 8245 IFS=$as_save_IFS 8246 test -z "$as_dir" && as_dir=. 8247 for ac_exec_ext in '' $ac_executable_extensions; do 8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8249 ac_cv_prog_ac_ct_OTOOL="otool" 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8251 break 2 8252 fi 8253done 8254 done 8255IFS=$as_save_IFS 8256 8257fi 8258fi 8259ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8260if test -n "$ac_ct_OTOOL"; then 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8262$as_echo "$ac_ct_OTOOL" >&6; } 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8265$as_echo "no" >&6; } 8266fi 8267 8268 if test "x$ac_ct_OTOOL" = x; then 8269 OTOOL=":" 8270 else 8271 case $cross_compiling:$ac_tool_warned in 8272yes:) 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8275ac_tool_warned=yes ;; 8276esac 8277 OTOOL=$ac_ct_OTOOL 8278 fi 8279else 8280 OTOOL="$ac_cv_prog_OTOOL" 8281fi 8282 8283 if test -n "$ac_tool_prefix"; then 8284 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8285set dummy ${ac_tool_prefix}otool64; ac_word=$2 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287$as_echo_n "checking for $ac_word... " >&6; } 8288if ${ac_cv_prog_OTOOL64+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 if test -n "$OTOOL64"; then 8292 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8293else 8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295for as_dir in $PATH 8296do 8297 IFS=$as_save_IFS 8298 test -z "$as_dir" && as_dir=. 8299 for ac_exec_ext in '' $ac_executable_extensions; do 8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8301 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8303 break 2 8304 fi 8305done 8306 done 8307IFS=$as_save_IFS 8308 8309fi 8310fi 8311OTOOL64=$ac_cv_prog_OTOOL64 8312if test -n "$OTOOL64"; then 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8314$as_echo "$OTOOL64" >&6; } 8315else 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8317$as_echo "no" >&6; } 8318fi 8319 8320 8321fi 8322if test -z "$ac_cv_prog_OTOOL64"; then 8323 ac_ct_OTOOL64=$OTOOL64 8324 # Extract the first word of "otool64", so it can be a program name with args. 8325set dummy otool64; ac_word=$2 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8327$as_echo_n "checking for $ac_word... " >&6; } 8328if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 if test -n "$ac_ct_OTOOL64"; then 8332 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8333else 8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8335for as_dir in $PATH 8336do 8337 IFS=$as_save_IFS 8338 test -z "$as_dir" && as_dir=. 8339 for ac_exec_ext in '' $ac_executable_extensions; do 8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8341 ac_cv_prog_ac_ct_OTOOL64="otool64" 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8343 break 2 8344 fi 8345done 8346 done 8347IFS=$as_save_IFS 8348 8349fi 8350fi 8351ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8352if test -n "$ac_ct_OTOOL64"; then 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8354$as_echo "$ac_ct_OTOOL64" >&6; } 8355else 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8357$as_echo "no" >&6; } 8358fi 8359 8360 if test "x$ac_ct_OTOOL64" = x; then 8361 OTOOL64=":" 8362 else 8363 case $cross_compiling:$ac_tool_warned in 8364yes:) 8365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8367ac_tool_warned=yes ;; 8368esac 8369 OTOOL64=$ac_ct_OTOOL64 8370 fi 8371else 8372 OTOOL64="$ac_cv_prog_OTOOL64" 8373fi 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8402$as_echo_n "checking for -single_module linker flag... " >&6; } 8403if ${lt_cv_apple_cc_single_mod+:} false; then : 8404 $as_echo_n "(cached) " >&6 8405else 8406 lt_cv_apple_cc_single_mod=no 8407 if test -z "${LT_MULTI_MODULE}"; then 8408 # By default we will add the -single_module flag. You can override 8409 # by either setting the environment variable LT_MULTI_MODULE 8410 # non-empty at configure time, or by adding -multi_module to the 8411 # link flags. 8412 rm -rf libconftest.dylib* 8413 echo "int foo(void){return 1;}" > conftest.c 8414 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8415-dynamiclib -Wl,-single_module conftest.c" >&5 8416 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8417 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8418 _lt_result=$? 8419 # If there is a non-empty error log, and "single_module" 8420 # appears in it, assume the flag caused a linker warning 8421 if test -s conftest.err && $GREP single_module conftest.err; then 8422 cat conftest.err >&5 8423 # Otherwise, if the output was created with a 0 exit code from 8424 # the compiler, it worked. 8425 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8426 lt_cv_apple_cc_single_mod=yes 8427 else 8428 cat conftest.err >&5 8429 fi 8430 rm -rf libconftest.dylib* 8431 rm -f conftest.* 8432 fi 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8435$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8436 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8438$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8439if ${lt_cv_ld_exported_symbols_list+:} false; then : 8440 $as_echo_n "(cached) " >&6 8441else 8442 lt_cv_ld_exported_symbols_list=no 8443 save_LDFLAGS=$LDFLAGS 8444 echo "_main" > conftest.sym 8445 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8447/* end confdefs.h. */ 8448 8449int 8450main () 8451{ 8452 8453 ; 8454 return 0; 8455} 8456_ACEOF 8457if ac_fn_c_try_link "$LINENO"; then : 8458 lt_cv_ld_exported_symbols_list=yes 8459else 8460 lt_cv_ld_exported_symbols_list=no 8461fi 8462rm -f core conftest.err conftest.$ac_objext \ 8463 conftest$ac_exeext conftest.$ac_ext 8464 LDFLAGS="$save_LDFLAGS" 8465 8466fi 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8468$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8469 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8471$as_echo_n "checking for -force_load linker flag... " >&6; } 8472if ${lt_cv_ld_force_load+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 lt_cv_ld_force_load=no 8476 cat > conftest.c << _LT_EOF 8477int forced_loaded() { return 2;} 8478_LT_EOF 8479 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8480 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8481 echo "$AR cru libconftest.a conftest.o" >&5 8482 $AR cru libconftest.a conftest.o 2>&5 8483 echo "$RANLIB libconftest.a" >&5 8484 $RANLIB libconftest.a 2>&5 8485 cat > conftest.c << _LT_EOF 8486int main() { return 0;} 8487_LT_EOF 8488 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8489 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8490 _lt_result=$? 8491 if test -s conftest.err && $GREP force_load conftest.err; then 8492 cat conftest.err >&5 8493 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8494 lt_cv_ld_force_load=yes 8495 else 8496 cat conftest.err >&5 8497 fi 8498 rm -f conftest.err libconftest.a conftest conftest.c 8499 rm -rf conftest.dSYM 8500 8501fi 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8503$as_echo "$lt_cv_ld_force_load" >&6; } 8504 case $host_os in 8505 rhapsody* | darwin1.[012]) 8506 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8507 darwin1.*) 8508 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8509 darwin*) # darwin 5.x on 8510 # if running on 10.5 or later, the deployment target defaults 8511 # to the OS version, if on x86, and 10.4, the deployment 8512 # target defaults to 10.4. Don't you love it? 8513 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8514 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8516 10.[012]*) 8517 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8518 10.*) 8519 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8520 esac 8521 ;; 8522 esac 8523 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8524 _lt_dar_single_mod='$single_module' 8525 fi 8526 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8527 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8528 else 8529 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8530 fi 8531 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8532 _lt_dsymutil='~$DSYMUTIL $lib || :' 8533 else 8534 _lt_dsymutil= 8535 fi 8536 ;; 8537 esac 8538 8539 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8541$as_echo_n "checking for ANSI C header files... " >&6; } 8542if ${ac_cv_header_stdc+:} false; then : 8543 $as_echo_n "(cached) " >&6 8544else 8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8546/* end confdefs.h. */ 8547#include <stdlib.h> 8548#include <stdarg.h> 8549#include <string.h> 8550#include <float.h> 8551 8552int 8553main () 8554{ 8555 8556 ; 8557 return 0; 8558} 8559_ACEOF 8560if ac_fn_c_try_compile "$LINENO"; then : 8561 ac_cv_header_stdc=yes 8562else 8563 ac_cv_header_stdc=no 8564fi 8565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8566 8567if test $ac_cv_header_stdc = yes; then 8568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570/* end confdefs.h. */ 8571#include <string.h> 8572 8573_ACEOF 8574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8575 $EGREP "memchr" >/dev/null 2>&1; then : 8576 8577else 8578 ac_cv_header_stdc=no 8579fi 8580rm -f conftest* 8581 8582fi 8583 8584if test $ac_cv_header_stdc = yes; then 8585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588#include <stdlib.h> 8589 8590_ACEOF 8591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8592 $EGREP "free" >/dev/null 2>&1; then : 8593 8594else 8595 ac_cv_header_stdc=no 8596fi 8597rm -f conftest* 8598 8599fi 8600 8601if test $ac_cv_header_stdc = yes; then 8602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8603 if test "$cross_compiling" = yes; then : 8604 : 8605else 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608#include <ctype.h> 8609#include <stdlib.h> 8610#if ((' ' & 0x0FF) == 0x020) 8611# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8612# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8613#else 8614# define ISLOWER(c) \ 8615 (('a' <= (c) && (c) <= 'i') \ 8616 || ('j' <= (c) && (c) <= 'r') \ 8617 || ('s' <= (c) && (c) <= 'z')) 8618# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8619#endif 8620 8621#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8622int 8623main () 8624{ 8625 int i; 8626 for (i = 0; i < 256; i++) 8627 if (XOR (islower (i), ISLOWER (i)) 8628 || toupper (i) != TOUPPER (i)) 8629 return 2; 8630 return 0; 8631} 8632_ACEOF 8633if ac_fn_c_try_run "$LINENO"; then : 8634 8635else 8636 ac_cv_header_stdc=no 8637fi 8638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8639 conftest.$ac_objext conftest.beam conftest.$ac_ext 8640fi 8641 8642fi 8643fi 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8645$as_echo "$ac_cv_header_stdc" >&6; } 8646if test $ac_cv_header_stdc = yes; then 8647 8648$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8649 8650fi 8651 8652# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8653for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8654 inttypes.h stdint.h unistd.h 8655do : 8656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8657ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8658" 8659if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8660 cat >>confdefs.h <<_ACEOF 8661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8662_ACEOF 8663 8664fi 8665 8666done 8667 8668 8669for ac_header in dlfcn.h 8670do : 8671 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8672" 8673if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8674 cat >>confdefs.h <<_ACEOF 8675#define HAVE_DLFCN_H 1 8676_ACEOF 8677 8678fi 8679 8680done 8681 8682 8683 8684 8685func_stripname_cnf () 8686{ 8687 case ${2} in 8688 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8689 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8690 esac 8691} # func_stripname_cnf 8692 8693 8694 8695 8696 8697# Set options 8698 8699 8700 8701 enable_dlopen=no 8702 8703 8704 8705 8706 8707 8708# Check whether --with-pic was given. 8709if test "${with_pic+set}" = set; then : 8710 withval=$with_pic; lt_p=${PACKAGE-default} 8711 case $withval in 8712 yes|no) pic_mode=$withval ;; 8713 *) 8714 pic_mode=default 8715 # Look at the argument we got. We use all the common list separators. 8716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8717 for lt_pkg in $withval; do 8718 IFS="$lt_save_ifs" 8719 if test "X$lt_pkg" = "X$lt_p"; then 8720 pic_mode=yes 8721 fi 8722 done 8723 IFS="$lt_save_ifs" 8724 ;; 8725 esac 8726else 8727 pic_mode=default 8728fi 8729 8730 8731test -z "$pic_mode" && pic_mode=default 8732 8733 8734 8735 8736 8737 8738 8739 # Check whether --enable-fast-install was given. 8740if test "${enable_fast_install+set}" = set; then : 8741 enableval=$enable_fast_install; p=${PACKAGE-default} 8742 case $enableval in 8743 yes) enable_fast_install=yes ;; 8744 no) enable_fast_install=no ;; 8745 *) 8746 enable_fast_install=no 8747 # Look at the argument we got. We use all the common list separators. 8748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8749 for pkg in $enableval; do 8750 IFS="$lt_save_ifs" 8751 if test "X$pkg" = "X$p"; then 8752 enable_fast_install=yes 8753 fi 8754 done 8755 IFS="$lt_save_ifs" 8756 ;; 8757 esac 8758else 8759 enable_fast_install=yes 8760fi 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772# This can be used to rebuild libtool when needed 8773LIBTOOL_DEPS="$ltmain" 8774 8775# Always use our own libtool. 8776LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807test -z "$LN_S" && LN_S="ln -s" 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822if test -n "${ZSH_VERSION+set}" ; then 8823 setopt NO_GLOB_SUBST 8824fi 8825 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8827$as_echo_n "checking for objdir... " >&6; } 8828if ${lt_cv_objdir+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 rm -f .libs 2>/dev/null 8832mkdir .libs 2>/dev/null 8833if test -d .libs; then 8834 lt_cv_objdir=.libs 8835else 8836 # MS-DOS does not allow filenames that begin with a dot. 8837 lt_cv_objdir=_libs 8838fi 8839rmdir .libs 2>/dev/null 8840fi 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8842$as_echo "$lt_cv_objdir" >&6; } 8843objdir=$lt_cv_objdir 8844 8845 8846 8847 8848 8849cat >>confdefs.h <<_ACEOF 8850#define LT_OBJDIR "$lt_cv_objdir/" 8851_ACEOF 8852 8853 8854 8855 8856case $host_os in 8857aix3*) 8858 # AIX sometimes has problems with the GCC collect2 program. For some 8859 # reason, if we set the COLLECT_NAMES environment variable, the problems 8860 # vanish in a puff of smoke. 8861 if test "X${COLLECT_NAMES+set}" != Xset; then 8862 COLLECT_NAMES= 8863 export COLLECT_NAMES 8864 fi 8865 ;; 8866esac 8867 8868# Global variables: 8869ofile=libtool 8870can_build_shared=yes 8871 8872# All known linkers require a `.a' archive for static linking (except MSVC, 8873# which needs '.lib'). 8874libext=a 8875 8876with_gnu_ld="$lt_cv_prog_gnu_ld" 8877 8878old_CC="$CC" 8879old_CFLAGS="$CFLAGS" 8880 8881# Set sane defaults for various variables 8882test -z "$CC" && CC=cc 8883test -z "$LTCC" && LTCC=$CC 8884test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8885test -z "$LD" && LD=ld 8886test -z "$ac_objext" && ac_objext=o 8887 8888for cc_temp in $compiler""; do 8889 case $cc_temp in 8890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8892 \-*) ;; 8893 *) break;; 8894 esac 8895done 8896cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8897 8898 8899# Only perform the check for file, if the check method requires it 8900test -z "$MAGIC_CMD" && MAGIC_CMD=file 8901case $deplibs_check_method in 8902file_magic*) 8903 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8905$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8906if ${lt_cv_path_MAGIC_CMD+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908else 8909 case $MAGIC_CMD in 8910[\\/*] | ?:[\\/]*) 8911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8912 ;; 8913*) 8914 lt_save_MAGIC_CMD="$MAGIC_CMD" 8915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8917 for ac_dir in $ac_dummy; do 8918 IFS="$lt_save_ifs" 8919 test -z "$ac_dir" && ac_dir=. 8920 if test -f $ac_dir/${ac_tool_prefix}file; then 8921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8922 if test -n "$file_magic_test_file"; then 8923 case $deplibs_check_method in 8924 "file_magic "*) 8925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8928 $EGREP "$file_magic_regex" > /dev/null; then 8929 : 8930 else 8931 cat <<_LT_EOF 1>&2 8932 8933*** Warning: the command libtool uses to detect shared libraries, 8934*** $file_magic_cmd, produces output that libtool cannot recognize. 8935*** The result is that libtool may fail to recognize shared libraries 8936*** as such. This will affect the creation of libtool libraries that 8937*** depend on shared libraries, but programs linked with such libtool 8938*** libraries will work regardless of this problem. Nevertheless, you 8939*** may want to report the problem to your system manager and/or to 8940*** bug-libtool@gnu.org 8941 8942_LT_EOF 8943 fi ;; 8944 esac 8945 fi 8946 break 8947 fi 8948 done 8949 IFS="$lt_save_ifs" 8950 MAGIC_CMD="$lt_save_MAGIC_CMD" 8951 ;; 8952esac 8953fi 8954 8955MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8956if test -n "$MAGIC_CMD"; then 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8958$as_echo "$MAGIC_CMD" >&6; } 8959else 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8961$as_echo "no" >&6; } 8962fi 8963 8964 8965 8966 8967 8968if test -z "$lt_cv_path_MAGIC_CMD"; then 8969 if test -n "$ac_tool_prefix"; then 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8971$as_echo_n "checking for file... " >&6; } 8972if ${lt_cv_path_MAGIC_CMD+:} false; then : 8973 $as_echo_n "(cached) " >&6 8974else 8975 case $MAGIC_CMD in 8976[\\/*] | ?:[\\/]*) 8977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8978 ;; 8979*) 8980 lt_save_MAGIC_CMD="$MAGIC_CMD" 8981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8983 for ac_dir in $ac_dummy; do 8984 IFS="$lt_save_ifs" 8985 test -z "$ac_dir" && ac_dir=. 8986 if test -f $ac_dir/file; then 8987 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8988 if test -n "$file_magic_test_file"; then 8989 case $deplibs_check_method in 8990 "file_magic "*) 8991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8994 $EGREP "$file_magic_regex" > /dev/null; then 8995 : 8996 else 8997 cat <<_LT_EOF 1>&2 8998 8999*** Warning: the command libtool uses to detect shared libraries, 9000*** $file_magic_cmd, produces output that libtool cannot recognize. 9001*** The result is that libtool may fail to recognize shared libraries 9002*** as such. This will affect the creation of libtool libraries that 9003*** depend on shared libraries, but programs linked with such libtool 9004*** libraries will work regardless of this problem. Nevertheless, you 9005*** may want to report the problem to your system manager and/or to 9006*** bug-libtool@gnu.org 9007 9008_LT_EOF 9009 fi ;; 9010 esac 9011 fi 9012 break 9013 fi 9014 done 9015 IFS="$lt_save_ifs" 9016 MAGIC_CMD="$lt_save_MAGIC_CMD" 9017 ;; 9018esac 9019fi 9020 9021MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9022if test -n "$MAGIC_CMD"; then 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9024$as_echo "$MAGIC_CMD" >&6; } 9025else 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9027$as_echo "no" >&6; } 9028fi 9029 9030 9031 else 9032 MAGIC_CMD=: 9033 fi 9034fi 9035 9036 fi 9037 ;; 9038esac 9039 9040# Use C for the default configuration in the libtool script 9041 9042lt_save_CC="$CC" 9043ac_ext=c 9044ac_cpp='$CPP $CPPFLAGS' 9045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9047ac_compiler_gnu=$ac_cv_c_compiler_gnu 9048 9049 9050# Source file extension for C test sources. 9051ac_ext=c 9052 9053# Object file extension for compiled C test sources. 9054objext=o 9055objext=$objext 9056 9057# Code to be used in simple compile tests 9058lt_simple_compile_test_code="int some_variable = 0;" 9059 9060# Code to be used in simple link tests 9061lt_simple_link_test_code='int main(){return(0);}' 9062 9063 9064 9065 9066 9067 9068 9069# If no C compiler was specified, use CC. 9070LTCC=${LTCC-"$CC"} 9071 9072# If no C compiler flags were specified, use CFLAGS. 9073LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9074 9075# Allow CC to be a program name with arguments. 9076compiler=$CC 9077 9078# Save the default compiler, since it gets overwritten when the other 9079# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9080compiler_DEFAULT=$CC 9081 9082# save warnings/boilerplate of simple test code 9083ac_outfile=conftest.$ac_objext 9084echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9086_lt_compiler_boilerplate=`cat conftest.err` 9087$RM conftest* 9088 9089ac_outfile=conftest.$ac_objext 9090echo "$lt_simple_link_test_code" >conftest.$ac_ext 9091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9092_lt_linker_boilerplate=`cat conftest.err` 9093$RM -r conftest* 9094 9095 9096## CAVEAT EMPTOR: 9097## There is no encapsulation within the following macros, do not change 9098## the running order or otherwise move them around unless you know exactly 9099## what you are doing... 9100if test -n "$compiler"; then 9101 9102lt_prog_compiler_no_builtin_flag= 9103 9104if test "$GCC" = yes; then 9105 case $cc_basename in 9106 nvcc*) 9107 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9108 *) 9109 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9110 esac 9111 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9113$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9114if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 lt_cv_prog_compiler_rtti_exceptions=no 9118 ac_outfile=conftest.$ac_objext 9119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9120 lt_compiler_flag="-fno-rtti -fno-exceptions" 9121 # Insert the option either (1) after the last *FLAGS variable, or 9122 # (2) before a word containing "conftest.", or (3) at the end. 9123 # Note that $ac_compile itself does not contain backslashes and begins 9124 # with a dollar sign (not a hyphen), so the echo should work correctly. 9125 # The option is referenced via a variable to avoid confusing sed. 9126 lt_compile=`echo "$ac_compile" | $SED \ 9127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9129 -e 's:$: $lt_compiler_flag:'` 9130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9131 (eval "$lt_compile" 2>conftest.err) 9132 ac_status=$? 9133 cat conftest.err >&5 9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9135 if (exit $ac_status) && test -s "$ac_outfile"; then 9136 # The compiler can only warn and ignore the option if not recognized 9137 # So say no if there are warnings other than the usual output. 9138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9141 lt_cv_prog_compiler_rtti_exceptions=yes 9142 fi 9143 fi 9144 $RM conftest* 9145 9146fi 9147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9148$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9149 9150if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9151 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9152else 9153 : 9154fi 9155 9156fi 9157 9158 9159 9160 9161 9162 9163 lt_prog_compiler_wl= 9164lt_prog_compiler_pic= 9165lt_prog_compiler_static= 9166 9167 9168 if test "$GCC" = yes; then 9169 lt_prog_compiler_wl='-Wl,' 9170 lt_prog_compiler_static='-static' 9171 9172 case $host_os in 9173 aix*) 9174 # All AIX code is PIC. 9175 if test "$host_cpu" = ia64; then 9176 # AIX 5 now supports IA64 processor 9177 lt_prog_compiler_static='-Bstatic' 9178 fi 9179 ;; 9180 9181 amigaos*) 9182 case $host_cpu in 9183 powerpc) 9184 # see comment about AmigaOS4 .so support 9185 lt_prog_compiler_pic='-fPIC' 9186 ;; 9187 m68k) 9188 # FIXME: we need at least 68020 code to build shared libraries, but 9189 # adding the `-m68020' flag to GCC prevents building anything better, 9190 # like `-m68040'. 9191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9192 ;; 9193 esac 9194 ;; 9195 9196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9197 # PIC is the default for these OSes. 9198 ;; 9199 9200 mingw* | cygwin* | pw32* | os2* | cegcc*) 9201 # This hack is so that the source file can tell whether it is being 9202 # built for inclusion in a dll (and should export symbols for example). 9203 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9204 # (--disable-auto-import) libraries 9205 lt_prog_compiler_pic='-DDLL_EXPORT' 9206 ;; 9207 9208 darwin* | rhapsody*) 9209 # PIC is the default on this platform 9210 # Common symbols not allowed in MH_DYLIB files 9211 lt_prog_compiler_pic='-fno-common' 9212 ;; 9213 9214 haiku*) 9215 # PIC is the default for Haiku. 9216 # The "-static" flag exists, but is broken. 9217 lt_prog_compiler_static= 9218 ;; 9219 9220 hpux*) 9221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9223 # sets the default TLS model and affects inlining. 9224 case $host_cpu in 9225 hppa*64*) 9226 # +Z the default 9227 ;; 9228 *) 9229 lt_prog_compiler_pic='-fPIC' 9230 ;; 9231 esac 9232 ;; 9233 9234 interix[3-9]*) 9235 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9236 # Instead, we relocate shared libraries at runtime. 9237 ;; 9238 9239 msdosdjgpp*) 9240 # Just because we use GCC doesn't mean we suddenly get shared libraries 9241 # on systems that don't support them. 9242 lt_prog_compiler_can_build_shared=no 9243 enable_shared=no 9244 ;; 9245 9246 *nto* | *qnx*) 9247 # QNX uses GNU C++, but need to define -shared option too, otherwise 9248 # it will coredump. 9249 lt_prog_compiler_pic='-fPIC -shared' 9250 ;; 9251 9252 sysv4*MP*) 9253 if test -d /usr/nec; then 9254 lt_prog_compiler_pic=-Kconform_pic 9255 fi 9256 ;; 9257 9258 *) 9259 lt_prog_compiler_pic='-fPIC' 9260 ;; 9261 esac 9262 9263 case $cc_basename in 9264 nvcc*) # Cuda Compiler Driver 2.2 9265 lt_prog_compiler_wl='-Xlinker ' 9266 if test -n "$lt_prog_compiler_pic"; then 9267 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9268 fi 9269 ;; 9270 esac 9271 else 9272 # PORTME Check for flag to pass linker flags through the system compiler. 9273 case $host_os in 9274 aix*) 9275 lt_prog_compiler_wl='-Wl,' 9276 if test "$host_cpu" = ia64; then 9277 # AIX 5 now supports IA64 processor 9278 lt_prog_compiler_static='-Bstatic' 9279 else 9280 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9281 fi 9282 ;; 9283 9284 mingw* | cygwin* | pw32* | os2* | cegcc*) 9285 # This hack is so that the source file can tell whether it is being 9286 # built for inclusion in a dll (and should export symbols for example). 9287 lt_prog_compiler_pic='-DDLL_EXPORT' 9288 ;; 9289 9290 hpux9* | hpux10* | hpux11*) 9291 lt_prog_compiler_wl='-Wl,' 9292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9293 # not for PA HP-UX. 9294 case $host_cpu in 9295 hppa*64*|ia64*) 9296 # +Z the default 9297 ;; 9298 *) 9299 lt_prog_compiler_pic='+Z' 9300 ;; 9301 esac 9302 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9303 lt_prog_compiler_static='${wl}-a ${wl}archive' 9304 ;; 9305 9306 irix5* | irix6* | nonstopux*) 9307 lt_prog_compiler_wl='-Wl,' 9308 # PIC (with -KPIC) is the default. 9309 lt_prog_compiler_static='-non_shared' 9310 ;; 9311 9312 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9313 case $cc_basename in 9314 # old Intel for x86_64 which still supported -KPIC. 9315 ecc*) 9316 lt_prog_compiler_wl='-Wl,' 9317 lt_prog_compiler_pic='-KPIC' 9318 lt_prog_compiler_static='-static' 9319 ;; 9320 # icc used to be incompatible with GCC. 9321 # ICC 10 doesn't accept -KPIC any more. 9322 icc* | ifort*) 9323 lt_prog_compiler_wl='-Wl,' 9324 lt_prog_compiler_pic='-fPIC' 9325 lt_prog_compiler_static='-static' 9326 ;; 9327 # Lahey Fortran 8.1. 9328 lf95*) 9329 lt_prog_compiler_wl='-Wl,' 9330 lt_prog_compiler_pic='--shared' 9331 lt_prog_compiler_static='--static' 9332 ;; 9333 nagfor*) 9334 # NAG Fortran compiler 9335 lt_prog_compiler_wl='-Wl,-Wl,,' 9336 lt_prog_compiler_pic='-PIC' 9337 lt_prog_compiler_static='-Bstatic' 9338 ;; 9339 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9340 # Portland Group compilers (*not* the Pentium gcc compiler, 9341 # which looks to be a dead project) 9342 lt_prog_compiler_wl='-Wl,' 9343 lt_prog_compiler_pic='-fpic' 9344 lt_prog_compiler_static='-Bstatic' 9345 ;; 9346 ccc*) 9347 lt_prog_compiler_wl='-Wl,' 9348 # All Alpha code is PIC. 9349 lt_prog_compiler_static='-non_shared' 9350 ;; 9351 xl* | bgxl* | bgf* | mpixl*) 9352 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9353 lt_prog_compiler_wl='-Wl,' 9354 lt_prog_compiler_pic='-qpic' 9355 lt_prog_compiler_static='-qstaticlink' 9356 ;; 9357 *) 9358 case `$CC -V 2>&1 | sed 5q` in 9359 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9360 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9361 lt_prog_compiler_pic='-KPIC' 9362 lt_prog_compiler_static='-Bstatic' 9363 lt_prog_compiler_wl='' 9364 ;; 9365 *Sun\ F* | *Sun*Fortran*) 9366 lt_prog_compiler_pic='-KPIC' 9367 lt_prog_compiler_static='-Bstatic' 9368 lt_prog_compiler_wl='-Qoption ld ' 9369 ;; 9370 *Sun\ C*) 9371 # Sun C 5.9 9372 lt_prog_compiler_pic='-KPIC' 9373 lt_prog_compiler_static='-Bstatic' 9374 lt_prog_compiler_wl='-Wl,' 9375 ;; 9376 *Intel*\ [CF]*Compiler*) 9377 lt_prog_compiler_wl='-Wl,' 9378 lt_prog_compiler_pic='-fPIC' 9379 lt_prog_compiler_static='-static' 9380 ;; 9381 *Portland\ Group*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-fpic' 9384 lt_prog_compiler_static='-Bstatic' 9385 ;; 9386 esac 9387 ;; 9388 esac 9389 ;; 9390 9391 newsos6) 9392 lt_prog_compiler_pic='-KPIC' 9393 lt_prog_compiler_static='-Bstatic' 9394 ;; 9395 9396 *nto* | *qnx*) 9397 # QNX uses GNU C++, but need to define -shared option too, otherwise 9398 # it will coredump. 9399 lt_prog_compiler_pic='-fPIC -shared' 9400 ;; 9401 9402 osf3* | osf4* | osf5*) 9403 lt_prog_compiler_wl='-Wl,' 9404 # All OSF/1 code is PIC. 9405 lt_prog_compiler_static='-non_shared' 9406 ;; 9407 9408 rdos*) 9409 lt_prog_compiler_static='-non_shared' 9410 ;; 9411 9412 solaris*) 9413 lt_prog_compiler_pic='-KPIC' 9414 lt_prog_compiler_static='-Bstatic' 9415 case $cc_basename in 9416 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9417 lt_prog_compiler_wl='-Qoption ld ';; 9418 *) 9419 lt_prog_compiler_wl='-Wl,';; 9420 esac 9421 ;; 9422 9423 sunos4*) 9424 lt_prog_compiler_wl='-Qoption ld ' 9425 lt_prog_compiler_pic='-PIC' 9426 lt_prog_compiler_static='-Bstatic' 9427 ;; 9428 9429 sysv4 | sysv4.2uw2* | sysv4.3*) 9430 lt_prog_compiler_wl='-Wl,' 9431 lt_prog_compiler_pic='-KPIC' 9432 lt_prog_compiler_static='-Bstatic' 9433 ;; 9434 9435 sysv4*MP*) 9436 if test -d /usr/nec ;then 9437 lt_prog_compiler_pic='-Kconform_pic' 9438 lt_prog_compiler_static='-Bstatic' 9439 fi 9440 ;; 9441 9442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9443 lt_prog_compiler_wl='-Wl,' 9444 lt_prog_compiler_pic='-KPIC' 9445 lt_prog_compiler_static='-Bstatic' 9446 ;; 9447 9448 unicos*) 9449 lt_prog_compiler_wl='-Wl,' 9450 lt_prog_compiler_can_build_shared=no 9451 ;; 9452 9453 uts4*) 9454 lt_prog_compiler_pic='-pic' 9455 lt_prog_compiler_static='-Bstatic' 9456 ;; 9457 9458 *) 9459 lt_prog_compiler_can_build_shared=no 9460 ;; 9461 esac 9462 fi 9463 9464case $host_os in 9465 # For platforms which do not support PIC, -DPIC is meaningless: 9466 *djgpp*) 9467 lt_prog_compiler_pic= 9468 ;; 9469 *) 9470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9471 ;; 9472esac 9473 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9475$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9476if ${lt_cv_prog_compiler_pic+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9480fi 9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9482$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9483lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9484 9485# 9486# Check to make sure the PIC flag actually works. 9487# 9488if test -n "$lt_prog_compiler_pic"; then 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9490$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9491if ${lt_cv_prog_compiler_pic_works+:} false; then : 9492 $as_echo_n "(cached) " >&6 9493else 9494 lt_cv_prog_compiler_pic_works=no 9495 ac_outfile=conftest.$ac_objext 9496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9497 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9498 # Insert the option either (1) after the last *FLAGS variable, or 9499 # (2) before a word containing "conftest.", or (3) at the end. 9500 # Note that $ac_compile itself does not contain backslashes and begins 9501 # with a dollar sign (not a hyphen), so the echo should work correctly. 9502 # The option is referenced via a variable to avoid confusing sed. 9503 lt_compile=`echo "$ac_compile" | $SED \ 9504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9506 -e 's:$: $lt_compiler_flag:'` 9507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9508 (eval "$lt_compile" 2>conftest.err) 9509 ac_status=$? 9510 cat conftest.err >&5 9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 if (exit $ac_status) && test -s "$ac_outfile"; then 9513 # The compiler can only warn and ignore the option if not recognized 9514 # So say no if there are warnings other than the usual output. 9515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9518 lt_cv_prog_compiler_pic_works=yes 9519 fi 9520 fi 9521 $RM conftest* 9522 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9525$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9526 9527if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9528 case $lt_prog_compiler_pic in 9529 "" | " "*) ;; 9530 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9531 esac 9532else 9533 lt_prog_compiler_pic= 9534 lt_prog_compiler_can_build_shared=no 9535fi 9536 9537fi 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549# 9550# Check to make sure the static flag actually works. 9551# 9552wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9554$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9555if ${lt_cv_prog_compiler_static_works+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 lt_cv_prog_compiler_static_works=no 9559 save_LDFLAGS="$LDFLAGS" 9560 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9561 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9563 # The linker can only warn and ignore the option if not recognized 9564 # So say no if there are warnings 9565 if test -s conftest.err; then 9566 # Append any errors to the config.log. 9567 cat conftest.err 1>&5 9568 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9570 if diff conftest.exp conftest.er2 >/dev/null; then 9571 lt_cv_prog_compiler_static_works=yes 9572 fi 9573 else 9574 lt_cv_prog_compiler_static_works=yes 9575 fi 9576 fi 9577 $RM -r conftest* 9578 LDFLAGS="$save_LDFLAGS" 9579 9580fi 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9582$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9583 9584if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9585 : 9586else 9587 lt_prog_compiler_static= 9588fi 9589 9590 9591 9592 9593 9594 9595 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9598if ${lt_cv_prog_compiler_c_o+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 lt_cv_prog_compiler_c_o=no 9602 $RM -r conftest 2>/dev/null 9603 mkdir conftest 9604 cd conftest 9605 mkdir out 9606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9607 9608 lt_compiler_flag="-o out/conftest2.$ac_objext" 9609 # Insert the option either (1) after the last *FLAGS variable, or 9610 # (2) before a word containing "conftest.", or (3) at the end. 9611 # Note that $ac_compile itself does not contain backslashes and begins 9612 # with a dollar sign (not a hyphen), so the echo should work correctly. 9613 lt_compile=`echo "$ac_compile" | $SED \ 9614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9616 -e 's:$: $lt_compiler_flag:'` 9617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9618 (eval "$lt_compile" 2>out/conftest.err) 9619 ac_status=$? 9620 cat out/conftest.err >&5 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9623 then 9624 # The compiler can only warn and ignore the option if not recognized 9625 # So say no if there are warnings 9626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9629 lt_cv_prog_compiler_c_o=yes 9630 fi 9631 fi 9632 chmod u+w . 2>&5 9633 $RM conftest* 9634 # SGI C++ compiler will create directory out/ii_files/ for 9635 # template instantiation 9636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9637 $RM out/* && rmdir out 9638 cd .. 9639 $RM -r conftest 9640 $RM conftest* 9641 9642fi 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9644$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9645 9646 9647 9648 9649 9650 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9652$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9653if ${lt_cv_prog_compiler_c_o+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 lt_cv_prog_compiler_c_o=no 9657 $RM -r conftest 2>/dev/null 9658 mkdir conftest 9659 cd conftest 9660 mkdir out 9661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9662 9663 lt_compiler_flag="-o out/conftest2.$ac_objext" 9664 # Insert the option either (1) after the last *FLAGS variable, or 9665 # (2) before a word containing "conftest.", or (3) at the end. 9666 # Note that $ac_compile itself does not contain backslashes and begins 9667 # with a dollar sign (not a hyphen), so the echo should work correctly. 9668 lt_compile=`echo "$ac_compile" | $SED \ 9669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9671 -e 's:$: $lt_compiler_flag:'` 9672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9673 (eval "$lt_compile" 2>out/conftest.err) 9674 ac_status=$? 9675 cat out/conftest.err >&5 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9677 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9678 then 9679 # The compiler can only warn and ignore the option if not recognized 9680 # So say no if there are warnings 9681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9684 lt_cv_prog_compiler_c_o=yes 9685 fi 9686 fi 9687 chmod u+w . 2>&5 9688 $RM conftest* 9689 # SGI C++ compiler will create directory out/ii_files/ for 9690 # template instantiation 9691 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9692 $RM out/* && rmdir out 9693 cd .. 9694 $RM -r conftest 9695 $RM conftest* 9696 9697fi 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9699$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9700 9701 9702 9703 9704hard_links="nottested" 9705if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9706 # do not overwrite the value of need_locks provided by the user 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9708$as_echo_n "checking if we can lock with hard links... " >&6; } 9709 hard_links=yes 9710 $RM conftest* 9711 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9712 touch conftest.a 9713 ln conftest.a conftest.b 2>&5 || hard_links=no 9714 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9716$as_echo "$hard_links" >&6; } 9717 if test "$hard_links" = no; then 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9719$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9720 need_locks=warn 9721 fi 9722else 9723 need_locks=no 9724fi 9725 9726 9727 9728 9729 9730 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9732$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9733 9734 runpath_var= 9735 allow_undefined_flag= 9736 always_export_symbols=no 9737 archive_cmds= 9738 archive_expsym_cmds= 9739 compiler_needs_object=no 9740 enable_shared_with_static_runtimes=no 9741 export_dynamic_flag_spec= 9742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9743 hardcode_automatic=no 9744 hardcode_direct=no 9745 hardcode_direct_absolute=no 9746 hardcode_libdir_flag_spec= 9747 hardcode_libdir_separator= 9748 hardcode_minus_L=no 9749 hardcode_shlibpath_var=unsupported 9750 inherit_rpath=no 9751 link_all_deplibs=unknown 9752 module_cmds= 9753 module_expsym_cmds= 9754 old_archive_from_new_cmds= 9755 old_archive_from_expsyms_cmds= 9756 thread_safe_flag_spec= 9757 whole_archive_flag_spec= 9758 # include_expsyms should be a list of space-separated symbols to be *always* 9759 # included in the symbol list 9760 include_expsyms= 9761 # exclude_expsyms can be an extended regexp of symbols to exclude 9762 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9764 # as well as any symbol that contains `d'. 9765 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9767 # platforms (ab)use it in PIC code, but their linkers get confused if 9768 # the symbol is explicitly referenced. Since portable code cannot 9769 # rely on this symbol name, it's probably fine to never include it in 9770 # preloaded symbol tables. 9771 # Exclude shared library initialization/finalization symbols. 9772 extract_expsyms_cmds= 9773 9774 case $host_os in 9775 cygwin* | mingw* | pw32* | cegcc*) 9776 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9777 # When not using gcc, we currently assume that we are using 9778 # Microsoft Visual C++. 9779 if test "$GCC" != yes; then 9780 with_gnu_ld=no 9781 fi 9782 ;; 9783 interix*) 9784 # we just hope/assume this is gcc and not c89 (= MSVC++) 9785 with_gnu_ld=yes 9786 ;; 9787 openbsd*) 9788 with_gnu_ld=no 9789 ;; 9790 esac 9791 9792 ld_shlibs=yes 9793 9794 # On some targets, GNU ld is compatible enough with the native linker 9795 # that we're better off using the native interface for both. 9796 lt_use_gnu_ld_interface=no 9797 if test "$with_gnu_ld" = yes; then 9798 case $host_os in 9799 aix*) 9800 # The AIX port of GNU ld has always aspired to compatibility 9801 # with the native linker. However, as the warning in the GNU ld 9802 # block says, versions before 2.19.5* couldn't really create working 9803 # shared libraries, regardless of the interface used. 9804 case `$LD -v 2>&1` in 9805 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9806 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9807 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9808 *) 9809 lt_use_gnu_ld_interface=yes 9810 ;; 9811 esac 9812 ;; 9813 *) 9814 lt_use_gnu_ld_interface=yes 9815 ;; 9816 esac 9817 fi 9818 9819 if test "$lt_use_gnu_ld_interface" = yes; then 9820 # If archive_cmds runs LD, not CC, wlarc should be empty 9821 wlarc='${wl}' 9822 9823 # Set some defaults for GNU ld with shared library support. These 9824 # are reset later if shared libraries are not supported. Putting them 9825 # here allows them to be overridden if necessary. 9826 runpath_var=LD_RUN_PATH 9827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9828 export_dynamic_flag_spec='${wl}--export-dynamic' 9829 # ancient GNU ld didn't support --whole-archive et. al. 9830 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9831 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9832 else 9833 whole_archive_flag_spec= 9834 fi 9835 supports_anon_versioning=no 9836 case `$LD -v 2>&1` in 9837 *GNU\ gold*) supports_anon_versioning=yes ;; 9838 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9841 *\ 2.11.*) ;; # other 2.11 versions 9842 *) supports_anon_versioning=yes ;; 9843 esac 9844 9845 # See if GNU ld supports shared libraries. 9846 case $host_os in 9847 aix[3-9]*) 9848 # On AIX/PPC, the GNU linker is very broken 9849 if test "$host_cpu" != ia64; then 9850 ld_shlibs=no 9851 cat <<_LT_EOF 1>&2 9852 9853*** Warning: the GNU linker, at least up to release 2.19, is reported 9854*** to be unable to reliably create shared libraries on AIX. 9855*** Therefore, libtool is disabling shared libraries support. If you 9856*** really care for shared libraries, you may want to install binutils 9857*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9858*** You will then need to restart the configuration process. 9859 9860_LT_EOF 9861 fi 9862 ;; 9863 9864 amigaos*) 9865 case $host_cpu in 9866 powerpc) 9867 # see comment about AmigaOS4 .so support 9868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9869 archive_expsym_cmds='' 9870 ;; 9871 m68k) 9872 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)' 9873 hardcode_libdir_flag_spec='-L$libdir' 9874 hardcode_minus_L=yes 9875 ;; 9876 esac 9877 ;; 9878 9879 beos*) 9880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9881 allow_undefined_flag=unsupported 9882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9883 # support --undefined. This deserves some investigation. FIXME 9884 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9885 else 9886 ld_shlibs=no 9887 fi 9888 ;; 9889 9890 cygwin* | mingw* | pw32* | cegcc*) 9891 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9892 # as there is no search path for DLLs. 9893 hardcode_libdir_flag_spec='-L$libdir' 9894 export_dynamic_flag_spec='${wl}--export-all-symbols' 9895 allow_undefined_flag=unsupported 9896 always_export_symbols=no 9897 enable_shared_with_static_runtimes=yes 9898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9899 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9900 9901 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9903 # If the export-symbols file already is a .def file (1st line 9904 # is EXPORTS), use it as is; otherwise, prepend... 9905 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9906 cp $export_symbols $output_objdir/$soname.def; 9907 else 9908 echo EXPORTS > $output_objdir/$soname.def; 9909 cat $export_symbols >> $output_objdir/$soname.def; 9910 fi~ 9911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9912 else 9913 ld_shlibs=no 9914 fi 9915 ;; 9916 9917 haiku*) 9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9919 link_all_deplibs=yes 9920 ;; 9921 9922 interix[3-9]*) 9923 hardcode_direct=no 9924 hardcode_shlibpath_var=no 9925 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9926 export_dynamic_flag_spec='${wl}-E' 9927 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9928 # Instead, shared libraries are loaded at an image base (0x10000000 by 9929 # default) and relocated if they conflict, which is a slow very memory 9930 # consuming and fragmenting process. To avoid this, we pick a random, 9931 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9932 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9934 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' 9935 ;; 9936 9937 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9938 tmp_diet=no 9939 if test "$host_os" = linux-dietlibc; then 9940 case $cc_basename in 9941 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9942 esac 9943 fi 9944 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9945 && test "$tmp_diet" = no 9946 then 9947 tmp_addflag=' $pic_flag' 9948 tmp_sharedflag='-shared' 9949 case $cc_basename,$host_cpu in 9950 pgcc*) # Portland Group C compiler 9951 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' 9952 tmp_addflag=' $pic_flag' 9953 ;; 9954 pgf77* | pgf90* | pgf95* | pgfortran*) 9955 # Portland Group f77 and f90 compilers 9956 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9957 tmp_addflag=' $pic_flag -Mnomain' ;; 9958 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9959 tmp_addflag=' -i_dynamic' ;; 9960 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9961 tmp_addflag=' -i_dynamic -nofor_main' ;; 9962 ifc* | ifort*) # Intel Fortran compiler 9963 tmp_addflag=' -nofor_main' ;; 9964 lf95*) # Lahey Fortran 8.1 9965 whole_archive_flag_spec= 9966 tmp_sharedflag='--shared' ;; 9967 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9968 tmp_sharedflag='-qmkshrobj' 9969 tmp_addflag= ;; 9970 nvcc*) # Cuda Compiler Driver 2.2 9971 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' 9972 compiler_needs_object=yes 9973 ;; 9974 esac 9975 case `$CC -V 2>&1 | sed 5q` in 9976 *Sun\ C*) # Sun C 5.9 9977 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' 9978 compiler_needs_object=yes 9979 tmp_sharedflag='-G' ;; 9980 *Sun\ F*) # Sun Fortran 8.3 9981 tmp_sharedflag='-G' ;; 9982 esac 9983 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9984 9985 if test "x$supports_anon_versioning" = xyes; then 9986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9988 echo "local: *; };" >> $output_objdir/$libname.ver~ 9989 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9990 fi 9991 9992 case $cc_basename in 9993 xlf* | bgf* | bgxlf* | mpixlf*) 9994 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9995 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9997 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9998 if test "x$supports_anon_versioning" = xyes; then 9999 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10001 echo "local: *; };" >> $output_objdir/$libname.ver~ 10002 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10003 fi 10004 ;; 10005 esac 10006 else 10007 ld_shlibs=no 10008 fi 10009 ;; 10010 10011 netbsd*) 10012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10013 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10014 wlarc= 10015 else 10016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10017 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10018 fi 10019 ;; 10020 10021 solaris*) 10022 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10023 ld_shlibs=no 10024 cat <<_LT_EOF 1>&2 10025 10026*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10027*** create shared libraries on Solaris systems. Therefore, libtool 10028*** is disabling shared libraries support. We urge you to upgrade GNU 10029*** binutils to release 2.9.1 or newer. Another option is to modify 10030*** your PATH or compiler configuration so that the native linker is 10031*** used, and then restart. 10032 10033_LT_EOF 10034 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10036 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10037 else 10038 ld_shlibs=no 10039 fi 10040 ;; 10041 10042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10043 case `$LD -v 2>&1` in 10044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10045 ld_shlibs=no 10046 cat <<_LT_EOF 1>&2 10047 10048*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10049*** reliably create shared libraries on SCO systems. Therefore, libtool 10050*** is disabling shared libraries support. We urge you to upgrade GNU 10051*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10052*** your PATH or compiler configuration so that the native linker is 10053*** used, and then restart. 10054 10055_LT_EOF 10056 ;; 10057 *) 10058 # For security reasons, it is highly recommended that you always 10059 # use absolute paths for naming shared libraries, and exclude the 10060 # DT_RUNPATH tag from executables and libraries. But doing so 10061 # requires that you compile everything twice, which is a pain. 10062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10066 else 10067 ld_shlibs=no 10068 fi 10069 ;; 10070 esac 10071 ;; 10072 10073 sunos4*) 10074 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10075 wlarc= 10076 hardcode_direct=yes 10077 hardcode_shlibpath_var=no 10078 ;; 10079 10080 *) 10081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10083 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10084 else 10085 ld_shlibs=no 10086 fi 10087 ;; 10088 esac 10089 10090 if test "$ld_shlibs" = no; then 10091 runpath_var= 10092 hardcode_libdir_flag_spec= 10093 export_dynamic_flag_spec= 10094 whole_archive_flag_spec= 10095 fi 10096 else 10097 # PORTME fill in a description of your system's linker (not GNU ld) 10098 case $host_os in 10099 aix3*) 10100 allow_undefined_flag=unsupported 10101 always_export_symbols=yes 10102 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' 10103 # Note: this linker hardcodes the directories in LIBPATH if there 10104 # are no directories specified by -L. 10105 hardcode_minus_L=yes 10106 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10107 # Neither direct hardcoding nor static linking is supported with a 10108 # broken collect2. 10109 hardcode_direct=unsupported 10110 fi 10111 ;; 10112 10113 aix[4-9]*) 10114 if test "$host_cpu" = ia64; then 10115 # On IA64, the linker does run time linking by default, so we don't 10116 # have to do anything special. 10117 aix_use_runtimelinking=no 10118 exp_sym_flag='-Bexport' 10119 no_entry_flag="" 10120 else 10121 # If we're using GNU nm, then we don't want the "-C" option. 10122 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10123 # Also, AIX nm treats weak defined symbols like other global 10124 # defined symbols, whereas GNU nm marks them as "W". 10125 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10126 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' 10127 else 10128 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' 10129 fi 10130 aix_use_runtimelinking=no 10131 10132 # Test if we are trying to use run time linking or normal 10133 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10134 # need to do runtime linking. 10135 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10136 for ld_flag in $LDFLAGS; do 10137 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10138 aix_use_runtimelinking=yes 10139 break 10140 fi 10141 done 10142 ;; 10143 esac 10144 10145 exp_sym_flag='-bexport' 10146 no_entry_flag='-bnoentry' 10147 fi 10148 10149 # When large executables or shared objects are built, AIX ld can 10150 # have problems creating the table of contents. If linking a library 10151 # or program results in "error TOC overflow" add -mminimal-toc to 10152 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10153 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10154 10155 archive_cmds='' 10156 hardcode_direct=yes 10157 hardcode_direct_absolute=yes 10158 hardcode_libdir_separator=':' 10159 link_all_deplibs=yes 10160 file_list_spec='${wl}-f,' 10161 10162 if test "$GCC" = yes; then 10163 case $host_os in aix4.[012]|aix4.[012].*) 10164 # We only want to do this on AIX 4.2 and lower, the check 10165 # below for broken collect2 doesn't work under 4.3+ 10166 collect2name=`${CC} -print-prog-name=collect2` 10167 if test -f "$collect2name" && 10168 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10169 then 10170 # We have reworked collect2 10171 : 10172 else 10173 # We have old collect2 10174 hardcode_direct=unsupported 10175 # It fails to find uninstalled libraries when the uninstalled 10176 # path is not listed in the libpath. Setting hardcode_minus_L 10177 # to unsupported forces relinking 10178 hardcode_minus_L=yes 10179 hardcode_libdir_flag_spec='-L$libdir' 10180 hardcode_libdir_separator= 10181 fi 10182 ;; 10183 esac 10184 shared_flag='-shared' 10185 if test "$aix_use_runtimelinking" = yes; then 10186 shared_flag="$shared_flag "'${wl}-G' 10187 fi 10188 else 10189 # not using gcc 10190 if test "$host_cpu" = ia64; then 10191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10192 # chokes on -Wl,-G. The following line is correct: 10193 shared_flag='-G' 10194 else 10195 if test "$aix_use_runtimelinking" = yes; then 10196 shared_flag='${wl}-G' 10197 else 10198 shared_flag='${wl}-bM:SRE' 10199 fi 10200 fi 10201 fi 10202 10203 export_dynamic_flag_spec='${wl}-bexpall' 10204 # It seems that -bexpall does not export symbols beginning with 10205 # underscore (_), so it is better to generate a list of symbols to export. 10206 always_export_symbols=yes 10207 if test "$aix_use_runtimelinking" = yes; then 10208 # Warning - without using the other runtime loading flags (-brtl), 10209 # -berok will link without error, but may produce a broken library. 10210 allow_undefined_flag='-berok' 10211 # Determine the default libpath from the value encoded in an 10212 # empty executable. 10213 if test "${lt_cv_aix_libpath+set}" = set; then 10214 aix_libpath=$lt_cv_aix_libpath 10215else 10216 if ${lt_cv_aix_libpath_+:} false; then : 10217 $as_echo_n "(cached) " >&6 10218else 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221 10222int 10223main () 10224{ 10225 10226 ; 10227 return 0; 10228} 10229_ACEOF 10230if ac_fn_c_try_link "$LINENO"; then : 10231 10232 lt_aix_libpath_sed=' 10233 /Import File Strings/,/^$/ { 10234 /^0/ { 10235 s/^0 *\([^ ]*\) *$/\1/ 10236 p 10237 } 10238 }' 10239 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10240 # Check for a 64-bit object if we didn't find anything. 10241 if test -z "$lt_cv_aix_libpath_"; then 10242 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10243 fi 10244fi 10245rm -f core conftest.err conftest.$ac_objext \ 10246 conftest$ac_exeext conftest.$ac_ext 10247 if test -z "$lt_cv_aix_libpath_"; then 10248 lt_cv_aix_libpath_="/usr/lib:/lib" 10249 fi 10250 10251fi 10252 10253 aix_libpath=$lt_cv_aix_libpath_ 10254fi 10255 10256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10257 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" 10258 else 10259 if test "$host_cpu" = ia64; then 10260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10261 allow_undefined_flag="-z nodefs" 10262 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" 10263 else 10264 # Determine the default libpath from the value encoded in an 10265 # empty executable. 10266 if test "${lt_cv_aix_libpath+set}" = set; then 10267 aix_libpath=$lt_cv_aix_libpath 10268else 10269 if ${lt_cv_aix_libpath_+:} false; then : 10270 $as_echo_n "(cached) " >&6 10271else 10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10273/* end confdefs.h. */ 10274 10275int 10276main () 10277{ 10278 10279 ; 10280 return 0; 10281} 10282_ACEOF 10283if ac_fn_c_try_link "$LINENO"; then : 10284 10285 lt_aix_libpath_sed=' 10286 /Import File Strings/,/^$/ { 10287 /^0/ { 10288 s/^0 *\([^ ]*\) *$/\1/ 10289 p 10290 } 10291 }' 10292 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10293 # Check for a 64-bit object if we didn't find anything. 10294 if test -z "$lt_cv_aix_libpath_"; then 10295 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10296 fi 10297fi 10298rm -f core conftest.err conftest.$ac_objext \ 10299 conftest$ac_exeext conftest.$ac_ext 10300 if test -z "$lt_cv_aix_libpath_"; then 10301 lt_cv_aix_libpath_="/usr/lib:/lib" 10302 fi 10303 10304fi 10305 10306 aix_libpath=$lt_cv_aix_libpath_ 10307fi 10308 10309 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10310 # Warning - without using the other run time loading flags, 10311 # -berok will link without error, but may produce a broken library. 10312 no_undefined_flag=' ${wl}-bernotok' 10313 allow_undefined_flag=' ${wl}-berok' 10314 if test "$with_gnu_ld" = yes; then 10315 # We only use this code for GNU lds that support --whole-archive. 10316 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10317 else 10318 # Exported symbols can be pulled into shared objects from archives 10319 whole_archive_flag_spec='$convenience' 10320 fi 10321 archive_cmds_need_lc=yes 10322 # This is similar to how AIX traditionally builds its shared libraries. 10323 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' 10324 fi 10325 fi 10326 ;; 10327 10328 amigaos*) 10329 case $host_cpu in 10330 powerpc) 10331 # see comment about AmigaOS4 .so support 10332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10333 archive_expsym_cmds='' 10334 ;; 10335 m68k) 10336 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)' 10337 hardcode_libdir_flag_spec='-L$libdir' 10338 hardcode_minus_L=yes 10339 ;; 10340 esac 10341 ;; 10342 10343 bsdi[45]*) 10344 export_dynamic_flag_spec=-rdynamic 10345 ;; 10346 10347 cygwin* | mingw* | pw32* | cegcc*) 10348 # When not using gcc, we currently assume that we are using 10349 # Microsoft Visual C++. 10350 # hardcode_libdir_flag_spec is actually meaningless, as there is 10351 # no search path for DLLs. 10352 case $cc_basename in 10353 cl*) 10354 # Native MSVC 10355 hardcode_libdir_flag_spec=' ' 10356 allow_undefined_flag=unsupported 10357 always_export_symbols=yes 10358 file_list_spec='@' 10359 # Tell ltmain to make .lib files, not .a files. 10360 libext=lib 10361 # Tell ltmain to make .dll files, not .so files. 10362 shrext_cmds=".dll" 10363 # FIXME: Setting linknames here is a bad hack. 10364 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10365 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10366 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10367 else 10368 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10369 fi~ 10370 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10371 linknames=' 10372 # The linker will not automatically build a static lib if we build a DLL. 10373 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10374 enable_shared_with_static_runtimes=yes 10375 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10377 # Don't use ranlib 10378 old_postinstall_cmds='chmod 644 $oldlib' 10379 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10380 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10381 case $lt_outputfile in 10382 *.exe|*.EXE) ;; 10383 *) 10384 lt_outputfile="$lt_outputfile.exe" 10385 lt_tool_outputfile="$lt_tool_outputfile.exe" 10386 ;; 10387 esac~ 10388 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10389 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10390 $RM "$lt_outputfile.manifest"; 10391 fi' 10392 ;; 10393 *) 10394 # Assume MSVC wrapper 10395 hardcode_libdir_flag_spec=' ' 10396 allow_undefined_flag=unsupported 10397 # Tell ltmain to make .lib files, not .a files. 10398 libext=lib 10399 # Tell ltmain to make .dll files, not .so files. 10400 shrext_cmds=".dll" 10401 # FIXME: Setting linknames here is a bad hack. 10402 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10403 # The linker will automatically build a .lib file if we build a DLL. 10404 old_archive_from_new_cmds='true' 10405 # FIXME: Should let the user specify the lib program. 10406 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10407 enable_shared_with_static_runtimes=yes 10408 ;; 10409 esac 10410 ;; 10411 10412 darwin* | rhapsody*) 10413 10414 10415 archive_cmds_need_lc=no 10416 hardcode_direct=no 10417 hardcode_automatic=yes 10418 hardcode_shlibpath_var=unsupported 10419 if test "$lt_cv_ld_force_load" = "yes"; then 10420 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\"`' 10421 10422 else 10423 whole_archive_flag_spec='' 10424 fi 10425 link_all_deplibs=yes 10426 allow_undefined_flag="$_lt_dar_allow_undefined" 10427 case $cc_basename in 10428 ifort*) _lt_dar_can_shared=yes ;; 10429 *) _lt_dar_can_shared=$GCC ;; 10430 esac 10431 if test "$_lt_dar_can_shared" = "yes"; then 10432 output_verbose_link_cmd=func_echo_all 10433 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10434 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10435 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}" 10436 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}" 10437 10438 else 10439 ld_shlibs=no 10440 fi 10441 10442 ;; 10443 10444 dgux*) 10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10446 hardcode_libdir_flag_spec='-L$libdir' 10447 hardcode_shlibpath_var=no 10448 ;; 10449 10450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10451 # support. Future versions do this automatically, but an explicit c++rt0.o 10452 # does not break anything, and helps significantly (at the cost of a little 10453 # extra space). 10454 freebsd2.2*) 10455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10456 hardcode_libdir_flag_spec='-R$libdir' 10457 hardcode_direct=yes 10458 hardcode_shlibpath_var=no 10459 ;; 10460 10461 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10462 freebsd2.*) 10463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10464 hardcode_direct=yes 10465 hardcode_minus_L=yes 10466 hardcode_shlibpath_var=no 10467 ;; 10468 10469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10470 freebsd* | dragonfly*) 10471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10472 hardcode_libdir_flag_spec='-R$libdir' 10473 hardcode_direct=yes 10474 hardcode_shlibpath_var=no 10475 ;; 10476 10477 hpux9*) 10478 if test "$GCC" = yes; then 10479 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10480 else 10481 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' 10482 fi 10483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10484 hardcode_libdir_separator=: 10485 hardcode_direct=yes 10486 10487 # hardcode_minus_L: Not really in the search PATH, 10488 # but as the default location of the library. 10489 hardcode_minus_L=yes 10490 export_dynamic_flag_spec='${wl}-E' 10491 ;; 10492 10493 hpux10*) 10494 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10495 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10496 else 10497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10498 fi 10499 if test "$with_gnu_ld" = no; then 10500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10501 hardcode_libdir_separator=: 10502 hardcode_direct=yes 10503 hardcode_direct_absolute=yes 10504 export_dynamic_flag_spec='${wl}-E' 10505 # hardcode_minus_L: Not really in the search PATH, 10506 # but as the default location of the library. 10507 hardcode_minus_L=yes 10508 fi 10509 ;; 10510 10511 hpux11*) 10512 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10513 case $host_cpu in 10514 hppa*64*) 10515 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10516 ;; 10517 ia64*) 10518 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10519 ;; 10520 *) 10521 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10522 ;; 10523 esac 10524 else 10525 case $host_cpu in 10526 hppa*64*) 10527 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10528 ;; 10529 ia64*) 10530 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10531 ;; 10532 *) 10533 10534 # Older versions of the 11.00 compiler do not understand -b yet 10535 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10537$as_echo_n "checking if $CC understands -b... " >&6; } 10538if ${lt_cv_prog_compiler__b+:} false; then : 10539 $as_echo_n "(cached) " >&6 10540else 10541 lt_cv_prog_compiler__b=no 10542 save_LDFLAGS="$LDFLAGS" 10543 LDFLAGS="$LDFLAGS -b" 10544 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10546 # The linker can only warn and ignore the option if not recognized 10547 # So say no if there are warnings 10548 if test -s conftest.err; then 10549 # Append any errors to the config.log. 10550 cat conftest.err 1>&5 10551 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10553 if diff conftest.exp conftest.er2 >/dev/null; then 10554 lt_cv_prog_compiler__b=yes 10555 fi 10556 else 10557 lt_cv_prog_compiler__b=yes 10558 fi 10559 fi 10560 $RM -r conftest* 10561 LDFLAGS="$save_LDFLAGS" 10562 10563fi 10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10565$as_echo "$lt_cv_prog_compiler__b" >&6; } 10566 10567if test x"$lt_cv_prog_compiler__b" = xyes; then 10568 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10569else 10570 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10571fi 10572 10573 ;; 10574 esac 10575 fi 10576 if test "$with_gnu_ld" = no; then 10577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10578 hardcode_libdir_separator=: 10579 10580 case $host_cpu in 10581 hppa*64*|ia64*) 10582 hardcode_direct=no 10583 hardcode_shlibpath_var=no 10584 ;; 10585 *) 10586 hardcode_direct=yes 10587 hardcode_direct_absolute=yes 10588 export_dynamic_flag_spec='${wl}-E' 10589 10590 # hardcode_minus_L: Not really in the search PATH, 10591 # but as the default location of the library. 10592 hardcode_minus_L=yes 10593 ;; 10594 esac 10595 fi 10596 ;; 10597 10598 irix5* | irix6* | nonstopux*) 10599 if test "$GCC" = yes; then 10600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10601 # Try to use the -exported_symbol ld option, if it does not 10602 # work, assume that -exports_file does not work either and 10603 # implicitly export all symbols. 10604 # This should be the same for all languages, so no per-tag cache variable. 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10606$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10607if ${lt_cv_irix_exported_symbol+:} false; then : 10608 $as_echo_n "(cached) " >&6 10609else 10610 save_LDFLAGS="$LDFLAGS" 10611 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613/* end confdefs.h. */ 10614int foo (void) { return 0; } 10615_ACEOF 10616if ac_fn_c_try_link "$LINENO"; then : 10617 lt_cv_irix_exported_symbol=yes 10618else 10619 lt_cv_irix_exported_symbol=no 10620fi 10621rm -f core conftest.err conftest.$ac_objext \ 10622 conftest$ac_exeext conftest.$ac_ext 10623 LDFLAGS="$save_LDFLAGS" 10624fi 10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10626$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10627 if test "$lt_cv_irix_exported_symbol" = yes; then 10628 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10629 fi 10630 else 10631 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' 10632 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' 10633 fi 10634 archive_cmds_need_lc='no' 10635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10636 hardcode_libdir_separator=: 10637 inherit_rpath=yes 10638 link_all_deplibs=yes 10639 ;; 10640 10641 netbsd*) 10642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10644 else 10645 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10646 fi 10647 hardcode_libdir_flag_spec='-R$libdir' 10648 hardcode_direct=yes 10649 hardcode_shlibpath_var=no 10650 ;; 10651 10652 newsos6) 10653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10654 hardcode_direct=yes 10655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10656 hardcode_libdir_separator=: 10657 hardcode_shlibpath_var=no 10658 ;; 10659 10660 *nto* | *qnx*) 10661 ;; 10662 10663 openbsd*) 10664 if test -f /usr/libexec/ld.so; then 10665 hardcode_direct=yes 10666 hardcode_shlibpath_var=no 10667 hardcode_direct_absolute=yes 10668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10670 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10672 export_dynamic_flag_spec='${wl}-E' 10673 else 10674 case $host_os in 10675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10677 hardcode_libdir_flag_spec='-R$libdir' 10678 ;; 10679 *) 10680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10682 ;; 10683 esac 10684 fi 10685 else 10686 ld_shlibs=no 10687 fi 10688 ;; 10689 10690 os2*) 10691 hardcode_libdir_flag_spec='-L$libdir' 10692 hardcode_minus_L=yes 10693 allow_undefined_flag=unsupported 10694 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10695 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10696 ;; 10697 10698 osf3*) 10699 if test "$GCC" = yes; then 10700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10701 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10702 else 10703 allow_undefined_flag=' -expect_unresolved \*' 10704 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10705 fi 10706 archive_cmds_need_lc='no' 10707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10708 hardcode_libdir_separator=: 10709 ;; 10710 10711 osf4* | osf5*) # as osf3* with the addition of -msym flag 10712 if test "$GCC" = yes; then 10713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10714 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10716 else 10717 allow_undefined_flag=' -expect_unresolved \*' 10718 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10719 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10720 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10721 10722 # Both c and cxx compiler support -rpath directly 10723 hardcode_libdir_flag_spec='-rpath $libdir' 10724 fi 10725 archive_cmds_need_lc='no' 10726 hardcode_libdir_separator=: 10727 ;; 10728 10729 solaris*) 10730 no_undefined_flag=' -z defs' 10731 if test "$GCC" = yes; then 10732 wlarc='${wl}' 10733 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10735 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10736 else 10737 case `$CC -V 2>&1` in 10738 *"Compilers 5.0"*) 10739 wlarc='' 10740 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10743 ;; 10744 *) 10745 wlarc='${wl}' 10746 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10749 ;; 10750 esac 10751 fi 10752 hardcode_libdir_flag_spec='-R$libdir' 10753 hardcode_shlibpath_var=no 10754 case $host_os in 10755 solaris2.[0-5] | solaris2.[0-5].*) ;; 10756 *) 10757 # The compiler driver will combine and reorder linker options, 10758 # but understands `-z linker_flag'. GCC discards it without `$wl', 10759 # but is careful enough not to reorder. 10760 # Supported since Solaris 2.6 (maybe 2.5.1?) 10761 if test "$GCC" = yes; then 10762 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10763 else 10764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10765 fi 10766 ;; 10767 esac 10768 link_all_deplibs=yes 10769 ;; 10770 10771 sunos4*) 10772 if test "x$host_vendor" = xsequent; then 10773 # Use $CC to link under sequent, because it throws in some extra .o 10774 # files that make .init and .fini sections work. 10775 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10776 else 10777 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10778 fi 10779 hardcode_libdir_flag_spec='-L$libdir' 10780 hardcode_direct=yes 10781 hardcode_minus_L=yes 10782 hardcode_shlibpath_var=no 10783 ;; 10784 10785 sysv4) 10786 case $host_vendor in 10787 sni) 10788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10789 hardcode_direct=yes # is this really true??? 10790 ;; 10791 siemens) 10792 ## LD is ld it makes a PLAMLIB 10793 ## CC just makes a GrossModule. 10794 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10795 reload_cmds='$CC -r -o $output$reload_objs' 10796 hardcode_direct=no 10797 ;; 10798 motorola) 10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10800 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10801 ;; 10802 esac 10803 runpath_var='LD_RUN_PATH' 10804 hardcode_shlibpath_var=no 10805 ;; 10806 10807 sysv4.3*) 10808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10809 hardcode_shlibpath_var=no 10810 export_dynamic_flag_spec='-Bexport' 10811 ;; 10812 10813 sysv4*MP*) 10814 if test -d /usr/nec; then 10815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10816 hardcode_shlibpath_var=no 10817 runpath_var=LD_RUN_PATH 10818 hardcode_runpath_var=yes 10819 ld_shlibs=yes 10820 fi 10821 ;; 10822 10823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10824 no_undefined_flag='${wl}-z,text' 10825 archive_cmds_need_lc=no 10826 hardcode_shlibpath_var=no 10827 runpath_var='LD_RUN_PATH' 10828 10829 if test "$GCC" = yes; then 10830 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10831 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10832 else 10833 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10834 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10835 fi 10836 ;; 10837 10838 sysv5* | sco3.2v5* | sco5v6*) 10839 # Note: We can NOT use -z defs as we might desire, because we do not 10840 # link with -lc, and that would cause any symbols used from libc to 10841 # always be unresolved, which means just about no library would 10842 # ever link correctly. If we're not using GNU ld we use -z text 10843 # though, which does catch some bad symbols but isn't as heavy-handed 10844 # as -z defs. 10845 no_undefined_flag='${wl}-z,text' 10846 allow_undefined_flag='${wl}-z,nodefs' 10847 archive_cmds_need_lc=no 10848 hardcode_shlibpath_var=no 10849 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10850 hardcode_libdir_separator=':' 10851 link_all_deplibs=yes 10852 export_dynamic_flag_spec='${wl}-Bexport' 10853 runpath_var='LD_RUN_PATH' 10854 10855 if test "$GCC" = yes; then 10856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10858 else 10859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10861 fi 10862 ;; 10863 10864 uts4*) 10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10866 hardcode_libdir_flag_spec='-L$libdir' 10867 hardcode_shlibpath_var=no 10868 ;; 10869 10870 *) 10871 ld_shlibs=no 10872 ;; 10873 esac 10874 10875 if test x$host_vendor = xsni; then 10876 case $host in 10877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10878 export_dynamic_flag_spec='${wl}-Blargedynsym' 10879 ;; 10880 esac 10881 fi 10882 fi 10883 10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10885$as_echo "$ld_shlibs" >&6; } 10886test "$ld_shlibs" = no && can_build_shared=no 10887 10888with_gnu_ld=$with_gnu_ld 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904# 10905# Do we need to explicitly link libc? 10906# 10907case "x$archive_cmds_need_lc" in 10908x|xyes) 10909 # Assume -lc should be added 10910 archive_cmds_need_lc=yes 10911 10912 if test "$enable_shared" = yes && test "$GCC" = yes; then 10913 case $archive_cmds in 10914 *'~'*) 10915 # FIXME: we may have to deal with multi-command sequences. 10916 ;; 10917 '$CC '*) 10918 # Test whether the compiler implicitly links with -lc since on some 10919 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10920 # to ld, don't add -lc before -lgcc. 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10922$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10923if ${lt_cv_archive_cmds_need_lc+:} false; then : 10924 $as_echo_n "(cached) " >&6 10925else 10926 $RM conftest* 10927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10928 10929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10930 (eval $ac_compile) 2>&5 10931 ac_status=$? 10932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10933 test $ac_status = 0; } 2>conftest.err; then 10934 soname=conftest 10935 lib=conftest 10936 libobjs=conftest.$ac_objext 10937 deplibs= 10938 wl=$lt_prog_compiler_wl 10939 pic_flag=$lt_prog_compiler_pic 10940 compiler_flags=-v 10941 linker_flags=-v 10942 verstring= 10943 output_objdir=. 10944 libname=conftest 10945 lt_save_allow_undefined_flag=$allow_undefined_flag 10946 allow_undefined_flag= 10947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10948 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10949 ac_status=$? 10950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10951 test $ac_status = 0; } 10952 then 10953 lt_cv_archive_cmds_need_lc=no 10954 else 10955 lt_cv_archive_cmds_need_lc=yes 10956 fi 10957 allow_undefined_flag=$lt_save_allow_undefined_flag 10958 else 10959 cat conftest.err 1>&5 10960 fi 10961 $RM conftest* 10962 10963fi 10964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10965$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10966 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10967 ;; 10968 esac 10969 fi 10970 ;; 10971esac 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11125$as_echo_n "checking dynamic linker characteristics... " >&6; } 11126 11127if test "$GCC" = yes; then 11128 case $host_os in 11129 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11130 *) lt_awk_arg="/^libraries:/" ;; 11131 esac 11132 case $host_os in 11133 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11134 *) lt_sed_strip_eq="s,=/,/,g" ;; 11135 esac 11136 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11137 case $lt_search_path_spec in 11138 *\;*) 11139 # if the path contains ";" then we assume it to be the separator 11140 # otherwise default to the standard path separator (i.e. ":") - it is 11141 # assumed that no part of a normal pathname contains ";" but that should 11142 # okay in the real world where ";" in dirpaths is itself problematic. 11143 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11144 ;; 11145 *) 11146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11147 ;; 11148 esac 11149 # Ok, now we have the path, separated by spaces, we can step through it 11150 # and add multilib dir if necessary. 11151 lt_tmp_lt_search_path_spec= 11152 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11153 for lt_sys_path in $lt_search_path_spec; do 11154 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11156 else 11157 test -d "$lt_sys_path" && \ 11158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11159 fi 11160 done 11161 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11162BEGIN {RS=" "; FS="/|\n";} { 11163 lt_foo=""; 11164 lt_count=0; 11165 for (lt_i = NF; lt_i > 0; lt_i--) { 11166 if ($lt_i != "" && $lt_i != ".") { 11167 if ($lt_i == "..") { 11168 lt_count++; 11169 } else { 11170 if (lt_count == 0) { 11171 lt_foo="/" $lt_i lt_foo; 11172 } else { 11173 lt_count--; 11174 } 11175 } 11176 } 11177 } 11178 if (lt_foo != "") { lt_freq[lt_foo]++; } 11179 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11180}'` 11181 # AWK program above erroneously prepends '/' to C:/dos/paths 11182 # for these hosts. 11183 case $host_os in 11184 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11185 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11186 esac 11187 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11188else 11189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11190fi 11191library_names_spec= 11192libname_spec='lib$name' 11193soname_spec= 11194shrext_cmds=".so" 11195postinstall_cmds= 11196postuninstall_cmds= 11197finish_cmds= 11198finish_eval= 11199shlibpath_var= 11200shlibpath_overrides_runpath=unknown 11201version_type=none 11202dynamic_linker="$host_os ld.so" 11203sys_lib_dlsearch_path_spec="/lib /usr/lib" 11204need_lib_prefix=unknown 11205hardcode_into_libs=no 11206 11207# when you set need_version to no, make sure it does not cause -set_version 11208# flags to be left without arguments 11209need_version=unknown 11210 11211case $host_os in 11212aix3*) 11213 version_type=linux # correct to gnu/linux during the next big refactor 11214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11215 shlibpath_var=LIBPATH 11216 11217 # AIX 3 has no versioning support, so we append a major version to the name. 11218 soname_spec='${libname}${release}${shared_ext}$major' 11219 ;; 11220 11221aix[4-9]*) 11222 version_type=linux # correct to gnu/linux during the next big refactor 11223 need_lib_prefix=no 11224 need_version=no 11225 hardcode_into_libs=yes 11226 if test "$host_cpu" = ia64; then 11227 # AIX 5 supports IA64 11228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11229 shlibpath_var=LD_LIBRARY_PATH 11230 else 11231 # With GCC up to 2.95.x, collect2 would create an import file 11232 # for dependence libraries. The import file would start with 11233 # the line `#! .'. This would cause the generated library to 11234 # depend on `.', always an invalid library. This was fixed in 11235 # development snapshots of GCC prior to 3.0. 11236 case $host_os in 11237 aix4 | aix4.[01] | aix4.[01].*) 11238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11239 echo ' yes ' 11240 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11241 : 11242 else 11243 can_build_shared=no 11244 fi 11245 ;; 11246 esac 11247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11248 # soname into executable. Probably we can add versioning support to 11249 # collect2, so additional links can be useful in future. 11250 if test "$aix_use_runtimelinking" = yes; then 11251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11252 # instead of lib<name>.a to let people know that these are not 11253 # typical AIX shared libraries. 11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11255 else 11256 # We preserve .a as extension for shared libraries through AIX4.2 11257 # and later when we are not doing run time linking. 11258 library_names_spec='${libname}${release}.a $libname.a' 11259 soname_spec='${libname}${release}${shared_ext}$major' 11260 fi 11261 shlibpath_var=LIBPATH 11262 fi 11263 ;; 11264 11265amigaos*) 11266 case $host_cpu in 11267 powerpc) 11268 # Since July 2007 AmigaOS4 officially supports .so libraries. 11269 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11271 ;; 11272 m68k) 11273 library_names_spec='$libname.ixlibrary $libname.a' 11274 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11275 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' 11276 ;; 11277 esac 11278 ;; 11279 11280beos*) 11281 library_names_spec='${libname}${shared_ext}' 11282 dynamic_linker="$host_os ld.so" 11283 shlibpath_var=LIBRARY_PATH 11284 ;; 11285 11286bsdi[45]*) 11287 version_type=linux # correct to gnu/linux during the next big refactor 11288 need_version=no 11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11290 soname_spec='${libname}${release}${shared_ext}$major' 11291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11292 shlibpath_var=LD_LIBRARY_PATH 11293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11295 # the default ld.so.conf also contains /usr/contrib/lib and 11296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11297 # libtool to hard-code these into programs 11298 ;; 11299 11300cygwin* | mingw* | pw32* | cegcc*) 11301 version_type=windows 11302 shrext_cmds=".dll" 11303 need_version=no 11304 need_lib_prefix=no 11305 11306 case $GCC,$cc_basename in 11307 yes,*) 11308 # gcc 11309 library_names_spec='$libname.dll.a' 11310 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11311 postinstall_cmds='base_file=`basename \${file}`~ 11312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11313 dldir=$destdir/`dirname \$dlpath`~ 11314 test -d \$dldir || mkdir -p \$dldir~ 11315 $install_prog $dir/$dlname \$dldir/$dlname~ 11316 chmod a+x \$dldir/$dlname~ 11317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11319 fi' 11320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11321 dlpath=$dir/\$dldll~ 11322 $RM \$dlpath' 11323 shlibpath_overrides_runpath=yes 11324 11325 case $host_os in 11326 cygwin*) 11327 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11329 11330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11331 ;; 11332 mingw* | cegcc*) 11333 # MinGW DLLs use traditional 'lib' prefix 11334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11335 ;; 11336 pw32*) 11337 # pw32 DLLs use 'pw' prefix rather than 'lib' 11338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11339 ;; 11340 esac 11341 dynamic_linker='Win32 ld.exe' 11342 ;; 11343 11344 *,cl*) 11345 # Native MSVC 11346 libname_spec='$name' 11347 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11348 library_names_spec='${libname}.dll.lib' 11349 11350 case $build_os in 11351 mingw*) 11352 sys_lib_search_path_spec= 11353 lt_save_ifs=$IFS 11354 IFS=';' 11355 for lt_path in $LIB 11356 do 11357 IFS=$lt_save_ifs 11358 # Let DOS variable expansion print the short 8.3 style file name. 11359 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11360 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11361 done 11362 IFS=$lt_save_ifs 11363 # Convert to MSYS style. 11364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11365 ;; 11366 cygwin*) 11367 # Convert to unix form, then to dos form, then back to unix form 11368 # but this time dos style (no spaces!) so that the unix form looks 11369 # like /cygdrive/c/PROGRA~1:/cygdr... 11370 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11371 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11372 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11373 ;; 11374 *) 11375 sys_lib_search_path_spec="$LIB" 11376 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11377 # It is most probably a Windows format PATH. 11378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11379 else 11380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11381 fi 11382 # FIXME: find the short name or the path components, as spaces are 11383 # common. (e.g. "Program Files" -> "PROGRA~1") 11384 ;; 11385 esac 11386 11387 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11388 postinstall_cmds='base_file=`basename \${file}`~ 11389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11390 dldir=$destdir/`dirname \$dlpath`~ 11391 test -d \$dldir || mkdir -p \$dldir~ 11392 $install_prog $dir/$dlname \$dldir/$dlname' 11393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11394 dlpath=$dir/\$dldll~ 11395 $RM \$dlpath' 11396 shlibpath_overrides_runpath=yes 11397 dynamic_linker='Win32 link.exe' 11398 ;; 11399 11400 *) 11401 # Assume MSVC wrapper 11402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11403 dynamic_linker='Win32 ld.exe' 11404 ;; 11405 esac 11406 # FIXME: first we should search . and the directory the executable is in 11407 shlibpath_var=PATH 11408 ;; 11409 11410darwin* | rhapsody*) 11411 dynamic_linker="$host_os dyld" 11412 version_type=darwin 11413 need_lib_prefix=no 11414 need_version=no 11415 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11416 soname_spec='${libname}${release}${major}$shared_ext' 11417 shlibpath_overrides_runpath=yes 11418 shlibpath_var=DYLD_LIBRARY_PATH 11419 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11420 11421 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11423 ;; 11424 11425dgux*) 11426 version_type=linux # correct to gnu/linux during the next big refactor 11427 need_lib_prefix=no 11428 need_version=no 11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11430 soname_spec='${libname}${release}${shared_ext}$major' 11431 shlibpath_var=LD_LIBRARY_PATH 11432 ;; 11433 11434freebsd* | dragonfly*) 11435 # DragonFly does not have aout. When/if they implement a new 11436 # versioning mechanism, adjust this. 11437 if test -x /usr/bin/objformat; then 11438 objformat=`/usr/bin/objformat` 11439 else 11440 case $host_os in 11441 freebsd[23].*) objformat=aout ;; 11442 *) objformat=elf ;; 11443 esac 11444 fi 11445 version_type=freebsd-$objformat 11446 case $version_type in 11447 freebsd-elf*) 11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11449 need_version=no 11450 need_lib_prefix=no 11451 ;; 11452 freebsd-*) 11453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11454 need_version=yes 11455 ;; 11456 esac 11457 shlibpath_var=LD_LIBRARY_PATH 11458 case $host_os in 11459 freebsd2.*) 11460 shlibpath_overrides_runpath=yes 11461 ;; 11462 freebsd3.[01]* | freebsdelf3.[01]*) 11463 shlibpath_overrides_runpath=yes 11464 hardcode_into_libs=yes 11465 ;; 11466 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11467 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11468 shlibpath_overrides_runpath=no 11469 hardcode_into_libs=yes 11470 ;; 11471 *) # from 4.6 on, and DragonFly 11472 shlibpath_overrides_runpath=yes 11473 hardcode_into_libs=yes 11474 ;; 11475 esac 11476 ;; 11477 11478gnu*) 11479 version_type=linux # correct to gnu/linux during the next big refactor 11480 need_lib_prefix=no 11481 need_version=no 11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11483 soname_spec='${libname}${release}${shared_ext}$major' 11484 shlibpath_var=LD_LIBRARY_PATH 11485 shlibpath_overrides_runpath=no 11486 hardcode_into_libs=yes 11487 ;; 11488 11489haiku*) 11490 version_type=linux # correct to gnu/linux during the next big refactor 11491 need_lib_prefix=no 11492 need_version=no 11493 dynamic_linker="$host_os runtime_loader" 11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11495 soname_spec='${libname}${release}${shared_ext}$major' 11496 shlibpath_var=LIBRARY_PATH 11497 shlibpath_overrides_runpath=yes 11498 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11499 hardcode_into_libs=yes 11500 ;; 11501 11502hpux9* | hpux10* | hpux11*) 11503 # Give a soname corresponding to the major version so that dld.sl refuses to 11504 # link against other versions. 11505 version_type=sunos 11506 need_lib_prefix=no 11507 need_version=no 11508 case $host_cpu in 11509 ia64*) 11510 shrext_cmds='.so' 11511 hardcode_into_libs=yes 11512 dynamic_linker="$host_os dld.so" 11513 shlibpath_var=LD_LIBRARY_PATH 11514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11516 soname_spec='${libname}${release}${shared_ext}$major' 11517 if test "X$HPUX_IA64_MODE" = X32; then 11518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11519 else 11520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11521 fi 11522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11523 ;; 11524 hppa*64*) 11525 shrext_cmds='.sl' 11526 hardcode_into_libs=yes 11527 dynamic_linker="$host_os dld.sl" 11528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11531 soname_spec='${libname}${release}${shared_ext}$major' 11532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11534 ;; 11535 *) 11536 shrext_cmds='.sl' 11537 dynamic_linker="$host_os dld.sl" 11538 shlibpath_var=SHLIB_PATH 11539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11541 soname_spec='${libname}${release}${shared_ext}$major' 11542 ;; 11543 esac 11544 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11545 postinstall_cmds='chmod 555 $lib' 11546 # or fails outright, so override atomically: 11547 install_override_mode=555 11548 ;; 11549 11550interix[3-9]*) 11551 version_type=linux # correct to gnu/linux during the next big refactor 11552 need_lib_prefix=no 11553 need_version=no 11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11555 soname_spec='${libname}${release}${shared_ext}$major' 11556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11557 shlibpath_var=LD_LIBRARY_PATH 11558 shlibpath_overrides_runpath=no 11559 hardcode_into_libs=yes 11560 ;; 11561 11562irix5* | irix6* | nonstopux*) 11563 case $host_os in 11564 nonstopux*) version_type=nonstopux ;; 11565 *) 11566 if test "$lt_cv_prog_gnu_ld" = yes; then 11567 version_type=linux # correct to gnu/linux during the next big refactor 11568 else 11569 version_type=irix 11570 fi ;; 11571 esac 11572 need_lib_prefix=no 11573 need_version=no 11574 soname_spec='${libname}${release}${shared_ext}$major' 11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11576 case $host_os in 11577 irix5* | nonstopux*) 11578 libsuff= shlibsuff= 11579 ;; 11580 *) 11581 case $LD in # libtool.m4 will add one of these switches to LD 11582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11583 libsuff= shlibsuff= libmagic=32-bit;; 11584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11585 libsuff=32 shlibsuff=N32 libmagic=N32;; 11586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11587 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11588 *) libsuff= shlibsuff= libmagic=never-match;; 11589 esac 11590 ;; 11591 esac 11592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11593 shlibpath_overrides_runpath=no 11594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11596 hardcode_into_libs=yes 11597 ;; 11598 11599# No shared lib support for Linux oldld, aout, or coff. 11600linux*oldld* | linux*aout* | linux*coff*) 11601 dynamic_linker=no 11602 ;; 11603 11604# This must be glibc/ELF. 11605linux* | k*bsd*-gnu | kopensolaris*-gnu) 11606 version_type=linux # correct to gnu/linux during the next big refactor 11607 need_lib_prefix=no 11608 need_version=no 11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11610 soname_spec='${libname}${release}${shared_ext}$major' 11611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11612 shlibpath_var=LD_LIBRARY_PATH 11613 shlibpath_overrides_runpath=no 11614 11615 # Some binutils ld are patched to set DT_RUNPATH 11616 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11617 $as_echo_n "(cached) " >&6 11618else 11619 lt_cv_shlibpath_overrides_runpath=no 11620 save_LDFLAGS=$LDFLAGS 11621 save_libdir=$libdir 11622 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11623 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11625/* end confdefs.h. */ 11626 11627int 11628main () 11629{ 11630 11631 ; 11632 return 0; 11633} 11634_ACEOF 11635if ac_fn_c_try_link "$LINENO"; then : 11636 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11637 lt_cv_shlibpath_overrides_runpath=yes 11638fi 11639fi 11640rm -f core conftest.err conftest.$ac_objext \ 11641 conftest$ac_exeext conftest.$ac_ext 11642 LDFLAGS=$save_LDFLAGS 11643 libdir=$save_libdir 11644 11645fi 11646 11647 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11648 11649 # This implies no fast_install, which is unacceptable. 11650 # Some rework will be needed to allow for fast_install 11651 # before this can be enabled. 11652 hardcode_into_libs=yes 11653 11654 # Append ld.so.conf contents to the search path 11655 if test -f /etc/ld.so.conf; then 11656 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' ' '` 11657 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11658 fi 11659 11660 # We used to test for /lib/ld.so.1 and disable shared libraries on 11661 # powerpc, because MkLinux only supported shared libraries with the 11662 # GNU dynamic linker. Since this was broken with cross compilers, 11663 # most powerpc-linux boxes support dynamic linking these days and 11664 # people can always --disable-shared, the test was removed, and we 11665 # assume the GNU/Linux dynamic linker is in use. 11666 dynamic_linker='GNU/Linux ld.so' 11667 ;; 11668 11669netbsd*) 11670 version_type=sunos 11671 need_lib_prefix=no 11672 need_version=no 11673 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11676 dynamic_linker='NetBSD (a.out) ld.so' 11677 else 11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11679 soname_spec='${libname}${release}${shared_ext}$major' 11680 dynamic_linker='NetBSD ld.elf_so' 11681 fi 11682 shlibpath_var=LD_LIBRARY_PATH 11683 shlibpath_overrides_runpath=yes 11684 hardcode_into_libs=yes 11685 ;; 11686 11687newsos6) 11688 version_type=linux # correct to gnu/linux during the next big refactor 11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11690 shlibpath_var=LD_LIBRARY_PATH 11691 shlibpath_overrides_runpath=yes 11692 ;; 11693 11694*nto* | *qnx*) 11695 version_type=qnx 11696 need_lib_prefix=no 11697 need_version=no 11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11699 soname_spec='${libname}${release}${shared_ext}$major' 11700 shlibpath_var=LD_LIBRARY_PATH 11701 shlibpath_overrides_runpath=no 11702 hardcode_into_libs=yes 11703 dynamic_linker='ldqnx.so' 11704 ;; 11705 11706openbsd*) 11707 version_type=sunos 11708 sys_lib_dlsearch_path_spec="/usr/lib" 11709 need_lib_prefix=no 11710 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11711 case $host_os in 11712 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11713 *) need_version=no ;; 11714 esac 11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11717 shlibpath_var=LD_LIBRARY_PATH 11718 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11719 case $host_os in 11720 openbsd2.[89] | openbsd2.[89].*) 11721 shlibpath_overrides_runpath=no 11722 ;; 11723 *) 11724 shlibpath_overrides_runpath=yes 11725 ;; 11726 esac 11727 else 11728 shlibpath_overrides_runpath=yes 11729 fi 11730 ;; 11731 11732os2*) 11733 libname_spec='$name' 11734 shrext_cmds=".dll" 11735 need_lib_prefix=no 11736 library_names_spec='$libname${shared_ext} $libname.a' 11737 dynamic_linker='OS/2 ld.exe' 11738 shlibpath_var=LIBPATH 11739 ;; 11740 11741osf3* | osf4* | osf5*) 11742 version_type=osf 11743 need_lib_prefix=no 11744 need_version=no 11745 soname_spec='${libname}${release}${shared_ext}$major' 11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11747 shlibpath_var=LD_LIBRARY_PATH 11748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11750 ;; 11751 11752rdos*) 11753 dynamic_linker=no 11754 ;; 11755 11756solaris*) 11757 version_type=linux # correct to gnu/linux during the next big refactor 11758 need_lib_prefix=no 11759 need_version=no 11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11761 soname_spec='${libname}${release}${shared_ext}$major' 11762 shlibpath_var=LD_LIBRARY_PATH 11763 shlibpath_overrides_runpath=yes 11764 hardcode_into_libs=yes 11765 # ldd complains unless libraries are executable 11766 postinstall_cmds='chmod +x $lib' 11767 ;; 11768 11769sunos4*) 11770 version_type=sunos 11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11773 shlibpath_var=LD_LIBRARY_PATH 11774 shlibpath_overrides_runpath=yes 11775 if test "$with_gnu_ld" = yes; then 11776 need_lib_prefix=no 11777 fi 11778 need_version=yes 11779 ;; 11780 11781sysv4 | sysv4.3*) 11782 version_type=linux # correct to gnu/linux during the next big refactor 11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11784 soname_spec='${libname}${release}${shared_ext}$major' 11785 shlibpath_var=LD_LIBRARY_PATH 11786 case $host_vendor in 11787 sni) 11788 shlibpath_overrides_runpath=no 11789 need_lib_prefix=no 11790 runpath_var=LD_RUN_PATH 11791 ;; 11792 siemens) 11793 need_lib_prefix=no 11794 ;; 11795 motorola) 11796 need_lib_prefix=no 11797 need_version=no 11798 shlibpath_overrides_runpath=no 11799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11800 ;; 11801 esac 11802 ;; 11803 11804sysv4*MP*) 11805 if test -d /usr/nec ;then 11806 version_type=linux # correct to gnu/linux during the next big refactor 11807 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11808 soname_spec='$libname${shared_ext}.$major' 11809 shlibpath_var=LD_LIBRARY_PATH 11810 fi 11811 ;; 11812 11813sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11814 version_type=freebsd-elf 11815 need_lib_prefix=no 11816 need_version=no 11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11818 soname_spec='${libname}${release}${shared_ext}$major' 11819 shlibpath_var=LD_LIBRARY_PATH 11820 shlibpath_overrides_runpath=yes 11821 hardcode_into_libs=yes 11822 if test "$with_gnu_ld" = yes; then 11823 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11824 else 11825 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11826 case $host_os in 11827 sco3.2v5*) 11828 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11829 ;; 11830 esac 11831 fi 11832 sys_lib_dlsearch_path_spec='/usr/lib' 11833 ;; 11834 11835tpf*) 11836 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11837 version_type=linux # correct to gnu/linux during the next big refactor 11838 need_lib_prefix=no 11839 need_version=no 11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11841 shlibpath_var=LD_LIBRARY_PATH 11842 shlibpath_overrides_runpath=no 11843 hardcode_into_libs=yes 11844 ;; 11845 11846uts4*) 11847 version_type=linux # correct to gnu/linux during the next big refactor 11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11849 soname_spec='${libname}${release}${shared_ext}$major' 11850 shlibpath_var=LD_LIBRARY_PATH 11851 ;; 11852 11853*) 11854 dynamic_linker=no 11855 ;; 11856esac 11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11858$as_echo "$dynamic_linker" >&6; } 11859test "$dynamic_linker" = no && can_build_shared=no 11860 11861variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11862if test "$GCC" = yes; then 11863 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11864fi 11865 11866if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11867 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11868fi 11869if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11870 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11871fi 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11965$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11966hardcode_action= 11967if test -n "$hardcode_libdir_flag_spec" || 11968 test -n "$runpath_var" || 11969 test "X$hardcode_automatic" = "Xyes" ; then 11970 11971 # We can hardcode non-existent directories. 11972 if test "$hardcode_direct" != no && 11973 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11974 # have to relink, otherwise we might link with an installed library 11975 # when we should be linking with a yet-to-be-installed one 11976 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11977 test "$hardcode_minus_L" != no; then 11978 # Linking always hardcodes the temporary library directory. 11979 hardcode_action=relink 11980 else 11981 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11982 hardcode_action=immediate 11983 fi 11984else 11985 # We cannot hardcode anything, or else we can only hardcode existing 11986 # directories. 11987 hardcode_action=unsupported 11988fi 11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11990$as_echo "$hardcode_action" >&6; } 11991 11992if test "$hardcode_action" = relink || 11993 test "$inherit_rpath" = yes; then 11994 # Fast installation is not supported 11995 enable_fast_install=no 11996elif test "$shlibpath_overrides_runpath" = yes || 11997 test "$enable_shared" = no; then 11998 # Fast installation is not necessary 11999 enable_fast_install=needless 12000fi 12001 12002 12003 12004 12005 12006 12007 if test "x$enable_dlopen" != xyes; then 12008 enable_dlopen=unknown 12009 enable_dlopen_self=unknown 12010 enable_dlopen_self_static=unknown 12011else 12012 lt_cv_dlopen=no 12013 lt_cv_dlopen_libs= 12014 12015 case $host_os in 12016 beos*) 12017 lt_cv_dlopen="load_add_on" 12018 lt_cv_dlopen_libs= 12019 lt_cv_dlopen_self=yes 12020 ;; 12021 12022 mingw* | pw32* | cegcc*) 12023 lt_cv_dlopen="LoadLibrary" 12024 lt_cv_dlopen_libs= 12025 ;; 12026 12027 cygwin*) 12028 lt_cv_dlopen="dlopen" 12029 lt_cv_dlopen_libs= 12030 ;; 12031 12032 darwin*) 12033 # if libdl is installed we need to link against it 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12035$as_echo_n "checking for dlopen in -ldl... " >&6; } 12036if ${ac_cv_lib_dl_dlopen+:} false; then : 12037 $as_echo_n "(cached) " >&6 12038else 12039 ac_check_lib_save_LIBS=$LIBS 12040LIBS="-ldl $LIBS" 12041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12042/* end confdefs.h. */ 12043 12044/* Override any GCC internal prototype to avoid an error. 12045 Use char because int might match the return type of a GCC 12046 builtin and then its argument prototype would still apply. */ 12047#ifdef __cplusplus 12048extern "C" 12049#endif 12050char dlopen (); 12051int 12052main () 12053{ 12054return dlopen (); 12055 ; 12056 return 0; 12057} 12058_ACEOF 12059if ac_fn_c_try_link "$LINENO"; then : 12060 ac_cv_lib_dl_dlopen=yes 12061else 12062 ac_cv_lib_dl_dlopen=no 12063fi 12064rm -f core conftest.err conftest.$ac_objext \ 12065 conftest$ac_exeext conftest.$ac_ext 12066LIBS=$ac_check_lib_save_LIBS 12067fi 12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12069$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12070if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12072else 12073 12074 lt_cv_dlopen="dyld" 12075 lt_cv_dlopen_libs= 12076 lt_cv_dlopen_self=yes 12077 12078fi 12079 12080 ;; 12081 12082 *) 12083 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12084if test "x$ac_cv_func_shl_load" = xyes; then : 12085 lt_cv_dlopen="shl_load" 12086else 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12088$as_echo_n "checking for shl_load in -ldld... " >&6; } 12089if ${ac_cv_lib_dld_shl_load+:} false; then : 12090 $as_echo_n "(cached) " >&6 12091else 12092 ac_check_lib_save_LIBS=$LIBS 12093LIBS="-ldld $LIBS" 12094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12095/* end confdefs.h. */ 12096 12097/* Override any GCC internal prototype to avoid an error. 12098 Use char because int might match the return type of a GCC 12099 builtin and then its argument prototype would still apply. */ 12100#ifdef __cplusplus 12101extern "C" 12102#endif 12103char shl_load (); 12104int 12105main () 12106{ 12107return shl_load (); 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112if ac_fn_c_try_link "$LINENO"; then : 12113 ac_cv_lib_dld_shl_load=yes 12114else 12115 ac_cv_lib_dld_shl_load=no 12116fi 12117rm -f core conftest.err conftest.$ac_objext \ 12118 conftest$ac_exeext conftest.$ac_ext 12119LIBS=$ac_check_lib_save_LIBS 12120fi 12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12122$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12123if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12124 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12125else 12126 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12127if test "x$ac_cv_func_dlopen" = xyes; then : 12128 lt_cv_dlopen="dlopen" 12129else 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12131$as_echo_n "checking for dlopen in -ldl... " >&6; } 12132if ${ac_cv_lib_dl_dlopen+:} false; then : 12133 $as_echo_n "(cached) " >&6 12134else 12135 ac_check_lib_save_LIBS=$LIBS 12136LIBS="-ldl $LIBS" 12137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12138/* end confdefs.h. */ 12139 12140/* Override any GCC internal prototype to avoid an error. 12141 Use char because int might match the return type of a GCC 12142 builtin and then its argument prototype would still apply. */ 12143#ifdef __cplusplus 12144extern "C" 12145#endif 12146char dlopen (); 12147int 12148main () 12149{ 12150return dlopen (); 12151 ; 12152 return 0; 12153} 12154_ACEOF 12155if ac_fn_c_try_link "$LINENO"; then : 12156 ac_cv_lib_dl_dlopen=yes 12157else 12158 ac_cv_lib_dl_dlopen=no 12159fi 12160rm -f core conftest.err conftest.$ac_objext \ 12161 conftest$ac_exeext conftest.$ac_ext 12162LIBS=$ac_check_lib_save_LIBS 12163fi 12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12165$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12166if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12168else 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12170$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12171if ${ac_cv_lib_svld_dlopen+:} false; then : 12172 $as_echo_n "(cached) " >&6 12173else 12174 ac_check_lib_save_LIBS=$LIBS 12175LIBS="-lsvld $LIBS" 12176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12177/* end confdefs.h. */ 12178 12179/* Override any GCC internal prototype to avoid an error. 12180 Use char because int might match the return type of a GCC 12181 builtin and then its argument prototype would still apply. */ 12182#ifdef __cplusplus 12183extern "C" 12184#endif 12185char dlopen (); 12186int 12187main () 12188{ 12189return dlopen (); 12190 ; 12191 return 0; 12192} 12193_ACEOF 12194if ac_fn_c_try_link "$LINENO"; then : 12195 ac_cv_lib_svld_dlopen=yes 12196else 12197 ac_cv_lib_svld_dlopen=no 12198fi 12199rm -f core conftest.err conftest.$ac_objext \ 12200 conftest$ac_exeext conftest.$ac_ext 12201LIBS=$ac_check_lib_save_LIBS 12202fi 12203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12204$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12205if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12207else 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12209$as_echo_n "checking for dld_link in -ldld... " >&6; } 12210if ${ac_cv_lib_dld_dld_link+:} false; then : 12211 $as_echo_n "(cached) " >&6 12212else 12213 ac_check_lib_save_LIBS=$LIBS 12214LIBS="-ldld $LIBS" 12215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12216/* end confdefs.h. */ 12217 12218/* Override any GCC internal prototype to avoid an error. 12219 Use char because int might match the return type of a GCC 12220 builtin and then its argument prototype would still apply. */ 12221#ifdef __cplusplus 12222extern "C" 12223#endif 12224char dld_link (); 12225int 12226main () 12227{ 12228return dld_link (); 12229 ; 12230 return 0; 12231} 12232_ACEOF 12233if ac_fn_c_try_link "$LINENO"; then : 12234 ac_cv_lib_dld_dld_link=yes 12235else 12236 ac_cv_lib_dld_dld_link=no 12237fi 12238rm -f core conftest.err conftest.$ac_objext \ 12239 conftest$ac_exeext conftest.$ac_ext 12240LIBS=$ac_check_lib_save_LIBS 12241fi 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12243$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12244if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12245 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12246fi 12247 12248 12249fi 12250 12251 12252fi 12253 12254 12255fi 12256 12257 12258fi 12259 12260 12261fi 12262 12263 ;; 12264 esac 12265 12266 if test "x$lt_cv_dlopen" != xno; then 12267 enable_dlopen=yes 12268 else 12269 enable_dlopen=no 12270 fi 12271 12272 case $lt_cv_dlopen in 12273 dlopen) 12274 save_CPPFLAGS="$CPPFLAGS" 12275 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12276 12277 save_LDFLAGS="$LDFLAGS" 12278 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12279 12280 save_LIBS="$LIBS" 12281 LIBS="$lt_cv_dlopen_libs $LIBS" 12282 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12284$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12285if ${lt_cv_dlopen_self+:} false; then : 12286 $as_echo_n "(cached) " >&6 12287else 12288 if test "$cross_compiling" = yes; then : 12289 lt_cv_dlopen_self=cross 12290else 12291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12292 lt_status=$lt_dlunknown 12293 cat > conftest.$ac_ext <<_LT_EOF 12294#line $LINENO "configure" 12295#include "confdefs.h" 12296 12297#if HAVE_DLFCN_H 12298#include <dlfcn.h> 12299#endif 12300 12301#include <stdio.h> 12302 12303#ifdef RTLD_GLOBAL 12304# define LT_DLGLOBAL RTLD_GLOBAL 12305#else 12306# ifdef DL_GLOBAL 12307# define LT_DLGLOBAL DL_GLOBAL 12308# else 12309# define LT_DLGLOBAL 0 12310# endif 12311#endif 12312 12313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12314 find out it does not work in some platform. */ 12315#ifndef LT_DLLAZY_OR_NOW 12316# ifdef RTLD_LAZY 12317# define LT_DLLAZY_OR_NOW RTLD_LAZY 12318# else 12319# ifdef DL_LAZY 12320# define LT_DLLAZY_OR_NOW DL_LAZY 12321# else 12322# ifdef RTLD_NOW 12323# define LT_DLLAZY_OR_NOW RTLD_NOW 12324# else 12325# ifdef DL_NOW 12326# define LT_DLLAZY_OR_NOW DL_NOW 12327# else 12328# define LT_DLLAZY_OR_NOW 0 12329# endif 12330# endif 12331# endif 12332# endif 12333#endif 12334 12335/* When -fvisbility=hidden is used, assume the code has been annotated 12336 correspondingly for the symbols needed. */ 12337#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12338int fnord () __attribute__((visibility("default"))); 12339#endif 12340 12341int fnord () { return 42; } 12342int main () 12343{ 12344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12345 int status = $lt_dlunknown; 12346 12347 if (self) 12348 { 12349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12350 else 12351 { 12352 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12353 else puts (dlerror ()); 12354 } 12355 /* dlclose (self); */ 12356 } 12357 else 12358 puts (dlerror ()); 12359 12360 return status; 12361} 12362_LT_EOF 12363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12364 (eval $ac_link) 2>&5 12365 ac_status=$? 12366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12367 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12368 (./conftest; exit; ) >&5 2>/dev/null 12369 lt_status=$? 12370 case x$lt_status in 12371 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12372 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12373 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12374 esac 12375 else : 12376 # compilation failed 12377 lt_cv_dlopen_self=no 12378 fi 12379fi 12380rm -fr conftest* 12381 12382 12383fi 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12385$as_echo "$lt_cv_dlopen_self" >&6; } 12386 12387 if test "x$lt_cv_dlopen_self" = xyes; then 12388 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12390$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12391if ${lt_cv_dlopen_self_static+:} false; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 if test "$cross_compiling" = yes; then : 12395 lt_cv_dlopen_self_static=cross 12396else 12397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12398 lt_status=$lt_dlunknown 12399 cat > conftest.$ac_ext <<_LT_EOF 12400#line $LINENO "configure" 12401#include "confdefs.h" 12402 12403#if HAVE_DLFCN_H 12404#include <dlfcn.h> 12405#endif 12406 12407#include <stdio.h> 12408 12409#ifdef RTLD_GLOBAL 12410# define LT_DLGLOBAL RTLD_GLOBAL 12411#else 12412# ifdef DL_GLOBAL 12413# define LT_DLGLOBAL DL_GLOBAL 12414# else 12415# define LT_DLGLOBAL 0 12416# endif 12417#endif 12418 12419/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12420 find out it does not work in some platform. */ 12421#ifndef LT_DLLAZY_OR_NOW 12422# ifdef RTLD_LAZY 12423# define LT_DLLAZY_OR_NOW RTLD_LAZY 12424# else 12425# ifdef DL_LAZY 12426# define LT_DLLAZY_OR_NOW DL_LAZY 12427# else 12428# ifdef RTLD_NOW 12429# define LT_DLLAZY_OR_NOW RTLD_NOW 12430# else 12431# ifdef DL_NOW 12432# define LT_DLLAZY_OR_NOW DL_NOW 12433# else 12434# define LT_DLLAZY_OR_NOW 0 12435# endif 12436# endif 12437# endif 12438# endif 12439#endif 12440 12441/* When -fvisbility=hidden is used, assume the code has been annotated 12442 correspondingly for the symbols needed. */ 12443#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12444int fnord () __attribute__((visibility("default"))); 12445#endif 12446 12447int fnord () { return 42; } 12448int main () 12449{ 12450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12451 int status = $lt_dlunknown; 12452 12453 if (self) 12454 { 12455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12456 else 12457 { 12458 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12459 else puts (dlerror ()); 12460 } 12461 /* dlclose (self); */ 12462 } 12463 else 12464 puts (dlerror ()); 12465 12466 return status; 12467} 12468_LT_EOF 12469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12470 (eval $ac_link) 2>&5 12471 ac_status=$? 12472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12473 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12474 (./conftest; exit; ) >&5 2>/dev/null 12475 lt_status=$? 12476 case x$lt_status in 12477 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12478 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12479 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12480 esac 12481 else : 12482 # compilation failed 12483 lt_cv_dlopen_self_static=no 12484 fi 12485fi 12486rm -fr conftest* 12487 12488 12489fi 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12491$as_echo "$lt_cv_dlopen_self_static" >&6; } 12492 fi 12493 12494 CPPFLAGS="$save_CPPFLAGS" 12495 LDFLAGS="$save_LDFLAGS" 12496 LIBS="$save_LIBS" 12497 ;; 12498 esac 12499 12500 case $lt_cv_dlopen_self in 12501 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12502 *) enable_dlopen_self=unknown ;; 12503 esac 12504 12505 case $lt_cv_dlopen_self_static in 12506 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12507 *) enable_dlopen_self_static=unknown ;; 12508 esac 12509fi 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527striplib= 12528old_striplib= 12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12530$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12531if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12532 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12533 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12535$as_echo "yes" >&6; } 12536else 12537# FIXME - insert some real tests, host_os isn't really good enough 12538 case $host_os in 12539 darwin*) 12540 if test -n "$STRIP" ; then 12541 striplib="$STRIP -x" 12542 old_striplib="$STRIP -S" 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12544$as_echo "yes" >&6; } 12545 else 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12547$as_echo "no" >&6; } 12548 fi 12549 ;; 12550 *) 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12552$as_echo "no" >&6; } 12553 ;; 12554 esac 12555fi 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 # Report which library types will actually be built 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12570$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12572$as_echo "$can_build_shared" >&6; } 12573 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12575$as_echo_n "checking whether to build shared libraries... " >&6; } 12576 test "$can_build_shared" = "no" && enable_shared=no 12577 12578 # On AIX, shared libraries and static libraries use the same namespace, and 12579 # are all built from PIC. 12580 case $host_os in 12581 aix3*) 12582 test "$enable_shared" = yes && enable_static=no 12583 if test -n "$RANLIB"; then 12584 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12585 postinstall_cmds='$RANLIB $lib' 12586 fi 12587 ;; 12588 12589 aix[4-9]*) 12590 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12591 test "$enable_shared" = yes && enable_static=no 12592 fi 12593 ;; 12594 esac 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12596$as_echo "$enable_shared" >&6; } 12597 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12599$as_echo_n "checking whether to build static libraries... " >&6; } 12600 # Make sure either enable_shared or enable_static is yes. 12601 test "$enable_shared" = yes || enable_static=yes 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12603$as_echo "$enable_static" >&6; } 12604 12605 12606 12607 12608fi 12609ac_ext=c 12610ac_cpp='$CPP $CPPFLAGS' 12611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12613ac_compiler_gnu=$ac_cv_c_compiler_gnu 12614 12615CC="$lt_save_CC" 12616 12617 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12618 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12619 (test "X$CXX" != "Xg++"))) ; then 12620 ac_ext=cpp 12621ac_cpp='$CXXCPP $CPPFLAGS' 12622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12626$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12627if test -z "$CXXCPP"; then 12628 if ${ac_cv_prog_CXXCPP+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630else 12631 # Double quotes because CXXCPP needs to be expanded 12632 for CXXCPP in "$CXX -E" "/lib/cpp" 12633 do 12634 ac_preproc_ok=false 12635for ac_cxx_preproc_warn_flag in '' yes 12636do 12637 # Use a header file that comes with gcc, so configuring glibc 12638 # with a fresh cross-compiler works. 12639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12640 # <limits.h> exists even on freestanding compilers. 12641 # On the NeXT, cc -E runs the code through the compiler's parser, 12642 # not just through cpp. "Syntax error" is here to catch this case. 12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645#ifdef __STDC__ 12646# include <limits.h> 12647#else 12648# include <assert.h> 12649#endif 12650 Syntax error 12651_ACEOF 12652if ac_fn_cxx_try_cpp "$LINENO"; then : 12653 12654else 12655 # Broken: fails on valid input. 12656continue 12657fi 12658rm -f conftest.err conftest.i conftest.$ac_ext 12659 12660 # OK, works on sane cases. Now check whether nonexistent headers 12661 # can be detected and how. 12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12663/* end confdefs.h. */ 12664#include <ac_nonexistent.h> 12665_ACEOF 12666if ac_fn_cxx_try_cpp "$LINENO"; then : 12667 # Broken: success on invalid input. 12668continue 12669else 12670 # Passes both tests. 12671ac_preproc_ok=: 12672break 12673fi 12674rm -f conftest.err conftest.i conftest.$ac_ext 12675 12676done 12677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12678rm -f conftest.i conftest.err conftest.$ac_ext 12679if $ac_preproc_ok; then : 12680 break 12681fi 12682 12683 done 12684 ac_cv_prog_CXXCPP=$CXXCPP 12685 12686fi 12687 CXXCPP=$ac_cv_prog_CXXCPP 12688else 12689 ac_cv_prog_CXXCPP=$CXXCPP 12690fi 12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12692$as_echo "$CXXCPP" >&6; } 12693ac_preproc_ok=false 12694for ac_cxx_preproc_warn_flag in '' yes 12695do 12696 # Use a header file that comes with gcc, so configuring glibc 12697 # with a fresh cross-compiler works. 12698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12699 # <limits.h> exists even on freestanding compilers. 12700 # On the NeXT, cc -E runs the code through the compiler's parser, 12701 # not just through cpp. "Syntax error" is here to catch this case. 12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12703/* end confdefs.h. */ 12704#ifdef __STDC__ 12705# include <limits.h> 12706#else 12707# include <assert.h> 12708#endif 12709 Syntax error 12710_ACEOF 12711if ac_fn_cxx_try_cpp "$LINENO"; then : 12712 12713else 12714 # Broken: fails on valid input. 12715continue 12716fi 12717rm -f conftest.err conftest.i conftest.$ac_ext 12718 12719 # OK, works on sane cases. Now check whether nonexistent headers 12720 # can be detected and how. 12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12722/* end confdefs.h. */ 12723#include <ac_nonexistent.h> 12724_ACEOF 12725if ac_fn_cxx_try_cpp "$LINENO"; then : 12726 # Broken: success on invalid input. 12727continue 12728else 12729 # Passes both tests. 12730ac_preproc_ok=: 12731break 12732fi 12733rm -f conftest.err conftest.i conftest.$ac_ext 12734 12735done 12736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12737rm -f conftest.i conftest.err conftest.$ac_ext 12738if $ac_preproc_ok; then : 12739 12740else 12741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12743as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12744See \`config.log' for more details" "$LINENO" 5; } 12745fi 12746 12747ac_ext=c 12748ac_cpp='$CPP $CPPFLAGS' 12749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12751ac_compiler_gnu=$ac_cv_c_compiler_gnu 12752 12753else 12754 _lt_caught_CXX_error=yes 12755fi 12756 12757ac_ext=cpp 12758ac_cpp='$CXXCPP $CPPFLAGS' 12759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12762 12763archive_cmds_need_lc_CXX=no 12764allow_undefined_flag_CXX= 12765always_export_symbols_CXX=no 12766archive_expsym_cmds_CXX= 12767compiler_needs_object_CXX=no 12768export_dynamic_flag_spec_CXX= 12769hardcode_direct_CXX=no 12770hardcode_direct_absolute_CXX=no 12771hardcode_libdir_flag_spec_CXX= 12772hardcode_libdir_separator_CXX= 12773hardcode_minus_L_CXX=no 12774hardcode_shlibpath_var_CXX=unsupported 12775hardcode_automatic_CXX=no 12776inherit_rpath_CXX=no 12777module_cmds_CXX= 12778module_expsym_cmds_CXX= 12779link_all_deplibs_CXX=unknown 12780old_archive_cmds_CXX=$old_archive_cmds 12781reload_flag_CXX=$reload_flag 12782reload_cmds_CXX=$reload_cmds 12783no_undefined_flag_CXX= 12784whole_archive_flag_spec_CXX= 12785enable_shared_with_static_runtimes_CXX=no 12786 12787# Source file extension for C++ test sources. 12788ac_ext=cpp 12789 12790# Object file extension for compiled C++ test sources. 12791objext=o 12792objext_CXX=$objext 12793 12794# No sense in running all these tests if we already determined that 12795# the CXX compiler isn't working. Some variables (like enable_shared) 12796# are currently assumed to apply to all compilers on this platform, 12797# and will be corrupted by setting them based on a non-working compiler. 12798if test "$_lt_caught_CXX_error" != yes; then 12799 # Code to be used in simple compile tests 12800 lt_simple_compile_test_code="int some_variable = 0;" 12801 12802 # Code to be used in simple link tests 12803 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12804 12805 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12806 12807 12808 12809 12810 12811 12812# If no C compiler was specified, use CC. 12813LTCC=${LTCC-"$CC"} 12814 12815# If no C compiler flags were specified, use CFLAGS. 12816LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12817 12818# Allow CC to be a program name with arguments. 12819compiler=$CC 12820 12821 12822 # save warnings/boilerplate of simple test code 12823 ac_outfile=conftest.$ac_objext 12824echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12825eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12826_lt_compiler_boilerplate=`cat conftest.err` 12827$RM conftest* 12828 12829 ac_outfile=conftest.$ac_objext 12830echo "$lt_simple_link_test_code" >conftest.$ac_ext 12831eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12832_lt_linker_boilerplate=`cat conftest.err` 12833$RM -r conftest* 12834 12835 12836 # Allow CC to be a program name with arguments. 12837 lt_save_CC=$CC 12838 lt_save_CFLAGS=$CFLAGS 12839 lt_save_LD=$LD 12840 lt_save_GCC=$GCC 12841 GCC=$GXX 12842 lt_save_with_gnu_ld=$with_gnu_ld 12843 lt_save_path_LD=$lt_cv_path_LD 12844 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12845 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12846 else 12847 $as_unset lt_cv_prog_gnu_ld 12848 fi 12849 if test -n "${lt_cv_path_LDCXX+set}"; then 12850 lt_cv_path_LD=$lt_cv_path_LDCXX 12851 else 12852 $as_unset lt_cv_path_LD 12853 fi 12854 test -z "${LDCXX+set}" || LD=$LDCXX 12855 CC=${CXX-"c++"} 12856 CFLAGS=$CXXFLAGS 12857 compiler=$CC 12858 compiler_CXX=$CC 12859 for cc_temp in $compiler""; do 12860 case $cc_temp in 12861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12863 \-*) ;; 12864 *) break;; 12865 esac 12866done 12867cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12868 12869 12870 if test -n "$compiler"; then 12871 # We don't want -fno-exception when compiling C++ code, so set the 12872 # no_builtin_flag separately 12873 if test "$GXX" = yes; then 12874 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12875 else 12876 lt_prog_compiler_no_builtin_flag_CXX= 12877 fi 12878 12879 if test "$GXX" = yes; then 12880 # Set up default GNU C++ configuration 12881 12882 12883 12884# Check whether --with-gnu-ld was given. 12885if test "${with_gnu_ld+set}" = set; then : 12886 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12887else 12888 with_gnu_ld=no 12889fi 12890 12891ac_prog=ld 12892if test "$GCC" = yes; then 12893 # Check if gcc -print-prog-name=ld gives a path. 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12895$as_echo_n "checking for ld used by $CC... " >&6; } 12896 case $host in 12897 *-*-mingw*) 12898 # gcc leaves a trailing carriage return which upsets mingw 12899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12900 *) 12901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12902 esac 12903 case $ac_prog in 12904 # Accept absolute paths. 12905 [\\/]* | ?:[\\/]*) 12906 re_direlt='/[^/][^/]*/\.\./' 12907 # Canonicalize the pathname of ld 12908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12911 done 12912 test -z "$LD" && LD="$ac_prog" 12913 ;; 12914 "") 12915 # If it fails, then pretend we aren't using GCC. 12916 ac_prog=ld 12917 ;; 12918 *) 12919 # If it is relative, then search for the first ld in PATH. 12920 with_gnu_ld=unknown 12921 ;; 12922 esac 12923elif test "$with_gnu_ld" = yes; then 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12925$as_echo_n "checking for GNU ld... " >&6; } 12926else 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12928$as_echo_n "checking for non-GNU ld... " >&6; } 12929fi 12930if ${lt_cv_path_LD+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932else 12933 if test -z "$LD"; then 12934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12935 for ac_dir in $PATH; do 12936 IFS="$lt_save_ifs" 12937 test -z "$ac_dir" && ac_dir=. 12938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12939 lt_cv_path_LD="$ac_dir/$ac_prog" 12940 # Check to see if the program is GNU ld. I'd rather use --version, 12941 # but apparently some variants of GNU ld only accept -v. 12942 # Break only if it was the GNU/non-GNU ld that we prefer. 12943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12944 *GNU* | *'with BFD'*) 12945 test "$with_gnu_ld" != no && break 12946 ;; 12947 *) 12948 test "$with_gnu_ld" != yes && break 12949 ;; 12950 esac 12951 fi 12952 done 12953 IFS="$lt_save_ifs" 12954else 12955 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12956fi 12957fi 12958 12959LD="$lt_cv_path_LD" 12960if test -n "$LD"; then 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12962$as_echo "$LD" >&6; } 12963else 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12965$as_echo "no" >&6; } 12966fi 12967test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12970if ${lt_cv_prog_gnu_ld+:} false; then : 12971 $as_echo_n "(cached) " >&6 12972else 12973 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12974case `$LD -v 2>&1 </dev/null` in 12975*GNU* | *'with BFD'*) 12976 lt_cv_prog_gnu_ld=yes 12977 ;; 12978*) 12979 lt_cv_prog_gnu_ld=no 12980 ;; 12981esac 12982fi 12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12984$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12985with_gnu_ld=$lt_cv_prog_gnu_ld 12986 12987 12988 12989 12990 12991 12992 12993 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12994 # archiving commands below assume that GNU ld is being used. 12995 if test "$with_gnu_ld" = yes; then 12996 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12997 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12998 12999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13001 13002 # If archive_cmds runs LD, not CC, wlarc should be empty 13003 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13004 # investigate it a little bit more. (MM) 13005 wlarc='${wl}' 13006 13007 # ancient GNU ld didn't support --whole-archive et. al. 13008 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13009 $GREP 'no-whole-archive' > /dev/null; then 13010 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13011 else 13012 whole_archive_flag_spec_CXX= 13013 fi 13014 else 13015 with_gnu_ld=no 13016 wlarc= 13017 13018 # A generic and very simple default shared library creation 13019 # command for GNU C++ for the case where it uses the native 13020 # linker, instead of GNU ld. If possible, this setting should 13021 # overridden to take advantage of the native linker features on 13022 # the platform it is being used on. 13023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13024 fi 13025 13026 # Commands to make compiler produce verbose output that lists 13027 # what "hidden" libraries, object files and flags are used when 13028 # linking a shared library. 13029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13030 13031 else 13032 GXX=no 13033 with_gnu_ld=no 13034 wlarc= 13035 fi 13036 13037 # PORTME: fill in a description of your system's C++ link characteristics 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13039$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13040 ld_shlibs_CXX=yes 13041 case $host_os in 13042 aix3*) 13043 # FIXME: insert proper C++ library support 13044 ld_shlibs_CXX=no 13045 ;; 13046 aix[4-9]*) 13047 if test "$host_cpu" = ia64; then 13048 # On IA64, the linker does run time linking by default, so we don't 13049 # have to do anything special. 13050 aix_use_runtimelinking=no 13051 exp_sym_flag='-Bexport' 13052 no_entry_flag="" 13053 else 13054 aix_use_runtimelinking=no 13055 13056 # Test if we are trying to use run time linking or normal 13057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13058 # need to do runtime linking. 13059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13060 for ld_flag in $LDFLAGS; do 13061 case $ld_flag in 13062 *-brtl*) 13063 aix_use_runtimelinking=yes 13064 break 13065 ;; 13066 esac 13067 done 13068 ;; 13069 esac 13070 13071 exp_sym_flag='-bexport' 13072 no_entry_flag='-bnoentry' 13073 fi 13074 13075 # When large executables or shared objects are built, AIX ld can 13076 # have problems creating the table of contents. If linking a library 13077 # or program results in "error TOC overflow" add -mminimal-toc to 13078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13080 13081 archive_cmds_CXX='' 13082 hardcode_direct_CXX=yes 13083 hardcode_direct_absolute_CXX=yes 13084 hardcode_libdir_separator_CXX=':' 13085 link_all_deplibs_CXX=yes 13086 file_list_spec_CXX='${wl}-f,' 13087 13088 if test "$GXX" = yes; then 13089 case $host_os in aix4.[012]|aix4.[012].*) 13090 # We only want to do this on AIX 4.2 and lower, the check 13091 # below for broken collect2 doesn't work under 4.3+ 13092 collect2name=`${CC} -print-prog-name=collect2` 13093 if test -f "$collect2name" && 13094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13095 then 13096 # We have reworked collect2 13097 : 13098 else 13099 # We have old collect2 13100 hardcode_direct_CXX=unsupported 13101 # It fails to find uninstalled libraries when the uninstalled 13102 # path is not listed in the libpath. Setting hardcode_minus_L 13103 # to unsupported forces relinking 13104 hardcode_minus_L_CXX=yes 13105 hardcode_libdir_flag_spec_CXX='-L$libdir' 13106 hardcode_libdir_separator_CXX= 13107 fi 13108 esac 13109 shared_flag='-shared' 13110 if test "$aix_use_runtimelinking" = yes; then 13111 shared_flag="$shared_flag "'${wl}-G' 13112 fi 13113 else 13114 # not using gcc 13115 if test "$host_cpu" = ia64; then 13116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13117 # chokes on -Wl,-G. The following line is correct: 13118 shared_flag='-G' 13119 else 13120 if test "$aix_use_runtimelinking" = yes; then 13121 shared_flag='${wl}-G' 13122 else 13123 shared_flag='${wl}-bM:SRE' 13124 fi 13125 fi 13126 fi 13127 13128 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13129 # It seems that -bexpall does not export symbols beginning with 13130 # underscore (_), so it is better to generate a list of symbols to 13131 # export. 13132 always_export_symbols_CXX=yes 13133 if test "$aix_use_runtimelinking" = yes; then 13134 # Warning - without using the other runtime loading flags (-brtl), 13135 # -berok will link without error, but may produce a broken library. 13136 allow_undefined_flag_CXX='-berok' 13137 # Determine the default libpath from the value encoded in an empty 13138 # executable. 13139 if test "${lt_cv_aix_libpath+set}" = set; then 13140 aix_libpath=$lt_cv_aix_libpath 13141else 13142 if ${lt_cv_aix_libpath__CXX+:} false; then : 13143 $as_echo_n "(cached) " >&6 13144else 13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13146/* end confdefs.h. */ 13147 13148int 13149main () 13150{ 13151 13152 ; 13153 return 0; 13154} 13155_ACEOF 13156if ac_fn_cxx_try_link "$LINENO"; then : 13157 13158 lt_aix_libpath_sed=' 13159 /Import File Strings/,/^$/ { 13160 /^0/ { 13161 s/^0 *\([^ ]*\) *$/\1/ 13162 p 13163 } 13164 }' 13165 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13166 # Check for a 64-bit object if we didn't find anything. 13167 if test -z "$lt_cv_aix_libpath__CXX"; then 13168 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13169 fi 13170fi 13171rm -f core conftest.err conftest.$ac_objext \ 13172 conftest$ac_exeext conftest.$ac_ext 13173 if test -z "$lt_cv_aix_libpath__CXX"; then 13174 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13175 fi 13176 13177fi 13178 13179 aix_libpath=$lt_cv_aix_libpath__CXX 13180fi 13181 13182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13183 13184 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" 13185 else 13186 if test "$host_cpu" = ia64; then 13187 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13188 allow_undefined_flag_CXX="-z nodefs" 13189 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" 13190 else 13191 # Determine the default libpath from the value encoded in an 13192 # empty executable. 13193 if test "${lt_cv_aix_libpath+set}" = set; then 13194 aix_libpath=$lt_cv_aix_libpath 13195else 13196 if ${lt_cv_aix_libpath__CXX+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198else 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201 13202int 13203main () 13204{ 13205 13206 ; 13207 return 0; 13208} 13209_ACEOF 13210if ac_fn_cxx_try_link "$LINENO"; then : 13211 13212 lt_aix_libpath_sed=' 13213 /Import File Strings/,/^$/ { 13214 /^0/ { 13215 s/^0 *\([^ ]*\) *$/\1/ 13216 p 13217 } 13218 }' 13219 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13220 # Check for a 64-bit object if we didn't find anything. 13221 if test -z "$lt_cv_aix_libpath__CXX"; then 13222 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13223 fi 13224fi 13225rm -f core conftest.err conftest.$ac_objext \ 13226 conftest$ac_exeext conftest.$ac_ext 13227 if test -z "$lt_cv_aix_libpath__CXX"; then 13228 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13229 fi 13230 13231fi 13232 13233 aix_libpath=$lt_cv_aix_libpath__CXX 13234fi 13235 13236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13237 # Warning - without using the other run time loading flags, 13238 # -berok will link without error, but may produce a broken library. 13239 no_undefined_flag_CXX=' ${wl}-bernotok' 13240 allow_undefined_flag_CXX=' ${wl}-berok' 13241 if test "$with_gnu_ld" = yes; then 13242 # We only use this code for GNU lds that support --whole-archive. 13243 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13244 else 13245 # Exported symbols can be pulled into shared objects from archives 13246 whole_archive_flag_spec_CXX='$convenience' 13247 fi 13248 archive_cmds_need_lc_CXX=yes 13249 # This is similar to how AIX traditionally builds its shared 13250 # libraries. 13251 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' 13252 fi 13253 fi 13254 ;; 13255 13256 beos*) 13257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13258 allow_undefined_flag_CXX=unsupported 13259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13260 # support --undefined. This deserves some investigation. FIXME 13261 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13262 else 13263 ld_shlibs_CXX=no 13264 fi 13265 ;; 13266 13267 chorus*) 13268 case $cc_basename in 13269 *) 13270 # FIXME: insert proper C++ library support 13271 ld_shlibs_CXX=no 13272 ;; 13273 esac 13274 ;; 13275 13276 cygwin* | mingw* | pw32* | cegcc*) 13277 case $GXX,$cc_basename in 13278 ,cl* | no,cl*) 13279 # Native MSVC 13280 # hardcode_libdir_flag_spec is actually meaningless, as there is 13281 # no search path for DLLs. 13282 hardcode_libdir_flag_spec_CXX=' ' 13283 allow_undefined_flag_CXX=unsupported 13284 always_export_symbols_CXX=yes 13285 file_list_spec_CXX='@' 13286 # Tell ltmain to make .lib files, not .a files. 13287 libext=lib 13288 # Tell ltmain to make .dll files, not .so files. 13289 shrext_cmds=".dll" 13290 # FIXME: Setting linknames here is a bad hack. 13291 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13292 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13293 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13294 else 13295 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13296 fi~ 13297 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13298 linknames=' 13299 # The linker will not automatically build a static lib if we build a DLL. 13300 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13301 enable_shared_with_static_runtimes_CXX=yes 13302 # Don't use ranlib 13303 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13304 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13305 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13306 case $lt_outputfile in 13307 *.exe|*.EXE) ;; 13308 *) 13309 lt_outputfile="$lt_outputfile.exe" 13310 lt_tool_outputfile="$lt_tool_outputfile.exe" 13311 ;; 13312 esac~ 13313 func_to_tool_file "$lt_outputfile"~ 13314 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13315 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13316 $RM "$lt_outputfile.manifest"; 13317 fi' 13318 ;; 13319 *) 13320 # g++ 13321 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13322 # as there is no search path for DLLs. 13323 hardcode_libdir_flag_spec_CXX='-L$libdir' 13324 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13325 allow_undefined_flag_CXX=unsupported 13326 always_export_symbols_CXX=no 13327 enable_shared_with_static_runtimes_CXX=yes 13328 13329 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13330 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' 13331 # If the export-symbols file already is a .def file (1st line 13332 # is EXPORTS), use it as is; otherwise, prepend... 13333 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13334 cp $export_symbols $output_objdir/$soname.def; 13335 else 13336 echo EXPORTS > $output_objdir/$soname.def; 13337 cat $export_symbols >> $output_objdir/$soname.def; 13338 fi~ 13339 $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' 13340 else 13341 ld_shlibs_CXX=no 13342 fi 13343 ;; 13344 esac 13345 ;; 13346 darwin* | rhapsody*) 13347 13348 13349 archive_cmds_need_lc_CXX=no 13350 hardcode_direct_CXX=no 13351 hardcode_automatic_CXX=yes 13352 hardcode_shlibpath_var_CXX=unsupported 13353 if test "$lt_cv_ld_force_load" = "yes"; then 13354 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\"`' 13355 13356 else 13357 whole_archive_flag_spec_CXX='' 13358 fi 13359 link_all_deplibs_CXX=yes 13360 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13361 case $cc_basename in 13362 ifort*) _lt_dar_can_shared=yes ;; 13363 *) _lt_dar_can_shared=$GCC ;; 13364 esac 13365 if test "$_lt_dar_can_shared" = "yes"; then 13366 output_verbose_link_cmd=func_echo_all 13367 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}" 13368 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13369 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}" 13370 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}" 13371 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13372 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}" 13373 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}" 13374 fi 13375 13376 else 13377 ld_shlibs_CXX=no 13378 fi 13379 13380 ;; 13381 13382 dgux*) 13383 case $cc_basename in 13384 ec++*) 13385 # FIXME: insert proper C++ library support 13386 ld_shlibs_CXX=no 13387 ;; 13388 ghcx*) 13389 # Green Hills C++ Compiler 13390 # FIXME: insert proper C++ library support 13391 ld_shlibs_CXX=no 13392 ;; 13393 *) 13394 # FIXME: insert proper C++ library support 13395 ld_shlibs_CXX=no 13396 ;; 13397 esac 13398 ;; 13399 13400 freebsd2.*) 13401 # C++ shared libraries reported to be fairly broken before 13402 # switch to ELF 13403 ld_shlibs_CXX=no 13404 ;; 13405 13406 freebsd-elf*) 13407 archive_cmds_need_lc_CXX=no 13408 ;; 13409 13410 freebsd* | dragonfly*) 13411 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13412 # conventions 13413 ld_shlibs_CXX=yes 13414 ;; 13415 13416 gnu*) 13417 ;; 13418 13419 haiku*) 13420 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13421 link_all_deplibs_CXX=yes 13422 ;; 13423 13424 hpux9*) 13425 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13426 hardcode_libdir_separator_CXX=: 13427 export_dynamic_flag_spec_CXX='${wl}-E' 13428 hardcode_direct_CXX=yes 13429 hardcode_minus_L_CXX=yes # Not in the search PATH, 13430 # but as the default 13431 # location of the library. 13432 13433 case $cc_basename in 13434 CC*) 13435 # FIXME: insert proper C++ library support 13436 ld_shlibs_CXX=no 13437 ;; 13438 aCC*) 13439 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' 13440 # Commands to make compiler produce verbose output that lists 13441 # what "hidden" libraries, object files and flags are used when 13442 # linking a shared library. 13443 # 13444 # There doesn't appear to be a way to prevent this compiler from 13445 # explicitly linking system object files so we need to strip them 13446 # from the output so that they don't get included in the library 13447 # dependencies. 13448 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"' 13449 ;; 13450 *) 13451 if test "$GXX" = yes; then 13452 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13453 else 13454 # FIXME: insert proper C++ library support 13455 ld_shlibs_CXX=no 13456 fi 13457 ;; 13458 esac 13459 ;; 13460 13461 hpux10*|hpux11*) 13462 if test $with_gnu_ld = no; then 13463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13464 hardcode_libdir_separator_CXX=: 13465 13466 case $host_cpu in 13467 hppa*64*|ia64*) 13468 ;; 13469 *) 13470 export_dynamic_flag_spec_CXX='${wl}-E' 13471 ;; 13472 esac 13473 fi 13474 case $host_cpu in 13475 hppa*64*|ia64*) 13476 hardcode_direct_CXX=no 13477 hardcode_shlibpath_var_CXX=no 13478 ;; 13479 *) 13480 hardcode_direct_CXX=yes 13481 hardcode_direct_absolute_CXX=yes 13482 hardcode_minus_L_CXX=yes # Not in the search PATH, 13483 # but as the default 13484 # location of the library. 13485 ;; 13486 esac 13487 13488 case $cc_basename in 13489 CC*) 13490 # FIXME: insert proper C++ library support 13491 ld_shlibs_CXX=no 13492 ;; 13493 aCC*) 13494 case $host_cpu in 13495 hppa*64*) 13496 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13497 ;; 13498 ia64*) 13499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13500 ;; 13501 *) 13502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13503 ;; 13504 esac 13505 # Commands to make compiler produce verbose output that lists 13506 # what "hidden" libraries, object files and flags are used when 13507 # linking a shared library. 13508 # 13509 # There doesn't appear to be a way to prevent this compiler from 13510 # explicitly linking system object files so we need to strip them 13511 # from the output so that they don't get included in the library 13512 # dependencies. 13513 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"' 13514 ;; 13515 *) 13516 if test "$GXX" = yes; then 13517 if test $with_gnu_ld = no; then 13518 case $host_cpu in 13519 hppa*64*) 13520 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13521 ;; 13522 ia64*) 13523 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13524 ;; 13525 *) 13526 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13527 ;; 13528 esac 13529 fi 13530 else 13531 # FIXME: insert proper C++ library support 13532 ld_shlibs_CXX=no 13533 fi 13534 ;; 13535 esac 13536 ;; 13537 13538 interix[3-9]*) 13539 hardcode_direct_CXX=no 13540 hardcode_shlibpath_var_CXX=no 13541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13542 export_dynamic_flag_spec_CXX='${wl}-E' 13543 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13544 # Instead, shared libraries are loaded at an image base (0x10000000 by 13545 # default) and relocated if they conflict, which is a slow very memory 13546 # consuming and fragmenting process. To avoid this, we pick a random, 13547 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13548 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13549 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' 13550 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' 13551 ;; 13552 irix5* | irix6*) 13553 case $cc_basename in 13554 CC*) 13555 # SGI C++ 13556 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' 13557 13558 # Archives containing C++ object files must be created using 13559 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13560 # necessary to make sure instantiated templates are included 13561 # in the archive. 13562 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13563 ;; 13564 *) 13565 if test "$GXX" = yes; then 13566 if test "$with_gnu_ld" = no; then 13567 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13568 else 13569 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13570 fi 13571 fi 13572 link_all_deplibs_CXX=yes 13573 ;; 13574 esac 13575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13576 hardcode_libdir_separator_CXX=: 13577 inherit_rpath_CXX=yes 13578 ;; 13579 13580 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13581 case $cc_basename in 13582 KCC*) 13583 # Kuck and Associates, Inc. (KAI) C++ Compiler 13584 13585 # KCC will only create a shared library if the output file 13586 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13587 # to its proper name (with version) after linking. 13588 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' 13589 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' 13590 # Commands to make compiler produce verbose output that lists 13591 # what "hidden" libraries, object files and flags are used when 13592 # linking a shared library. 13593 # 13594 # There doesn't appear to be a way to prevent this compiler from 13595 # explicitly linking system object files so we need to strip them 13596 # from the output so that they don't get included in the library 13597 # dependencies. 13598 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"' 13599 13600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13602 13603 # Archives containing C++ object files must be created using 13604 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13605 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13606 ;; 13607 icpc* | ecpc* ) 13608 # Intel C++ 13609 with_gnu_ld=yes 13610 # version 8.0 and above of icpc choke on multiply defined symbols 13611 # if we add $predep_objects and $postdep_objects, however 7.1 and 13612 # earlier do not add the objects themselves. 13613 case `$CC -V 2>&1` in 13614 *"Version 7."*) 13615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13616 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' 13617 ;; 13618 *) # Version 8.0 or newer 13619 tmp_idyn= 13620 case $host_cpu in 13621 ia64*) tmp_idyn=' -i_dynamic';; 13622 esac 13623 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13624 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' 13625 ;; 13626 esac 13627 archive_cmds_need_lc_CXX=no 13628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13629 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13630 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13631 ;; 13632 pgCC* | pgcpp*) 13633 # Portland Group C++ compiler 13634 case `$CC -V` in 13635 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13636 prelink_cmds_CXX='tpldir=Template.dir~ 13637 rm -rf $tpldir~ 13638 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13639 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13640 old_archive_cmds_CXX='tpldir=Template.dir~ 13641 rm -rf $tpldir~ 13642 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13643 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13644 $RANLIB $oldlib' 13645 archive_cmds_CXX='tpldir=Template.dir~ 13646 rm -rf $tpldir~ 13647 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13648 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13649 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13650 rm -rf $tpldir~ 13651 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13652 $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' 13653 ;; 13654 *) # Version 6 and above use weak symbols 13655 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13656 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' 13657 ;; 13658 esac 13659 13660 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13661 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13662 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' 13663 ;; 13664 cxx*) 13665 # Compaq C++ 13666 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13667 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' 13668 13669 runpath_var=LD_RUN_PATH 13670 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13671 hardcode_libdir_separator_CXX=: 13672 13673 # Commands to make compiler produce verbose output that lists 13674 # what "hidden" libraries, object files and flags are used when 13675 # linking a shared library. 13676 # 13677 # There doesn't appear to be a way to prevent this compiler from 13678 # explicitly linking system object files so we need to strip them 13679 # from the output so that they don't get included in the library 13680 # dependencies. 13681 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' 13682 ;; 13683 xl* | mpixl* | bgxl*) 13684 # IBM XL 8.0 on PPC, with GNU ld 13685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13687 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13688 if test "x$supports_anon_versioning" = xyes; then 13689 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13691 echo "local: *; };" >> $output_objdir/$libname.ver~ 13692 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13693 fi 13694 ;; 13695 *) 13696 case `$CC -V 2>&1 | sed 5q` in 13697 *Sun\ C*) 13698 # Sun C++ 5.9 13699 no_undefined_flag_CXX=' -zdefs' 13700 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13701 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' 13702 hardcode_libdir_flag_spec_CXX='-R$libdir' 13703 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' 13704 compiler_needs_object_CXX=yes 13705 13706 # Not sure whether something based on 13707 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13708 # would be better. 13709 output_verbose_link_cmd='func_echo_all' 13710 13711 # Archives containing C++ object files must be created using 13712 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13713 # necessary to make sure instantiated templates are included 13714 # in the archive. 13715 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13716 ;; 13717 esac 13718 ;; 13719 esac 13720 ;; 13721 13722 lynxos*) 13723 # FIXME: insert proper C++ library support 13724 ld_shlibs_CXX=no 13725 ;; 13726 13727 m88k*) 13728 # FIXME: insert proper C++ library support 13729 ld_shlibs_CXX=no 13730 ;; 13731 13732 mvs*) 13733 case $cc_basename in 13734 cxx*) 13735 # FIXME: insert proper C++ library support 13736 ld_shlibs_CXX=no 13737 ;; 13738 *) 13739 # FIXME: insert proper C++ library support 13740 ld_shlibs_CXX=no 13741 ;; 13742 esac 13743 ;; 13744 13745 netbsd*) 13746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13747 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13748 wlarc= 13749 hardcode_libdir_flag_spec_CXX='-R$libdir' 13750 hardcode_direct_CXX=yes 13751 hardcode_shlibpath_var_CXX=no 13752 fi 13753 # Workaround some broken pre-1.5 toolchains 13754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13755 ;; 13756 13757 *nto* | *qnx*) 13758 ld_shlibs_CXX=yes 13759 ;; 13760 13761 openbsd2*) 13762 # C++ shared libraries are fairly broken 13763 ld_shlibs_CXX=no 13764 ;; 13765 13766 openbsd*) 13767 if test -f /usr/libexec/ld.so; then 13768 hardcode_direct_CXX=yes 13769 hardcode_shlibpath_var_CXX=no 13770 hardcode_direct_absolute_CXX=yes 13771 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13774 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13775 export_dynamic_flag_spec_CXX='${wl}-E' 13776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13777 fi 13778 output_verbose_link_cmd=func_echo_all 13779 else 13780 ld_shlibs_CXX=no 13781 fi 13782 ;; 13783 13784 osf3* | osf4* | osf5*) 13785 case $cc_basename in 13786 KCC*) 13787 # Kuck and Associates, Inc. (KAI) C++ Compiler 13788 13789 # KCC will only create a shared library if the output file 13790 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13791 # to its proper name (with version) after linking. 13792 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' 13793 13794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13795 hardcode_libdir_separator_CXX=: 13796 13797 # Archives containing C++ object files must be created using 13798 # the KAI C++ compiler. 13799 case $host in 13800 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13801 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13802 esac 13803 ;; 13804 RCC*) 13805 # Rational C++ 2.4.1 13806 # FIXME: insert proper C++ library support 13807 ld_shlibs_CXX=no 13808 ;; 13809 cxx*) 13810 case $host in 13811 osf3*) 13812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13813 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' 13814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13815 ;; 13816 *) 13817 allow_undefined_flag_CXX=' -expect_unresolved \*' 13818 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' 13819 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13820 echo "-hidden">> $lib.exp~ 13821 $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~ 13822 $RM $lib.exp' 13823 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13824 ;; 13825 esac 13826 13827 hardcode_libdir_separator_CXX=: 13828 13829 # Commands to make compiler produce verbose output that lists 13830 # what "hidden" libraries, object files and flags are used when 13831 # linking a shared library. 13832 # 13833 # There doesn't appear to be a way to prevent this compiler from 13834 # explicitly linking system object files so we need to strip them 13835 # from the output so that they don't get included in the library 13836 # dependencies. 13837 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"' 13838 ;; 13839 *) 13840 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13841 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13842 case $host in 13843 osf3*) 13844 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' 13845 ;; 13846 *) 13847 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13848 ;; 13849 esac 13850 13851 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13852 hardcode_libdir_separator_CXX=: 13853 13854 # Commands to make compiler produce verbose output that lists 13855 # what "hidden" libraries, object files and flags are used when 13856 # linking a shared library. 13857 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13858 13859 else 13860 # FIXME: insert proper C++ library support 13861 ld_shlibs_CXX=no 13862 fi 13863 ;; 13864 esac 13865 ;; 13866 13867 psos*) 13868 # FIXME: insert proper C++ library support 13869 ld_shlibs_CXX=no 13870 ;; 13871 13872 sunos4*) 13873 case $cc_basename in 13874 CC*) 13875 # Sun C++ 4.x 13876 # FIXME: insert proper C++ library support 13877 ld_shlibs_CXX=no 13878 ;; 13879 lcc*) 13880 # Lucid 13881 # FIXME: insert proper C++ library support 13882 ld_shlibs_CXX=no 13883 ;; 13884 *) 13885 # FIXME: insert proper C++ library support 13886 ld_shlibs_CXX=no 13887 ;; 13888 esac 13889 ;; 13890 13891 solaris*) 13892 case $cc_basename in 13893 CC* | sunCC*) 13894 # Sun C++ 4.2, 5.x and Centerline C++ 13895 archive_cmds_need_lc_CXX=yes 13896 no_undefined_flag_CXX=' -zdefs' 13897 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13898 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13899 $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' 13900 13901 hardcode_libdir_flag_spec_CXX='-R$libdir' 13902 hardcode_shlibpath_var_CXX=no 13903 case $host_os in 13904 solaris2.[0-5] | solaris2.[0-5].*) ;; 13905 *) 13906 # The compiler driver will combine and reorder linker options, 13907 # but understands `-z linker_flag'. 13908 # Supported since Solaris 2.6 (maybe 2.5.1?) 13909 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13910 ;; 13911 esac 13912 link_all_deplibs_CXX=yes 13913 13914 output_verbose_link_cmd='func_echo_all' 13915 13916 # Archives containing C++ object files must be created using 13917 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13918 # necessary to make sure instantiated templates are included 13919 # in the archive. 13920 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13921 ;; 13922 gcx*) 13923 # Green Hills C++ Compiler 13924 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13925 13926 # The C++ compiler must be used to create the archive. 13927 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13928 ;; 13929 *) 13930 # GNU C++ compiler with Solaris linker 13931 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13932 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13933 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13934 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13935 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13936 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13937 13938 # Commands to make compiler produce verbose output that lists 13939 # what "hidden" libraries, object files and flags are used when 13940 # linking a shared library. 13941 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13942 else 13943 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13944 # platform. 13945 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13946 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13947 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13948 13949 # Commands to make compiler produce verbose output that lists 13950 # what "hidden" libraries, object files and flags are used when 13951 # linking a shared library. 13952 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13953 fi 13954 13955 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13956 case $host_os in 13957 solaris2.[0-5] | solaris2.[0-5].*) ;; 13958 *) 13959 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13960 ;; 13961 esac 13962 fi 13963 ;; 13964 esac 13965 ;; 13966 13967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13968 no_undefined_flag_CXX='${wl}-z,text' 13969 archive_cmds_need_lc_CXX=no 13970 hardcode_shlibpath_var_CXX=no 13971 runpath_var='LD_RUN_PATH' 13972 13973 case $cc_basename in 13974 CC*) 13975 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13976 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13977 ;; 13978 *) 13979 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13980 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13981 ;; 13982 esac 13983 ;; 13984 13985 sysv5* | sco3.2v5* | sco5v6*) 13986 # Note: We can NOT use -z defs as we might desire, because we do not 13987 # link with -lc, and that would cause any symbols used from libc to 13988 # always be unresolved, which means just about no library would 13989 # ever link correctly. If we're not using GNU ld we use -z text 13990 # though, which does catch some bad symbols but isn't as heavy-handed 13991 # as -z defs. 13992 no_undefined_flag_CXX='${wl}-z,text' 13993 allow_undefined_flag_CXX='${wl}-z,nodefs' 13994 archive_cmds_need_lc_CXX=no 13995 hardcode_shlibpath_var_CXX=no 13996 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13997 hardcode_libdir_separator_CXX=':' 13998 link_all_deplibs_CXX=yes 13999 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14000 runpath_var='LD_RUN_PATH' 14001 14002 case $cc_basename in 14003 CC*) 14004 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14005 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14006 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14007 '"$old_archive_cmds_CXX" 14008 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14009 '"$reload_cmds_CXX" 14010 ;; 14011 *) 14012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14014 ;; 14015 esac 14016 ;; 14017 14018 tandem*) 14019 case $cc_basename in 14020 NCC*) 14021 # NonStop-UX NCC 3.20 14022 # FIXME: insert proper C++ library support 14023 ld_shlibs_CXX=no 14024 ;; 14025 *) 14026 # FIXME: insert proper C++ library support 14027 ld_shlibs_CXX=no 14028 ;; 14029 esac 14030 ;; 14031 14032 vxworks*) 14033 # FIXME: insert proper C++ library support 14034 ld_shlibs_CXX=no 14035 ;; 14036 14037 *) 14038 # FIXME: insert proper C++ library support 14039 ld_shlibs_CXX=no 14040 ;; 14041 esac 14042 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14044$as_echo "$ld_shlibs_CXX" >&6; } 14045 test "$ld_shlibs_CXX" = no && can_build_shared=no 14046 14047 GCC_CXX="$GXX" 14048 LD_CXX="$LD" 14049 14050 ## CAVEAT EMPTOR: 14051 ## There is no encapsulation within the following macros, do not change 14052 ## the running order or otherwise move them around unless you know exactly 14053 ## what you are doing... 14054 # Dependencies to place before and after the object being linked: 14055predep_objects_CXX= 14056postdep_objects_CXX= 14057predeps_CXX= 14058postdeps_CXX= 14059compiler_lib_search_path_CXX= 14060 14061cat > conftest.$ac_ext <<_LT_EOF 14062class Foo 14063{ 14064public: 14065 Foo (void) { a = 0; } 14066private: 14067 int a; 14068}; 14069_LT_EOF 14070 14071 14072_lt_libdeps_save_CFLAGS=$CFLAGS 14073case "$CC $CFLAGS " in #( 14074*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14075*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14076*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14077esac 14078 14079if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14080 (eval $ac_compile) 2>&5 14081 ac_status=$? 14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14083 test $ac_status = 0; }; then 14084 # Parse the compiler output and extract the necessary 14085 # objects, libraries and library flags. 14086 14087 # Sentinel used to keep track of whether or not we are before 14088 # the conftest object file. 14089 pre_test_object_deps_done=no 14090 14091 for p in `eval "$output_verbose_link_cmd"`; do 14092 case ${prev}${p} in 14093 14094 -L* | -R* | -l*) 14095 # Some compilers place space between "-{L,R}" and the path. 14096 # Remove the space. 14097 if test $p = "-L" || 14098 test $p = "-R"; then 14099 prev=$p 14100 continue 14101 fi 14102 14103 # Expand the sysroot to ease extracting the directories later. 14104 if test -z "$prev"; then 14105 case $p in 14106 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14107 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14108 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14109 esac 14110 fi 14111 case $p in 14112 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14113 esac 14114 if test "$pre_test_object_deps_done" = no; then 14115 case ${prev} in 14116 -L | -R) 14117 # Internal compiler library paths should come after those 14118 # provided the user. The postdeps already come after the 14119 # user supplied libs so there is no need to process them. 14120 if test -z "$compiler_lib_search_path_CXX"; then 14121 compiler_lib_search_path_CXX="${prev}${p}" 14122 else 14123 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14124 fi 14125 ;; 14126 # The "-l" case would never come before the object being 14127 # linked, so don't bother handling this case. 14128 esac 14129 else 14130 if test -z "$postdeps_CXX"; then 14131 postdeps_CXX="${prev}${p}" 14132 else 14133 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14134 fi 14135 fi 14136 prev= 14137 ;; 14138 14139 *.lto.$objext) ;; # Ignore GCC LTO objects 14140 *.$objext) 14141 # This assumes that the test object file only shows up 14142 # once in the compiler output. 14143 if test "$p" = "conftest.$objext"; then 14144 pre_test_object_deps_done=yes 14145 continue 14146 fi 14147 14148 if test "$pre_test_object_deps_done" = no; then 14149 if test -z "$predep_objects_CXX"; then 14150 predep_objects_CXX="$p" 14151 else 14152 predep_objects_CXX="$predep_objects_CXX $p" 14153 fi 14154 else 14155 if test -z "$postdep_objects_CXX"; then 14156 postdep_objects_CXX="$p" 14157 else 14158 postdep_objects_CXX="$postdep_objects_CXX $p" 14159 fi 14160 fi 14161 ;; 14162 14163 *) ;; # Ignore the rest. 14164 14165 esac 14166 done 14167 14168 # Clean up. 14169 rm -f a.out a.exe 14170else 14171 echo "libtool.m4: error: problem compiling CXX test program" 14172fi 14173 14174$RM -f confest.$objext 14175CFLAGS=$_lt_libdeps_save_CFLAGS 14176 14177# PORTME: override above test on systems where it is broken 14178case $host_os in 14179interix[3-9]*) 14180 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14181 # hack all around it, let's just trust "g++" to DTRT. 14182 predep_objects_CXX= 14183 postdep_objects_CXX= 14184 postdeps_CXX= 14185 ;; 14186 14187linux*) 14188 case `$CC -V 2>&1 | sed 5q` in 14189 *Sun\ C*) 14190 # Sun C++ 5.9 14191 14192 # The more standards-conforming stlport4 library is 14193 # incompatible with the Cstd library. Avoid specifying 14194 # it if it's in CXXFLAGS. Ignore libCrun as 14195 # -library=stlport4 depends on it. 14196 case " $CXX $CXXFLAGS " in 14197 *" -library=stlport4 "*) 14198 solaris_use_stlport4=yes 14199 ;; 14200 esac 14201 14202 if test "$solaris_use_stlport4" != yes; then 14203 postdeps_CXX='-library=Cstd -library=Crun' 14204 fi 14205 ;; 14206 esac 14207 ;; 14208 14209solaris*) 14210 case $cc_basename in 14211 CC* | sunCC*) 14212 # The more standards-conforming stlport4 library is 14213 # incompatible with the Cstd library. Avoid specifying 14214 # it if it's in CXXFLAGS. Ignore libCrun as 14215 # -library=stlport4 depends on it. 14216 case " $CXX $CXXFLAGS " in 14217 *" -library=stlport4 "*) 14218 solaris_use_stlport4=yes 14219 ;; 14220 esac 14221 14222 # Adding this requires a known-good setup of shared libraries for 14223 # Sun compiler versions before 5.6, else PIC objects from an old 14224 # archive will be linked into the output, leading to subtle bugs. 14225 if test "$solaris_use_stlport4" != yes; then 14226 postdeps_CXX='-library=Cstd -library=Crun' 14227 fi 14228 ;; 14229 esac 14230 ;; 14231esac 14232 14233 14234case " $postdeps_CXX " in 14235*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14236esac 14237 compiler_lib_search_dirs_CXX= 14238if test -n "${compiler_lib_search_path_CXX}"; then 14239 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14240fi 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 lt_prog_compiler_wl_CXX= 14273lt_prog_compiler_pic_CXX= 14274lt_prog_compiler_static_CXX= 14275 14276 14277 # C++ specific cases for pic, static, wl, etc. 14278 if test "$GXX" = yes; then 14279 lt_prog_compiler_wl_CXX='-Wl,' 14280 lt_prog_compiler_static_CXX='-static' 14281 14282 case $host_os in 14283 aix*) 14284 # All AIX code is PIC. 14285 if test "$host_cpu" = ia64; then 14286 # AIX 5 now supports IA64 processor 14287 lt_prog_compiler_static_CXX='-Bstatic' 14288 fi 14289 ;; 14290 14291 amigaos*) 14292 case $host_cpu in 14293 powerpc) 14294 # see comment about AmigaOS4 .so support 14295 lt_prog_compiler_pic_CXX='-fPIC' 14296 ;; 14297 m68k) 14298 # FIXME: we need at least 68020 code to build shared libraries, but 14299 # adding the `-m68020' flag to GCC prevents building anything better, 14300 # like `-m68040'. 14301 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14302 ;; 14303 esac 14304 ;; 14305 14306 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14307 # PIC is the default for these OSes. 14308 ;; 14309 mingw* | cygwin* | os2* | pw32* | cegcc*) 14310 # This hack is so that the source file can tell whether it is being 14311 # built for inclusion in a dll (and should export symbols for example). 14312 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14313 # (--disable-auto-import) libraries 14314 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14315 ;; 14316 darwin* | rhapsody*) 14317 # PIC is the default on this platform 14318 # Common symbols not allowed in MH_DYLIB files 14319 lt_prog_compiler_pic_CXX='-fno-common' 14320 ;; 14321 *djgpp*) 14322 # DJGPP does not support shared libraries at all 14323 lt_prog_compiler_pic_CXX= 14324 ;; 14325 haiku*) 14326 # PIC is the default for Haiku. 14327 # The "-static" flag exists, but is broken. 14328 lt_prog_compiler_static_CXX= 14329 ;; 14330 interix[3-9]*) 14331 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14332 # Instead, we relocate shared libraries at runtime. 14333 ;; 14334 sysv4*MP*) 14335 if test -d /usr/nec; then 14336 lt_prog_compiler_pic_CXX=-Kconform_pic 14337 fi 14338 ;; 14339 hpux*) 14340 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14341 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14342 # sets the default TLS model and affects inlining. 14343 case $host_cpu in 14344 hppa*64*) 14345 ;; 14346 *) 14347 lt_prog_compiler_pic_CXX='-fPIC' 14348 ;; 14349 esac 14350 ;; 14351 *qnx* | *nto*) 14352 # QNX uses GNU C++, but need to define -shared option too, otherwise 14353 # it will coredump. 14354 lt_prog_compiler_pic_CXX='-fPIC -shared' 14355 ;; 14356 *) 14357 lt_prog_compiler_pic_CXX='-fPIC' 14358 ;; 14359 esac 14360 else 14361 case $host_os in 14362 aix[4-9]*) 14363 # All AIX code is PIC. 14364 if test "$host_cpu" = ia64; then 14365 # AIX 5 now supports IA64 processor 14366 lt_prog_compiler_static_CXX='-Bstatic' 14367 else 14368 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14369 fi 14370 ;; 14371 chorus*) 14372 case $cc_basename in 14373 cxch68*) 14374 # Green Hills C++ Compiler 14375 # _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" 14376 ;; 14377 esac 14378 ;; 14379 mingw* | cygwin* | os2* | pw32* | cegcc*) 14380 # This hack is so that the source file can tell whether it is being 14381 # built for inclusion in a dll (and should export symbols for example). 14382 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14383 ;; 14384 dgux*) 14385 case $cc_basename in 14386 ec++*) 14387 lt_prog_compiler_pic_CXX='-KPIC' 14388 ;; 14389 ghcx*) 14390 # Green Hills C++ Compiler 14391 lt_prog_compiler_pic_CXX='-pic' 14392 ;; 14393 *) 14394 ;; 14395 esac 14396 ;; 14397 freebsd* | dragonfly*) 14398 # FreeBSD uses GNU C++ 14399 ;; 14400 hpux9* | hpux10* | hpux11*) 14401 case $cc_basename in 14402 CC*) 14403 lt_prog_compiler_wl_CXX='-Wl,' 14404 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14405 if test "$host_cpu" != ia64; then 14406 lt_prog_compiler_pic_CXX='+Z' 14407 fi 14408 ;; 14409 aCC*) 14410 lt_prog_compiler_wl_CXX='-Wl,' 14411 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14412 case $host_cpu in 14413 hppa*64*|ia64*) 14414 # +Z the default 14415 ;; 14416 *) 14417 lt_prog_compiler_pic_CXX='+Z' 14418 ;; 14419 esac 14420 ;; 14421 *) 14422 ;; 14423 esac 14424 ;; 14425 interix*) 14426 # This is c89, which is MS Visual C++ (no shared libs) 14427 # Anyone wants to do a port? 14428 ;; 14429 irix5* | irix6* | nonstopux*) 14430 case $cc_basename in 14431 CC*) 14432 lt_prog_compiler_wl_CXX='-Wl,' 14433 lt_prog_compiler_static_CXX='-non_shared' 14434 # CC pic flag -KPIC is the default. 14435 ;; 14436 *) 14437 ;; 14438 esac 14439 ;; 14440 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14441 case $cc_basename in 14442 KCC*) 14443 # KAI C++ Compiler 14444 lt_prog_compiler_wl_CXX='--backend -Wl,' 14445 lt_prog_compiler_pic_CXX='-fPIC' 14446 ;; 14447 ecpc* ) 14448 # old Intel C++ for x86_64 which still supported -KPIC. 14449 lt_prog_compiler_wl_CXX='-Wl,' 14450 lt_prog_compiler_pic_CXX='-KPIC' 14451 lt_prog_compiler_static_CXX='-static' 14452 ;; 14453 icpc* ) 14454 # Intel C++, used to be incompatible with GCC. 14455 # ICC 10 doesn't accept -KPIC any more. 14456 lt_prog_compiler_wl_CXX='-Wl,' 14457 lt_prog_compiler_pic_CXX='-fPIC' 14458 lt_prog_compiler_static_CXX='-static' 14459 ;; 14460 pgCC* | pgcpp*) 14461 # Portland Group C++ compiler 14462 lt_prog_compiler_wl_CXX='-Wl,' 14463 lt_prog_compiler_pic_CXX='-fpic' 14464 lt_prog_compiler_static_CXX='-Bstatic' 14465 ;; 14466 cxx*) 14467 # Compaq C++ 14468 # Make sure the PIC flag is empty. It appears that all Alpha 14469 # Linux and Compaq Tru64 Unix objects are PIC. 14470 lt_prog_compiler_pic_CXX= 14471 lt_prog_compiler_static_CXX='-non_shared' 14472 ;; 14473 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14474 # IBM XL 8.0, 9.0 on PPC and BlueGene 14475 lt_prog_compiler_wl_CXX='-Wl,' 14476 lt_prog_compiler_pic_CXX='-qpic' 14477 lt_prog_compiler_static_CXX='-qstaticlink' 14478 ;; 14479 *) 14480 case `$CC -V 2>&1 | sed 5q` in 14481 *Sun\ C*) 14482 # Sun C++ 5.9 14483 lt_prog_compiler_pic_CXX='-KPIC' 14484 lt_prog_compiler_static_CXX='-Bstatic' 14485 lt_prog_compiler_wl_CXX='-Qoption ld ' 14486 ;; 14487 esac 14488 ;; 14489 esac 14490 ;; 14491 lynxos*) 14492 ;; 14493 m88k*) 14494 ;; 14495 mvs*) 14496 case $cc_basename in 14497 cxx*) 14498 lt_prog_compiler_pic_CXX='-W c,exportall' 14499 ;; 14500 *) 14501 ;; 14502 esac 14503 ;; 14504 netbsd*) 14505 ;; 14506 *qnx* | *nto*) 14507 # QNX uses GNU C++, but need to define -shared option too, otherwise 14508 # it will coredump. 14509 lt_prog_compiler_pic_CXX='-fPIC -shared' 14510 ;; 14511 osf3* | osf4* | osf5*) 14512 case $cc_basename in 14513 KCC*) 14514 lt_prog_compiler_wl_CXX='--backend -Wl,' 14515 ;; 14516 RCC*) 14517 # Rational C++ 2.4.1 14518 lt_prog_compiler_pic_CXX='-pic' 14519 ;; 14520 cxx*) 14521 # Digital/Compaq C++ 14522 lt_prog_compiler_wl_CXX='-Wl,' 14523 # Make sure the PIC flag is empty. It appears that all Alpha 14524 # Linux and Compaq Tru64 Unix objects are PIC. 14525 lt_prog_compiler_pic_CXX= 14526 lt_prog_compiler_static_CXX='-non_shared' 14527 ;; 14528 *) 14529 ;; 14530 esac 14531 ;; 14532 psos*) 14533 ;; 14534 solaris*) 14535 case $cc_basename in 14536 CC* | sunCC*) 14537 # Sun C++ 4.2, 5.x and Centerline C++ 14538 lt_prog_compiler_pic_CXX='-KPIC' 14539 lt_prog_compiler_static_CXX='-Bstatic' 14540 lt_prog_compiler_wl_CXX='-Qoption ld ' 14541 ;; 14542 gcx*) 14543 # Green Hills C++ Compiler 14544 lt_prog_compiler_pic_CXX='-PIC' 14545 ;; 14546 *) 14547 ;; 14548 esac 14549 ;; 14550 sunos4*) 14551 case $cc_basename in 14552 CC*) 14553 # Sun C++ 4.x 14554 lt_prog_compiler_pic_CXX='-pic' 14555 lt_prog_compiler_static_CXX='-Bstatic' 14556 ;; 14557 lcc*) 14558 # Lucid 14559 lt_prog_compiler_pic_CXX='-pic' 14560 ;; 14561 *) 14562 ;; 14563 esac 14564 ;; 14565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14566 case $cc_basename in 14567 CC*) 14568 lt_prog_compiler_wl_CXX='-Wl,' 14569 lt_prog_compiler_pic_CXX='-KPIC' 14570 lt_prog_compiler_static_CXX='-Bstatic' 14571 ;; 14572 esac 14573 ;; 14574 tandem*) 14575 case $cc_basename in 14576 NCC*) 14577 # NonStop-UX NCC 3.20 14578 lt_prog_compiler_pic_CXX='-KPIC' 14579 ;; 14580 *) 14581 ;; 14582 esac 14583 ;; 14584 vxworks*) 14585 ;; 14586 *) 14587 lt_prog_compiler_can_build_shared_CXX=no 14588 ;; 14589 esac 14590 fi 14591 14592case $host_os in 14593 # For platforms which do not support PIC, -DPIC is meaningless: 14594 *djgpp*) 14595 lt_prog_compiler_pic_CXX= 14596 ;; 14597 *) 14598 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14599 ;; 14600esac 14601 14602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14603$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14604if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14605 $as_echo_n "(cached) " >&6 14606else 14607 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14608fi 14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14610$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14611lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14612 14613# 14614# Check to make sure the PIC flag actually works. 14615# 14616if test -n "$lt_prog_compiler_pic_CXX"; then 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14618$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14619if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14620 $as_echo_n "(cached) " >&6 14621else 14622 lt_cv_prog_compiler_pic_works_CXX=no 14623 ac_outfile=conftest.$ac_objext 14624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14625 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14626 # Insert the option either (1) after the last *FLAGS variable, or 14627 # (2) before a word containing "conftest.", or (3) at the end. 14628 # Note that $ac_compile itself does not contain backslashes and begins 14629 # with a dollar sign (not a hyphen), so the echo should work correctly. 14630 # The option is referenced via a variable to avoid confusing sed. 14631 lt_compile=`echo "$ac_compile" | $SED \ 14632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14634 -e 's:$: $lt_compiler_flag:'` 14635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14636 (eval "$lt_compile" 2>conftest.err) 14637 ac_status=$? 14638 cat conftest.err >&5 14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14640 if (exit $ac_status) && test -s "$ac_outfile"; then 14641 # The compiler can only warn and ignore the option if not recognized 14642 # So say no if there are warnings other than the usual output. 14643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14646 lt_cv_prog_compiler_pic_works_CXX=yes 14647 fi 14648 fi 14649 $RM conftest* 14650 14651fi 14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14653$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14654 14655if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14656 case $lt_prog_compiler_pic_CXX in 14657 "" | " "*) ;; 14658 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14659 esac 14660else 14661 lt_prog_compiler_pic_CXX= 14662 lt_prog_compiler_can_build_shared_CXX=no 14663fi 14664 14665fi 14666 14667 14668 14669 14670 14671# 14672# Check to make sure the static flag actually works. 14673# 14674wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14676$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14677if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 lt_cv_prog_compiler_static_works_CXX=no 14681 save_LDFLAGS="$LDFLAGS" 14682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14683 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14685 # The linker can only warn and ignore the option if not recognized 14686 # So say no if there are warnings 14687 if test -s conftest.err; then 14688 # Append any errors to the config.log. 14689 cat conftest.err 1>&5 14690 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14692 if diff conftest.exp conftest.er2 >/dev/null; then 14693 lt_cv_prog_compiler_static_works_CXX=yes 14694 fi 14695 else 14696 lt_cv_prog_compiler_static_works_CXX=yes 14697 fi 14698 fi 14699 $RM -r conftest* 14700 LDFLAGS="$save_LDFLAGS" 14701 14702fi 14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14704$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14705 14706if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14707 : 14708else 14709 lt_prog_compiler_static_CXX= 14710fi 14711 14712 14713 14714 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14716$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14717if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14718 $as_echo_n "(cached) " >&6 14719else 14720 lt_cv_prog_compiler_c_o_CXX=no 14721 $RM -r conftest 2>/dev/null 14722 mkdir conftest 14723 cd conftest 14724 mkdir out 14725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14726 14727 lt_compiler_flag="-o out/conftest2.$ac_objext" 14728 # Insert the option either (1) after the last *FLAGS variable, or 14729 # (2) before a word containing "conftest.", or (3) at the end. 14730 # Note that $ac_compile itself does not contain backslashes and begins 14731 # with a dollar sign (not a hyphen), so the echo should work correctly. 14732 lt_compile=`echo "$ac_compile" | $SED \ 14733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14735 -e 's:$: $lt_compiler_flag:'` 14736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14737 (eval "$lt_compile" 2>out/conftest.err) 14738 ac_status=$? 14739 cat out/conftest.err >&5 14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14741 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14742 then 14743 # The compiler can only warn and ignore the option if not recognized 14744 # So say no if there are warnings 14745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14748 lt_cv_prog_compiler_c_o_CXX=yes 14749 fi 14750 fi 14751 chmod u+w . 2>&5 14752 $RM conftest* 14753 # SGI C++ compiler will create directory out/ii_files/ for 14754 # template instantiation 14755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14756 $RM out/* && rmdir out 14757 cd .. 14758 $RM -r conftest 14759 $RM conftest* 14760 14761fi 14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14763$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14764 14765 14766 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14768$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14769if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14770 $as_echo_n "(cached) " >&6 14771else 14772 lt_cv_prog_compiler_c_o_CXX=no 14773 $RM -r conftest 2>/dev/null 14774 mkdir conftest 14775 cd conftest 14776 mkdir out 14777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14778 14779 lt_compiler_flag="-o out/conftest2.$ac_objext" 14780 # Insert the option either (1) after the last *FLAGS variable, or 14781 # (2) before a word containing "conftest.", or (3) at the end. 14782 # Note that $ac_compile itself does not contain backslashes and begins 14783 # with a dollar sign (not a hyphen), so the echo should work correctly. 14784 lt_compile=`echo "$ac_compile" | $SED \ 14785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14787 -e 's:$: $lt_compiler_flag:'` 14788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14789 (eval "$lt_compile" 2>out/conftest.err) 14790 ac_status=$? 14791 cat out/conftest.err >&5 14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14793 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14794 then 14795 # The compiler can only warn and ignore the option if not recognized 14796 # So say no if there are warnings 14797 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14800 lt_cv_prog_compiler_c_o_CXX=yes 14801 fi 14802 fi 14803 chmod u+w . 2>&5 14804 $RM conftest* 14805 # SGI C++ compiler will create directory out/ii_files/ for 14806 # template instantiation 14807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14808 $RM out/* && rmdir out 14809 cd .. 14810 $RM -r conftest 14811 $RM conftest* 14812 14813fi 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14815$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14816 14817 14818 14819 14820hard_links="nottested" 14821if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14822 # do not overwrite the value of need_locks provided by the user 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14824$as_echo_n "checking if we can lock with hard links... " >&6; } 14825 hard_links=yes 14826 $RM conftest* 14827 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14828 touch conftest.a 14829 ln conftest.a conftest.b 2>&5 || hard_links=no 14830 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14832$as_echo "$hard_links" >&6; } 14833 if test "$hard_links" = no; then 14834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14835$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14836 need_locks=warn 14837 fi 14838else 14839 need_locks=no 14840fi 14841 14842 14843 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14845$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14846 14847 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14848 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14849 case $host_os in 14850 aix[4-9]*) 14851 # If we're using GNU nm, then we don't want the "-C" option. 14852 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14853 # Also, AIX nm treats weak defined symbols like other global defined 14854 # symbols, whereas GNU nm marks them as "W". 14855 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14856 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' 14857 else 14858 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' 14859 fi 14860 ;; 14861 pw32*) 14862 export_symbols_cmds_CXX="$ltdll_cmds" 14863 ;; 14864 cygwin* | mingw* | cegcc*) 14865 case $cc_basename in 14866 cl*) 14867 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14868 ;; 14869 *) 14870 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14871 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14872 ;; 14873 esac 14874 ;; 14875 *) 14876 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14877 ;; 14878 esac 14879 14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14881$as_echo "$ld_shlibs_CXX" >&6; } 14882test "$ld_shlibs_CXX" = no && can_build_shared=no 14883 14884with_gnu_ld_CXX=$with_gnu_ld 14885 14886 14887 14888 14889 14890 14891# 14892# Do we need to explicitly link libc? 14893# 14894case "x$archive_cmds_need_lc_CXX" in 14895x|xyes) 14896 # Assume -lc should be added 14897 archive_cmds_need_lc_CXX=yes 14898 14899 if test "$enable_shared" = yes && test "$GCC" = yes; then 14900 case $archive_cmds_CXX in 14901 *'~'*) 14902 # FIXME: we may have to deal with multi-command sequences. 14903 ;; 14904 '$CC '*) 14905 # Test whether the compiler implicitly links with -lc since on some 14906 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14907 # to ld, don't add -lc before -lgcc. 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14909$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14910if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14911 $as_echo_n "(cached) " >&6 14912else 14913 $RM conftest* 14914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14915 14916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14917 (eval $ac_compile) 2>&5 14918 ac_status=$? 14919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14920 test $ac_status = 0; } 2>conftest.err; then 14921 soname=conftest 14922 lib=conftest 14923 libobjs=conftest.$ac_objext 14924 deplibs= 14925 wl=$lt_prog_compiler_wl_CXX 14926 pic_flag=$lt_prog_compiler_pic_CXX 14927 compiler_flags=-v 14928 linker_flags=-v 14929 verstring= 14930 output_objdir=. 14931 libname=conftest 14932 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14933 allow_undefined_flag_CXX= 14934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14935 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14936 ac_status=$? 14937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14938 test $ac_status = 0; } 14939 then 14940 lt_cv_archive_cmds_need_lc_CXX=no 14941 else 14942 lt_cv_archive_cmds_need_lc_CXX=yes 14943 fi 14944 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14945 else 14946 cat conftest.err 1>&5 14947 fi 14948 $RM conftest* 14949 14950fi 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14952$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14953 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14954 ;; 14955 esac 14956 fi 14957 ;; 14958esac 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15022$as_echo_n "checking dynamic linker characteristics... " >&6; } 15023 15024library_names_spec= 15025libname_spec='lib$name' 15026soname_spec= 15027shrext_cmds=".so" 15028postinstall_cmds= 15029postuninstall_cmds= 15030finish_cmds= 15031finish_eval= 15032shlibpath_var= 15033shlibpath_overrides_runpath=unknown 15034version_type=none 15035dynamic_linker="$host_os ld.so" 15036sys_lib_dlsearch_path_spec="/lib /usr/lib" 15037need_lib_prefix=unknown 15038hardcode_into_libs=no 15039 15040# when you set need_version to no, make sure it does not cause -set_version 15041# flags to be left without arguments 15042need_version=unknown 15043 15044case $host_os in 15045aix3*) 15046 version_type=linux # correct to gnu/linux during the next big refactor 15047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15048 shlibpath_var=LIBPATH 15049 15050 # AIX 3 has no versioning support, so we append a major version to the name. 15051 soname_spec='${libname}${release}${shared_ext}$major' 15052 ;; 15053 15054aix[4-9]*) 15055 version_type=linux # correct to gnu/linux during the next big refactor 15056 need_lib_prefix=no 15057 need_version=no 15058 hardcode_into_libs=yes 15059 if test "$host_cpu" = ia64; then 15060 # AIX 5 supports IA64 15061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15062 shlibpath_var=LD_LIBRARY_PATH 15063 else 15064 # With GCC up to 2.95.x, collect2 would create an import file 15065 # for dependence libraries. The import file would start with 15066 # the line `#! .'. This would cause the generated library to 15067 # depend on `.', always an invalid library. This was fixed in 15068 # development snapshots of GCC prior to 3.0. 15069 case $host_os in 15070 aix4 | aix4.[01] | aix4.[01].*) 15071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15072 echo ' yes ' 15073 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15074 : 15075 else 15076 can_build_shared=no 15077 fi 15078 ;; 15079 esac 15080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15081 # soname into executable. Probably we can add versioning support to 15082 # collect2, so additional links can be useful in future. 15083 if test "$aix_use_runtimelinking" = yes; then 15084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15085 # instead of lib<name>.a to let people know that these are not 15086 # typical AIX shared libraries. 15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15088 else 15089 # We preserve .a as extension for shared libraries through AIX4.2 15090 # and later when we are not doing run time linking. 15091 library_names_spec='${libname}${release}.a $libname.a' 15092 soname_spec='${libname}${release}${shared_ext}$major' 15093 fi 15094 shlibpath_var=LIBPATH 15095 fi 15096 ;; 15097 15098amigaos*) 15099 case $host_cpu in 15100 powerpc) 15101 # Since July 2007 AmigaOS4 officially supports .so libraries. 15102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15104 ;; 15105 m68k) 15106 library_names_spec='$libname.ixlibrary $libname.a' 15107 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15108 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' 15109 ;; 15110 esac 15111 ;; 15112 15113beos*) 15114 library_names_spec='${libname}${shared_ext}' 15115 dynamic_linker="$host_os ld.so" 15116 shlibpath_var=LIBRARY_PATH 15117 ;; 15118 15119bsdi[45]*) 15120 version_type=linux # correct to gnu/linux during the next big refactor 15121 need_version=no 15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15123 soname_spec='${libname}${release}${shared_ext}$major' 15124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15125 shlibpath_var=LD_LIBRARY_PATH 15126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15128 # the default ld.so.conf also contains /usr/contrib/lib and 15129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15130 # libtool to hard-code these into programs 15131 ;; 15132 15133cygwin* | mingw* | pw32* | cegcc*) 15134 version_type=windows 15135 shrext_cmds=".dll" 15136 need_version=no 15137 need_lib_prefix=no 15138 15139 case $GCC,$cc_basename in 15140 yes,*) 15141 # gcc 15142 library_names_spec='$libname.dll.a' 15143 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15144 postinstall_cmds='base_file=`basename \${file}`~ 15145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15146 dldir=$destdir/`dirname \$dlpath`~ 15147 test -d \$dldir || mkdir -p \$dldir~ 15148 $install_prog $dir/$dlname \$dldir/$dlname~ 15149 chmod a+x \$dldir/$dlname~ 15150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15152 fi' 15153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15154 dlpath=$dir/\$dldll~ 15155 $RM \$dlpath' 15156 shlibpath_overrides_runpath=yes 15157 15158 case $host_os in 15159 cygwin*) 15160 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15162 15163 ;; 15164 mingw* | cegcc*) 15165 # MinGW DLLs use traditional 'lib' prefix 15166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15167 ;; 15168 pw32*) 15169 # pw32 DLLs use 'pw' prefix rather than 'lib' 15170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15171 ;; 15172 esac 15173 dynamic_linker='Win32 ld.exe' 15174 ;; 15175 15176 *,cl*) 15177 # Native MSVC 15178 libname_spec='$name' 15179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15180 library_names_spec='${libname}.dll.lib' 15181 15182 case $build_os in 15183 mingw*) 15184 sys_lib_search_path_spec= 15185 lt_save_ifs=$IFS 15186 IFS=';' 15187 for lt_path in $LIB 15188 do 15189 IFS=$lt_save_ifs 15190 # Let DOS variable expansion print the short 8.3 style file name. 15191 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15192 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15193 done 15194 IFS=$lt_save_ifs 15195 # Convert to MSYS style. 15196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15197 ;; 15198 cygwin*) 15199 # Convert to unix form, then to dos form, then back to unix form 15200 # but this time dos style (no spaces!) so that the unix form looks 15201 # like /cygdrive/c/PROGRA~1:/cygdr... 15202 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15203 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15204 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15205 ;; 15206 *) 15207 sys_lib_search_path_spec="$LIB" 15208 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15209 # It is most probably a Windows format PATH. 15210 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15211 else 15212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15213 fi 15214 # FIXME: find the short name or the path components, as spaces are 15215 # common. (e.g. "Program Files" -> "PROGRA~1") 15216 ;; 15217 esac 15218 15219 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15220 postinstall_cmds='base_file=`basename \${file}`~ 15221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15222 dldir=$destdir/`dirname \$dlpath`~ 15223 test -d \$dldir || mkdir -p \$dldir~ 15224 $install_prog $dir/$dlname \$dldir/$dlname' 15225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15226 dlpath=$dir/\$dldll~ 15227 $RM \$dlpath' 15228 shlibpath_overrides_runpath=yes 15229 dynamic_linker='Win32 link.exe' 15230 ;; 15231 15232 *) 15233 # Assume MSVC wrapper 15234 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15235 dynamic_linker='Win32 ld.exe' 15236 ;; 15237 esac 15238 # FIXME: first we should search . and the directory the executable is in 15239 shlibpath_var=PATH 15240 ;; 15241 15242darwin* | rhapsody*) 15243 dynamic_linker="$host_os dyld" 15244 version_type=darwin 15245 need_lib_prefix=no 15246 need_version=no 15247 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15248 soname_spec='${libname}${release}${major}$shared_ext' 15249 shlibpath_overrides_runpath=yes 15250 shlibpath_var=DYLD_LIBRARY_PATH 15251 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15252 15253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15254 ;; 15255 15256dgux*) 15257 version_type=linux # correct to gnu/linux during the next big refactor 15258 need_lib_prefix=no 15259 need_version=no 15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15261 soname_spec='${libname}${release}${shared_ext}$major' 15262 shlibpath_var=LD_LIBRARY_PATH 15263 ;; 15264 15265freebsd* | dragonfly*) 15266 # DragonFly does not have aout. When/if they implement a new 15267 # versioning mechanism, adjust this. 15268 if test -x /usr/bin/objformat; then 15269 objformat=`/usr/bin/objformat` 15270 else 15271 case $host_os in 15272 freebsd[23].*) objformat=aout ;; 15273 *) objformat=elf ;; 15274 esac 15275 fi 15276 version_type=freebsd-$objformat 15277 case $version_type in 15278 freebsd-elf*) 15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15280 need_version=no 15281 need_lib_prefix=no 15282 ;; 15283 freebsd-*) 15284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15285 need_version=yes 15286 ;; 15287 esac 15288 shlibpath_var=LD_LIBRARY_PATH 15289 case $host_os in 15290 freebsd2.*) 15291 shlibpath_overrides_runpath=yes 15292 ;; 15293 freebsd3.[01]* | freebsdelf3.[01]*) 15294 shlibpath_overrides_runpath=yes 15295 hardcode_into_libs=yes 15296 ;; 15297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15299 shlibpath_overrides_runpath=no 15300 hardcode_into_libs=yes 15301 ;; 15302 *) # from 4.6 on, and DragonFly 15303 shlibpath_overrides_runpath=yes 15304 hardcode_into_libs=yes 15305 ;; 15306 esac 15307 ;; 15308 15309gnu*) 15310 version_type=linux # correct to gnu/linux during the next big refactor 15311 need_lib_prefix=no 15312 need_version=no 15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15314 soname_spec='${libname}${release}${shared_ext}$major' 15315 shlibpath_var=LD_LIBRARY_PATH 15316 shlibpath_overrides_runpath=no 15317 hardcode_into_libs=yes 15318 ;; 15319 15320haiku*) 15321 version_type=linux # correct to gnu/linux during the next big refactor 15322 need_lib_prefix=no 15323 need_version=no 15324 dynamic_linker="$host_os runtime_loader" 15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15326 soname_spec='${libname}${release}${shared_ext}$major' 15327 shlibpath_var=LIBRARY_PATH 15328 shlibpath_overrides_runpath=yes 15329 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15330 hardcode_into_libs=yes 15331 ;; 15332 15333hpux9* | hpux10* | hpux11*) 15334 # Give a soname corresponding to the major version so that dld.sl refuses to 15335 # link against other versions. 15336 version_type=sunos 15337 need_lib_prefix=no 15338 need_version=no 15339 case $host_cpu in 15340 ia64*) 15341 shrext_cmds='.so' 15342 hardcode_into_libs=yes 15343 dynamic_linker="$host_os dld.so" 15344 shlibpath_var=LD_LIBRARY_PATH 15345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15347 soname_spec='${libname}${release}${shared_ext}$major' 15348 if test "X$HPUX_IA64_MODE" = X32; then 15349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15350 else 15351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15352 fi 15353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15354 ;; 15355 hppa*64*) 15356 shrext_cmds='.sl' 15357 hardcode_into_libs=yes 15358 dynamic_linker="$host_os dld.sl" 15359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15362 soname_spec='${libname}${release}${shared_ext}$major' 15363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15365 ;; 15366 *) 15367 shrext_cmds='.sl' 15368 dynamic_linker="$host_os dld.sl" 15369 shlibpath_var=SHLIB_PATH 15370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15372 soname_spec='${libname}${release}${shared_ext}$major' 15373 ;; 15374 esac 15375 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15376 postinstall_cmds='chmod 555 $lib' 15377 # or fails outright, so override atomically: 15378 install_override_mode=555 15379 ;; 15380 15381interix[3-9]*) 15382 version_type=linux # correct to gnu/linux during the next big refactor 15383 need_lib_prefix=no 15384 need_version=no 15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15386 soname_spec='${libname}${release}${shared_ext}$major' 15387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15388 shlibpath_var=LD_LIBRARY_PATH 15389 shlibpath_overrides_runpath=no 15390 hardcode_into_libs=yes 15391 ;; 15392 15393irix5* | irix6* | nonstopux*) 15394 case $host_os in 15395 nonstopux*) version_type=nonstopux ;; 15396 *) 15397 if test "$lt_cv_prog_gnu_ld" = yes; then 15398 version_type=linux # correct to gnu/linux during the next big refactor 15399 else 15400 version_type=irix 15401 fi ;; 15402 esac 15403 need_lib_prefix=no 15404 need_version=no 15405 soname_spec='${libname}${release}${shared_ext}$major' 15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15407 case $host_os in 15408 irix5* | nonstopux*) 15409 libsuff= shlibsuff= 15410 ;; 15411 *) 15412 case $LD in # libtool.m4 will add one of these switches to LD 15413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15414 libsuff= shlibsuff= libmagic=32-bit;; 15415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15416 libsuff=32 shlibsuff=N32 libmagic=N32;; 15417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15418 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15419 *) libsuff= shlibsuff= libmagic=never-match;; 15420 esac 15421 ;; 15422 esac 15423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15424 shlibpath_overrides_runpath=no 15425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15427 hardcode_into_libs=yes 15428 ;; 15429 15430# No shared lib support for Linux oldld, aout, or coff. 15431linux*oldld* | linux*aout* | linux*coff*) 15432 dynamic_linker=no 15433 ;; 15434 15435# This must be glibc/ELF. 15436linux* | k*bsd*-gnu | kopensolaris*-gnu) 15437 version_type=linux # correct to gnu/linux during the next big refactor 15438 need_lib_prefix=no 15439 need_version=no 15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15441 soname_spec='${libname}${release}${shared_ext}$major' 15442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15443 shlibpath_var=LD_LIBRARY_PATH 15444 shlibpath_overrides_runpath=no 15445 15446 # Some binutils ld are patched to set DT_RUNPATH 15447 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449else 15450 lt_cv_shlibpath_overrides_runpath=no 15451 save_LDFLAGS=$LDFLAGS 15452 save_libdir=$libdir 15453 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15454 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15456/* end confdefs.h. */ 15457 15458int 15459main () 15460{ 15461 15462 ; 15463 return 0; 15464} 15465_ACEOF 15466if ac_fn_cxx_try_link "$LINENO"; then : 15467 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15468 lt_cv_shlibpath_overrides_runpath=yes 15469fi 15470fi 15471rm -f core conftest.err conftest.$ac_objext \ 15472 conftest$ac_exeext conftest.$ac_ext 15473 LDFLAGS=$save_LDFLAGS 15474 libdir=$save_libdir 15475 15476fi 15477 15478 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15479 15480 # This implies no fast_install, which is unacceptable. 15481 # Some rework will be needed to allow for fast_install 15482 # before this can be enabled. 15483 hardcode_into_libs=yes 15484 15485 # Append ld.so.conf contents to the search path 15486 if test -f /etc/ld.so.conf; then 15487 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' ' '` 15488 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15489 fi 15490 15491 # We used to test for /lib/ld.so.1 and disable shared libraries on 15492 # powerpc, because MkLinux only supported shared libraries with the 15493 # GNU dynamic linker. Since this was broken with cross compilers, 15494 # most powerpc-linux boxes support dynamic linking these days and 15495 # people can always --disable-shared, the test was removed, and we 15496 # assume the GNU/Linux dynamic linker is in use. 15497 dynamic_linker='GNU/Linux ld.so' 15498 ;; 15499 15500netbsd*) 15501 version_type=sunos 15502 need_lib_prefix=no 15503 need_version=no 15504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15507 dynamic_linker='NetBSD (a.out) ld.so' 15508 else 15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15510 soname_spec='${libname}${release}${shared_ext}$major' 15511 dynamic_linker='NetBSD ld.elf_so' 15512 fi 15513 shlibpath_var=LD_LIBRARY_PATH 15514 shlibpath_overrides_runpath=yes 15515 hardcode_into_libs=yes 15516 ;; 15517 15518newsos6) 15519 version_type=linux # correct to gnu/linux during the next big refactor 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15521 shlibpath_var=LD_LIBRARY_PATH 15522 shlibpath_overrides_runpath=yes 15523 ;; 15524 15525*nto* | *qnx*) 15526 version_type=qnx 15527 need_lib_prefix=no 15528 need_version=no 15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15530 soname_spec='${libname}${release}${shared_ext}$major' 15531 shlibpath_var=LD_LIBRARY_PATH 15532 shlibpath_overrides_runpath=no 15533 hardcode_into_libs=yes 15534 dynamic_linker='ldqnx.so' 15535 ;; 15536 15537openbsd*) 15538 version_type=sunos 15539 sys_lib_dlsearch_path_spec="/usr/lib" 15540 need_lib_prefix=no 15541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15542 case $host_os in 15543 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15544 *) need_version=no ;; 15545 esac 15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15548 shlibpath_var=LD_LIBRARY_PATH 15549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15550 case $host_os in 15551 openbsd2.[89] | openbsd2.[89].*) 15552 shlibpath_overrides_runpath=no 15553 ;; 15554 *) 15555 shlibpath_overrides_runpath=yes 15556 ;; 15557 esac 15558 else 15559 shlibpath_overrides_runpath=yes 15560 fi 15561 ;; 15562 15563os2*) 15564 libname_spec='$name' 15565 shrext_cmds=".dll" 15566 need_lib_prefix=no 15567 library_names_spec='$libname${shared_ext} $libname.a' 15568 dynamic_linker='OS/2 ld.exe' 15569 shlibpath_var=LIBPATH 15570 ;; 15571 15572osf3* | osf4* | osf5*) 15573 version_type=osf 15574 need_lib_prefix=no 15575 need_version=no 15576 soname_spec='${libname}${release}${shared_ext}$major' 15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15578 shlibpath_var=LD_LIBRARY_PATH 15579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15581 ;; 15582 15583rdos*) 15584 dynamic_linker=no 15585 ;; 15586 15587solaris*) 15588 version_type=linux # correct to gnu/linux during the next big refactor 15589 need_lib_prefix=no 15590 need_version=no 15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15592 soname_spec='${libname}${release}${shared_ext}$major' 15593 shlibpath_var=LD_LIBRARY_PATH 15594 shlibpath_overrides_runpath=yes 15595 hardcode_into_libs=yes 15596 # ldd complains unless libraries are executable 15597 postinstall_cmds='chmod +x $lib' 15598 ;; 15599 15600sunos4*) 15601 version_type=sunos 15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15604 shlibpath_var=LD_LIBRARY_PATH 15605 shlibpath_overrides_runpath=yes 15606 if test "$with_gnu_ld" = yes; then 15607 need_lib_prefix=no 15608 fi 15609 need_version=yes 15610 ;; 15611 15612sysv4 | sysv4.3*) 15613 version_type=linux # correct to gnu/linux during the next big refactor 15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15615 soname_spec='${libname}${release}${shared_ext}$major' 15616 shlibpath_var=LD_LIBRARY_PATH 15617 case $host_vendor in 15618 sni) 15619 shlibpath_overrides_runpath=no 15620 need_lib_prefix=no 15621 runpath_var=LD_RUN_PATH 15622 ;; 15623 siemens) 15624 need_lib_prefix=no 15625 ;; 15626 motorola) 15627 need_lib_prefix=no 15628 need_version=no 15629 shlibpath_overrides_runpath=no 15630 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15631 ;; 15632 esac 15633 ;; 15634 15635sysv4*MP*) 15636 if test -d /usr/nec ;then 15637 version_type=linux # correct to gnu/linux during the next big refactor 15638 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15639 soname_spec='$libname${shared_ext}.$major' 15640 shlibpath_var=LD_LIBRARY_PATH 15641 fi 15642 ;; 15643 15644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15645 version_type=freebsd-elf 15646 need_lib_prefix=no 15647 need_version=no 15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15649 soname_spec='${libname}${release}${shared_ext}$major' 15650 shlibpath_var=LD_LIBRARY_PATH 15651 shlibpath_overrides_runpath=yes 15652 hardcode_into_libs=yes 15653 if test "$with_gnu_ld" = yes; then 15654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15655 else 15656 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15657 case $host_os in 15658 sco3.2v5*) 15659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15660 ;; 15661 esac 15662 fi 15663 sys_lib_dlsearch_path_spec='/usr/lib' 15664 ;; 15665 15666tpf*) 15667 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15668 version_type=linux # correct to gnu/linux during the next big refactor 15669 need_lib_prefix=no 15670 need_version=no 15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15672 shlibpath_var=LD_LIBRARY_PATH 15673 shlibpath_overrides_runpath=no 15674 hardcode_into_libs=yes 15675 ;; 15676 15677uts4*) 15678 version_type=linux # correct to gnu/linux during the next big refactor 15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15680 soname_spec='${libname}${release}${shared_ext}$major' 15681 shlibpath_var=LD_LIBRARY_PATH 15682 ;; 15683 15684*) 15685 dynamic_linker=no 15686 ;; 15687esac 15688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15689$as_echo "$dynamic_linker" >&6; } 15690test "$dynamic_linker" = no && can_build_shared=no 15691 15692variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15693if test "$GCC" = yes; then 15694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15695fi 15696 15697if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15698 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15699fi 15700if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15701 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15702fi 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15742$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15743hardcode_action_CXX= 15744if test -n "$hardcode_libdir_flag_spec_CXX" || 15745 test -n "$runpath_var_CXX" || 15746 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15747 15748 # We can hardcode non-existent directories. 15749 if test "$hardcode_direct_CXX" != no && 15750 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15751 # have to relink, otherwise we might link with an installed library 15752 # when we should be linking with a yet-to-be-installed one 15753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15754 test "$hardcode_minus_L_CXX" != no; then 15755 # Linking always hardcodes the temporary library directory. 15756 hardcode_action_CXX=relink 15757 else 15758 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15759 hardcode_action_CXX=immediate 15760 fi 15761else 15762 # We cannot hardcode anything, or else we can only hardcode existing 15763 # directories. 15764 hardcode_action_CXX=unsupported 15765fi 15766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15767$as_echo "$hardcode_action_CXX" >&6; } 15768 15769if test "$hardcode_action_CXX" = relink || 15770 test "$inherit_rpath_CXX" = yes; then 15771 # Fast installation is not supported 15772 enable_fast_install=no 15773elif test "$shlibpath_overrides_runpath" = yes || 15774 test "$enable_shared" = no; then 15775 # Fast installation is not necessary 15776 enable_fast_install=needless 15777fi 15778 15779 15780 15781 15782 15783 15784 15785 fi # test -n "$compiler" 15786 15787 CC=$lt_save_CC 15788 CFLAGS=$lt_save_CFLAGS 15789 LDCXX=$LD 15790 LD=$lt_save_LD 15791 GCC=$lt_save_GCC 15792 with_gnu_ld=$lt_save_with_gnu_ld 15793 lt_cv_path_LDCXX=$lt_cv_path_LD 15794 lt_cv_path_LD=$lt_save_path_LD 15795 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15796 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15797fi # test "$_lt_caught_CXX_error" != yes 15798 15799ac_ext=c 15800ac_cpp='$CPP $CPPFLAGS' 15801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15803ac_compiler_gnu=$ac_cv_c_compiler_gnu 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 ac_config_commands="$ac_config_commands libtool" 15820 15821 15822 15823 15824# Only expand once: 15825 15826 15827 15828 15829# Add configure option --enable-maintainer-mode which enables dependency 15830# checking and generation useful to package maintainers. This is made an 15831# option to avoid confusing end users. 15832 15833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 15834$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 15835 # Check whether --enable-maintainer-mode was given. 15836if test "${enable_maintainer_mode+set}" = set; then : 15837 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 15838else 15839 USE_MAINTAINER_MODE=no 15840fi 15841 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 15843$as_echo "$USE_MAINTAINER_MODE" >&6; } 15844 if test $USE_MAINTAINER_MODE = yes; then 15845 MAINTAINER_MODE_TRUE= 15846 MAINTAINER_MODE_FALSE='#' 15847else 15848 MAINTAINER_MODE_TRUE='#' 15849 MAINTAINER_MODE_FALSE= 15850fi 15851 15852 MAINT=$MAINTAINER_MODE_TRUE 15853 15854 15855 15856# If the C compiler supports the keyword inline, do nothing. Otherwise 15857# define inline to __inline__ or __inline if it accepts one of those, 15858# otherwise define inline to be empty. 15859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15860$as_echo_n "checking for inline... " >&6; } 15861if ${ac_cv_c_inline+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 ac_cv_c_inline=no 15865for ac_kw in inline __inline__ __inline; do 15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15867/* end confdefs.h. */ 15868#ifndef __cplusplus 15869typedef int foo_t; 15870static $ac_kw foo_t static_foo () {return 0; } 15871$ac_kw foo_t foo () {return 0; } 15872#endif 15873 15874_ACEOF 15875if ac_fn_c_try_compile "$LINENO"; then : 15876 ac_cv_c_inline=$ac_kw 15877fi 15878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15879 test "$ac_cv_c_inline" != no && break 15880done 15881 15882fi 15883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15884$as_echo "$ac_cv_c_inline" >&6; } 15885 15886case $ac_cv_c_inline in 15887 inline | yes) ;; 15888 *) 15889 case $ac_cv_c_inline in 15890 no) ac_val=;; 15891 *) ac_val=$ac_cv_c_inline;; 15892 esac 15893 cat >>confdefs.h <<_ACEOF 15894#ifndef __cplusplus 15895#define inline $ac_val 15896#endif 15897_ACEOF 15898 ;; 15899esac 15900 15901 15902 15903# Check if the C compiler supports the "visibility" function attribute 15904# If supported, defines HAVE_FUNC_ATTRIBUTE_VISIBILITY 15905 15906 15907 15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5 15909$as_echo_n "checking for __attribute__((visibility))... " >&6; } 15910if ${ax_cv_have_func_attribute_visibility+:} false; then : 15911 $as_echo_n "(cached) " >&6 15912else 15913 15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15915/* end confdefs.h. */ 15916 15917 15918 int foo_def( void ) __attribute__((visibility("default"))); 15919 int foo_hid( void ) __attribute__((visibility("hidden"))); 15920 15921int 15922main () 15923{ 15924 15925 ; 15926 return 0; 15927} 15928 15929_ACEOF 15930if ac_fn_c_try_link "$LINENO"; then : 15931 if test -s conftest.err; then : 15932 ax_cv_have_func_attribute_visibility=no 15933else 15934 ax_cv_have_func_attribute_visibility=yes 15935fi 15936else 15937 ax_cv_have_func_attribute_visibility=no 15938fi 15939rm -f core conftest.err conftest.$ac_objext \ 15940 conftest$ac_exeext conftest.$ac_ext 15941 15942fi 15943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5 15944$as_echo "$ax_cv_have_func_attribute_visibility" >&6; } 15945 15946 if test yes = $ax_cv_have_func_attribute_visibility; then : 15947 15948cat >>confdefs.h <<_ACEOF 15949#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1 15950_ACEOF 15951 15952fi 15953 15954 15955 15956 15957# Check if the compiler supports "-fvisibility=hidden" and if yes, add it to CFLAGS 15958# This means that symbols that are not marked explicitly for export (CMSAPI) 15959# will not be reachable in the shared library. 15960 15961 15962 15963 15964for flag in "-fvisibility=hidden"; do 15965 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 15966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 15967$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 15968if eval \${$as_CACHEVAR+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 15972 ax_check_save_flags=$CFLAGS 15973 CFLAGS="$CFLAGS $flag" 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975/* end confdefs.h. */ 15976 15977int 15978main () 15979{ 15980 15981 ; 15982 return 0; 15983} 15984_ACEOF 15985if ac_fn_c_try_compile "$LINENO"; then : 15986 eval "$as_CACHEVAR=yes" 15987else 15988 eval "$as_CACHEVAR=no" 15989fi 15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15991 CFLAGS=$ax_check_save_flags 15992fi 15993eval ac_res=\$$as_CACHEVAR 15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15995$as_echo "$ac_res" >&6; } 15996if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 15997 15998if ${CFLAGS+:} false; then : 15999 16000 case " $CFLAGS " in #( 16001 *" $flag "*) : 16002 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 16003 (: CFLAGS already contains $flag) 2>&5 16004 ac_status=$? 16005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16006 test $ac_status = 0; } ;; #( 16007 *) : 16008 16009 as_fn_append CFLAGS " $flag" 16010 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 16011 (: CFLAGS="$CFLAGS") 2>&5 16012 ac_status=$? 16013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16014 test $ac_status = 0; } 16015 ;; 16016esac 16017 16018else 16019 16020 CFLAGS=$flag 16021 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 16022 (: CFLAGS="$CFLAGS") 2>&5 16023 ac_status=$? 16024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16025 test $ac_status = 0; } 16026 16027fi 16028 16029else 16030 : 16031fi 16032 16033done 16034 16035 16036# If words are stored with the most significant byte first (like 16037# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16039$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16040if ${ac_cv_c_bigendian+:} false; then : 16041 $as_echo_n "(cached) " >&6 16042else 16043 ac_cv_c_bigendian=unknown 16044 # See if we're dealing with a universal compiler. 16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16046/* end confdefs.h. */ 16047#ifndef __APPLE_CC__ 16048 not a universal capable compiler 16049 #endif 16050 typedef int dummy; 16051 16052_ACEOF 16053if ac_fn_c_try_compile "$LINENO"; then : 16054 16055 # Check for potential -arch flags. It is not universal unless 16056 # there are at least two -arch flags with different values. 16057 ac_arch= 16058 ac_prev= 16059 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16060 if test -n "$ac_prev"; then 16061 case $ac_word in 16062 i?86 | x86_64 | ppc | ppc64) 16063 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16064 ac_arch=$ac_word 16065 else 16066 ac_cv_c_bigendian=universal 16067 break 16068 fi 16069 ;; 16070 esac 16071 ac_prev= 16072 elif test "x$ac_word" = "x-arch"; then 16073 ac_prev=arch 16074 fi 16075 done 16076fi 16077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16078 if test $ac_cv_c_bigendian = unknown; then 16079 # See if sys/param.h defines the BYTE_ORDER macro. 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082#include <sys/types.h> 16083 #include <sys/param.h> 16084 16085int 16086main () 16087{ 16088#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16089 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16090 && LITTLE_ENDIAN) 16091 bogus endian macros 16092 #endif 16093 16094 ; 16095 return 0; 16096} 16097_ACEOF 16098if ac_fn_c_try_compile "$LINENO"; then : 16099 # It does; now see whether it defined to BIG_ENDIAN or not. 16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16101/* end confdefs.h. */ 16102#include <sys/types.h> 16103 #include <sys/param.h> 16104 16105int 16106main () 16107{ 16108#if BYTE_ORDER != BIG_ENDIAN 16109 not big endian 16110 #endif 16111 16112 ; 16113 return 0; 16114} 16115_ACEOF 16116if ac_fn_c_try_compile "$LINENO"; then : 16117 ac_cv_c_bigendian=yes 16118else 16119 ac_cv_c_bigendian=no 16120fi 16121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16122fi 16123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16124 fi 16125 if test $ac_cv_c_bigendian = unknown; then 16126 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16128/* end confdefs.h. */ 16129#include <limits.h> 16130 16131int 16132main () 16133{ 16134#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16135 bogus endian macros 16136 #endif 16137 16138 ; 16139 return 0; 16140} 16141_ACEOF 16142if ac_fn_c_try_compile "$LINENO"; then : 16143 # It does; now see whether it defined to _BIG_ENDIAN or not. 16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16145/* end confdefs.h. */ 16146#include <limits.h> 16147 16148int 16149main () 16150{ 16151#ifndef _BIG_ENDIAN 16152 not big endian 16153 #endif 16154 16155 ; 16156 return 0; 16157} 16158_ACEOF 16159if ac_fn_c_try_compile "$LINENO"; then : 16160 ac_cv_c_bigendian=yes 16161else 16162 ac_cv_c_bigendian=no 16163fi 16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16165fi 16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16167 fi 16168 if test $ac_cv_c_bigendian = unknown; then 16169 # Compile a test program. 16170 if test "$cross_compiling" = yes; then : 16171 # Try to guess by grepping values from an object file. 16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16173/* end confdefs.h. */ 16174short int ascii_mm[] = 16175 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16176 short int ascii_ii[] = 16177 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16178 int use_ascii (int i) { 16179 return ascii_mm[i] + ascii_ii[i]; 16180 } 16181 short int ebcdic_ii[] = 16182 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16183 short int ebcdic_mm[] = 16184 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16185 int use_ebcdic (int i) { 16186 return ebcdic_mm[i] + ebcdic_ii[i]; 16187 } 16188 extern int foo; 16189 16190int 16191main () 16192{ 16193return use_ascii (foo) == use_ebcdic (foo); 16194 ; 16195 return 0; 16196} 16197_ACEOF 16198if ac_fn_c_try_compile "$LINENO"; then : 16199 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16200 ac_cv_c_bigendian=yes 16201 fi 16202 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16203 if test "$ac_cv_c_bigendian" = unknown; then 16204 ac_cv_c_bigendian=no 16205 else 16206 # finding both strings is unlikely to happen, but who knows? 16207 ac_cv_c_bigendian=unknown 16208 fi 16209 fi 16210fi 16211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16212else 16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16214/* end confdefs.h. */ 16215$ac_includes_default 16216int 16217main () 16218{ 16219 16220 /* Are we little or big endian? From Harbison&Steele. */ 16221 union 16222 { 16223 long int l; 16224 char c[sizeof (long int)]; 16225 } u; 16226 u.l = 1; 16227 return u.c[sizeof (long int) - 1] == 1; 16228 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233if ac_fn_c_try_run "$LINENO"; then : 16234 ac_cv_c_bigendian=no 16235else 16236 ac_cv_c_bigendian=yes 16237fi 16238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16239 conftest.$ac_objext conftest.beam conftest.$ac_ext 16240fi 16241 16242 fi 16243fi 16244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16245$as_echo "$ac_cv_c_bigendian" >&6; } 16246 case $ac_cv_c_bigendian in #( 16247 yes) 16248 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16249;; #( 16250 no) 16251 ;; #( 16252 universal) 16253 16254$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16255 16256 ;; #( 16257 *) 16258 as_fn_error $? "unknown endianness 16259 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16260 esac 16261 16262 16263# Point to JPEG installed in DIR or disable JPEG with --without-jpeg. 16264 16265# Check whether --with-jpeg was given. 16266if test "${with_jpeg+set}" = set; then : 16267 withval=$with_jpeg; 16268 if test "x$withval" = "xno" ; then 16269 with_jpeg='no' 16270 else 16271 if test "x$withval" != "xyes" ; then 16272 with_jpeg=$withval 16273 JPEG_DIR=$withval 16274 CPPFLAGS="$CPPFLAGS -I$JPEG_DIR/include" 16275 LDFLAGS="$LDFLAGS -L$JPEG_DIR/lib" 16276 fi 16277 with_jpeg='yes' 16278 fi 16279 16280else 16281 with_jpeg='yes' 16282fi 16283 16284 16285# Point to TIFF installed in DIR or disable TIFF with --without-tiff. 16286 16287# Check whether --with-tiff was given. 16288if test "${with_tiff+set}" = set; then : 16289 withval=$with_tiff; 16290 if test "x$withval" = "xno" ; then 16291 with_tiff='no' 16292 else 16293 if test "x$withval" != "xyes" ; then 16294 with_tiff=$withval 16295 TIFF_DIR=$withval 16296 CPPFLAGS="$CPPFLAGS -I$TIFF_DIR/include" 16297 LDFLAGS="$LDFLAGS -L$TIFF_DIR/lib" 16298 fi 16299 with_tiff='yes' 16300 fi 16301 16302else 16303 with_tiff='yes' 16304fi 16305 16306 16307# Disable ZLIB 16308 16309# Check whether --with-zlib was given. 16310if test "${with_zlib+set}" = set; then : 16311 withval=$with_zlib; with_zlib=$withval 16312else 16313 with_zlib='yes' 16314fi 16315 16316 16317# 16318# Determine POSIX threads settings 16319# 16320# Enable support for POSIX thread APIs 16321 16322# Check whether --with-threads was given. 16323if test "${with_threads+set}" = set; then : 16324 withval=$with_threads; with_threads=$withval 16325else 16326 with_threads='yes' 16327fi 16328 16329 16330have_threads=no 16331if test "$with_threads" != 'no' 16332then 16333 16334 16335 16336 16337ac_ext=c 16338ac_cpp='$CPP $CPPFLAGS' 16339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16341ac_compiler_gnu=$ac_cv_c_compiler_gnu 16342 16343acx_pthread_ok=no 16344 16345# We used to check for pthread.h first, but this fails if pthread.h 16346# requires special compiler flags (e.g. on True64 or Sequent). 16347# It gets checked for in the link test anyway. 16348 16349# First of all, check if the user has set any of the PTHREAD_LIBS, 16350# etcetera environment variables, and if threads linking works using 16351# them: 16352if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16353 save_CFLAGS="$CFLAGS" 16354 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16355 save_LIBS="$LIBS" 16356 LIBS="$PTHREAD_LIBS $LIBS" 16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16358$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16360/* end confdefs.h. */ 16361 16362/* Override any GCC internal prototype to avoid an error. 16363 Use char because int might match the return type of a GCC 16364 builtin and then its argument prototype would still apply. */ 16365#ifdef __cplusplus 16366extern "C" 16367#endif 16368char pthread_join (); 16369int 16370main () 16371{ 16372return pthread_join (); 16373 ; 16374 return 0; 16375} 16376_ACEOF 16377if ac_fn_c_try_link "$LINENO"; then : 16378 acx_pthread_ok=yes 16379fi 16380rm -f core conftest.err conftest.$ac_objext \ 16381 conftest$ac_exeext conftest.$ac_ext 16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 16383$as_echo "$acx_pthread_ok" >&6; } 16384 if test x"$acx_pthread_ok" = xno; then 16385 PTHREAD_LIBS="" 16386 PTHREAD_CFLAGS="" 16387 fi 16388 LIBS="$save_LIBS" 16389 CFLAGS="$save_CFLAGS" 16390fi 16391 16392# We must check for the threads library under a number of different 16393# names; the ordering is very important because some systems 16394# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16395# libraries is broken (non-POSIX). 16396 16397# Create a list of thread flags to try. Items starting with a "-" are 16398# C compiler flags, and other items are library names, except for "none" 16399# which indicates that we try without any flags at all, and "pthread-config" 16400# which is a program returning the flags for the Pth emulation library. 16401 16402acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config" 16403 16404# The ordering *is* (sometimes) important. Some notes on the 16405# individual items follow: 16406 16407# pthreads: AIX (must check this before -lpthread) 16408# none: in case threads are in libc; should be tried before -Kthread and 16409# other compiler flags to prevent continual compiler warnings 16410# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16411# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16412# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16413# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16414# -pthreads: Solaris/gcc 16415# -mthreads: Mingw32/gcc, Lynx/gcc 16416# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16417# doesn't hurt to check since this sometimes defines pthreads too; 16418# also defines -D_REENTRANT) 16419# ... -mt is also the pthreads flag for HP/aCC 16420# pthread: Linux, etcetera 16421# --thread-safe: KAI C++ 16422# pthread-config: use pthread-config program (for GNU Pth library) 16423 16424case "${host_cpu}-${host_os}" in 16425 *solaris*) 16426 16427 # On Solaris (at least, for some versions), libc contains stubbed 16428 # (non-functional) versions of the pthreads routines, so link-based 16429 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16430 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16431 # a function called by this macro, so we could check for that, but 16432 # who knows whether they'll stub that too in a future libc.) So, 16433 # we'll just look for -pthreads and -lpthread first: 16434 16435 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 16436 ;; 16437 16438 # The HP-UX compiler just warns about options it does not understand 16439 # but it needs -mt. 16440 *-hpux*) 16441 acx_pthread_flags="-mt $acx_pthread_flags" 16442 ;; 16443esac 16444 16445if test x"$acx_pthread_ok" = xno; then 16446for flag in $acx_pthread_flags; do 16447 16448 case $flag in 16449 none) 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16451$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16452 ;; 16453 16454 -*) 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 16456$as_echo_n "checking whether pthreads work with $flag... " >&6; } 16457 PTHREAD_CFLAGS="$flag" 16458 ;; 16459 16460 pthread-config) 16461 # Extract the first word of "pthread-config", so it can be a program name with args. 16462set dummy pthread-config; ac_word=$2 16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16464$as_echo_n "checking for $ac_word... " >&6; } 16465if ${ac_cv_prog_acx_pthread_config+:} false; then : 16466 $as_echo_n "(cached) " >&6 16467else 16468 if test -n "$acx_pthread_config"; then 16469 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 16470else 16471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16472for as_dir in $PATH 16473do 16474 IFS=$as_save_IFS 16475 test -z "$as_dir" && as_dir=. 16476 for ac_exec_ext in '' $ac_executable_extensions; do 16477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16478 ac_cv_prog_acx_pthread_config="yes" 16479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16480 break 2 16481 fi 16482done 16483 done 16484IFS=$as_save_IFS 16485 16486 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 16487fi 16488fi 16489acx_pthread_config=$ac_cv_prog_acx_pthread_config 16490if test -n "$acx_pthread_config"; then 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 16492$as_echo "$acx_pthread_config" >&6; } 16493else 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16495$as_echo "no" >&6; } 16496fi 16497 16498 16499 if test x"$acx_pthread_config" = xno; then continue; fi 16500 PTHREAD_CFLAGS="`pthread-config --cflags`" 16501 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16502 ;; 16503 16504 *) 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 16506$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 16507 PTHREAD_LIBS="-l$flag" 16508 ;; 16509 esac 16510 16511 save_LIBS="$LIBS" 16512 save_CFLAGS="$CFLAGS" 16513 LIBS="$PTHREAD_LIBS $LIBS" 16514 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16515 16516 # Check for various functions. We must include pthread.h, 16517 # since some functions may be macros. (On the Sequent, we 16518 # need a special flag -Kthread to make this header compile.) 16519 # We check for pthread_join because it is in -lpthread on IRIX 16520 # while pthread_create is in libc. We check for pthread_attr_init 16521 # due to DEC craziness with -lpthreads. We check for 16522 # pthread_cleanup_push because it is one of the few pthread 16523 # functions on Solaris that doesn't have a non-functional libc stub. 16524 # We try pthread_create on general principles. 16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16526/* end confdefs.h. */ 16527#include <pthread.h> 16528int 16529main () 16530{ 16531pthread_t th; pthread_join(th, 0); 16532 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16533 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16534 ; 16535 return 0; 16536} 16537_ACEOF 16538if ac_fn_c_try_link "$LINENO"; then : 16539 acx_pthread_ok=yes 16540fi 16541rm -f core conftest.err conftest.$ac_objext \ 16542 conftest$ac_exeext conftest.$ac_ext 16543 16544 LIBS="$save_LIBS" 16545 CFLAGS="$save_CFLAGS" 16546 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 16548$as_echo "$acx_pthread_ok" >&6; } 16549 if test "x$acx_pthread_ok" = xyes; then 16550 break; 16551 fi 16552 16553 PTHREAD_LIBS="" 16554 PTHREAD_CFLAGS="" 16555done 16556fi 16557 16558# Various other checks: 16559if test "x$acx_pthread_ok" = xyes; then 16560 save_LIBS="$LIBS" 16561 LIBS="$PTHREAD_LIBS $LIBS" 16562 save_CFLAGS="$CFLAGS" 16563 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16564 16565 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16567$as_echo_n "checking for joinable pthread attribute... " >&6; } 16568 attr_name=unknown 16569 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16571/* end confdefs.h. */ 16572#include <pthread.h> 16573int 16574main () 16575{ 16576int attr=$attr; return attr; 16577 ; 16578 return 0; 16579} 16580_ACEOF 16581if ac_fn_c_try_link "$LINENO"; then : 16582 attr_name=$attr; break 16583fi 16584rm -f core conftest.err conftest.$ac_objext \ 16585 conftest$ac_exeext conftest.$ac_ext 16586 done 16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 16588$as_echo "$attr_name" >&6; } 16589 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16590 16591cat >>confdefs.h <<_ACEOF 16592#define PTHREAD_CREATE_JOINABLE $attr_name 16593_ACEOF 16594 16595 fi 16596 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 16598$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 16599 flag=no 16600 case "${host_cpu}-${host_os}" in 16601 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 16602 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 16603 esac 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 16605$as_echo "${flag}" >&6; } 16606 if test "x$flag" != xno; then 16607 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16608 fi 16609 16610 LIBS="$save_LIBS" 16611 CFLAGS="$save_CFLAGS" 16612 16613 # More AIX lossage: must compile with xlc_r or cc_r 16614 case "${host_os}" in 16615 aix* ) 16616 if test x"$GCC" != xyes; then 16617 case "$CC" in 16618 *xlc ) 16619 # Extract the first word of "xlc_r", so it can be a program name with args. 16620set dummy xlc_r; ac_word=$2 16621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16622$as_echo_n "checking for $ac_word... " >&6; } 16623if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16624 $as_echo_n "(cached) " >&6 16625else 16626 if test -n "$PTHREAD_CC"; then 16627 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16628else 16629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16630for as_dir in $PATH 16631do 16632 IFS=$as_save_IFS 16633 test -z "$as_dir" && as_dir=. 16634 for ac_exec_ext in '' $ac_executable_extensions; do 16635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16636 ac_cv_prog_PTHREAD_CC="xlc_r" 16637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16638 break 2 16639 fi 16640done 16641 done 16642IFS=$as_save_IFS 16643 16644 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 16645fi 16646fi 16647PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16648if test -n "$PTHREAD_CC"; then 16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16650$as_echo "$PTHREAD_CC" >&6; } 16651else 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16653$as_echo "no" >&6; } 16654fi 16655 16656 ;; 16657 *cc ) 16658 # Extract the first word of "cc_r", so it can be a program name with args. 16659set dummy cc_r; ac_word=$2 16660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16661$as_echo_n "checking for $ac_word... " >&6; } 16662if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16663 $as_echo_n "(cached) " >&6 16664else 16665 if test -n "$PTHREAD_CC"; then 16666 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16667else 16668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16669for as_dir in $PATH 16670do 16671 IFS=$as_save_IFS 16672 test -z "$as_dir" && as_dir=. 16673 for ac_exec_ext in '' $ac_executable_extensions; do 16674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16675 ac_cv_prog_PTHREAD_CC="cc_r" 16676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16677 break 2 16678 fi 16679done 16680 done 16681IFS=$as_save_IFS 16682 16683 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 16684fi 16685fi 16686PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16687if test -n "$PTHREAD_CC"; then 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16689$as_echo "$PTHREAD_CC" >&6; } 16690else 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16692$as_echo "no" >&6; } 16693fi 16694 16695 ;; 16696 esac 16697 fi 16698 case "$CXX" in 16699 *xlC ) 16700 # Extract the first word of "xlC_r", so it can be a program name with args. 16701set dummy xlC_r; ac_word=$2 16702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16703$as_echo_n "checking for $ac_word... " >&6; } 16704if ${ac_cv_prog_PTHREAD_CXX+:} false; then : 16705 $as_echo_n "(cached) " >&6 16706else 16707 if test -n "$PTHREAD_CXX"; then 16708 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 16709else 16710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16711for as_dir in $PATH 16712do 16713 IFS=$as_save_IFS 16714 test -z "$as_dir" && as_dir=. 16715 for ac_exec_ext in '' $ac_executable_extensions; do 16716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16717 ac_cv_prog_PTHREAD_CXX="xlC_r" 16718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16719 break 2 16720 fi 16721done 16722 done 16723IFS=$as_save_IFS 16724 16725 test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}" 16726fi 16727fi 16728PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 16729if test -n "$PTHREAD_CXX"; then 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 16731$as_echo "$PTHREAD_CXX" >&6; } 16732else 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16734$as_echo "no" >&6; } 16735fi 16736 16737 ;; 16738 esac 16739 ;; 16740 esac 16741fi 16742 16743if test "${PTHREAD_CC}x" = "x" 16744then 16745 PTHREAD_CC="$CC" 16746fi 16747if test "${PTHREAD_CXX}x" = "x" 16748then 16749 PTHREAD_CXX="$CXX" 16750fi 16751 16752 16753 16754 16755 16756 16757# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16758if test x"$acx_pthread_ok" = xyes; then 16759 16760$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 16761 16762 : 16763else 16764 acx_pthread_ok=no 16765 16766fi 16767ac_ext=c 16768ac_cpp='$CPP $CPPFLAGS' 16769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16771ac_compiler_gnu=$ac_cv_c_compiler_gnu 16772 16773 16774 16775 if test "$acx_pthread_ok" = yes 16776 then 16777 have_threads=yes 16778 16779 DEF_THREAD="$PTHREAD_CFLAGS" 16780 CFLAGS="$CFLAGS $DEF_THREAD" 16781 CXXFLAGS="$CXXFLAGS $DEF_THREAD" 16782 16783 if test "$CC" != "$PTHREAD_CC" 16784 then 16785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 16786$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} 16787 CC="$PTHREAD_CC" 16788 fi 16789 if test "$CXX" != "$PTHREAD_CXX" 16790 then 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5 16792$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;} 16793 CXX="$PTHREAD_CXX" 16794 fi 16795 fi 16796fi 16797 16798 16799# 16800# Find math library 16801# 16802LIB_MATH='' 16803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 16804$as_echo_n "checking for sqrt in -lm... " >&6; } 16805if ${ac_cv_lib_m_sqrt+:} false; then : 16806 $as_echo_n "(cached) " >&6 16807else 16808 ac_check_lib_save_LIBS=$LIBS 16809LIBS="-lm $LIBS" 16810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16811/* end confdefs.h. */ 16812 16813/* Override any GCC internal prototype to avoid an error. 16814 Use char because int might match the return type of a GCC 16815 builtin and then its argument prototype would still apply. */ 16816#ifdef __cplusplus 16817extern "C" 16818#endif 16819char sqrt (); 16820int 16821main () 16822{ 16823return sqrt (); 16824 ; 16825 return 0; 16826} 16827_ACEOF 16828if ac_fn_c_try_link "$LINENO"; then : 16829 ac_cv_lib_m_sqrt=yes 16830else 16831 ac_cv_lib_m_sqrt=no 16832fi 16833rm -f core conftest.err conftest.$ac_objext \ 16834 conftest$ac_exeext conftest.$ac_ext 16835LIBS=$ac_check_lib_save_LIBS 16836fi 16837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16838$as_echo "$ac_cv_lib_m_sqrt" >&6; } 16839if test "x$ac_cv_lib_m_sqrt" = xyes; then : 16840 LIB_MATH="-lm" 16841fi 16842 16843LIBS="$LIB_MATH $LIBS" 16844 16845 16846# 16847# Find Posix threads library 16848# 16849LIB_THREAD='' 16850if test "$with_threads" != 'no' && test "$have_threads" = 'yes' 16851then 16852 for lib in pthread pthreads 16853 do 16854 if test "x$PTHREAD_LIBS" = "x" ; then 16855 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_pthread_mutex_lock" | $as_tr_sh` 16856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -l$lib" >&5 16857$as_echo_n "checking for pthread_mutex_lock in -l$lib... " >&6; } 16858if eval \${$as_ac_Lib+:} false; then : 16859 $as_echo_n "(cached) " >&6 16860else 16861 ac_check_lib_save_LIBS=$LIBS 16862LIBS="-l$lib $LIBS" 16863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16864/* end confdefs.h. */ 16865 16866/* Override any GCC internal prototype to avoid an error. 16867 Use char because int might match the return type of a GCC 16868 builtin and then its argument prototype would still apply. */ 16869#ifdef __cplusplus 16870extern "C" 16871#endif 16872char pthread_mutex_lock (); 16873int 16874main () 16875{ 16876return pthread_mutex_lock (); 16877 ; 16878 return 0; 16879} 16880_ACEOF 16881if ac_fn_c_try_link "$LINENO"; then : 16882 eval "$as_ac_Lib=yes" 16883else 16884 eval "$as_ac_Lib=no" 16885fi 16886rm -f core conftest.err conftest.$ac_objext \ 16887 conftest$ac_exeext conftest.$ac_ext 16888LIBS=$ac_check_lib_save_LIBS 16889fi 16890eval ac_res=\$$as_ac_Lib 16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16892$as_echo "$ac_res" >&6; } 16893if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16894 PTHREAD_LIBS=-l$lib 16895fi 16896 16897 fi 16898 done 16899 16900 LIB_THREAD="$PTHREAD_LIBS" 16901 LIBS="$LIBS $LIB_THREAD" 16902 16903$as_echo "#define HasTHREADS 1" >>confdefs.h 16904 16905else 16906 16907$as_echo "#define HasTHREADS 0" >>confdefs.h 16908 16909fi 16910 16911 16912# 16913# Check for JPEG 16914# 16915have_jpeg='no' 16916LIB_JPEG='' 16917if test ! "$with_jpeg" = 'no' 16918then 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support" >&5 16920$as_echo_n "checking for JPEG support... " >&6; } 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16922$as_echo "" >&6; } 16923 failed=0; 16924 passed=0; 16925 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" 16926if test "x$ac_cv_header_jconfig_h" = xyes; then : 16927 passed=`expr $passed + 1` 16928else 16929 failed=`expr $failed + 1` 16930fi 16931 16932 16933 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 16934if test "x$ac_cv_header_jerror_h" = xyes; then : 16935 passed=`expr $passed + 1` 16936else 16937 failed=`expr $failed + 1` 16938fi 16939 16940 16941 ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "#include <jconfig.h> 16942" 16943if test "x$ac_cv_header_jmorecfg_h" = xyes; then : 16944 passed=`expr $passed + 1` 16945else 16946 failed=`expr $failed + 1` 16947fi 16948 16949 16950 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 16951if test "x$ac_cv_header_jpeglib_h" = xyes; then : 16952 passed=`expr $passed + 1` 16953else 16954 failed=`expr $failed + 1` 16955fi 16956 16957 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 16959$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } 16960if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : 16961 $as_echo_n "(cached) " >&6 16962else 16963 ac_check_lib_save_LIBS=$LIBS 16964LIBS="-ljpeg $LIBS" 16965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16966/* end confdefs.h. */ 16967 16968/* Override any GCC internal prototype to avoid an error. 16969 Use char because int might match the return type of a GCC 16970 builtin and then its argument prototype would still apply. */ 16971#ifdef __cplusplus 16972extern "C" 16973#endif 16974char jpeg_read_header (); 16975int 16976main () 16977{ 16978return jpeg_read_header (); 16979 ; 16980 return 0; 16981} 16982_ACEOF 16983if ac_fn_c_try_link "$LINENO"; then : 16984 ac_cv_lib_jpeg_jpeg_read_header=yes 16985else 16986 ac_cv_lib_jpeg_jpeg_read_header=no 16987fi 16988rm -f core conftest.err conftest.$ac_objext \ 16989 conftest$ac_exeext conftest.$ac_ext 16990LIBS=$ac_check_lib_save_LIBS 16991fi 16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 16993$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } 16994if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : 16995 passed=`expr $passed + 1` 16996else 16997 failed=`expr $failed + 1` 16998fi 16999 17000 17001# Test for compatible JPEG library 17002if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then 17003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 17004$as_echo_n "checking for JPEG library is version 6b or later... " >&6; } 17005if ${ac_cv_jpeg_version_ok+:} false; then : 17006 $as_echo_n "(cached) " >&6 17007else 17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17009/* end confdefs.h. */ 17010#include <stdio.h> 17011#include <stdlib.h> 17012#include <jpeglib.h> 17013 17014int 17015main () 17016{ 17017 17018#if JPEG_LIB_VERSION < 62 17019#error IJG JPEG library must be version 6b or newer! 17020#endif 17021return 0; 17022 17023 ; 17024 return 0; 17025} 17026_ACEOF 17027if ac_fn_c_try_compile "$LINENO"; then : 17028 ac_cv_jpeg_version_ok='yes' 17029else 17030 ac_cv_jpeg_version_ok='no' 17031fi 17032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17033fi 17034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 17035$as_echo "$ac_cv_jpeg_version_ok" >&6; } 17036if test "$ac_cv_jpeg_version_ok" = 'yes' ; then 17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17038$as_echo "yes" >&6; } 17039 passed=`expr $passed + 1` 17040else 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17042$as_echo "no" >&6; } 17043 failed=`expr $failed + 1` 17044fi 17045fi 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 17047$as_echo_n "checking if JPEG package is complete... " >&6; } 17048 if test $passed -gt 0 17049 then 17050 if test $failed -gt 0 17051 then 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 17053$as_echo "no -- some components failed test" >&6; } 17054 have_jpeg='no (failed tests)' 17055 else 17056 LIB_JPEG='-ljpeg' 17057 LIBS="$LIB_JPEG $LIBS" 17058 17059$as_echo "#define HasJPEG 1" >>confdefs.h 17060 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17062$as_echo "yes" >&6; } 17063 have_jpeg='yes' 17064 fi 17065 else 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17067$as_echo "no" >&6; } 17068 fi 17069fi 17070 if test "$have_jpeg" = 'yes'; then 17071 HasJPEG_TRUE= 17072 HasJPEG_FALSE='#' 17073else 17074 HasJPEG_TRUE='#' 17075 HasJPEG_FALSE= 17076fi 17077 17078 17079 17080# 17081# Check for ZLIB 17082# 17083have_zlib='no' 17084if test ! "$with_zlib" = 'no' || test ! "$with_tiff" = 'no' 17085then 17086 LIB_ZLIB='' 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5 17088$as_echo_n "checking for ZLIB support ... " >&6; } 17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17090$as_echo "" >&6; } 17091 failed=0; 17092 passed=0; 17093 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" 17094if test "x$ac_cv_header_zconf_h" = xyes; then : 17095 passed=`expr $passed + 1` 17096else 17097 failed=`expr $failed + 1` 17098fi 17099 17100 17101 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 17102if test "x$ac_cv_header_zlib_h" = xyes; then : 17103 passed=`expr $passed + 1` 17104else 17105 failed=`expr $failed + 1` 17106fi 17107 17108 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 17110$as_echo_n "checking for compress in -lz... " >&6; } 17111if ${ac_cv_lib_z_compress+:} false; then : 17112 $as_echo_n "(cached) " >&6 17113else 17114 ac_check_lib_save_LIBS=$LIBS 17115LIBS="-lz $LIBS" 17116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17117/* end confdefs.h. */ 17118 17119/* Override any GCC internal prototype to avoid an error. 17120 Use char because int might match the return type of a GCC 17121 builtin and then its argument prototype would still apply. */ 17122#ifdef __cplusplus 17123extern "C" 17124#endif 17125char compress (); 17126int 17127main () 17128{ 17129return compress (); 17130 ; 17131 return 0; 17132} 17133_ACEOF 17134if ac_fn_c_try_link "$LINENO"; then : 17135 ac_cv_lib_z_compress=yes 17136else 17137 ac_cv_lib_z_compress=no 17138fi 17139rm -f core conftest.err conftest.$ac_objext \ 17140 conftest$ac_exeext conftest.$ac_ext 17141LIBS=$ac_check_lib_save_LIBS 17142fi 17143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 17144$as_echo "$ac_cv_lib_z_compress" >&6; } 17145if test "x$ac_cv_lib_z_compress" = xyes; then : 17146 passed=`expr $passed + 1` 17147else 17148 failed=`expr $failed + 1` 17149fi 17150 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 17152$as_echo_n "checking for uncompress in -lz... " >&6; } 17153if ${ac_cv_lib_z_uncompress+:} false; then : 17154 $as_echo_n "(cached) " >&6 17155else 17156 ac_check_lib_save_LIBS=$LIBS 17157LIBS="-lz $LIBS" 17158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17159/* end confdefs.h. */ 17160 17161/* Override any GCC internal prototype to avoid an error. 17162 Use char because int might match the return type of a GCC 17163 builtin and then its argument prototype would still apply. */ 17164#ifdef __cplusplus 17165extern "C" 17166#endif 17167char uncompress (); 17168int 17169main () 17170{ 17171return uncompress (); 17172 ; 17173 return 0; 17174} 17175_ACEOF 17176if ac_fn_c_try_link "$LINENO"; then : 17177 ac_cv_lib_z_uncompress=yes 17178else 17179 ac_cv_lib_z_uncompress=no 17180fi 17181rm -f core conftest.err conftest.$ac_objext \ 17182 conftest$ac_exeext conftest.$ac_ext 17183LIBS=$ac_check_lib_save_LIBS 17184fi 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 17186$as_echo "$ac_cv_lib_z_uncompress" >&6; } 17187if test "x$ac_cv_lib_z_uncompress" = xyes; then : 17188 passed=`expr $passed + 1` 17189else 17190 failed=`expr $failed + 1` 17191fi 17192 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 17194$as_echo_n "checking for deflate in -lz... " >&6; } 17195if ${ac_cv_lib_z_deflate+:} false; then : 17196 $as_echo_n "(cached) " >&6 17197else 17198 ac_check_lib_save_LIBS=$LIBS 17199LIBS="-lz $LIBS" 17200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17201/* end confdefs.h. */ 17202 17203/* Override any GCC internal prototype to avoid an error. 17204 Use char because int might match the return type of a GCC 17205 builtin and then its argument prototype would still apply. */ 17206#ifdef __cplusplus 17207extern "C" 17208#endif 17209char deflate (); 17210int 17211main () 17212{ 17213return deflate (); 17214 ; 17215 return 0; 17216} 17217_ACEOF 17218if ac_fn_c_try_link "$LINENO"; then : 17219 ac_cv_lib_z_deflate=yes 17220else 17221 ac_cv_lib_z_deflate=no 17222fi 17223rm -f core conftest.err conftest.$ac_objext \ 17224 conftest$ac_exeext conftest.$ac_ext 17225LIBS=$ac_check_lib_save_LIBS 17226fi 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 17228$as_echo "$ac_cv_lib_z_deflate" >&6; } 17229if test "x$ac_cv_lib_z_deflate" = xyes; then : 17230 passed=`expr $passed + 1` 17231else 17232 failed=`expr $failed + 1` 17233fi 17234 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 17236$as_echo_n "checking for inflate in -lz... " >&6; } 17237if ${ac_cv_lib_z_inflate+:} false; then : 17238 $as_echo_n "(cached) " >&6 17239else 17240 ac_check_lib_save_LIBS=$LIBS 17241LIBS="-lz $LIBS" 17242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17243/* end confdefs.h. */ 17244 17245/* Override any GCC internal prototype to avoid an error. 17246 Use char because int might match the return type of a GCC 17247 builtin and then its argument prototype would still apply. */ 17248#ifdef __cplusplus 17249extern "C" 17250#endif 17251char inflate (); 17252int 17253main () 17254{ 17255return inflate (); 17256 ; 17257 return 0; 17258} 17259_ACEOF 17260if ac_fn_c_try_link "$LINENO"; then : 17261 ac_cv_lib_z_inflate=yes 17262else 17263 ac_cv_lib_z_inflate=no 17264fi 17265rm -f core conftest.err conftest.$ac_objext \ 17266 conftest$ac_exeext conftest.$ac_ext 17267LIBS=$ac_check_lib_save_LIBS 17268fi 17269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 17270$as_echo "$ac_cv_lib_z_inflate" >&6; } 17271if test "x$ac_cv_lib_z_inflate" = xyes; then : 17272 passed=`expr $passed + 1` 17273else 17274 failed=`expr $failed + 1` 17275fi 17276 17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 17278$as_echo_n "checking for gzseek in -lz... " >&6; } 17279if ${ac_cv_lib_z_gzseek+:} false; then : 17280 $as_echo_n "(cached) " >&6 17281else 17282 ac_check_lib_save_LIBS=$LIBS 17283LIBS="-lz $LIBS" 17284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17285/* end confdefs.h. */ 17286 17287/* Override any GCC internal prototype to avoid an error. 17288 Use char because int might match the return type of a GCC 17289 builtin and then its argument prototype would still apply. */ 17290#ifdef __cplusplus 17291extern "C" 17292#endif 17293char gzseek (); 17294int 17295main () 17296{ 17297return gzseek (); 17298 ; 17299 return 0; 17300} 17301_ACEOF 17302if ac_fn_c_try_link "$LINENO"; then : 17303 ac_cv_lib_z_gzseek=yes 17304else 17305 ac_cv_lib_z_gzseek=no 17306fi 17307rm -f core conftest.err conftest.$ac_objext \ 17308 conftest$ac_exeext conftest.$ac_ext 17309LIBS=$ac_check_lib_save_LIBS 17310fi 17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5 17312$as_echo "$ac_cv_lib_z_gzseek" >&6; } 17313if test "x$ac_cv_lib_z_gzseek" = xyes; then : 17314 passed=`expr $passed + 1` 17315else 17316 failed=`expr $failed + 1` 17317fi 17318 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 17320$as_echo_n "checking for gztell in -lz... " >&6; } 17321if ${ac_cv_lib_z_gztell+:} false; then : 17322 $as_echo_n "(cached) " >&6 17323else 17324 ac_check_lib_save_LIBS=$LIBS 17325LIBS="-lz $LIBS" 17326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17327/* end confdefs.h. */ 17328 17329/* Override any GCC internal prototype to avoid an error. 17330 Use char because int might match the return type of a GCC 17331 builtin and then its argument prototype would still apply. */ 17332#ifdef __cplusplus 17333extern "C" 17334#endif 17335char gztell (); 17336int 17337main () 17338{ 17339return gztell (); 17340 ; 17341 return 0; 17342} 17343_ACEOF 17344if ac_fn_c_try_link "$LINENO"; then : 17345 ac_cv_lib_z_gztell=yes 17346else 17347 ac_cv_lib_z_gztell=no 17348fi 17349rm -f core conftest.err conftest.$ac_objext \ 17350 conftest$ac_exeext conftest.$ac_ext 17351LIBS=$ac_check_lib_save_LIBS 17352fi 17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5 17354$as_echo "$ac_cv_lib_z_gztell" >&6; } 17355if test "x$ac_cv_lib_z_gztell" = xyes; then : 17356 passed=`expr $passed + 1` 17357else 17358 failed=`expr $failed + 1` 17359fi 17360 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5 17362$as_echo_n "checking if ZLIB package is complete... " >&6; } 17363 if test $passed -gt 0 17364 then 17365 if test $failed -gt 0 17366 then 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 17368$as_echo "no -- some components failed test" >&6; } 17369 have_zlib='no (failed tests)' 17370 else 17371 LIB_ZLIB='-lz' 17372 LIBS="$LIB_ZLIB $LIBS" 17373 17374$as_echo "#define HasZLIB 1" >>confdefs.h 17375 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17377$as_echo "yes" >&6; } 17378 have_zlib='yes' 17379 fi 17380 else 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17382$as_echo "no" >&6; } 17383 fi 17384fi 17385 if test "$have_zlib" = 'yes'; then 17386 HasZLIB_TRUE= 17387 HasZLIB_FALSE='#' 17388else 17389 HasZLIB_TRUE='#' 17390 HasZLIB_FALSE= 17391fi 17392 17393 17394 17395# 17396# Check for TIFF 17397# 17398have_tiff='no' 17399LIB_TIFF='' 17400if test ! "$with_tiff" = 'no' 17401then 17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support" >&5 17403$as_echo_n "checking for TIFF support... " >&6; } 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17405$as_echo "" >&6; } 17406 failed=0; 17407 passed=0; 17408 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" 17409if test "x$ac_cv_header_tiff_h" = xyes; then : 17410 passed=`expr $passed + 1` 17411else 17412 failed=`expr $failed + 1` 17413fi 17414 17415 17416 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 17417if test "x$ac_cv_header_tiffio_h" = xyes; then : 17418 passed=`expr $passed + 1` 17419else 17420 failed=`expr $failed + 1` 17421fi 17422 17423 17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 17425$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 17426if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : 17427 $as_echo_n "(cached) " >&6 17428else 17429 ac_check_lib_save_LIBS=$LIBS 17430LIBS="-ltiff $LIBS" 17431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17432/* end confdefs.h. */ 17433 17434/* Override any GCC internal prototype to avoid an error. 17435 Use char because int might match the return type of a GCC 17436 builtin and then its argument prototype would still apply. */ 17437#ifdef __cplusplus 17438extern "C" 17439#endif 17440char TIFFOpen (); 17441int 17442main () 17443{ 17444return TIFFOpen (); 17445 ; 17446 return 0; 17447} 17448_ACEOF 17449if ac_fn_c_try_link "$LINENO"; then : 17450 ac_cv_lib_tiff_TIFFOpen=yes 17451else 17452 ac_cv_lib_tiff_TIFFOpen=no 17453fi 17454rm -f core conftest.err conftest.$ac_objext \ 17455 conftest$ac_exeext conftest.$ac_ext 17456LIBS=$ac_check_lib_save_LIBS 17457fi 17458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 17459$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 17460if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : 17461 passed=`expr $passed + 1` 17462else 17463 failed=`expr $failed + 1` 17464fi 17465 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 17467$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 17468if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 17469 $as_echo_n "(cached) " >&6 17470else 17471 ac_check_lib_save_LIBS=$LIBS 17472LIBS="-ltiff $LIBS" 17473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475 17476/* Override any GCC internal prototype to avoid an error. 17477 Use char because int might match the return type of a GCC 17478 builtin and then its argument prototype would still apply. */ 17479#ifdef __cplusplus 17480extern "C" 17481#endif 17482char TIFFClientOpen (); 17483int 17484main () 17485{ 17486return TIFFClientOpen (); 17487 ; 17488 return 0; 17489} 17490_ACEOF 17491if ac_fn_c_try_link "$LINENO"; then : 17492 ac_cv_lib_tiff_TIFFClientOpen=yes 17493else 17494 ac_cv_lib_tiff_TIFFClientOpen=no 17495fi 17496rm -f core conftest.err conftest.$ac_objext \ 17497 conftest$ac_exeext conftest.$ac_ext 17498LIBS=$ac_check_lib_save_LIBS 17499fi 17500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 17501$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 17502if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 17503 passed=`expr $passed + 1` 17504else 17505 failed=`expr $failed + 1` 17506fi 17507 17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 17509$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } 17510if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : 17511 $as_echo_n "(cached) " >&6 17512else 17513 ac_check_lib_save_LIBS=$LIBS 17514LIBS="-ltiff $LIBS" 17515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17516/* end confdefs.h. */ 17517 17518/* Override any GCC internal prototype to avoid an error. 17519 Use char because int might match the return type of a GCC 17520 builtin and then its argument prototype would still apply. */ 17521#ifdef __cplusplus 17522extern "C" 17523#endif 17524char TIFFIsByteSwapped (); 17525int 17526main () 17527{ 17528return TIFFIsByteSwapped (); 17529 ; 17530 return 0; 17531} 17532_ACEOF 17533if ac_fn_c_try_link "$LINENO"; then : 17534 ac_cv_lib_tiff_TIFFIsByteSwapped=yes 17535else 17536 ac_cv_lib_tiff_TIFFIsByteSwapped=no 17537fi 17538rm -f core conftest.err conftest.$ac_objext \ 17539 conftest$ac_exeext conftest.$ac_ext 17540LIBS=$ac_check_lib_save_LIBS 17541fi 17542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 17543$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } 17544if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : 17545 passed=`expr $passed + 1` 17546else 17547 failed=`expr $failed + 1` 17548fi 17549 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 17551$as_echo_n "checking if TIFF package is complete... " >&6; } 17552 if test $passed -gt 0 17553 then 17554 if test $failed -gt 0 17555 then 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 17557$as_echo "no -- some components failed test" >&6; } 17558 have_tiff='no (failed tests)' 17559 else 17560 LIB_TIFF='-ltiff' 17561 LIBS="$LIB_TIFF $LIBS" 17562 17563$as_echo "#define HasTIFF 1" >>confdefs.h 17564 17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17566$as_echo "yes" >&6; } 17567 have_tiff='yes' 17568 for ac_header in tiffconf.h 17569do : 17570 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" 17571if test "x$ac_cv_header_tiffconf_h" = xyes; then : 17572 cat >>confdefs.h <<_ACEOF 17573#define HAVE_TIFFCONF_H 1 17574_ACEOF 17575 17576fi 17577 17578done 17579 17580 fi 17581 else 17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17583$as_echo "no" >&6; } 17584 fi 17585fi 17586 if test "$have_tiff" = 'yes'; then 17587 HasTIFF_TRUE= 17588 HasTIFF_FALSE='#' 17589else 17590 HasTIFF_TRUE='#' 17591 HasTIFF_FALSE= 17592fi 17593 17594 17595 17596 17597# Libraries that the LCMS2MT library depends on 17598LCMS_LIB_DEPLIBS="$LIB_MATH $LIB_THREAD" 17599LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'` 17600 17601 17602# Libraries that the jpegicc program depends on 17603JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH $LIB_THREAD" 17604JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'` 17605 17606 17607# Libraries that the tifficc program depends on 17608TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH $LIB_THREAD" 17609TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'` 17610 17611 17612LIBS='' 17613 17614# 17615# Perform substitutions 17616# 17617ac_config_files="$ac_config_files Makefile" 17618 17619ac_config_files="$ac_config_files lcms2mt.pc" 17620 17621ac_config_files="$ac_config_files include/Makefile" 17622 17623ac_config_files="$ac_config_files src/Makefile" 17624 17625ac_config_files="$ac_config_files utils/tificc/Makefile" 17626 17627ac_config_files="$ac_config_files utils/transicc/Makefile" 17628 17629ac_config_files="$ac_config_files utils/linkicc/Makefile" 17630 17631ac_config_files="$ac_config_files utils/jpgicc/Makefile" 17632 17633ac_config_files="$ac_config_files utils/psicc/Makefile" 17634 17635ac_config_files="$ac_config_files testbed/Makefile" 17636 17637cat >confcache <<\_ACEOF 17638# This file is a shell script that caches the results of configure 17639# tests run on this system so they can be shared between configure 17640# scripts and configure runs, see configure's option --config-cache. 17641# It is not useful on other systems. If it contains results you don't 17642# want to keep, you may remove or edit it. 17643# 17644# config.status only pays attention to the cache file if you give it 17645# the --recheck option to rerun configure. 17646# 17647# `ac_cv_env_foo' variables (set or unset) will be overridden when 17648# loading this file, other *unset* `ac_cv_foo' will be assigned the 17649# following values. 17650 17651_ACEOF 17652 17653# The following way of writing the cache mishandles newlines in values, 17654# but we know of no workaround that is simple, portable, and efficient. 17655# So, we kill variables containing newlines. 17656# Ultrix sh set writes to stderr and can't be redirected directly, 17657# and sets the high bit in the cache file unless we assign to the vars. 17658( 17659 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17660 eval ac_val=\$$ac_var 17661 case $ac_val in #( 17662 *${as_nl}*) 17663 case $ac_var in #( 17664 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17665$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17666 esac 17667 case $ac_var in #( 17668 _ | IFS | as_nl) ;; #( 17669 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17670 *) { eval $ac_var=; unset $ac_var;} ;; 17671 esac ;; 17672 esac 17673 done 17674 17675 (set) 2>&1 | 17676 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17677 *${as_nl}ac_space=\ *) 17678 # `set' does not quote correctly, so add quotes: double-quote 17679 # substitution turns \\\\ into \\, and sed turns \\ into \. 17680 sed -n \ 17681 "s/'/'\\\\''/g; 17682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17683 ;; #( 17684 *) 17685 # `set' quotes correctly as required by POSIX, so do not add quotes. 17686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17687 ;; 17688 esac | 17689 sort 17690) | 17691 sed ' 17692 /^ac_cv_env_/b end 17693 t clear 17694 :clear 17695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17696 t end 17697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17698 :end' >>confcache 17699if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17700 if test -w "$cache_file"; then 17701 if test "x$cache_file" != "x/dev/null"; then 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17703$as_echo "$as_me: updating cache $cache_file" >&6;} 17704 if test ! -f "$cache_file" || test -h "$cache_file"; then 17705 cat confcache >"$cache_file" 17706 else 17707 case $cache_file in #( 17708 */* | ?:*) 17709 mv -f confcache "$cache_file"$$ && 17710 mv -f "$cache_file"$$ "$cache_file" ;; #( 17711 *) 17712 mv -f confcache "$cache_file" ;; 17713 esac 17714 fi 17715 fi 17716 else 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17718$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17719 fi 17720fi 17721rm -f confcache 17722 17723test "x$prefix" = xNONE && prefix=$ac_default_prefix 17724# Let make expand exec_prefix. 17725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17726 17727# Transform confdefs.h into DEFS. 17728# Protect against shell expansion while executing Makefile rules. 17729# Protect against Makefile macro expansion. 17730# 17731# If the first sed substitution is executed (which looks for macros that 17732# take arguments), then branch to the quote section. Otherwise, 17733# look for a macro that doesn't take arguments. 17734ac_script=' 17735:mline 17736/\\$/{ 17737 N 17738 s,\\\n,, 17739 b mline 17740} 17741t clear 17742:clear 17743s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 17744t quote 17745s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 17746t quote 17747b any 17748:quote 17749s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 17750s/\[/\\&/g 17751s/\]/\\&/g 17752s/\$/$$/g 17753H 17754:any 17755${ 17756 g 17757 s/^\n// 17758 s/\n/ /g 17759 p 17760} 17761' 17762DEFS=`sed -n "$ac_script" confdefs.h` 17763 17764 17765ac_libobjs= 17766ac_ltlibobjs= 17767U= 17768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17769 # 1. Remove the extension, and $U if already installed. 17770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17773 # will be set to the directory where LIBOBJS objects are built. 17774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17776done 17777LIBOBJS=$ac_libobjs 17778 17779LTLIBOBJS=$ac_ltlibobjs 17780 17781 17782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17783$as_echo_n "checking that generated files are newer than configure... " >&6; } 17784 if test -n "$am_sleep_pid"; then 17785 # Hide warnings about reused PIDs. 17786 wait $am_sleep_pid 2>/dev/null 17787 fi 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17789$as_echo "done" >&6; } 17790 if test -n "$EXEEXT"; then 17791 am__EXEEXT_TRUE= 17792 am__EXEEXT_FALSE='#' 17793else 17794 am__EXEEXT_TRUE='#' 17795 am__EXEEXT_FALSE= 17796fi 17797 17798if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17799 as_fn_error $? "conditional \"AMDEP\" was never defined. 17800Usually this means the macro was only invoked conditionally." "$LINENO" 5 17801fi 17802if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17803 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17804Usually this means the macro was only invoked conditionally." "$LINENO" 5 17805fi 17806if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17807 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17808Usually this means the macro was only invoked conditionally." "$LINENO" 5 17809fi 17810if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17811 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17812Usually this means the macro was only invoked conditionally." "$LINENO" 5 17813fi 17814 17815if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then 17816 as_fn_error $? "conditional \"HasJPEG\" was never defined. 17817Usually this means the macro was only invoked conditionally." "$LINENO" 5 17818fi 17819if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then 17820 as_fn_error $? "conditional \"HasZLIB\" was never defined. 17821Usually this means the macro was only invoked conditionally." "$LINENO" 5 17822fi 17823if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then 17824 as_fn_error $? "conditional \"HasTIFF\" was never defined. 17825Usually this means the macro was only invoked conditionally." "$LINENO" 5 17826fi 17827 17828: "${CONFIG_STATUS=./config.status}" 17829ac_write_fail=0 17830ac_clean_files_save=$ac_clean_files 17831ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17832{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17833$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17834as_write_fail=0 17835cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17836#! $SHELL 17837# Generated by $as_me. 17838# Run this file to recreate the current configuration. 17839# Compiler output produced by configure, useful for debugging 17840# configure, is in config.log if it exists. 17841 17842debug=false 17843ac_cs_recheck=false 17844ac_cs_silent=false 17845 17846SHELL=\${CONFIG_SHELL-$SHELL} 17847export SHELL 17848_ASEOF 17849cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17850## -------------------- ## 17851## M4sh Initialization. ## 17852## -------------------- ## 17853 17854# Be more Bourne compatible 17855DUALCASE=1; export DUALCASE # for MKS sh 17856if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17857 emulate sh 17858 NULLCMD=: 17859 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17860 # is contrary to our usage. Disable this feature. 17861 alias -g '${1+"$@"}'='"$@"' 17862 setopt NO_GLOB_SUBST 17863else 17864 case `(set -o) 2>/dev/null` in #( 17865 *posix*) : 17866 set -o posix ;; #( 17867 *) : 17868 ;; 17869esac 17870fi 17871 17872 17873as_nl=' 17874' 17875export as_nl 17876# Printing a long string crashes Solaris 7 /usr/bin/printf. 17877as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17878as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17879as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17880# Prefer a ksh shell builtin over an external printf program on Solaris, 17881# but without wasting forks for bash or zsh. 17882if test -z "$BASH_VERSION$ZSH_VERSION" \ 17883 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17884 as_echo='print -r --' 17885 as_echo_n='print -rn --' 17886elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17887 as_echo='printf %s\n' 17888 as_echo_n='printf %s' 17889else 17890 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17891 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17892 as_echo_n='/usr/ucb/echo -n' 17893 else 17894 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17895 as_echo_n_body='eval 17896 arg=$1; 17897 case $arg in #( 17898 *"$as_nl"*) 17899 expr "X$arg" : "X\\(.*\\)$as_nl"; 17900 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17901 esac; 17902 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17903 ' 17904 export as_echo_n_body 17905 as_echo_n='sh -c $as_echo_n_body as_echo' 17906 fi 17907 export as_echo_body 17908 as_echo='sh -c $as_echo_body as_echo' 17909fi 17910 17911# The user is always right. 17912if test "${PATH_SEPARATOR+set}" != set; then 17913 PATH_SEPARATOR=: 17914 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17915 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17916 PATH_SEPARATOR=';' 17917 } 17918fi 17919 17920 17921# IFS 17922# We need space, tab and new line, in precisely that order. Quoting is 17923# there to prevent editors from complaining about space-tab. 17924# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17925# splitting by setting IFS to empty value.) 17926IFS=" "" $as_nl" 17927 17928# Find who we are. Look in the path if we contain no directory separator. 17929as_myself= 17930case $0 in #(( 17931 *[\\/]* ) as_myself=$0 ;; 17932 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17933for as_dir in $PATH 17934do 17935 IFS=$as_save_IFS 17936 test -z "$as_dir" && as_dir=. 17937 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17938 done 17939IFS=$as_save_IFS 17940 17941 ;; 17942esac 17943# We did not find ourselves, most probably we were run as `sh COMMAND' 17944# in which case we are not to be found in the path. 17945if test "x$as_myself" = x; then 17946 as_myself=$0 17947fi 17948if test ! -f "$as_myself"; then 17949 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17950 exit 1 17951fi 17952 17953# Unset variables that we do not need and which cause bugs (e.g. in 17954# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17955# suppresses any "Segmentation fault" message there. '((' could 17956# trigger a bug in pdksh 5.2.14. 17957for as_var in BASH_ENV ENV MAIL MAILPATH 17958do eval test x\${$as_var+set} = xset \ 17959 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17960done 17961PS1='$ ' 17962PS2='> ' 17963PS4='+ ' 17964 17965# NLS nuisances. 17966LC_ALL=C 17967export LC_ALL 17968LANGUAGE=C 17969export LANGUAGE 17970 17971# CDPATH. 17972(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17973 17974 17975# as_fn_error STATUS ERROR [LINENO LOG_FD] 17976# ---------------------------------------- 17977# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17978# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17979# script with STATUS, using 1 if that was 0. 17980as_fn_error () 17981{ 17982 as_status=$1; test $as_status -eq 0 && as_status=1 17983 if test "$4"; then 17984 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17985 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17986 fi 17987 $as_echo "$as_me: error: $2" >&2 17988 as_fn_exit $as_status 17989} # as_fn_error 17990 17991 17992# as_fn_set_status STATUS 17993# ----------------------- 17994# Set $? to STATUS, without forking. 17995as_fn_set_status () 17996{ 17997 return $1 17998} # as_fn_set_status 17999 18000# as_fn_exit STATUS 18001# ----------------- 18002# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18003as_fn_exit () 18004{ 18005 set +e 18006 as_fn_set_status $1 18007 exit $1 18008} # as_fn_exit 18009 18010# as_fn_unset VAR 18011# --------------- 18012# Portably unset VAR. 18013as_fn_unset () 18014{ 18015 { eval $1=; unset $1;} 18016} 18017as_unset=as_fn_unset 18018# as_fn_append VAR VALUE 18019# ---------------------- 18020# Append the text in VALUE to the end of the definition contained in VAR. Take 18021# advantage of any shell optimizations that allow amortized linear growth over 18022# repeated appends, instead of the typical quadratic growth present in naive 18023# implementations. 18024if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18025 eval 'as_fn_append () 18026 { 18027 eval $1+=\$2 18028 }' 18029else 18030 as_fn_append () 18031 { 18032 eval $1=\$$1\$2 18033 } 18034fi # as_fn_append 18035 18036# as_fn_arith ARG... 18037# ------------------ 18038# Perform arithmetic evaluation on the ARGs, and store the result in the 18039# global $as_val. Take advantage of shells that can avoid forks. The arguments 18040# must be portable across $(()) and expr. 18041if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18042 eval 'as_fn_arith () 18043 { 18044 as_val=$(( $* )) 18045 }' 18046else 18047 as_fn_arith () 18048 { 18049 as_val=`expr "$@" || test $? -eq 1` 18050 } 18051fi # as_fn_arith 18052 18053 18054if expr a : '\(a\)' >/dev/null 2>&1 && 18055 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18056 as_expr=expr 18057else 18058 as_expr=false 18059fi 18060 18061if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18062 as_basename=basename 18063else 18064 as_basename=false 18065fi 18066 18067if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18068 as_dirname=dirname 18069else 18070 as_dirname=false 18071fi 18072 18073as_me=`$as_basename -- "$0" || 18074$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18075 X"$0" : 'X\(//\)$' \| \ 18076 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18077$as_echo X/"$0" | 18078 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18079 s//\1/ 18080 q 18081 } 18082 /^X\/\(\/\/\)$/{ 18083 s//\1/ 18084 q 18085 } 18086 /^X\/\(\/\).*/{ 18087 s//\1/ 18088 q 18089 } 18090 s/.*/./; q'` 18091 18092# Avoid depending upon Character Ranges. 18093as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18094as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18095as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18096as_cr_digits='0123456789' 18097as_cr_alnum=$as_cr_Letters$as_cr_digits 18098 18099ECHO_C= ECHO_N= ECHO_T= 18100case `echo -n x` in #((((( 18101-n*) 18102 case `echo 'xy\c'` in 18103 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18104 xy) ECHO_C='\c';; 18105 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18106 ECHO_T=' ';; 18107 esac;; 18108*) 18109 ECHO_N='-n';; 18110esac 18111 18112rm -f conf$$ conf$$.exe conf$$.file 18113if test -d conf$$.dir; then 18114 rm -f conf$$.dir/conf$$.file 18115else 18116 rm -f conf$$.dir 18117 mkdir conf$$.dir 2>/dev/null 18118fi 18119if (echo >conf$$.file) 2>/dev/null; then 18120 if ln -s conf$$.file conf$$ 2>/dev/null; then 18121 as_ln_s='ln -s' 18122 # ... but there are two gotchas: 18123 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18124 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18125 # In both cases, we have to default to `cp -pR'. 18126 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18127 as_ln_s='cp -pR' 18128 elif ln conf$$.file conf$$ 2>/dev/null; then 18129 as_ln_s=ln 18130 else 18131 as_ln_s='cp -pR' 18132 fi 18133else 18134 as_ln_s='cp -pR' 18135fi 18136rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18137rmdir conf$$.dir 2>/dev/null 18138 18139 18140# as_fn_mkdir_p 18141# ------------- 18142# Create "$as_dir" as a directory, including parents if necessary. 18143as_fn_mkdir_p () 18144{ 18145 18146 case $as_dir in #( 18147 -*) as_dir=./$as_dir;; 18148 esac 18149 test -d "$as_dir" || eval $as_mkdir_p || { 18150 as_dirs= 18151 while :; do 18152 case $as_dir in #( 18153 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18154 *) as_qdir=$as_dir;; 18155 esac 18156 as_dirs="'$as_qdir' $as_dirs" 18157 as_dir=`$as_dirname -- "$as_dir" || 18158$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18159 X"$as_dir" : 'X\(//\)[^/]' \| \ 18160 X"$as_dir" : 'X\(//\)$' \| \ 18161 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18162$as_echo X"$as_dir" | 18163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18164 s//\1/ 18165 q 18166 } 18167 /^X\(\/\/\)[^/].*/{ 18168 s//\1/ 18169 q 18170 } 18171 /^X\(\/\/\)$/{ 18172 s//\1/ 18173 q 18174 } 18175 /^X\(\/\).*/{ 18176 s//\1/ 18177 q 18178 } 18179 s/.*/./; q'` 18180 test -d "$as_dir" && break 18181 done 18182 test -z "$as_dirs" || eval "mkdir $as_dirs" 18183 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18184 18185 18186} # as_fn_mkdir_p 18187if mkdir -p . 2>/dev/null; then 18188 as_mkdir_p='mkdir -p "$as_dir"' 18189else 18190 test -d ./-p && rmdir ./-p 18191 as_mkdir_p=false 18192fi 18193 18194 18195# as_fn_executable_p FILE 18196# ----------------------- 18197# Test if FILE is an executable regular file. 18198as_fn_executable_p () 18199{ 18200 test -f "$1" && test -x "$1" 18201} # as_fn_executable_p 18202as_test_x='test -x' 18203as_executable_p=as_fn_executable_p 18204 18205# Sed expression to map a string onto a valid CPP name. 18206as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18207 18208# Sed expression to map a string onto a valid variable name. 18209as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18210 18211 18212exec 6>&1 18213## ----------------------------------- ## 18214## Main body of $CONFIG_STATUS script. ## 18215## ----------------------------------- ## 18216_ASEOF 18217test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18218 18219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18220# Save the log message, to keep $0 and so on meaningful, and to 18221# report actual input values of CONFIG_FILES etc. instead of their 18222# values after options handling. 18223ac_log=" 18224This file was extended by lcms2mt $as_me 2.10, which was 18225generated by GNU Autoconf 2.69. Invocation command line was 18226 18227 CONFIG_FILES = $CONFIG_FILES 18228 CONFIG_HEADERS = $CONFIG_HEADERS 18229 CONFIG_LINKS = $CONFIG_LINKS 18230 CONFIG_COMMANDS = $CONFIG_COMMANDS 18231 $ $0 $@ 18232 18233on `(hostname || uname -n) 2>/dev/null | sed 1q` 18234" 18235 18236_ACEOF 18237 18238case $ac_config_files in *" 18239"*) set x $ac_config_files; shift; ac_config_files=$*;; 18240esac 18241 18242 18243 18244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18245# Files that config.status was made for. 18246config_files="$ac_config_files" 18247config_commands="$ac_config_commands" 18248 18249_ACEOF 18250 18251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18252ac_cs_usage="\ 18253\`$as_me' instantiates files and other configuration actions 18254from templates according to the current configuration. Unless the files 18255and actions are specified as TAGs, all are instantiated by default. 18256 18257Usage: $0 [OPTION]... [TAG]... 18258 18259 -h, --help print this help, then exit 18260 -V, --version print version number and configuration settings, then exit 18261 --config print configuration, then exit 18262 -q, --quiet, --silent 18263 do not print progress messages 18264 -d, --debug don't remove temporary files 18265 --recheck update $as_me by reconfiguring in the same conditions 18266 --file=FILE[:TEMPLATE] 18267 instantiate the configuration file FILE 18268 18269Configuration files: 18270$config_files 18271 18272Configuration commands: 18273$config_commands 18274 18275Report bugs to the package provider." 18276 18277_ACEOF 18278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18279ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18280ac_cs_version="\\ 18281lcms2mt config.status 2.10 18282configured by $0, generated by GNU Autoconf 2.69, 18283 with options \\"\$ac_cs_config\\" 18284 18285Copyright (C) 2012 Free Software Foundation, Inc. 18286This config.status script is free software; the Free Software Foundation 18287gives unlimited permission to copy, distribute and modify it." 18288 18289ac_pwd='$ac_pwd' 18290srcdir='$srcdir' 18291INSTALL='$INSTALL' 18292MKDIR_P='$MKDIR_P' 18293AWK='$AWK' 18294test -n "\$AWK" || AWK=awk 18295_ACEOF 18296 18297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18298# The default lists apply if the user does not specify any file. 18299ac_need_defaults=: 18300while test $# != 0 18301do 18302 case $1 in 18303 --*=?*) 18304 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18306 ac_shift=: 18307 ;; 18308 --*=) 18309 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18310 ac_optarg= 18311 ac_shift=: 18312 ;; 18313 *) 18314 ac_option=$1 18315 ac_optarg=$2 18316 ac_shift=shift 18317 ;; 18318 esac 18319 18320 case $ac_option in 18321 # Handling of the options. 18322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18323 ac_cs_recheck=: ;; 18324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18325 $as_echo "$ac_cs_version"; exit ;; 18326 --config | --confi | --conf | --con | --co | --c ) 18327 $as_echo "$ac_cs_config"; exit ;; 18328 --debug | --debu | --deb | --de | --d | -d ) 18329 debug=: ;; 18330 --file | --fil | --fi | --f ) 18331 $ac_shift 18332 case $ac_optarg in 18333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18334 '') as_fn_error $? "missing file argument" ;; 18335 esac 18336 as_fn_append CONFIG_FILES " '$ac_optarg'" 18337 ac_need_defaults=false;; 18338 --he | --h | --help | --hel | -h ) 18339 $as_echo "$ac_cs_usage"; exit ;; 18340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18341 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18342 ac_cs_silent=: ;; 18343 18344 # This is an error. 18345 -*) as_fn_error $? "unrecognized option: \`$1' 18346Try \`$0 --help' for more information." ;; 18347 18348 *) as_fn_append ac_config_targets " $1" 18349 ac_need_defaults=false ;; 18350 18351 esac 18352 shift 18353done 18354 18355ac_configure_extra_args= 18356 18357if $ac_cs_silent; then 18358 exec 6>/dev/null 18359 ac_configure_extra_args="$ac_configure_extra_args --silent" 18360fi 18361 18362_ACEOF 18363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18364if \$ac_cs_recheck; then 18365 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18366 shift 18367 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18368 CONFIG_SHELL='$SHELL' 18369 export CONFIG_SHELL 18370 exec "\$@" 18371fi 18372 18373_ACEOF 18374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18375exec 5>>config.log 18376{ 18377 echo 18378 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18379## Running $as_me. ## 18380_ASBOX 18381 $as_echo "$ac_log" 18382} >&5 18383 18384_ACEOF 18385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18386# 18387# INIT-COMMANDS 18388# 18389AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18390 18391 18392# The HP-UX ksh and POSIX shell print the target directory to stdout 18393# if CDPATH is set. 18394(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18395 18396sed_quote_subst='$sed_quote_subst' 18397double_quote_subst='$double_quote_subst' 18398delay_variable_subst='$delay_variable_subst' 18399enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18400enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18401AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 18402DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18403OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18404macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18405macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18406pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18407enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18408SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18409ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18410PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18411host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18412host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18413host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18414build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18415build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18416build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18417SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18418Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18419GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18420EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18421FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18422LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18423NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18424LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18425max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18426ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18427exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18428lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18429lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18430lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18431lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18432lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18433reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18434reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18435deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18436file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18437file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18438want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18439sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18440AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18441AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18442archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18443STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18444RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18445old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18446old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18447old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18448lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18449CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18450CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18451compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18452GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18453lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18454lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18455lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18456lt_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"`' 18457nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18458lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18459objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18460MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18461lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18462lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18463lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18464lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18465lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18466need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18467MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18468DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18469NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18470LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18471OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18472OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18473libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18474shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18475extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18476archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18477enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18478export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18479whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18480compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18481old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18482old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18483archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18484archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18485module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18486module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18487with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18488allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18489no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18490hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18491hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18492hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18493hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18494hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18495hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18496hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18497inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18498link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18499always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18500export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18501exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18502include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18503prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18504postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18505file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18506variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18507need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18508need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18509version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18510runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18511shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18512shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18513libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18514library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18515soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18516install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18517postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18518postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18519finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18520finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18521hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18522sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18523sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18524hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18525enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18526enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18527enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18528old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18529striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18530compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18531predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18532postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18533predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18534postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18535compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18536LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18537reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18538reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18539old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18540compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18541GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18542lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18543lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18544lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18545lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18546lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18547archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18548enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18549export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18550whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18551compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18552old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18553old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18554archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18555archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18556module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18557module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18558with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18559allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18560no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18561hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18562hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18563hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18564hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18565hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18566hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18567hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18568inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18569link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18570always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18571export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18572exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18573include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18574prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18575postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18576file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18577hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18578compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18579predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18580postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18581predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18582postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18583compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18584 18585LTCC='$LTCC' 18586LTCFLAGS='$LTCFLAGS' 18587compiler='$compiler_DEFAULT' 18588 18589# A function that is used when there is no print builtin or printf. 18590func_fallback_echo () 18591{ 18592 eval 'cat <<_LTECHO_EOF 18593\$1 18594_LTECHO_EOF' 18595} 18596 18597# Quote evaled strings. 18598for var in AS \ 18599DLLTOOL \ 18600OBJDUMP \ 18601SHELL \ 18602ECHO \ 18603PATH_SEPARATOR \ 18604SED \ 18605GREP \ 18606EGREP \ 18607FGREP \ 18608LD \ 18609NM \ 18610LN_S \ 18611lt_SP2NL \ 18612lt_NL2SP \ 18613reload_flag \ 18614deplibs_check_method \ 18615file_magic_cmd \ 18616file_magic_glob \ 18617want_nocaseglob \ 18618sharedlib_from_linklib_cmd \ 18619AR \ 18620AR_FLAGS \ 18621archiver_list_spec \ 18622STRIP \ 18623RANLIB \ 18624CC \ 18625CFLAGS \ 18626compiler \ 18627lt_cv_sys_global_symbol_pipe \ 18628lt_cv_sys_global_symbol_to_cdecl \ 18629lt_cv_sys_global_symbol_to_c_name_address \ 18630lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18631nm_file_list_spec \ 18632lt_prog_compiler_no_builtin_flag \ 18633lt_prog_compiler_pic \ 18634lt_prog_compiler_wl \ 18635lt_prog_compiler_static \ 18636lt_cv_prog_compiler_c_o \ 18637need_locks \ 18638MANIFEST_TOOL \ 18639DSYMUTIL \ 18640NMEDIT \ 18641LIPO \ 18642OTOOL \ 18643OTOOL64 \ 18644shrext_cmds \ 18645export_dynamic_flag_spec \ 18646whole_archive_flag_spec \ 18647compiler_needs_object \ 18648with_gnu_ld \ 18649allow_undefined_flag \ 18650no_undefined_flag \ 18651hardcode_libdir_flag_spec \ 18652hardcode_libdir_separator \ 18653exclude_expsyms \ 18654include_expsyms \ 18655file_list_spec \ 18656variables_saved_for_relink \ 18657libname_spec \ 18658library_names_spec \ 18659soname_spec \ 18660install_override_mode \ 18661finish_eval \ 18662old_striplib \ 18663striplib \ 18664compiler_lib_search_dirs \ 18665predep_objects \ 18666postdep_objects \ 18667predeps \ 18668postdeps \ 18669compiler_lib_search_path \ 18670LD_CXX \ 18671reload_flag_CXX \ 18672compiler_CXX \ 18673lt_prog_compiler_no_builtin_flag_CXX \ 18674lt_prog_compiler_pic_CXX \ 18675lt_prog_compiler_wl_CXX \ 18676lt_prog_compiler_static_CXX \ 18677lt_cv_prog_compiler_c_o_CXX \ 18678export_dynamic_flag_spec_CXX \ 18679whole_archive_flag_spec_CXX \ 18680compiler_needs_object_CXX \ 18681with_gnu_ld_CXX \ 18682allow_undefined_flag_CXX \ 18683no_undefined_flag_CXX \ 18684hardcode_libdir_flag_spec_CXX \ 18685hardcode_libdir_separator_CXX \ 18686exclude_expsyms_CXX \ 18687include_expsyms_CXX \ 18688file_list_spec_CXX \ 18689compiler_lib_search_dirs_CXX \ 18690predep_objects_CXX \ 18691postdep_objects_CXX \ 18692predeps_CXX \ 18693postdeps_CXX \ 18694compiler_lib_search_path_CXX; do 18695 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18696 *[\\\\\\\`\\"\\\$]*) 18697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18698 ;; 18699 *) 18700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18701 ;; 18702 esac 18703done 18704 18705# Double-quote double-evaled strings. 18706for var in reload_cmds \ 18707old_postinstall_cmds \ 18708old_postuninstall_cmds \ 18709old_archive_cmds \ 18710extract_expsyms_cmds \ 18711old_archive_from_new_cmds \ 18712old_archive_from_expsyms_cmds \ 18713archive_cmds \ 18714archive_expsym_cmds \ 18715module_cmds \ 18716module_expsym_cmds \ 18717export_symbols_cmds \ 18718prelink_cmds \ 18719postlink_cmds \ 18720postinstall_cmds \ 18721postuninstall_cmds \ 18722finish_cmds \ 18723sys_lib_search_path_spec \ 18724sys_lib_dlsearch_path_spec \ 18725reload_cmds_CXX \ 18726old_archive_cmds_CXX \ 18727old_archive_from_new_cmds_CXX \ 18728old_archive_from_expsyms_cmds_CXX \ 18729archive_cmds_CXX \ 18730archive_expsym_cmds_CXX \ 18731module_cmds_CXX \ 18732module_expsym_cmds_CXX \ 18733export_symbols_cmds_CXX \ 18734prelink_cmds_CXX \ 18735postlink_cmds_CXX; do 18736 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18737 *[\\\\\\\`\\"\\\$]*) 18738 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18739 ;; 18740 *) 18741 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18742 ;; 18743 esac 18744done 18745 18746ac_aux_dir='$ac_aux_dir' 18747xsi_shell='$xsi_shell' 18748lt_shell_append='$lt_shell_append' 18749 18750# See if we are running on zsh, and set the options which allow our 18751# commands through without removal of \ escapes INIT. 18752if test -n "\${ZSH_VERSION+set}" ; then 18753 setopt NO_GLOB_SUBST 18754fi 18755 18756 18757 PACKAGE='$PACKAGE' 18758 VERSION='$VERSION' 18759 TIMESTAMP='$TIMESTAMP' 18760 RM='$RM' 18761 ofile='$ofile' 18762 18763 18764 18765 18766 18767 18768_ACEOF 18769 18770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18771 18772# Handling of arguments. 18773for ac_config_target in $ac_config_targets 18774do 18775 case $ac_config_target in 18776 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18777 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18778 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18779 "lcms2mt.pc") CONFIG_FILES="$CONFIG_FILES lcms2mt.pc" ;; 18780 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18781 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18782 "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;; 18783 "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;; 18784 "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;; 18785 "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;; 18786 "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;; 18787 "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;; 18788 18789 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18790 esac 18791done 18792 18793 18794# If the user did not use the arguments to specify the items to instantiate, 18795# then the envvar interface is used. Set only those that are not. 18796# We use the long form for the default assignment because of an extremely 18797# bizarre bug on SunOS 4.1.3. 18798if $ac_need_defaults; then 18799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18801fi 18802 18803# Have a temporary directory for convenience. Make it in the build tree 18804# simply because there is no reason against having it here, and in addition, 18805# creating and moving files from /tmp can sometimes cause problems. 18806# Hook for its removal unless debugging. 18807# Note that there is a small window in which the directory will not be cleaned: 18808# after its creation but before its name has been assigned to `$tmp'. 18809$debug || 18810{ 18811 tmp= ac_tmp= 18812 trap 'exit_status=$? 18813 : "${ac_tmp:=$tmp}" 18814 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18815' 0 18816 trap 'as_fn_exit 1' 1 2 13 15 18817} 18818# Create a (secure) tmp directory for tmp files. 18819 18820{ 18821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18822 test -d "$tmp" 18823} || 18824{ 18825 tmp=./conf$$-$RANDOM 18826 (umask 077 && mkdir "$tmp") 18827} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18828ac_tmp=$tmp 18829 18830# Set up the scripts for CONFIG_FILES section. 18831# No need to generate them if there are no CONFIG_FILES. 18832# This happens for instance with `./config.status config.h'. 18833if test -n "$CONFIG_FILES"; then 18834 18835 18836ac_cr=`echo X | tr X '\015'` 18837# On cygwin, bash can eat \r inside `` if the user requested igncr. 18838# But we know of no other shell where ac_cr would be empty at this 18839# point, so we can use a bashism as a fallback. 18840if test "x$ac_cr" = x; then 18841 eval ac_cr=\$\'\\r\' 18842fi 18843ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18844if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18845 ac_cs_awk_cr='\\r' 18846else 18847 ac_cs_awk_cr=$ac_cr 18848fi 18849 18850echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18851_ACEOF 18852 18853 18854{ 18855 echo "cat >conf$$subs.awk <<_ACEOF" && 18856 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18857 echo "_ACEOF" 18858} >conf$$subs.sh || 18859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18860ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18861ac_delim='%!_!# ' 18862for ac_last_try in false false false false false :; do 18863 . ./conf$$subs.sh || 18864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18865 18866 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18867 if test $ac_delim_n = $ac_delim_num; then 18868 break 18869 elif $ac_last_try; then 18870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18871 else 18872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18873 fi 18874done 18875rm -f conf$$subs.sh 18876 18877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18878cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18879_ACEOF 18880sed -n ' 18881h 18882s/^/S["/; s/!.*/"]=/ 18883p 18884g 18885s/^[^!]*!// 18886:repl 18887t repl 18888s/'"$ac_delim"'$// 18889t delim 18890:nl 18891h 18892s/\(.\{148\}\)..*/\1/ 18893t more1 18894s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18895p 18896n 18897b repl 18898:more1 18899s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18900p 18901g 18902s/.\{148\}// 18903t nl 18904:delim 18905h 18906s/\(.\{148\}\)..*/\1/ 18907t more2 18908s/["\\]/\\&/g; s/^/"/; s/$/"/ 18909p 18910b 18911:more2 18912s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18913p 18914g 18915s/.\{148\}// 18916t delim 18917' <conf$$subs.awk | sed ' 18918/^[^""]/{ 18919 N 18920 s/\n// 18921} 18922' >>$CONFIG_STATUS || ac_write_fail=1 18923rm -f conf$$subs.awk 18924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18925_ACAWK 18926cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18927 for (key in S) S_is_set[key] = 1 18928 FS = "" 18929 18930} 18931{ 18932 line = $ 0 18933 nfields = split(line, field, "@") 18934 substed = 0 18935 len = length(field[1]) 18936 for (i = 2; i < nfields; i++) { 18937 key = field[i] 18938 keylen = length(key) 18939 if (S_is_set[key]) { 18940 value = S[key] 18941 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18942 len += length(value) + length(field[++i]) 18943 substed = 1 18944 } else 18945 len += 1 + keylen 18946 } 18947 18948 print line 18949} 18950 18951_ACAWK 18952_ACEOF 18953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18954if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18955 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18956else 18957 cat 18958fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18959 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18960_ACEOF 18961 18962# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18963# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18964# trailing colons and then remove the whole line if VPATH becomes empty 18965# (actually we leave an empty line to preserve line numbers). 18966if test "x$srcdir" = x.; then 18967 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18968h 18969s/// 18970s/^/:/ 18971s/[ ]*$/:/ 18972s/:\$(srcdir):/:/g 18973s/:\${srcdir}:/:/g 18974s/:@srcdir@:/:/g 18975s/^:*// 18976s/:*$// 18977x 18978s/\(=[ ]*\).*/\1/ 18979G 18980s/\n// 18981s/^[^=]*=[ ]*$// 18982}' 18983fi 18984 18985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18986fi # test -n "$CONFIG_FILES" 18987 18988 18989eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 18990shift 18991for ac_tag 18992do 18993 case $ac_tag in 18994 :[FHLC]) ac_mode=$ac_tag; continue;; 18995 esac 18996 case $ac_mode$ac_tag in 18997 :[FHL]*:*);; 18998 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18999 :[FH]-) ac_tag=-:-;; 19000 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19001 esac 19002 ac_save_IFS=$IFS 19003 IFS=: 19004 set x $ac_tag 19005 IFS=$ac_save_IFS 19006 shift 19007 ac_file=$1 19008 shift 19009 19010 case $ac_mode in 19011 :L) ac_source=$1;; 19012 :[FH]) 19013 ac_file_inputs= 19014 for ac_f 19015 do 19016 case $ac_f in 19017 -) ac_f="$ac_tmp/stdin";; 19018 *) # Look for the file first in the build tree, then in the source tree 19019 # (if the path is not absolute). The absolute path cannot be DOS-style, 19020 # because $ac_f cannot contain `:'. 19021 test -f "$ac_f" || 19022 case $ac_f in 19023 [\\/$]*) false;; 19024 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19025 esac || 19026 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19027 esac 19028 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19029 as_fn_append ac_file_inputs " '$ac_f'" 19030 done 19031 19032 # Let's still pretend it is `configure' which instantiates (i.e., don't 19033 # use $as_me), people would be surprised to read: 19034 # /* config.h. Generated by config.status. */ 19035 configure_input='Generated from '` 19036 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19037 `' by configure.' 19038 if test x"$ac_file" != x-; then 19039 configure_input="$ac_file. $configure_input" 19040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19041$as_echo "$as_me: creating $ac_file" >&6;} 19042 fi 19043 # Neutralize special characters interpreted by sed in replacement strings. 19044 case $configure_input in #( 19045 *\&* | *\|* | *\\* ) 19046 ac_sed_conf_input=`$as_echo "$configure_input" | 19047 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19048 *) ac_sed_conf_input=$configure_input;; 19049 esac 19050 19051 case $ac_tag in 19052 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19054 esac 19055 ;; 19056 esac 19057 19058 ac_dir=`$as_dirname -- "$ac_file" || 19059$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19060 X"$ac_file" : 'X\(//\)[^/]' \| \ 19061 X"$ac_file" : 'X\(//\)$' \| \ 19062 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19063$as_echo X"$ac_file" | 19064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19065 s//\1/ 19066 q 19067 } 19068 /^X\(\/\/\)[^/].*/{ 19069 s//\1/ 19070 q 19071 } 19072 /^X\(\/\/\)$/{ 19073 s//\1/ 19074 q 19075 } 19076 /^X\(\/\).*/{ 19077 s//\1/ 19078 q 19079 } 19080 s/.*/./; q'` 19081 as_dir="$ac_dir"; as_fn_mkdir_p 19082 ac_builddir=. 19083 19084case "$ac_dir" in 19085.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19086*) 19087 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19088 # A ".." for each directory in $ac_dir_suffix. 19089 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19090 case $ac_top_builddir_sub in 19091 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19092 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19093 esac ;; 19094esac 19095ac_abs_top_builddir=$ac_pwd 19096ac_abs_builddir=$ac_pwd$ac_dir_suffix 19097# for backward compatibility: 19098ac_top_builddir=$ac_top_build_prefix 19099 19100case $srcdir in 19101 .) # We are building in place. 19102 ac_srcdir=. 19103 ac_top_srcdir=$ac_top_builddir_sub 19104 ac_abs_top_srcdir=$ac_pwd ;; 19105 [\\/]* | ?:[\\/]* ) # Absolute name. 19106 ac_srcdir=$srcdir$ac_dir_suffix; 19107 ac_top_srcdir=$srcdir 19108 ac_abs_top_srcdir=$srcdir ;; 19109 *) # Relative name. 19110 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19111 ac_top_srcdir=$ac_top_build_prefix$srcdir 19112 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19113esac 19114ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19115 19116 19117 case $ac_mode in 19118 :F) 19119 # 19120 # CONFIG_FILE 19121 # 19122 19123 case $INSTALL in 19124 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19125 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19126 esac 19127 ac_MKDIR_P=$MKDIR_P 19128 case $MKDIR_P in 19129 [\\/$]* | ?:[\\/]* ) ;; 19130 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19131 esac 19132_ACEOF 19133 19134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19135# If the template does not know about datarootdir, expand it. 19136# FIXME: This hack should be removed a few years after 2.60. 19137ac_datarootdir_hack=; ac_datarootdir_seen= 19138ac_sed_dataroot=' 19139/datarootdir/ { 19140 p 19141 q 19142} 19143/@datadir@/p 19144/@docdir@/p 19145/@infodir@/p 19146/@localedir@/p 19147/@mandir@/p' 19148case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19149*datarootdir*) ac_datarootdir_seen=yes;; 19150*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19152$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19153_ACEOF 19154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19155 ac_datarootdir_hack=' 19156 s&@datadir@&$datadir&g 19157 s&@docdir@&$docdir&g 19158 s&@infodir@&$infodir&g 19159 s&@localedir@&$localedir&g 19160 s&@mandir@&$mandir&g 19161 s&\\\${datarootdir}&$datarootdir&g' ;; 19162esac 19163_ACEOF 19164 19165# Neutralize VPATH when `$srcdir' = `.'. 19166# Shell code in configure.ac might set extrasub. 19167# FIXME: do we really want to maintain this feature? 19168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19169ac_sed_extra="$ac_vpsub 19170$extrasub 19171_ACEOF 19172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19173:t 19174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19175s|@configure_input@|$ac_sed_conf_input|;t t 19176s&@top_builddir@&$ac_top_builddir_sub&;t t 19177s&@top_build_prefix@&$ac_top_build_prefix&;t t 19178s&@srcdir@&$ac_srcdir&;t t 19179s&@abs_srcdir@&$ac_abs_srcdir&;t t 19180s&@top_srcdir@&$ac_top_srcdir&;t t 19181s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19182s&@builddir@&$ac_builddir&;t t 19183s&@abs_builddir@&$ac_abs_builddir&;t t 19184s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19185s&@INSTALL@&$ac_INSTALL&;t t 19186s&@MKDIR_P@&$ac_MKDIR_P&;t t 19187$ac_datarootdir_hack 19188" 19189eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19190 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19191 19192test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19193 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19195 "$ac_tmp/out"`; test -z "$ac_out"; } && 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19197which seems to be undefined. Please make sure it is defined" >&5 19198$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19199which seems to be undefined. Please make sure it is defined" >&2;} 19200 19201 rm -f "$ac_tmp/stdin" 19202 case $ac_file in 19203 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19204 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19205 esac \ 19206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19207 ;; 19208 19209 19210 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19211$as_echo "$as_me: executing $ac_file commands" >&6;} 19212 ;; 19213 esac 19214 19215 19216 case $ac_file$ac_mode in 19217 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19218 # Older Autoconf quotes --file arguments for eval, but not when files 19219 # are listed without --file. Let's play safe and only enable the eval 19220 # if we detect the quoting. 19221 # TODO: see whether this extra hack can be removed once we start 19222 # requiring Autoconf 2.70 or later. 19223 case $CONFIG_FILES in #( 19224 *\'*) : 19225 eval set x "$CONFIG_FILES" ;; #( 19226 *) : 19227 set x $CONFIG_FILES ;; #( 19228 *) : 19229 ;; 19230esac 19231 shift 19232 # Used to flag and report bootstrapping failures. 19233 am_rc=0 19234 for am_mf 19235 do 19236 # Strip MF so we end up with the name of the file. 19237 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19238 # Check whether this is an Automake generated Makefile which includes 19239 # dependency-tracking related rules and includes. 19240 # Grep'ing the whole file directly is not great: AIX grep has a line 19241 # limit of 2048, but all sed's we know have understand at least 4000. 19242 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19243 || continue 19244 am_dirpart=`$as_dirname -- "$am_mf" || 19245$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19246 X"$am_mf" : 'X\(//\)[^/]' \| \ 19247 X"$am_mf" : 'X\(//\)$' \| \ 19248 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19249$as_echo X"$am_mf" | 19250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19251 s//\1/ 19252 q 19253 } 19254 /^X\(\/\/\)[^/].*/{ 19255 s//\1/ 19256 q 19257 } 19258 /^X\(\/\/\)$/{ 19259 s//\1/ 19260 q 19261 } 19262 /^X\(\/\).*/{ 19263 s//\1/ 19264 q 19265 } 19266 s/.*/./; q'` 19267 am_filepart=`$as_basename -- "$am_mf" || 19268$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19269 X"$am_mf" : 'X\(//\)$' \| \ 19270 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19271$as_echo X/"$am_mf" | 19272 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19273 s//\1/ 19274 q 19275 } 19276 /^X\/\(\/\/\)$/{ 19277 s//\1/ 19278 q 19279 } 19280 /^X\/\(\/\).*/{ 19281 s//\1/ 19282 q 19283 } 19284 s/.*/./; q'` 19285 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19286 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19287 | $MAKE -f - am--depfiles" >&5 19288 (cd "$am_dirpart" \ 19289 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19290 | $MAKE -f - am--depfiles) >&5 2>&5 19291 ac_status=$? 19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19293 (exit $ac_status); } || am_rc=$? 19294 done 19295 if test $am_rc -ne 0; then 19296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19298as_fn_error $? "Something went wrong bootstrapping makefile fragments 19299 for automatic dependency tracking. Try re-running configure with the 19300 '--disable-dependency-tracking' option to at least be able to build 19301 the package (albeit without support for automatic dependency tracking). 19302See \`config.log' for more details" "$LINENO" 5; } 19303 fi 19304 { am_dirpart=; unset am_dirpart;} 19305 { am_filepart=; unset am_filepart;} 19306 { am_mf=; unset am_mf;} 19307 { am_rc=; unset am_rc;} 19308 rm -f conftest-deps.mk 19309} 19310 ;; 19311 "libtool":C) 19312 19313 # See if we are running on zsh, and set the options which allow our 19314 # commands through without removal of \ escapes. 19315 if test -n "${ZSH_VERSION+set}" ; then 19316 setopt NO_GLOB_SUBST 19317 fi 19318 19319 cfgfile="${ofile}T" 19320 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19321 $RM "$cfgfile" 19322 19323 cat <<_LT_EOF >> "$cfgfile" 19324#! $SHELL 19325 19326# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19327# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19328# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19329# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19330# 19331# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19332# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19333# Foundation, Inc. 19334# Written by Gordon Matzigkeit, 1996 19335# 19336# This file is part of GNU Libtool. 19337# 19338# GNU Libtool is free software; you can redistribute it and/or 19339# modify it under the terms of the GNU General Public License as 19340# published by the Free Software Foundation; either version 2 of 19341# the License, or (at your option) any later version. 19342# 19343# As a special exception to the GNU General Public License, 19344# if you distribute this file as part of a program or library that 19345# is built using GNU Libtool, you may include this file under the 19346# same distribution terms that you use for the rest of that program. 19347# 19348# GNU Libtool is distributed in the hope that it will be useful, 19349# but WITHOUT ANY WARRANTY; without even the implied warranty of 19350# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19351# GNU General Public License for more details. 19352# 19353# You should have received a copy of the GNU General Public License 19354# along with GNU Libtool; see the file COPYING. If not, a copy 19355# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19356# obtained by writing to the Free Software Foundation, Inc., 19357# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19358 19359 19360# The names of the tagged configurations supported by this script. 19361available_tags="CXX " 19362 19363# ### BEGIN LIBTOOL CONFIG 19364 19365# Whether or not to build shared libraries. 19366build_libtool_libs=$enable_shared 19367 19368# Whether or not to build static libraries. 19369build_old_libs=$enable_static 19370 19371# Assembler program. 19372AS=$lt_AS 19373 19374# DLL creation program. 19375DLLTOOL=$lt_DLLTOOL 19376 19377# Object dumper program. 19378OBJDUMP=$lt_OBJDUMP 19379 19380# Which release of libtool.m4 was used? 19381macro_version=$macro_version 19382macro_revision=$macro_revision 19383 19384# What type of objects to build. 19385pic_mode=$pic_mode 19386 19387# Whether or not to optimize for fast installation. 19388fast_install=$enable_fast_install 19389 19390# Shell to use when invoking shell scripts. 19391SHELL=$lt_SHELL 19392 19393# An echo program that protects backslashes. 19394ECHO=$lt_ECHO 19395 19396# The PATH separator for the build system. 19397PATH_SEPARATOR=$lt_PATH_SEPARATOR 19398 19399# The host system. 19400host_alias=$host_alias 19401host=$host 19402host_os=$host_os 19403 19404# The build system. 19405build_alias=$build_alias 19406build=$build 19407build_os=$build_os 19408 19409# A sed program that does not truncate output. 19410SED=$lt_SED 19411 19412# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19413Xsed="\$SED -e 1s/^X//" 19414 19415# A grep program that handles long lines. 19416GREP=$lt_GREP 19417 19418# An ERE matcher. 19419EGREP=$lt_EGREP 19420 19421# A literal string matcher. 19422FGREP=$lt_FGREP 19423 19424# A BSD- or MS-compatible name lister. 19425NM=$lt_NM 19426 19427# Whether we need soft or hard links. 19428LN_S=$lt_LN_S 19429 19430# What is the maximum length of a command? 19431max_cmd_len=$max_cmd_len 19432 19433# Object file suffix (normally "o"). 19434objext=$ac_objext 19435 19436# Executable file suffix (normally ""). 19437exeext=$exeext 19438 19439# whether the shell understands "unset". 19440lt_unset=$lt_unset 19441 19442# turn spaces into newlines. 19443SP2NL=$lt_lt_SP2NL 19444 19445# turn newlines into spaces. 19446NL2SP=$lt_lt_NL2SP 19447 19448# convert \$build file names to \$host format. 19449to_host_file_cmd=$lt_cv_to_host_file_cmd 19450 19451# convert \$build files to toolchain format. 19452to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19453 19454# Method to check whether dependent libraries are shared objects. 19455deplibs_check_method=$lt_deplibs_check_method 19456 19457# Command to use when deplibs_check_method = "file_magic". 19458file_magic_cmd=$lt_file_magic_cmd 19459 19460# How to find potential files when deplibs_check_method = "file_magic". 19461file_magic_glob=$lt_file_magic_glob 19462 19463# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19464want_nocaseglob=$lt_want_nocaseglob 19465 19466# Command to associate shared and link libraries. 19467sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19468 19469# The archiver. 19470AR=$lt_AR 19471 19472# Flags to create an archive. 19473AR_FLAGS=$lt_AR_FLAGS 19474 19475# How to feed a file listing to the archiver. 19476archiver_list_spec=$lt_archiver_list_spec 19477 19478# A symbol stripping program. 19479STRIP=$lt_STRIP 19480 19481# Commands used to install an old-style archive. 19482RANLIB=$lt_RANLIB 19483old_postinstall_cmds=$lt_old_postinstall_cmds 19484old_postuninstall_cmds=$lt_old_postuninstall_cmds 19485 19486# Whether to use a lock for old archive extraction. 19487lock_old_archive_extraction=$lock_old_archive_extraction 19488 19489# A C compiler. 19490LTCC=$lt_CC 19491 19492# LTCC compiler flags. 19493LTCFLAGS=$lt_CFLAGS 19494 19495# Take the output of nm and produce a listing of raw symbols and C names. 19496global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19497 19498# Transform the output of nm in a proper C declaration. 19499global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19500 19501# Transform the output of nm in a C name address pair. 19502global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19503 19504# Transform the output of nm in a C name address pair when lib prefix is needed. 19505global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19506 19507# Specify filename containing input files for \$NM. 19508nm_file_list_spec=$lt_nm_file_list_spec 19509 19510# The root where to search for dependent libraries,and in which our libraries should be installed. 19511lt_sysroot=$lt_sysroot 19512 19513# The name of the directory that contains temporary libtool files. 19514objdir=$objdir 19515 19516# Used to examine libraries when file_magic_cmd begins with "file". 19517MAGIC_CMD=$MAGIC_CMD 19518 19519# Must we lock files when doing compilation? 19520need_locks=$lt_need_locks 19521 19522# Manifest tool. 19523MANIFEST_TOOL=$lt_MANIFEST_TOOL 19524 19525# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19526DSYMUTIL=$lt_DSYMUTIL 19527 19528# Tool to change global to local symbols on Mac OS X. 19529NMEDIT=$lt_NMEDIT 19530 19531# Tool to manipulate fat objects and archives on Mac OS X. 19532LIPO=$lt_LIPO 19533 19534# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19535OTOOL=$lt_OTOOL 19536 19537# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19538OTOOL64=$lt_OTOOL64 19539 19540# Old archive suffix (normally "a"). 19541libext=$libext 19542 19543# Shared library suffix (normally ".so"). 19544shrext_cmds=$lt_shrext_cmds 19545 19546# The commands to extract the exported symbol list from a shared archive. 19547extract_expsyms_cmds=$lt_extract_expsyms_cmds 19548 19549# Variables whose values should be saved in libtool wrapper scripts and 19550# restored at link time. 19551variables_saved_for_relink=$lt_variables_saved_for_relink 19552 19553# Do we need the "lib" prefix for modules? 19554need_lib_prefix=$need_lib_prefix 19555 19556# Do we need a version for libraries? 19557need_version=$need_version 19558 19559# Library versioning type. 19560version_type=$version_type 19561 19562# Shared library runtime path variable. 19563runpath_var=$runpath_var 19564 19565# Shared library path variable. 19566shlibpath_var=$shlibpath_var 19567 19568# Is shlibpath searched before the hard-coded library search path? 19569shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19570 19571# Format of library name prefix. 19572libname_spec=$lt_libname_spec 19573 19574# List of archive names. First name is the real one, the rest are links. 19575# The last name is the one that the linker finds with -lNAME 19576library_names_spec=$lt_library_names_spec 19577 19578# The coded name of the library, if different from the real name. 19579soname_spec=$lt_soname_spec 19580 19581# Permission mode override for installation of shared libraries. 19582install_override_mode=$lt_install_override_mode 19583 19584# Command to use after installation of a shared archive. 19585postinstall_cmds=$lt_postinstall_cmds 19586 19587# Command to use after uninstallation of a shared archive. 19588postuninstall_cmds=$lt_postuninstall_cmds 19589 19590# Commands used to finish a libtool library installation in a directory. 19591finish_cmds=$lt_finish_cmds 19592 19593# As "finish_cmds", except a single script fragment to be evaled but 19594# not shown. 19595finish_eval=$lt_finish_eval 19596 19597# Whether we should hardcode library paths into libraries. 19598hardcode_into_libs=$hardcode_into_libs 19599 19600# Compile-time system search path for libraries. 19601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19602 19603# Run-time system search path for libraries. 19604sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19605 19606# Whether dlopen is supported. 19607dlopen_support=$enable_dlopen 19608 19609# Whether dlopen of programs is supported. 19610dlopen_self=$enable_dlopen_self 19611 19612# Whether dlopen of statically linked programs is supported. 19613dlopen_self_static=$enable_dlopen_self_static 19614 19615# Commands to strip libraries. 19616old_striplib=$lt_old_striplib 19617striplib=$lt_striplib 19618 19619 19620# The linker used to build libraries. 19621LD=$lt_LD 19622 19623# How to create reloadable object files. 19624reload_flag=$lt_reload_flag 19625reload_cmds=$lt_reload_cmds 19626 19627# Commands used to build an old-style archive. 19628old_archive_cmds=$lt_old_archive_cmds 19629 19630# A language specific compiler. 19631CC=$lt_compiler 19632 19633# Is the compiler the GNU compiler? 19634with_gcc=$GCC 19635 19636# Compiler flag to turn off builtin functions. 19637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19638 19639# Additional compiler flags for building library objects. 19640pic_flag=$lt_lt_prog_compiler_pic 19641 19642# How to pass a linker flag through the compiler. 19643wl=$lt_lt_prog_compiler_wl 19644 19645# Compiler flag to prevent dynamic linking. 19646link_static_flag=$lt_lt_prog_compiler_static 19647 19648# Does compiler simultaneously support -c and -o options? 19649compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19650 19651# Whether or not to add -lc for building shared libraries. 19652build_libtool_need_lc=$archive_cmds_need_lc 19653 19654# Whether or not to disallow shared libs when runtime libs are static. 19655allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19656 19657# Compiler flag to allow reflexive dlopens. 19658export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19659 19660# Compiler flag to generate shared objects directly from archives. 19661whole_archive_flag_spec=$lt_whole_archive_flag_spec 19662 19663# Whether the compiler copes with passing no objects directly. 19664compiler_needs_object=$lt_compiler_needs_object 19665 19666# Create an old-style archive from a shared archive. 19667old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19668 19669# Create a temporary old-style archive to link instead of a shared archive. 19670old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19671 19672# Commands used to build a shared archive. 19673archive_cmds=$lt_archive_cmds 19674archive_expsym_cmds=$lt_archive_expsym_cmds 19675 19676# Commands used to build a loadable module if different from building 19677# a shared archive. 19678module_cmds=$lt_module_cmds 19679module_expsym_cmds=$lt_module_expsym_cmds 19680 19681# Whether we are building with GNU ld or not. 19682with_gnu_ld=$lt_with_gnu_ld 19683 19684# Flag that allows shared libraries with undefined symbols to be built. 19685allow_undefined_flag=$lt_allow_undefined_flag 19686 19687# Flag that enforces no undefined symbols. 19688no_undefined_flag=$lt_no_undefined_flag 19689 19690# Flag to hardcode \$libdir into a binary during linking. 19691# This must work even if \$libdir does not exist 19692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19693 19694# Whether we need a single "-rpath" flag with a separated argument. 19695hardcode_libdir_separator=$lt_hardcode_libdir_separator 19696 19697# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19698# DIR into the resulting binary. 19699hardcode_direct=$hardcode_direct 19700 19701# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19702# DIR into the resulting binary and the resulting library dependency is 19703# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19704# library is relocated. 19705hardcode_direct_absolute=$hardcode_direct_absolute 19706 19707# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19708# into the resulting binary. 19709hardcode_minus_L=$hardcode_minus_L 19710 19711# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19712# into the resulting binary. 19713hardcode_shlibpath_var=$hardcode_shlibpath_var 19714 19715# Set to "yes" if building a shared library automatically hardcodes DIR 19716# into the library and all subsequent libraries and executables linked 19717# against it. 19718hardcode_automatic=$hardcode_automatic 19719 19720# Set to yes if linker adds runtime paths of dependent libraries 19721# to runtime path list. 19722inherit_rpath=$inherit_rpath 19723 19724# Whether libtool must link a program against all its dependency libraries. 19725link_all_deplibs=$link_all_deplibs 19726 19727# Set to "yes" if exported symbols are required. 19728always_export_symbols=$always_export_symbols 19729 19730# The commands to list exported symbols. 19731export_symbols_cmds=$lt_export_symbols_cmds 19732 19733# Symbols that should not be listed in the preloaded symbols. 19734exclude_expsyms=$lt_exclude_expsyms 19735 19736# Symbols that must always be exported. 19737include_expsyms=$lt_include_expsyms 19738 19739# Commands necessary for linking programs (against libraries) with templates. 19740prelink_cmds=$lt_prelink_cmds 19741 19742# Commands necessary for finishing linking programs. 19743postlink_cmds=$lt_postlink_cmds 19744 19745# Specify filename containing input files. 19746file_list_spec=$lt_file_list_spec 19747 19748# How to hardcode a shared library path into an executable. 19749hardcode_action=$hardcode_action 19750 19751# The directories searched by this compiler when creating a shared library. 19752compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19753 19754# Dependencies to place before and after the objects being linked to 19755# create a shared library. 19756predep_objects=$lt_predep_objects 19757postdep_objects=$lt_postdep_objects 19758predeps=$lt_predeps 19759postdeps=$lt_postdeps 19760 19761# The library search path used internally by the compiler when linking 19762# a shared library. 19763compiler_lib_search_path=$lt_compiler_lib_search_path 19764 19765# ### END LIBTOOL CONFIG 19766 19767_LT_EOF 19768 19769 case $host_os in 19770 aix3*) 19771 cat <<\_LT_EOF >> "$cfgfile" 19772# AIX sometimes has problems with the GCC collect2 program. For some 19773# reason, if we set the COLLECT_NAMES environment variable, the problems 19774# vanish in a puff of smoke. 19775if test "X${COLLECT_NAMES+set}" != Xset; then 19776 COLLECT_NAMES= 19777 export COLLECT_NAMES 19778fi 19779_LT_EOF 19780 ;; 19781 esac 19782 19783 19784ltmain="$ac_aux_dir/ltmain.sh" 19785 19786 19787 # We use sed instead of cat because bash on DJGPP gets confused if 19788 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19789 # text mode, it properly converts lines to CR/LF. This bash problem 19790 # is reportedly fixed, but why not run on old versions too? 19791 sed '$q' "$ltmain" >> "$cfgfile" \ 19792 || (rm -f "$cfgfile"; exit 1) 19793 19794 if test x"$xsi_shell" = xyes; then 19795 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19796func_dirname ()\ 19797{\ 19798\ case ${1} in\ 19799\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19800\ * ) func_dirname_result="${3}" ;;\ 19801\ esac\ 19802} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19803 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19805test 0 -eq $? || _lt_function_replace_fail=: 19806 19807 19808 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19809func_basename ()\ 19810{\ 19811\ func_basename_result="${1##*/}"\ 19812} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19813 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19815test 0 -eq $? || _lt_function_replace_fail=: 19816 19817 19818 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19819func_dirname_and_basename ()\ 19820{\ 19821\ case ${1} in\ 19822\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19823\ * ) func_dirname_result="${3}" ;;\ 19824\ esac\ 19825\ func_basename_result="${1##*/}"\ 19826} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19827 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19829test 0 -eq $? || _lt_function_replace_fail=: 19830 19831 19832 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19833func_stripname ()\ 19834{\ 19835\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19836\ # positional parameters, so assign one to ordinary parameter first.\ 19837\ func_stripname_result=${3}\ 19838\ func_stripname_result=${func_stripname_result#"${1}"}\ 19839\ func_stripname_result=${func_stripname_result%"${2}"}\ 19840} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19841 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19843test 0 -eq $? || _lt_function_replace_fail=: 19844 19845 19846 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19847func_split_long_opt ()\ 19848{\ 19849\ func_split_long_opt_name=${1%%=*}\ 19850\ func_split_long_opt_arg=${1#*=}\ 19851} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19852 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19854test 0 -eq $? || _lt_function_replace_fail=: 19855 19856 19857 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19858func_split_short_opt ()\ 19859{\ 19860\ func_split_short_opt_arg=${1#??}\ 19861\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19862} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19863 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19865test 0 -eq $? || _lt_function_replace_fail=: 19866 19867 19868 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19869func_lo2o ()\ 19870{\ 19871\ case ${1} in\ 19872\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19873\ *) func_lo2o_result=${1} ;;\ 19874\ esac\ 19875} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19876 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19878test 0 -eq $? || _lt_function_replace_fail=: 19879 19880 19881 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19882func_xform ()\ 19883{\ 19884 func_xform_result=${1%.*}.lo\ 19885} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19886 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19888test 0 -eq $? || _lt_function_replace_fail=: 19889 19890 19891 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19892func_arith ()\ 19893{\ 19894 func_arith_result=$(( $* ))\ 19895} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19896 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19898test 0 -eq $? || _lt_function_replace_fail=: 19899 19900 19901 sed -e '/^func_len ()$/,/^} # func_len /c\ 19902func_len ()\ 19903{\ 19904 func_len_result=${#1}\ 19905} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19906 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19908test 0 -eq $? || _lt_function_replace_fail=: 19909 19910fi 19911 19912if test x"$lt_shell_append" = xyes; then 19913 sed -e '/^func_append ()$/,/^} # func_append /c\ 19914func_append ()\ 19915{\ 19916 eval "${1}+=\\${2}"\ 19917} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19918 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19920test 0 -eq $? || _lt_function_replace_fail=: 19921 19922 19923 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19924func_append_quoted ()\ 19925{\ 19926\ func_quote_for_eval "${2}"\ 19927\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19928} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19929 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19931test 0 -eq $? || _lt_function_replace_fail=: 19932 19933 19934 # Save a `func_append' function call where possible by direct use of '+=' 19935 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19938 test 0 -eq $? || _lt_function_replace_fail=: 19939else 19940 # Save a `func_append' function call even when '+=' is not available 19941 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19942 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19944 test 0 -eq $? || _lt_function_replace_fail=: 19945fi 19946 19947if test x"$_lt_function_replace_fail" = x":"; then 19948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19949$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19950fi 19951 19952 19953 mv -f "$cfgfile" "$ofile" || 19954 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19955 chmod +x "$ofile" 19956 19957 19958 cat <<_LT_EOF >> "$ofile" 19959 19960# ### BEGIN LIBTOOL TAG CONFIG: CXX 19961 19962# The linker used to build libraries. 19963LD=$lt_LD_CXX 19964 19965# How to create reloadable object files. 19966reload_flag=$lt_reload_flag_CXX 19967reload_cmds=$lt_reload_cmds_CXX 19968 19969# Commands used to build an old-style archive. 19970old_archive_cmds=$lt_old_archive_cmds_CXX 19971 19972# A language specific compiler. 19973CC=$lt_compiler_CXX 19974 19975# Is the compiler the GNU compiler? 19976with_gcc=$GCC_CXX 19977 19978# Compiler flag to turn off builtin functions. 19979no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19980 19981# Additional compiler flags for building library objects. 19982pic_flag=$lt_lt_prog_compiler_pic_CXX 19983 19984# How to pass a linker flag through the compiler. 19985wl=$lt_lt_prog_compiler_wl_CXX 19986 19987# Compiler flag to prevent dynamic linking. 19988link_static_flag=$lt_lt_prog_compiler_static_CXX 19989 19990# Does compiler simultaneously support -c and -o options? 19991compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19992 19993# Whether or not to add -lc for building shared libraries. 19994build_libtool_need_lc=$archive_cmds_need_lc_CXX 19995 19996# Whether or not to disallow shared libs when runtime libs are static. 19997allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19998 19999# Compiler flag to allow reflexive dlopens. 20000export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20001 20002# Compiler flag to generate shared objects directly from archives. 20003whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20004 20005# Whether the compiler copes with passing no objects directly. 20006compiler_needs_object=$lt_compiler_needs_object_CXX 20007 20008# Create an old-style archive from a shared archive. 20009old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20010 20011# Create a temporary old-style archive to link instead of a shared archive. 20012old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20013 20014# Commands used to build a shared archive. 20015archive_cmds=$lt_archive_cmds_CXX 20016archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20017 20018# Commands used to build a loadable module if different from building 20019# a shared archive. 20020module_cmds=$lt_module_cmds_CXX 20021module_expsym_cmds=$lt_module_expsym_cmds_CXX 20022 20023# Whether we are building with GNU ld or not. 20024with_gnu_ld=$lt_with_gnu_ld_CXX 20025 20026# Flag that allows shared libraries with undefined symbols to be built. 20027allow_undefined_flag=$lt_allow_undefined_flag_CXX 20028 20029# Flag that enforces no undefined symbols. 20030no_undefined_flag=$lt_no_undefined_flag_CXX 20031 20032# Flag to hardcode \$libdir into a binary during linking. 20033# This must work even if \$libdir does not exist 20034hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20035 20036# Whether we need a single "-rpath" flag with a separated argument. 20037hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20038 20039# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20040# DIR into the resulting binary. 20041hardcode_direct=$hardcode_direct_CXX 20042 20043# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20044# DIR into the resulting binary and the resulting library dependency is 20045# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20046# library is relocated. 20047hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20048 20049# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20050# into the resulting binary. 20051hardcode_minus_L=$hardcode_minus_L_CXX 20052 20053# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20054# into the resulting binary. 20055hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20056 20057# Set to "yes" if building a shared library automatically hardcodes DIR 20058# into the library and all subsequent libraries and executables linked 20059# against it. 20060hardcode_automatic=$hardcode_automatic_CXX 20061 20062# Set to yes if linker adds runtime paths of dependent libraries 20063# to runtime path list. 20064inherit_rpath=$inherit_rpath_CXX 20065 20066# Whether libtool must link a program against all its dependency libraries. 20067link_all_deplibs=$link_all_deplibs_CXX 20068 20069# Set to "yes" if exported symbols are required. 20070always_export_symbols=$always_export_symbols_CXX 20071 20072# The commands to list exported symbols. 20073export_symbols_cmds=$lt_export_symbols_cmds_CXX 20074 20075# Symbols that should not be listed in the preloaded symbols. 20076exclude_expsyms=$lt_exclude_expsyms_CXX 20077 20078# Symbols that must always be exported. 20079include_expsyms=$lt_include_expsyms_CXX 20080 20081# Commands necessary for linking programs (against libraries) with templates. 20082prelink_cmds=$lt_prelink_cmds_CXX 20083 20084# Commands necessary for finishing linking programs. 20085postlink_cmds=$lt_postlink_cmds_CXX 20086 20087# Specify filename containing input files. 20088file_list_spec=$lt_file_list_spec_CXX 20089 20090# How to hardcode a shared library path into an executable. 20091hardcode_action=$hardcode_action_CXX 20092 20093# The directories searched by this compiler when creating a shared library. 20094compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20095 20096# Dependencies to place before and after the objects being linked to 20097# create a shared library. 20098predep_objects=$lt_predep_objects_CXX 20099postdep_objects=$lt_postdep_objects_CXX 20100predeps=$lt_predeps_CXX 20101postdeps=$lt_postdeps_CXX 20102 20103# The library search path used internally by the compiler when linking 20104# a shared library. 20105compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20106 20107# ### END LIBTOOL TAG CONFIG: CXX 20108_LT_EOF 20109 20110 ;; 20111 20112 esac 20113done # for ac_tag 20114 20115 20116as_fn_exit 0 20117_ACEOF 20118ac_clean_files=$ac_clean_files_save 20119 20120test $ac_write_fail = 0 || 20121 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20122 20123 20124# configure is writing to config.log, and then calls config.status. 20125# config.status does its own redirection, appending to config.log. 20126# Unfortunately, on DOS this fails, as config.log is still kept open 20127# by configure, so config.status won't be able to write to it; its 20128# output is simply discarded. So we exec the FD to /dev/null, 20129# effectively closing config.log, so it can be properly (re)opened and 20130# appended to by config.status. When coming back to configure, we 20131# need to make the FD available again. 20132if test "$no_create" != yes; then 20133 ac_cs_success=: 20134 ac_config_status_args= 20135 test "$silent" = yes && 20136 ac_config_status_args="$ac_config_status_args --quiet" 20137 exec 5>/dev/null 20138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20139 exec 5>>config.log 20140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20141 # would make configure fail if this is the last instruction. 20142 $ac_cs_success || as_fn_exit 1 20143fi 20144if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20146$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20147fi 20148 20149