1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for XML-Security-C 2.0.4. 4# 5# Report bugs to <dev@santuario.apache.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: dev@santuario.apache.org about your system, including 280$0: any error possibly output before this message. Then 281$0: install a modern shell, or manually run the script 282$0: under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='XML-Security-C' 623PACKAGE_TARNAME='xml-security-c' 624PACKAGE_VERSION='2.0.4' 625PACKAGE_STRING='XML-Security-C 2.0.4' 626PACKAGE_BUGREPORT='dev@santuario.apache.org' 627PACKAGE_URL='' 628 629ac_unique_file="xsec" 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_subst_vars='am__EXEEXT_FALSE 663am__EXEEXT_TRUE 664LTLIBOBJS 665LIBOBJS 666XSEC_AM_HAVE_XKMS_FALSE 667XSEC_AM_HAVE_XKMS_TRUE 668XSEC_AM_HAVE_NSS_FALSE 669XSEC_AM_HAVE_NSS_TRUE 670XSEC_AM_HAVE_OPENSSL_FALSE 671XSEC_AM_HAVE_OPENSSL_TRUE 672nss_LIBS 673nss_CFLAGS 674openssl_LIBS 675openssl_CFLAGS 676xalan_LIBS 677xalan_CXXFLAGS 678xerces_CXXFLAGS 679AX_PACKAGE_REQUIRES_PRIVATE 680AX_PACKAGE_REQUIRES 681xerces_LIBS 682xerces_CFLAGS 683PKG_CONFIG_LIBDIR 684PKG_CONFIG_PATH 685PKG_CONFIG 686PTHREAD_CFLAGS 687PTHREAD_LIBS 688PTHREAD_CXX 689PTHREAD_CC 690ax_pthread_config 691CPP 692AM_CXXFLAGS 693AM_CFLAGS 694CXXCPP 695LT_SYS_LIBRARY_PATH 696OTOOL64 697OTOOL 698LIPO 699NMEDIT 700DSYMUTIL 701MANIFEST_TOOL 702RANLIB 703ac_ct_AR 704AR 705DLLTOOL 706OBJDUMP 707LN_S 708NM 709ac_ct_DUMPBIN 710DUMPBIN 711LD 712FGREP 713EGREP 714GREP 715SED 716host_os 717host_vendor 718host_cpu 719host 720build_os 721build_vendor 722build_cpu 723build 724LIBTOOL 725am__fastdepCXX_FALSE 726am__fastdepCXX_TRUE 727CXXDEPMODE 728ac_ct_CXX 729CXXFLAGS 730CXX 731am__fastdepCC_FALSE 732am__fastdepCC_TRUE 733CCDEPMODE 734am__nodep 735AMDEPBACKSLASH 736AMDEP_FALSE 737AMDEP_TRUE 738am__include 739DEPDIR 740OBJEXT 741EXEEXT 742ac_ct_CC 743CPPFLAGS 744LDFLAGS 745CFLAGS 746CC 747pkgconfigdir 748AM_BACKSLASH 749AM_DEFAULT_VERBOSITY 750AM_DEFAULT_V 751AM_V 752CSCOPE 753ETAGS 754CTAGS 755am__untar 756am__tar 757AMTAR 758am__leading_dot 759SET_MAKE 760AWK 761mkdir_p 762MKDIR_P 763INSTALL_STRIP_PROGRAM 764STRIP 765install_sh 766MAKEINFO 767AUTOHEADER 768AUTOMAKE 769AUTOCONF 770ACLOCAL 771VERSION 772PACKAGE 773CYGPATH_W 774am__isrc 775INSTALL_DATA 776INSTALL_SCRIPT 777INSTALL_PROGRAM 778target_alias 779host_alias 780build_alias 781LIBS 782ECHO_T 783ECHO_N 784ECHO_C 785DEFS 786mandir 787localedir 788libdir 789psdir 790pdfdir 791dvidir 792htmldir 793infodir 794docdir 795oldincludedir 796includedir 797runstatedir 798localstatedir 799sharedstatedir 800sysconfdir 801datadir 802datarootdir 803libexecdir 804sbindir 805bindir 806program_transform_name 807prefix 808exec_prefix 809PACKAGE_URL 810PACKAGE_BUGREPORT 811PACKAGE_STRING 812PACKAGE_VERSION 813PACKAGE_TARNAME 814PACKAGE_NAME 815PATH_SEPARATOR 816SHELL 817am__quote' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821enable_silent_rules 822with_pkgconfigdir 823enable_largefile 824enable_dependency_tracking 825enable_debug 826enable_static 827enable_shared 828with_pic 829enable_fast_install 830with_aix_soname 831with_gnu_ld 832with_sysroot 833enable_libtool_lock 834with_xalan 835with_openssl 836with_nss 837enable_xkms 838' 839 ac_precious_vars='build_alias 840host_alias 841target_alias 842CC 843CFLAGS 844LDFLAGS 845LIBS 846CPPFLAGS 847CXX 848CXXFLAGS 849CCC 850LT_SYS_LIBRARY_PATH 851CXXCPP 852CPP 853PKG_CONFIG 854PKG_CONFIG_PATH 855PKG_CONFIG_LIBDIR 856xerces_CFLAGS 857xerces_LIBS 858openssl_CFLAGS 859openssl_LIBS 860nss_CFLAGS 861nss_LIBS' 862 863 864# Initialize some variables set by options. 865ac_init_help= 866ac_init_version=false 867ac_unrecognized_opts= 868ac_unrecognized_sep= 869# The variables have the same names as the options, with 870# dashes changed to underlines. 871cache_file=/dev/null 872exec_prefix=NONE 873no_create= 874no_recursion= 875prefix=NONE 876program_prefix=NONE 877program_suffix=NONE 878program_transform_name=s,x,x, 879silent= 880site= 881srcdir= 882verbose= 883x_includes=NONE 884x_libraries=NONE 885 886# Installation directory options. 887# These are left unexpanded so users can "make install exec_prefix=/foo" 888# and all the variables that are supposed to be based on exec_prefix 889# by default will actually change. 890# Use braces instead of parens because sh, perl, etc. also accept them. 891# (The list follows the same order as the GNU Coding Standards.) 892bindir='${exec_prefix}/bin' 893sbindir='${exec_prefix}/sbin' 894libexecdir='${exec_prefix}/libexec' 895datarootdir='${prefix}/share' 896datadir='${datarootdir}' 897sysconfdir='${prefix}/etc' 898sharedstatedir='${prefix}/com' 899localstatedir='${prefix}/var' 900runstatedir='${localstatedir}/run' 901includedir='${prefix}/include' 902oldincludedir='/usr/include' 903docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 904infodir='${datarootdir}/info' 905htmldir='${docdir}' 906dvidir='${docdir}' 907pdfdir='${docdir}' 908psdir='${docdir}' 909libdir='${exec_prefix}/lib' 910localedir='${datarootdir}/locale' 911mandir='${datarootdir}/man' 912 913ac_prev= 914ac_dashdash= 915for ac_option 916do 917 # If the previous option needs an argument, assign it. 918 if test -n "$ac_prev"; then 919 eval $ac_prev=\$ac_option 920 ac_prev= 921 continue 922 fi 923 924 case $ac_option in 925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 926 *=) ac_optarg= ;; 927 *) ac_optarg=yes ;; 928 esac 929 930 case $ac_dashdash$ac_option in 931 --) 932 ac_dashdash=yes ;; 933 934 -bindir | --bindir | --bindi | --bind | --bin | --bi) 935 ac_prev=bindir ;; 936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 937 bindir=$ac_optarg ;; 938 939 -build | --build | --buil | --bui | --bu) 940 ac_prev=build_alias ;; 941 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 942 build_alias=$ac_optarg ;; 943 944 -cache-file | --cache-file | --cache-fil | --cache-fi \ 945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 946 ac_prev=cache_file ;; 947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 949 cache_file=$ac_optarg ;; 950 951 --config-cache | -C) 952 cache_file=config.cache ;; 953 954 -datadir | --datadir | --datadi | --datad) 955 ac_prev=datadir ;; 956 -datadir=* | --datadir=* | --datadi=* | --datad=*) 957 datadir=$ac_optarg ;; 958 959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 960 | --dataroo | --dataro | --datar) 961 ac_prev=datarootdir ;; 962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 964 datarootdir=$ac_optarg ;; 965 966 -disable-* | --disable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: \`$ac_useropt'" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=no ;; 981 982 -docdir | --docdir | --docdi | --doc | --do) 983 ac_prev=docdir ;; 984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 985 docdir=$ac_optarg ;; 986 987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 988 ac_prev=dvidir ;; 989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 990 dvidir=$ac_optarg ;; 991 992 -enable-* | --enable-*) 993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 996 as_fn_error $? "invalid feature name: \`$ac_useropt'" 997 ac_useropt_orig=$ac_useropt 998 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 999 case $ac_user_opts in 1000 *" 1001"enable_$ac_useropt" 1002"*) ;; 1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1004 ac_unrecognized_sep=', ';; 1005 esac 1006 eval enable_$ac_useropt=\$ac_optarg ;; 1007 1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1010 | --exec | --exe | --ex) 1011 ac_prev=exec_prefix ;; 1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1014 | --exec=* | --exe=* | --ex=*) 1015 exec_prefix=$ac_optarg ;; 1016 1017 -gas | --gas | --ga | --g) 1018 # Obsolete; use --with-gas. 1019 with_gas=yes ;; 1020 1021 -help | --help | --hel | --he | -h) 1022 ac_init_help=long ;; 1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1024 ac_init_help=recursive ;; 1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1026 ac_init_help=short ;; 1027 1028 -host | --host | --hos | --ho) 1029 ac_prev=host_alias ;; 1030 -host=* | --host=* | --hos=* | --ho=*) 1031 host_alias=$ac_optarg ;; 1032 1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1034 ac_prev=htmldir ;; 1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1036 | --ht=*) 1037 htmldir=$ac_optarg ;; 1038 1039 -includedir | --includedir | --includedi | --included | --include \ 1040 | --includ | --inclu | --incl | --inc) 1041 ac_prev=includedir ;; 1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1043 | --includ=* | --inclu=* | --incl=* | --inc=*) 1044 includedir=$ac_optarg ;; 1045 1046 -infodir | --infodir | --infodi | --infod | --info | --inf) 1047 ac_prev=infodir ;; 1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1049 infodir=$ac_optarg ;; 1050 1051 -libdir | --libdir | --libdi | --libd) 1052 ac_prev=libdir ;; 1053 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1054 libdir=$ac_optarg ;; 1055 1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1057 | --libexe | --libex | --libe) 1058 ac_prev=libexecdir ;; 1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1060 | --libexe=* | --libex=* | --libe=*) 1061 libexecdir=$ac_optarg ;; 1062 1063 -localedir | --localedir | --localedi | --localed | --locale) 1064 ac_prev=localedir ;; 1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1066 localedir=$ac_optarg ;; 1067 1068 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1069 | --localstate | --localstat | --localsta | --localst | --locals) 1070 ac_prev=localstatedir ;; 1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1073 localstatedir=$ac_optarg ;; 1074 1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1076 ac_prev=mandir ;; 1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1078 mandir=$ac_optarg ;; 1079 1080 -nfp | --nfp | --nf) 1081 # Obsolete; use --without-fp. 1082 with_fp=no ;; 1083 1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1085 | --no-cr | --no-c | -n) 1086 no_create=yes ;; 1087 1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1090 no_recursion=yes ;; 1091 1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1094 | --oldin | --oldi | --old | --ol | --o) 1095 ac_prev=oldincludedir ;; 1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1099 oldincludedir=$ac_optarg ;; 1100 1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1102 ac_prev=prefix ;; 1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1104 prefix=$ac_optarg ;; 1105 1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1107 | --program-pre | --program-pr | --program-p) 1108 ac_prev=program_prefix ;; 1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1111 program_prefix=$ac_optarg ;; 1112 1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1114 | --program-suf | --program-su | --program-s) 1115 ac_prev=program_suffix ;; 1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1118 program_suffix=$ac_optarg ;; 1119 1120 -program-transform-name | --program-transform-name \ 1121 | --program-transform-nam | --program-transform-na \ 1122 | --program-transform-n | --program-transform- \ 1123 | --program-transform | --program-transfor \ 1124 | --program-transfo | --program-transf \ 1125 | --program-trans | --program-tran \ 1126 | --progr-tra | --program-tr | --program-t) 1127 ac_prev=program_transform_name ;; 1128 -program-transform-name=* | --program-transform-name=* \ 1129 | --program-transform-nam=* | --program-transform-na=* \ 1130 | --program-transform-n=* | --program-transform-=* \ 1131 | --program-transform=* | --program-transfor=* \ 1132 | --program-transfo=* | --program-transf=* \ 1133 | --program-trans=* | --program-tran=* \ 1134 | --progr-tra=* | --program-tr=* | --program-t=*) 1135 program_transform_name=$ac_optarg ;; 1136 1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1138 ac_prev=pdfdir ;; 1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1140 pdfdir=$ac_optarg ;; 1141 1142 -psdir | --psdir | --psdi | --psd | --ps) 1143 ac_prev=psdir ;; 1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1145 psdir=$ac_optarg ;; 1146 1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1148 | -silent | --silent | --silen | --sile | --sil) 1149 silent=yes ;; 1150 1151 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1152 | --runstate | --runstat | --runsta | --runst | --runs \ 1153 | --run | --ru | --r) 1154 ac_prev=runstatedir ;; 1155 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1156 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1157 | --run=* | --ru=* | --r=*) 1158 runstatedir=$ac_optarg ;; 1159 1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1161 ac_prev=sbindir ;; 1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1163 | --sbi=* | --sb=*) 1164 sbindir=$ac_optarg ;; 1165 1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1168 | --sharedst | --shareds | --shared | --share | --shar \ 1169 | --sha | --sh) 1170 ac_prev=sharedstatedir ;; 1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1174 | --sha=* | --sh=*) 1175 sharedstatedir=$ac_optarg ;; 1176 1177 -site | --site | --sit) 1178 ac_prev=site ;; 1179 -site=* | --site=* | --sit=*) 1180 site=$ac_optarg ;; 1181 1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1183 ac_prev=srcdir ;; 1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1185 srcdir=$ac_optarg ;; 1186 1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1188 | --syscon | --sysco | --sysc | --sys | --sy) 1189 ac_prev=sysconfdir ;; 1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1192 sysconfdir=$ac_optarg ;; 1193 1194 -target | --target | --targe | --targ | --tar | --ta | --t) 1195 ac_prev=target_alias ;; 1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1197 target_alias=$ac_optarg ;; 1198 1199 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1200 verbose=yes ;; 1201 1202 -version | --version | --versio | --versi | --vers | -V) 1203 ac_init_version=: ;; 1204 1205 -with-* | --with-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: \`$ac_useropt'" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214"with_$ac_useropt" 1215"*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=\$ac_optarg ;; 1220 1221 -without-* | --without-*) 1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1223 # Reject names that are not valid shell variable names. 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225 as_fn_error $? "invalid package name: \`$ac_useropt'" 1226 ac_useropt_orig=$ac_useropt 1227 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1228 case $ac_user_opts in 1229 *" 1230"with_$ac_useropt" 1231"*) ;; 1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1233 ac_unrecognized_sep=', ';; 1234 esac 1235 eval with_$ac_useropt=no ;; 1236 1237 --x) 1238 # Obsolete; use --with-x. 1239 with_x=yes ;; 1240 1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1242 | --x-incl | --x-inc | --x-in | --x-i) 1243 ac_prev=x_includes ;; 1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1246 x_includes=$ac_optarg ;; 1247 1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1250 ac_prev=x_libraries ;; 1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1253 x_libraries=$ac_optarg ;; 1254 1255 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1256Try \`$0 --help' for more information" 1257 ;; 1258 1259 *=*) 1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261 # Reject names that are not valid shell variable names. 1262 case $ac_envvar in #( 1263 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1265 esac 1266 eval $ac_envvar=\$ac_optarg 1267 export $ac_envvar ;; 1268 1269 *) 1270 # FIXME: should be removed in autoconf 3.0. 1271 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1273 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1275 ;; 1276 1277 esac 1278done 1279 1280if test -n "$ac_prev"; then 1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1282 as_fn_error $? "missing argument to $ac_option" 1283fi 1284 1285if test -n "$ac_unrecognized_opts"; then 1286 case $enable_option_checking in 1287 no) ;; 1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1289 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1290 esac 1291fi 1292 1293# Check all directory arguments for consistency. 1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1295 datadir sysconfdir sharedstatedir localstatedir includedir \ 1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1297 libdir localedir mandir runstatedir 1298do 1299 eval ac_val=\$$ac_var 1300 # Remove trailing slashes. 1301 case $ac_val in 1302 */ ) 1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1304 eval $ac_var=\$ac_val;; 1305 esac 1306 # Be sure to have absolute directory names. 1307 case $ac_val in 1308 [\\/$]* | ?:[\\/]* ) continue;; 1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1310 esac 1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1312done 1313 1314# There might be people who depend on the old broken behavior: `$host' 1315# used to hold the argument of --host etc. 1316# FIXME: To remove some day. 1317build=$build_alias 1318host=$host_alias 1319target=$target_alias 1320 1321# FIXME: To remove some day. 1322if test "x$host_alias" != x; then 1323 if test "x$build_alias" = x; then 1324 cross_compiling=maybe 1325 elif test "x$build_alias" != "x$host_alias"; then 1326 cross_compiling=yes 1327 fi 1328fi 1329 1330ac_tool_prefix= 1331test -n "$host_alias" && ac_tool_prefix=$host_alias- 1332 1333test "$silent" = yes && exec 6>/dev/null 1334 1335 1336ac_pwd=`pwd` && test -n "$ac_pwd" && 1337ac_ls_di=`ls -di .` && 1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1339 as_fn_error $? "working directory cannot be determined" 1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1341 as_fn_error $? "pwd does not report name of working directory" 1342 1343 1344# Find the source files, if location was not specified. 1345if test -z "$srcdir"; then 1346 ac_srcdir_defaulted=yes 1347 # Try the directory containing this script, then the parent directory. 1348 ac_confdir=`$as_dirname -- "$as_myself" || 1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1350 X"$as_myself" : 'X\(//\)[^/]' \| \ 1351 X"$as_myself" : 'X\(//\)$' \| \ 1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1353printf "%s\n" X"$as_myself" | 1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)[^/].*/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)$/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\).*/{ 1367 s//\1/ 1368 q 1369 } 1370 s/.*/./; q'` 1371 srcdir=$ac_confdir 1372 if test ! -r "$srcdir/$ac_unique_file"; then 1373 srcdir=.. 1374 fi 1375else 1376 ac_srcdir_defaulted=no 1377fi 1378if test ! -r "$srcdir/$ac_unique_file"; then 1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1381fi 1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1383ac_abs_confdir=`( 1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1385 pwd)` 1386# When building in place, set srcdir=. 1387if test "$ac_abs_confdir" = "$ac_pwd"; then 1388 srcdir=. 1389fi 1390# Remove unnecessary trailing slashes from srcdir. 1391# Double slashes in file names in object file debugging info 1392# mess up M-x gdb in Emacs. 1393case $srcdir in 1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1395esac 1396for ac_var in $ac_precious_vars; do 1397 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_env_${ac_var}_value=\$${ac_var} 1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1401done 1402 1403# 1404# Report the --help message. 1405# 1406if test "$ac_init_help" = "long"; then 1407 # Omit some internal or obsolete options to make the list less imposing. 1408 # This message is too long to be a string in the A/UX 3.1 sh. 1409 cat <<_ACEOF 1410\`configure' configures XML-Security-C 2.0.4 to adapt to many kinds of systems. 1411 1412Usage: $0 [OPTION]... [VAR=VALUE]... 1413 1414To assign environment variables (e.g., CC, CFLAGS...), specify them as 1415VAR=VALUE. See below for descriptions of some of the useful variables. 1416 1417Defaults for the options are specified in brackets. 1418 1419Configuration: 1420 -h, --help display this help and exit 1421 --help=short display options specific to this package 1422 --help=recursive display the short help of all the included packages 1423 -V, --version display version information and exit 1424 -q, --quiet, --silent do not print \`checking ...' messages 1425 --cache-file=FILE cache test results in FILE [disabled] 1426 -C, --config-cache alias for \`--cache-file=config.cache' 1427 -n, --no-create do not create output files 1428 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1429 1430Installation directories: 1431 --prefix=PREFIX install architecture-independent files in PREFIX 1432 [$ac_default_prefix] 1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1434 [PREFIX] 1435 1436By default, \`make install' will install all the files in 1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1438an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1439for instance \`--prefix=\$HOME'. 1440 1441For better control, use the options below. 1442 1443Fine tuning of the installation directories: 1444 --bindir=DIR user executables [EPREFIX/bin] 1445 --sbindir=DIR system admin executables [EPREFIX/sbin] 1446 --libexecdir=DIR program executables [EPREFIX/libexec] 1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1450 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1451 --libdir=DIR object code libraries [EPREFIX/lib] 1452 --includedir=DIR C header files [PREFIX/include] 1453 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1456 --infodir=DIR info documentation [DATAROOTDIR/info] 1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1458 --mandir=DIR man documentation [DATAROOTDIR/man] 1459 --docdir=DIR documentation root [DATAROOTDIR/doc/xml-security-c] 1460 --htmldir=DIR html documentation [DOCDIR] 1461 --dvidir=DIR dvi documentation [DOCDIR] 1462 --pdfdir=DIR pdf documentation [DOCDIR] 1463 --psdir=DIR ps documentation [DOCDIR] 1464_ACEOF 1465 1466 cat <<\_ACEOF 1467 1468Program names: 1469 --program-prefix=PREFIX prepend PREFIX to installed program names 1470 --program-suffix=SUFFIX append SUFFIX to installed program names 1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1472 1473System types: 1474 --build=BUILD configure for building on BUILD [guessed] 1475 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1476_ACEOF 1477fi 1478 1479if test -n "$ac_init_help"; then 1480 case $ac_init_help in 1481 short | recursive ) echo "Configuration of XML-Security-C 2.0.4:";; 1482 esac 1483 cat <<\_ACEOF 1484 1485Optional Features: 1486 --disable-option-checking ignore unrecognized --enable/--with options 1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1489 --enable-silent-rules less verbose build output (undo: "make V=1") 1490 --disable-silent-rules verbose build output (undo: "make V=0") 1491 --disable-largefile omit support for large files 1492 --enable-dependency-tracking 1493 do not reject slow dependency extractors 1494 --disable-dependency-tracking 1495 speeds up one-time build 1496 --enable-debug Produce debug variant (Default = no) 1497 --enable-static[=PKGS] build static libraries [default=no] 1498 --enable-shared[=PKGS] build shared libraries [default=yes] 1499 --enable-fast-install[=PKGS] 1500 optimize for fast installation [default=yes] 1501 --disable-libtool-lock avoid locking (might break parallel builds) 1502 --disable-xkms disable XKMS support 1503 1504Optional Packages: 1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1507 --with-pkgconfigdir pkg-config installation directory 1508 ['${libdir}/pkgconfig'] 1509 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1510 both] 1511 --with-aix-soname=aix|svr4|both 1512 shared library versioning (aka "SONAME") variant to 1513 provide on AIX, [default=aix]. 1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1515 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1516 compiler's sysroot if not specified). 1517 --with-xalan Enable Xalan integration. Values = 'yes' or 1518 installation directory (Default = yes) 1519 --with-openssl use the OpenSSL crypto provider [default=check] 1520 --with-nss use the NSS crypto provider [default=check] 1521 1522Some influential environment variables: 1523 CC C compiler command 1524 CFLAGS C compiler flags 1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1526 nonstandard directory <lib dir> 1527 LIBS libraries to pass to the linker, e.g. -l<library> 1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1529 you have headers in a nonstandard directory <include dir> 1530 CXX C++ compiler command 1531 CXXFLAGS C++ compiler flags 1532 LT_SYS_LIBRARY_PATH 1533 User-defined run-time library search path. 1534 CXXCPP C++ preprocessor 1535 CPP C preprocessor 1536 PKG_CONFIG path to pkg-config utility 1537 PKG_CONFIG_PATH 1538 directories to add to pkg-config's search path 1539 PKG_CONFIG_LIBDIR 1540 path overriding pkg-config's built-in search path 1541 xerces_CFLAGS 1542 C compiler flags for xerces, overriding pkg-config 1543 xerces_LIBS linker flags for xerces, overriding pkg-config 1544 openssl_CFLAGS 1545 C compiler flags for openssl, overriding pkg-config 1546 openssl_LIBS 1547 linker flags for openssl, overriding pkg-config 1548 nss_CFLAGS C compiler flags for nss, overriding pkg-config 1549 nss_LIBS linker flags for nss, overriding pkg-config 1550 1551Use these variables to override the choices made by `configure' or to help 1552it to find libraries and programs with nonstandard names/locations. 1553 1554Report bugs to <dev@santuario.apache.org>. 1555_ACEOF 1556ac_status=$? 1557fi 1558 1559if test "$ac_init_help" = "recursive"; then 1560 # If there are subdirs, report their specific --help. 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1562 test -d "$ac_dir" || 1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1564 continue 1565 ac_builddir=. 1566 1567case "$ac_dir" in 1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569*) 1570 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1571 # A ".." for each directory in $ac_dir_suffix. 1572 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1573 case $ac_top_builddir_sub in 1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1576 esac ;; 1577esac 1578ac_abs_top_builddir=$ac_pwd 1579ac_abs_builddir=$ac_pwd$ac_dir_suffix 1580# for backward compatibility: 1581ac_top_builddir=$ac_top_build_prefix 1582 1583case $srcdir in 1584 .) # We are building in place. 1585 ac_srcdir=. 1586 ac_top_srcdir=$ac_top_builddir_sub 1587 ac_abs_top_srcdir=$ac_pwd ;; 1588 [\\/]* | ?:[\\/]* ) # Absolute name. 1589 ac_srcdir=$srcdir$ac_dir_suffix; 1590 ac_top_srcdir=$srcdir 1591 ac_abs_top_srcdir=$srcdir ;; 1592 *) # Relative name. 1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1594 ac_top_srcdir=$ac_top_build_prefix$srcdir 1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1596esac 1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1598 1599 cd "$ac_dir" || { ac_status=$?; continue; } 1600 # Check for configure.gnu first; this name is used for a wrapper for 1601 # Metaconfig's "Configure" on case-insensitive file systems. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618XML-Security-C configure 2.0.4 1619generated by GNU Autoconf 2.71 1620 1621Copyright (C) 2021 Free Software Foundation, Inc. 1622This configure script is free software; the Free Software Foundation 1623gives unlimited permission to copy, distribute and modify it. 1624_ACEOF 1625 exit 1626fi 1627 1628## ------------------------ ## 1629## Autoconf initialization. ## 1630## ------------------------ ## 1631 1632# ac_fn_c_try_compile LINENO 1633# -------------------------- 1634# Try to compile conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_c_try_compile () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext conftest.beam 1639 if { { ac_try="$ac_compile" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645printf "%s\n" "$ac_try_echo"; } >&5 1646 (eval "$ac_compile") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest.$ac_objext 1658then : 1659 ac_retval=0 1660else $as_nop 1661 printf "%s\n" "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_compile 1670 1671# ac_fn_cxx_try_compile LINENO 1672# ---------------------------- 1673# Try to compile conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_cxx_try_compile () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext conftest.beam 1678 if { { ac_try="$ac_compile" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684printf "%s\n" "$ac_try_echo"; } >&5 1685 (eval "$ac_compile") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_cxx_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest.$ac_objext 1697then : 1698 ac_retval=0 1699else $as_nop 1700 printf "%s\n" "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704fi 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_cxx_try_compile 1709 1710# ac_fn_c_try_link LINENO 1711# ----------------------- 1712# Try to link conftest.$ac_ext, and return whether this succeeded. 1713ac_fn_c_try_link () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1717 if { { ac_try="$ac_link" 1718case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723printf "%s\n" "$ac_try_echo"; } >&5 1724 (eval "$ac_link") 2>conftest.err 1725 ac_status=$? 1726 if test -s conftest.err; then 1727 grep -v '^ *+' conftest.err >conftest.er1 1728 cat conftest.er1 >&5 1729 mv -f conftest.er1 conftest.err 1730 fi 1731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { 1733 test -z "$ac_c_werror_flag" || 1734 test ! -s conftest.err 1735 } && test -s conftest$ac_exeext && { 1736 test "$cross_compiling" = yes || 1737 test -x conftest$ac_exeext 1738 } 1739then : 1740 ac_retval=0 1741else $as_nop 1742 printf "%s\n" "$as_me: failed program was:" >&5 1743sed 's/^/| /' conftest.$ac_ext >&5 1744 1745 ac_retval=1 1746fi 1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1749 # interfere with the next link command; also delete a directory that is 1750 # left behind by Apple's compiler. We do this before executing the actions. 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_link 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765printf %s "checking for $2... " >&6; } 1766if eval test \${$3+y} 1767then : 1768 printf %s "(cached) " >&6 1769else $as_nop 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772$4 1773#include <$2> 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO" 1776then : 1777 eval "$3=yes" 1778else $as_nop 1779 eval "$3=no" 1780fi 1781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1782fi 1783eval ac_res=\$$3 1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785printf "%s\n" "$ac_res" >&6; } 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 1788} # ac_fn_c_check_header_compile 1789 1790# ac_fn_c_check_func LINENO FUNC VAR 1791# ---------------------------------- 1792# Tests whether FUNC exists, setting the cache variable VAR accordingly 1793ac_fn_c_check_func () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797printf %s "checking for $2... " >&6; } 1798if eval test \${$3+y} 1799then : 1800 printf %s "(cached) " >&6 1801else $as_nop 1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803/* end confdefs.h. */ 1804/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1806#define $2 innocuous_$2 1807 1808/* System header to define __stub macros and hopefully few prototypes, 1809 which can conflict with char $2 (); below. */ 1810 1811#include <limits.h> 1812#undef $2 1813 1814/* Override any GCC internal prototype to avoid an error. 1815 Use char because int might match the return type of a GCC 1816 builtin and then its argument prototype would still apply. */ 1817#ifdef __cplusplus 1818extern "C" 1819#endif 1820char $2 (); 1821/* The GNU C library defines this for functions which it implements 1822 to always fail with ENOSYS. Some functions are actually named 1823 something starting with __ and the normal name is an alias. */ 1824#if defined __stub_$2 || defined __stub___$2 1825choke me 1826#endif 1827 1828int 1829main (void) 1830{ 1831return $2 (); 1832 ; 1833 return 0; 1834} 1835_ACEOF 1836if ac_fn_c_try_link "$LINENO" 1837then : 1838 eval "$3=yes" 1839else $as_nop 1840 eval "$3=no" 1841fi 1842rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1843 conftest$ac_exeext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847printf "%s\n" "$ac_res" >&6; } 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 1850} # ac_fn_c_check_func 1851 1852# ac_fn_cxx_try_cpp LINENO 1853# ------------------------ 1854# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1855ac_fn_cxx_try_cpp () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 if { { ac_try="$ac_cpp conftest.$ac_ext" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864printf "%s\n" "$ac_try_echo"; } >&5 1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1866 ac_status=$? 1867 if test -s conftest.err; then 1868 grep -v '^ *+' conftest.err >conftest.er1 1869 cat conftest.er1 >&5 1870 mv -f conftest.er1 conftest.err 1871 fi 1872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } > conftest.i && { 1874 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1875 test ! -s conftest.err 1876 } 1877then : 1878 ac_retval=0 1879else $as_nop 1880 printf "%s\n" "$as_me: failed program was:" >&5 1881sed 's/^/| /' conftest.$ac_ext >&5 1882 1883 ac_retval=1 1884fi 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1886 as_fn_set_status $ac_retval 1887 1888} # ac_fn_cxx_try_cpp 1889 1890# ac_fn_cxx_try_link LINENO 1891# ------------------------- 1892# Try to link conftest.$ac_ext, and return whether this succeeded. 1893ac_fn_cxx_try_link () 1894{ 1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1896 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1897 if { { ac_try="$ac_link" 1898case "(($ac_try" in 1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1900 *) ac_try_echo=$ac_try;; 1901esac 1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1903printf "%s\n" "$ac_try_echo"; } >&5 1904 (eval "$ac_link") 2>conftest.err 1905 ac_status=$? 1906 if test -s conftest.err; then 1907 grep -v '^ *+' conftest.err >conftest.er1 1908 cat conftest.er1 >&5 1909 mv -f conftest.er1 conftest.err 1910 fi 1911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1912 test $ac_status = 0; } && { 1913 test -z "$ac_cxx_werror_flag" || 1914 test ! -s conftest.err 1915 } && test -s conftest$ac_exeext && { 1916 test "$cross_compiling" = yes || 1917 test -x conftest$ac_exeext 1918 } 1919then : 1920 ac_retval=0 1921else $as_nop 1922 printf "%s\n" "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=1 1926fi 1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1929 # interfere with the next link command; also delete a directory that is 1930 # left behind by Apple's compiler. We do this before executing the actions. 1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_link 1936 1937# ac_fn_c_try_cpp LINENO 1938# ---------------------- 1939# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1940ac_fn_c_try_cpp () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 if { { ac_try="$ac_cpp conftest.$ac_ext" 1944case "(($ac_try" in 1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1946 *) ac_try_echo=$ac_try;; 1947esac 1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1949printf "%s\n" "$ac_try_echo"; } >&5 1950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1951 ac_status=$? 1952 if test -s conftest.err; then 1953 grep -v '^ *+' conftest.err >conftest.er1 1954 cat conftest.er1 >&5 1955 mv -f conftest.er1 conftest.err 1956 fi 1957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1958 test $ac_status = 0; } > conftest.i && { 1959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1960 test ! -s conftest.err 1961 } 1962then : 1963 ac_retval=0 1964else $as_nop 1965 printf "%s\n" "$as_me: failed program was:" >&5 1966sed 's/^/| /' conftest.$ac_ext >&5 1967 1968 ac_retval=1 1969fi 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 as_fn_set_status $ac_retval 1972 1973} # ac_fn_c_try_cpp 1974 1975# ac_fn_c_try_run LINENO 1976# ---------------------- 1977# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1978# executables *can* be run. 1979ac_fn_c_try_run () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 if { { ac_try="$ac_link" 1983case "(($ac_try" in 1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1985 *) ac_try_echo=$ac_try;; 1986esac 1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1988printf "%s\n" "$ac_try_echo"; } >&5 1989 (eval "$ac_link") 2>&5 1990 ac_status=$? 1991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1993 { { case "(($ac_try" in 1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1995 *) ac_try_echo=$ac_try;; 1996esac 1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1998printf "%s\n" "$ac_try_echo"; } >&5 1999 (eval "$ac_try") 2>&5 2000 ac_status=$? 2001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2002 test $ac_status = 0; }; } 2003then : 2004 ac_retval=0 2005else $as_nop 2006 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2007 printf "%s\n" "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=$ac_status 2011fi 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016} # ac_fn_c_try_run 2017 2018# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2019# --------------------------------------------------------- 2020# Tests whether HEADER exists and can be compiled using the include files in 2021# INCLUDES, setting the cache variable VAR accordingly. 2022ac_fn_cxx_check_header_compile () 2023{ 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2026printf %s "checking for $2... " >&6; } 2027if eval test \${$3+y} 2028then : 2029 printf %s "(cached) " >&6 2030else $as_nop 2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032/* end confdefs.h. */ 2033$4 2034#include <$2> 2035_ACEOF 2036if ac_fn_cxx_try_compile "$LINENO" 2037then : 2038 eval "$3=yes" 2039else $as_nop 2040 eval "$3=no" 2041fi 2042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2043fi 2044eval ac_res=\$$3 2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2046printf "%s\n" "$ac_res" >&6; } 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2048 2049} # ac_fn_cxx_check_header_compile 2050 2051# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2052# ------------------------------------------------------------------ 2053# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2054# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2055ac_fn_check_decl () 2056{ 2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2058 as_decl_name=`echo $2|sed 's/ *(.*//'` 2059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2060printf %s "checking whether $as_decl_name is declared... " >&6; } 2061if eval test \${$3+y} 2062then : 2063 printf %s "(cached) " >&6 2064else $as_nop 2065 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2066 eval ac_save_FLAGS=\$$6 2067 as_fn_append $6 " $5" 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070$4 2071int 2072main (void) 2073{ 2074#ifndef $as_decl_name 2075#ifdef __cplusplus 2076 (void) $as_decl_use; 2077#else 2078 (void) $as_decl_name; 2079#endif 2080#endif 2081 2082 ; 2083 return 0; 2084} 2085_ACEOF 2086if ac_fn_c_try_compile "$LINENO" 2087then : 2088 eval "$3=yes" 2089else $as_nop 2090 eval "$3=no" 2091fi 2092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2093 eval $6=\$ac_save_FLAGS 2094 2095fi 2096eval ac_res=\$$3 2097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2098printf "%s\n" "$ac_res" >&6; } 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2100 2101} # ac_fn_check_decl 2102ac_configure_args_raw= 2103for ac_arg 2104do 2105 case $ac_arg in 2106 *\'*) 2107 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2108 esac 2109 as_fn_append ac_configure_args_raw " '$ac_arg'" 2110done 2111 2112case $ac_configure_args_raw in 2113 *$as_nl*) 2114 ac_safe_unquote= ;; 2115 *) 2116 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2117 ac_unsafe_a="$ac_unsafe_z#~" 2118 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2119 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2120esac 2121 2122cat >config.log <<_ACEOF 2123This file contains any messages produced by compilers while 2124running configure, to aid debugging if configure makes a mistake. 2125 2126It was created by XML-Security-C $as_me 2.0.4, which was 2127generated by GNU Autoconf 2.71. Invocation command line was 2128 2129 $ $0$ac_configure_args_raw 2130 2131_ACEOF 2132exec 5>>config.log 2133{ 2134cat <<_ASUNAME 2135## --------- ## 2136## Platform. ## 2137## --------- ## 2138 2139hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2140uname -m = `(uname -m) 2>/dev/null || echo unknown` 2141uname -r = `(uname -r) 2>/dev/null || echo unknown` 2142uname -s = `(uname -s) 2>/dev/null || echo unknown` 2143uname -v = `(uname -v) 2>/dev/null || echo unknown` 2144 2145/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2146/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2147 2148/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2149/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2150/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2151/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2152/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2153/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2154/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2155 2156_ASUNAME 2157 2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2159for as_dir in $PATH 2160do 2161 IFS=$as_save_IFS 2162 case $as_dir in #((( 2163 '') as_dir=./ ;; 2164 */) ;; 2165 *) as_dir=$as_dir/ ;; 2166 esac 2167 printf "%s\n" "PATH: $as_dir" 2168 done 2169IFS=$as_save_IFS 2170 2171} >&5 2172 2173cat >&5 <<_ACEOF 2174 2175 2176## ----------- ## 2177## Core tests. ## 2178## ----------- ## 2179 2180_ACEOF 2181 2182 2183# Keep a trace of the command line. 2184# Strip out --no-create and --no-recursion so they do not pile up. 2185# Strip out --silent because we don't want to record it for future runs. 2186# Also quote any args containing shell meta-characters. 2187# Make two passes to allow for proper duplicate-argument suppression. 2188ac_configure_args= 2189ac_configure_args0= 2190ac_configure_args1= 2191ac_must_keep_next=false 2192for ac_pass in 1 2 2193do 2194 for ac_arg 2195 do 2196 case $ac_arg in 2197 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2199 | -silent | --silent | --silen | --sile | --sil) 2200 continue ;; 2201 *\'*) 2202 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2203 esac 2204 case $ac_pass in 2205 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2206 2) 2207 as_fn_append ac_configure_args1 " '$ac_arg'" 2208 if test $ac_must_keep_next = true; then 2209 ac_must_keep_next=false # Got value, back to normal. 2210 else 2211 case $ac_arg in 2212 *=* | --config-cache | -C | -disable-* | --disable-* \ 2213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2215 | -with-* | --with-* | -without-* | --without-* | --x) 2216 case "$ac_configure_args0 " in 2217 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2218 esac 2219 ;; 2220 -* ) ac_must_keep_next=true ;; 2221 esac 2222 fi 2223 as_fn_append ac_configure_args " '$ac_arg'" 2224 ;; 2225 esac 2226 done 2227done 2228{ ac_configure_args0=; unset ac_configure_args0;} 2229{ ac_configure_args1=; unset ac_configure_args1;} 2230 2231# When interrupted or exit'd, cleanup temporary files, and complete 2232# config.log. We remove comments because anyway the quotes in there 2233# would cause problems or look ugly. 2234# WARNING: Use '\'' to represent an apostrophe within the trap. 2235# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2236trap 'exit_status=$? 2237 # Sanitize IFS. 2238 IFS=" "" $as_nl" 2239 # Save into config.log some information that might help in debugging. 2240 { 2241 echo 2242 2243 printf "%s\n" "## ---------------- ## 2244## Cache variables. ## 2245## ---------------- ##" 2246 echo 2247 # The following way of writing the cache mishandles newlines in values, 2248( 2249 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2250 eval ac_val=\$$ac_var 2251 case $ac_val in #( 2252 *${as_nl}*) 2253 case $ac_var in #( 2254 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2255printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2256 esac 2257 case $ac_var in #( 2258 _ | IFS | as_nl) ;; #( 2259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2260 *) { eval $ac_var=; unset $ac_var;} ;; 2261 esac ;; 2262 esac 2263 done 2264 (set) 2>&1 | 2265 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2266 *${as_nl}ac_space=\ *) 2267 sed -n \ 2268 "s/'\''/'\''\\\\'\'''\''/g; 2269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2270 ;; #( 2271 *) 2272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2273 ;; 2274 esac | 2275 sort 2276) 2277 echo 2278 2279 printf "%s\n" "## ----------------- ## 2280## Output variables. ## 2281## ----------------- ##" 2282 echo 2283 for ac_var in $ac_subst_vars 2284 do 2285 eval ac_val=\$$ac_var 2286 case $ac_val in 2287 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2288 esac 2289 printf "%s\n" "$ac_var='\''$ac_val'\''" 2290 done | sort 2291 echo 2292 2293 if test -n "$ac_subst_files"; then 2294 printf "%s\n" "## ------------------- ## 2295## File substitutions. ## 2296## ------------------- ##" 2297 echo 2298 for ac_var in $ac_subst_files 2299 do 2300 eval ac_val=\$$ac_var 2301 case $ac_val in 2302 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2303 esac 2304 printf "%s\n" "$ac_var='\''$ac_val'\''" 2305 done | sort 2306 echo 2307 fi 2308 2309 if test -s confdefs.h; then 2310 printf "%s\n" "## ----------- ## 2311## confdefs.h. ## 2312## ----------- ##" 2313 echo 2314 cat confdefs.h 2315 echo 2316 fi 2317 test "$ac_signal" != 0 && 2318 printf "%s\n" "$as_me: caught signal $ac_signal" 2319 printf "%s\n" "$as_me: exit $exit_status" 2320 } >&5 2321 rm -f core *.core core.conftest.* && 2322 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2323 exit $exit_status 2324' 0 2325for ac_signal in 1 2 13 15; do 2326 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2327done 2328ac_signal=0 2329 2330# confdefs.h avoids OS command line length limits that DEFS can exceed. 2331rm -f -r conftest* confdefs.h 2332 2333printf "%s\n" "/* confdefs.h */" > confdefs.h 2334 2335# Predefined preprocessor variables. 2336 2337printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2338 2339printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2340 2341printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2342 2343printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2344 2345printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2346 2347printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2348 2349 2350# Let the site file select an alternate cache file if it wants to. 2351# Prefer an explicitly selected file to automatically selected ones. 2352if test -n "$CONFIG_SITE"; then 2353 ac_site_files="$CONFIG_SITE" 2354elif test "x$prefix" != xNONE; then 2355 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2356else 2357 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2358fi 2359 2360for ac_site_file in $ac_site_files 2361do 2362 case $ac_site_file in #( 2363 */*) : 2364 ;; #( 2365 *) : 2366 ac_site_file=./$ac_site_file ;; 2367esac 2368 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2370printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2371 sed 's/^/| /' "$ac_site_file" >&5 2372 . "$ac_site_file" \ 2373 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2374printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2375as_fn_error $? "failed to load site script $ac_site_file 2376See \`config.log' for more details" "$LINENO" 5; } 2377 fi 2378done 2379 2380if test -r "$cache_file"; then 2381 # Some versions of bash will fail to source /dev/null (special files 2382 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2383 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2385printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2386 case $cache_file in 2387 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2388 *) . "./$cache_file";; 2389 esac 2390 fi 2391else 2392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2393printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2394 >$cache_file 2395fi 2396 2397# Test code for whether the C compiler supports C89 (global declarations) 2398ac_c_conftest_c89_globals=' 2399/* Does the compiler advertise C89 conformance? 2400 Do not test the value of __STDC__, because some compilers set it to 0 2401 while being otherwise adequately conformant. */ 2402#if !defined __STDC__ 2403# error "Compiler does not advertise C89 conformance" 2404#endif 2405 2406#include <stddef.h> 2407#include <stdarg.h> 2408struct stat; 2409/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2410struct buf { int x; }; 2411struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2412static char *e (p, i) 2413 char **p; 2414 int i; 2415{ 2416 return p[i]; 2417} 2418static char *f (char * (*g) (char **, int), char **p, ...) 2419{ 2420 char *s; 2421 va_list v; 2422 va_start (v,p); 2423 s = g (p, va_arg (v,int)); 2424 va_end (v); 2425 return s; 2426} 2427 2428/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2429 function prototypes and stuff, but not \xHH hex character constants. 2430 These do not provoke an error unfortunately, instead are silently treated 2431 as an "x". The following induces an error, until -std is added to get 2432 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2433 array size at least. It is necessary to write \x00 == 0 to get something 2434 that is true only with -std. */ 2435int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2436 2437/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2438 inside strings and character constants. */ 2439#define FOO(x) '\''x'\'' 2440int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2441 2442int test (int i, double x); 2443struct s1 {int (*f) (int a);}; 2444struct s2 {int (*f) (double a);}; 2445int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2446 int, int);' 2447 2448# Test code for whether the C compiler supports C89 (body of main). 2449ac_c_conftest_c89_main=' 2450ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2451' 2452 2453# Test code for whether the C compiler supports C99 (global declarations) 2454ac_c_conftest_c99_globals=' 2455// Does the compiler advertise C99 conformance? 2456#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2457# error "Compiler does not advertise C99 conformance" 2458#endif 2459 2460#include <stdbool.h> 2461extern int puts (const char *); 2462extern int printf (const char *, ...); 2463extern int dprintf (int, const char *, ...); 2464extern void *malloc (size_t); 2465 2466// Check varargs macros. These examples are taken from C99 6.10.3.5. 2467// dprintf is used instead of fprintf to avoid needing to declare 2468// FILE and stderr. 2469#define debug(...) dprintf (2, __VA_ARGS__) 2470#define showlist(...) puts (#__VA_ARGS__) 2471#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2472static void 2473test_varargs_macros (void) 2474{ 2475 int x = 1234; 2476 int y = 5678; 2477 debug ("Flag"); 2478 debug ("X = %d\n", x); 2479 showlist (The first, second, and third items.); 2480 report (x>y, "x is %d but y is %d", x, y); 2481} 2482 2483// Check long long types. 2484#define BIG64 18446744073709551615ull 2485#define BIG32 4294967295ul 2486#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2487#if !BIG_OK 2488 #error "your preprocessor is broken" 2489#endif 2490#if BIG_OK 2491#else 2492 #error "your preprocessor is broken" 2493#endif 2494static long long int bignum = -9223372036854775807LL; 2495static unsigned long long int ubignum = BIG64; 2496 2497struct incomplete_array 2498{ 2499 int datasize; 2500 double data[]; 2501}; 2502 2503struct named_init { 2504 int number; 2505 const wchar_t *name; 2506 double average; 2507}; 2508 2509typedef const char *ccp; 2510 2511static inline int 2512test_restrict (ccp restrict text) 2513{ 2514 // See if C++-style comments work. 2515 // Iterate through items via the restricted pointer. 2516 // Also check for declarations in for loops. 2517 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2518 continue; 2519 return 0; 2520} 2521 2522// Check varargs and va_copy. 2523static bool 2524test_varargs (const char *format, ...) 2525{ 2526 va_list args; 2527 va_start (args, format); 2528 va_list args_copy; 2529 va_copy (args_copy, args); 2530 2531 const char *str = ""; 2532 int number = 0; 2533 float fnumber = 0; 2534 2535 while (*format) 2536 { 2537 switch (*format++) 2538 { 2539 case '\''s'\'': // string 2540 str = va_arg (args_copy, const char *); 2541 break; 2542 case '\''d'\'': // int 2543 number = va_arg (args_copy, int); 2544 break; 2545 case '\''f'\'': // float 2546 fnumber = va_arg (args_copy, double); 2547 break; 2548 default: 2549 break; 2550 } 2551 } 2552 va_end (args_copy); 2553 va_end (args); 2554 2555 return *str && number && fnumber; 2556} 2557' 2558 2559# Test code for whether the C compiler supports C99 (body of main). 2560ac_c_conftest_c99_main=' 2561 // Check bool. 2562 _Bool success = false; 2563 success |= (argc != 0); 2564 2565 // Check restrict. 2566 if (test_restrict ("String literal") == 0) 2567 success = true; 2568 char *restrict newvar = "Another string"; 2569 2570 // Check varargs. 2571 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2572 test_varargs_macros (); 2573 2574 // Check flexible array members. 2575 struct incomplete_array *ia = 2576 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2577 ia->datasize = 10; 2578 for (int i = 0; i < ia->datasize; ++i) 2579 ia->data[i] = i * 1.234; 2580 2581 // Check named initializers. 2582 struct named_init ni = { 2583 .number = 34, 2584 .name = L"Test wide string", 2585 .average = 543.34343, 2586 }; 2587 2588 ni.number = 58; 2589 2590 int dynamic_array[ni.number]; 2591 dynamic_array[0] = argv[0][0]; 2592 dynamic_array[ni.number - 1] = 543; 2593 2594 // work around unused variable warnings 2595 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2596 || dynamic_array[ni.number - 1] != 543); 2597' 2598 2599# Test code for whether the C compiler supports C11 (global declarations) 2600ac_c_conftest_c11_globals=' 2601// Does the compiler advertise C11 conformance? 2602#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2603# error "Compiler does not advertise C11 conformance" 2604#endif 2605 2606// Check _Alignas. 2607char _Alignas (double) aligned_as_double; 2608char _Alignas (0) no_special_alignment; 2609extern char aligned_as_int; 2610char _Alignas (0) _Alignas (int) aligned_as_int; 2611 2612// Check _Alignof. 2613enum 2614{ 2615 int_alignment = _Alignof (int), 2616 int_array_alignment = _Alignof (int[100]), 2617 char_alignment = _Alignof (char) 2618}; 2619_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2620 2621// Check _Noreturn. 2622int _Noreturn does_not_return (void) { for (;;) continue; } 2623 2624// Check _Static_assert. 2625struct test_static_assert 2626{ 2627 int x; 2628 _Static_assert (sizeof (int) <= sizeof (long int), 2629 "_Static_assert does not work in struct"); 2630 long int y; 2631}; 2632 2633// Check UTF-8 literals. 2634#define u8 syntax error! 2635char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2636 2637// Check duplicate typedefs. 2638typedef long *long_ptr; 2639typedef long int *long_ptr; 2640typedef long_ptr long_ptr; 2641 2642// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2643struct anonymous 2644{ 2645 union { 2646 struct { int i; int j; }; 2647 struct { int k; long int l; } w; 2648 }; 2649 int m; 2650} v1; 2651' 2652 2653# Test code for whether the C compiler supports C11 (body of main). 2654ac_c_conftest_c11_main=' 2655 _Static_assert ((offsetof (struct anonymous, i) 2656 == offsetof (struct anonymous, w.k)), 2657 "Anonymous union alignment botch"); 2658 v1.i = 2; 2659 v1.w.k = 5; 2660 ok |= v1.i != 5; 2661' 2662 2663# Test code for whether the C compiler supports C11 (complete). 2664ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2665${ac_c_conftest_c99_globals} 2666${ac_c_conftest_c11_globals} 2667 2668int 2669main (int argc, char **argv) 2670{ 2671 int ok = 0; 2672 ${ac_c_conftest_c89_main} 2673 ${ac_c_conftest_c99_main} 2674 ${ac_c_conftest_c11_main} 2675 return ok; 2676} 2677" 2678 2679# Test code for whether the C compiler supports C99 (complete). 2680ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2681${ac_c_conftest_c99_globals} 2682 2683int 2684main (int argc, char **argv) 2685{ 2686 int ok = 0; 2687 ${ac_c_conftest_c89_main} 2688 ${ac_c_conftest_c99_main} 2689 return ok; 2690} 2691" 2692 2693# Test code for whether the C compiler supports C89 (complete). 2694ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2695 2696int 2697main (int argc, char **argv) 2698{ 2699 int ok = 0; 2700 ${ac_c_conftest_c89_main} 2701 return ok; 2702} 2703" 2704 2705# Test code for whether the C++ compiler supports C++98 (global declarations) 2706ac_cxx_conftest_cxx98_globals=' 2707// Does the compiler advertise C++98 conformance? 2708#if !defined __cplusplus || __cplusplus < 199711L 2709# error "Compiler does not advertise C++98 conformance" 2710#endif 2711 2712// These inclusions are to reject old compilers that 2713// lack the unsuffixed header files. 2714#include <cstdlib> 2715#include <exception> 2716 2717// <cassert> and <cstring> are *not* freestanding headers in C++98. 2718extern void assert (int); 2719namespace std { 2720 extern int strcmp (const char *, const char *); 2721} 2722 2723// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2724using std::exception; 2725using std::strcmp; 2726 2727namespace { 2728 2729void test_exception_syntax() 2730{ 2731 try { 2732 throw "test"; 2733 } catch (const char *s) { 2734 // Extra parentheses suppress a warning when building autoconf itself, 2735 // due to lint rules shared with more typical C programs. 2736 assert (!(strcmp) (s, "test")); 2737 } 2738} 2739 2740template <typename T> struct test_template 2741{ 2742 T const val; 2743 explicit test_template(T t) : val(t) {} 2744 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2745}; 2746 2747} // anonymous namespace 2748' 2749 2750# Test code for whether the C++ compiler supports C++98 (body of main) 2751ac_cxx_conftest_cxx98_main=' 2752 assert (argc); 2753 assert (! argv[0]); 2754{ 2755 test_exception_syntax (); 2756 test_template<double> tt (2.0); 2757 assert (tt.add (4) == 6.0); 2758 assert (true && !false); 2759} 2760' 2761 2762# Test code for whether the C++ compiler supports C++11 (global declarations) 2763ac_cxx_conftest_cxx11_globals=' 2764// Does the compiler advertise C++ 2011 conformance? 2765#if !defined __cplusplus || __cplusplus < 201103L 2766# error "Compiler does not advertise C++11 conformance" 2767#endif 2768 2769namespace cxx11test 2770{ 2771 constexpr int get_val() { return 20; } 2772 2773 struct testinit 2774 { 2775 int i; 2776 double d; 2777 }; 2778 2779 class delegate 2780 { 2781 public: 2782 delegate(int n) : n(n) {} 2783 delegate(): delegate(2354) {} 2784 2785 virtual int getval() { return this->n; }; 2786 protected: 2787 int n; 2788 }; 2789 2790 class overridden : public delegate 2791 { 2792 public: 2793 overridden(int n): delegate(n) {} 2794 virtual int getval() override final { return this->n * 2; } 2795 }; 2796 2797 class nocopy 2798 { 2799 public: 2800 nocopy(int i): i(i) {} 2801 nocopy() = default; 2802 nocopy(const nocopy&) = delete; 2803 nocopy & operator=(const nocopy&) = delete; 2804 private: 2805 int i; 2806 }; 2807 2808 // for testing lambda expressions 2809 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2810 { 2811 return f(v); 2812 } 2813 2814 // for testing variadic templates and trailing return types 2815 template <typename V> auto sum(V first) -> V 2816 { 2817 return first; 2818 } 2819 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2820 { 2821 return first + sum(rest...); 2822 } 2823} 2824' 2825 2826# Test code for whether the C++ compiler supports C++11 (body of main) 2827ac_cxx_conftest_cxx11_main=' 2828{ 2829 // Test auto and decltype 2830 auto a1 = 6538; 2831 auto a2 = 48573953.4; 2832 auto a3 = "String literal"; 2833 2834 int total = 0; 2835 for (auto i = a3; *i; ++i) { total += *i; } 2836 2837 decltype(a2) a4 = 34895.034; 2838} 2839{ 2840 // Test constexpr 2841 short sa[cxx11test::get_val()] = { 0 }; 2842} 2843{ 2844 // Test initializer lists 2845 cxx11test::testinit il = { 4323, 435234.23544 }; 2846} 2847{ 2848 // Test range-based for 2849 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2850 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2851 for (auto &x : array) { x += 23; } 2852} 2853{ 2854 // Test lambda expressions 2855 using cxx11test::eval; 2856 assert (eval ([](int x) { return x*2; }, 21) == 42); 2857 double d = 2.0; 2858 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2859 assert (d == 5.0); 2860 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2861 assert (d == 5.0); 2862} 2863{ 2864 // Test use of variadic templates 2865 using cxx11test::sum; 2866 auto a = sum(1); 2867 auto b = sum(1, 2); 2868 auto c = sum(1.0, 2.0, 3.0); 2869} 2870{ 2871 // Test constructor delegation 2872 cxx11test::delegate d1; 2873 cxx11test::delegate d2(); 2874 cxx11test::delegate d3(45); 2875} 2876{ 2877 // Test override and final 2878 cxx11test::overridden o1(55464); 2879} 2880{ 2881 // Test nullptr 2882 char *c = nullptr; 2883} 2884{ 2885 // Test template brackets 2886 test_template<::test_template<int>> v(test_template<int>(12)); 2887} 2888{ 2889 // Unicode literals 2890 char const *utf8 = u8"UTF-8 string \u2500"; 2891 char16_t const *utf16 = u"UTF-8 string \u2500"; 2892 char32_t const *utf32 = U"UTF-32 string \u2500"; 2893} 2894' 2895 2896# Test code for whether the C compiler supports C++11 (complete). 2897ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2898${ac_cxx_conftest_cxx11_globals} 2899 2900int 2901main (int argc, char **argv) 2902{ 2903 int ok = 0; 2904 ${ac_cxx_conftest_cxx98_main} 2905 ${ac_cxx_conftest_cxx11_main} 2906 return ok; 2907} 2908" 2909 2910# Test code for whether the C compiler supports C++98 (complete). 2911ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2912int 2913main (int argc, char **argv) 2914{ 2915 int ok = 0; 2916 ${ac_cxx_conftest_cxx98_main} 2917 return ok; 2918} 2919" 2920 2921as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2922as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2923as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2924as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2925as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2926as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2927as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2928as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2929as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2930 2931# Auxiliary files required by this configure script. 2932ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2933 2934# Locations in which to look for auxiliary files. 2935ac_aux_dir_candidates="${srcdir}/build-aux" 2936 2937# Search for a directory containing all of the required auxiliary files, 2938# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2939# If we don't find one directory that contains all the files we need, 2940# we report the set of missing files from the *first* directory in 2941# $ac_aux_dir_candidates and give up. 2942ac_missing_aux_files="" 2943ac_first_candidate=: 2944printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946as_found=false 2947for as_dir in $ac_aux_dir_candidates 2948do 2949 IFS=$as_save_IFS 2950 case $as_dir in #((( 2951 '') as_dir=./ ;; 2952 */) ;; 2953 *) as_dir=$as_dir/ ;; 2954 esac 2955 as_found=: 2956 2957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2958 ac_aux_dir_found=yes 2959 ac_install_sh= 2960 for ac_aux in $ac_aux_files 2961 do 2962 # As a special case, if "install-sh" is required, that requirement 2963 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2964 # and $ac_install_sh is set appropriately for whichever one is found. 2965 if test x"$ac_aux" = x"install-sh" 2966 then 2967 if test -f "${as_dir}install-sh"; then 2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2969 ac_install_sh="${as_dir}install-sh -c" 2970 elif test -f "${as_dir}install.sh"; then 2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2972 ac_install_sh="${as_dir}install.sh -c" 2973 elif test -f "${as_dir}shtool"; then 2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2975 ac_install_sh="${as_dir}shtool install -c" 2976 else 2977 ac_aux_dir_found=no 2978 if $ac_first_candidate; then 2979 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2980 else 2981 break 2982 fi 2983 fi 2984 else 2985 if test -f "${as_dir}${ac_aux}"; then 2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2987 else 2988 ac_aux_dir_found=no 2989 if $ac_first_candidate; then 2990 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2991 else 2992 break 2993 fi 2994 fi 2995 fi 2996 done 2997 if test "$ac_aux_dir_found" = yes; then 2998 ac_aux_dir="$as_dir" 2999 break 3000 fi 3001 ac_first_candidate=false 3002 3003 as_found=false 3004done 3005IFS=$as_save_IFS 3006if $as_found 3007then : 3008 3009else $as_nop 3010 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3011fi 3012 3013 3014# These three variables are undocumented and unsupported, 3015# and are intended to be withdrawn in a future Autoconf release. 3016# They can cause serious problems if a builder's source tree is in a directory 3017# whose full name contains unusual characters. 3018if test -f "${ac_aux_dir}config.guess"; then 3019 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3020fi 3021if test -f "${ac_aux_dir}config.sub"; then 3022 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3023fi 3024if test -f "$ac_aux_dir/configure"; then 3025 ac_configure="$SHELL ${ac_aux_dir}configure" 3026fi 3027 3028# Check that the precious variables saved in the cache have kept the same 3029# value. 3030ac_cache_corrupted=false 3031for ac_var in $ac_precious_vars; do 3032 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3033 eval ac_new_set=\$ac_env_${ac_var}_set 3034 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3035 eval ac_new_val=\$ac_env_${ac_var}_value 3036 case $ac_old_set,$ac_new_set in 3037 set,) 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3039printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3040 ac_cache_corrupted=: ;; 3041 ,set) 3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3043printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3044 ac_cache_corrupted=: ;; 3045 ,);; 3046 *) 3047 if test "x$ac_old_val" != "x$ac_new_val"; then 3048 # differences in whitespace do not lead to failure. 3049 ac_old_val_w=`echo x $ac_old_val` 3050 ac_new_val_w=`echo x $ac_new_val` 3051 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3053printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3054 ac_cache_corrupted=: 3055 else 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3057printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3058 eval $ac_var=\$ac_old_val 3059 fi 3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3061printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3063printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3064 fi;; 3065 esac 3066 # Pass precious variables to config.status. 3067 if test "$ac_new_set" = set; then 3068 case $ac_new_val in 3069 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3070 *) ac_arg=$ac_var=$ac_new_val ;; 3071 esac 3072 case " $ac_configure_args " in 3073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3074 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3075 esac 3076 fi 3077done 3078if $ac_cache_corrupted; then 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3080printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3082printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3083 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3084 and start over" "$LINENO" 5 3085fi 3086## -------------------- ## 3087## Main body of script. ## 3088## -------------------- ## 3089 3090ac_ext=c 3091ac_cpp='$CPP $CPPFLAGS' 3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3094ac_compiler_gnu=$ac_cv_c_compiler_gnu 3095 3096 3097 3098 3099 3100am__api_version='1.16' 3101 3102 3103 3104 # Find a good install program. We prefer a C program (faster), 3105# so one script is as good as another. But avoid the broken or 3106# incompatible versions: 3107# SysV /etc/install, /usr/sbin/install 3108# SunOS /usr/etc/install 3109# IRIX /sbin/install 3110# AIX /bin/install 3111# AmigaOS /C/install, which installs bootblocks on floppy discs 3112# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3113# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3114# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3115# OS/2's system install, which has a completely different semantic 3116# ./install, which can be erroneously created by make from ./install.sh. 3117# Reject install programs that cannot install multiple files. 3118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3119printf %s "checking for a BSD-compatible install... " >&6; } 3120if test -z "$INSTALL"; then 3121if test ${ac_cv_path_install+y} 3122then : 3123 printf %s "(cached) " >&6 3124else $as_nop 3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126for as_dir in $PATH 3127do 3128 IFS=$as_save_IFS 3129 case $as_dir in #((( 3130 '') as_dir=./ ;; 3131 */) ;; 3132 *) as_dir=$as_dir/ ;; 3133 esac 3134 # Account for fact that we put trailing slashes in our PATH walk. 3135case $as_dir in #(( 3136 ./ | /[cC]/* | \ 3137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3138 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3139 /usr/ucb/* ) ;; 3140 *) 3141 # OSF1 and SCO ODT 3.0 have their own names for install. 3142 # Don't use installbsd from OSF since it installs stuff as root 3143 # by default. 3144 for ac_prog in ginstall scoinst install; do 3145 for ac_exec_ext in '' $ac_executable_extensions; do 3146 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3147 if test $ac_prog = install && 3148 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3149 # AIX install. It has an incompatible calling convention. 3150 : 3151 elif test $ac_prog = install && 3152 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3153 # program-specific install script used by HP pwplus--don't use. 3154 : 3155 else 3156 rm -rf conftest.one conftest.two conftest.dir 3157 echo one > conftest.one 3158 echo two > conftest.two 3159 mkdir conftest.dir 3160 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3161 test -s conftest.one && test -s conftest.two && 3162 test -s conftest.dir/conftest.one && 3163 test -s conftest.dir/conftest.two 3164 then 3165 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3166 break 3 3167 fi 3168 fi 3169 fi 3170 done 3171 done 3172 ;; 3173esac 3174 3175 done 3176IFS=$as_save_IFS 3177 3178rm -rf conftest.one conftest.two conftest.dir 3179 3180fi 3181 if test ${ac_cv_path_install+y}; then 3182 INSTALL=$ac_cv_path_install 3183 else 3184 # As a last resort, use the slow shell script. Don't cache a 3185 # value for INSTALL within a source directory, because that will 3186 # break other packages using the cache if that directory is 3187 # removed, or if the value is a relative name. 3188 INSTALL=$ac_install_sh 3189 fi 3190fi 3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3192printf "%s\n" "$INSTALL" >&6; } 3193 3194# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3195# It thinks the first close brace ends the variable substitution. 3196test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3197 3198test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3199 3200test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3201 3202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3203printf %s "checking whether build environment is sane... " >&6; } 3204# Reject unsafe characters in $srcdir or the absolute working directory 3205# name. Accept space and tab only in the latter. 3206am_lf=' 3207' 3208case `pwd` in 3209 *[\\\"\#\$\&\'\`$am_lf]*) 3210 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3211esac 3212case $srcdir in 3213 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3214 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3215esac 3216 3217# Do 'set' in a subshell so we don't clobber the current shell's 3218# arguments. Must try -L first in case configure is actually a 3219# symlink; some systems play weird games with the mod time of symlinks 3220# (eg FreeBSD returns the mod time of the symlink's containing 3221# directory). 3222if ( 3223 am_has_slept=no 3224 for am_try in 1 2; do 3225 echo "timestamp, slept: $am_has_slept" > conftest.file 3226 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3227 if test "$*" = "X"; then 3228 # -L didn't work. 3229 set X `ls -t "$srcdir/configure" conftest.file` 3230 fi 3231 if test "$*" != "X $srcdir/configure conftest.file" \ 3232 && test "$*" != "X conftest.file $srcdir/configure"; then 3233 3234 # If neither matched, then we have a broken ls. This can happen 3235 # if, for instance, CONFIG_SHELL is bash and it inherits a 3236 # broken ls alias from the environment. This has actually 3237 # happened. Such a system could not be considered "sane". 3238 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3239 alias in your environment" "$LINENO" 5 3240 fi 3241 if test "$2" = conftest.file || test $am_try -eq 2; then 3242 break 3243 fi 3244 # Just in case. 3245 sleep 1 3246 am_has_slept=yes 3247 done 3248 test "$2" = conftest.file 3249 ) 3250then 3251 # Ok. 3252 : 3253else 3254 as_fn_error $? "newly created file is older than distributed files! 3255Check your system clock" "$LINENO" 5 3256fi 3257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3258printf "%s\n" "yes" >&6; } 3259# If we didn't sleep, we still need to ensure time stamps of config.status and 3260# generated files are strictly newer. 3261am_sleep_pid= 3262if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3263 ( sleep 1 ) & 3264 am_sleep_pid=$! 3265fi 3266 3267rm -f conftest.file 3268 3269test "$program_prefix" != NONE && 3270 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3271# Use a double $ so make ignores it. 3272test "$program_suffix" != NONE && 3273 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3274# Double any \ or $. 3275# By default was `s,x,x', remove it if useless. 3276ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3277program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3278 3279 3280# Expand $ac_aux_dir to an absolute path. 3281am_aux_dir=`cd "$ac_aux_dir" && pwd` 3282 3283 3284 if test x"${MISSING+set}" != xset; then 3285 MISSING="\${SHELL} '$am_aux_dir/missing'" 3286fi 3287# Use eval to expand $SHELL 3288if eval "$MISSING --is-lightweight"; then 3289 am_missing_run="$MISSING " 3290else 3291 am_missing_run= 3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3293printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3294fi 3295 3296if test x"${install_sh+set}" != xset; then 3297 case $am_aux_dir in 3298 *\ * | *\ *) 3299 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3300 *) 3301 install_sh="\${SHELL} $am_aux_dir/install-sh" 3302 esac 3303fi 3304 3305# Installed binaries are usually stripped using 'strip' when the user 3306# run "make install-strip". However 'strip' might not be the right 3307# tool to use in cross-compilation environments, therefore Automake 3308# will honor the 'STRIP' environment variable to overrule this program. 3309if test "$cross_compiling" != no; then 3310 if test -n "$ac_tool_prefix"; then 3311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3312set dummy ${ac_tool_prefix}strip; ac_word=$2 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3314printf %s "checking for $ac_word... " >&6; } 3315if test ${ac_cv_prog_STRIP+y} 3316then : 3317 printf %s "(cached) " >&6 3318else $as_nop 3319 if test -n "$STRIP"; then 3320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3321else 3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3323for as_dir in $PATH 3324do 3325 IFS=$as_save_IFS 3326 case $as_dir in #((( 3327 '') as_dir=./ ;; 3328 */) ;; 3329 *) as_dir=$as_dir/ ;; 3330 esac 3331 for ac_exec_ext in '' $ac_executable_extensions; do 3332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3333 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3335 break 2 3336 fi 3337done 3338 done 3339IFS=$as_save_IFS 3340 3341fi 3342fi 3343STRIP=$ac_cv_prog_STRIP 3344if test -n "$STRIP"; then 3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3346printf "%s\n" "$STRIP" >&6; } 3347else 3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3349printf "%s\n" "no" >&6; } 3350fi 3351 3352 3353fi 3354if test -z "$ac_cv_prog_STRIP"; then 3355 ac_ct_STRIP=$STRIP 3356 # Extract the first word of "strip", so it can be a program name with args. 3357set dummy strip; ac_word=$2 3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3359printf %s "checking for $ac_word... " >&6; } 3360if test ${ac_cv_prog_ac_ct_STRIP+y} 3361then : 3362 printf %s "(cached) " >&6 3363else $as_nop 3364 if test -n "$ac_ct_STRIP"; then 3365 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3366else 3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368for as_dir in $PATH 3369do 3370 IFS=$as_save_IFS 3371 case $as_dir in #((( 3372 '') as_dir=./ ;; 3373 */) ;; 3374 *) as_dir=$as_dir/ ;; 3375 esac 3376 for ac_exec_ext in '' $ac_executable_extensions; do 3377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3378 ac_cv_prog_ac_ct_STRIP="strip" 3379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3380 break 2 3381 fi 3382done 3383 done 3384IFS=$as_save_IFS 3385 3386fi 3387fi 3388ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3389if test -n "$ac_ct_STRIP"; then 3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3391printf "%s\n" "$ac_ct_STRIP" >&6; } 3392else 3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3394printf "%s\n" "no" >&6; } 3395fi 3396 3397 if test "x$ac_ct_STRIP" = x; then 3398 STRIP=":" 3399 else 3400 case $cross_compiling:$ac_tool_warned in 3401yes:) 3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3403printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3404ac_tool_warned=yes ;; 3405esac 3406 STRIP=$ac_ct_STRIP 3407 fi 3408else 3409 STRIP="$ac_cv_prog_STRIP" 3410fi 3411 3412fi 3413INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3414 3415 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3417printf %s "checking for a race-free mkdir -p... " >&6; } 3418if test -z "$MKDIR_P"; then 3419 if test ${ac_cv_path_mkdir+y} 3420then : 3421 printf %s "(cached) " >&6 3422else $as_nop 3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3424for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3425do 3426 IFS=$as_save_IFS 3427 case $as_dir in #((( 3428 '') as_dir=./ ;; 3429 */) ;; 3430 *) as_dir=$as_dir/ ;; 3431 esac 3432 for ac_prog in mkdir gmkdir; do 3433 for ac_exec_ext in '' $ac_executable_extensions; do 3434 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3435 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3436 'mkdir ('*'coreutils) '* | \ 3437 'BusyBox '* | \ 3438 'mkdir (fileutils) '4.1*) 3439 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3440 break 3;; 3441 esac 3442 done 3443 done 3444 done 3445IFS=$as_save_IFS 3446 3447fi 3448 3449 test -d ./--version && rmdir ./--version 3450 if test ${ac_cv_path_mkdir+y}; then 3451 MKDIR_P="$ac_cv_path_mkdir -p" 3452 else 3453 # As a last resort, use the slow shell script. Don't cache a 3454 # value for MKDIR_P within a source directory, because that will 3455 # break other packages using the cache if that directory is 3456 # removed, or if the value is a relative name. 3457 MKDIR_P="$ac_install_sh -d" 3458 fi 3459fi 3460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3461printf "%s\n" "$MKDIR_P" >&6; } 3462 3463for ac_prog in gawk mawk nawk awk 3464do 3465 # Extract the first word of "$ac_prog", so it can be a program name with args. 3466set dummy $ac_prog; ac_word=$2 3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3468printf %s "checking for $ac_word... " >&6; } 3469if test ${ac_cv_prog_AWK+y} 3470then : 3471 printf %s "(cached) " >&6 3472else $as_nop 3473 if test -n "$AWK"; then 3474 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3475else 3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3477for as_dir in $PATH 3478do 3479 IFS=$as_save_IFS 3480 case $as_dir in #((( 3481 '') as_dir=./ ;; 3482 */) ;; 3483 *) as_dir=$as_dir/ ;; 3484 esac 3485 for ac_exec_ext in '' $ac_executable_extensions; do 3486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3487 ac_cv_prog_AWK="$ac_prog" 3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3489 break 2 3490 fi 3491done 3492 done 3493IFS=$as_save_IFS 3494 3495fi 3496fi 3497AWK=$ac_cv_prog_AWK 3498if test -n "$AWK"; then 3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3500printf "%s\n" "$AWK" >&6; } 3501else 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3503printf "%s\n" "no" >&6; } 3504fi 3505 3506 3507 test -n "$AWK" && break 3508done 3509 3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3511printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3512set x ${MAKE-make} 3513ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3514if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3515then : 3516 printf %s "(cached) " >&6 3517else $as_nop 3518 cat >conftest.make <<\_ACEOF 3519SHELL = /bin/sh 3520all: 3521 @echo '@@@%%%=$(MAKE)=@@@%%%' 3522_ACEOF 3523# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3524case `${MAKE-make} -f conftest.make 2>/dev/null` in 3525 *@@@%%%=?*=@@@%%%*) 3526 eval ac_cv_prog_make_${ac_make}_set=yes;; 3527 *) 3528 eval ac_cv_prog_make_${ac_make}_set=no;; 3529esac 3530rm -f conftest.make 3531fi 3532if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3534printf "%s\n" "yes" >&6; } 3535 SET_MAKE= 3536else 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538printf "%s\n" "no" >&6; } 3539 SET_MAKE="MAKE=${MAKE-make}" 3540fi 3541 3542rm -rf .tst 2>/dev/null 3543mkdir .tst 2>/dev/null 3544if test -d .tst; then 3545 am__leading_dot=. 3546else 3547 am__leading_dot=_ 3548fi 3549rmdir .tst 2>/dev/null 3550 3551# Check whether --enable-silent-rules was given. 3552if test ${enable_silent_rules+y} 3553then : 3554 enableval=$enable_silent_rules; 3555fi 3556 3557case $enable_silent_rules in # ((( 3558 yes) AM_DEFAULT_VERBOSITY=0;; 3559 no) AM_DEFAULT_VERBOSITY=1;; 3560 *) AM_DEFAULT_VERBOSITY=1;; 3561esac 3562am_make=${MAKE-make} 3563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3564printf %s "checking whether $am_make supports nested variables... " >&6; } 3565if test ${am_cv_make_support_nested_variables+y} 3566then : 3567 printf %s "(cached) " >&6 3568else $as_nop 3569 if printf "%s\n" 'TRUE=$(BAR$(V)) 3570BAR0=false 3571BAR1=true 3572V=1 3573am__doit: 3574 @$(TRUE) 3575.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3576 am_cv_make_support_nested_variables=yes 3577else 3578 am_cv_make_support_nested_variables=no 3579fi 3580fi 3581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3582printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3583if test $am_cv_make_support_nested_variables = yes; then 3584 AM_V='$(V)' 3585 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3586else 3587 AM_V=$AM_DEFAULT_VERBOSITY 3588 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3589fi 3590AM_BACKSLASH='\' 3591 3592if test "`cd $srcdir && pwd`" != "`pwd`"; then 3593 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3594 # is not polluted with repeated "-I." 3595 am__isrc=' -I$(srcdir)' 3596 # test to see if srcdir already configured 3597 if test -f $srcdir/config.status; then 3598 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3599 fi 3600fi 3601 3602# test whether we have cygpath 3603if test -z "$CYGPATH_W"; then 3604 if (cygpath --version) >/dev/null 2>/dev/null; then 3605 CYGPATH_W='cygpath -w' 3606 else 3607 CYGPATH_W=echo 3608 fi 3609fi 3610 3611 3612# Define the identity of the package. 3613 PACKAGE='xml-security-c' 3614 VERSION='2.0.4' 3615 3616 3617printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3618 3619 3620printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3621 3622# Some tools Automake needs. 3623 3624ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3625 3626 3627AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3628 3629 3630AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3631 3632 3633AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3634 3635 3636MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3637 3638# For better backward compatibility. To be removed once Automake 1.9.x 3639# dies out for good. For more background, see: 3640# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3641# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3642mkdir_p='$(MKDIR_P)' 3643 3644# We need awk for the "check" target (and possibly the TAP driver). The 3645# system "awk" is bad on some platforms. 3646# Always define AMTAR for backward compatibility. Yes, it's still used 3647# in the wild :-( We should find a proper way to deprecate it ... 3648AMTAR='$${TAR-tar}' 3649 3650 3651# We'll loop over all known methods to create a tar archive until one works. 3652_am_tools='gnutar pax cpio none' 3653 3654am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3655 3656 3657 3658 3659 3660# Variables for tags utilities; see am/tags.am 3661if test -z "$CTAGS"; then 3662 CTAGS=ctags 3663fi 3664 3665if test -z "$ETAGS"; then 3666 ETAGS=etags 3667fi 3668 3669if test -z "$CSCOPE"; then 3670 CSCOPE=cscope 3671fi 3672 3673 3674 3675# POSIX will say in a future version that running "rm -f" with no argument 3676# is OK; and we want to be able to make that assumption in our Makefile 3677# recipes. So use an aggressive probe to check that the usage we want is 3678# actually supported "in the wild" to an acceptable degree. 3679# See automake bug#10828. 3680# To make any issue more visible, cause the running configure to be aborted 3681# by default if the 'rm' program in use doesn't match our expectations; the 3682# user can still override this though. 3683if rm -f && rm -fr && rm -rf; then : OK; else 3684 cat >&2 <<'END' 3685Oops! 3686 3687Your 'rm' program seems unable to run without file operands specified 3688on the command line, even when the '-f' option is present. This is contrary 3689to the behaviour of most rm programs out there, and not conforming with 3690the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3691 3692Please tell bug-automake@gnu.org about your system, including the value 3693of your $PATH and any error possibly output before this message. This 3694can help us improve future automake versions. 3695 3696END 3697 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3698 echo 'Configuration will proceed anyway, since you have set the' >&2 3699 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3700 echo >&2 3701 else 3702 cat >&2 <<'END' 3703Aborting the configuration process, to ensure you take notice of the issue. 3704 3705You can download and install GNU coreutils to get an 'rm' implementation 3706that behaves properly: <https://www.gnu.org/software/coreutils/>. 3707 3708If you want to complete the configuration process using your problematic 3709'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3710to "yes", and re-run configure. 3711 3712END 3713 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3714 fi 3715fi 3716 3717 3718 3719 3720# Check whether --with-pkgconfigdir was given. 3721if test ${with_pkgconfigdir+y} 3722then : 3723 withval=$with_pkgconfigdir; 3724else $as_nop 3725 with_pkgconfigdir='${libdir}/pkgconfig' 3726fi 3727 3728pkgconfigdir=$with_pkgconfigdir 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743DEPDIR="${am__leading_dot}deps" 3744 3745ac_config_commands="$ac_config_commands depfiles" 3746 3747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3748printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3749cat > confinc.mk << 'END' 3750am__doit: 3751 @echo this is the am__doit target >confinc.out 3752.PHONY: am__doit 3753END 3754am__include="#" 3755am__quote= 3756# BSD make does it like this. 3757echo '.include "confinc.mk" # ignored' > confmf.BSD 3758# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3759echo 'include confinc.mk # ignored' > confmf.GNU 3760_am_result=no 3761for s in GNU BSD; do 3762 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3763 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3764 ac_status=$? 3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3766 (exit $ac_status); } 3767 case $?:`cat confinc.out 2>/dev/null` in #( 3768 '0:this is the am__doit target') : 3769 case $s in #( 3770 BSD) : 3771 am__include='.include' am__quote='"' ;; #( 3772 *) : 3773 am__include='include' am__quote='' ;; 3774esac ;; #( 3775 *) : 3776 ;; 3777esac 3778 if test "$am__include" != "#"; then 3779 _am_result="yes ($s style)" 3780 break 3781 fi 3782done 3783rm -f confinc.* confmf.* 3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3785printf "%s\n" "${_am_result}" >&6; } 3786 3787# Check whether --enable-dependency-tracking was given. 3788if test ${enable_dependency_tracking+y} 3789then : 3790 enableval=$enable_dependency_tracking; 3791fi 3792 3793if test "x$enable_dependency_tracking" != xno; then 3794 am_depcomp="$ac_aux_dir/depcomp" 3795 AMDEPBACKSLASH='\' 3796 am__nodep='_no' 3797fi 3798 if test "x$enable_dependency_tracking" != xno; then 3799 AMDEP_TRUE= 3800 AMDEP_FALSE='#' 3801else 3802 AMDEP_TRUE='#' 3803 AMDEP_FALSE= 3804fi 3805 3806 3807ac_ext=c 3808ac_cpp='$CPP $CPPFLAGS' 3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3811ac_compiler_gnu=$ac_cv_c_compiler_gnu 3812if test -n "$ac_tool_prefix"; then 3813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3814set dummy ${ac_tool_prefix}gcc; ac_word=$2 3815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3816printf %s "checking for $ac_word... " >&6; } 3817if test ${ac_cv_prog_CC+y} 3818then : 3819 printf %s "(cached) " >&6 3820else $as_nop 3821 if test -n "$CC"; then 3822 ac_cv_prog_CC="$CC" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 case $as_dir in #((( 3829 '') as_dir=./ ;; 3830 */) ;; 3831 *) as_dir=$as_dir/ ;; 3832 esac 3833 for ac_exec_ext in '' $ac_executable_extensions; do 3834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3835 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3837 break 2 3838 fi 3839done 3840 done 3841IFS=$as_save_IFS 3842 3843fi 3844fi 3845CC=$ac_cv_prog_CC 3846if test -n "$CC"; then 3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3848printf "%s\n" "$CC" >&6; } 3849else 3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3851printf "%s\n" "no" >&6; } 3852fi 3853 3854 3855fi 3856if test -z "$ac_cv_prog_CC"; then 3857 ac_ct_CC=$CC 3858 # Extract the first word of "gcc", so it can be a program name with args. 3859set dummy gcc; ac_word=$2 3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861printf %s "checking for $ac_word... " >&6; } 3862if test ${ac_cv_prog_ac_ct_CC+y} 3863then : 3864 printf %s "(cached) " >&6 3865else $as_nop 3866 if test -n "$ac_ct_CC"; then 3867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3868else 3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870for as_dir in $PATH 3871do 3872 IFS=$as_save_IFS 3873 case $as_dir in #((( 3874 '') as_dir=./ ;; 3875 */) ;; 3876 *) as_dir=$as_dir/ ;; 3877 esac 3878 for ac_exec_ext in '' $ac_executable_extensions; do 3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3880 ac_cv_prog_ac_ct_CC="gcc" 3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3882 break 2 3883 fi 3884done 3885 done 3886IFS=$as_save_IFS 3887 3888fi 3889fi 3890ac_ct_CC=$ac_cv_prog_ac_ct_CC 3891if test -n "$ac_ct_CC"; then 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3893printf "%s\n" "$ac_ct_CC" >&6; } 3894else 3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3896printf "%s\n" "no" >&6; } 3897fi 3898 3899 if test "x$ac_ct_CC" = x; then 3900 CC="" 3901 else 3902 case $cross_compiling:$ac_tool_warned in 3903yes:) 3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3905printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3906ac_tool_warned=yes ;; 3907esac 3908 CC=$ac_ct_CC 3909 fi 3910else 3911 CC="$ac_cv_prog_CC" 3912fi 3913 3914if test -z "$CC"; then 3915 if test -n "$ac_tool_prefix"; then 3916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3917set dummy ${ac_tool_prefix}cc; ac_word=$2 3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3919printf %s "checking for $ac_word... " >&6; } 3920if test ${ac_cv_prog_CC+y} 3921then : 3922 printf %s "(cached) " >&6 3923else $as_nop 3924 if test -n "$CC"; then 3925 ac_cv_prog_CC="$CC" # Let the user override the test. 3926else 3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3928for as_dir in $PATH 3929do 3930 IFS=$as_save_IFS 3931 case $as_dir in #((( 3932 '') as_dir=./ ;; 3933 */) ;; 3934 *) as_dir=$as_dir/ ;; 3935 esac 3936 for ac_exec_ext in '' $ac_executable_extensions; do 3937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3938 ac_cv_prog_CC="${ac_tool_prefix}cc" 3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3940 break 2 3941 fi 3942done 3943 done 3944IFS=$as_save_IFS 3945 3946fi 3947fi 3948CC=$ac_cv_prog_CC 3949if test -n "$CC"; then 3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3951printf "%s\n" "$CC" >&6; } 3952else 3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3954printf "%s\n" "no" >&6; } 3955fi 3956 3957 3958 fi 3959fi 3960if test -z "$CC"; then 3961 # Extract the first word of "cc", so it can be a program name with args. 3962set dummy cc; ac_word=$2 3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3964printf %s "checking for $ac_word... " >&6; } 3965if test ${ac_cv_prog_CC+y} 3966then : 3967 printf %s "(cached) " >&6 3968else $as_nop 3969 if test -n "$CC"; then 3970 ac_cv_prog_CC="$CC" # Let the user override the test. 3971else 3972 ac_prog_rejected=no 3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974for as_dir in $PATH 3975do 3976 IFS=$as_save_IFS 3977 case $as_dir in #((( 3978 '') as_dir=./ ;; 3979 */) ;; 3980 *) as_dir=$as_dir/ ;; 3981 esac 3982 for ac_exec_ext in '' $ac_executable_extensions; do 3983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3984 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3985 ac_prog_rejected=yes 3986 continue 3987 fi 3988 ac_cv_prog_CC="cc" 3989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3990 break 2 3991 fi 3992done 3993 done 3994IFS=$as_save_IFS 3995 3996if test $ac_prog_rejected = yes; then 3997 # We found a bogon in the path, so make sure we never use it. 3998 set dummy $ac_cv_prog_CC 3999 shift 4000 if test $# != 0; then 4001 # We chose a different compiler from the bogus one. 4002 # However, it has the same basename, so the bogon will be chosen 4003 # first if we set CC to just the basename; use the full file name. 4004 shift 4005 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4006 fi 4007fi 4008fi 4009fi 4010CC=$ac_cv_prog_CC 4011if test -n "$CC"; then 4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4013printf "%s\n" "$CC" >&6; } 4014else 4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4016printf "%s\n" "no" >&6; } 4017fi 4018 4019 4020fi 4021if test -z "$CC"; then 4022 if test -n "$ac_tool_prefix"; then 4023 for ac_prog in cl.exe 4024 do 4025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4026set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028printf %s "checking for $ac_word... " >&6; } 4029if test ${ac_cv_prog_CC+y} 4030then : 4031 printf %s "(cached) " >&6 4032else $as_nop 4033 if test -n "$CC"; then 4034 ac_cv_prog_CC="$CC" # Let the user override the test. 4035else 4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4037for as_dir in $PATH 4038do 4039 IFS=$as_save_IFS 4040 case $as_dir in #((( 4041 '') as_dir=./ ;; 4042 */) ;; 4043 *) as_dir=$as_dir/ ;; 4044 esac 4045 for ac_exec_ext in '' $ac_executable_extensions; do 4046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4049 break 2 4050 fi 4051done 4052 done 4053IFS=$as_save_IFS 4054 4055fi 4056fi 4057CC=$ac_cv_prog_CC 4058if test -n "$CC"; then 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4060printf "%s\n" "$CC" >&6; } 4061else 4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4063printf "%s\n" "no" >&6; } 4064fi 4065 4066 4067 test -n "$CC" && break 4068 done 4069fi 4070if test -z "$CC"; then 4071 ac_ct_CC=$CC 4072 for ac_prog in cl.exe 4073do 4074 # Extract the first word of "$ac_prog", so it can be a program name with args. 4075set dummy $ac_prog; ac_word=$2 4076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4077printf %s "checking for $ac_word... " >&6; } 4078if test ${ac_cv_prog_ac_ct_CC+y} 4079then : 4080 printf %s "(cached) " >&6 4081else $as_nop 4082 if test -n "$ac_ct_CC"; then 4083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4084else 4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4086for as_dir in $PATH 4087do 4088 IFS=$as_save_IFS 4089 case $as_dir in #((( 4090 '') as_dir=./ ;; 4091 */) ;; 4092 *) as_dir=$as_dir/ ;; 4093 esac 4094 for ac_exec_ext in '' $ac_executable_extensions; do 4095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4096 ac_cv_prog_ac_ct_CC="$ac_prog" 4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4098 break 2 4099 fi 4100done 4101 done 4102IFS=$as_save_IFS 4103 4104fi 4105fi 4106ac_ct_CC=$ac_cv_prog_ac_ct_CC 4107if test -n "$ac_ct_CC"; then 4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4109printf "%s\n" "$ac_ct_CC" >&6; } 4110else 4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4112printf "%s\n" "no" >&6; } 4113fi 4114 4115 4116 test -n "$ac_ct_CC" && break 4117done 4118 4119 if test "x$ac_ct_CC" = x; then 4120 CC="" 4121 else 4122 case $cross_compiling:$ac_tool_warned in 4123yes:) 4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4125printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4126ac_tool_warned=yes ;; 4127esac 4128 CC=$ac_ct_CC 4129 fi 4130fi 4131 4132fi 4133if test -z "$CC"; then 4134 if test -n "$ac_tool_prefix"; then 4135 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4136set dummy ${ac_tool_prefix}clang; ac_word=$2 4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4138printf %s "checking for $ac_word... " >&6; } 4139if test ${ac_cv_prog_CC+y} 4140then : 4141 printf %s "(cached) " >&6 4142else $as_nop 4143 if test -n "$CC"; then 4144 ac_cv_prog_CC="$CC" # Let the user override the test. 4145else 4146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147for as_dir in $PATH 4148do 4149 IFS=$as_save_IFS 4150 case $as_dir in #((( 4151 '') as_dir=./ ;; 4152 */) ;; 4153 *) as_dir=$as_dir/ ;; 4154 esac 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4157 ac_cv_prog_CC="${ac_tool_prefix}clang" 4158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4159 break 2 4160 fi 4161done 4162 done 4163IFS=$as_save_IFS 4164 4165fi 4166fi 4167CC=$ac_cv_prog_CC 4168if test -n "$CC"; then 4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4170printf "%s\n" "$CC" >&6; } 4171else 4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4173printf "%s\n" "no" >&6; } 4174fi 4175 4176 4177fi 4178if test -z "$ac_cv_prog_CC"; then 4179 ac_ct_CC=$CC 4180 # Extract the first word of "clang", so it can be a program name with args. 4181set dummy clang; ac_word=$2 4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4183printf %s "checking for $ac_word... " >&6; } 4184if test ${ac_cv_prog_ac_ct_CC+y} 4185then : 4186 printf %s "(cached) " >&6 4187else $as_nop 4188 if test -n "$ac_ct_CC"; then 4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4190else 4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4192for as_dir in $PATH 4193do 4194 IFS=$as_save_IFS 4195 case $as_dir in #((( 4196 '') as_dir=./ ;; 4197 */) ;; 4198 *) as_dir=$as_dir/ ;; 4199 esac 4200 for ac_exec_ext in '' $ac_executable_extensions; do 4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4202 ac_cv_prog_ac_ct_CC="clang" 4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4204 break 2 4205 fi 4206done 4207 done 4208IFS=$as_save_IFS 4209 4210fi 4211fi 4212ac_ct_CC=$ac_cv_prog_ac_ct_CC 4213if test -n "$ac_ct_CC"; then 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4215printf "%s\n" "$ac_ct_CC" >&6; } 4216else 4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4218printf "%s\n" "no" >&6; } 4219fi 4220 4221 if test "x$ac_ct_CC" = x; then 4222 CC="" 4223 else 4224 case $cross_compiling:$ac_tool_warned in 4225yes:) 4226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4227printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4228ac_tool_warned=yes ;; 4229esac 4230 CC=$ac_ct_CC 4231 fi 4232else 4233 CC="$ac_cv_prog_CC" 4234fi 4235 4236fi 4237 4238 4239test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4240printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4241as_fn_error $? "no acceptable C compiler found in \$PATH 4242See \`config.log' for more details" "$LINENO" 5; } 4243 4244# Provide some information about the compiler. 4245printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4246set X $ac_compile 4247ac_compiler=$2 4248for ac_option in --version -v -V -qversion -version; do 4249 { { ac_try="$ac_compiler $ac_option >&5" 4250case "(($ac_try" in 4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4252 *) ac_try_echo=$ac_try;; 4253esac 4254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4255printf "%s\n" "$ac_try_echo"; } >&5 4256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4257 ac_status=$? 4258 if test -s conftest.err; then 4259 sed '10a\ 4260... rest of stderr output deleted ... 4261 10q' conftest.err >conftest.er1 4262 cat conftest.er1 >&5 4263 fi 4264 rm -f conftest.er1 conftest.err 4265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4266 test $ac_status = 0; } 4267done 4268 4269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271 4272int 4273main (void) 4274{ 4275 4276 ; 4277 return 0; 4278} 4279_ACEOF 4280ac_clean_files_save=$ac_clean_files 4281ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4282# Try to create an executable without -o first, disregard a.out. 4283# It will help us diagnose broken compilers, and finding out an intuition 4284# of exeext. 4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4286printf %s "checking whether the C compiler works... " >&6; } 4287ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4288 4289# The possible output files: 4290ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4291 4292ac_rmfiles= 4293for ac_file in $ac_files 4294do 4295 case $ac_file in 4296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4297 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4298 esac 4299done 4300rm -f $ac_rmfiles 4301 4302if { { ac_try="$ac_link_default" 4303case "(($ac_try" in 4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4305 *) ac_try_echo=$ac_try;; 4306esac 4307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4308printf "%s\n" "$ac_try_echo"; } >&5 4309 (eval "$ac_link_default") 2>&5 4310 ac_status=$? 4311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4312 test $ac_status = 0; } 4313then : 4314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4315# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4316# in a Makefile. We should not override ac_cv_exeext if it was cached, 4317# so that the user can short-circuit this test for compilers unknown to 4318# Autoconf. 4319for ac_file in $ac_files '' 4320do 4321 test -f "$ac_file" || continue 4322 case $ac_file in 4323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4324 ;; 4325 [ab].out ) 4326 # We found the default executable, but exeext='' is most 4327 # certainly right. 4328 break;; 4329 *.* ) 4330 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4331 then :; else 4332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4333 fi 4334 # We set ac_cv_exeext here because the later test for it is not 4335 # safe: cross compilers may not add the suffix if given an `-o' 4336 # argument, so we may need to know it at that point already. 4337 # Even if this section looks crufty: it has the advantage of 4338 # actually working. 4339 break;; 4340 * ) 4341 break;; 4342 esac 4343done 4344test "$ac_cv_exeext" = no && ac_cv_exeext= 4345 4346else $as_nop 4347 ac_file='' 4348fi 4349if test -z "$ac_file" 4350then : 4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4352printf "%s\n" "no" >&6; } 4353printf "%s\n" "$as_me: failed program was:" >&5 4354sed 's/^/| /' conftest.$ac_ext >&5 4355 4356{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4357printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4358as_fn_error 77 "C compiler cannot create executables 4359See \`config.log' for more details" "$LINENO" 5; } 4360else $as_nop 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4362printf "%s\n" "yes" >&6; } 4363fi 4364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4365printf %s "checking for C compiler default output file name... " >&6; } 4366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4367printf "%s\n" "$ac_file" >&6; } 4368ac_exeext=$ac_cv_exeext 4369 4370rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4371ac_clean_files=$ac_clean_files_save 4372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4373printf %s "checking for suffix of executables... " >&6; } 4374if { { ac_try="$ac_link" 4375case "(($ac_try" in 4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4377 *) ac_try_echo=$ac_try;; 4378esac 4379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4380printf "%s\n" "$ac_try_echo"; } >&5 4381 (eval "$ac_link") 2>&5 4382 ac_status=$? 4383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4384 test $ac_status = 0; } 4385then : 4386 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4387# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4388# work properly (i.e., refer to `conftest.exe'), while it won't with 4389# `rm'. 4390for ac_file in conftest.exe conftest conftest.*; do 4391 test -f "$ac_file" || continue 4392 case $ac_file in 4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4394 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4395 break;; 4396 * ) break;; 4397 esac 4398done 4399else $as_nop 4400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4401printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4402as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4403See \`config.log' for more details" "$LINENO" 5; } 4404fi 4405rm -f conftest conftest$ac_cv_exeext 4406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4407printf "%s\n" "$ac_cv_exeext" >&6; } 4408 4409rm -f conftest.$ac_ext 4410EXEEXT=$ac_cv_exeext 4411ac_exeext=$EXEEXT 4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4413/* end confdefs.h. */ 4414#include <stdio.h> 4415int 4416main (void) 4417{ 4418FILE *f = fopen ("conftest.out", "w"); 4419 return ferror (f) || fclose (f) != 0; 4420 4421 ; 4422 return 0; 4423} 4424_ACEOF 4425ac_clean_files="$ac_clean_files conftest.out" 4426# Check that the compiler produces executables we can run. If not, either 4427# the compiler is broken, or we cross compile. 4428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4429printf %s "checking whether we are cross compiling... " >&6; } 4430if test "$cross_compiling" != yes; then 4431 { { ac_try="$ac_link" 4432case "(($ac_try" in 4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4434 *) ac_try_echo=$ac_try;; 4435esac 4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4437printf "%s\n" "$ac_try_echo"; } >&5 4438 (eval "$ac_link") 2>&5 4439 ac_status=$? 4440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4441 test $ac_status = 0; } 4442 if { ac_try='./conftest$ac_cv_exeext' 4443 { { case "(($ac_try" in 4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4445 *) ac_try_echo=$ac_try;; 4446esac 4447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4448printf "%s\n" "$ac_try_echo"; } >&5 4449 (eval "$ac_try") 2>&5 4450 ac_status=$? 4451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4452 test $ac_status = 0; }; }; then 4453 cross_compiling=no 4454 else 4455 if test "$cross_compiling" = maybe; then 4456 cross_compiling=yes 4457 else 4458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4459printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4460as_fn_error 77 "cannot run C compiled programs. 4461If you meant to cross compile, use \`--host'. 4462See \`config.log' for more details" "$LINENO" 5; } 4463 fi 4464 fi 4465fi 4466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4467printf "%s\n" "$cross_compiling" >&6; } 4468 4469rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4470ac_clean_files=$ac_clean_files_save 4471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4472printf %s "checking for suffix of object files... " >&6; } 4473if test ${ac_cv_objext+y} 4474then : 4475 printf %s "(cached) " >&6 4476else $as_nop 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479 4480int 4481main (void) 4482{ 4483 4484 ; 4485 return 0; 4486} 4487_ACEOF 4488rm -f conftest.o conftest.obj 4489if { { ac_try="$ac_compile" 4490case "(($ac_try" in 4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4492 *) ac_try_echo=$ac_try;; 4493esac 4494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4495printf "%s\n" "$ac_try_echo"; } >&5 4496 (eval "$ac_compile") 2>&5 4497 ac_status=$? 4498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4499 test $ac_status = 0; } 4500then : 4501 for ac_file in conftest.o conftest.obj conftest.*; do 4502 test -f "$ac_file" || continue; 4503 case $ac_file in 4504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4506 break;; 4507 esac 4508done 4509else $as_nop 4510 printf "%s\n" "$as_me: failed program was:" >&5 4511sed 's/^/| /' conftest.$ac_ext >&5 4512 4513{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4515as_fn_error $? "cannot compute suffix of object files: cannot compile 4516See \`config.log' for more details" "$LINENO" 5; } 4517fi 4518rm -f conftest.$ac_cv_objext conftest.$ac_ext 4519fi 4520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4521printf "%s\n" "$ac_cv_objext" >&6; } 4522OBJEXT=$ac_cv_objext 4523ac_objext=$OBJEXT 4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4525printf %s "checking whether the compiler supports GNU C... " >&6; } 4526if test ${ac_cv_c_compiler_gnu+y} 4527then : 4528 printf %s "(cached) " >&6 4529else $as_nop 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4531/* end confdefs.h. */ 4532 4533int 4534main (void) 4535{ 4536#ifndef __GNUC__ 4537 choke me 4538#endif 4539 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544if ac_fn_c_try_compile "$LINENO" 4545then : 4546 ac_compiler_gnu=yes 4547else $as_nop 4548 ac_compiler_gnu=no 4549fi 4550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4551ac_cv_c_compiler_gnu=$ac_compiler_gnu 4552 4553fi 4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4555printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4556ac_compiler_gnu=$ac_cv_c_compiler_gnu 4557 4558if test $ac_compiler_gnu = yes; then 4559 GCC=yes 4560else 4561 GCC= 4562fi 4563ac_test_CFLAGS=${CFLAGS+y} 4564ac_save_CFLAGS=$CFLAGS 4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4566printf %s "checking whether $CC accepts -g... " >&6; } 4567if test ${ac_cv_prog_cc_g+y} 4568then : 4569 printf %s "(cached) " >&6 4570else $as_nop 4571 ac_save_c_werror_flag=$ac_c_werror_flag 4572 ac_c_werror_flag=yes 4573 ac_cv_prog_cc_g=no 4574 CFLAGS="-g" 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4576/* end confdefs.h. */ 4577 4578int 4579main (void) 4580{ 4581 4582 ; 4583 return 0; 4584} 4585_ACEOF 4586if ac_fn_c_try_compile "$LINENO" 4587then : 4588 ac_cv_prog_cc_g=yes 4589else $as_nop 4590 CFLAGS="" 4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4592/* end confdefs.h. */ 4593 4594int 4595main (void) 4596{ 4597 4598 ; 4599 return 0; 4600} 4601_ACEOF 4602if ac_fn_c_try_compile "$LINENO" 4603then : 4604 4605else $as_nop 4606 ac_c_werror_flag=$ac_save_c_werror_flag 4607 CFLAGS="-g" 4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4609/* end confdefs.h. */ 4610 4611int 4612main (void) 4613{ 4614 4615 ; 4616 return 0; 4617} 4618_ACEOF 4619if ac_fn_c_try_compile "$LINENO" 4620then : 4621 ac_cv_prog_cc_g=yes 4622fi 4623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4624fi 4625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4626fi 4627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4628 ac_c_werror_flag=$ac_save_c_werror_flag 4629fi 4630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4631printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4632if test $ac_test_CFLAGS; then 4633 CFLAGS=$ac_save_CFLAGS 4634elif test $ac_cv_prog_cc_g = yes; then 4635 if test "$GCC" = yes; then 4636 CFLAGS="-g -O2" 4637 else 4638 CFLAGS="-g" 4639 fi 4640else 4641 if test "$GCC" = yes; then 4642 CFLAGS="-O2" 4643 else 4644 CFLAGS= 4645 fi 4646fi 4647ac_prog_cc_stdc=no 4648if test x$ac_prog_cc_stdc = xno 4649then : 4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4651printf %s "checking for $CC option to enable C11 features... " >&6; } 4652if test ${ac_cv_prog_cc_c11+y} 4653then : 4654 printf %s "(cached) " >&6 4655else $as_nop 4656 ac_cv_prog_cc_c11=no 4657ac_save_CC=$CC 4658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659/* end confdefs.h. */ 4660$ac_c_conftest_c11_program 4661_ACEOF 4662for ac_arg in '' -std=gnu11 4663do 4664 CC="$ac_save_CC $ac_arg" 4665 if ac_fn_c_try_compile "$LINENO" 4666then : 4667 ac_cv_prog_cc_c11=$ac_arg 4668fi 4669rm -f core conftest.err conftest.$ac_objext conftest.beam 4670 test "x$ac_cv_prog_cc_c11" != "xno" && break 4671done 4672rm -f conftest.$ac_ext 4673CC=$ac_save_CC 4674fi 4675 4676if test "x$ac_cv_prog_cc_c11" = xno 4677then : 4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4679printf "%s\n" "unsupported" >&6; } 4680else $as_nop 4681 if test "x$ac_cv_prog_cc_c11" = x 4682then : 4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4684printf "%s\n" "none needed" >&6; } 4685else $as_nop 4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4687printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4688 CC="$CC $ac_cv_prog_cc_c11" 4689fi 4690 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4691 ac_prog_cc_stdc=c11 4692fi 4693fi 4694if test x$ac_prog_cc_stdc = xno 4695then : 4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4697printf %s "checking for $CC option to enable C99 features... " >&6; } 4698if test ${ac_cv_prog_cc_c99+y} 4699then : 4700 printf %s "(cached) " >&6 4701else $as_nop 4702 ac_cv_prog_cc_c99=no 4703ac_save_CC=$CC 4704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706$ac_c_conftest_c99_program 4707_ACEOF 4708for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4709do 4710 CC="$ac_save_CC $ac_arg" 4711 if ac_fn_c_try_compile "$LINENO" 4712then : 4713 ac_cv_prog_cc_c99=$ac_arg 4714fi 4715rm -f core conftest.err conftest.$ac_objext conftest.beam 4716 test "x$ac_cv_prog_cc_c99" != "xno" && break 4717done 4718rm -f conftest.$ac_ext 4719CC=$ac_save_CC 4720fi 4721 4722if test "x$ac_cv_prog_cc_c99" = xno 4723then : 4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4725printf "%s\n" "unsupported" >&6; } 4726else $as_nop 4727 if test "x$ac_cv_prog_cc_c99" = x 4728then : 4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4730printf "%s\n" "none needed" >&6; } 4731else $as_nop 4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4733printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4734 CC="$CC $ac_cv_prog_cc_c99" 4735fi 4736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4737 ac_prog_cc_stdc=c99 4738fi 4739fi 4740if test x$ac_prog_cc_stdc = xno 4741then : 4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4743printf %s "checking for $CC option to enable C89 features... " >&6; } 4744if test ${ac_cv_prog_cc_c89+y} 4745then : 4746 printf %s "(cached) " >&6 4747else $as_nop 4748 ac_cv_prog_cc_c89=no 4749ac_save_CC=$CC 4750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752$ac_c_conftest_c89_program 4753_ACEOF 4754for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4755do 4756 CC="$ac_save_CC $ac_arg" 4757 if ac_fn_c_try_compile "$LINENO" 4758then : 4759 ac_cv_prog_cc_c89=$ac_arg 4760fi 4761rm -f core conftest.err conftest.$ac_objext conftest.beam 4762 test "x$ac_cv_prog_cc_c89" != "xno" && break 4763done 4764rm -f conftest.$ac_ext 4765CC=$ac_save_CC 4766fi 4767 4768if test "x$ac_cv_prog_cc_c89" = xno 4769then : 4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4771printf "%s\n" "unsupported" >&6; } 4772else $as_nop 4773 if test "x$ac_cv_prog_cc_c89" = x 4774then : 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4776printf "%s\n" "none needed" >&6; } 4777else $as_nop 4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4779printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4780 CC="$CC $ac_cv_prog_cc_c89" 4781fi 4782 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4783 ac_prog_cc_stdc=c89 4784fi 4785fi 4786 4787ac_ext=c 4788ac_cpp='$CPP $CPPFLAGS' 4789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4791ac_compiler_gnu=$ac_cv_c_compiler_gnu 4792 4793 4794 ac_ext=c 4795ac_cpp='$CPP $CPPFLAGS' 4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4798ac_compiler_gnu=$ac_cv_c_compiler_gnu 4799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4800printf %s "checking whether $CC understands -c and -o together... " >&6; } 4801if test ${am_cv_prog_cc_c_o+y} 4802then : 4803 printf %s "(cached) " >&6 4804else $as_nop 4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4806/* end confdefs.h. */ 4807 4808int 4809main (void) 4810{ 4811 4812 ; 4813 return 0; 4814} 4815_ACEOF 4816 # Make sure it works both with $CC and with simple cc. 4817 # Following AC_PROG_CC_C_O, we do the test twice because some 4818 # compilers refuse to overwrite an existing .o file with -o, 4819 # though they will create one. 4820 am_cv_prog_cc_c_o=yes 4821 for am_i in 1 2; do 4822 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4823 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4824 ac_status=$? 4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); } \ 4827 && test -f conftest2.$ac_objext; then 4828 : OK 4829 else 4830 am_cv_prog_cc_c_o=no 4831 break 4832 fi 4833 done 4834 rm -f core conftest* 4835 unset am_i 4836fi 4837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4838printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4839if test "$am_cv_prog_cc_c_o" != yes; then 4840 # Losing compiler, so override with the script. 4841 # FIXME: It is wrong to rewrite CC. 4842 # But if we don't then we get into trouble of one sort or another. 4843 # A longer-term fix would be to have automake use am__CC in this case, 4844 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4845 CC="$am_aux_dir/compile $CC" 4846fi 4847ac_ext=c 4848ac_cpp='$CPP $CPPFLAGS' 4849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4851ac_compiler_gnu=$ac_cv_c_compiler_gnu 4852 4853 4854depcc="$CC" am_compiler_list= 4855 4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4857printf %s "checking dependency style of $depcc... " >&6; } 4858if test ${am_cv_CC_dependencies_compiler_type+y} 4859then : 4860 printf %s "(cached) " >&6 4861else $as_nop 4862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4863 # We make a subdir and do the tests there. Otherwise we can end up 4864 # making bogus files that we don't know about and never remove. For 4865 # instance it was reported that on HP-UX the gcc test will end up 4866 # making a dummy file named 'D' -- because '-MD' means "put the output 4867 # in D". 4868 rm -rf conftest.dir 4869 mkdir conftest.dir 4870 # Copy depcomp to subdir because otherwise we won't find it if we're 4871 # using a relative directory. 4872 cp "$am_depcomp" conftest.dir 4873 cd conftest.dir 4874 # We will build objects and dependencies in a subdirectory because 4875 # it helps to detect inapplicable dependency modes. For instance 4876 # both Tru64's cc and ICC support -MD to output dependencies as a 4877 # side effect of compilation, but ICC will put the dependencies in 4878 # the current directory while Tru64 will put them in the object 4879 # directory. 4880 mkdir sub 4881 4882 am_cv_CC_dependencies_compiler_type=none 4883 if test "$am_compiler_list" = ""; then 4884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4885 fi 4886 am__universal=false 4887 case " $depcc " in #( 4888 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4889 esac 4890 4891 for depmode in $am_compiler_list; do 4892 # Setup a source with many dependencies, because some compilers 4893 # like to wrap large dependency lists on column 80 (with \), and 4894 # we should not choose a depcomp mode which is confused by this. 4895 # 4896 # We need to recreate these files for each test, as the compiler may 4897 # overwrite some of them when testing with obscure command lines. 4898 # This happens at least with the AIX C compiler. 4899 : > sub/conftest.c 4900 for i in 1 2 3 4 5 6; do 4901 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4902 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4903 # Solaris 10 /bin/sh. 4904 echo '/* dummy */' > sub/conftst$i.h 4905 done 4906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4907 4908 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4909 # mode. It turns out that the SunPro C++ compiler does not properly 4910 # handle '-M -o', and we need to detect this. Also, some Intel 4911 # versions had trouble with output in subdirs. 4912 am__obj=sub/conftest.${OBJEXT-o} 4913 am__minus_obj="-o $am__obj" 4914 case $depmode in 4915 gcc) 4916 # This depmode causes a compiler race in universal mode. 4917 test "$am__universal" = false || continue 4918 ;; 4919 nosideeffect) 4920 # After this tag, mechanisms are not by side-effect, so they'll 4921 # only be used when explicitly requested. 4922 if test "x$enable_dependency_tracking" = xyes; then 4923 continue 4924 else 4925 break 4926 fi 4927 ;; 4928 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4929 # This compiler won't grok '-c -o', but also, the minuso test has 4930 # not run yet. These depmodes are late enough in the game, and 4931 # so weak that their functioning should not be impacted. 4932 am__obj=conftest.${OBJEXT-o} 4933 am__minus_obj= 4934 ;; 4935 none) break ;; 4936 esac 4937 if depmode=$depmode \ 4938 source=sub/conftest.c object=$am__obj \ 4939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4941 >/dev/null 2>conftest.err && 4942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4946 # icc doesn't choke on unknown options, it will just issue warnings 4947 # or remarks (even with -Werror). So we grep stderr for any message 4948 # that says an option was ignored or not supported. 4949 # When given -MP, icc 7.0 and 7.1 complain thusly: 4950 # icc: Command line warning: ignoring option '-M'; no argument required 4951 # The diagnosis changed in icc 8.0: 4952 # icc: Command line remark: option '-MP' not supported 4953 if (grep 'ignoring option' conftest.err || 4954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4955 am_cv_CC_dependencies_compiler_type=$depmode 4956 break 4957 fi 4958 fi 4959 done 4960 4961 cd .. 4962 rm -rf conftest.dir 4963else 4964 am_cv_CC_dependencies_compiler_type=none 4965fi 4966 4967fi 4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4969printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4970CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4971 4972 if 4973 test "x$enable_dependency_tracking" != xno \ 4974 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4975 am__fastdepCC_TRUE= 4976 am__fastdepCC_FALSE='#' 4977else 4978 am__fastdepCC_TRUE='#' 4979 am__fastdepCC_FALSE= 4980fi 4981 4982 4983 4984# Check whether --enable-largefile was given. 4985if test ${enable_largefile+y} 4986then : 4987 enableval=$enable_largefile; 4988fi 4989 4990if test "$enable_largefile" != no; then 4991 4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4993printf %s "checking for special C compiler options needed for large files... " >&6; } 4994if test ${ac_cv_sys_largefile_CC+y} 4995then : 4996 printf %s "(cached) " >&6 4997else $as_nop 4998 ac_cv_sys_largefile_CC=no 4999 if test "$GCC" != yes; then 5000 ac_save_CC=$CC 5001 while :; do 5002 # IRIX 6.2 and later do not support large files by default, 5003 # so use the C compiler's -n32 option if that helps. 5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5005/* end confdefs.h. */ 5006#include <sys/types.h> 5007 /* Check that off_t can represent 2**63 - 1 correctly. 5008 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5009 since some C++ compilers masquerading as C compilers 5010 incorrectly reject 9223372036854775807. */ 5011#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5013 && LARGE_OFF_T % 2147483647 == 1) 5014 ? 1 : -1]; 5015int 5016main (void) 5017{ 5018 5019 ; 5020 return 0; 5021} 5022_ACEOF 5023 if ac_fn_c_try_compile "$LINENO" 5024then : 5025 break 5026fi 5027rm -f core conftest.err conftest.$ac_objext conftest.beam 5028 CC="$CC -n32" 5029 if ac_fn_c_try_compile "$LINENO" 5030then : 5031 ac_cv_sys_largefile_CC=' -n32'; break 5032fi 5033rm -f core conftest.err conftest.$ac_objext conftest.beam 5034 break 5035 done 5036 CC=$ac_save_CC 5037 rm -f conftest.$ac_ext 5038 fi 5039fi 5040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5041printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 5042 if test "$ac_cv_sys_largefile_CC" != no; then 5043 CC=$CC$ac_cv_sys_largefile_CC 5044 fi 5045 5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5047printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5048if test ${ac_cv_sys_file_offset_bits+y} 5049then : 5050 printf %s "(cached) " >&6 5051else $as_nop 5052 while :; do 5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054/* end confdefs.h. */ 5055#include <sys/types.h> 5056 /* Check that off_t can represent 2**63 - 1 correctly. 5057 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5058 since some C++ compilers masquerading as C compilers 5059 incorrectly reject 9223372036854775807. */ 5060#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5062 && LARGE_OFF_T % 2147483647 == 1) 5063 ? 1 : -1]; 5064int 5065main (void) 5066{ 5067 5068 ; 5069 return 0; 5070} 5071_ACEOF 5072if ac_fn_c_try_compile "$LINENO" 5073then : 5074 ac_cv_sys_file_offset_bits=no; break 5075fi 5076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5078/* end confdefs.h. */ 5079#define _FILE_OFFSET_BITS 64 5080#include <sys/types.h> 5081 /* Check that off_t can represent 2**63 - 1 correctly. 5082 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5083 since some C++ compilers masquerading as C compilers 5084 incorrectly reject 9223372036854775807. */ 5085#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5087 && LARGE_OFF_T % 2147483647 == 1) 5088 ? 1 : -1]; 5089int 5090main (void) 5091{ 5092 5093 ; 5094 return 0; 5095} 5096_ACEOF 5097if ac_fn_c_try_compile "$LINENO" 5098then : 5099 ac_cv_sys_file_offset_bits=64; break 5100fi 5101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5102 ac_cv_sys_file_offset_bits=unknown 5103 break 5104done 5105fi 5106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5107printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 5108case $ac_cv_sys_file_offset_bits in #( 5109 no | unknown) ;; 5110 *) 5111printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 5112;; 5113esac 5114rm -rf conftest* 5115 if test $ac_cv_sys_file_offset_bits = unknown; then 5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5117printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 5118if test ${ac_cv_sys_large_files+y} 5119then : 5120 printf %s "(cached) " >&6 5121else $as_nop 5122 while :; do 5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5124/* end confdefs.h. */ 5125#include <sys/types.h> 5126 /* Check that off_t can represent 2**63 - 1 correctly. 5127 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5128 since some C++ compilers masquerading as C compilers 5129 incorrectly reject 9223372036854775807. */ 5130#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5132 && LARGE_OFF_T % 2147483647 == 1) 5133 ? 1 : -1]; 5134int 5135main (void) 5136{ 5137 5138 ; 5139 return 0; 5140} 5141_ACEOF 5142if ac_fn_c_try_compile "$LINENO" 5143then : 5144 ac_cv_sys_large_files=no; break 5145fi 5146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148/* end confdefs.h. */ 5149#define _LARGE_FILES 1 5150#include <sys/types.h> 5151 /* Check that off_t can represent 2**63 - 1 correctly. 5152 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5153 since some C++ compilers masquerading as C compilers 5154 incorrectly reject 9223372036854775807. */ 5155#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5157 && LARGE_OFF_T % 2147483647 == 1) 5158 ? 1 : -1]; 5159int 5160main (void) 5161{ 5162 5163 ; 5164 return 0; 5165} 5166_ACEOF 5167if ac_fn_c_try_compile "$LINENO" 5168then : 5169 ac_cv_sys_large_files=1; break 5170fi 5171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5172 ac_cv_sys_large_files=unknown 5173 break 5174done 5175fi 5176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5177printf "%s\n" "$ac_cv_sys_large_files" >&6; } 5178case $ac_cv_sys_large_files in #( 5179 no | unknown) ;; 5180 *) 5181printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 5182;; 5183esac 5184rm -rf conftest* 5185 fi 5186fi 5187 5188 5189# Check whether --enable-debug was given. 5190if test ${enable_debug+y} 5191then : 5192 enableval=$enable_debug; enable_debug=$enableval 5193else $as_nop 5194 enable_debug=no 5195fi 5196 5197 5198if test "$enable_debug" = "yes" ; then 5199 AM_CFLAGS="-D_DEBUG" 5200 AM_CXXFLAGS="-D_DEBUG" 5201fi 5202 5203 5204# Define the files we wish to generate 5205 5206ac_config_files="$ac_config_files Makefile xsec/Makefile xml-security-c.pc" 5207 5208ac_config_headers="$ac_config_headers config.h xsec/framework/XSECConfig.hpp" 5209 5210 5211 5212# Check for basic programs 5213 5214ac_ext=c 5215ac_cpp='$CPP $CPPFLAGS' 5216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5218ac_compiler_gnu=$ac_cv_c_compiler_gnu 5219if test -n "$ac_tool_prefix"; then 5220 for ac_prog in gcc gcc3 cc 5221 do 5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5223set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5225printf %s "checking for $ac_word... " >&6; } 5226if test ${ac_cv_prog_CC+y} 5227then : 5228 printf %s "(cached) " >&6 5229else $as_nop 5230 if test -n "$CC"; then 5231 ac_cv_prog_CC="$CC" # Let the user override the test. 5232else 5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5234for as_dir in $PATH 5235do 5236 IFS=$as_save_IFS 5237 case $as_dir in #((( 5238 '') as_dir=./ ;; 5239 */) ;; 5240 *) as_dir=$as_dir/ ;; 5241 esac 5242 for ac_exec_ext in '' $ac_executable_extensions; do 5243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5246 break 2 5247 fi 5248done 5249 done 5250IFS=$as_save_IFS 5251 5252fi 5253fi 5254CC=$ac_cv_prog_CC 5255if test -n "$CC"; then 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5257printf "%s\n" "$CC" >&6; } 5258else 5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260printf "%s\n" "no" >&6; } 5261fi 5262 5263 5264 test -n "$CC" && break 5265 done 5266fi 5267if test -z "$CC"; then 5268 ac_ct_CC=$CC 5269 for ac_prog in gcc gcc3 cc 5270do 5271 # Extract the first word of "$ac_prog", so it can be a program name with args. 5272set dummy $ac_prog; ac_word=$2 5273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5274printf %s "checking for $ac_word... " >&6; } 5275if test ${ac_cv_prog_ac_ct_CC+y} 5276then : 5277 printf %s "(cached) " >&6 5278else $as_nop 5279 if test -n "$ac_ct_CC"; then 5280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5281else 5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5283for as_dir in $PATH 5284do 5285 IFS=$as_save_IFS 5286 case $as_dir in #((( 5287 '') as_dir=./ ;; 5288 */) ;; 5289 *) as_dir=$as_dir/ ;; 5290 esac 5291 for ac_exec_ext in '' $ac_executable_extensions; do 5292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5293 ac_cv_prog_ac_ct_CC="$ac_prog" 5294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5295 break 2 5296 fi 5297done 5298 done 5299IFS=$as_save_IFS 5300 5301fi 5302fi 5303ac_ct_CC=$ac_cv_prog_ac_ct_CC 5304if test -n "$ac_ct_CC"; then 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5306printf "%s\n" "$ac_ct_CC" >&6; } 5307else 5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5309printf "%s\n" "no" >&6; } 5310fi 5311 5312 5313 test -n "$ac_ct_CC" && break 5314done 5315 5316 if test "x$ac_ct_CC" = x; then 5317 CC="" 5318 else 5319 case $cross_compiling:$ac_tool_warned in 5320yes:) 5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5322printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5323ac_tool_warned=yes ;; 5324esac 5325 CC=$ac_ct_CC 5326 fi 5327fi 5328 5329 5330test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5331printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5332as_fn_error $? "no acceptable C compiler found in \$PATH 5333See \`config.log' for more details" "$LINENO" 5; } 5334 5335# Provide some information about the compiler. 5336printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5337set X $ac_compile 5338ac_compiler=$2 5339for ac_option in --version -v -V -qversion -version; do 5340 { { ac_try="$ac_compiler $ac_option >&5" 5341case "(($ac_try" in 5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5343 *) ac_try_echo=$ac_try;; 5344esac 5345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5346printf "%s\n" "$ac_try_echo"; } >&5 5347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5348 ac_status=$? 5349 if test -s conftest.err; then 5350 sed '10a\ 5351... rest of stderr output deleted ... 5352 10q' conftest.err >conftest.er1 5353 cat conftest.er1 >&5 5354 fi 5355 rm -f conftest.er1 conftest.err 5356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5357 test $ac_status = 0; } 5358done 5359 5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5361printf %s "checking whether the compiler supports GNU C... " >&6; } 5362if test ${ac_cv_c_compiler_gnu+y} 5363then : 5364 printf %s "(cached) " >&6 5365else $as_nop 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368 5369int 5370main (void) 5371{ 5372#ifndef __GNUC__ 5373 choke me 5374#endif 5375 5376 ; 5377 return 0; 5378} 5379_ACEOF 5380if ac_fn_c_try_compile "$LINENO" 5381then : 5382 ac_compiler_gnu=yes 5383else $as_nop 5384 ac_compiler_gnu=no 5385fi 5386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5387ac_cv_c_compiler_gnu=$ac_compiler_gnu 5388 5389fi 5390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5391printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5392ac_compiler_gnu=$ac_cv_c_compiler_gnu 5393 5394if test $ac_compiler_gnu = yes; then 5395 GCC=yes 5396else 5397 GCC= 5398fi 5399ac_test_CFLAGS=${CFLAGS+y} 5400ac_save_CFLAGS=$CFLAGS 5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5402printf %s "checking whether $CC accepts -g... " >&6; } 5403if test ${ac_cv_prog_cc_g+y} 5404then : 5405 printf %s "(cached) " >&6 5406else $as_nop 5407 ac_save_c_werror_flag=$ac_c_werror_flag 5408 ac_c_werror_flag=yes 5409 ac_cv_prog_cc_g=no 5410 CFLAGS="-g" 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413 5414int 5415main (void) 5416{ 5417 5418 ; 5419 return 0; 5420} 5421_ACEOF 5422if ac_fn_c_try_compile "$LINENO" 5423then : 5424 ac_cv_prog_cc_g=yes 5425else $as_nop 5426 CFLAGS="" 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428/* end confdefs.h. */ 5429 5430int 5431main (void) 5432{ 5433 5434 ; 5435 return 0; 5436} 5437_ACEOF 5438if ac_fn_c_try_compile "$LINENO" 5439then : 5440 5441else $as_nop 5442 ac_c_werror_flag=$ac_save_c_werror_flag 5443 CFLAGS="-g" 5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446 5447int 5448main (void) 5449{ 5450 5451 ; 5452 return 0; 5453} 5454_ACEOF 5455if ac_fn_c_try_compile "$LINENO" 5456then : 5457 ac_cv_prog_cc_g=yes 5458fi 5459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5460fi 5461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5462fi 5463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5464 ac_c_werror_flag=$ac_save_c_werror_flag 5465fi 5466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5467printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5468if test $ac_test_CFLAGS; then 5469 CFLAGS=$ac_save_CFLAGS 5470elif test $ac_cv_prog_cc_g = yes; then 5471 if test "$GCC" = yes; then 5472 CFLAGS="-g -O2" 5473 else 5474 CFLAGS="-g" 5475 fi 5476else 5477 if test "$GCC" = yes; then 5478 CFLAGS="-O2" 5479 else 5480 CFLAGS= 5481 fi 5482fi 5483ac_prog_cc_stdc=no 5484if test x$ac_prog_cc_stdc = xno 5485then : 5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5487printf %s "checking for $CC option to enable C11 features... " >&6; } 5488if test ${ac_cv_prog_cc_c11+y} 5489then : 5490 printf %s "(cached) " >&6 5491else $as_nop 5492 ac_cv_prog_cc_c11=no 5493ac_save_CC=$CC 5494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495/* end confdefs.h. */ 5496$ac_c_conftest_c11_program 5497_ACEOF 5498for ac_arg in '' -std=gnu11 5499do 5500 CC="$ac_save_CC $ac_arg" 5501 if ac_fn_c_try_compile "$LINENO" 5502then : 5503 ac_cv_prog_cc_c11=$ac_arg 5504fi 5505rm -f core conftest.err conftest.$ac_objext conftest.beam 5506 test "x$ac_cv_prog_cc_c11" != "xno" && break 5507done 5508rm -f conftest.$ac_ext 5509CC=$ac_save_CC 5510fi 5511 5512if test "x$ac_cv_prog_cc_c11" = xno 5513then : 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5515printf "%s\n" "unsupported" >&6; } 5516else $as_nop 5517 if test "x$ac_cv_prog_cc_c11" = x 5518then : 5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5520printf "%s\n" "none needed" >&6; } 5521else $as_nop 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5523printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5524 CC="$CC $ac_cv_prog_cc_c11" 5525fi 5526 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5527 ac_prog_cc_stdc=c11 5528fi 5529fi 5530if test x$ac_prog_cc_stdc = xno 5531then : 5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5533printf %s "checking for $CC option to enable C99 features... " >&6; } 5534if test ${ac_cv_prog_cc_c99+y} 5535then : 5536 printf %s "(cached) " >&6 5537else $as_nop 5538 ac_cv_prog_cc_c99=no 5539ac_save_CC=$CC 5540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5541/* end confdefs.h. */ 5542$ac_c_conftest_c99_program 5543_ACEOF 5544for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5545do 5546 CC="$ac_save_CC $ac_arg" 5547 if ac_fn_c_try_compile "$LINENO" 5548then : 5549 ac_cv_prog_cc_c99=$ac_arg 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.beam 5552 test "x$ac_cv_prog_cc_c99" != "xno" && break 5553done 5554rm -f conftest.$ac_ext 5555CC=$ac_save_CC 5556fi 5557 5558if test "x$ac_cv_prog_cc_c99" = xno 5559then : 5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5561printf "%s\n" "unsupported" >&6; } 5562else $as_nop 5563 if test "x$ac_cv_prog_cc_c99" = x 5564then : 5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5566printf "%s\n" "none needed" >&6; } 5567else $as_nop 5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5569printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5570 CC="$CC $ac_cv_prog_cc_c99" 5571fi 5572 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5573 ac_prog_cc_stdc=c99 5574fi 5575fi 5576if test x$ac_prog_cc_stdc = xno 5577then : 5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5579printf %s "checking for $CC option to enable C89 features... " >&6; } 5580if test ${ac_cv_prog_cc_c89+y} 5581then : 5582 printf %s "(cached) " >&6 5583else $as_nop 5584 ac_cv_prog_cc_c89=no 5585ac_save_CC=$CC 5586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5587/* end confdefs.h. */ 5588$ac_c_conftest_c89_program 5589_ACEOF 5590for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5591do 5592 CC="$ac_save_CC $ac_arg" 5593 if ac_fn_c_try_compile "$LINENO" 5594then : 5595 ac_cv_prog_cc_c89=$ac_arg 5596fi 5597rm -f core conftest.err conftest.$ac_objext conftest.beam 5598 test "x$ac_cv_prog_cc_c89" != "xno" && break 5599done 5600rm -f conftest.$ac_ext 5601CC=$ac_save_CC 5602fi 5603 5604if test "x$ac_cv_prog_cc_c89" = xno 5605then : 5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5607printf "%s\n" "unsupported" >&6; } 5608else $as_nop 5609 if test "x$ac_cv_prog_cc_c89" = x 5610then : 5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5612printf "%s\n" "none needed" >&6; } 5613else $as_nop 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5615printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5616 CC="$CC $ac_cv_prog_cc_c89" 5617fi 5618 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5619 ac_prog_cc_stdc=c89 5620fi 5621fi 5622 5623ac_ext=c 5624ac_cpp='$CPP $CPPFLAGS' 5625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5627ac_compiler_gnu=$ac_cv_c_compiler_gnu 5628 5629 5630 ac_ext=c 5631ac_cpp='$CPP $CPPFLAGS' 5632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5634ac_compiler_gnu=$ac_cv_c_compiler_gnu 5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5636printf %s "checking whether $CC understands -c and -o together... " >&6; } 5637if test ${am_cv_prog_cc_c_o+y} 5638then : 5639 printf %s "(cached) " >&6 5640else $as_nop 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643 5644int 5645main (void) 5646{ 5647 5648 ; 5649 return 0; 5650} 5651_ACEOF 5652 # Make sure it works both with $CC and with simple cc. 5653 # Following AC_PROG_CC_C_O, we do the test twice because some 5654 # compilers refuse to overwrite an existing .o file with -o, 5655 # though they will create one. 5656 am_cv_prog_cc_c_o=yes 5657 for am_i in 1 2; do 5658 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5659 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5660 ac_status=$? 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5662 (exit $ac_status); } \ 5663 && test -f conftest2.$ac_objext; then 5664 : OK 5665 else 5666 am_cv_prog_cc_c_o=no 5667 break 5668 fi 5669 done 5670 rm -f core conftest* 5671 unset am_i 5672fi 5673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5674printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5675if test "$am_cv_prog_cc_c_o" != yes; then 5676 # Losing compiler, so override with the script. 5677 # FIXME: It is wrong to rewrite CC. 5678 # But if we don't then we get into trouble of one sort or another. 5679 # A longer-term fix would be to have automake use am__CC in this case, 5680 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5681 CC="$am_aux_dir/compile $CC" 5682fi 5683ac_ext=c 5684ac_cpp='$CPP $CPPFLAGS' 5685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5687ac_compiler_gnu=$ac_cv_c_compiler_gnu 5688 5689 5690depcc="$CC" am_compiler_list= 5691 5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5693printf %s "checking dependency style of $depcc... " >&6; } 5694if test ${am_cv_CC_dependencies_compiler_type+y} 5695then : 5696 printf %s "(cached) " >&6 5697else $as_nop 5698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5699 # We make a subdir and do the tests there. Otherwise we can end up 5700 # making bogus files that we don't know about and never remove. For 5701 # instance it was reported that on HP-UX the gcc test will end up 5702 # making a dummy file named 'D' -- because '-MD' means "put the output 5703 # in D". 5704 rm -rf conftest.dir 5705 mkdir conftest.dir 5706 # Copy depcomp to subdir because otherwise we won't find it if we're 5707 # using a relative directory. 5708 cp "$am_depcomp" conftest.dir 5709 cd conftest.dir 5710 # We will build objects and dependencies in a subdirectory because 5711 # it helps to detect inapplicable dependency modes. For instance 5712 # both Tru64's cc and ICC support -MD to output dependencies as a 5713 # side effect of compilation, but ICC will put the dependencies in 5714 # the current directory while Tru64 will put them in the object 5715 # directory. 5716 mkdir sub 5717 5718 am_cv_CC_dependencies_compiler_type=none 5719 if test "$am_compiler_list" = ""; then 5720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5721 fi 5722 am__universal=false 5723 case " $depcc " in #( 5724 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5725 esac 5726 5727 for depmode in $am_compiler_list; do 5728 # Setup a source with many dependencies, because some compilers 5729 # like to wrap large dependency lists on column 80 (with \), and 5730 # we should not choose a depcomp mode which is confused by this. 5731 # 5732 # We need to recreate these files for each test, as the compiler may 5733 # overwrite some of them when testing with obscure command lines. 5734 # This happens at least with the AIX C compiler. 5735 : > sub/conftest.c 5736 for i in 1 2 3 4 5 6; do 5737 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5738 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5739 # Solaris 10 /bin/sh. 5740 echo '/* dummy */' > sub/conftst$i.h 5741 done 5742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5743 5744 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5745 # mode. It turns out that the SunPro C++ compiler does not properly 5746 # handle '-M -o', and we need to detect this. Also, some Intel 5747 # versions had trouble with output in subdirs. 5748 am__obj=sub/conftest.${OBJEXT-o} 5749 am__minus_obj="-o $am__obj" 5750 case $depmode in 5751 gcc) 5752 # This depmode causes a compiler race in universal mode. 5753 test "$am__universal" = false || continue 5754 ;; 5755 nosideeffect) 5756 # After this tag, mechanisms are not by side-effect, so they'll 5757 # only be used when explicitly requested. 5758 if test "x$enable_dependency_tracking" = xyes; then 5759 continue 5760 else 5761 break 5762 fi 5763 ;; 5764 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5765 # This compiler won't grok '-c -o', but also, the minuso test has 5766 # not run yet. These depmodes are late enough in the game, and 5767 # so weak that their functioning should not be impacted. 5768 am__obj=conftest.${OBJEXT-o} 5769 am__minus_obj= 5770 ;; 5771 none) break ;; 5772 esac 5773 if depmode=$depmode \ 5774 source=sub/conftest.c object=$am__obj \ 5775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5776 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5777 >/dev/null 2>conftest.err && 5778 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5779 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5780 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5781 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5782 # icc doesn't choke on unknown options, it will just issue warnings 5783 # or remarks (even with -Werror). So we grep stderr for any message 5784 # that says an option was ignored or not supported. 5785 # When given -MP, icc 7.0 and 7.1 complain thusly: 5786 # icc: Command line warning: ignoring option '-M'; no argument required 5787 # The diagnosis changed in icc 8.0: 5788 # icc: Command line remark: option '-MP' not supported 5789 if (grep 'ignoring option' conftest.err || 5790 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5791 am_cv_CC_dependencies_compiler_type=$depmode 5792 break 5793 fi 5794 fi 5795 done 5796 5797 cd .. 5798 rm -rf conftest.dir 5799else 5800 am_cv_CC_dependencies_compiler_type=none 5801fi 5802 5803fi 5804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5805printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5806CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5807 5808 if 5809 test "x$enable_dependency_tracking" != xno \ 5810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5811 am__fastdepCC_TRUE= 5812 am__fastdepCC_FALSE='#' 5813else 5814 am__fastdepCC_TRUE='#' 5815 am__fastdepCC_FALSE= 5816fi 5817 5818 5819 5820 5821 5822 5823 5824 5825ac_ext=cpp 5826ac_cpp='$CXXCPP $CPPFLAGS' 5827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5830if test -z "$CXX"; then 5831 if test -n "$CCC"; then 5832 CXX=$CCC 5833 else 5834 if test -n "$ac_tool_prefix"; then 5835 for ac_prog in g++ g++3 c++ CC 5836 do 5837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5838set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5840printf %s "checking for $ac_word... " >&6; } 5841if test ${ac_cv_prog_CXX+y} 5842then : 5843 printf %s "(cached) " >&6 5844else $as_nop 5845 if test -n "$CXX"; then 5846 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5847else 5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849for as_dir in $PATH 5850do 5851 IFS=$as_save_IFS 5852 case $as_dir in #((( 5853 '') as_dir=./ ;; 5854 */) ;; 5855 *) as_dir=$as_dir/ ;; 5856 esac 5857 for ac_exec_ext in '' $ac_executable_extensions; do 5858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5861 break 2 5862 fi 5863done 5864 done 5865IFS=$as_save_IFS 5866 5867fi 5868fi 5869CXX=$ac_cv_prog_CXX 5870if test -n "$CXX"; then 5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5872printf "%s\n" "$CXX" >&6; } 5873else 5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5875printf "%s\n" "no" >&6; } 5876fi 5877 5878 5879 test -n "$CXX" && break 5880 done 5881fi 5882if test -z "$CXX"; then 5883 ac_ct_CXX=$CXX 5884 for ac_prog in g++ g++3 c++ CC 5885do 5886 # Extract the first word of "$ac_prog", so it can be a program name with args. 5887set dummy $ac_prog; ac_word=$2 5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5889printf %s "checking for $ac_word... " >&6; } 5890if test ${ac_cv_prog_ac_ct_CXX+y} 5891then : 5892 printf %s "(cached) " >&6 5893else $as_nop 5894 if test -n "$ac_ct_CXX"; then 5895 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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 case $as_dir in #((( 5902 '') as_dir=./ ;; 5903 */) ;; 5904 *) as_dir=$as_dir/ ;; 5905 esac 5906 for ac_exec_ext in '' $ac_executable_extensions; do 5907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5908 ac_cv_prog_ac_ct_CXX="$ac_prog" 5909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5910 break 2 5911 fi 5912done 5913 done 5914IFS=$as_save_IFS 5915 5916fi 5917fi 5918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5919if test -n "$ac_ct_CXX"; then 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5921printf "%s\n" "$ac_ct_CXX" >&6; } 5922else 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5924printf "%s\n" "no" >&6; } 5925fi 5926 5927 5928 test -n "$ac_ct_CXX" && break 5929done 5930 5931 if test "x$ac_ct_CXX" = x; then 5932 CXX="g++" 5933 else 5934 case $cross_compiling:$ac_tool_warned in 5935yes:) 5936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5937printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5938ac_tool_warned=yes ;; 5939esac 5940 CXX=$ac_ct_CXX 5941 fi 5942fi 5943 5944 fi 5945fi 5946# Provide some information about the compiler. 5947printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5948set X $ac_compile 5949ac_compiler=$2 5950for ac_option in --version -v -V -qversion; do 5951 { { ac_try="$ac_compiler $ac_option >&5" 5952case "(($ac_try" in 5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5954 *) ac_try_echo=$ac_try;; 5955esac 5956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5957printf "%s\n" "$ac_try_echo"; } >&5 5958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5959 ac_status=$? 5960 if test -s conftest.err; then 5961 sed '10a\ 5962... rest of stderr output deleted ... 5963 10q' conftest.err >conftest.er1 5964 cat conftest.er1 >&5 5965 fi 5966 rm -f conftest.er1 conftest.err 5967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5968 test $ac_status = 0; } 5969done 5970 5971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 5972printf %s "checking whether the compiler supports GNU C++... " >&6; } 5973if test ${ac_cv_cxx_compiler_gnu+y} 5974then : 5975 printf %s "(cached) " >&6 5976else $as_nop 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979 5980int 5981main (void) 5982{ 5983#ifndef __GNUC__ 5984 choke me 5985#endif 5986 5987 ; 5988 return 0; 5989} 5990_ACEOF 5991if ac_fn_cxx_try_compile "$LINENO" 5992then : 5993 ac_compiler_gnu=yes 5994else $as_nop 5995 ac_compiler_gnu=no 5996fi 5997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5998ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5999 6000fi 6001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6002printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 6003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6004 6005if test $ac_compiler_gnu = yes; then 6006 GXX=yes 6007else 6008 GXX= 6009fi 6010ac_test_CXXFLAGS=${CXXFLAGS+y} 6011ac_save_CXXFLAGS=$CXXFLAGS 6012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6013printf %s "checking whether $CXX accepts -g... " >&6; } 6014if test ${ac_cv_prog_cxx_g+y} 6015then : 6016 printf %s "(cached) " >&6 6017else $as_nop 6018 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6019 ac_cxx_werror_flag=yes 6020 ac_cv_prog_cxx_g=no 6021 CXXFLAGS="-g" 6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023/* end confdefs.h. */ 6024 6025int 6026main (void) 6027{ 6028 6029 ; 6030 return 0; 6031} 6032_ACEOF 6033if ac_fn_cxx_try_compile "$LINENO" 6034then : 6035 ac_cv_prog_cxx_g=yes 6036else $as_nop 6037 CXXFLAGS="" 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6039/* end confdefs.h. */ 6040 6041int 6042main (void) 6043{ 6044 6045 ; 6046 return 0; 6047} 6048_ACEOF 6049if ac_fn_cxx_try_compile "$LINENO" 6050then : 6051 6052else $as_nop 6053 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6054 CXXFLAGS="-g" 6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056/* end confdefs.h. */ 6057 6058int 6059main (void) 6060{ 6061 6062 ; 6063 return 0; 6064} 6065_ACEOF 6066if ac_fn_cxx_try_compile "$LINENO" 6067then : 6068 ac_cv_prog_cxx_g=yes 6069fi 6070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6071fi 6072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6073fi 6074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6075 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6076fi 6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6078printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 6079if test $ac_test_CXXFLAGS; then 6080 CXXFLAGS=$ac_save_CXXFLAGS 6081elif test $ac_cv_prog_cxx_g = yes; then 6082 if test "$GXX" = yes; then 6083 CXXFLAGS="-g -O2" 6084 else 6085 CXXFLAGS="-g" 6086 fi 6087else 6088 if test "$GXX" = yes; then 6089 CXXFLAGS="-O2" 6090 else 6091 CXXFLAGS= 6092 fi 6093fi 6094ac_prog_cxx_stdcxx=no 6095if test x$ac_prog_cxx_stdcxx = xno 6096then : 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 6098printf %s "checking for $CXX option to enable C++11 features... " >&6; } 6099if test ${ac_cv_prog_cxx_11+y} 6100then : 6101 printf %s "(cached) " >&6 6102else $as_nop 6103 ac_cv_prog_cxx_11=no 6104ac_save_CXX=$CXX 6105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107$ac_cxx_conftest_cxx11_program 6108_ACEOF 6109for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 6110do 6111 CXX="$ac_save_CXX $ac_arg" 6112 if ac_fn_cxx_try_compile "$LINENO" 6113then : 6114 ac_cv_prog_cxx_cxx11=$ac_arg 6115fi 6116rm -f core conftest.err conftest.$ac_objext conftest.beam 6117 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 6118done 6119rm -f conftest.$ac_ext 6120CXX=$ac_save_CXX 6121fi 6122 6123if test "x$ac_cv_prog_cxx_cxx11" = xno 6124then : 6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6126printf "%s\n" "unsupported" >&6; } 6127else $as_nop 6128 if test "x$ac_cv_prog_cxx_cxx11" = x 6129then : 6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6131printf "%s\n" "none needed" >&6; } 6132else $as_nop 6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 6134printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 6135 CXX="$CXX $ac_cv_prog_cxx_cxx11" 6136fi 6137 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 6138 ac_prog_cxx_stdcxx=cxx11 6139fi 6140fi 6141if test x$ac_prog_cxx_stdcxx = xno 6142then : 6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 6144printf %s "checking for $CXX option to enable C++98 features... " >&6; } 6145if test ${ac_cv_prog_cxx_98+y} 6146then : 6147 printf %s "(cached) " >&6 6148else $as_nop 6149 ac_cv_prog_cxx_98=no 6150ac_save_CXX=$CXX 6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153$ac_cxx_conftest_cxx98_program 6154_ACEOF 6155for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 6156do 6157 CXX="$ac_save_CXX $ac_arg" 6158 if ac_fn_cxx_try_compile "$LINENO" 6159then : 6160 ac_cv_prog_cxx_cxx98=$ac_arg 6161fi 6162rm -f core conftest.err conftest.$ac_objext conftest.beam 6163 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 6164done 6165rm -f conftest.$ac_ext 6166CXX=$ac_save_CXX 6167fi 6168 6169if test "x$ac_cv_prog_cxx_cxx98" = xno 6170then : 6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6172printf "%s\n" "unsupported" >&6; } 6173else $as_nop 6174 if test "x$ac_cv_prog_cxx_cxx98" = x 6175then : 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6177printf "%s\n" "none needed" >&6; } 6178else $as_nop 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 6180printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 6181 CXX="$CXX $ac_cv_prog_cxx_cxx98" 6182fi 6183 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 6184 ac_prog_cxx_stdcxx=cxx98 6185fi 6186fi 6187 6188ac_ext=c 6189ac_cpp='$CPP $CPPFLAGS' 6190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6192ac_compiler_gnu=$ac_cv_c_compiler_gnu 6193 6194depcc="$CXX" am_compiler_list= 6195 6196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6197printf %s "checking dependency style of $depcc... " >&6; } 6198if test ${am_cv_CXX_dependencies_compiler_type+y} 6199then : 6200 printf %s "(cached) " >&6 6201else $as_nop 6202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6203 # We make a subdir and do the tests there. Otherwise we can end up 6204 # making bogus files that we don't know about and never remove. For 6205 # instance it was reported that on HP-UX the gcc test will end up 6206 # making a dummy file named 'D' -- because '-MD' means "put the output 6207 # in D". 6208 rm -rf conftest.dir 6209 mkdir conftest.dir 6210 # Copy depcomp to subdir because otherwise we won't find it if we're 6211 # using a relative directory. 6212 cp "$am_depcomp" conftest.dir 6213 cd conftest.dir 6214 # We will build objects and dependencies in a subdirectory because 6215 # it helps to detect inapplicable dependency modes. For instance 6216 # both Tru64's cc and ICC support -MD to output dependencies as a 6217 # side effect of compilation, but ICC will put the dependencies in 6218 # the current directory while Tru64 will put them in the object 6219 # directory. 6220 mkdir sub 6221 6222 am_cv_CXX_dependencies_compiler_type=none 6223 if test "$am_compiler_list" = ""; then 6224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6225 fi 6226 am__universal=false 6227 case " $depcc " in #( 6228 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6229 esac 6230 6231 for depmode in $am_compiler_list; do 6232 # Setup a source with many dependencies, because some compilers 6233 # like to wrap large dependency lists on column 80 (with \), and 6234 # we should not choose a depcomp mode which is confused by this. 6235 # 6236 # We need to recreate these files for each test, as the compiler may 6237 # overwrite some of them when testing with obscure command lines. 6238 # This happens at least with the AIX C compiler. 6239 : > sub/conftest.c 6240 for i in 1 2 3 4 5 6; do 6241 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6242 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6243 # Solaris 10 /bin/sh. 6244 echo '/* dummy */' > sub/conftst$i.h 6245 done 6246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6247 6248 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6249 # mode. It turns out that the SunPro C++ compiler does not properly 6250 # handle '-M -o', and we need to detect this. Also, some Intel 6251 # versions had trouble with output in subdirs. 6252 am__obj=sub/conftest.${OBJEXT-o} 6253 am__minus_obj="-o $am__obj" 6254 case $depmode in 6255 gcc) 6256 # This depmode causes a compiler race in universal mode. 6257 test "$am__universal" = false || continue 6258 ;; 6259 nosideeffect) 6260 # After this tag, mechanisms are not by side-effect, so they'll 6261 # only be used when explicitly requested. 6262 if test "x$enable_dependency_tracking" = xyes; then 6263 continue 6264 else 6265 break 6266 fi 6267 ;; 6268 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6269 # This compiler won't grok '-c -o', but also, the minuso test has 6270 # not run yet. These depmodes are late enough in the game, and 6271 # so weak that their functioning should not be impacted. 6272 am__obj=conftest.${OBJEXT-o} 6273 am__minus_obj= 6274 ;; 6275 none) break ;; 6276 esac 6277 if depmode=$depmode \ 6278 source=sub/conftest.c object=$am__obj \ 6279 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6280 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6281 >/dev/null 2>conftest.err && 6282 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6283 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6284 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6285 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6286 # icc doesn't choke on unknown options, it will just issue warnings 6287 # or remarks (even with -Werror). So we grep stderr for any message 6288 # that says an option was ignored or not supported. 6289 # When given -MP, icc 7.0 and 7.1 complain thusly: 6290 # icc: Command line warning: ignoring option '-M'; no argument required 6291 # The diagnosis changed in icc 8.0: 6292 # icc: Command line remark: option '-MP' not supported 6293 if (grep 'ignoring option' conftest.err || 6294 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6295 am_cv_CXX_dependencies_compiler_type=$depmode 6296 break 6297 fi 6298 fi 6299 done 6300 6301 cd .. 6302 rm -rf conftest.dir 6303else 6304 am_cv_CXX_dependencies_compiler_type=none 6305fi 6306 6307fi 6308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6309printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 6310CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6311 6312 if 6313 test "x$enable_dependency_tracking" != xno \ 6314 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6315 am__fastdepCXX_TRUE= 6316 am__fastdepCXX_FALSE='#' 6317else 6318 am__fastdepCXX_TRUE='#' 6319 am__fastdepCXX_FALSE= 6320fi 6321 6322 6323case `pwd` in 6324 *\ * | *\ *) 6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6326printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6327esac 6328 6329 6330 6331macro_version='2.4.6' 6332macro_revision='2.4.6' 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347ltmain=$ac_aux_dir/ltmain.sh 6348 6349 6350 6351 # Make sure we can run config.sub. 6352$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6353 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6354 6355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6356printf %s "checking build system type... " >&6; } 6357if test ${ac_cv_build+y} 6358then : 6359 printf %s "(cached) " >&6 6360else $as_nop 6361 ac_build_alias=$build_alias 6362test "x$ac_build_alias" = x && 6363 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6364test "x$ac_build_alias" = x && 6365 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6366ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6367 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6368 6369fi 6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6371printf "%s\n" "$ac_cv_build" >&6; } 6372case $ac_cv_build in 6373*-*-*) ;; 6374*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6375esac 6376build=$ac_cv_build 6377ac_save_IFS=$IFS; IFS='-' 6378set x $ac_cv_build 6379shift 6380build_cpu=$1 6381build_vendor=$2 6382shift; shift 6383# Remember, the first character of IFS is used to create $*, 6384# except with old shells: 6385build_os=$* 6386IFS=$ac_save_IFS 6387case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6388 6389 6390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6391printf %s "checking host system type... " >&6; } 6392if test ${ac_cv_host+y} 6393then : 6394 printf %s "(cached) " >&6 6395else $as_nop 6396 if test "x$host_alias" = x; then 6397 ac_cv_host=$ac_cv_build 6398else 6399 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6400 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6401fi 6402 6403fi 6404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6405printf "%s\n" "$ac_cv_host" >&6; } 6406case $ac_cv_host in 6407*-*-*) ;; 6408*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6409esac 6410host=$ac_cv_host 6411ac_save_IFS=$IFS; IFS='-' 6412set x $ac_cv_host 6413shift 6414host_cpu=$1 6415host_vendor=$2 6416shift; shift 6417# Remember, the first character of IFS is used to create $*, 6418# except with old shells: 6419host_os=$* 6420IFS=$ac_save_IFS 6421case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6422 6423 6424# Backslashify metacharacters that are still active within 6425# double-quoted strings. 6426sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6427 6428# Same as above, but do not quote variable references. 6429double_quote_subst='s/\(["`\\]\)/\\\1/g' 6430 6431# Sed substitution to delay expansion of an escaped shell variable in a 6432# double_quote_subst'ed string. 6433delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6434 6435# Sed substitution to delay expansion of an escaped single quote. 6436delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6437 6438# Sed substitution to avoid accidental globbing in evaled expressions 6439no_glob_subst='s/\*/\\\*/g' 6440 6441ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6442ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6443ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6444 6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6446printf %s "checking how to print strings... " >&6; } 6447# Test print first, because it will be a builtin if present. 6448if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6449 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6450 ECHO='print -r --' 6451elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6452 ECHO='printf %s\n' 6453else 6454 # Use this function as a fallback that always works. 6455 func_fallback_echo () 6456 { 6457 eval 'cat <<_LTECHO_EOF 6458$1 6459_LTECHO_EOF' 6460 } 6461 ECHO='func_fallback_echo' 6462fi 6463 6464# func_echo_all arg... 6465# Invoke $ECHO with all args, space-separated. 6466func_echo_all () 6467{ 6468 $ECHO "" 6469} 6470 6471case $ECHO in 6472 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6473printf "%s\n" "printf" >&6; } ;; 6474 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6475printf "%s\n" "print -r" >&6; } ;; 6476 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6477printf "%s\n" "cat" >&6; } ;; 6478esac 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6494printf %s "checking for a sed that does not truncate output... " >&6; } 6495if test ${ac_cv_path_SED+y} 6496then : 6497 printf %s "(cached) " >&6 6498else $as_nop 6499 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6500 for ac_i in 1 2 3 4 5 6 7; do 6501 ac_script="$ac_script$as_nl$ac_script" 6502 done 6503 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6504 { ac_script=; unset ac_script;} 6505 if test -z "$SED"; then 6506 ac_path_SED_found=false 6507 # Loop through the user's path and test for each of PROGNAME-LIST 6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6509for as_dir in $PATH 6510do 6511 IFS=$as_save_IFS 6512 case $as_dir in #((( 6513 '') as_dir=./ ;; 6514 */) ;; 6515 *) as_dir=$as_dir/ ;; 6516 esac 6517 for ac_prog in sed gsed 6518 do 6519 for ac_exec_ext in '' $ac_executable_extensions; do 6520 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6521 as_fn_executable_p "$ac_path_SED" || continue 6522# Check for GNU ac_path_SED and select it if it is found. 6523 # Check for GNU $ac_path_SED 6524case `"$ac_path_SED" --version 2>&1` in 6525*GNU*) 6526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6527*) 6528 ac_count=0 6529 printf %s 0123456789 >"conftest.in" 6530 while : 6531 do 6532 cat "conftest.in" "conftest.in" >"conftest.tmp" 6533 mv "conftest.tmp" "conftest.in" 6534 cp "conftest.in" "conftest.nl" 6535 printf "%s\n" '' >> "conftest.nl" 6536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6538 as_fn_arith $ac_count + 1 && ac_count=$as_val 6539 if test $ac_count -gt ${ac_path_SED_max-0}; then 6540 # Best one so far, save it but keep looking for a better one 6541 ac_cv_path_SED="$ac_path_SED" 6542 ac_path_SED_max=$ac_count 6543 fi 6544 # 10*(2^10) chars as input seems more than enough 6545 test $ac_count -gt 10 && break 6546 done 6547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6548esac 6549 6550 $ac_path_SED_found && break 3 6551 done 6552 done 6553 done 6554IFS=$as_save_IFS 6555 if test -z "$ac_cv_path_SED"; then 6556 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6557 fi 6558else 6559 ac_cv_path_SED=$SED 6560fi 6561 6562fi 6563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6564printf "%s\n" "$ac_cv_path_SED" >&6; } 6565 SED="$ac_cv_path_SED" 6566 rm -f conftest.sed 6567 6568test -z "$SED" && SED=sed 6569Xsed="$SED -e 1s/^X//" 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6582printf %s "checking for grep that handles long lines and -e... " >&6; } 6583if test ${ac_cv_path_GREP+y} 6584then : 6585 printf %s "(cached) " >&6 6586else $as_nop 6587 if test -z "$GREP"; then 6588 ac_path_GREP_found=false 6589 # Loop through the user's path and test for each of PROGNAME-LIST 6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6592do 6593 IFS=$as_save_IFS 6594 case $as_dir in #((( 6595 '') as_dir=./ ;; 6596 */) ;; 6597 *) as_dir=$as_dir/ ;; 6598 esac 6599 for ac_prog in grep ggrep 6600 do 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 6603 as_fn_executable_p "$ac_path_GREP" || continue 6604# Check for GNU ac_path_GREP and select it if it is found. 6605 # Check for GNU $ac_path_GREP 6606case `"$ac_path_GREP" --version 2>&1` in 6607*GNU*) 6608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6609*) 6610 ac_count=0 6611 printf %s 0123456789 >"conftest.in" 6612 while : 6613 do 6614 cat "conftest.in" "conftest.in" >"conftest.tmp" 6615 mv "conftest.tmp" "conftest.in" 6616 cp "conftest.in" "conftest.nl" 6617 printf "%s\n" 'GREP' >> "conftest.nl" 6618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6620 as_fn_arith $ac_count + 1 && ac_count=$as_val 6621 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6622 # Best one so far, save it but keep looking for a better one 6623 ac_cv_path_GREP="$ac_path_GREP" 6624 ac_path_GREP_max=$ac_count 6625 fi 6626 # 10*(2^10) chars as input seems more than enough 6627 test $ac_count -gt 10 && break 6628 done 6629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6630esac 6631 6632 $ac_path_GREP_found && break 3 6633 done 6634 done 6635 done 6636IFS=$as_save_IFS 6637 if test -z "$ac_cv_path_GREP"; then 6638 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6639 fi 6640else 6641 ac_cv_path_GREP=$GREP 6642fi 6643 6644fi 6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6646printf "%s\n" "$ac_cv_path_GREP" >&6; } 6647 GREP="$ac_cv_path_GREP" 6648 6649 6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6651printf %s "checking for egrep... " >&6; } 6652if test ${ac_cv_path_EGREP+y} 6653then : 6654 printf %s "(cached) " >&6 6655else $as_nop 6656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6657 then ac_cv_path_EGREP="$GREP -E" 6658 else 6659 if test -z "$EGREP"; then 6660 ac_path_EGREP_found=false 6661 # Loop through the user's path and test for each of PROGNAME-LIST 6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6664do 6665 IFS=$as_save_IFS 6666 case $as_dir in #((( 6667 '') as_dir=./ ;; 6668 */) ;; 6669 *) as_dir=$as_dir/ ;; 6670 esac 6671 for ac_prog in egrep 6672 do 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6675 as_fn_executable_p "$ac_path_EGREP" || continue 6676# Check for GNU ac_path_EGREP and select it if it is found. 6677 # Check for GNU $ac_path_EGREP 6678case `"$ac_path_EGREP" --version 2>&1` in 6679*GNU*) 6680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6681*) 6682 ac_count=0 6683 printf %s 0123456789 >"conftest.in" 6684 while : 6685 do 6686 cat "conftest.in" "conftest.in" >"conftest.tmp" 6687 mv "conftest.tmp" "conftest.in" 6688 cp "conftest.in" "conftest.nl" 6689 printf "%s\n" 'EGREP' >> "conftest.nl" 6690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6692 as_fn_arith $ac_count + 1 && ac_count=$as_val 6693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6694 # Best one so far, save it but keep looking for a better one 6695 ac_cv_path_EGREP="$ac_path_EGREP" 6696 ac_path_EGREP_max=$ac_count 6697 fi 6698 # 10*(2^10) chars as input seems more than enough 6699 test $ac_count -gt 10 && break 6700 done 6701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6702esac 6703 6704 $ac_path_EGREP_found && break 3 6705 done 6706 done 6707 done 6708IFS=$as_save_IFS 6709 if test -z "$ac_cv_path_EGREP"; then 6710 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6711 fi 6712else 6713 ac_cv_path_EGREP=$EGREP 6714fi 6715 6716 fi 6717fi 6718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6719printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6720 EGREP="$ac_cv_path_EGREP" 6721 6722 6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6724printf %s "checking for fgrep... " >&6; } 6725if test ${ac_cv_path_FGREP+y} 6726then : 6727 printf %s "(cached) " >&6 6728else $as_nop 6729 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6730 then ac_cv_path_FGREP="$GREP -F" 6731 else 6732 if test -z "$FGREP"; then 6733 ac_path_FGREP_found=false 6734 # Loop through the user's path and test for each of PROGNAME-LIST 6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6737do 6738 IFS=$as_save_IFS 6739 case $as_dir in #((( 6740 '') as_dir=./ ;; 6741 */) ;; 6742 *) as_dir=$as_dir/ ;; 6743 esac 6744 for ac_prog in fgrep 6745 do 6746 for ac_exec_ext in '' $ac_executable_extensions; do 6747 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6748 as_fn_executable_p "$ac_path_FGREP" || continue 6749# Check for GNU ac_path_FGREP and select it if it is found. 6750 # Check for GNU $ac_path_FGREP 6751case `"$ac_path_FGREP" --version 2>&1` in 6752*GNU*) 6753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6754*) 6755 ac_count=0 6756 printf %s 0123456789 >"conftest.in" 6757 while : 6758 do 6759 cat "conftest.in" "conftest.in" >"conftest.tmp" 6760 mv "conftest.tmp" "conftest.in" 6761 cp "conftest.in" "conftest.nl" 6762 printf "%s\n" 'FGREP' >> "conftest.nl" 6763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6765 as_fn_arith $ac_count + 1 && ac_count=$as_val 6766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6767 # Best one so far, save it but keep looking for a better one 6768 ac_cv_path_FGREP="$ac_path_FGREP" 6769 ac_path_FGREP_max=$ac_count 6770 fi 6771 # 10*(2^10) chars as input seems more than enough 6772 test $ac_count -gt 10 && break 6773 done 6774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6775esac 6776 6777 $ac_path_FGREP_found && break 3 6778 done 6779 done 6780 done 6781IFS=$as_save_IFS 6782 if test -z "$ac_cv_path_FGREP"; then 6783 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6784 fi 6785else 6786 ac_cv_path_FGREP=$FGREP 6787fi 6788 6789 fi 6790fi 6791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6792printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6793 FGREP="$ac_cv_path_FGREP" 6794 6795 6796test -z "$GREP" && GREP=grep 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816# Check whether --with-gnu-ld was given. 6817if test ${with_gnu_ld+y} 6818then : 6819 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6820else $as_nop 6821 with_gnu_ld=no 6822fi 6823 6824ac_prog=ld 6825if test yes = "$GCC"; then 6826 # Check if gcc -print-prog-name=ld gives a path. 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6828printf %s "checking for ld used by $CC... " >&6; } 6829 case $host in 6830 *-*-mingw*) 6831 # gcc leaves a trailing carriage return, which upsets mingw 6832 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6833 *) 6834 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6835 esac 6836 case $ac_prog in 6837 # Accept absolute paths. 6838 [\\/]* | ?:[\\/]*) 6839 re_direlt='/[^/][^/]*/\.\./' 6840 # Canonicalize the pathname of ld 6841 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6842 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6843 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6844 done 6845 test -z "$LD" && LD=$ac_prog 6846 ;; 6847 "") 6848 # If it fails, then pretend we aren't using GCC. 6849 ac_prog=ld 6850 ;; 6851 *) 6852 # If it is relative, then search for the first ld in PATH. 6853 with_gnu_ld=unknown 6854 ;; 6855 esac 6856elif test yes = "$with_gnu_ld"; then 6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6858printf %s "checking for GNU ld... " >&6; } 6859else 6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6861printf %s "checking for non-GNU ld... " >&6; } 6862fi 6863if test ${lt_cv_path_LD+y} 6864then : 6865 printf %s "(cached) " >&6 6866else $as_nop 6867 if test -z "$LD"; then 6868 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6869 for ac_dir in $PATH; do 6870 IFS=$lt_save_ifs 6871 test -z "$ac_dir" && ac_dir=. 6872 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6873 lt_cv_path_LD=$ac_dir/$ac_prog 6874 # Check to see if the program is GNU ld. I'd rather use --version, 6875 # but apparently some variants of GNU ld only accept -v. 6876 # Break only if it was the GNU/non-GNU ld that we prefer. 6877 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6878 *GNU* | *'with BFD'*) 6879 test no != "$with_gnu_ld" && break 6880 ;; 6881 *) 6882 test yes != "$with_gnu_ld" && break 6883 ;; 6884 esac 6885 fi 6886 done 6887 IFS=$lt_save_ifs 6888else 6889 lt_cv_path_LD=$LD # Let the user override the test with a path. 6890fi 6891fi 6892 6893LD=$lt_cv_path_LD 6894if test -n "$LD"; then 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6896printf "%s\n" "$LD" >&6; } 6897else 6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899printf "%s\n" "no" >&6; } 6900fi 6901test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6903printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6904if test ${lt_cv_prog_gnu_ld+y} 6905then : 6906 printf %s "(cached) " >&6 6907else $as_nop 6908 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6909case `$LD -v 2>&1 </dev/null` in 6910*GNU* | *'with BFD'*) 6911 lt_cv_prog_gnu_ld=yes 6912 ;; 6913*) 6914 lt_cv_prog_gnu_ld=no 6915 ;; 6916esac 6917fi 6918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6919printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6920with_gnu_ld=$lt_cv_prog_gnu_ld 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6931printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6932if test ${lt_cv_path_NM+y} 6933then : 6934 printf %s "(cached) " >&6 6935else $as_nop 6936 if test -n "$NM"; then 6937 # Let the user override the test. 6938 lt_cv_path_NM=$NM 6939else 6940 lt_nm_to_check=${ac_tool_prefix}nm 6941 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6942 lt_nm_to_check="$lt_nm_to_check nm" 6943 fi 6944 for lt_tmp_nm in $lt_nm_to_check; do 6945 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6946 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6947 IFS=$lt_save_ifs 6948 test -z "$ac_dir" && ac_dir=. 6949 tmp_nm=$ac_dir/$lt_tmp_nm 6950 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6951 # Check to see if the nm accepts a BSD-compat flag. 6952 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6953 # nm: unknown option "B" ignored 6954 # Tru64's nm complains that /dev/null is an invalid object file 6955 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6956 case $build_os in 6957 mingw*) lt_bad_file=conftest.nm/nofile ;; 6958 *) lt_bad_file=/dev/null ;; 6959 esac 6960 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6961 *$lt_bad_file* | *'Invalid file or object type'*) 6962 lt_cv_path_NM="$tmp_nm -B" 6963 break 2 6964 ;; 6965 *) 6966 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6967 */dev/null*) 6968 lt_cv_path_NM="$tmp_nm -p" 6969 break 2 6970 ;; 6971 *) 6972 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6973 continue # so that we can try to find one that supports BSD flags 6974 ;; 6975 esac 6976 ;; 6977 esac 6978 fi 6979 done 6980 IFS=$lt_save_ifs 6981 done 6982 : ${lt_cv_path_NM=no} 6983fi 6984fi 6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6986printf "%s\n" "$lt_cv_path_NM" >&6; } 6987if test no != "$lt_cv_path_NM"; then 6988 NM=$lt_cv_path_NM 6989else 6990 # Didn't find any BSD compatible name lister, look for dumpbin. 6991 if test -n "$DUMPBIN"; then : 6992 # Let the user override the test. 6993 else 6994 if test -n "$ac_tool_prefix"; then 6995 for ac_prog in dumpbin "link -dump" 6996 do 6997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6998set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000printf %s "checking for $ac_word... " >&6; } 7001if test ${ac_cv_prog_DUMPBIN+y} 7002then : 7003 printf %s "(cached) " >&6 7004else $as_nop 7005 if test -n "$DUMPBIN"; then 7006 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7007else 7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009for as_dir in $PATH 7010do 7011 IFS=$as_save_IFS 7012 case $as_dir in #((( 7013 '') as_dir=./ ;; 7014 */) ;; 7015 *) as_dir=$as_dir/ ;; 7016 esac 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7019 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023done 7024 done 7025IFS=$as_save_IFS 7026 7027fi 7028fi 7029DUMPBIN=$ac_cv_prog_DUMPBIN 7030if test -n "$DUMPBIN"; then 7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7032printf "%s\n" "$DUMPBIN" >&6; } 7033else 7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7035printf "%s\n" "no" >&6; } 7036fi 7037 7038 7039 test -n "$DUMPBIN" && break 7040 done 7041fi 7042if test -z "$DUMPBIN"; then 7043 ac_ct_DUMPBIN=$DUMPBIN 7044 for ac_prog in dumpbin "link -dump" 7045do 7046 # Extract the first word of "$ac_prog", so it can be a program name with args. 7047set dummy $ac_prog; ac_word=$2 7048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7049printf %s "checking for $ac_word... " >&6; } 7050if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 7051then : 7052 printf %s "(cached) " >&6 7053else $as_nop 7054 if test -n "$ac_ct_DUMPBIN"; then 7055 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7056else 7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7058for as_dir in $PATH 7059do 7060 IFS=$as_save_IFS 7061 case $as_dir in #((( 7062 '') as_dir=./ ;; 7063 */) ;; 7064 *) as_dir=$as_dir/ ;; 7065 esac 7066 for ac_exec_ext in '' $ac_executable_extensions; do 7067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7068 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7070 break 2 7071 fi 7072done 7073 done 7074IFS=$as_save_IFS 7075 7076fi 7077fi 7078ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7079if test -n "$ac_ct_DUMPBIN"; then 7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7081printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 7082else 7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7084printf "%s\n" "no" >&6; } 7085fi 7086 7087 7088 test -n "$ac_ct_DUMPBIN" && break 7089done 7090 7091 if test "x$ac_ct_DUMPBIN" = x; then 7092 DUMPBIN=":" 7093 else 7094 case $cross_compiling:$ac_tool_warned in 7095yes:) 7096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7097printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7098ac_tool_warned=yes ;; 7099esac 7100 DUMPBIN=$ac_ct_DUMPBIN 7101 fi 7102fi 7103 7104 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7105 *COFF*) 7106 DUMPBIN="$DUMPBIN -symbols -headers" 7107 ;; 7108 *) 7109 DUMPBIN=: 7110 ;; 7111 esac 7112 fi 7113 7114 if test : != "$DUMPBIN"; then 7115 NM=$DUMPBIN 7116 fi 7117fi 7118test -z "$NM" && NM=nm 7119 7120 7121 7122 7123 7124 7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7126printf %s "checking the name lister ($NM) interface... " >&6; } 7127if test ${lt_cv_nm_interface+y} 7128then : 7129 printf %s "(cached) " >&6 7130else $as_nop 7131 lt_cv_nm_interface="BSD nm" 7132 echo "int some_variable = 0;" > conftest.$ac_ext 7133 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7134 (eval "$ac_compile" 2>conftest.err) 7135 cat conftest.err >&5 7136 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7137 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7138 cat conftest.err >&5 7139 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7140 cat conftest.out >&5 7141 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7142 lt_cv_nm_interface="MS dumpbin" 7143 fi 7144 rm -f conftest* 7145fi 7146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7147printf "%s\n" "$lt_cv_nm_interface" >&6; } 7148 7149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7150printf %s "checking whether ln -s works... " >&6; } 7151LN_S=$as_ln_s 7152if test "$LN_S" = "ln -s"; then 7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7154printf "%s\n" "yes" >&6; } 7155else 7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7157printf "%s\n" "no, using $LN_S" >&6; } 7158fi 7159 7160# find the maximum length of command line arguments 7161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7162printf %s "checking the maximum length of command line arguments... " >&6; } 7163if test ${lt_cv_sys_max_cmd_len+y} 7164then : 7165 printf %s "(cached) " >&6 7166else $as_nop 7167 i=0 7168 teststring=ABCD 7169 7170 case $build_os in 7171 msdosdjgpp*) 7172 # On DJGPP, this test can blow up pretty badly due to problems in libc 7173 # (any single argument exceeding 2000 bytes causes a buffer overrun 7174 # during glob expansion). Even if it were fixed, the result of this 7175 # check would be larger than it should be. 7176 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7177 ;; 7178 7179 gnu*) 7180 # Under GNU Hurd, this test is not required because there is 7181 # no limit to the length of command line arguments. 7182 # Libtool will interpret -1 as no limit whatsoever 7183 lt_cv_sys_max_cmd_len=-1; 7184 ;; 7185 7186 cygwin* | mingw* | cegcc*) 7187 # On Win9x/ME, this test blows up -- it succeeds, but takes 7188 # about 5 minutes as the teststring grows exponentially. 7189 # Worse, since 9x/ME are not pre-emptively multitasking, 7190 # you end up with a "frozen" computer, even though with patience 7191 # the test eventually succeeds (with a max line length of 256k). 7192 # Instead, let's just punt: use the minimum linelength reported by 7193 # all of the supported platforms: 8192 (on NT/2K/XP). 7194 lt_cv_sys_max_cmd_len=8192; 7195 ;; 7196 7197 mint*) 7198 # On MiNT this can take a long time and run out of memory. 7199 lt_cv_sys_max_cmd_len=8192; 7200 ;; 7201 7202 amigaos*) 7203 # On AmigaOS with pdksh, this test takes hours, literally. 7204 # So we just punt and use a minimum line length of 8192. 7205 lt_cv_sys_max_cmd_len=8192; 7206 ;; 7207 7208 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7209 # This has been around since 386BSD, at least. Likely further. 7210 if test -x /sbin/sysctl; then 7211 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7212 elif test -x /usr/sbin/sysctl; then 7213 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7214 else 7215 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7216 fi 7217 # And add a safety zone 7218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7220 ;; 7221 7222 interix*) 7223 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7224 lt_cv_sys_max_cmd_len=196608 7225 ;; 7226 7227 os2*) 7228 # The test takes a long time on OS/2. 7229 lt_cv_sys_max_cmd_len=8192 7230 ;; 7231 7232 osf*) 7233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7235 # nice to cause kernel panics so lets avoid the loop below. 7236 # First set a reasonable default. 7237 lt_cv_sys_max_cmd_len=16384 7238 # 7239 if test -x /sbin/sysconfig; then 7240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7241 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7242 esac 7243 fi 7244 ;; 7245 sco3.2v5*) 7246 lt_cv_sys_max_cmd_len=102400 7247 ;; 7248 sysv5* | sco5v6* | sysv4.2uw2*) 7249 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7250 if test -n "$kargmax"; then 7251 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7252 else 7253 lt_cv_sys_max_cmd_len=32768 7254 fi 7255 ;; 7256 *) 7257 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7258 if test -n "$lt_cv_sys_max_cmd_len" && \ 7259 test undefined != "$lt_cv_sys_max_cmd_len"; then 7260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7262 else 7263 # Make teststring a little bigger before we do anything with it. 7264 # a 1K string should be a reasonable start. 7265 for i in 1 2 3 4 5 6 7 8; do 7266 teststring=$teststring$teststring 7267 done 7268 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7269 # If test is not a shell built-in, we'll probably end up computing a 7270 # maximum length that is only half of the actual maximum length, but 7271 # we can't tell. 7272 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7273 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7274 test 17 != "$i" # 1/2 MB should be enough 7275 do 7276 i=`expr $i + 1` 7277 teststring=$teststring$teststring 7278 done 7279 # Only check the string length outside the loop. 7280 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7281 teststring= 7282 # Add a significant safety factor because C++ compilers can tack on 7283 # massive amounts of additional arguments before passing them to the 7284 # linker. It appears as though 1/2 is a usable value. 7285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7286 fi 7287 ;; 7288 esac 7289 7290fi 7291 7292if test -n "$lt_cv_sys_max_cmd_len"; then 7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7294printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 7295else 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 7297printf "%s\n" "none" >&6; } 7298fi 7299max_cmd_len=$lt_cv_sys_max_cmd_len 7300 7301 7302 7303 7304 7305 7306: ${CP="cp -f"} 7307: ${MV="mv -f"} 7308: ${RM="rm -f"} 7309 7310if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7311 lt_unset=unset 7312else 7313 lt_unset=false 7314fi 7315 7316 7317 7318 7319 7320# test EBCDIC or ASCII 7321case `echo X|tr X '\101'` in 7322 A) # ASCII based system 7323 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7324 lt_SP2NL='tr \040 \012' 7325 lt_NL2SP='tr \015\012 \040\040' 7326 ;; 7327 *) # EBCDIC based system 7328 lt_SP2NL='tr \100 \n' 7329 lt_NL2SP='tr \r\n \100\100' 7330 ;; 7331esac 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7342printf %s "checking how to convert $build file names to $host format... " >&6; } 7343if test ${lt_cv_to_host_file_cmd+y} 7344then : 7345 printf %s "(cached) " >&6 7346else $as_nop 7347 case $host in 7348 *-*-mingw* ) 7349 case $build in 7350 *-*-mingw* ) # actually msys 7351 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7352 ;; 7353 *-*-cygwin* ) 7354 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7355 ;; 7356 * ) # otherwise, assume *nix 7357 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7358 ;; 7359 esac 7360 ;; 7361 *-*-cygwin* ) 7362 case $build in 7363 *-*-mingw* ) # actually msys 7364 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7365 ;; 7366 *-*-cygwin* ) 7367 lt_cv_to_host_file_cmd=func_convert_file_noop 7368 ;; 7369 * ) # otherwise, assume *nix 7370 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7371 ;; 7372 esac 7373 ;; 7374 * ) # unhandled hosts (and "normal" native builds) 7375 lt_cv_to_host_file_cmd=func_convert_file_noop 7376 ;; 7377esac 7378 7379fi 7380 7381to_host_file_cmd=$lt_cv_to_host_file_cmd 7382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7383printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 7384 7385 7386 7387 7388 7389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7390printf %s "checking how to convert $build file names to toolchain format... " >&6; } 7391if test ${lt_cv_to_tool_file_cmd+y} 7392then : 7393 printf %s "(cached) " >&6 7394else $as_nop 7395 #assume ordinary cross tools, or native build. 7396lt_cv_to_tool_file_cmd=func_convert_file_noop 7397case $host in 7398 *-*-mingw* ) 7399 case $build in 7400 *-*-mingw* ) # actually msys 7401 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7402 ;; 7403 esac 7404 ;; 7405esac 7406 7407fi 7408 7409to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7411printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 7412 7413 7414 7415 7416 7417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7418printf %s "checking for $LD option to reload object files... " >&6; } 7419if test ${lt_cv_ld_reload_flag+y} 7420then : 7421 printf %s "(cached) " >&6 7422else $as_nop 7423 lt_cv_ld_reload_flag='-r' 7424fi 7425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7426printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 7427reload_flag=$lt_cv_ld_reload_flag 7428case $reload_flag in 7429"" | " "*) ;; 7430*) reload_flag=" $reload_flag" ;; 7431esac 7432reload_cmds='$LD$reload_flag -o $output$reload_objs' 7433case $host_os in 7434 cygwin* | mingw* | pw32* | cegcc*) 7435 if test yes != "$GCC"; then 7436 reload_cmds=false 7437 fi 7438 ;; 7439 darwin*) 7440 if test yes = "$GCC"; then 7441 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7442 else 7443 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7444 fi 7445 ;; 7446esac 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456if test -n "$ac_tool_prefix"; then 7457 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7458set dummy ${ac_tool_prefix}objdump; ac_word=$2 7459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7460printf %s "checking for $ac_word... " >&6; } 7461if test ${ac_cv_prog_OBJDUMP+y} 7462then : 7463 printf %s "(cached) " >&6 7464else $as_nop 7465 if test -n "$OBJDUMP"; then 7466 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7467else 7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7469for as_dir in $PATH 7470do 7471 IFS=$as_save_IFS 7472 case $as_dir in #((( 7473 '') as_dir=./ ;; 7474 */) ;; 7475 *) as_dir=$as_dir/ ;; 7476 esac 7477 for ac_exec_ext in '' $ac_executable_extensions; do 7478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7479 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7481 break 2 7482 fi 7483done 7484 done 7485IFS=$as_save_IFS 7486 7487fi 7488fi 7489OBJDUMP=$ac_cv_prog_OBJDUMP 7490if test -n "$OBJDUMP"; then 7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7492printf "%s\n" "$OBJDUMP" >&6; } 7493else 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7495printf "%s\n" "no" >&6; } 7496fi 7497 7498 7499fi 7500if test -z "$ac_cv_prog_OBJDUMP"; then 7501 ac_ct_OBJDUMP=$OBJDUMP 7502 # Extract the first word of "objdump", so it can be a program name with args. 7503set dummy objdump; ac_word=$2 7504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7505printf %s "checking for $ac_word... " >&6; } 7506if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 7507then : 7508 printf %s "(cached) " >&6 7509else $as_nop 7510 if test -n "$ac_ct_OBJDUMP"; then 7511 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7512else 7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7514for as_dir in $PATH 7515do 7516 IFS=$as_save_IFS 7517 case $as_dir in #((( 7518 '') as_dir=./ ;; 7519 */) ;; 7520 *) as_dir=$as_dir/ ;; 7521 esac 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7524 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529 done 7530IFS=$as_save_IFS 7531 7532fi 7533fi 7534ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7535if test -n "$ac_ct_OBJDUMP"; then 7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7537printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 7538else 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7540printf "%s\n" "no" >&6; } 7541fi 7542 7543 if test "x$ac_ct_OBJDUMP" = x; then 7544 OBJDUMP="false" 7545 else 7546 case $cross_compiling:$ac_tool_warned in 7547yes:) 7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7549printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7550ac_tool_warned=yes ;; 7551esac 7552 OBJDUMP=$ac_ct_OBJDUMP 7553 fi 7554else 7555 OBJDUMP="$ac_cv_prog_OBJDUMP" 7556fi 7557 7558test -z "$OBJDUMP" && OBJDUMP=objdump 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7569printf %s "checking how to recognize dependent libraries... " >&6; } 7570if test ${lt_cv_deplibs_check_method+y} 7571then : 7572 printf %s "(cached) " >&6 7573else $as_nop 7574 lt_cv_file_magic_cmd='$MAGIC_CMD' 7575lt_cv_file_magic_test_file= 7576lt_cv_deplibs_check_method='unknown' 7577# Need to set the preceding variable on all platforms that support 7578# interlibrary dependencies. 7579# 'none' -- dependencies not supported. 7580# 'unknown' -- same as none, but documents that we really don't know. 7581# 'pass_all' -- all dependencies passed with no checks. 7582# 'test_compile' -- check by making test program. 7583# 'file_magic [[regex]]' -- check by looking for files in library path 7584# that responds to the $file_magic_cmd with a given extended regex. 7585# If you have 'file' or equivalent on your system and you're not sure 7586# whether 'pass_all' will *always* work, you probably want this one. 7587 7588case $host_os in 7589aix[4-9]*) 7590 lt_cv_deplibs_check_method=pass_all 7591 ;; 7592 7593beos*) 7594 lt_cv_deplibs_check_method=pass_all 7595 ;; 7596 7597bsdi[45]*) 7598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7599 lt_cv_file_magic_cmd='/usr/bin/file -L' 7600 lt_cv_file_magic_test_file=/shlib/libc.so 7601 ;; 7602 7603cygwin*) 7604 # func_win32_libid is a shell function defined in ltmain.sh 7605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7606 lt_cv_file_magic_cmd='func_win32_libid' 7607 ;; 7608 7609mingw* | pw32*) 7610 # Base MSYS/MinGW do not provide the 'file' command needed by 7611 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7612 # unless we find 'file', for example because we are cross-compiling. 7613 if ( file / ) >/dev/null 2>&1; then 7614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7615 lt_cv_file_magic_cmd='func_win32_libid' 7616 else 7617 # Keep this pattern in sync with the one in func_win32_libid. 7618 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7619 lt_cv_file_magic_cmd='$OBJDUMP -f' 7620 fi 7621 ;; 7622 7623cegcc*) 7624 # use the weaker test based on 'objdump'. See mingw*. 7625 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7626 lt_cv_file_magic_cmd='$OBJDUMP -f' 7627 ;; 7628 7629darwin* | rhapsody*) 7630 lt_cv_deplibs_check_method=pass_all 7631 ;; 7632 7633freebsd* | dragonfly*) 7634 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7635 case $host_cpu in 7636 i*86 ) 7637 # Not sure whether the presence of OpenBSD here was a mistake. 7638 # Let's accept both of them until this is cleared up. 7639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7640 lt_cv_file_magic_cmd=/usr/bin/file 7641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7642 ;; 7643 esac 7644 else 7645 lt_cv_deplibs_check_method=pass_all 7646 fi 7647 ;; 7648 7649haiku*) 7650 lt_cv_deplibs_check_method=pass_all 7651 ;; 7652 7653hpux10.20* | hpux11*) 7654 lt_cv_file_magic_cmd=/usr/bin/file 7655 case $host_cpu in 7656 ia64*) 7657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7659 ;; 7660 hppa*64*) 7661 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]' 7662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7663 ;; 7664 *) 7665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7666 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7667 ;; 7668 esac 7669 ;; 7670 7671interix[3-9]*) 7672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7674 ;; 7675 7676irix5* | irix6* | nonstopux*) 7677 case $LD in 7678 *-32|*"-32 ") libmagic=32-bit;; 7679 *-n32|*"-n32 ") libmagic=N32;; 7680 *-64|*"-64 ") libmagic=64-bit;; 7681 *) libmagic=never-match;; 7682 esac 7683 lt_cv_deplibs_check_method=pass_all 7684 ;; 7685 7686# This must be glibc/ELF. 7687linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7688 lt_cv_deplibs_check_method=pass_all 7689 ;; 7690 7691netbsd*) 7692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7694 else 7695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7696 fi 7697 ;; 7698 7699newos6*) 7700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7701 lt_cv_file_magic_cmd=/usr/bin/file 7702 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7703 ;; 7704 7705*nto* | *qnx*) 7706 lt_cv_deplibs_check_method=pass_all 7707 ;; 7708 7709openbsd* | bitrig*) 7710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7712 else 7713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7714 fi 7715 ;; 7716 7717osf3* | osf4* | osf5*) 7718 lt_cv_deplibs_check_method=pass_all 7719 ;; 7720 7721rdos*) 7722 lt_cv_deplibs_check_method=pass_all 7723 ;; 7724 7725solaris*) 7726 lt_cv_deplibs_check_method=pass_all 7727 ;; 7728 7729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7730 lt_cv_deplibs_check_method=pass_all 7731 ;; 7732 7733sysv4 | sysv4.3*) 7734 case $host_vendor in 7735 motorola) 7736 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]' 7737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7738 ;; 7739 ncr) 7740 lt_cv_deplibs_check_method=pass_all 7741 ;; 7742 sequent) 7743 lt_cv_file_magic_cmd='/bin/file' 7744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7745 ;; 7746 sni) 7747 lt_cv_file_magic_cmd='/bin/file' 7748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7749 lt_cv_file_magic_test_file=/lib/libc.so 7750 ;; 7751 siemens) 7752 lt_cv_deplibs_check_method=pass_all 7753 ;; 7754 pc) 7755 lt_cv_deplibs_check_method=pass_all 7756 ;; 7757 esac 7758 ;; 7759 7760tpf*) 7761 lt_cv_deplibs_check_method=pass_all 7762 ;; 7763os2*) 7764 lt_cv_deplibs_check_method=pass_all 7765 ;; 7766esac 7767 7768fi 7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7770printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7771 7772file_magic_glob= 7773want_nocaseglob=no 7774if test "$build" = "$host"; then 7775 case $host_os in 7776 mingw* | pw32*) 7777 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7778 want_nocaseglob=yes 7779 else 7780 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7781 fi 7782 ;; 7783 esac 7784fi 7785 7786file_magic_cmd=$lt_cv_file_magic_cmd 7787deplibs_check_method=$lt_cv_deplibs_check_method 7788test -z "$deplibs_check_method" && deplibs_check_method=unknown 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811if test -n "$ac_tool_prefix"; then 7812 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7813set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7815printf %s "checking for $ac_word... " >&6; } 7816if test ${ac_cv_prog_DLLTOOL+y} 7817then : 7818 printf %s "(cached) " >&6 7819else $as_nop 7820 if test -n "$DLLTOOL"; then 7821 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7822else 7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7824for as_dir in $PATH 7825do 7826 IFS=$as_save_IFS 7827 case $as_dir in #((( 7828 '') as_dir=./ ;; 7829 */) ;; 7830 *) as_dir=$as_dir/ ;; 7831 esac 7832 for ac_exec_ext in '' $ac_executable_extensions; do 7833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7834 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7836 break 2 7837 fi 7838done 7839 done 7840IFS=$as_save_IFS 7841 7842fi 7843fi 7844DLLTOOL=$ac_cv_prog_DLLTOOL 7845if test -n "$DLLTOOL"; then 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7847printf "%s\n" "$DLLTOOL" >&6; } 7848else 7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7850printf "%s\n" "no" >&6; } 7851fi 7852 7853 7854fi 7855if test -z "$ac_cv_prog_DLLTOOL"; then 7856 ac_ct_DLLTOOL=$DLLTOOL 7857 # Extract the first word of "dlltool", so it can be a program name with args. 7858set dummy dlltool; ac_word=$2 7859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7860printf %s "checking for $ac_word... " >&6; } 7861if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7862then : 7863 printf %s "(cached) " >&6 7864else $as_nop 7865 if test -n "$ac_ct_DLLTOOL"; then 7866 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7867else 7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7869for as_dir in $PATH 7870do 7871 IFS=$as_save_IFS 7872 case $as_dir in #((( 7873 '') as_dir=./ ;; 7874 */) ;; 7875 *) as_dir=$as_dir/ ;; 7876 esac 7877 for ac_exec_ext in '' $ac_executable_extensions; do 7878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7879 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7881 break 2 7882 fi 7883done 7884 done 7885IFS=$as_save_IFS 7886 7887fi 7888fi 7889ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7890if test -n "$ac_ct_DLLTOOL"; then 7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7892printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7893else 7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7895printf "%s\n" "no" >&6; } 7896fi 7897 7898 if test "x$ac_ct_DLLTOOL" = x; then 7899 DLLTOOL="false" 7900 else 7901 case $cross_compiling:$ac_tool_warned in 7902yes:) 7903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7904printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7905ac_tool_warned=yes ;; 7906esac 7907 DLLTOOL=$ac_ct_DLLTOOL 7908 fi 7909else 7910 DLLTOOL="$ac_cv_prog_DLLTOOL" 7911fi 7912 7913test -z "$DLLTOOL" && DLLTOOL=dlltool 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7925printf %s "checking how to associate runtime and link libraries... " >&6; } 7926if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7927then : 7928 printf %s "(cached) " >&6 7929else $as_nop 7930 lt_cv_sharedlib_from_linklib_cmd='unknown' 7931 7932case $host_os in 7933cygwin* | mingw* | pw32* | cegcc*) 7934 # two different shell functions defined in ltmain.sh; 7935 # decide which one to use based on capabilities of $DLLTOOL 7936 case `$DLLTOOL --help 2>&1` in 7937 *--identify-strict*) 7938 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7939 ;; 7940 *) 7941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7942 ;; 7943 esac 7944 ;; 7945*) 7946 # fallback: assume linklib IS sharedlib 7947 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7948 ;; 7949esac 7950 7951fi 7952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7953printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7954sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7955test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7956 7957 7958 7959 7960 7961 7962 7963if test -n "$ac_tool_prefix"; then 7964 for ac_prog in ar 7965 do 7966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7967set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7969printf %s "checking for $ac_word... " >&6; } 7970if test ${ac_cv_prog_AR+y} 7971then : 7972 printf %s "(cached) " >&6 7973else $as_nop 7974 if test -n "$AR"; then 7975 ac_cv_prog_AR="$AR" # Let the user override the test. 7976else 7977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7978for as_dir in $PATH 7979do 7980 IFS=$as_save_IFS 7981 case $as_dir in #((( 7982 '') as_dir=./ ;; 7983 */) ;; 7984 *) as_dir=$as_dir/ ;; 7985 esac 7986 for ac_exec_ext in '' $ac_executable_extensions; do 7987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7988 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7990 break 2 7991 fi 7992done 7993 done 7994IFS=$as_save_IFS 7995 7996fi 7997fi 7998AR=$ac_cv_prog_AR 7999if test -n "$AR"; then 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8001printf "%s\n" "$AR" >&6; } 8002else 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8004printf "%s\n" "no" >&6; } 8005fi 8006 8007 8008 test -n "$AR" && break 8009 done 8010fi 8011if test -z "$AR"; then 8012 ac_ct_AR=$AR 8013 for ac_prog in ar 8014do 8015 # Extract the first word of "$ac_prog", so it can be a program name with args. 8016set dummy $ac_prog; ac_word=$2 8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8018printf %s "checking for $ac_word... " >&6; } 8019if test ${ac_cv_prog_ac_ct_AR+y} 8020then : 8021 printf %s "(cached) " >&6 8022else $as_nop 8023 if test -n "$ac_ct_AR"; then 8024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8025else 8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8027for as_dir in $PATH 8028do 8029 IFS=$as_save_IFS 8030 case $as_dir in #((( 8031 '') as_dir=./ ;; 8032 */) ;; 8033 *) as_dir=$as_dir/ ;; 8034 esac 8035 for ac_exec_ext in '' $ac_executable_extensions; do 8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8037 ac_cv_prog_ac_ct_AR="$ac_prog" 8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8039 break 2 8040 fi 8041done 8042 done 8043IFS=$as_save_IFS 8044 8045fi 8046fi 8047ac_ct_AR=$ac_cv_prog_ac_ct_AR 8048if test -n "$ac_ct_AR"; then 8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8050printf "%s\n" "$ac_ct_AR" >&6; } 8051else 8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8053printf "%s\n" "no" >&6; } 8054fi 8055 8056 8057 test -n "$ac_ct_AR" && break 8058done 8059 8060 if test "x$ac_ct_AR" = x; then 8061 AR="false" 8062 else 8063 case $cross_compiling:$ac_tool_warned in 8064yes:) 8065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8066printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8067ac_tool_warned=yes ;; 8068esac 8069 AR=$ac_ct_AR 8070 fi 8071fi 8072 8073: ${AR=ar} 8074: ${AR_FLAGS=cru} 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8087printf %s "checking for archiver @FILE support... " >&6; } 8088if test ${lt_cv_ar_at_file+y} 8089then : 8090 printf %s "(cached) " >&6 8091else $as_nop 8092 lt_cv_ar_at_file=no 8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094/* end confdefs.h. */ 8095 8096int 8097main (void) 8098{ 8099 8100 ; 8101 return 0; 8102} 8103_ACEOF 8104if ac_fn_c_try_compile "$LINENO" 8105then : 8106 echo conftest.$ac_objext > conftest.lst 8107 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8109 (eval $lt_ar_try) 2>&5 8110 ac_status=$? 8111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8112 test $ac_status = 0; } 8113 if test 0 -eq "$ac_status"; then 8114 # Ensure the archiver fails upon bogus file names. 8115 rm -f conftest.$ac_objext libconftest.a 8116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8117 (eval $lt_ar_try) 2>&5 8118 ac_status=$? 8119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8120 test $ac_status = 0; } 8121 if test 0 -ne "$ac_status"; then 8122 lt_cv_ar_at_file=@ 8123 fi 8124 fi 8125 rm -f conftest.* libconftest.a 8126 8127fi 8128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8129 8130fi 8131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8132printf "%s\n" "$lt_cv_ar_at_file" >&6; } 8133 8134if test no = "$lt_cv_ar_at_file"; then 8135 archiver_list_spec= 8136else 8137 archiver_list_spec=$lt_cv_ar_at_file 8138fi 8139 8140 8141 8142 8143 8144 8145 8146if test -n "$ac_tool_prefix"; then 8147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8148set dummy ${ac_tool_prefix}strip; ac_word=$2 8149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8150printf %s "checking for $ac_word... " >&6; } 8151if test ${ac_cv_prog_STRIP+y} 8152then : 8153 printf %s "(cached) " >&6 8154else $as_nop 8155 if test -n "$STRIP"; then 8156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8157else 8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8159for as_dir in $PATH 8160do 8161 IFS=$as_save_IFS 8162 case $as_dir in #((( 8163 '') as_dir=./ ;; 8164 */) ;; 8165 *) as_dir=$as_dir/ ;; 8166 esac 8167 for ac_exec_ext in '' $ac_executable_extensions; do 8168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8169 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8171 break 2 8172 fi 8173done 8174 done 8175IFS=$as_save_IFS 8176 8177fi 8178fi 8179STRIP=$ac_cv_prog_STRIP 8180if test -n "$STRIP"; then 8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8182printf "%s\n" "$STRIP" >&6; } 8183else 8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8185printf "%s\n" "no" >&6; } 8186fi 8187 8188 8189fi 8190if test -z "$ac_cv_prog_STRIP"; then 8191 ac_ct_STRIP=$STRIP 8192 # Extract the first word of "strip", so it can be a program name with args. 8193set dummy strip; ac_word=$2 8194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8195printf %s "checking for $ac_word... " >&6; } 8196if test ${ac_cv_prog_ac_ct_STRIP+y} 8197then : 8198 printf %s "(cached) " >&6 8199else $as_nop 8200 if test -n "$ac_ct_STRIP"; then 8201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8202else 8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8204for as_dir in $PATH 8205do 8206 IFS=$as_save_IFS 8207 case $as_dir in #((( 8208 '') as_dir=./ ;; 8209 */) ;; 8210 *) as_dir=$as_dir/ ;; 8211 esac 8212 for ac_exec_ext in '' $ac_executable_extensions; do 8213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8214 ac_cv_prog_ac_ct_STRIP="strip" 8215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8216 break 2 8217 fi 8218done 8219 done 8220IFS=$as_save_IFS 8221 8222fi 8223fi 8224ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8225if test -n "$ac_ct_STRIP"; then 8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8227printf "%s\n" "$ac_ct_STRIP" >&6; } 8228else 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8230printf "%s\n" "no" >&6; } 8231fi 8232 8233 if test "x$ac_ct_STRIP" = x; then 8234 STRIP=":" 8235 else 8236 case $cross_compiling:$ac_tool_warned in 8237yes:) 8238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8239printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8240ac_tool_warned=yes ;; 8241esac 8242 STRIP=$ac_ct_STRIP 8243 fi 8244else 8245 STRIP="$ac_cv_prog_STRIP" 8246fi 8247 8248test -z "$STRIP" && STRIP=: 8249 8250 8251 8252 8253 8254 8255if test -n "$ac_tool_prefix"; then 8256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8257set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8259printf %s "checking for $ac_word... " >&6; } 8260if test ${ac_cv_prog_RANLIB+y} 8261then : 8262 printf %s "(cached) " >&6 8263else $as_nop 8264 if test -n "$RANLIB"; then 8265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8266else 8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8268for as_dir in $PATH 8269do 8270 IFS=$as_save_IFS 8271 case $as_dir in #((( 8272 '') as_dir=./ ;; 8273 */) ;; 8274 *) as_dir=$as_dir/ ;; 8275 esac 8276 for ac_exec_ext in '' $ac_executable_extensions; do 8277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8278 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8280 break 2 8281 fi 8282done 8283 done 8284IFS=$as_save_IFS 8285 8286fi 8287fi 8288RANLIB=$ac_cv_prog_RANLIB 8289if test -n "$RANLIB"; then 8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8291printf "%s\n" "$RANLIB" >&6; } 8292else 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8294printf "%s\n" "no" >&6; } 8295fi 8296 8297 8298fi 8299if test -z "$ac_cv_prog_RANLIB"; then 8300 ac_ct_RANLIB=$RANLIB 8301 # Extract the first word of "ranlib", so it can be a program name with args. 8302set dummy ranlib; ac_word=$2 8303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8304printf %s "checking for $ac_word... " >&6; } 8305if test ${ac_cv_prog_ac_ct_RANLIB+y} 8306then : 8307 printf %s "(cached) " >&6 8308else $as_nop 8309 if test -n "$ac_ct_RANLIB"; then 8310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8311else 8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8313for as_dir in $PATH 8314do 8315 IFS=$as_save_IFS 8316 case $as_dir in #((( 8317 '') as_dir=./ ;; 8318 */) ;; 8319 *) as_dir=$as_dir/ ;; 8320 esac 8321 for ac_exec_ext in '' $ac_executable_extensions; do 8322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8323 ac_cv_prog_ac_ct_RANLIB="ranlib" 8324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8325 break 2 8326 fi 8327done 8328 done 8329IFS=$as_save_IFS 8330 8331fi 8332fi 8333ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8334if test -n "$ac_ct_RANLIB"; then 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8336printf "%s\n" "$ac_ct_RANLIB" >&6; } 8337else 8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339printf "%s\n" "no" >&6; } 8340fi 8341 8342 if test "x$ac_ct_RANLIB" = x; then 8343 RANLIB=":" 8344 else 8345 case $cross_compiling:$ac_tool_warned in 8346yes:) 8347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8348printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8349ac_tool_warned=yes ;; 8350esac 8351 RANLIB=$ac_ct_RANLIB 8352 fi 8353else 8354 RANLIB="$ac_cv_prog_RANLIB" 8355fi 8356 8357test -z "$RANLIB" && RANLIB=: 8358 8359 8360 8361 8362 8363 8364# Determine commands to create old-style static archives. 8365old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8366old_postinstall_cmds='chmod 644 $oldlib' 8367old_postuninstall_cmds= 8368 8369if test -n "$RANLIB"; then 8370 case $host_os in 8371 bitrig* | openbsd*) 8372 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8373 ;; 8374 *) 8375 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8376 ;; 8377 esac 8378 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8379fi 8380 8381case $host_os in 8382 darwin*) 8383 lock_old_archive_extraction=yes ;; 8384 *) 8385 lock_old_archive_extraction=no ;; 8386esac 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426# If no C compiler was specified, use CC. 8427LTCC=${LTCC-"$CC"} 8428 8429# If no C compiler flags were specified, use CFLAGS. 8430LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8431 8432# Allow CC to be a program name with arguments. 8433compiler=$CC 8434 8435 8436# Check for command to grab the raw symbol name followed by C symbol from nm. 8437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8438printf %s "checking command to parse $NM output from $compiler object... " >&6; } 8439if test ${lt_cv_sys_global_symbol_pipe+y} 8440then : 8441 printf %s "(cached) " >&6 8442else $as_nop 8443 8444# These are sane defaults that work on at least a few old systems. 8445# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8446 8447# Character class describing NM global symbol codes. 8448symcode='[BCDEGRST]' 8449 8450# Regexp to match symbols that can be accessed directly from C. 8451sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8452 8453# Define system-specific variables. 8454case $host_os in 8455aix*) 8456 symcode='[BCDT]' 8457 ;; 8458cygwin* | mingw* | pw32* | cegcc*) 8459 symcode='[ABCDGISTW]' 8460 ;; 8461hpux*) 8462 if test ia64 = "$host_cpu"; then 8463 symcode='[ABCDEGRST]' 8464 fi 8465 ;; 8466irix* | nonstopux*) 8467 symcode='[BCDEGRST]' 8468 ;; 8469osf*) 8470 symcode='[BCDEGQRST]' 8471 ;; 8472solaris*) 8473 symcode='[BDRT]' 8474 ;; 8475sco3.2v5*) 8476 symcode='[DT]' 8477 ;; 8478sysv4.2uw2*) 8479 symcode='[DT]' 8480 ;; 8481sysv5* | sco5v6* | unixware* | OpenUNIX*) 8482 symcode='[ABDT]' 8483 ;; 8484sysv4) 8485 symcode='[DFNSTU]' 8486 ;; 8487esac 8488 8489# If we're using GNU nm, then use its standard symbol codes. 8490case `$NM -V 2>&1` in 8491*GNU* | *'with BFD'*) 8492 symcode='[ABCDGIRSTW]' ;; 8493esac 8494 8495if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8496 # Gets list of data symbols to import. 8497 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8498 # Adjust the below global symbol transforms to fixup imported variables. 8499 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8500 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8501 lt_c_name_lib_hook="\ 8502 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8503 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8504else 8505 # Disable hooks by default. 8506 lt_cv_sys_global_symbol_to_import= 8507 lt_cdecl_hook= 8508 lt_c_name_hook= 8509 lt_c_name_lib_hook= 8510fi 8511 8512# Transform an extracted symbol line into a proper C declaration. 8513# Some systems (esp. on ia64) link data and code symbols differently, 8514# so use this general approach. 8515lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8516$lt_cdecl_hook\ 8517" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8518" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8519 8520# Transform an extracted symbol line into symbol name and symbol address 8521lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8522$lt_c_name_hook\ 8523" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8524" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8525 8526# Transform an extracted symbol line into symbol name with lib prefix and 8527# symbol address. 8528lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8529$lt_c_name_lib_hook\ 8530" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8531" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8532" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8533 8534# Handle CRLF in mingw tool chain 8535opt_cr= 8536case $build_os in 8537mingw*) 8538 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8539 ;; 8540esac 8541 8542# Try without a prefix underscore, then with it. 8543for ac_symprfx in "" "_"; do 8544 8545 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8546 symxfrm="\\1 $ac_symprfx\\2 \\2" 8547 8548 # Write the raw and C identifiers. 8549 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8550 # Fake it for dumpbin and say T for any non-static function, 8551 # D for any global variable and I for any imported variable. 8552 # Also find C++ and __fastcall symbols from MSVC++, 8553 # which start with @ or ?. 8554 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8555" {last_section=section; section=\$ 3};"\ 8556" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8557" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8558" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8559" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8560" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8561" \$ 0!~/External *\|/{next};"\ 8562" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8563" {if(hide[section]) next};"\ 8564" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8565" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8566" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8567" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8568" ' prfx=^$ac_symprfx" 8569 else 8570 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8571 fi 8572 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8573 8574 # Check to see that the pipe works correctly. 8575 pipe_works=no 8576 8577 rm -f conftest* 8578 cat > conftest.$ac_ext <<_LT_EOF 8579#ifdef __cplusplus 8580extern "C" { 8581#endif 8582char nm_test_var; 8583void nm_test_func(void); 8584void nm_test_func(void){} 8585#ifdef __cplusplus 8586} 8587#endif 8588int main(){nm_test_var='a';nm_test_func();return(0);} 8589_LT_EOF 8590 8591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8592 (eval $ac_compile) 2>&5 8593 ac_status=$? 8594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8595 test $ac_status = 0; }; then 8596 # Now try to grab the symbols. 8597 nlist=conftest.nm 8598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8599 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8600 ac_status=$? 8601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8602 test $ac_status = 0; } && test -s "$nlist"; then 8603 # Try sorting and uniquifying the output. 8604 if sort "$nlist" | uniq > "$nlist"T; then 8605 mv -f "$nlist"T "$nlist" 8606 else 8607 rm -f "$nlist"T 8608 fi 8609 8610 # Make sure that we snagged all the symbols we need. 8611 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8612 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8613 cat <<_LT_EOF > conftest.$ac_ext 8614/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8615#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8616/* DATA imports from DLLs on WIN32 can't be const, because runtime 8617 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8618# define LT_DLSYM_CONST 8619#elif defined __osf__ 8620/* This system does not cope well with relocations in const data. */ 8621# define LT_DLSYM_CONST 8622#else 8623# define LT_DLSYM_CONST const 8624#endif 8625 8626#ifdef __cplusplus 8627extern "C" { 8628#endif 8629 8630_LT_EOF 8631 # Now generate the symbol file. 8632 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8633 8634 cat <<_LT_EOF >> conftest.$ac_ext 8635 8636/* The mapping between symbol names and symbols. */ 8637LT_DLSYM_CONST struct { 8638 const char *name; 8639 void *address; 8640} 8641lt__PROGRAM__LTX_preloaded_symbols[] = 8642{ 8643 { "@PROGRAM@", (void *) 0 }, 8644_LT_EOF 8645 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8646 cat <<\_LT_EOF >> conftest.$ac_ext 8647 {0, (void *) 0} 8648}; 8649 8650/* This works around a problem in FreeBSD linker */ 8651#ifdef FREEBSD_WORKAROUND 8652static const void *lt_preloaded_setup() { 8653 return lt__PROGRAM__LTX_preloaded_symbols; 8654} 8655#endif 8656 8657#ifdef __cplusplus 8658} 8659#endif 8660_LT_EOF 8661 # Now try linking the two files. 8662 mv conftest.$ac_objext conftstm.$ac_objext 8663 lt_globsym_save_LIBS=$LIBS 8664 lt_globsym_save_CFLAGS=$CFLAGS 8665 LIBS=conftstm.$ac_objext 8666 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8668 (eval $ac_link) 2>&5 8669 ac_status=$? 8670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8671 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8672 pipe_works=yes 8673 fi 8674 LIBS=$lt_globsym_save_LIBS 8675 CFLAGS=$lt_globsym_save_CFLAGS 8676 else 8677 echo "cannot find nm_test_func in $nlist" >&5 8678 fi 8679 else 8680 echo "cannot find nm_test_var in $nlist" >&5 8681 fi 8682 else 8683 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8684 fi 8685 else 8686 echo "$progname: failed program was:" >&5 8687 cat conftest.$ac_ext >&5 8688 fi 8689 rm -rf conftest* conftst* 8690 8691 # Do not use the global_symbol_pipe unless it works. 8692 if test yes = "$pipe_works"; then 8693 break 8694 else 8695 lt_cv_sys_global_symbol_pipe= 8696 fi 8697done 8698 8699fi 8700 8701if test -z "$lt_cv_sys_global_symbol_pipe"; then 8702 lt_cv_sys_global_symbol_to_cdecl= 8703fi 8704if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8706printf "%s\n" "failed" >&6; } 8707else 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8709printf "%s\n" "ok" >&6; } 8710fi 8711 8712# Response file support. 8713if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8714 nm_file_list_spec='@' 8715elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8716 nm_file_list_spec='@' 8717fi 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8756printf %s "checking for sysroot... " >&6; } 8757 8758# Check whether --with-sysroot was given. 8759if test ${with_sysroot+y} 8760then : 8761 withval=$with_sysroot; 8762else $as_nop 8763 with_sysroot=no 8764fi 8765 8766 8767lt_sysroot= 8768case $with_sysroot in #( 8769 yes) 8770 if test yes = "$GCC"; then 8771 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8772 fi 8773 ;; #( 8774 /*) 8775 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8776 ;; #( 8777 no|'') 8778 ;; #( 8779 *) 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8781printf "%s\n" "$with_sysroot" >&6; } 8782 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8783 ;; 8784esac 8785 8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8787printf "%s\n" "${lt_sysroot:-no}" >&6; } 8788 8789 8790 8791 8792 8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8794printf %s "checking for a working dd... " >&6; } 8795if test ${ac_cv_path_lt_DD+y} 8796then : 8797 printf %s "(cached) " >&6 8798else $as_nop 8799 printf 0123456789abcdef0123456789abcdef >conftest.i 8800cat conftest.i conftest.i >conftest2.i 8801: ${lt_DD:=$DD} 8802if test -z "$lt_DD"; then 8803 ac_path_lt_DD_found=false 8804 # Loop through the user's path and test for each of PROGNAME-LIST 8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8806for as_dir in $PATH 8807do 8808 IFS=$as_save_IFS 8809 case $as_dir in #((( 8810 '') as_dir=./ ;; 8811 */) ;; 8812 *) as_dir=$as_dir/ ;; 8813 esac 8814 for ac_prog in dd 8815 do 8816 for ac_exec_ext in '' $ac_executable_extensions; do 8817 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8818 as_fn_executable_p "$ac_path_lt_DD" || continue 8819if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8820 cmp -s conftest.i conftest.out \ 8821 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8822fi 8823 $ac_path_lt_DD_found && break 3 8824 done 8825 done 8826 done 8827IFS=$as_save_IFS 8828 if test -z "$ac_cv_path_lt_DD"; then 8829 : 8830 fi 8831else 8832 ac_cv_path_lt_DD=$lt_DD 8833fi 8834 8835rm -f conftest.i conftest2.i conftest.out 8836fi 8837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8838printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8839 8840 8841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8842printf %s "checking how to truncate binary pipes... " >&6; } 8843if test ${lt_cv_truncate_bin+y} 8844then : 8845 printf %s "(cached) " >&6 8846else $as_nop 8847 printf 0123456789abcdef0123456789abcdef >conftest.i 8848cat conftest.i conftest.i >conftest2.i 8849lt_cv_truncate_bin= 8850if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8851 cmp -s conftest.i conftest.out \ 8852 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8853fi 8854rm -f conftest.i conftest2.i conftest.out 8855test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8856fi 8857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8858printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8859 8860 8861 8862 8863 8864 8865 8866# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8867func_cc_basename () 8868{ 8869 for cc_temp in $*""; do 8870 case $cc_temp in 8871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8873 \-*) ;; 8874 *) break;; 8875 esac 8876 done 8877 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8878} 8879 8880# Check whether --enable-libtool-lock was given. 8881if test ${enable_libtool_lock+y} 8882then : 8883 enableval=$enable_libtool_lock; 8884fi 8885 8886test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8887 8888# Some flags need to be propagated to the compiler or linker for good 8889# libtool support. 8890case $host in 8891ia64-*-hpux*) 8892 # Find out what ABI is being produced by ac_compile, and set mode 8893 # options accordingly. 8894 echo 'int i;' > conftest.$ac_ext 8895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8896 (eval $ac_compile) 2>&5 8897 ac_status=$? 8898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8899 test $ac_status = 0; }; then 8900 case `/usr/bin/file conftest.$ac_objext` in 8901 *ELF-32*) 8902 HPUX_IA64_MODE=32 8903 ;; 8904 *ELF-64*) 8905 HPUX_IA64_MODE=64 8906 ;; 8907 esac 8908 fi 8909 rm -rf conftest* 8910 ;; 8911*-*-irix6*) 8912 # Find out what ABI is being produced by ac_compile, and set linker 8913 # options accordingly. 8914 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8916 (eval $ac_compile) 2>&5 8917 ac_status=$? 8918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8919 test $ac_status = 0; }; then 8920 if test yes = "$lt_cv_prog_gnu_ld"; then 8921 case `/usr/bin/file conftest.$ac_objext` in 8922 *32-bit*) 8923 LD="${LD-ld} -melf32bsmip" 8924 ;; 8925 *N32*) 8926 LD="${LD-ld} -melf32bmipn32" 8927 ;; 8928 *64-bit*) 8929 LD="${LD-ld} -melf64bmip" 8930 ;; 8931 esac 8932 else 8933 case `/usr/bin/file conftest.$ac_objext` in 8934 *32-bit*) 8935 LD="${LD-ld} -32" 8936 ;; 8937 *N32*) 8938 LD="${LD-ld} -n32" 8939 ;; 8940 *64-bit*) 8941 LD="${LD-ld} -64" 8942 ;; 8943 esac 8944 fi 8945 fi 8946 rm -rf conftest* 8947 ;; 8948 8949mips64*-*linux*) 8950 # Find out what ABI is being produced by ac_compile, and set linker 8951 # options accordingly. 8952 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8954 (eval $ac_compile) 2>&5 8955 ac_status=$? 8956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8957 test $ac_status = 0; }; then 8958 emul=elf 8959 case `/usr/bin/file conftest.$ac_objext` in 8960 *32-bit*) 8961 emul="${emul}32" 8962 ;; 8963 *64-bit*) 8964 emul="${emul}64" 8965 ;; 8966 esac 8967 case `/usr/bin/file conftest.$ac_objext` in 8968 *MSB*) 8969 emul="${emul}btsmip" 8970 ;; 8971 *LSB*) 8972 emul="${emul}ltsmip" 8973 ;; 8974 esac 8975 case `/usr/bin/file conftest.$ac_objext` in 8976 *N32*) 8977 emul="${emul}n32" 8978 ;; 8979 esac 8980 LD="${LD-ld} -m $emul" 8981 fi 8982 rm -rf conftest* 8983 ;; 8984 8985x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8986s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8987 # Find out what ABI is being produced by ac_compile, and set linker 8988 # options accordingly. Note that the listed cases only cover the 8989 # situations where additional linker options are needed (such as when 8990 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8991 # vice versa); the common cases where no linker options are needed do 8992 # not appear in the list. 8993 echo 'int i;' > conftest.$ac_ext 8994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8995 (eval $ac_compile) 2>&5 8996 ac_status=$? 8997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8998 test $ac_status = 0; }; then 8999 case `/usr/bin/file conftest.o` in 9000 *32-bit*) 9001 case $host in 9002 x86_64-*kfreebsd*-gnu) 9003 LD="${LD-ld} -m elf_i386_fbsd" 9004 ;; 9005 x86_64-*linux*) 9006 case `/usr/bin/file conftest.o` in 9007 *x86-64*) 9008 LD="${LD-ld} -m elf32_x86_64" 9009 ;; 9010 *) 9011 LD="${LD-ld} -m elf_i386" 9012 ;; 9013 esac 9014 ;; 9015 powerpc64le-*linux*) 9016 LD="${LD-ld} -m elf32lppclinux" 9017 ;; 9018 powerpc64-*linux*) 9019 LD="${LD-ld} -m elf32ppclinux" 9020 ;; 9021 s390x-*linux*) 9022 LD="${LD-ld} -m elf_s390" 9023 ;; 9024 sparc64-*linux*) 9025 LD="${LD-ld} -m elf32_sparc" 9026 ;; 9027 esac 9028 ;; 9029 *64-bit*) 9030 case $host in 9031 x86_64-*kfreebsd*-gnu) 9032 LD="${LD-ld} -m elf_x86_64_fbsd" 9033 ;; 9034 x86_64-*linux*) 9035 LD="${LD-ld} -m elf_x86_64" 9036 ;; 9037 powerpcle-*linux*) 9038 LD="${LD-ld} -m elf64lppc" 9039 ;; 9040 powerpc-*linux*) 9041 LD="${LD-ld} -m elf64ppc" 9042 ;; 9043 s390*-*linux*|s390*-*tpf*) 9044 LD="${LD-ld} -m elf64_s390" 9045 ;; 9046 sparc*-*linux*) 9047 LD="${LD-ld} -m elf64_sparc" 9048 ;; 9049 esac 9050 ;; 9051 esac 9052 fi 9053 rm -rf conftest* 9054 ;; 9055 9056*-*-sco3.2v5*) 9057 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9058 SAVE_CFLAGS=$CFLAGS 9059 CFLAGS="$CFLAGS -belf" 9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9061printf %s "checking whether the C compiler needs -belf... " >&6; } 9062if test ${lt_cv_cc_needs_belf+y} 9063then : 9064 printf %s "(cached) " >&6 9065else $as_nop 9066 ac_ext=c 9067ac_cpp='$CPP $CPPFLAGS' 9068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9070ac_compiler_gnu=$ac_cv_c_compiler_gnu 9071 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074 9075int 9076main (void) 9077{ 9078 9079 ; 9080 return 0; 9081} 9082_ACEOF 9083if ac_fn_c_try_link "$LINENO" 9084then : 9085 lt_cv_cc_needs_belf=yes 9086else $as_nop 9087 lt_cv_cc_needs_belf=no 9088fi 9089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9090 conftest$ac_exeext conftest.$ac_ext 9091 ac_ext=c 9092ac_cpp='$CPP $CPPFLAGS' 9093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9095ac_compiler_gnu=$ac_cv_c_compiler_gnu 9096 9097fi 9098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9099printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 9100 if test yes != "$lt_cv_cc_needs_belf"; then 9101 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9102 CFLAGS=$SAVE_CFLAGS 9103 fi 9104 ;; 9105*-*solaris*) 9106 # Find out what ABI is being produced by ac_compile, and set linker 9107 # options accordingly. 9108 echo 'int i;' > conftest.$ac_ext 9109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9110 (eval $ac_compile) 2>&5 9111 ac_status=$? 9112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9113 test $ac_status = 0; }; then 9114 case `/usr/bin/file conftest.o` in 9115 *64-bit*) 9116 case $lt_cv_prog_gnu_ld in 9117 yes*) 9118 case $host in 9119 i?86-*-solaris*|x86_64-*-solaris*) 9120 LD="${LD-ld} -m elf_x86_64" 9121 ;; 9122 sparc*-*-solaris*) 9123 LD="${LD-ld} -m elf64_sparc" 9124 ;; 9125 esac 9126 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9127 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9128 LD=${LD-ld}_sol2 9129 fi 9130 ;; 9131 *) 9132 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9133 LD="${LD-ld} -64" 9134 fi 9135 ;; 9136 esac 9137 ;; 9138 esac 9139 fi 9140 rm -rf conftest* 9141 ;; 9142esac 9143 9144need_locks=$enable_libtool_lock 9145 9146if test -n "$ac_tool_prefix"; then 9147 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9148set dummy ${ac_tool_prefix}mt; ac_word=$2 9149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9150printf %s "checking for $ac_word... " >&6; } 9151if test ${ac_cv_prog_MANIFEST_TOOL+y} 9152then : 9153 printf %s "(cached) " >&6 9154else $as_nop 9155 if test -n "$MANIFEST_TOOL"; then 9156 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9157else 9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9159for as_dir in $PATH 9160do 9161 IFS=$as_save_IFS 9162 case $as_dir in #((( 9163 '') as_dir=./ ;; 9164 */) ;; 9165 *) as_dir=$as_dir/ ;; 9166 esac 9167 for ac_exec_ext in '' $ac_executable_extensions; do 9168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9169 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9171 break 2 9172 fi 9173done 9174 done 9175IFS=$as_save_IFS 9176 9177fi 9178fi 9179MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9180if test -n "$MANIFEST_TOOL"; then 9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9182printf "%s\n" "$MANIFEST_TOOL" >&6; } 9183else 9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9185printf "%s\n" "no" >&6; } 9186fi 9187 9188 9189fi 9190if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9191 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9192 # Extract the first word of "mt", so it can be a program name with args. 9193set dummy mt; ac_word=$2 9194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9195printf %s "checking for $ac_word... " >&6; } 9196if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 9197then : 9198 printf %s "(cached) " >&6 9199else $as_nop 9200 if test -n "$ac_ct_MANIFEST_TOOL"; then 9201 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9202else 9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9204for as_dir in $PATH 9205do 9206 IFS=$as_save_IFS 9207 case $as_dir in #((( 9208 '') as_dir=./ ;; 9209 */) ;; 9210 *) as_dir=$as_dir/ ;; 9211 esac 9212 for ac_exec_ext in '' $ac_executable_extensions; do 9213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9214 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9216 break 2 9217 fi 9218done 9219 done 9220IFS=$as_save_IFS 9221 9222fi 9223fi 9224ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9225if test -n "$ac_ct_MANIFEST_TOOL"; then 9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9227printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 9228else 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9230printf "%s\n" "no" >&6; } 9231fi 9232 9233 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9234 MANIFEST_TOOL=":" 9235 else 9236 case $cross_compiling:$ac_tool_warned in 9237yes:) 9238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9239printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9240ac_tool_warned=yes ;; 9241esac 9242 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9243 fi 9244else 9245 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9246fi 9247 9248test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9250printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9251if test ${lt_cv_path_mainfest_tool+y} 9252then : 9253 printf %s "(cached) " >&6 9254else $as_nop 9255 lt_cv_path_mainfest_tool=no 9256 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9257 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9258 cat conftest.err >&5 9259 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9260 lt_cv_path_mainfest_tool=yes 9261 fi 9262 rm -f conftest* 9263fi 9264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9265printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 9266if test yes != "$lt_cv_path_mainfest_tool"; then 9267 MANIFEST_TOOL=: 9268fi 9269 9270 9271 9272 9273 9274 9275 case $host_os in 9276 rhapsody* | darwin*) 9277 if test -n "$ac_tool_prefix"; then 9278 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9279set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9281printf %s "checking for $ac_word... " >&6; } 9282if test ${ac_cv_prog_DSYMUTIL+y} 9283then : 9284 printf %s "(cached) " >&6 9285else $as_nop 9286 if test -n "$DSYMUTIL"; then 9287 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9288else 9289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9290for as_dir in $PATH 9291do 9292 IFS=$as_save_IFS 9293 case $as_dir in #((( 9294 '') as_dir=./ ;; 9295 */) ;; 9296 *) as_dir=$as_dir/ ;; 9297 esac 9298 for ac_exec_ext in '' $ac_executable_extensions; do 9299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9300 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9302 break 2 9303 fi 9304done 9305 done 9306IFS=$as_save_IFS 9307 9308fi 9309fi 9310DSYMUTIL=$ac_cv_prog_DSYMUTIL 9311if test -n "$DSYMUTIL"; then 9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9313printf "%s\n" "$DSYMUTIL" >&6; } 9314else 9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9316printf "%s\n" "no" >&6; } 9317fi 9318 9319 9320fi 9321if test -z "$ac_cv_prog_DSYMUTIL"; then 9322 ac_ct_DSYMUTIL=$DSYMUTIL 9323 # Extract the first word of "dsymutil", so it can be a program name with args. 9324set dummy dsymutil; ac_word=$2 9325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9326printf %s "checking for $ac_word... " >&6; } 9327if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 9328then : 9329 printf %s "(cached) " >&6 9330else $as_nop 9331 if test -n "$ac_ct_DSYMUTIL"; then 9332 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9333else 9334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9335for as_dir in $PATH 9336do 9337 IFS=$as_save_IFS 9338 case $as_dir in #((( 9339 '') as_dir=./ ;; 9340 */) ;; 9341 *) as_dir=$as_dir/ ;; 9342 esac 9343 for ac_exec_ext in '' $ac_executable_extensions; do 9344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9345 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9347 break 2 9348 fi 9349done 9350 done 9351IFS=$as_save_IFS 9352 9353fi 9354fi 9355ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9356if test -n "$ac_ct_DSYMUTIL"; then 9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9358printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 9359else 9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9361printf "%s\n" "no" >&6; } 9362fi 9363 9364 if test "x$ac_ct_DSYMUTIL" = x; then 9365 DSYMUTIL=":" 9366 else 9367 case $cross_compiling:$ac_tool_warned in 9368yes:) 9369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9370printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9371ac_tool_warned=yes ;; 9372esac 9373 DSYMUTIL=$ac_ct_DSYMUTIL 9374 fi 9375else 9376 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9377fi 9378 9379 if test -n "$ac_tool_prefix"; then 9380 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9381set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9383printf %s "checking for $ac_word... " >&6; } 9384if test ${ac_cv_prog_NMEDIT+y} 9385then : 9386 printf %s "(cached) " >&6 9387else $as_nop 9388 if test -n "$NMEDIT"; then 9389 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9390else 9391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9392for as_dir in $PATH 9393do 9394 IFS=$as_save_IFS 9395 case $as_dir in #((( 9396 '') as_dir=./ ;; 9397 */) ;; 9398 *) as_dir=$as_dir/ ;; 9399 esac 9400 for ac_exec_ext in '' $ac_executable_extensions; do 9401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9402 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9404 break 2 9405 fi 9406done 9407 done 9408IFS=$as_save_IFS 9409 9410fi 9411fi 9412NMEDIT=$ac_cv_prog_NMEDIT 9413if test -n "$NMEDIT"; then 9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9415printf "%s\n" "$NMEDIT" >&6; } 9416else 9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9418printf "%s\n" "no" >&6; } 9419fi 9420 9421 9422fi 9423if test -z "$ac_cv_prog_NMEDIT"; then 9424 ac_ct_NMEDIT=$NMEDIT 9425 # Extract the first word of "nmedit", so it can be a program name with args. 9426set dummy nmedit; ac_word=$2 9427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9428printf %s "checking for $ac_word... " >&6; } 9429if test ${ac_cv_prog_ac_ct_NMEDIT+y} 9430then : 9431 printf %s "(cached) " >&6 9432else $as_nop 9433 if test -n "$ac_ct_NMEDIT"; then 9434 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9435else 9436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9437for as_dir in $PATH 9438do 9439 IFS=$as_save_IFS 9440 case $as_dir in #((( 9441 '') as_dir=./ ;; 9442 */) ;; 9443 *) as_dir=$as_dir/ ;; 9444 esac 9445 for ac_exec_ext in '' $ac_executable_extensions; do 9446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9447 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9449 break 2 9450 fi 9451done 9452 done 9453IFS=$as_save_IFS 9454 9455fi 9456fi 9457ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9458if test -n "$ac_ct_NMEDIT"; then 9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9460printf "%s\n" "$ac_ct_NMEDIT" >&6; } 9461else 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9463printf "%s\n" "no" >&6; } 9464fi 9465 9466 if test "x$ac_ct_NMEDIT" = x; then 9467 NMEDIT=":" 9468 else 9469 case $cross_compiling:$ac_tool_warned in 9470yes:) 9471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9472printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9473ac_tool_warned=yes ;; 9474esac 9475 NMEDIT=$ac_ct_NMEDIT 9476 fi 9477else 9478 NMEDIT="$ac_cv_prog_NMEDIT" 9479fi 9480 9481 if test -n "$ac_tool_prefix"; then 9482 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9483set dummy ${ac_tool_prefix}lipo; ac_word=$2 9484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9485printf %s "checking for $ac_word... " >&6; } 9486if test ${ac_cv_prog_LIPO+y} 9487then : 9488 printf %s "(cached) " >&6 9489else $as_nop 9490 if test -n "$LIPO"; then 9491 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9492else 9493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9494for as_dir in $PATH 9495do 9496 IFS=$as_save_IFS 9497 case $as_dir in #((( 9498 '') as_dir=./ ;; 9499 */) ;; 9500 *) as_dir=$as_dir/ ;; 9501 esac 9502 for ac_exec_ext in '' $ac_executable_extensions; do 9503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9504 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9506 break 2 9507 fi 9508done 9509 done 9510IFS=$as_save_IFS 9511 9512fi 9513fi 9514LIPO=$ac_cv_prog_LIPO 9515if test -n "$LIPO"; then 9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9517printf "%s\n" "$LIPO" >&6; } 9518else 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9520printf "%s\n" "no" >&6; } 9521fi 9522 9523 9524fi 9525if test -z "$ac_cv_prog_LIPO"; then 9526 ac_ct_LIPO=$LIPO 9527 # Extract the first word of "lipo", so it can be a program name with args. 9528set dummy lipo; ac_word=$2 9529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9530printf %s "checking for $ac_word... " >&6; } 9531if test ${ac_cv_prog_ac_ct_LIPO+y} 9532then : 9533 printf %s "(cached) " >&6 9534else $as_nop 9535 if test -n "$ac_ct_LIPO"; then 9536 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9537else 9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9539for as_dir in $PATH 9540do 9541 IFS=$as_save_IFS 9542 case $as_dir in #((( 9543 '') as_dir=./ ;; 9544 */) ;; 9545 *) as_dir=$as_dir/ ;; 9546 esac 9547 for ac_exec_ext in '' $ac_executable_extensions; do 9548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9549 ac_cv_prog_ac_ct_LIPO="lipo" 9550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9551 break 2 9552 fi 9553done 9554 done 9555IFS=$as_save_IFS 9556 9557fi 9558fi 9559ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9560if test -n "$ac_ct_LIPO"; then 9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9562printf "%s\n" "$ac_ct_LIPO" >&6; } 9563else 9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9565printf "%s\n" "no" >&6; } 9566fi 9567 9568 if test "x$ac_ct_LIPO" = x; then 9569 LIPO=":" 9570 else 9571 case $cross_compiling:$ac_tool_warned in 9572yes:) 9573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9574printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9575ac_tool_warned=yes ;; 9576esac 9577 LIPO=$ac_ct_LIPO 9578 fi 9579else 9580 LIPO="$ac_cv_prog_LIPO" 9581fi 9582 9583 if test -n "$ac_tool_prefix"; then 9584 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9585set dummy ${ac_tool_prefix}otool; ac_word=$2 9586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9587printf %s "checking for $ac_word... " >&6; } 9588if test ${ac_cv_prog_OTOOL+y} 9589then : 9590 printf %s "(cached) " >&6 9591else $as_nop 9592 if test -n "$OTOOL"; then 9593 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9594else 9595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9596for as_dir in $PATH 9597do 9598 IFS=$as_save_IFS 9599 case $as_dir in #((( 9600 '') as_dir=./ ;; 9601 */) ;; 9602 *) as_dir=$as_dir/ ;; 9603 esac 9604 for ac_exec_ext in '' $ac_executable_extensions; do 9605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9606 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9608 break 2 9609 fi 9610done 9611 done 9612IFS=$as_save_IFS 9613 9614fi 9615fi 9616OTOOL=$ac_cv_prog_OTOOL 9617if test -n "$OTOOL"; then 9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9619printf "%s\n" "$OTOOL" >&6; } 9620else 9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9622printf "%s\n" "no" >&6; } 9623fi 9624 9625 9626fi 9627if test -z "$ac_cv_prog_OTOOL"; then 9628 ac_ct_OTOOL=$OTOOL 9629 # Extract the first word of "otool", so it can be a program name with args. 9630set dummy otool; ac_word=$2 9631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9632printf %s "checking for $ac_word... " >&6; } 9633if test ${ac_cv_prog_ac_ct_OTOOL+y} 9634then : 9635 printf %s "(cached) " >&6 9636else $as_nop 9637 if test -n "$ac_ct_OTOOL"; then 9638 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9639else 9640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9641for as_dir in $PATH 9642do 9643 IFS=$as_save_IFS 9644 case $as_dir in #((( 9645 '') as_dir=./ ;; 9646 */) ;; 9647 *) as_dir=$as_dir/ ;; 9648 esac 9649 for ac_exec_ext in '' $ac_executable_extensions; do 9650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9651 ac_cv_prog_ac_ct_OTOOL="otool" 9652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9653 break 2 9654 fi 9655done 9656 done 9657IFS=$as_save_IFS 9658 9659fi 9660fi 9661ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9662if test -n "$ac_ct_OTOOL"; then 9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9664printf "%s\n" "$ac_ct_OTOOL" >&6; } 9665else 9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9667printf "%s\n" "no" >&6; } 9668fi 9669 9670 if test "x$ac_ct_OTOOL" = x; then 9671 OTOOL=":" 9672 else 9673 case $cross_compiling:$ac_tool_warned in 9674yes:) 9675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9676printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9677ac_tool_warned=yes ;; 9678esac 9679 OTOOL=$ac_ct_OTOOL 9680 fi 9681else 9682 OTOOL="$ac_cv_prog_OTOOL" 9683fi 9684 9685 if test -n "$ac_tool_prefix"; then 9686 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9687set dummy ${ac_tool_prefix}otool64; ac_word=$2 9688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9689printf %s "checking for $ac_word... " >&6; } 9690if test ${ac_cv_prog_OTOOL64+y} 9691then : 9692 printf %s "(cached) " >&6 9693else $as_nop 9694 if test -n "$OTOOL64"; then 9695 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9696else 9697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9698for as_dir in $PATH 9699do 9700 IFS=$as_save_IFS 9701 case $as_dir in #((( 9702 '') as_dir=./ ;; 9703 */) ;; 9704 *) as_dir=$as_dir/ ;; 9705 esac 9706 for ac_exec_ext in '' $ac_executable_extensions; do 9707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9708 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9710 break 2 9711 fi 9712done 9713 done 9714IFS=$as_save_IFS 9715 9716fi 9717fi 9718OTOOL64=$ac_cv_prog_OTOOL64 9719if test -n "$OTOOL64"; then 9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9721printf "%s\n" "$OTOOL64" >&6; } 9722else 9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9724printf "%s\n" "no" >&6; } 9725fi 9726 9727 9728fi 9729if test -z "$ac_cv_prog_OTOOL64"; then 9730 ac_ct_OTOOL64=$OTOOL64 9731 # Extract the first word of "otool64", so it can be a program name with args. 9732set dummy otool64; ac_word=$2 9733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9734printf %s "checking for $ac_word... " >&6; } 9735if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9736then : 9737 printf %s "(cached) " >&6 9738else $as_nop 9739 if test -n "$ac_ct_OTOOL64"; then 9740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9741else 9742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9743for as_dir in $PATH 9744do 9745 IFS=$as_save_IFS 9746 case $as_dir in #((( 9747 '') as_dir=./ ;; 9748 */) ;; 9749 *) as_dir=$as_dir/ ;; 9750 esac 9751 for ac_exec_ext in '' $ac_executable_extensions; do 9752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9753 ac_cv_prog_ac_ct_OTOOL64="otool64" 9754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9755 break 2 9756 fi 9757done 9758 done 9759IFS=$as_save_IFS 9760 9761fi 9762fi 9763ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9764if test -n "$ac_ct_OTOOL64"; then 9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9766printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9767else 9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9769printf "%s\n" "no" >&6; } 9770fi 9771 9772 if test "x$ac_ct_OTOOL64" = x; then 9773 OTOOL64=":" 9774 else 9775 case $cross_compiling:$ac_tool_warned in 9776yes:) 9777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9778printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9779ac_tool_warned=yes ;; 9780esac 9781 OTOOL64=$ac_ct_OTOOL64 9782 fi 9783else 9784 OTOOL64="$ac_cv_prog_OTOOL64" 9785fi 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9814printf %s "checking for -single_module linker flag... " >&6; } 9815if test ${lt_cv_apple_cc_single_mod+y} 9816then : 9817 printf %s "(cached) " >&6 9818else $as_nop 9819 lt_cv_apple_cc_single_mod=no 9820 if test -z "$LT_MULTI_MODULE"; then 9821 # By default we will add the -single_module flag. You can override 9822 # by either setting the environment variable LT_MULTI_MODULE 9823 # non-empty at configure time, or by adding -multi_module to the 9824 # link flags. 9825 rm -rf libconftest.dylib* 9826 echo "int foo(void){return 1;}" > conftest.c 9827 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9828-dynamiclib -Wl,-single_module conftest.c" >&5 9829 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9830 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9831 _lt_result=$? 9832 # If there is a non-empty error log, and "single_module" 9833 # appears in it, assume the flag caused a linker warning 9834 if test -s conftest.err && $GREP single_module conftest.err; then 9835 cat conftest.err >&5 9836 # Otherwise, if the output was created with a 0 exit code from 9837 # the compiler, it worked. 9838 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9839 lt_cv_apple_cc_single_mod=yes 9840 else 9841 cat conftest.err >&5 9842 fi 9843 rm -rf libconftest.dylib* 9844 rm -f conftest.* 9845 fi 9846fi 9847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9848printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9849 9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9851printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9852if test ${lt_cv_ld_exported_symbols_list+y} 9853then : 9854 printf %s "(cached) " >&6 9855else $as_nop 9856 lt_cv_ld_exported_symbols_list=no 9857 save_LDFLAGS=$LDFLAGS 9858 echo "_main" > conftest.sym 9859 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9861/* end confdefs.h. */ 9862 9863int 9864main (void) 9865{ 9866 9867 ; 9868 return 0; 9869} 9870_ACEOF 9871if ac_fn_c_try_link "$LINENO" 9872then : 9873 lt_cv_ld_exported_symbols_list=yes 9874else $as_nop 9875 lt_cv_ld_exported_symbols_list=no 9876fi 9877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9878 conftest$ac_exeext conftest.$ac_ext 9879 LDFLAGS=$save_LDFLAGS 9880 9881fi 9882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9883printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9884 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9886printf %s "checking for -force_load linker flag... " >&6; } 9887if test ${lt_cv_ld_force_load+y} 9888then : 9889 printf %s "(cached) " >&6 9890else $as_nop 9891 lt_cv_ld_force_load=no 9892 cat > conftest.c << _LT_EOF 9893int forced_loaded() { return 2;} 9894_LT_EOF 9895 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9896 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9897 echo "$AR cru libconftest.a conftest.o" >&5 9898 $AR cru libconftest.a conftest.o 2>&5 9899 echo "$RANLIB libconftest.a" >&5 9900 $RANLIB libconftest.a 2>&5 9901 cat > conftest.c << _LT_EOF 9902int main() { return 0;} 9903_LT_EOF 9904 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9905 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9906 _lt_result=$? 9907 if test -s conftest.err && $GREP force_load conftest.err; then 9908 cat conftest.err >&5 9909 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9910 lt_cv_ld_force_load=yes 9911 else 9912 cat conftest.err >&5 9913 fi 9914 rm -f conftest.err libconftest.a conftest conftest.c 9915 rm -rf conftest.dSYM 9916 9917fi 9918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9919printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9920 case $host_os in 9921 rhapsody* | darwin1.[012]) 9922 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9923 darwin1.*) 9924 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9925 darwin*) # darwin 5.x on 9926 # if running on 10.5 or later, the deployment target defaults 9927 # to the OS version, if on x86, and 10.4, the deployment 9928 # target defaults to 10.4. Don't you love it? 9929 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9930 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9931 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9932 10.[012][,.]*) 9933 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9934 10.*) 9935 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9936 esac 9937 ;; 9938 esac 9939 if test yes = "$lt_cv_apple_cc_single_mod"; then 9940 _lt_dar_single_mod='$single_module' 9941 fi 9942 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9943 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9944 else 9945 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9946 fi 9947 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9948 _lt_dsymutil='~$DSYMUTIL $lib || :' 9949 else 9950 _lt_dsymutil= 9951 fi 9952 ;; 9953 esac 9954 9955# func_munge_path_list VARIABLE PATH 9956# ----------------------------------- 9957# VARIABLE is name of variable containing _space_ separated list of 9958# directories to be munged by the contents of PATH, which is string 9959# having a format: 9960# "DIR[:DIR]:" 9961# string "DIR[ DIR]" will be prepended to VARIABLE 9962# ":DIR[:DIR]" 9963# string "DIR[ DIR]" will be appended to VARIABLE 9964# "DIRP[:DIRP]::[DIRA:]DIRA" 9965# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9966# "DIRA[ DIRA]" will be appended to VARIABLE 9967# "DIR[:DIR]" 9968# VARIABLE will be replaced by "DIR[ DIR]" 9969func_munge_path_list () 9970{ 9971 case x$2 in 9972 x) 9973 ;; 9974 *:) 9975 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9976 ;; 9977 x:*) 9978 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9979 ;; 9980 *::*) 9981 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9982 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9983 ;; 9984 *) 9985 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9986 ;; 9987 esac 9988} 9989 9990ac_header= ac_cache= 9991for ac_item in $ac_header_c_list 9992do 9993 if test $ac_cache; then 9994 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9995 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9996 printf "%s\n" "#define $ac_item 1" >> confdefs.h 9997 fi 9998 ac_header= ac_cache= 9999 elif test $ac_header; then 10000 ac_cache=$ac_item 10001 else 10002 ac_header=$ac_item 10003 fi 10004done 10005 10006 10007 10008 10009 10010 10011 10012 10013if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 10014then : 10015 10016printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 10017 10018fi 10019ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10020" 10021if test "x$ac_cv_header_dlfcn_h" = xyes 10022then : 10023 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 10024 10025fi 10026 10027 10028 10029 10030func_stripname_cnf () 10031{ 10032 case $2 in 10033 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10034 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10035 esac 10036} # func_stripname_cnf 10037 10038 10039 10040 10041 10042# Set options 10043# Check whether --enable-static was given. 10044if test ${enable_static+y} 10045then : 10046 enableval=$enable_static; p=${PACKAGE-default} 10047 case $enableval in 10048 yes) enable_static=yes ;; 10049 no) enable_static=no ;; 10050 *) 10051 enable_static=no 10052 # Look at the argument we got. We use all the common list separators. 10053 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10054 for pkg in $enableval; do 10055 IFS=$lt_save_ifs 10056 if test "X$pkg" = "X$p"; then 10057 enable_static=yes 10058 fi 10059 done 10060 IFS=$lt_save_ifs 10061 ;; 10062 esac 10063else $as_nop 10064 enable_static=no 10065fi 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 enable_dlopen=no 10077 10078 10079 enable_win32_dll=no 10080 10081 10082 # Check whether --enable-shared was given. 10083if test ${enable_shared+y} 10084then : 10085 enableval=$enable_shared; p=${PACKAGE-default} 10086 case $enableval in 10087 yes) enable_shared=yes ;; 10088 no) enable_shared=no ;; 10089 *) 10090 enable_shared=no 10091 # Look at the argument we got. We use all the common list separators. 10092 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10093 for pkg in $enableval; do 10094 IFS=$lt_save_ifs 10095 if test "X$pkg" = "X$p"; then 10096 enable_shared=yes 10097 fi 10098 done 10099 IFS=$lt_save_ifs 10100 ;; 10101 esac 10102else $as_nop 10103 enable_shared=yes 10104fi 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116# Check whether --with-pic was given. 10117if test ${with_pic+y} 10118then : 10119 withval=$with_pic; lt_p=${PACKAGE-default} 10120 case $withval in 10121 yes|no) pic_mode=$withval ;; 10122 *) 10123 pic_mode=default 10124 # Look at the argument we got. We use all the common list separators. 10125 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10126 for lt_pkg in $withval; do 10127 IFS=$lt_save_ifs 10128 if test "X$lt_pkg" = "X$lt_p"; then 10129 pic_mode=yes 10130 fi 10131 done 10132 IFS=$lt_save_ifs 10133 ;; 10134 esac 10135else $as_nop 10136 pic_mode=default 10137fi 10138 10139 10140 10141 10142 10143 10144 10145 10146 # Check whether --enable-fast-install was given. 10147if test ${enable_fast_install+y} 10148then : 10149 enableval=$enable_fast_install; p=${PACKAGE-default} 10150 case $enableval in 10151 yes) enable_fast_install=yes ;; 10152 no) enable_fast_install=no ;; 10153 *) 10154 enable_fast_install=no 10155 # Look at the argument we got. We use all the common list separators. 10156 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10157 for pkg in $enableval; do 10158 IFS=$lt_save_ifs 10159 if test "X$pkg" = "X$p"; then 10160 enable_fast_install=yes 10161 fi 10162 done 10163 IFS=$lt_save_ifs 10164 ;; 10165 esac 10166else $as_nop 10167 enable_fast_install=yes 10168fi 10169 10170 10171 10172 10173 10174 10175 10176 10177 shared_archive_member_spec= 10178case $host,$enable_shared in 10179power*-*-aix[5-9]*,yes) 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10181printf %s "checking which variant of shared library versioning to provide... " >&6; } 10182 10183# Check whether --with-aix-soname was given. 10184if test ${with_aix_soname+y} 10185then : 10186 withval=$with_aix_soname; case $withval in 10187 aix|svr4|both) 10188 ;; 10189 *) 10190 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10191 ;; 10192 esac 10193 lt_cv_with_aix_soname=$with_aix_soname 10194else $as_nop 10195 if test ${lt_cv_with_aix_soname+y} 10196then : 10197 printf %s "(cached) " >&6 10198else $as_nop 10199 lt_cv_with_aix_soname=aix 10200fi 10201 10202 with_aix_soname=$lt_cv_with_aix_soname 10203fi 10204 10205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10206printf "%s\n" "$with_aix_soname" >&6; } 10207 if test aix != "$with_aix_soname"; then 10208 # For the AIX way of multilib, we name the shared archive member 10209 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10210 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10211 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10212 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10213 if test 64 = "${OBJECT_MODE-32}"; then 10214 shared_archive_member_spec=shr_64 10215 else 10216 shared_archive_member_spec=shr 10217 fi 10218 fi 10219 ;; 10220*) 10221 with_aix_soname=aix 10222 ;; 10223esac 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234# This can be used to rebuild libtool when needed 10235LIBTOOL_DEPS=$ltmain 10236 10237# Always use our own libtool. 10238LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269test -z "$LN_S" && LN_S="ln -s" 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284if test -n "${ZSH_VERSION+set}"; then 10285 setopt NO_GLOB_SUBST 10286fi 10287 10288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10289printf %s "checking for objdir... " >&6; } 10290if test ${lt_cv_objdir+y} 10291then : 10292 printf %s "(cached) " >&6 10293else $as_nop 10294 rm -f .libs 2>/dev/null 10295mkdir .libs 2>/dev/null 10296if test -d .libs; then 10297 lt_cv_objdir=.libs 10298else 10299 # MS-DOS does not allow filenames that begin with a dot. 10300 lt_cv_objdir=_libs 10301fi 10302rmdir .libs 2>/dev/null 10303fi 10304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10305printf "%s\n" "$lt_cv_objdir" >&6; } 10306objdir=$lt_cv_objdir 10307 10308 10309 10310 10311 10312printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 10313 10314 10315 10316 10317case $host_os in 10318aix3*) 10319 # AIX sometimes has problems with the GCC collect2 program. For some 10320 # reason, if we set the COLLECT_NAMES environment variable, the problems 10321 # vanish in a puff of smoke. 10322 if test set != "${COLLECT_NAMES+set}"; then 10323 COLLECT_NAMES= 10324 export COLLECT_NAMES 10325 fi 10326 ;; 10327esac 10328 10329# Global variables: 10330ofile=libtool 10331can_build_shared=yes 10332 10333# All known linkers require a '.a' archive for static linking (except MSVC, 10334# which needs '.lib'). 10335libext=a 10336 10337with_gnu_ld=$lt_cv_prog_gnu_ld 10338 10339old_CC=$CC 10340old_CFLAGS=$CFLAGS 10341 10342# Set sane defaults for various variables 10343test -z "$CC" && CC=cc 10344test -z "$LTCC" && LTCC=$CC 10345test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10346test -z "$LD" && LD=ld 10347test -z "$ac_objext" && ac_objext=o 10348 10349func_cc_basename $compiler 10350cc_basename=$func_cc_basename_result 10351 10352 10353# Only perform the check for file, if the check method requires it 10354test -z "$MAGIC_CMD" && MAGIC_CMD=file 10355case $deplibs_check_method in 10356file_magic*) 10357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10359printf %s "checking for ${ac_tool_prefix}file... " >&6; } 10360if test ${lt_cv_path_MAGIC_CMD+y} 10361then : 10362 printf %s "(cached) " >&6 10363else $as_nop 10364 case $MAGIC_CMD in 10365[\\/*] | ?:[\\/]*) 10366 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10367 ;; 10368*) 10369 lt_save_MAGIC_CMD=$MAGIC_CMD 10370 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10372 for ac_dir in $ac_dummy; do 10373 IFS=$lt_save_ifs 10374 test -z "$ac_dir" && ac_dir=. 10375 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10376 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10377 if test -n "$file_magic_test_file"; then 10378 case $deplibs_check_method in 10379 "file_magic "*) 10380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10381 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10383 $EGREP "$file_magic_regex" > /dev/null; then 10384 : 10385 else 10386 cat <<_LT_EOF 1>&2 10387 10388*** Warning: the command libtool uses to detect shared libraries, 10389*** $file_magic_cmd, produces output that libtool cannot recognize. 10390*** The result is that libtool may fail to recognize shared libraries 10391*** as such. This will affect the creation of libtool libraries that 10392*** depend on shared libraries, but programs linked with such libtool 10393*** libraries will work regardless of this problem. Nevertheless, you 10394*** may want to report the problem to your system manager and/or to 10395*** bug-libtool@gnu.org 10396 10397_LT_EOF 10398 fi ;; 10399 esac 10400 fi 10401 break 10402 fi 10403 done 10404 IFS=$lt_save_ifs 10405 MAGIC_CMD=$lt_save_MAGIC_CMD 10406 ;; 10407esac 10408fi 10409 10410MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10411if test -n "$MAGIC_CMD"; then 10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10413printf "%s\n" "$MAGIC_CMD" >&6; } 10414else 10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10416printf "%s\n" "no" >&6; } 10417fi 10418 10419 10420 10421 10422 10423if test -z "$lt_cv_path_MAGIC_CMD"; then 10424 if test -n "$ac_tool_prefix"; then 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10426printf %s "checking for file... " >&6; } 10427if test ${lt_cv_path_MAGIC_CMD+y} 10428then : 10429 printf %s "(cached) " >&6 10430else $as_nop 10431 case $MAGIC_CMD in 10432[\\/*] | ?:[\\/]*) 10433 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10434 ;; 10435*) 10436 lt_save_MAGIC_CMD=$MAGIC_CMD 10437 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10439 for ac_dir in $ac_dummy; do 10440 IFS=$lt_save_ifs 10441 test -z "$ac_dir" && ac_dir=. 10442 if test -f "$ac_dir/file"; then 10443 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10444 if test -n "$file_magic_test_file"; then 10445 case $deplibs_check_method in 10446 "file_magic "*) 10447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10448 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10450 $EGREP "$file_magic_regex" > /dev/null; then 10451 : 10452 else 10453 cat <<_LT_EOF 1>&2 10454 10455*** Warning: the command libtool uses to detect shared libraries, 10456*** $file_magic_cmd, produces output that libtool cannot recognize. 10457*** The result is that libtool may fail to recognize shared libraries 10458*** as such. This will affect the creation of libtool libraries that 10459*** depend on shared libraries, but programs linked with such libtool 10460*** libraries will work regardless of this problem. Nevertheless, you 10461*** may want to report the problem to your system manager and/or to 10462*** bug-libtool@gnu.org 10463 10464_LT_EOF 10465 fi ;; 10466 esac 10467 fi 10468 break 10469 fi 10470 done 10471 IFS=$lt_save_ifs 10472 MAGIC_CMD=$lt_save_MAGIC_CMD 10473 ;; 10474esac 10475fi 10476 10477MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10478if test -n "$MAGIC_CMD"; then 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10480printf "%s\n" "$MAGIC_CMD" >&6; } 10481else 10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10483printf "%s\n" "no" >&6; } 10484fi 10485 10486 10487 else 10488 MAGIC_CMD=: 10489 fi 10490fi 10491 10492 fi 10493 ;; 10494esac 10495 10496# Use C for the default configuration in the libtool script 10497 10498lt_save_CC=$CC 10499ac_ext=c 10500ac_cpp='$CPP $CPPFLAGS' 10501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10503ac_compiler_gnu=$ac_cv_c_compiler_gnu 10504 10505 10506# Source file extension for C test sources. 10507ac_ext=c 10508 10509# Object file extension for compiled C test sources. 10510objext=o 10511objext=$objext 10512 10513# Code to be used in simple compile tests 10514lt_simple_compile_test_code="int some_variable = 0;" 10515 10516# Code to be used in simple link tests 10517lt_simple_link_test_code='int main(){return(0);}' 10518 10519 10520 10521 10522 10523 10524 10525# If no C compiler was specified, use CC. 10526LTCC=${LTCC-"$CC"} 10527 10528# If no C compiler flags were specified, use CFLAGS. 10529LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10530 10531# Allow CC to be a program name with arguments. 10532compiler=$CC 10533 10534# Save the default compiler, since it gets overwritten when the other 10535# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10536compiler_DEFAULT=$CC 10537 10538# save warnings/boilerplate of simple test code 10539ac_outfile=conftest.$ac_objext 10540echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10541eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10542_lt_compiler_boilerplate=`cat conftest.err` 10543$RM conftest* 10544 10545ac_outfile=conftest.$ac_objext 10546echo "$lt_simple_link_test_code" >conftest.$ac_ext 10547eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10548_lt_linker_boilerplate=`cat conftest.err` 10549$RM -r conftest* 10550 10551 10552## CAVEAT EMPTOR: 10553## There is no encapsulation within the following macros, do not change 10554## the running order or otherwise move them around unless you know exactly 10555## what you are doing... 10556if test -n "$compiler"; then 10557 10558lt_prog_compiler_no_builtin_flag= 10559 10560if test yes = "$GCC"; then 10561 case $cc_basename in 10562 nvcc*) 10563 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10564 *) 10565 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10566 esac 10567 10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10569printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10570if test ${lt_cv_prog_compiler_rtti_exceptions+y} 10571then : 10572 printf %s "(cached) " >&6 10573else $as_nop 10574 lt_cv_prog_compiler_rtti_exceptions=no 10575 ac_outfile=conftest.$ac_objext 10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10577 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10578 # Insert the option either (1) after the last *FLAGS variable, or 10579 # (2) before a word containing "conftest.", or (3) at the end. 10580 # Note that $ac_compile itself does not contain backslashes and begins 10581 # with a dollar sign (not a hyphen), so the echo should work correctly. 10582 # The option is referenced via a variable to avoid confusing sed. 10583 lt_compile=`echo "$ac_compile" | $SED \ 10584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10586 -e 's:$: $lt_compiler_flag:'` 10587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10588 (eval "$lt_compile" 2>conftest.err) 10589 ac_status=$? 10590 cat conftest.err >&5 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10592 if (exit $ac_status) && test -s "$ac_outfile"; then 10593 # The compiler can only warn and ignore the option if not recognized 10594 # So say no if there are warnings other than the usual output. 10595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10598 lt_cv_prog_compiler_rtti_exceptions=yes 10599 fi 10600 fi 10601 $RM conftest* 10602 10603fi 10604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10605printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10606 10607if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10609else 10610 : 10611fi 10612 10613fi 10614 10615 10616 10617 10618 10619 10620 lt_prog_compiler_wl= 10621lt_prog_compiler_pic= 10622lt_prog_compiler_static= 10623 10624 10625 if test yes = "$GCC"; then 10626 lt_prog_compiler_wl='-Wl,' 10627 lt_prog_compiler_static='-static' 10628 10629 case $host_os in 10630 aix*) 10631 # All AIX code is PIC. 10632 if test ia64 = "$host_cpu"; then 10633 # AIX 5 now supports IA64 processor 10634 lt_prog_compiler_static='-Bstatic' 10635 fi 10636 lt_prog_compiler_pic='-fPIC' 10637 ;; 10638 10639 amigaos*) 10640 case $host_cpu in 10641 powerpc) 10642 # see comment about AmigaOS4 .so support 10643 lt_prog_compiler_pic='-fPIC' 10644 ;; 10645 m68k) 10646 # FIXME: we need at least 68020 code to build shared libraries, but 10647 # adding the '-m68020' flag to GCC prevents building anything better, 10648 # like '-m68040'. 10649 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10650 ;; 10651 esac 10652 ;; 10653 10654 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10655 # PIC is the default for these OSes. 10656 ;; 10657 10658 mingw* | cygwin* | pw32* | os2* | cegcc*) 10659 # This hack is so that the source file can tell whether it is being 10660 # built for inclusion in a dll (and should export symbols for example). 10661 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10662 # (--disable-auto-import) libraries 10663 lt_prog_compiler_pic='-DDLL_EXPORT' 10664 case $host_os in 10665 os2*) 10666 lt_prog_compiler_static='$wl-static' 10667 ;; 10668 esac 10669 ;; 10670 10671 darwin* | rhapsody*) 10672 # PIC is the default on this platform 10673 # Common symbols not allowed in MH_DYLIB files 10674 lt_prog_compiler_pic='-fno-common' 10675 ;; 10676 10677 haiku*) 10678 # PIC is the default for Haiku. 10679 # The "-static" flag exists, but is broken. 10680 lt_prog_compiler_static= 10681 ;; 10682 10683 hpux*) 10684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10686 # sets the default TLS model and affects inlining. 10687 case $host_cpu in 10688 hppa*64*) 10689 # +Z the default 10690 ;; 10691 *) 10692 lt_prog_compiler_pic='-fPIC' 10693 ;; 10694 esac 10695 ;; 10696 10697 interix[3-9]*) 10698 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10699 # Instead, we relocate shared libraries at runtime. 10700 ;; 10701 10702 msdosdjgpp*) 10703 # Just because we use GCC doesn't mean we suddenly get shared libraries 10704 # on systems that don't support them. 10705 lt_prog_compiler_can_build_shared=no 10706 enable_shared=no 10707 ;; 10708 10709 *nto* | *qnx*) 10710 # QNX uses GNU C++, but need to define -shared option too, otherwise 10711 # it will coredump. 10712 lt_prog_compiler_pic='-fPIC -shared' 10713 ;; 10714 10715 sysv4*MP*) 10716 if test -d /usr/nec; then 10717 lt_prog_compiler_pic=-Kconform_pic 10718 fi 10719 ;; 10720 10721 *) 10722 lt_prog_compiler_pic='-fPIC' 10723 ;; 10724 esac 10725 10726 case $cc_basename in 10727 nvcc*) # Cuda Compiler Driver 2.2 10728 lt_prog_compiler_wl='-Xlinker ' 10729 if test -n "$lt_prog_compiler_pic"; then 10730 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10731 fi 10732 ;; 10733 esac 10734 else 10735 # PORTME Check for flag to pass linker flags through the system compiler. 10736 case $host_os in 10737 aix*) 10738 lt_prog_compiler_wl='-Wl,' 10739 if test ia64 = "$host_cpu"; then 10740 # AIX 5 now supports IA64 processor 10741 lt_prog_compiler_static='-Bstatic' 10742 else 10743 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10744 fi 10745 ;; 10746 10747 darwin* | rhapsody*) 10748 # PIC is the default on this platform 10749 # Common symbols not allowed in MH_DYLIB files 10750 lt_prog_compiler_pic='-fno-common' 10751 case $cc_basename in 10752 nagfor*) 10753 # NAG Fortran compiler 10754 lt_prog_compiler_wl='-Wl,-Wl,,' 10755 lt_prog_compiler_pic='-PIC' 10756 lt_prog_compiler_static='-Bstatic' 10757 ;; 10758 esac 10759 ;; 10760 10761 mingw* | cygwin* | pw32* | os2* | cegcc*) 10762 # This hack is so that the source file can tell whether it is being 10763 # built for inclusion in a dll (and should export symbols for example). 10764 lt_prog_compiler_pic='-DDLL_EXPORT' 10765 case $host_os in 10766 os2*) 10767 lt_prog_compiler_static='$wl-static' 10768 ;; 10769 esac 10770 ;; 10771 10772 hpux9* | hpux10* | hpux11*) 10773 lt_prog_compiler_wl='-Wl,' 10774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10775 # not for PA HP-UX. 10776 case $host_cpu in 10777 hppa*64*|ia64*) 10778 # +Z the default 10779 ;; 10780 *) 10781 lt_prog_compiler_pic='+Z' 10782 ;; 10783 esac 10784 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10785 lt_prog_compiler_static='$wl-a ${wl}archive' 10786 ;; 10787 10788 irix5* | irix6* | nonstopux*) 10789 lt_prog_compiler_wl='-Wl,' 10790 # PIC (with -KPIC) is the default. 10791 lt_prog_compiler_static='-non_shared' 10792 ;; 10793 10794 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10795 case $cc_basename in 10796 # old Intel for x86_64, which still supported -KPIC. 10797 ecc*) 10798 lt_prog_compiler_wl='-Wl,' 10799 lt_prog_compiler_pic='-KPIC' 10800 lt_prog_compiler_static='-static' 10801 ;; 10802 # icc used to be incompatible with GCC. 10803 # ICC 10 doesn't accept -KPIC any more. 10804 icc* | ifort*) 10805 lt_prog_compiler_wl='-Wl,' 10806 lt_prog_compiler_pic='-fPIC' 10807 lt_prog_compiler_static='-static' 10808 ;; 10809 # Lahey Fortran 8.1. 10810 lf95*) 10811 lt_prog_compiler_wl='-Wl,' 10812 lt_prog_compiler_pic='--shared' 10813 lt_prog_compiler_static='--static' 10814 ;; 10815 nagfor*) 10816 # NAG Fortran compiler 10817 lt_prog_compiler_wl='-Wl,-Wl,,' 10818 lt_prog_compiler_pic='-PIC' 10819 lt_prog_compiler_static='-Bstatic' 10820 ;; 10821 tcc*) 10822 # Fabrice Bellard et al's Tiny C Compiler 10823 lt_prog_compiler_wl='-Wl,' 10824 lt_prog_compiler_pic='-fPIC' 10825 lt_prog_compiler_static='-static' 10826 ;; 10827 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10828 # Portland Group compilers (*not* the Pentium gcc compiler, 10829 # which looks to be a dead project) 10830 lt_prog_compiler_wl='-Wl,' 10831 lt_prog_compiler_pic='-fpic' 10832 lt_prog_compiler_static='-Bstatic' 10833 ;; 10834 ccc*) 10835 lt_prog_compiler_wl='-Wl,' 10836 # All Alpha code is PIC. 10837 lt_prog_compiler_static='-non_shared' 10838 ;; 10839 xl* | bgxl* | bgf* | mpixl*) 10840 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10841 lt_prog_compiler_wl='-Wl,' 10842 lt_prog_compiler_pic='-qpic' 10843 lt_prog_compiler_static='-qstaticlink' 10844 ;; 10845 *) 10846 case `$CC -V 2>&1 | sed 5q` in 10847 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10848 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10849 lt_prog_compiler_pic='-KPIC' 10850 lt_prog_compiler_static='-Bstatic' 10851 lt_prog_compiler_wl='' 10852 ;; 10853 *Sun\ F* | *Sun*Fortran*) 10854 lt_prog_compiler_pic='-KPIC' 10855 lt_prog_compiler_static='-Bstatic' 10856 lt_prog_compiler_wl='-Qoption ld ' 10857 ;; 10858 *Sun\ C*) 10859 # Sun C 5.9 10860 lt_prog_compiler_pic='-KPIC' 10861 lt_prog_compiler_static='-Bstatic' 10862 lt_prog_compiler_wl='-Wl,' 10863 ;; 10864 *Intel*\ [CF]*Compiler*) 10865 lt_prog_compiler_wl='-Wl,' 10866 lt_prog_compiler_pic='-fPIC' 10867 lt_prog_compiler_static='-static' 10868 ;; 10869 *Portland\ Group*) 10870 lt_prog_compiler_wl='-Wl,' 10871 lt_prog_compiler_pic='-fpic' 10872 lt_prog_compiler_static='-Bstatic' 10873 ;; 10874 esac 10875 ;; 10876 esac 10877 ;; 10878 10879 newsos6) 10880 lt_prog_compiler_pic='-KPIC' 10881 lt_prog_compiler_static='-Bstatic' 10882 ;; 10883 10884 *nto* | *qnx*) 10885 # QNX uses GNU C++, but need to define -shared option too, otherwise 10886 # it will coredump. 10887 lt_prog_compiler_pic='-fPIC -shared' 10888 ;; 10889 10890 osf3* | osf4* | osf5*) 10891 lt_prog_compiler_wl='-Wl,' 10892 # All OSF/1 code is PIC. 10893 lt_prog_compiler_static='-non_shared' 10894 ;; 10895 10896 rdos*) 10897 lt_prog_compiler_static='-non_shared' 10898 ;; 10899 10900 solaris*) 10901 lt_prog_compiler_pic='-KPIC' 10902 lt_prog_compiler_static='-Bstatic' 10903 case $cc_basename in 10904 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10905 lt_prog_compiler_wl='-Qoption ld ';; 10906 *) 10907 lt_prog_compiler_wl='-Wl,';; 10908 esac 10909 ;; 10910 10911 sunos4*) 10912 lt_prog_compiler_wl='-Qoption ld ' 10913 lt_prog_compiler_pic='-PIC' 10914 lt_prog_compiler_static='-Bstatic' 10915 ;; 10916 10917 sysv4 | sysv4.2uw2* | sysv4.3*) 10918 lt_prog_compiler_wl='-Wl,' 10919 lt_prog_compiler_pic='-KPIC' 10920 lt_prog_compiler_static='-Bstatic' 10921 ;; 10922 10923 sysv4*MP*) 10924 if test -d /usr/nec; then 10925 lt_prog_compiler_pic='-Kconform_pic' 10926 lt_prog_compiler_static='-Bstatic' 10927 fi 10928 ;; 10929 10930 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10931 lt_prog_compiler_wl='-Wl,' 10932 lt_prog_compiler_pic='-KPIC' 10933 lt_prog_compiler_static='-Bstatic' 10934 ;; 10935 10936 unicos*) 10937 lt_prog_compiler_wl='-Wl,' 10938 lt_prog_compiler_can_build_shared=no 10939 ;; 10940 10941 uts4*) 10942 lt_prog_compiler_pic='-pic' 10943 lt_prog_compiler_static='-Bstatic' 10944 ;; 10945 10946 *) 10947 lt_prog_compiler_can_build_shared=no 10948 ;; 10949 esac 10950 fi 10951 10952case $host_os in 10953 # For platforms that do not support PIC, -DPIC is meaningless: 10954 *djgpp*) 10955 lt_prog_compiler_pic= 10956 ;; 10957 *) 10958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10959 ;; 10960esac 10961 10962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10963printf %s "checking for $compiler option to produce PIC... " >&6; } 10964if test ${lt_cv_prog_compiler_pic+y} 10965then : 10966 printf %s "(cached) " >&6 10967else $as_nop 10968 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10969fi 10970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10971printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10972lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10973 10974# 10975# Check to make sure the PIC flag actually works. 10976# 10977if test -n "$lt_prog_compiler_pic"; then 10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10979printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10980if test ${lt_cv_prog_compiler_pic_works+y} 10981then : 10982 printf %s "(cached) " >&6 10983else $as_nop 10984 lt_cv_prog_compiler_pic_works=no 10985 ac_outfile=conftest.$ac_objext 10986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10987 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10988 # Insert the option either (1) after the last *FLAGS variable, or 10989 # (2) before a word containing "conftest.", or (3) at the end. 10990 # Note that $ac_compile itself does not contain backslashes and begins 10991 # with a dollar sign (not a hyphen), so the echo should work correctly. 10992 # The option is referenced via a variable to avoid confusing sed. 10993 lt_compile=`echo "$ac_compile" | $SED \ 10994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10996 -e 's:$: $lt_compiler_flag:'` 10997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10998 (eval "$lt_compile" 2>conftest.err) 10999 ac_status=$? 11000 cat conftest.err >&5 11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11002 if (exit $ac_status) && test -s "$ac_outfile"; then 11003 # The compiler can only warn and ignore the option if not recognized 11004 # So say no if there are warnings other than the usual output. 11005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11008 lt_cv_prog_compiler_pic_works=yes 11009 fi 11010 fi 11011 $RM conftest* 11012 11013fi 11014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11015printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 11016 11017if test yes = "$lt_cv_prog_compiler_pic_works"; then 11018 case $lt_prog_compiler_pic in 11019 "" | " "*) ;; 11020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11021 esac 11022else 11023 lt_prog_compiler_pic= 11024 lt_prog_compiler_can_build_shared=no 11025fi 11026 11027fi 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039# 11040# Check to make sure the static flag actually works. 11041# 11042wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11044printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11045if test ${lt_cv_prog_compiler_static_works+y} 11046then : 11047 printf %s "(cached) " >&6 11048else $as_nop 11049 lt_cv_prog_compiler_static_works=no 11050 save_LDFLAGS=$LDFLAGS 11051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11052 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11054 # The linker can only warn and ignore the option if not recognized 11055 # So say no if there are warnings 11056 if test -s conftest.err; then 11057 # Append any errors to the config.log. 11058 cat conftest.err 1>&5 11059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11061 if diff conftest.exp conftest.er2 >/dev/null; then 11062 lt_cv_prog_compiler_static_works=yes 11063 fi 11064 else 11065 lt_cv_prog_compiler_static_works=yes 11066 fi 11067 fi 11068 $RM -r conftest* 11069 LDFLAGS=$save_LDFLAGS 11070 11071fi 11072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11073printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 11074 11075if test yes = "$lt_cv_prog_compiler_static_works"; then 11076 : 11077else 11078 lt_prog_compiler_static= 11079fi 11080 11081 11082 11083 11084 11085 11086 11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11088printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11089if test ${lt_cv_prog_compiler_c_o+y} 11090then : 11091 printf %s "(cached) " >&6 11092else $as_nop 11093 lt_cv_prog_compiler_c_o=no 11094 $RM -r conftest 2>/dev/null 11095 mkdir conftest 11096 cd conftest 11097 mkdir out 11098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11099 11100 lt_compiler_flag="-o out/conftest2.$ac_objext" 11101 # Insert the option either (1) after the last *FLAGS variable, or 11102 # (2) before a word containing "conftest.", or (3) at the end. 11103 # Note that $ac_compile itself does not contain backslashes and begins 11104 # with a dollar sign (not a hyphen), so the echo should work correctly. 11105 lt_compile=`echo "$ac_compile" | $SED \ 11106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11108 -e 's:$: $lt_compiler_flag:'` 11109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11110 (eval "$lt_compile" 2>out/conftest.err) 11111 ac_status=$? 11112 cat out/conftest.err >&5 11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11114 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11115 then 11116 # The compiler can only warn and ignore the option if not recognized 11117 # So say no if there are warnings 11118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11121 lt_cv_prog_compiler_c_o=yes 11122 fi 11123 fi 11124 chmod u+w . 2>&5 11125 $RM conftest* 11126 # SGI C++ compiler will create directory out/ii_files/ for 11127 # template instantiation 11128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11129 $RM out/* && rmdir out 11130 cd .. 11131 $RM -r conftest 11132 $RM conftest* 11133 11134fi 11135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11136printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11137 11138 11139 11140 11141 11142 11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11144printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11145if test ${lt_cv_prog_compiler_c_o+y} 11146then : 11147 printf %s "(cached) " >&6 11148else $as_nop 11149 lt_cv_prog_compiler_c_o=no 11150 $RM -r conftest 2>/dev/null 11151 mkdir conftest 11152 cd conftest 11153 mkdir out 11154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11155 11156 lt_compiler_flag="-o out/conftest2.$ac_objext" 11157 # Insert the option either (1) after the last *FLAGS variable, or 11158 # (2) before a word containing "conftest.", or (3) at the end. 11159 # Note that $ac_compile itself does not contain backslashes and begins 11160 # with a dollar sign (not a hyphen), so the echo should work correctly. 11161 lt_compile=`echo "$ac_compile" | $SED \ 11162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11164 -e 's:$: $lt_compiler_flag:'` 11165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11166 (eval "$lt_compile" 2>out/conftest.err) 11167 ac_status=$? 11168 cat out/conftest.err >&5 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11171 then 11172 # The compiler can only warn and ignore the option if not recognized 11173 # So say no if there are warnings 11174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11177 lt_cv_prog_compiler_c_o=yes 11178 fi 11179 fi 11180 chmod u+w . 2>&5 11181 $RM conftest* 11182 # SGI C++ compiler will create directory out/ii_files/ for 11183 # template instantiation 11184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11185 $RM out/* && rmdir out 11186 cd .. 11187 $RM -r conftest 11188 $RM conftest* 11189 11190fi 11191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11192printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11193 11194 11195 11196 11197hard_links=nottested 11198if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11199 # do not overwrite the value of need_locks provided by the user 11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11201printf %s "checking if we can lock with hard links... " >&6; } 11202 hard_links=yes 11203 $RM conftest* 11204 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11205 touch conftest.a 11206 ln conftest.a conftest.b 2>&5 || hard_links=no 11207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11209printf "%s\n" "$hard_links" >&6; } 11210 if test no = "$hard_links"; then 11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11212printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11213 need_locks=warn 11214 fi 11215else 11216 need_locks=no 11217fi 11218 11219 11220 11221 11222 11223 11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11225printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11226 11227 runpath_var= 11228 allow_undefined_flag= 11229 always_export_symbols=no 11230 archive_cmds= 11231 archive_expsym_cmds= 11232 compiler_needs_object=no 11233 enable_shared_with_static_runtimes=no 11234 export_dynamic_flag_spec= 11235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11236 hardcode_automatic=no 11237 hardcode_direct=no 11238 hardcode_direct_absolute=no 11239 hardcode_libdir_flag_spec= 11240 hardcode_libdir_separator= 11241 hardcode_minus_L=no 11242 hardcode_shlibpath_var=unsupported 11243 inherit_rpath=no 11244 link_all_deplibs=unknown 11245 module_cmds= 11246 module_expsym_cmds= 11247 old_archive_from_new_cmds= 11248 old_archive_from_expsyms_cmds= 11249 thread_safe_flag_spec= 11250 whole_archive_flag_spec= 11251 # include_expsyms should be a list of space-separated symbols to be *always* 11252 # included in the symbol list 11253 include_expsyms= 11254 # exclude_expsyms can be an extended regexp of symbols to exclude 11255 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11256 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11257 # as well as any symbol that contains 'd'. 11258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11260 # platforms (ab)use it in PIC code, but their linkers get confused if 11261 # the symbol is explicitly referenced. Since portable code cannot 11262 # rely on this symbol name, it's probably fine to never include it in 11263 # preloaded symbol tables. 11264 # Exclude shared library initialization/finalization symbols. 11265 extract_expsyms_cmds= 11266 11267 case $host_os in 11268 cygwin* | mingw* | pw32* | cegcc*) 11269 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11270 # When not using gcc, we currently assume that we are using 11271 # Microsoft Visual C++. 11272 if test yes != "$GCC"; then 11273 with_gnu_ld=no 11274 fi 11275 ;; 11276 interix*) 11277 # we just hope/assume this is gcc and not c89 (= MSVC++) 11278 with_gnu_ld=yes 11279 ;; 11280 openbsd* | bitrig*) 11281 with_gnu_ld=no 11282 ;; 11283 esac 11284 11285 ld_shlibs=yes 11286 11287 # On some targets, GNU ld is compatible enough with the native linker 11288 # that we're better off using the native interface for both. 11289 lt_use_gnu_ld_interface=no 11290 if test yes = "$with_gnu_ld"; then 11291 case $host_os in 11292 aix*) 11293 # The AIX port of GNU ld has always aspired to compatibility 11294 # with the native linker. However, as the warning in the GNU ld 11295 # block says, versions before 2.19.5* couldn't really create working 11296 # shared libraries, regardless of the interface used. 11297 case `$LD -v 2>&1` in 11298 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11299 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11300 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11301 *) 11302 lt_use_gnu_ld_interface=yes 11303 ;; 11304 esac 11305 ;; 11306 *) 11307 lt_use_gnu_ld_interface=yes 11308 ;; 11309 esac 11310 fi 11311 11312 if test yes = "$lt_use_gnu_ld_interface"; then 11313 # If archive_cmds runs LD, not CC, wlarc should be empty 11314 wlarc='$wl' 11315 11316 # Set some defaults for GNU ld with shared library support. These 11317 # are reset later if shared libraries are not supported. Putting them 11318 # here allows them to be overridden if necessary. 11319 runpath_var=LD_RUN_PATH 11320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11321 export_dynamic_flag_spec='$wl--export-dynamic' 11322 # ancient GNU ld didn't support --whole-archive et. al. 11323 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11324 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11325 else 11326 whole_archive_flag_spec= 11327 fi 11328 supports_anon_versioning=no 11329 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11330 *GNU\ gold*) supports_anon_versioning=yes ;; 11331 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11332 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11333 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11334 *\ 2.11.*) ;; # other 2.11 versions 11335 *) supports_anon_versioning=yes ;; 11336 esac 11337 11338 # See if GNU ld supports shared libraries. 11339 case $host_os in 11340 aix[3-9]*) 11341 # On AIX/PPC, the GNU linker is very broken 11342 if test ia64 != "$host_cpu"; then 11343 ld_shlibs=no 11344 cat <<_LT_EOF 1>&2 11345 11346*** Warning: the GNU linker, at least up to release 2.19, is reported 11347*** to be unable to reliably create shared libraries on AIX. 11348*** Therefore, libtool is disabling shared libraries support. If you 11349*** really care for shared libraries, you may want to install binutils 11350*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11351*** You will then need to restart the configuration process. 11352 11353_LT_EOF 11354 fi 11355 ;; 11356 11357 amigaos*) 11358 case $host_cpu in 11359 powerpc) 11360 # see comment about AmigaOS4 .so support 11361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11362 archive_expsym_cmds='' 11363 ;; 11364 m68k) 11365 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)' 11366 hardcode_libdir_flag_spec='-L$libdir' 11367 hardcode_minus_L=yes 11368 ;; 11369 esac 11370 ;; 11371 11372 beos*) 11373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11374 allow_undefined_flag=unsupported 11375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11376 # support --undefined. This deserves some investigation. FIXME 11377 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11378 else 11379 ld_shlibs=no 11380 fi 11381 ;; 11382 11383 cygwin* | mingw* | pw32* | cegcc*) 11384 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11385 # as there is no search path for DLLs. 11386 hardcode_libdir_flag_spec='-L$libdir' 11387 export_dynamic_flag_spec='$wl--export-all-symbols' 11388 allow_undefined_flag=unsupported 11389 always_export_symbols=no 11390 enable_shared_with_static_runtimes=yes 11391 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' 11392 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11393 11394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11396 # If the export-symbols file already is a .def file, use it as 11397 # is; otherwise, prepend EXPORTS... 11398 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11399 cp $export_symbols $output_objdir/$soname.def; 11400 else 11401 echo EXPORTS > $output_objdir/$soname.def; 11402 cat $export_symbols >> $output_objdir/$soname.def; 11403 fi~ 11404 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11405 else 11406 ld_shlibs=no 11407 fi 11408 ;; 11409 11410 haiku*) 11411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11412 link_all_deplibs=yes 11413 ;; 11414 11415 os2*) 11416 hardcode_libdir_flag_spec='-L$libdir' 11417 hardcode_minus_L=yes 11418 allow_undefined_flag=unsupported 11419 shrext_cmds=.dll 11420 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11421 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11422 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11423 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11424 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11425 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11426 emximp -o $lib $output_objdir/$libname.def' 11427 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11428 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11429 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11430 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11431 prefix_cmds="$SED"~ 11432 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11433 prefix_cmds="$prefix_cmds -e 1d"; 11434 fi~ 11435 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11436 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11437 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11438 emximp -o $lib $output_objdir/$libname.def' 11439 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11440 enable_shared_with_static_runtimes=yes 11441 ;; 11442 11443 interix[3-9]*) 11444 hardcode_direct=no 11445 hardcode_shlibpath_var=no 11446 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11447 export_dynamic_flag_spec='$wl-E' 11448 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11449 # Instead, shared libraries are loaded at an image base (0x10000000 by 11450 # default) and relocated if they conflict, which is a slow very memory 11451 # consuming and fragmenting process. To avoid this, we pick a random, 11452 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11453 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11454 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11455 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' 11456 ;; 11457 11458 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11459 tmp_diet=no 11460 if test linux-dietlibc = "$host_os"; then 11461 case $cc_basename in 11462 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11463 esac 11464 fi 11465 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11466 && test no = "$tmp_diet" 11467 then 11468 tmp_addflag=' $pic_flag' 11469 tmp_sharedflag='-shared' 11470 case $cc_basename,$host_cpu in 11471 pgcc*) # Portland Group C compiler 11472 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' 11473 tmp_addflag=' $pic_flag' 11474 ;; 11475 pgf77* | pgf90* | pgf95* | pgfortran*) 11476 # Portland Group f77 and f90 compilers 11477 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' 11478 tmp_addflag=' $pic_flag -Mnomain' ;; 11479 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11480 tmp_addflag=' -i_dynamic' ;; 11481 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11482 tmp_addflag=' -i_dynamic -nofor_main' ;; 11483 ifc* | ifort*) # Intel Fortran compiler 11484 tmp_addflag=' -nofor_main' ;; 11485 lf95*) # Lahey Fortran 8.1 11486 whole_archive_flag_spec= 11487 tmp_sharedflag='--shared' ;; 11488 nagfor*) # NAGFOR 5.3 11489 tmp_sharedflag='-Wl,-shared' ;; 11490 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11491 tmp_sharedflag='-qmkshrobj' 11492 tmp_addflag= ;; 11493 nvcc*) # Cuda Compiler Driver 2.2 11494 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' 11495 compiler_needs_object=yes 11496 ;; 11497 esac 11498 case `$CC -V 2>&1 | sed 5q` in 11499 *Sun\ C*) # Sun C 5.9 11500 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' 11501 compiler_needs_object=yes 11502 tmp_sharedflag='-G' ;; 11503 *Sun\ F*) # Sun Fortran 8.3 11504 tmp_sharedflag='-G' ;; 11505 esac 11506 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11507 11508 if test yes = "$supports_anon_versioning"; then 11509 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11511 echo "local: *; };" >> $output_objdir/$libname.ver~ 11512 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11513 fi 11514 11515 case $cc_basename in 11516 tcc*) 11517 export_dynamic_flag_spec='-rdynamic' 11518 ;; 11519 xlf* | bgf* | bgxlf* | mpixlf*) 11520 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11521 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11522 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11523 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11524 if test yes = "$supports_anon_versioning"; then 11525 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11527 echo "local: *; };" >> $output_objdir/$libname.ver~ 11528 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11529 fi 11530 ;; 11531 esac 11532 else 11533 ld_shlibs=no 11534 fi 11535 ;; 11536 11537 netbsd*) 11538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11540 wlarc= 11541 else 11542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11543 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11544 fi 11545 ;; 11546 11547 solaris*) 11548 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11549 ld_shlibs=no 11550 cat <<_LT_EOF 1>&2 11551 11552*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11553*** create shared libraries on Solaris systems. Therefore, libtool 11554*** is disabling shared libraries support. We urge you to upgrade GNU 11555*** binutils to release 2.9.1 or newer. Another option is to modify 11556*** your PATH or compiler configuration so that the native linker is 11557*** used, and then restart. 11558 11559_LT_EOF 11560 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11562 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11563 else 11564 ld_shlibs=no 11565 fi 11566 ;; 11567 11568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11569 case `$LD -v 2>&1` in 11570 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11571 ld_shlibs=no 11572 cat <<_LT_EOF 1>&2 11573 11574*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11575*** reliably create shared libraries on SCO systems. Therefore, libtool 11576*** is disabling shared libraries support. We urge you to upgrade GNU 11577*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11578*** your PATH or compiler configuration so that the native linker is 11579*** used, and then restart. 11580 11581_LT_EOF 11582 ;; 11583 *) 11584 # For security reasons, it is highly recommended that you always 11585 # use absolute paths for naming shared libraries, and exclude the 11586 # DT_RUNPATH tag from executables and libraries. But doing so 11587 # requires that you compile everything twice, which is a pain. 11588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11592 else 11593 ld_shlibs=no 11594 fi 11595 ;; 11596 esac 11597 ;; 11598 11599 sunos4*) 11600 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11601 wlarc= 11602 hardcode_direct=yes 11603 hardcode_shlibpath_var=no 11604 ;; 11605 11606 *) 11607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11609 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11610 else 11611 ld_shlibs=no 11612 fi 11613 ;; 11614 esac 11615 11616 if test no = "$ld_shlibs"; then 11617 runpath_var= 11618 hardcode_libdir_flag_spec= 11619 export_dynamic_flag_spec= 11620 whole_archive_flag_spec= 11621 fi 11622 else 11623 # PORTME fill in a description of your system's linker (not GNU ld) 11624 case $host_os in 11625 aix3*) 11626 allow_undefined_flag=unsupported 11627 always_export_symbols=yes 11628 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' 11629 # Note: this linker hardcodes the directories in LIBPATH if there 11630 # are no directories specified by -L. 11631 hardcode_minus_L=yes 11632 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11633 # Neither direct hardcoding nor static linking is supported with a 11634 # broken collect2. 11635 hardcode_direct=unsupported 11636 fi 11637 ;; 11638 11639 aix[4-9]*) 11640 if test ia64 = "$host_cpu"; then 11641 # On IA64, the linker does run time linking by default, so we don't 11642 # have to do anything special. 11643 aix_use_runtimelinking=no 11644 exp_sym_flag='-Bexport' 11645 no_entry_flag= 11646 else 11647 # If we're using GNU nm, then we don't want the "-C" option. 11648 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11649 # Without the "-l" option, or with the "-B" option, AIX nm treats 11650 # weak defined symbols like other global defined symbols, whereas 11651 # GNU nm marks them as "W". 11652 # While the 'weak' keyword is ignored in the Export File, we need 11653 # it in the Import File for the 'aix-soname' feature, so we have 11654 # to replace the "-B" option with "-P" for AIX nm. 11655 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11656 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11657 else 11658 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11659 fi 11660 aix_use_runtimelinking=no 11661 11662 # Test if we are trying to use run time linking or normal 11663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11664 # have runtime linking enabled, and use it for executables. 11665 # For shared libraries, we enable/disable runtime linking 11666 # depending on the kind of the shared library created - 11667 # when "with_aix_soname,aix_use_runtimelinking" is: 11668 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11669 # "aix,yes" lib.so shared, rtl:yes, for executables 11670 # lib.a static archive 11671 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11672 # lib.a(lib.so.V) shared, rtl:no, for executables 11673 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11674 # lib.a(lib.so.V) shared, rtl:no 11675 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11676 # lib.a static archive 11677 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11678 for ld_flag in $LDFLAGS; do 11679 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11680 aix_use_runtimelinking=yes 11681 break 11682 fi 11683 done 11684 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11685 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11686 # so we don't have lib.a shared libs to link our executables. 11687 # We have to force runtime linking in this case. 11688 aix_use_runtimelinking=yes 11689 LDFLAGS="$LDFLAGS -Wl,-brtl" 11690 fi 11691 ;; 11692 esac 11693 11694 exp_sym_flag='-bexport' 11695 no_entry_flag='-bnoentry' 11696 fi 11697 11698 # When large executables or shared objects are built, AIX ld can 11699 # have problems creating the table of contents. If linking a library 11700 # or program results in "error TOC overflow" add -mminimal-toc to 11701 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11702 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11703 11704 archive_cmds='' 11705 hardcode_direct=yes 11706 hardcode_direct_absolute=yes 11707 hardcode_libdir_separator=':' 11708 link_all_deplibs=yes 11709 file_list_spec='$wl-f,' 11710 case $with_aix_soname,$aix_use_runtimelinking in 11711 aix,*) ;; # traditional, no import file 11712 svr4,* | *,yes) # use import file 11713 # The Import File defines what to hardcode. 11714 hardcode_direct=no 11715 hardcode_direct_absolute=no 11716 ;; 11717 esac 11718 11719 if test yes = "$GCC"; then 11720 case $host_os in aix4.[012]|aix4.[012].*) 11721 # We only want to do this on AIX 4.2 and lower, the check 11722 # below for broken collect2 doesn't work under 4.3+ 11723 collect2name=`$CC -print-prog-name=collect2` 11724 if test -f "$collect2name" && 11725 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11726 then 11727 # We have reworked collect2 11728 : 11729 else 11730 # We have old collect2 11731 hardcode_direct=unsupported 11732 # It fails to find uninstalled libraries when the uninstalled 11733 # path is not listed in the libpath. Setting hardcode_minus_L 11734 # to unsupported forces relinking 11735 hardcode_minus_L=yes 11736 hardcode_libdir_flag_spec='-L$libdir' 11737 hardcode_libdir_separator= 11738 fi 11739 ;; 11740 esac 11741 shared_flag='-shared' 11742 if test yes = "$aix_use_runtimelinking"; then 11743 shared_flag="$shared_flag "'$wl-G' 11744 fi 11745 # Need to ensure runtime linking is disabled for the traditional 11746 # shared library, or the linker may eventually find shared libraries 11747 # /with/ Import File - we do not want to mix them. 11748 shared_flag_aix='-shared' 11749 shared_flag_svr4='-shared $wl-G' 11750 else 11751 # not using gcc 11752 if test ia64 = "$host_cpu"; then 11753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11754 # chokes on -Wl,-G. The following line is correct: 11755 shared_flag='-G' 11756 else 11757 if test yes = "$aix_use_runtimelinking"; then 11758 shared_flag='$wl-G' 11759 else 11760 shared_flag='$wl-bM:SRE' 11761 fi 11762 shared_flag_aix='$wl-bM:SRE' 11763 shared_flag_svr4='$wl-G' 11764 fi 11765 fi 11766 11767 export_dynamic_flag_spec='$wl-bexpall' 11768 # It seems that -bexpall does not export symbols beginning with 11769 # underscore (_), so it is better to generate a list of symbols to export. 11770 always_export_symbols=yes 11771 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11772 # Warning - without using the other runtime loading flags (-brtl), 11773 # -berok will link without error, but may produce a broken library. 11774 allow_undefined_flag='-berok' 11775 # Determine the default libpath from the value encoded in an 11776 # empty executable. 11777 if test set = "${lt_cv_aix_libpath+set}"; then 11778 aix_libpath=$lt_cv_aix_libpath 11779else 11780 if test ${lt_cv_aix_libpath_+y} 11781then : 11782 printf %s "(cached) " >&6 11783else $as_nop 11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11785/* end confdefs.h. */ 11786 11787int 11788main (void) 11789{ 11790 11791 ; 11792 return 0; 11793} 11794_ACEOF 11795if ac_fn_c_try_link "$LINENO" 11796then : 11797 11798 lt_aix_libpath_sed=' 11799 /Import File Strings/,/^$/ { 11800 /^0/ { 11801 s/^0 *\([^ ]*\) *$/\1/ 11802 p 11803 } 11804 }' 11805 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11806 # Check for a 64-bit object if we didn't find anything. 11807 if test -z "$lt_cv_aix_libpath_"; then 11808 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11809 fi 11810fi 11811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11812 conftest$ac_exeext conftest.$ac_ext 11813 if test -z "$lt_cv_aix_libpath_"; then 11814 lt_cv_aix_libpath_=/usr/lib:/lib 11815 fi 11816 11817fi 11818 11819 aix_libpath=$lt_cv_aix_libpath_ 11820fi 11821 11822 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11823 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11824 else 11825 if test ia64 = "$host_cpu"; then 11826 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11827 allow_undefined_flag="-z nodefs" 11828 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" 11829 else 11830 # Determine the default libpath from the value encoded in an 11831 # empty executable. 11832 if test set = "${lt_cv_aix_libpath+set}"; then 11833 aix_libpath=$lt_cv_aix_libpath 11834else 11835 if test ${lt_cv_aix_libpath_+y} 11836then : 11837 printf %s "(cached) " >&6 11838else $as_nop 11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11840/* end confdefs.h. */ 11841 11842int 11843main (void) 11844{ 11845 11846 ; 11847 return 0; 11848} 11849_ACEOF 11850if ac_fn_c_try_link "$LINENO" 11851then : 11852 11853 lt_aix_libpath_sed=' 11854 /Import File Strings/,/^$/ { 11855 /^0/ { 11856 s/^0 *\([^ ]*\) *$/\1/ 11857 p 11858 } 11859 }' 11860 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11861 # Check for a 64-bit object if we didn't find anything. 11862 if test -z "$lt_cv_aix_libpath_"; then 11863 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11864 fi 11865fi 11866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11867 conftest$ac_exeext conftest.$ac_ext 11868 if test -z "$lt_cv_aix_libpath_"; then 11869 lt_cv_aix_libpath_=/usr/lib:/lib 11870 fi 11871 11872fi 11873 11874 aix_libpath=$lt_cv_aix_libpath_ 11875fi 11876 11877 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11878 # Warning - without using the other run time loading flags, 11879 # -berok will link without error, but may produce a broken library. 11880 no_undefined_flag=' $wl-bernotok' 11881 allow_undefined_flag=' $wl-berok' 11882 if test yes = "$with_gnu_ld"; then 11883 # We only use this code for GNU lds that support --whole-archive. 11884 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11885 else 11886 # Exported symbols can be pulled into shared objects from archives 11887 whole_archive_flag_spec='$convenience' 11888 fi 11889 archive_cmds_need_lc=yes 11890 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11891 # -brtl affects multiple linker settings, -berok does not and is overridden later 11892 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11893 if test svr4 != "$with_aix_soname"; then 11894 # This is similar to how AIX traditionally builds its shared libraries. 11895 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11896 fi 11897 if test aix != "$with_aix_soname"; then 11898 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11899 else 11900 # used by -dlpreopen to get the symbols 11901 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11902 fi 11903 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11904 fi 11905 fi 11906 ;; 11907 11908 amigaos*) 11909 case $host_cpu in 11910 powerpc) 11911 # see comment about AmigaOS4 .so support 11912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11913 archive_expsym_cmds='' 11914 ;; 11915 m68k) 11916 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)' 11917 hardcode_libdir_flag_spec='-L$libdir' 11918 hardcode_minus_L=yes 11919 ;; 11920 esac 11921 ;; 11922 11923 bsdi[45]*) 11924 export_dynamic_flag_spec=-rdynamic 11925 ;; 11926 11927 cygwin* | mingw* | pw32* | cegcc*) 11928 # When not using gcc, we currently assume that we are using 11929 # Microsoft Visual C++. 11930 # hardcode_libdir_flag_spec is actually meaningless, as there is 11931 # no search path for DLLs. 11932 case $cc_basename in 11933 cl*) 11934 # Native MSVC 11935 hardcode_libdir_flag_spec=' ' 11936 allow_undefined_flag=unsupported 11937 always_export_symbols=yes 11938 file_list_spec='@' 11939 # Tell ltmain to make .lib files, not .a files. 11940 libext=lib 11941 # Tell ltmain to make .dll files, not .so files. 11942 shrext_cmds=.dll 11943 # FIXME: Setting linknames here is a bad hack. 11944 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11945 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11946 cp "$export_symbols" "$output_objdir/$soname.def"; 11947 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11948 else 11949 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11950 fi~ 11951 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11952 linknames=' 11953 # The linker will not automatically build a static lib if we build a DLL. 11954 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11955 enable_shared_with_static_runtimes=yes 11956 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11958 # Don't use ranlib 11959 old_postinstall_cmds='chmod 644 $oldlib' 11960 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11961 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11962 case $lt_outputfile in 11963 *.exe|*.EXE) ;; 11964 *) 11965 lt_outputfile=$lt_outputfile.exe 11966 lt_tool_outputfile=$lt_tool_outputfile.exe 11967 ;; 11968 esac~ 11969 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11970 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11971 $RM "$lt_outputfile.manifest"; 11972 fi' 11973 ;; 11974 *) 11975 # Assume MSVC wrapper 11976 hardcode_libdir_flag_spec=' ' 11977 allow_undefined_flag=unsupported 11978 # Tell ltmain to make .lib files, not .a files. 11979 libext=lib 11980 # Tell ltmain to make .dll files, not .so files. 11981 shrext_cmds=.dll 11982 # FIXME: Setting linknames here is a bad hack. 11983 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11984 # The linker will automatically build a .lib file if we build a DLL. 11985 old_archive_from_new_cmds='true' 11986 # FIXME: Should let the user specify the lib program. 11987 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11988 enable_shared_with_static_runtimes=yes 11989 ;; 11990 esac 11991 ;; 11992 11993 darwin* | rhapsody*) 11994 11995 11996 archive_cmds_need_lc=no 11997 hardcode_direct=no 11998 hardcode_automatic=yes 11999 hardcode_shlibpath_var=unsupported 12000 if test yes = "$lt_cv_ld_force_load"; then 12001 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\"`' 12002 12003 else 12004 whole_archive_flag_spec='' 12005 fi 12006 link_all_deplibs=yes 12007 allow_undefined_flag=$_lt_dar_allow_undefined 12008 case $cc_basename in 12009 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12010 *) _lt_dar_can_shared=$GCC ;; 12011 esac 12012 if test yes = "$_lt_dar_can_shared"; then 12013 output_verbose_link_cmd=func_echo_all 12014 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12015 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12016 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" 12017 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" 12018 12019 else 12020 ld_shlibs=no 12021 fi 12022 12023 ;; 12024 12025 dgux*) 12026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12027 hardcode_libdir_flag_spec='-L$libdir' 12028 hardcode_shlibpath_var=no 12029 ;; 12030 12031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12032 # support. Future versions do this automatically, but an explicit c++rt0.o 12033 # does not break anything, and helps significantly (at the cost of a little 12034 # extra space). 12035 freebsd2.2*) 12036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12037 hardcode_libdir_flag_spec='-R$libdir' 12038 hardcode_direct=yes 12039 hardcode_shlibpath_var=no 12040 ;; 12041 12042 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12043 freebsd2.*) 12044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12045 hardcode_direct=yes 12046 hardcode_minus_L=yes 12047 hardcode_shlibpath_var=no 12048 ;; 12049 12050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12051 freebsd* | dragonfly*) 12052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12053 hardcode_libdir_flag_spec='-R$libdir' 12054 hardcode_direct=yes 12055 hardcode_shlibpath_var=no 12056 ;; 12057 12058 hpux9*) 12059 if test yes = "$GCC"; then 12060 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12061 else 12062 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12063 fi 12064 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12065 hardcode_libdir_separator=: 12066 hardcode_direct=yes 12067 12068 # hardcode_minus_L: Not really in the search PATH, 12069 # but as the default location of the library. 12070 hardcode_minus_L=yes 12071 export_dynamic_flag_spec='$wl-E' 12072 ;; 12073 12074 hpux10*) 12075 if test yes,no = "$GCC,$with_gnu_ld"; then 12076 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12077 else 12078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12079 fi 12080 if test no = "$with_gnu_ld"; then 12081 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12082 hardcode_libdir_separator=: 12083 hardcode_direct=yes 12084 hardcode_direct_absolute=yes 12085 export_dynamic_flag_spec='$wl-E' 12086 # hardcode_minus_L: Not really in the search PATH, 12087 # but as the default location of the library. 12088 hardcode_minus_L=yes 12089 fi 12090 ;; 12091 12092 hpux11*) 12093 if test yes,no = "$GCC,$with_gnu_ld"; then 12094 case $host_cpu in 12095 hppa*64*) 12096 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12097 ;; 12098 ia64*) 12099 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12100 ;; 12101 *) 12102 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12103 ;; 12104 esac 12105 else 12106 case $host_cpu in 12107 hppa*64*) 12108 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12109 ;; 12110 ia64*) 12111 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12112 ;; 12113 *) 12114 12115 # Older versions of the 11.00 compiler do not understand -b yet 12116 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12118printf %s "checking if $CC understands -b... " >&6; } 12119if test ${lt_cv_prog_compiler__b+y} 12120then : 12121 printf %s "(cached) " >&6 12122else $as_nop 12123 lt_cv_prog_compiler__b=no 12124 save_LDFLAGS=$LDFLAGS 12125 LDFLAGS="$LDFLAGS -b" 12126 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12128 # The linker can only warn and ignore the option if not recognized 12129 # So say no if there are warnings 12130 if test -s conftest.err; then 12131 # Append any errors to the config.log. 12132 cat conftest.err 1>&5 12133 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12135 if diff conftest.exp conftest.er2 >/dev/null; then 12136 lt_cv_prog_compiler__b=yes 12137 fi 12138 else 12139 lt_cv_prog_compiler__b=yes 12140 fi 12141 fi 12142 $RM -r conftest* 12143 LDFLAGS=$save_LDFLAGS 12144 12145fi 12146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12147printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 12148 12149if test yes = "$lt_cv_prog_compiler__b"; then 12150 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12151else 12152 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12153fi 12154 12155 ;; 12156 esac 12157 fi 12158 if test no = "$with_gnu_ld"; then 12159 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12160 hardcode_libdir_separator=: 12161 12162 case $host_cpu in 12163 hppa*64*|ia64*) 12164 hardcode_direct=no 12165 hardcode_shlibpath_var=no 12166 ;; 12167 *) 12168 hardcode_direct=yes 12169 hardcode_direct_absolute=yes 12170 export_dynamic_flag_spec='$wl-E' 12171 12172 # hardcode_minus_L: Not really in the search PATH, 12173 # but as the default location of the library. 12174 hardcode_minus_L=yes 12175 ;; 12176 esac 12177 fi 12178 ;; 12179 12180 irix5* | irix6* | nonstopux*) 12181 if test yes = "$GCC"; then 12182 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' 12183 # Try to use the -exported_symbol ld option, if it does not 12184 # work, assume that -exports_file does not work either and 12185 # implicitly export all symbols. 12186 # This should be the same for all languages, so no per-tag cache variable. 12187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12188printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12189if test ${lt_cv_irix_exported_symbol+y} 12190then : 12191 printf %s "(cached) " >&6 12192else $as_nop 12193 save_LDFLAGS=$LDFLAGS 12194 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12196/* end confdefs.h. */ 12197int foo (void) { return 0; } 12198_ACEOF 12199if ac_fn_c_try_link "$LINENO" 12200then : 12201 lt_cv_irix_exported_symbol=yes 12202else $as_nop 12203 lt_cv_irix_exported_symbol=no 12204fi 12205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12206 conftest$ac_exeext conftest.$ac_ext 12207 LDFLAGS=$save_LDFLAGS 12208fi 12209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12210printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 12211 if test yes = "$lt_cv_irix_exported_symbol"; then 12212 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' 12213 fi 12214 else 12215 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' 12216 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' 12217 fi 12218 archive_cmds_need_lc='no' 12219 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12220 hardcode_libdir_separator=: 12221 inherit_rpath=yes 12222 link_all_deplibs=yes 12223 ;; 12224 12225 linux*) 12226 case $cc_basename in 12227 tcc*) 12228 # Fabrice Bellard et al's Tiny C Compiler 12229 ld_shlibs=yes 12230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12231 ;; 12232 esac 12233 ;; 12234 12235 netbsd*) 12236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12238 else 12239 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12240 fi 12241 hardcode_libdir_flag_spec='-R$libdir' 12242 hardcode_direct=yes 12243 hardcode_shlibpath_var=no 12244 ;; 12245 12246 newsos6) 12247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12248 hardcode_direct=yes 12249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12250 hardcode_libdir_separator=: 12251 hardcode_shlibpath_var=no 12252 ;; 12253 12254 *nto* | *qnx*) 12255 ;; 12256 12257 openbsd* | bitrig*) 12258 if test -f /usr/libexec/ld.so; then 12259 hardcode_direct=yes 12260 hardcode_shlibpath_var=no 12261 hardcode_direct_absolute=yes 12262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12264 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12265 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12266 export_dynamic_flag_spec='$wl-E' 12267 else 12268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12269 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12270 fi 12271 else 12272 ld_shlibs=no 12273 fi 12274 ;; 12275 12276 os2*) 12277 hardcode_libdir_flag_spec='-L$libdir' 12278 hardcode_minus_L=yes 12279 allow_undefined_flag=unsupported 12280 shrext_cmds=.dll 12281 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12282 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12283 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12284 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12285 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12286 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12287 emximp -o $lib $output_objdir/$libname.def' 12288 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12289 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12290 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12291 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12292 prefix_cmds="$SED"~ 12293 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12294 prefix_cmds="$prefix_cmds -e 1d"; 12295 fi~ 12296 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12297 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12299 emximp -o $lib $output_objdir/$libname.def' 12300 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12301 enable_shared_with_static_runtimes=yes 12302 ;; 12303 12304 osf3*) 12305 if test yes = "$GCC"; then 12306 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12307 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' 12308 else 12309 allow_undefined_flag=' -expect_unresolved \*' 12310 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' 12311 fi 12312 archive_cmds_need_lc='no' 12313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12314 hardcode_libdir_separator=: 12315 ;; 12316 12317 osf4* | osf5*) # as osf3* with the addition of -msym flag 12318 if test yes = "$GCC"; then 12319 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12320 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' 12321 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12322 else 12323 allow_undefined_flag=' -expect_unresolved \*' 12324 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' 12325 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~ 12326 $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' 12327 12328 # Both c and cxx compiler support -rpath directly 12329 hardcode_libdir_flag_spec='-rpath $libdir' 12330 fi 12331 archive_cmds_need_lc='no' 12332 hardcode_libdir_separator=: 12333 ;; 12334 12335 solaris*) 12336 no_undefined_flag=' -z defs' 12337 if test yes = "$GCC"; then 12338 wlarc='$wl' 12339 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12341 $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' 12342 else 12343 case `$CC -V 2>&1` in 12344 *"Compilers 5.0"*) 12345 wlarc='' 12346 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12348 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12349 ;; 12350 *) 12351 wlarc='$wl' 12352 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12354 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12355 ;; 12356 esac 12357 fi 12358 hardcode_libdir_flag_spec='-R$libdir' 12359 hardcode_shlibpath_var=no 12360 case $host_os in 12361 solaris2.[0-5] | solaris2.[0-5].*) ;; 12362 *) 12363 # The compiler driver will combine and reorder linker options, 12364 # but understands '-z linker_flag'. GCC discards it without '$wl', 12365 # but is careful enough not to reorder. 12366 # Supported since Solaris 2.6 (maybe 2.5.1?) 12367 if test yes = "$GCC"; then 12368 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12369 else 12370 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12371 fi 12372 ;; 12373 esac 12374 link_all_deplibs=yes 12375 ;; 12376 12377 sunos4*) 12378 if test sequent = "$host_vendor"; then 12379 # Use $CC to link under sequent, because it throws in some extra .o 12380 # files that make .init and .fini sections work. 12381 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12382 else 12383 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12384 fi 12385 hardcode_libdir_flag_spec='-L$libdir' 12386 hardcode_direct=yes 12387 hardcode_minus_L=yes 12388 hardcode_shlibpath_var=no 12389 ;; 12390 12391 sysv4) 12392 case $host_vendor in 12393 sni) 12394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12395 hardcode_direct=yes # is this really true??? 12396 ;; 12397 siemens) 12398 ## LD is ld it makes a PLAMLIB 12399 ## CC just makes a GrossModule. 12400 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12401 reload_cmds='$CC -r -o $output$reload_objs' 12402 hardcode_direct=no 12403 ;; 12404 motorola) 12405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12406 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12407 ;; 12408 esac 12409 runpath_var='LD_RUN_PATH' 12410 hardcode_shlibpath_var=no 12411 ;; 12412 12413 sysv4.3*) 12414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12415 hardcode_shlibpath_var=no 12416 export_dynamic_flag_spec='-Bexport' 12417 ;; 12418 12419 sysv4*MP*) 12420 if test -d /usr/nec; then 12421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12422 hardcode_shlibpath_var=no 12423 runpath_var=LD_RUN_PATH 12424 hardcode_runpath_var=yes 12425 ld_shlibs=yes 12426 fi 12427 ;; 12428 12429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12430 no_undefined_flag='$wl-z,text' 12431 archive_cmds_need_lc=no 12432 hardcode_shlibpath_var=no 12433 runpath_var='LD_RUN_PATH' 12434 12435 if test yes = "$GCC"; then 12436 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12437 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12438 else 12439 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12440 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12441 fi 12442 ;; 12443 12444 sysv5* | sco3.2v5* | sco5v6*) 12445 # Note: We CANNOT use -z defs as we might desire, because we do not 12446 # link with -lc, and that would cause any symbols used from libc to 12447 # always be unresolved, which means just about no library would 12448 # ever link correctly. If we're not using GNU ld we use -z text 12449 # though, which does catch some bad symbols but isn't as heavy-handed 12450 # as -z defs. 12451 no_undefined_flag='$wl-z,text' 12452 allow_undefined_flag='$wl-z,nodefs' 12453 archive_cmds_need_lc=no 12454 hardcode_shlibpath_var=no 12455 hardcode_libdir_flag_spec='$wl-R,$libdir' 12456 hardcode_libdir_separator=':' 12457 link_all_deplibs=yes 12458 export_dynamic_flag_spec='$wl-Bexport' 12459 runpath_var='LD_RUN_PATH' 12460 12461 if test yes = "$GCC"; then 12462 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12463 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12464 else 12465 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12466 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12467 fi 12468 ;; 12469 12470 uts4*) 12471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12472 hardcode_libdir_flag_spec='-L$libdir' 12473 hardcode_shlibpath_var=no 12474 ;; 12475 12476 *) 12477 ld_shlibs=no 12478 ;; 12479 esac 12480 12481 if test sni = "$host_vendor"; then 12482 case $host in 12483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12484 export_dynamic_flag_spec='$wl-Blargedynsym' 12485 ;; 12486 esac 12487 fi 12488 fi 12489 12490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12491printf "%s\n" "$ld_shlibs" >&6; } 12492test no = "$ld_shlibs" && can_build_shared=no 12493 12494with_gnu_ld=$with_gnu_ld 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510# 12511# Do we need to explicitly link libc? 12512# 12513case "x$archive_cmds_need_lc" in 12514x|xyes) 12515 # Assume -lc should be added 12516 archive_cmds_need_lc=yes 12517 12518 if test yes,yes = "$GCC,$enable_shared"; then 12519 case $archive_cmds in 12520 *'~'*) 12521 # FIXME: we may have to deal with multi-command sequences. 12522 ;; 12523 '$CC '*) 12524 # Test whether the compiler implicitly links with -lc since on some 12525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12526 # to ld, don't add -lc before -lgcc. 12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12528printf %s "checking whether -lc should be explicitly linked in... " >&6; } 12529if test ${lt_cv_archive_cmds_need_lc+y} 12530then : 12531 printf %s "(cached) " >&6 12532else $as_nop 12533 $RM conftest* 12534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12535 12536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12537 (eval $ac_compile) 2>&5 12538 ac_status=$? 12539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12540 test $ac_status = 0; } 2>conftest.err; then 12541 soname=conftest 12542 lib=conftest 12543 libobjs=conftest.$ac_objext 12544 deplibs= 12545 wl=$lt_prog_compiler_wl 12546 pic_flag=$lt_prog_compiler_pic 12547 compiler_flags=-v 12548 linker_flags=-v 12549 verstring= 12550 output_objdir=. 12551 libname=conftest 12552 lt_save_allow_undefined_flag=$allow_undefined_flag 12553 allow_undefined_flag= 12554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12555 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12556 ac_status=$? 12557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12558 test $ac_status = 0; } 12559 then 12560 lt_cv_archive_cmds_need_lc=no 12561 else 12562 lt_cv_archive_cmds_need_lc=yes 12563 fi 12564 allow_undefined_flag=$lt_save_allow_undefined_flag 12565 else 12566 cat conftest.err 1>&5 12567 fi 12568 $RM conftest* 12569 12570fi 12571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12572printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 12573 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12574 ;; 12575 esac 12576 fi 12577 ;; 12578esac 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12732printf %s "checking dynamic linker characteristics... " >&6; } 12733 12734if test yes = "$GCC"; then 12735 case $host_os in 12736 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12737 *) lt_awk_arg='/^libraries:/' ;; 12738 esac 12739 case $host_os in 12740 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12741 *) lt_sed_strip_eq='s|=/|/|g' ;; 12742 esac 12743 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12744 case $lt_search_path_spec in 12745 *\;*) 12746 # if the path contains ";" then we assume it to be the separator 12747 # otherwise default to the standard path separator (i.e. ":") - it is 12748 # assumed that no part of a normal pathname contains ";" but that should 12749 # okay in the real world where ";" in dirpaths is itself problematic. 12750 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12751 ;; 12752 *) 12753 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12754 ;; 12755 esac 12756 # Ok, now we have the path, separated by spaces, we can step through it 12757 # and add multilib dir if necessary... 12758 lt_tmp_lt_search_path_spec= 12759 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12760 # ...but if some path component already ends with the multilib dir we assume 12761 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12762 case "$lt_multi_os_dir; $lt_search_path_spec " in 12763 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12764 lt_multi_os_dir= 12765 ;; 12766 esac 12767 for lt_sys_path in $lt_search_path_spec; do 12768 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12770 elif test -n "$lt_multi_os_dir"; then 12771 test -d "$lt_sys_path" && \ 12772 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12773 fi 12774 done 12775 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12776BEGIN {RS = " "; FS = "/|\n";} { 12777 lt_foo = ""; 12778 lt_count = 0; 12779 for (lt_i = NF; lt_i > 0; lt_i--) { 12780 if ($lt_i != "" && $lt_i != ".") { 12781 if ($lt_i == "..") { 12782 lt_count++; 12783 } else { 12784 if (lt_count == 0) { 12785 lt_foo = "/" $lt_i lt_foo; 12786 } else { 12787 lt_count--; 12788 } 12789 } 12790 } 12791 } 12792 if (lt_foo != "") { lt_freq[lt_foo]++; } 12793 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12794}'` 12795 # AWK program above erroneously prepends '/' to C:/dos/paths 12796 # for these hosts. 12797 case $host_os in 12798 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12799 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12800 esac 12801 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12802else 12803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12804fi 12805library_names_spec= 12806libname_spec='lib$name' 12807soname_spec= 12808shrext_cmds=.so 12809postinstall_cmds= 12810postuninstall_cmds= 12811finish_cmds= 12812finish_eval= 12813shlibpath_var= 12814shlibpath_overrides_runpath=unknown 12815version_type=none 12816dynamic_linker="$host_os ld.so" 12817sys_lib_dlsearch_path_spec="/lib /usr/lib" 12818need_lib_prefix=unknown 12819hardcode_into_libs=no 12820 12821# when you set need_version to no, make sure it does not cause -set_version 12822# flags to be left without arguments 12823need_version=unknown 12824 12825 12826 12827case $host_os in 12828aix3*) 12829 version_type=linux # correct to gnu/linux during the next big refactor 12830 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12831 shlibpath_var=LIBPATH 12832 12833 # AIX 3 has no versioning support, so we append a major version to the name. 12834 soname_spec='$libname$release$shared_ext$major' 12835 ;; 12836 12837aix[4-9]*) 12838 version_type=linux # correct to gnu/linux during the next big refactor 12839 need_lib_prefix=no 12840 need_version=no 12841 hardcode_into_libs=yes 12842 if test ia64 = "$host_cpu"; then 12843 # AIX 5 supports IA64 12844 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12845 shlibpath_var=LD_LIBRARY_PATH 12846 else 12847 # With GCC up to 2.95.x, collect2 would create an import file 12848 # for dependence libraries. The import file would start with 12849 # the line '#! .'. This would cause the generated library to 12850 # depend on '.', always an invalid library. This was fixed in 12851 # development snapshots of GCC prior to 3.0. 12852 case $host_os in 12853 aix4 | aix4.[01] | aix4.[01].*) 12854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12855 echo ' yes ' 12856 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12857 : 12858 else 12859 can_build_shared=no 12860 fi 12861 ;; 12862 esac 12863 # Using Import Files as archive members, it is possible to support 12864 # filename-based versioning of shared library archives on AIX. While 12865 # this would work for both with and without runtime linking, it will 12866 # prevent static linking of such archives. So we do filename-based 12867 # shared library versioning with .so extension only, which is used 12868 # when both runtime linking and shared linking is enabled. 12869 # Unfortunately, runtime linking may impact performance, so we do 12870 # not want this to be the default eventually. Also, we use the 12871 # versioned .so libs for executables only if there is the -brtl 12872 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12873 # To allow for filename-based versioning support, we need to create 12874 # libNAME.so.V as an archive file, containing: 12875 # *) an Import File, referring to the versioned filename of the 12876 # archive as well as the shared archive member, telling the 12877 # bitwidth (32 or 64) of that shared object, and providing the 12878 # list of exported symbols of that shared object, eventually 12879 # decorated with the 'weak' keyword 12880 # *) the shared object with the F_LOADONLY flag set, to really avoid 12881 # it being seen by the linker. 12882 # At run time we better use the real file rather than another symlink, 12883 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12884 12885 case $with_aix_soname,$aix_use_runtimelinking in 12886 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12887 # soname into executable. Probably we can add versioning support to 12888 # collect2, so additional links can be useful in future. 12889 aix,yes) # traditional libtool 12890 dynamic_linker='AIX unversionable lib.so' 12891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12892 # instead of lib<name>.a to let people know that these are not 12893 # typical AIX shared libraries. 12894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12895 ;; 12896 aix,no) # traditional AIX only 12897 dynamic_linker='AIX lib.a(lib.so.V)' 12898 # We preserve .a as extension for shared libraries through AIX4.2 12899 # and later when we are not doing run time linking. 12900 library_names_spec='$libname$release.a $libname.a' 12901 soname_spec='$libname$release$shared_ext$major' 12902 ;; 12903 svr4,*) # full svr4 only 12904 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12905 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12906 # We do not specify a path in Import Files, so LIBPATH fires. 12907 shlibpath_overrides_runpath=yes 12908 ;; 12909 *,yes) # both, prefer svr4 12910 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12911 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12912 # unpreferred sharedlib libNAME.a needs extra handling 12913 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12914 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12915 # We do not specify a path in Import Files, so LIBPATH fires. 12916 shlibpath_overrides_runpath=yes 12917 ;; 12918 *,no) # both, prefer aix 12919 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12920 library_names_spec='$libname$release.a $libname.a' 12921 soname_spec='$libname$release$shared_ext$major' 12922 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12923 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12924 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12925 ;; 12926 esac 12927 shlibpath_var=LIBPATH 12928 fi 12929 ;; 12930 12931amigaos*) 12932 case $host_cpu in 12933 powerpc) 12934 # Since July 2007 AmigaOS4 officially supports .so libraries. 12935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12937 ;; 12938 m68k) 12939 library_names_spec='$libname.ixlibrary $libname.a' 12940 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12941 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12942 ;; 12943 esac 12944 ;; 12945 12946beos*) 12947 library_names_spec='$libname$shared_ext' 12948 dynamic_linker="$host_os ld.so" 12949 shlibpath_var=LIBRARY_PATH 12950 ;; 12951 12952bsdi[45]*) 12953 version_type=linux # correct to gnu/linux during the next big refactor 12954 need_version=no 12955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12956 soname_spec='$libname$release$shared_ext$major' 12957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12958 shlibpath_var=LD_LIBRARY_PATH 12959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12961 # the default ld.so.conf also contains /usr/contrib/lib and 12962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12963 # libtool to hard-code these into programs 12964 ;; 12965 12966cygwin* | mingw* | pw32* | cegcc*) 12967 version_type=windows 12968 shrext_cmds=.dll 12969 need_version=no 12970 need_lib_prefix=no 12971 12972 case $GCC,$cc_basename in 12973 yes,*) 12974 # gcc 12975 library_names_spec='$libname.dll.a' 12976 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12977 postinstall_cmds='base_file=`basename \$file`~ 12978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12979 dldir=$destdir/`dirname \$dlpath`~ 12980 test -d \$dldir || mkdir -p \$dldir~ 12981 $install_prog $dir/$dlname \$dldir/$dlname~ 12982 chmod a+x \$dldir/$dlname~ 12983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12984 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12985 fi' 12986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12987 dlpath=$dir/\$dldll~ 12988 $RM \$dlpath' 12989 shlibpath_overrides_runpath=yes 12990 12991 case $host_os in 12992 cygwin*) 12993 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12994 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12995 12996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12997 ;; 12998 mingw* | cegcc*) 12999 # MinGW DLLs use traditional 'lib' prefix 13000 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13001 ;; 13002 pw32*) 13003 # pw32 DLLs use 'pw' prefix rather than 'lib' 13004 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13005 ;; 13006 esac 13007 dynamic_linker='Win32 ld.exe' 13008 ;; 13009 13010 *,cl*) 13011 # Native MSVC 13012 libname_spec='$name' 13013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13014 library_names_spec='$libname.dll.lib' 13015 13016 case $build_os in 13017 mingw*) 13018 sys_lib_search_path_spec= 13019 lt_save_ifs=$IFS 13020 IFS=';' 13021 for lt_path in $LIB 13022 do 13023 IFS=$lt_save_ifs 13024 # Let DOS variable expansion print the short 8.3 style file name. 13025 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13026 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13027 done 13028 IFS=$lt_save_ifs 13029 # Convert to MSYS style. 13030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13031 ;; 13032 cygwin*) 13033 # Convert to unix form, then to dos form, then back to unix form 13034 # but this time dos style (no spaces!) so that the unix form looks 13035 # like /cygdrive/c/PROGRA~1:/cygdr... 13036 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13037 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13038 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13039 ;; 13040 *) 13041 sys_lib_search_path_spec=$LIB 13042 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13043 # It is most probably a Windows format PATH. 13044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13045 else 13046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13047 fi 13048 # FIXME: find the short name or the path components, as spaces are 13049 # common. (e.g. "Program Files" -> "PROGRA~1") 13050 ;; 13051 esac 13052 13053 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13054 postinstall_cmds='base_file=`basename \$file`~ 13055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13056 dldir=$destdir/`dirname \$dlpath`~ 13057 test -d \$dldir || mkdir -p \$dldir~ 13058 $install_prog $dir/$dlname \$dldir/$dlname' 13059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13060 dlpath=$dir/\$dldll~ 13061 $RM \$dlpath' 13062 shlibpath_overrides_runpath=yes 13063 dynamic_linker='Win32 link.exe' 13064 ;; 13065 13066 *) 13067 # Assume MSVC wrapper 13068 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13069 dynamic_linker='Win32 ld.exe' 13070 ;; 13071 esac 13072 # FIXME: first we should search . and the directory the executable is in 13073 shlibpath_var=PATH 13074 ;; 13075 13076darwin* | rhapsody*) 13077 dynamic_linker="$host_os dyld" 13078 version_type=darwin 13079 need_lib_prefix=no 13080 need_version=no 13081 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13082 soname_spec='$libname$release$major$shared_ext' 13083 shlibpath_overrides_runpath=yes 13084 shlibpath_var=DYLD_LIBRARY_PATH 13085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13086 13087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13089 ;; 13090 13091dgux*) 13092 version_type=linux # correct to gnu/linux during the next big refactor 13093 need_lib_prefix=no 13094 need_version=no 13095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13096 soname_spec='$libname$release$shared_ext$major' 13097 shlibpath_var=LD_LIBRARY_PATH 13098 ;; 13099 13100freebsd* | dragonfly*) 13101 # DragonFly does not have aout. When/if they implement a new 13102 # versioning mechanism, adjust this. 13103 if test -x /usr/bin/objformat; then 13104 objformat=`/usr/bin/objformat` 13105 else 13106 case $host_os in 13107 freebsd[23].*) objformat=aout ;; 13108 *) objformat=elf ;; 13109 esac 13110 fi 13111 version_type=freebsd-$objformat 13112 case $version_type in 13113 freebsd-elf*) 13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13115 soname_spec='$libname$release$shared_ext$major' 13116 need_version=no 13117 need_lib_prefix=no 13118 ;; 13119 freebsd-*) 13120 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13121 need_version=yes 13122 ;; 13123 esac 13124 shlibpath_var=LD_LIBRARY_PATH 13125 case $host_os in 13126 freebsd2.*) 13127 shlibpath_overrides_runpath=yes 13128 ;; 13129 freebsd3.[01]* | freebsdelf3.[01]*) 13130 shlibpath_overrides_runpath=yes 13131 hardcode_into_libs=yes 13132 ;; 13133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13135 shlibpath_overrides_runpath=no 13136 hardcode_into_libs=yes 13137 ;; 13138 *) # from 4.6 on, and DragonFly 13139 shlibpath_overrides_runpath=yes 13140 hardcode_into_libs=yes 13141 ;; 13142 esac 13143 ;; 13144 13145haiku*) 13146 version_type=linux # correct to gnu/linux during the next big refactor 13147 need_lib_prefix=no 13148 need_version=no 13149 dynamic_linker="$host_os runtime_loader" 13150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13151 soname_spec='$libname$release$shared_ext$major' 13152 shlibpath_var=LIBRARY_PATH 13153 shlibpath_overrides_runpath=no 13154 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13155 hardcode_into_libs=yes 13156 ;; 13157 13158hpux9* | hpux10* | hpux11*) 13159 # Give a soname corresponding to the major version so that dld.sl refuses to 13160 # link against other versions. 13161 version_type=sunos 13162 need_lib_prefix=no 13163 need_version=no 13164 case $host_cpu in 13165 ia64*) 13166 shrext_cmds='.so' 13167 hardcode_into_libs=yes 13168 dynamic_linker="$host_os dld.so" 13169 shlibpath_var=LD_LIBRARY_PATH 13170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13172 soname_spec='$libname$release$shared_ext$major' 13173 if test 32 = "$HPUX_IA64_MODE"; then 13174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13175 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13176 else 13177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13178 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13179 fi 13180 ;; 13181 hppa*64*) 13182 shrext_cmds='.sl' 13183 hardcode_into_libs=yes 13184 dynamic_linker="$host_os dld.sl" 13185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13188 soname_spec='$libname$release$shared_ext$major' 13189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13191 ;; 13192 *) 13193 shrext_cmds='.sl' 13194 dynamic_linker="$host_os dld.sl" 13195 shlibpath_var=SHLIB_PATH 13196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13198 soname_spec='$libname$release$shared_ext$major' 13199 ;; 13200 esac 13201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13202 postinstall_cmds='chmod 555 $lib' 13203 # or fails outright, so override atomically: 13204 install_override_mode=555 13205 ;; 13206 13207interix[3-9]*) 13208 version_type=linux # correct to gnu/linux during the next big refactor 13209 need_lib_prefix=no 13210 need_version=no 13211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13212 soname_spec='$libname$release$shared_ext$major' 13213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13214 shlibpath_var=LD_LIBRARY_PATH 13215 shlibpath_overrides_runpath=no 13216 hardcode_into_libs=yes 13217 ;; 13218 13219irix5* | irix6* | nonstopux*) 13220 case $host_os in 13221 nonstopux*) version_type=nonstopux ;; 13222 *) 13223 if test yes = "$lt_cv_prog_gnu_ld"; then 13224 version_type=linux # correct to gnu/linux during the next big refactor 13225 else 13226 version_type=irix 13227 fi ;; 13228 esac 13229 need_lib_prefix=no 13230 need_version=no 13231 soname_spec='$libname$release$shared_ext$major' 13232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13233 case $host_os in 13234 irix5* | nonstopux*) 13235 libsuff= shlibsuff= 13236 ;; 13237 *) 13238 case $LD in # libtool.m4 will add one of these switches to LD 13239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13240 libsuff= shlibsuff= libmagic=32-bit;; 13241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13242 libsuff=32 shlibsuff=N32 libmagic=N32;; 13243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13244 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13245 *) libsuff= shlibsuff= libmagic=never-match;; 13246 esac 13247 ;; 13248 esac 13249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13250 shlibpath_overrides_runpath=no 13251 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13252 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13253 hardcode_into_libs=yes 13254 ;; 13255 13256# No shared lib support for Linux oldld, aout, or coff. 13257linux*oldld* | linux*aout* | linux*coff*) 13258 dynamic_linker=no 13259 ;; 13260 13261linux*android*) 13262 version_type=none # Android doesn't support versioned libraries. 13263 need_lib_prefix=no 13264 need_version=no 13265 library_names_spec='$libname$release$shared_ext' 13266 soname_spec='$libname$release$shared_ext' 13267 finish_cmds= 13268 shlibpath_var=LD_LIBRARY_PATH 13269 shlibpath_overrides_runpath=yes 13270 13271 # This implies no fast_install, which is unacceptable. 13272 # Some rework will be needed to allow for fast_install 13273 # before this can be enabled. 13274 hardcode_into_libs=yes 13275 13276 dynamic_linker='Android linker' 13277 # Don't embed -rpath directories since the linker doesn't support them. 13278 hardcode_libdir_flag_spec='-L$libdir' 13279 ;; 13280 13281# This must be glibc/ELF. 13282linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13283 version_type=linux # correct to gnu/linux during the next big refactor 13284 need_lib_prefix=no 13285 need_version=no 13286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13287 soname_spec='$libname$release$shared_ext$major' 13288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13289 shlibpath_var=LD_LIBRARY_PATH 13290 shlibpath_overrides_runpath=no 13291 13292 # Some binutils ld are patched to set DT_RUNPATH 13293 if test ${lt_cv_shlibpath_overrides_runpath+y} 13294then : 13295 printf %s "(cached) " >&6 13296else $as_nop 13297 lt_cv_shlibpath_overrides_runpath=no 13298 save_LDFLAGS=$LDFLAGS 13299 save_libdir=$libdir 13300 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13301 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304 13305int 13306main (void) 13307{ 13308 13309 ; 13310 return 0; 13311} 13312_ACEOF 13313if ac_fn_c_try_link "$LINENO" 13314then : 13315 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 13316then : 13317 lt_cv_shlibpath_overrides_runpath=yes 13318fi 13319fi 13320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13321 conftest$ac_exeext conftest.$ac_ext 13322 LDFLAGS=$save_LDFLAGS 13323 libdir=$save_libdir 13324 13325fi 13326 13327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13328 13329 # This implies no fast_install, which is unacceptable. 13330 # Some rework will be needed to allow for fast_install 13331 # before this can be enabled. 13332 hardcode_into_libs=yes 13333 13334 # Ideally, we could use ldconfig to report *all* directores which are 13335 # searched for libraries, however this is still not possible. Aside from not 13336 # being certain /sbin/ldconfig is available, command 13337 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13338 # even though it is searched at run-time. Try to do the best guess by 13339 # appending ld.so.conf contents (and includes) to the search path. 13340 if test -f /etc/ld.so.conf; then 13341 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' ' '` 13342 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13343 fi 13344 13345 # We used to test for /lib/ld.so.1 and disable shared libraries on 13346 # powerpc, because MkLinux only supported shared libraries with the 13347 # GNU dynamic linker. Since this was broken with cross compilers, 13348 # most powerpc-linux boxes support dynamic linking these days and 13349 # people can always --disable-shared, the test was removed, and we 13350 # assume the GNU/Linux dynamic linker is in use. 13351 dynamic_linker='GNU/Linux ld.so' 13352 ;; 13353 13354netbsd*) 13355 version_type=sunos 13356 need_lib_prefix=no 13357 need_version=no 13358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13359 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13361 dynamic_linker='NetBSD (a.out) ld.so' 13362 else 13363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13364 soname_spec='$libname$release$shared_ext$major' 13365 dynamic_linker='NetBSD ld.elf_so' 13366 fi 13367 shlibpath_var=LD_LIBRARY_PATH 13368 shlibpath_overrides_runpath=yes 13369 hardcode_into_libs=yes 13370 ;; 13371 13372newsos6) 13373 version_type=linux # correct to gnu/linux during the next big refactor 13374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13375 shlibpath_var=LD_LIBRARY_PATH 13376 shlibpath_overrides_runpath=yes 13377 ;; 13378 13379*nto* | *qnx*) 13380 version_type=qnx 13381 need_lib_prefix=no 13382 need_version=no 13383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13384 soname_spec='$libname$release$shared_ext$major' 13385 shlibpath_var=LD_LIBRARY_PATH 13386 shlibpath_overrides_runpath=no 13387 hardcode_into_libs=yes 13388 dynamic_linker='ldqnx.so' 13389 ;; 13390 13391openbsd* | bitrig*) 13392 version_type=sunos 13393 sys_lib_dlsearch_path_spec=/usr/lib 13394 need_lib_prefix=no 13395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13396 need_version=no 13397 else 13398 need_version=yes 13399 fi 13400 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13402 shlibpath_var=LD_LIBRARY_PATH 13403 shlibpath_overrides_runpath=yes 13404 ;; 13405 13406os2*) 13407 libname_spec='$name' 13408 version_type=windows 13409 shrext_cmds=.dll 13410 need_version=no 13411 need_lib_prefix=no 13412 # OS/2 can only load a DLL with a base name of 8 characters or less. 13413 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13414 v=$($ECHO $release$versuffix | tr -d .-); 13415 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13416 $ECHO $n$v`$shared_ext' 13417 library_names_spec='${libname}_dll.$libext' 13418 dynamic_linker='OS/2 ld.exe' 13419 shlibpath_var=BEGINLIBPATH 13420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13422 postinstall_cmds='base_file=`basename \$file`~ 13423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13424 dldir=$destdir/`dirname \$dlpath`~ 13425 test -d \$dldir || mkdir -p \$dldir~ 13426 $install_prog $dir/$dlname \$dldir/$dlname~ 13427 chmod a+x \$dldir/$dlname~ 13428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13430 fi' 13431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13432 dlpath=$dir/\$dldll~ 13433 $RM \$dlpath' 13434 ;; 13435 13436osf3* | osf4* | osf5*) 13437 version_type=osf 13438 need_lib_prefix=no 13439 need_version=no 13440 soname_spec='$libname$release$shared_ext$major' 13441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13442 shlibpath_var=LD_LIBRARY_PATH 13443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13445 ;; 13446 13447rdos*) 13448 dynamic_linker=no 13449 ;; 13450 13451solaris*) 13452 version_type=linux # correct to gnu/linux during the next big refactor 13453 need_lib_prefix=no 13454 need_version=no 13455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13456 soname_spec='$libname$release$shared_ext$major' 13457 shlibpath_var=LD_LIBRARY_PATH 13458 shlibpath_overrides_runpath=yes 13459 hardcode_into_libs=yes 13460 # ldd complains unless libraries are executable 13461 postinstall_cmds='chmod +x $lib' 13462 ;; 13463 13464sunos4*) 13465 version_type=sunos 13466 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13467 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13468 shlibpath_var=LD_LIBRARY_PATH 13469 shlibpath_overrides_runpath=yes 13470 if test yes = "$with_gnu_ld"; then 13471 need_lib_prefix=no 13472 fi 13473 need_version=yes 13474 ;; 13475 13476sysv4 | sysv4.3*) 13477 version_type=linux # correct to gnu/linux during the next big refactor 13478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13479 soname_spec='$libname$release$shared_ext$major' 13480 shlibpath_var=LD_LIBRARY_PATH 13481 case $host_vendor in 13482 sni) 13483 shlibpath_overrides_runpath=no 13484 need_lib_prefix=no 13485 runpath_var=LD_RUN_PATH 13486 ;; 13487 siemens) 13488 need_lib_prefix=no 13489 ;; 13490 motorola) 13491 need_lib_prefix=no 13492 need_version=no 13493 shlibpath_overrides_runpath=no 13494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13495 ;; 13496 esac 13497 ;; 13498 13499sysv4*MP*) 13500 if test -d /usr/nec; then 13501 version_type=linux # correct to gnu/linux during the next big refactor 13502 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13503 soname_spec='$libname$shared_ext.$major' 13504 shlibpath_var=LD_LIBRARY_PATH 13505 fi 13506 ;; 13507 13508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13509 version_type=sco 13510 need_lib_prefix=no 13511 need_version=no 13512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13513 soname_spec='$libname$release$shared_ext$major' 13514 shlibpath_var=LD_LIBRARY_PATH 13515 shlibpath_overrides_runpath=yes 13516 hardcode_into_libs=yes 13517 if test yes = "$with_gnu_ld"; then 13518 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13519 else 13520 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13521 case $host_os in 13522 sco3.2v5*) 13523 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13524 ;; 13525 esac 13526 fi 13527 sys_lib_dlsearch_path_spec='/usr/lib' 13528 ;; 13529 13530tpf*) 13531 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13532 version_type=linux # correct to gnu/linux during the next big refactor 13533 need_lib_prefix=no 13534 need_version=no 13535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13536 shlibpath_var=LD_LIBRARY_PATH 13537 shlibpath_overrides_runpath=no 13538 hardcode_into_libs=yes 13539 ;; 13540 13541uts4*) 13542 version_type=linux # correct to gnu/linux during the next big refactor 13543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13544 soname_spec='$libname$release$shared_ext$major' 13545 shlibpath_var=LD_LIBRARY_PATH 13546 ;; 13547 13548*) 13549 dynamic_linker=no 13550 ;; 13551esac 13552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13553printf "%s\n" "$dynamic_linker" >&6; } 13554test no = "$dynamic_linker" && can_build_shared=no 13555 13556variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13557if test yes = "$GCC"; then 13558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13559fi 13560 13561if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13562 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13563fi 13564 13565if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13566 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13567fi 13568 13569# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13570configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13571 13572# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13573func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13574 13575# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13576configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13675printf %s "checking how to hardcode library paths into programs... " >&6; } 13676hardcode_action= 13677if test -n "$hardcode_libdir_flag_spec" || 13678 test -n "$runpath_var" || 13679 test yes = "$hardcode_automatic"; then 13680 13681 # We can hardcode non-existent directories. 13682 if test no != "$hardcode_direct" && 13683 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13684 # have to relink, otherwise we might link with an installed library 13685 # when we should be linking with a yet-to-be-installed one 13686 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13687 test no != "$hardcode_minus_L"; then 13688 # Linking always hardcodes the temporary library directory. 13689 hardcode_action=relink 13690 else 13691 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13692 hardcode_action=immediate 13693 fi 13694else 13695 # We cannot hardcode anything, or else we can only hardcode existing 13696 # directories. 13697 hardcode_action=unsupported 13698fi 13699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13700printf "%s\n" "$hardcode_action" >&6; } 13701 13702if test relink = "$hardcode_action" || 13703 test yes = "$inherit_rpath"; then 13704 # Fast installation is not supported 13705 enable_fast_install=no 13706elif test yes = "$shlibpath_overrides_runpath" || 13707 test no = "$enable_shared"; then 13708 # Fast installation is not necessary 13709 enable_fast_install=needless 13710fi 13711 13712 13713 13714 13715 13716 13717 if test yes != "$enable_dlopen"; then 13718 enable_dlopen=unknown 13719 enable_dlopen_self=unknown 13720 enable_dlopen_self_static=unknown 13721else 13722 lt_cv_dlopen=no 13723 lt_cv_dlopen_libs= 13724 13725 case $host_os in 13726 beos*) 13727 lt_cv_dlopen=load_add_on 13728 lt_cv_dlopen_libs= 13729 lt_cv_dlopen_self=yes 13730 ;; 13731 13732 mingw* | pw32* | cegcc*) 13733 lt_cv_dlopen=LoadLibrary 13734 lt_cv_dlopen_libs= 13735 ;; 13736 13737 cygwin*) 13738 lt_cv_dlopen=dlopen 13739 lt_cv_dlopen_libs= 13740 ;; 13741 13742 darwin*) 13743 # if libdl is installed we need to link against it 13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13745printf %s "checking for dlopen in -ldl... " >&6; } 13746if test ${ac_cv_lib_dl_dlopen+y} 13747then : 13748 printf %s "(cached) " >&6 13749else $as_nop 13750 ac_check_lib_save_LIBS=$LIBS 13751LIBS="-ldl $LIBS" 13752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13753/* end confdefs.h. */ 13754 13755/* Override any GCC internal prototype to avoid an error. 13756 Use char because int might match the return type of a GCC 13757 builtin and then its argument prototype would still apply. */ 13758char dlopen (); 13759int 13760main (void) 13761{ 13762return dlopen (); 13763 ; 13764 return 0; 13765} 13766_ACEOF 13767if ac_fn_c_try_link "$LINENO" 13768then : 13769 ac_cv_lib_dl_dlopen=yes 13770else $as_nop 13771 ac_cv_lib_dl_dlopen=no 13772fi 13773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13774 conftest$ac_exeext conftest.$ac_ext 13775LIBS=$ac_check_lib_save_LIBS 13776fi 13777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13778printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13779if test "x$ac_cv_lib_dl_dlopen" = xyes 13780then : 13781 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13782else $as_nop 13783 13784 lt_cv_dlopen=dyld 13785 lt_cv_dlopen_libs= 13786 lt_cv_dlopen_self=yes 13787 13788fi 13789 13790 ;; 13791 13792 tpf*) 13793 # Don't try to run any link tests for TPF. We know it's impossible 13794 # because TPF is a cross-compiler, and we know how we open DSOs. 13795 lt_cv_dlopen=dlopen 13796 lt_cv_dlopen_libs= 13797 lt_cv_dlopen_self=no 13798 ;; 13799 13800 *) 13801 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13802if test "x$ac_cv_func_shl_load" = xyes 13803then : 13804 lt_cv_dlopen=shl_load 13805else $as_nop 13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13807printf %s "checking for shl_load in -ldld... " >&6; } 13808if test ${ac_cv_lib_dld_shl_load+y} 13809then : 13810 printf %s "(cached) " >&6 13811else $as_nop 13812 ac_check_lib_save_LIBS=$LIBS 13813LIBS="-ldld $LIBS" 13814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13815/* end confdefs.h. */ 13816 13817/* Override any GCC internal prototype to avoid an error. 13818 Use char because int might match the return type of a GCC 13819 builtin and then its argument prototype would still apply. */ 13820char shl_load (); 13821int 13822main (void) 13823{ 13824return shl_load (); 13825 ; 13826 return 0; 13827} 13828_ACEOF 13829if ac_fn_c_try_link "$LINENO" 13830then : 13831 ac_cv_lib_dld_shl_load=yes 13832else $as_nop 13833 ac_cv_lib_dld_shl_load=no 13834fi 13835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13836 conftest$ac_exeext conftest.$ac_ext 13837LIBS=$ac_check_lib_save_LIBS 13838fi 13839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13840printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13841if test "x$ac_cv_lib_dld_shl_load" = xyes 13842then : 13843 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13844else $as_nop 13845 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13846if test "x$ac_cv_func_dlopen" = xyes 13847then : 13848 lt_cv_dlopen=dlopen 13849else $as_nop 13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13851printf %s "checking for dlopen in -ldl... " >&6; } 13852if test ${ac_cv_lib_dl_dlopen+y} 13853then : 13854 printf %s "(cached) " >&6 13855else $as_nop 13856 ac_check_lib_save_LIBS=$LIBS 13857LIBS="-ldl $LIBS" 13858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859/* end confdefs.h. */ 13860 13861/* Override any GCC internal prototype to avoid an error. 13862 Use char because int might match the return type of a GCC 13863 builtin and then its argument prototype would still apply. */ 13864char dlopen (); 13865int 13866main (void) 13867{ 13868return dlopen (); 13869 ; 13870 return 0; 13871} 13872_ACEOF 13873if ac_fn_c_try_link "$LINENO" 13874then : 13875 ac_cv_lib_dl_dlopen=yes 13876else $as_nop 13877 ac_cv_lib_dl_dlopen=no 13878fi 13879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13880 conftest$ac_exeext conftest.$ac_ext 13881LIBS=$ac_check_lib_save_LIBS 13882fi 13883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13884printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13885if test "x$ac_cv_lib_dl_dlopen" = xyes 13886then : 13887 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13888else $as_nop 13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13890printf %s "checking for dlopen in -lsvld... " >&6; } 13891if test ${ac_cv_lib_svld_dlopen+y} 13892then : 13893 printf %s "(cached) " >&6 13894else $as_nop 13895 ac_check_lib_save_LIBS=$LIBS 13896LIBS="-lsvld $LIBS" 13897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13898/* end confdefs.h. */ 13899 13900/* Override any GCC internal prototype to avoid an error. 13901 Use char because int might match the return type of a GCC 13902 builtin and then its argument prototype would still apply. */ 13903char dlopen (); 13904int 13905main (void) 13906{ 13907return dlopen (); 13908 ; 13909 return 0; 13910} 13911_ACEOF 13912if ac_fn_c_try_link "$LINENO" 13913then : 13914 ac_cv_lib_svld_dlopen=yes 13915else $as_nop 13916 ac_cv_lib_svld_dlopen=no 13917fi 13918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13919 conftest$ac_exeext conftest.$ac_ext 13920LIBS=$ac_check_lib_save_LIBS 13921fi 13922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13923printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13924if test "x$ac_cv_lib_svld_dlopen" = xyes 13925then : 13926 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13927else $as_nop 13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13929printf %s "checking for dld_link in -ldld... " >&6; } 13930if test ${ac_cv_lib_dld_dld_link+y} 13931then : 13932 printf %s "(cached) " >&6 13933else $as_nop 13934 ac_check_lib_save_LIBS=$LIBS 13935LIBS="-ldld $LIBS" 13936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13937/* end confdefs.h. */ 13938 13939/* Override any GCC internal prototype to avoid an error. 13940 Use char because int might match the return type of a GCC 13941 builtin and then its argument prototype would still apply. */ 13942char dld_link (); 13943int 13944main (void) 13945{ 13946return dld_link (); 13947 ; 13948 return 0; 13949} 13950_ACEOF 13951if ac_fn_c_try_link "$LINENO" 13952then : 13953 ac_cv_lib_dld_dld_link=yes 13954else $as_nop 13955 ac_cv_lib_dld_dld_link=no 13956fi 13957rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13958 conftest$ac_exeext conftest.$ac_ext 13959LIBS=$ac_check_lib_save_LIBS 13960fi 13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13962printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13963if test "x$ac_cv_lib_dld_dld_link" = xyes 13964then : 13965 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13966fi 13967 13968 13969fi 13970 13971 13972fi 13973 13974 13975fi 13976 13977 13978fi 13979 13980 13981fi 13982 13983 ;; 13984 esac 13985 13986 if test no = "$lt_cv_dlopen"; then 13987 enable_dlopen=no 13988 else 13989 enable_dlopen=yes 13990 fi 13991 13992 case $lt_cv_dlopen in 13993 dlopen) 13994 save_CPPFLAGS=$CPPFLAGS 13995 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13996 13997 save_LDFLAGS=$LDFLAGS 13998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13999 14000 save_LIBS=$LIBS 14001 LIBS="$lt_cv_dlopen_libs $LIBS" 14002 14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14004printf %s "checking whether a program can dlopen itself... " >&6; } 14005if test ${lt_cv_dlopen_self+y} 14006then : 14007 printf %s "(cached) " >&6 14008else $as_nop 14009 if test yes = "$cross_compiling"; then : 14010 lt_cv_dlopen_self=cross 14011else 14012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14013 lt_status=$lt_dlunknown 14014 cat > conftest.$ac_ext <<_LT_EOF 14015#line $LINENO "configure" 14016#include "confdefs.h" 14017 14018#if HAVE_DLFCN_H 14019#include <dlfcn.h> 14020#endif 14021 14022#include <stdio.h> 14023 14024#ifdef RTLD_GLOBAL 14025# define LT_DLGLOBAL RTLD_GLOBAL 14026#else 14027# ifdef DL_GLOBAL 14028# define LT_DLGLOBAL DL_GLOBAL 14029# else 14030# define LT_DLGLOBAL 0 14031# endif 14032#endif 14033 14034/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14035 find out it does not work in some platform. */ 14036#ifndef LT_DLLAZY_OR_NOW 14037# ifdef RTLD_LAZY 14038# define LT_DLLAZY_OR_NOW RTLD_LAZY 14039# else 14040# ifdef DL_LAZY 14041# define LT_DLLAZY_OR_NOW DL_LAZY 14042# else 14043# ifdef RTLD_NOW 14044# define LT_DLLAZY_OR_NOW RTLD_NOW 14045# else 14046# ifdef DL_NOW 14047# define LT_DLLAZY_OR_NOW DL_NOW 14048# else 14049# define LT_DLLAZY_OR_NOW 0 14050# endif 14051# endif 14052# endif 14053# endif 14054#endif 14055 14056/* When -fvisibility=hidden is used, assume the code has been annotated 14057 correspondingly for the symbols needed. */ 14058#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14059int fnord () __attribute__((visibility("default"))); 14060#endif 14061 14062int fnord () { return 42; } 14063int main () 14064{ 14065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14066 int status = $lt_dlunknown; 14067 14068 if (self) 14069 { 14070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14071 else 14072 { 14073 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14074 else puts (dlerror ()); 14075 } 14076 /* dlclose (self); */ 14077 } 14078 else 14079 puts (dlerror ()); 14080 14081 return status; 14082} 14083_LT_EOF 14084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14085 (eval $ac_link) 2>&5 14086 ac_status=$? 14087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14088 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14089 (./conftest; exit; ) >&5 2>/dev/null 14090 lt_status=$? 14091 case x$lt_status in 14092 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14093 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14094 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14095 esac 14096 else : 14097 # compilation failed 14098 lt_cv_dlopen_self=no 14099 fi 14100fi 14101rm -fr conftest* 14102 14103 14104fi 14105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14106printf "%s\n" "$lt_cv_dlopen_self" >&6; } 14107 14108 if test yes = "$lt_cv_dlopen_self"; then 14109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14111printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 14112if test ${lt_cv_dlopen_self_static+y} 14113then : 14114 printf %s "(cached) " >&6 14115else $as_nop 14116 if test yes = "$cross_compiling"; then : 14117 lt_cv_dlopen_self_static=cross 14118else 14119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14120 lt_status=$lt_dlunknown 14121 cat > conftest.$ac_ext <<_LT_EOF 14122#line $LINENO "configure" 14123#include "confdefs.h" 14124 14125#if HAVE_DLFCN_H 14126#include <dlfcn.h> 14127#endif 14128 14129#include <stdio.h> 14130 14131#ifdef RTLD_GLOBAL 14132# define LT_DLGLOBAL RTLD_GLOBAL 14133#else 14134# ifdef DL_GLOBAL 14135# define LT_DLGLOBAL DL_GLOBAL 14136# else 14137# define LT_DLGLOBAL 0 14138# endif 14139#endif 14140 14141/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14142 find out it does not work in some platform. */ 14143#ifndef LT_DLLAZY_OR_NOW 14144# ifdef RTLD_LAZY 14145# define LT_DLLAZY_OR_NOW RTLD_LAZY 14146# else 14147# ifdef DL_LAZY 14148# define LT_DLLAZY_OR_NOW DL_LAZY 14149# else 14150# ifdef RTLD_NOW 14151# define LT_DLLAZY_OR_NOW RTLD_NOW 14152# else 14153# ifdef DL_NOW 14154# define LT_DLLAZY_OR_NOW DL_NOW 14155# else 14156# define LT_DLLAZY_OR_NOW 0 14157# endif 14158# endif 14159# endif 14160# endif 14161#endif 14162 14163/* When -fvisibility=hidden is used, assume the code has been annotated 14164 correspondingly for the symbols needed. */ 14165#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14166int fnord () __attribute__((visibility("default"))); 14167#endif 14168 14169int fnord () { return 42; } 14170int main () 14171{ 14172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14173 int status = $lt_dlunknown; 14174 14175 if (self) 14176 { 14177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14178 else 14179 { 14180 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14181 else puts (dlerror ()); 14182 } 14183 /* dlclose (self); */ 14184 } 14185 else 14186 puts (dlerror ()); 14187 14188 return status; 14189} 14190_LT_EOF 14191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14192 (eval $ac_link) 2>&5 14193 ac_status=$? 14194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14195 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14196 (./conftest; exit; ) >&5 2>/dev/null 14197 lt_status=$? 14198 case x$lt_status in 14199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14202 esac 14203 else : 14204 # compilation failed 14205 lt_cv_dlopen_self_static=no 14206 fi 14207fi 14208rm -fr conftest* 14209 14210 14211fi 14212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14213printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 14214 fi 14215 14216 CPPFLAGS=$save_CPPFLAGS 14217 LDFLAGS=$save_LDFLAGS 14218 LIBS=$save_LIBS 14219 ;; 14220 esac 14221 14222 case $lt_cv_dlopen_self in 14223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14224 *) enable_dlopen_self=unknown ;; 14225 esac 14226 14227 case $lt_cv_dlopen_self_static in 14228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14229 *) enable_dlopen_self_static=unknown ;; 14230 esac 14231fi 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249striplib= 14250old_striplib= 14251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14252printf %s "checking whether stripping libraries is possible... " >&6; } 14253if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14254 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14255 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14257printf "%s\n" "yes" >&6; } 14258else 14259# FIXME - insert some real tests, host_os isn't really good enough 14260 case $host_os in 14261 darwin*) 14262 if test -n "$STRIP"; then 14263 striplib="$STRIP -x" 14264 old_striplib="$STRIP -S" 14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14266printf "%s\n" "yes" >&6; } 14267 else 14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14269printf "%s\n" "no" >&6; } 14270 fi 14271 ;; 14272 *) 14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14274printf "%s\n" "no" >&6; } 14275 ;; 14276 esac 14277fi 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 # Report what library types will actually be built 14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14292printf %s "checking if libtool supports shared libraries... " >&6; } 14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14294printf "%s\n" "$can_build_shared" >&6; } 14295 14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14297printf %s "checking whether to build shared libraries... " >&6; } 14298 test no = "$can_build_shared" && enable_shared=no 14299 14300 # On AIX, shared libraries and static libraries use the same namespace, and 14301 # are all built from PIC. 14302 case $host_os in 14303 aix3*) 14304 test yes = "$enable_shared" && enable_static=no 14305 if test -n "$RANLIB"; then 14306 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14307 postinstall_cmds='$RANLIB $lib' 14308 fi 14309 ;; 14310 14311 aix[4-9]*) 14312 if test ia64 != "$host_cpu"; then 14313 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14314 yes,aix,yes) ;; # shared object as lib.so file only 14315 yes,svr4,*) ;; # shared object as lib.so archive member only 14316 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14317 esac 14318 fi 14319 ;; 14320 esac 14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14322printf "%s\n" "$enable_shared" >&6; } 14323 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14325printf %s "checking whether to build static libraries... " >&6; } 14326 # Make sure either enable_shared or enable_static is yes. 14327 test yes = "$enable_shared" || enable_static=yes 14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14329printf "%s\n" "$enable_static" >&6; } 14330 14331 14332 14333 14334fi 14335ac_ext=c 14336ac_cpp='$CPP $CPPFLAGS' 14337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14339ac_compiler_gnu=$ac_cv_c_compiler_gnu 14340 14341CC=$lt_save_CC 14342 14343 if test -n "$CXX" && ( test no != "$CXX" && 14344 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 14345 (test g++ != "$CXX"))); then 14346 ac_ext=cpp 14347ac_cpp='$CXXCPP $CPPFLAGS' 14348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14352printf %s "checking how to run the C++ preprocessor... " >&6; } 14353if test -z "$CXXCPP"; then 14354 if test ${ac_cv_prog_CXXCPP+y} 14355then : 14356 printf %s "(cached) " >&6 14357else $as_nop 14358 # Double quotes because $CXX needs to be expanded 14359 for CXXCPP in "$CXX -E" cpp /lib/cpp 14360 do 14361 ac_preproc_ok=false 14362for ac_cxx_preproc_warn_flag in '' yes 14363do 14364 # Use a header file that comes with gcc, so configuring glibc 14365 # with a fresh cross-compiler works. 14366 # On the NeXT, cc -E runs the code through the compiler's parser, 14367 # not just through cpp. "Syntax error" is here to catch this case. 14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14369/* end confdefs.h. */ 14370#include <limits.h> 14371 Syntax error 14372_ACEOF 14373if ac_fn_cxx_try_cpp "$LINENO" 14374then : 14375 14376else $as_nop 14377 # Broken: fails on valid input. 14378continue 14379fi 14380rm -f conftest.err conftest.i conftest.$ac_ext 14381 14382 # OK, works on sane cases. Now check whether nonexistent headers 14383 # can be detected and how. 14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14385/* end confdefs.h. */ 14386#include <ac_nonexistent.h> 14387_ACEOF 14388if ac_fn_cxx_try_cpp "$LINENO" 14389then : 14390 # Broken: success on invalid input. 14391continue 14392else $as_nop 14393 # Passes both tests. 14394ac_preproc_ok=: 14395break 14396fi 14397rm -f conftest.err conftest.i conftest.$ac_ext 14398 14399done 14400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14401rm -f conftest.i conftest.err conftest.$ac_ext 14402if $ac_preproc_ok 14403then : 14404 break 14405fi 14406 14407 done 14408 ac_cv_prog_CXXCPP=$CXXCPP 14409 14410fi 14411 CXXCPP=$ac_cv_prog_CXXCPP 14412else 14413 ac_cv_prog_CXXCPP=$CXXCPP 14414fi 14415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14416printf "%s\n" "$CXXCPP" >&6; } 14417ac_preproc_ok=false 14418for ac_cxx_preproc_warn_flag in '' yes 14419do 14420 # Use a header file that comes with gcc, so configuring glibc 14421 # with a fresh cross-compiler works. 14422 # On the NeXT, cc -E runs the code through the compiler's parser, 14423 # not just through cpp. "Syntax error" is here to catch this case. 14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14425/* end confdefs.h. */ 14426#include <limits.h> 14427 Syntax error 14428_ACEOF 14429if ac_fn_cxx_try_cpp "$LINENO" 14430then : 14431 14432else $as_nop 14433 # Broken: fails on valid input. 14434continue 14435fi 14436rm -f conftest.err conftest.i conftest.$ac_ext 14437 14438 # OK, works on sane cases. Now check whether nonexistent headers 14439 # can be detected and how. 14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14441/* end confdefs.h. */ 14442#include <ac_nonexistent.h> 14443_ACEOF 14444if ac_fn_cxx_try_cpp "$LINENO" 14445then : 14446 # Broken: success on invalid input. 14447continue 14448else $as_nop 14449 # Passes both tests. 14450ac_preproc_ok=: 14451break 14452fi 14453rm -f conftest.err conftest.i conftest.$ac_ext 14454 14455done 14456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14457rm -f conftest.i conftest.err conftest.$ac_ext 14458if $ac_preproc_ok 14459then : 14460 14461else $as_nop 14462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14463printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14464as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14465See \`config.log' for more details" "$LINENO" 5; } 14466fi 14467 14468ac_ext=c 14469ac_cpp='$CPP $CPPFLAGS' 14470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14472ac_compiler_gnu=$ac_cv_c_compiler_gnu 14473 14474else 14475 _lt_caught_CXX_error=yes 14476fi 14477 14478ac_ext=cpp 14479ac_cpp='$CXXCPP $CPPFLAGS' 14480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14483 14484archive_cmds_need_lc_CXX=no 14485allow_undefined_flag_CXX= 14486always_export_symbols_CXX=no 14487archive_expsym_cmds_CXX= 14488compiler_needs_object_CXX=no 14489export_dynamic_flag_spec_CXX= 14490hardcode_direct_CXX=no 14491hardcode_direct_absolute_CXX=no 14492hardcode_libdir_flag_spec_CXX= 14493hardcode_libdir_separator_CXX= 14494hardcode_minus_L_CXX=no 14495hardcode_shlibpath_var_CXX=unsupported 14496hardcode_automatic_CXX=no 14497inherit_rpath_CXX=no 14498module_cmds_CXX= 14499module_expsym_cmds_CXX= 14500link_all_deplibs_CXX=unknown 14501old_archive_cmds_CXX=$old_archive_cmds 14502reload_flag_CXX=$reload_flag 14503reload_cmds_CXX=$reload_cmds 14504no_undefined_flag_CXX= 14505whole_archive_flag_spec_CXX= 14506enable_shared_with_static_runtimes_CXX=no 14507 14508# Source file extension for C++ test sources. 14509ac_ext=cpp 14510 14511# Object file extension for compiled C++ test sources. 14512objext=o 14513objext_CXX=$objext 14514 14515# No sense in running all these tests if we already determined that 14516# the CXX compiler isn't working. Some variables (like enable_shared) 14517# are currently assumed to apply to all compilers on this platform, 14518# and will be corrupted by setting them based on a non-working compiler. 14519if test yes != "$_lt_caught_CXX_error"; then 14520 # Code to be used in simple compile tests 14521 lt_simple_compile_test_code="int some_variable = 0;" 14522 14523 # Code to be used in simple link tests 14524 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14525 14526 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14527 14528 14529 14530 14531 14532 14533# If no C compiler was specified, use CC. 14534LTCC=${LTCC-"$CC"} 14535 14536# If no C compiler flags were specified, use CFLAGS. 14537LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14538 14539# Allow CC to be a program name with arguments. 14540compiler=$CC 14541 14542 14543 # save warnings/boilerplate of simple test code 14544 ac_outfile=conftest.$ac_objext 14545echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14546eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14547_lt_compiler_boilerplate=`cat conftest.err` 14548$RM conftest* 14549 14550 ac_outfile=conftest.$ac_objext 14551echo "$lt_simple_link_test_code" >conftest.$ac_ext 14552eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14553_lt_linker_boilerplate=`cat conftest.err` 14554$RM -r conftest* 14555 14556 14557 # Allow CC to be a program name with arguments. 14558 lt_save_CC=$CC 14559 lt_save_CFLAGS=$CFLAGS 14560 lt_save_LD=$LD 14561 lt_save_GCC=$GCC 14562 GCC=$GXX 14563 lt_save_with_gnu_ld=$with_gnu_ld 14564 lt_save_path_LD=$lt_cv_path_LD 14565 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14566 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14567 else 14568 $as_unset lt_cv_prog_gnu_ld 14569 fi 14570 if test -n "${lt_cv_path_LDCXX+set}"; then 14571 lt_cv_path_LD=$lt_cv_path_LDCXX 14572 else 14573 $as_unset lt_cv_path_LD 14574 fi 14575 test -z "${LDCXX+set}" || LD=$LDCXX 14576 CC=${CXX-"c++"} 14577 CFLAGS=$CXXFLAGS 14578 compiler=$CC 14579 compiler_CXX=$CC 14580 func_cc_basename $compiler 14581cc_basename=$func_cc_basename_result 14582 14583 14584 if test -n "$compiler"; then 14585 # We don't want -fno-exception when compiling C++ code, so set the 14586 # no_builtin_flag separately 14587 if test yes = "$GXX"; then 14588 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14589 else 14590 lt_prog_compiler_no_builtin_flag_CXX= 14591 fi 14592 14593 if test yes = "$GXX"; then 14594 # Set up default GNU C++ configuration 14595 14596 14597 14598# Check whether --with-gnu-ld was given. 14599if test ${with_gnu_ld+y} 14600then : 14601 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14602else $as_nop 14603 with_gnu_ld=no 14604fi 14605 14606ac_prog=ld 14607if test yes = "$GCC"; then 14608 # Check if gcc -print-prog-name=ld gives a path. 14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14610printf %s "checking for ld used by $CC... " >&6; } 14611 case $host in 14612 *-*-mingw*) 14613 # gcc leaves a trailing carriage return, which upsets mingw 14614 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14615 *) 14616 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14617 esac 14618 case $ac_prog in 14619 # Accept absolute paths. 14620 [\\/]* | ?:[\\/]*) 14621 re_direlt='/[^/][^/]*/\.\./' 14622 # Canonicalize the pathname of ld 14623 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14624 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14625 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14626 done 14627 test -z "$LD" && LD=$ac_prog 14628 ;; 14629 "") 14630 # If it fails, then pretend we aren't using GCC. 14631 ac_prog=ld 14632 ;; 14633 *) 14634 # If it is relative, then search for the first ld in PATH. 14635 with_gnu_ld=unknown 14636 ;; 14637 esac 14638elif test yes = "$with_gnu_ld"; then 14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14640printf %s "checking for GNU ld... " >&6; } 14641else 14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14643printf %s "checking for non-GNU ld... " >&6; } 14644fi 14645if test ${lt_cv_path_LD+y} 14646then : 14647 printf %s "(cached) " >&6 14648else $as_nop 14649 if test -z "$LD"; then 14650 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14651 for ac_dir in $PATH; do 14652 IFS=$lt_save_ifs 14653 test -z "$ac_dir" && ac_dir=. 14654 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14655 lt_cv_path_LD=$ac_dir/$ac_prog 14656 # Check to see if the program is GNU ld. I'd rather use --version, 14657 # but apparently some variants of GNU ld only accept -v. 14658 # Break only if it was the GNU/non-GNU ld that we prefer. 14659 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14660 *GNU* | *'with BFD'*) 14661 test no != "$with_gnu_ld" && break 14662 ;; 14663 *) 14664 test yes != "$with_gnu_ld" && break 14665 ;; 14666 esac 14667 fi 14668 done 14669 IFS=$lt_save_ifs 14670else 14671 lt_cv_path_LD=$LD # Let the user override the test with a path. 14672fi 14673fi 14674 14675LD=$lt_cv_path_LD 14676if test -n "$LD"; then 14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14678printf "%s\n" "$LD" >&6; } 14679else 14680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14681printf "%s\n" "no" >&6; } 14682fi 14683test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14685printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 14686if test ${lt_cv_prog_gnu_ld+y} 14687then : 14688 printf %s "(cached) " >&6 14689else $as_nop 14690 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14691case `$LD -v 2>&1 </dev/null` in 14692*GNU* | *'with BFD'*) 14693 lt_cv_prog_gnu_ld=yes 14694 ;; 14695*) 14696 lt_cv_prog_gnu_ld=no 14697 ;; 14698esac 14699fi 14700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14701printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 14702with_gnu_ld=$lt_cv_prog_gnu_ld 14703 14704 14705 14706 14707 14708 14709 14710 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14711 # archiving commands below assume that GNU ld is being used. 14712 if test yes = "$with_gnu_ld"; then 14713 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14714 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' 14715 14716 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14717 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14718 14719 # If archive_cmds runs LD, not CC, wlarc should be empty 14720 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14721 # investigate it a little bit more. (MM) 14722 wlarc='$wl' 14723 14724 # ancient GNU ld didn't support --whole-archive et. al. 14725 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14726 $GREP 'no-whole-archive' > /dev/null; then 14727 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14728 else 14729 whole_archive_flag_spec_CXX= 14730 fi 14731 else 14732 with_gnu_ld=no 14733 wlarc= 14734 14735 # A generic and very simple default shared library creation 14736 # command for GNU C++ for the case where it uses the native 14737 # linker, instead of GNU ld. If possible, this setting should 14738 # overridden to take advantage of the native linker features on 14739 # the platform it is being used on. 14740 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14741 fi 14742 14743 # Commands to make compiler produce verbose output that lists 14744 # what "hidden" libraries, object files and flags are used when 14745 # linking a shared library. 14746 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14747 14748 else 14749 GXX=no 14750 with_gnu_ld=no 14751 wlarc= 14752 fi 14753 14754 # PORTME: fill in a description of your system's C++ link characteristics 14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14756printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14757 ld_shlibs_CXX=yes 14758 case $host_os in 14759 aix3*) 14760 # FIXME: insert proper C++ library support 14761 ld_shlibs_CXX=no 14762 ;; 14763 aix[4-9]*) 14764 if test ia64 = "$host_cpu"; then 14765 # On IA64, the linker does run time linking by default, so we don't 14766 # have to do anything special. 14767 aix_use_runtimelinking=no 14768 exp_sym_flag='-Bexport' 14769 no_entry_flag= 14770 else 14771 aix_use_runtimelinking=no 14772 14773 # Test if we are trying to use run time linking or normal 14774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14775 # have runtime linking enabled, and use it for executables. 14776 # For shared libraries, we enable/disable runtime linking 14777 # depending on the kind of the shared library created - 14778 # when "with_aix_soname,aix_use_runtimelinking" is: 14779 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14780 # "aix,yes" lib.so shared, rtl:yes, for executables 14781 # lib.a static archive 14782 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14783 # lib.a(lib.so.V) shared, rtl:no, for executables 14784 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14785 # lib.a(lib.so.V) shared, rtl:no 14786 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14787 # lib.a static archive 14788 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14789 for ld_flag in $LDFLAGS; do 14790 case $ld_flag in 14791 *-brtl*) 14792 aix_use_runtimelinking=yes 14793 break 14794 ;; 14795 esac 14796 done 14797 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14798 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14799 # so we don't have lib.a shared libs to link our executables. 14800 # We have to force runtime linking in this case. 14801 aix_use_runtimelinking=yes 14802 LDFLAGS="$LDFLAGS -Wl,-brtl" 14803 fi 14804 ;; 14805 esac 14806 14807 exp_sym_flag='-bexport' 14808 no_entry_flag='-bnoentry' 14809 fi 14810 14811 # When large executables or shared objects are built, AIX ld can 14812 # have problems creating the table of contents. If linking a library 14813 # or program results in "error TOC overflow" add -mminimal-toc to 14814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14816 14817 archive_cmds_CXX='' 14818 hardcode_direct_CXX=yes 14819 hardcode_direct_absolute_CXX=yes 14820 hardcode_libdir_separator_CXX=':' 14821 link_all_deplibs_CXX=yes 14822 file_list_spec_CXX='$wl-f,' 14823 case $with_aix_soname,$aix_use_runtimelinking in 14824 aix,*) ;; # no import file 14825 svr4,* | *,yes) # use import file 14826 # The Import File defines what to hardcode. 14827 hardcode_direct_CXX=no 14828 hardcode_direct_absolute_CXX=no 14829 ;; 14830 esac 14831 14832 if test yes = "$GXX"; then 14833 case $host_os in aix4.[012]|aix4.[012].*) 14834 # We only want to do this on AIX 4.2 and lower, the check 14835 # below for broken collect2 doesn't work under 4.3+ 14836 collect2name=`$CC -print-prog-name=collect2` 14837 if test -f "$collect2name" && 14838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14839 then 14840 # We have reworked collect2 14841 : 14842 else 14843 # We have old collect2 14844 hardcode_direct_CXX=unsupported 14845 # It fails to find uninstalled libraries when the uninstalled 14846 # path is not listed in the libpath. Setting hardcode_minus_L 14847 # to unsupported forces relinking 14848 hardcode_minus_L_CXX=yes 14849 hardcode_libdir_flag_spec_CXX='-L$libdir' 14850 hardcode_libdir_separator_CXX= 14851 fi 14852 esac 14853 shared_flag='-shared' 14854 if test yes = "$aix_use_runtimelinking"; then 14855 shared_flag=$shared_flag' $wl-G' 14856 fi 14857 # Need to ensure runtime linking is disabled for the traditional 14858 # shared library, or the linker may eventually find shared libraries 14859 # /with/ Import File - we do not want to mix them. 14860 shared_flag_aix='-shared' 14861 shared_flag_svr4='-shared $wl-G' 14862 else 14863 # not using gcc 14864 if test ia64 = "$host_cpu"; then 14865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14866 # chokes on -Wl,-G. The following line is correct: 14867 shared_flag='-G' 14868 else 14869 if test yes = "$aix_use_runtimelinking"; then 14870 shared_flag='$wl-G' 14871 else 14872 shared_flag='$wl-bM:SRE' 14873 fi 14874 shared_flag_aix='$wl-bM:SRE' 14875 shared_flag_svr4='$wl-G' 14876 fi 14877 fi 14878 14879 export_dynamic_flag_spec_CXX='$wl-bexpall' 14880 # It seems that -bexpall does not export symbols beginning with 14881 # underscore (_), so it is better to generate a list of symbols to 14882 # export. 14883 always_export_symbols_CXX=yes 14884 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14885 # Warning - without using the other runtime loading flags (-brtl), 14886 # -berok will link without error, but may produce a broken library. 14887 # The "-G" linker flag allows undefined symbols. 14888 no_undefined_flag_CXX='-bernotok' 14889 # Determine the default libpath from the value encoded in an empty 14890 # executable. 14891 if test set = "${lt_cv_aix_libpath+set}"; then 14892 aix_libpath=$lt_cv_aix_libpath 14893else 14894 if test ${lt_cv_aix_libpath__CXX+y} 14895then : 14896 printf %s "(cached) " >&6 14897else $as_nop 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900 14901int 14902main (void) 14903{ 14904 14905 ; 14906 return 0; 14907} 14908_ACEOF 14909if ac_fn_cxx_try_link "$LINENO" 14910then : 14911 14912 lt_aix_libpath_sed=' 14913 /Import File Strings/,/^$/ { 14914 /^0/ { 14915 s/^0 *\([^ ]*\) *$/\1/ 14916 p 14917 } 14918 }' 14919 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14920 # Check for a 64-bit object if we didn't find anything. 14921 if test -z "$lt_cv_aix_libpath__CXX"; then 14922 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14923 fi 14924fi 14925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14926 conftest$ac_exeext conftest.$ac_ext 14927 if test -z "$lt_cv_aix_libpath__CXX"; then 14928 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14929 fi 14930 14931fi 14932 14933 aix_libpath=$lt_cv_aix_libpath__CXX 14934fi 14935 14936 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14937 14938 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14939 else 14940 if test ia64 = "$host_cpu"; then 14941 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14942 allow_undefined_flag_CXX="-z nodefs" 14943 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" 14944 else 14945 # Determine the default libpath from the value encoded in an 14946 # empty executable. 14947 if test set = "${lt_cv_aix_libpath+set}"; then 14948 aix_libpath=$lt_cv_aix_libpath 14949else 14950 if test ${lt_cv_aix_libpath__CXX+y} 14951then : 14952 printf %s "(cached) " >&6 14953else $as_nop 14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14955/* end confdefs.h. */ 14956 14957int 14958main (void) 14959{ 14960 14961 ; 14962 return 0; 14963} 14964_ACEOF 14965if ac_fn_cxx_try_link "$LINENO" 14966then : 14967 14968 lt_aix_libpath_sed=' 14969 /Import File Strings/,/^$/ { 14970 /^0/ { 14971 s/^0 *\([^ ]*\) *$/\1/ 14972 p 14973 } 14974 }' 14975 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14976 # Check for a 64-bit object if we didn't find anything. 14977 if test -z "$lt_cv_aix_libpath__CXX"; then 14978 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14979 fi 14980fi 14981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14982 conftest$ac_exeext conftest.$ac_ext 14983 if test -z "$lt_cv_aix_libpath__CXX"; then 14984 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14985 fi 14986 14987fi 14988 14989 aix_libpath=$lt_cv_aix_libpath__CXX 14990fi 14991 14992 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14993 # Warning - without using the other run time loading flags, 14994 # -berok will link without error, but may produce a broken library. 14995 no_undefined_flag_CXX=' $wl-bernotok' 14996 allow_undefined_flag_CXX=' $wl-berok' 14997 if test yes = "$with_gnu_ld"; then 14998 # We only use this code for GNU lds that support --whole-archive. 14999 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15000 else 15001 # Exported symbols can be pulled into shared objects from archives 15002 whole_archive_flag_spec_CXX='$convenience' 15003 fi 15004 archive_cmds_need_lc_CXX=yes 15005 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15006 # -brtl affects multiple linker settings, -berok does not and is overridden later 15007 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15008 if test svr4 != "$with_aix_soname"; then 15009 # This is similar to how AIX traditionally builds its shared 15010 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 15011 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 15012 fi 15013 if test aix != "$with_aix_soname"; then 15014 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 15015 else 15016 # used by -dlpreopen to get the symbols 15017 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15018 fi 15019 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 15020 fi 15021 fi 15022 ;; 15023 15024 beos*) 15025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15026 allow_undefined_flag_CXX=unsupported 15027 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15028 # support --undefined. This deserves some investigation. FIXME 15029 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15030 else 15031 ld_shlibs_CXX=no 15032 fi 15033 ;; 15034 15035 chorus*) 15036 case $cc_basename in 15037 *) 15038 # FIXME: insert proper C++ library support 15039 ld_shlibs_CXX=no 15040 ;; 15041 esac 15042 ;; 15043 15044 cygwin* | mingw* | pw32* | cegcc*) 15045 case $GXX,$cc_basename in 15046 ,cl* | no,cl*) 15047 # Native MSVC 15048 # hardcode_libdir_flag_spec is actually meaningless, as there is 15049 # no search path for DLLs. 15050 hardcode_libdir_flag_spec_CXX=' ' 15051 allow_undefined_flag_CXX=unsupported 15052 always_export_symbols_CXX=yes 15053 file_list_spec_CXX='@' 15054 # Tell ltmain to make .lib files, not .a files. 15055 libext=lib 15056 # Tell ltmain to make .dll files, not .so files. 15057 shrext_cmds=.dll 15058 # FIXME: Setting linknames here is a bad hack. 15059 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15060 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15061 cp "$export_symbols" "$output_objdir/$soname.def"; 15062 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15063 else 15064 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15065 fi~ 15066 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15067 linknames=' 15068 # The linker will not automatically build a static lib if we build a DLL. 15069 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15070 enable_shared_with_static_runtimes_CXX=yes 15071 # Don't use ranlib 15072 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15073 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15074 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15075 case $lt_outputfile in 15076 *.exe|*.EXE) ;; 15077 *) 15078 lt_outputfile=$lt_outputfile.exe 15079 lt_tool_outputfile=$lt_tool_outputfile.exe 15080 ;; 15081 esac~ 15082 func_to_tool_file "$lt_outputfile"~ 15083 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15084 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15085 $RM "$lt_outputfile.manifest"; 15086 fi' 15087 ;; 15088 *) 15089 # g++ 15090 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15091 # as there is no search path for DLLs. 15092 hardcode_libdir_flag_spec_CXX='-L$libdir' 15093 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 15094 allow_undefined_flag_CXX=unsupported 15095 always_export_symbols_CXX=no 15096 enable_shared_with_static_runtimes_CXX=yes 15097 15098 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15099 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' 15100 # If the export-symbols file already is a .def file, use it as 15101 # is; otherwise, prepend EXPORTS... 15102 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15103 cp $export_symbols $output_objdir/$soname.def; 15104 else 15105 echo EXPORTS > $output_objdir/$soname.def; 15106 cat $export_symbols >> $output_objdir/$soname.def; 15107 fi~ 15108 $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' 15109 else 15110 ld_shlibs_CXX=no 15111 fi 15112 ;; 15113 esac 15114 ;; 15115 darwin* | rhapsody*) 15116 15117 15118 archive_cmds_need_lc_CXX=no 15119 hardcode_direct_CXX=no 15120 hardcode_automatic_CXX=yes 15121 hardcode_shlibpath_var_CXX=unsupported 15122 if test yes = "$lt_cv_ld_force_load"; then 15123 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\"`' 15124 15125 else 15126 whole_archive_flag_spec_CXX='' 15127 fi 15128 link_all_deplibs_CXX=yes 15129 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 15130 case $cc_basename in 15131 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15132 *) _lt_dar_can_shared=$GCC ;; 15133 esac 15134 if test yes = "$_lt_dar_can_shared"; then 15135 output_verbose_link_cmd=func_echo_all 15136 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" 15137 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15138 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" 15139 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" 15140 if test yes != "$lt_cv_apple_cc_single_mod"; then 15141 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" 15142 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" 15143 fi 15144 15145 else 15146 ld_shlibs_CXX=no 15147 fi 15148 15149 ;; 15150 15151 os2*) 15152 hardcode_libdir_flag_spec_CXX='-L$libdir' 15153 hardcode_minus_L_CXX=yes 15154 allow_undefined_flag_CXX=unsupported 15155 shrext_cmds=.dll 15156 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15157 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15158 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15159 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15160 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15161 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15162 emximp -o $lib $output_objdir/$libname.def' 15163 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15164 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15165 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15166 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15167 prefix_cmds="$SED"~ 15168 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15169 prefix_cmds="$prefix_cmds -e 1d"; 15170 fi~ 15171 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15172 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15173 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15174 emximp -o $lib $output_objdir/$libname.def' 15175 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15176 enable_shared_with_static_runtimes_CXX=yes 15177 ;; 15178 15179 dgux*) 15180 case $cc_basename in 15181 ec++*) 15182 # FIXME: insert proper C++ library support 15183 ld_shlibs_CXX=no 15184 ;; 15185 ghcx*) 15186 # Green Hills C++ Compiler 15187 # FIXME: insert proper C++ library support 15188 ld_shlibs_CXX=no 15189 ;; 15190 *) 15191 # FIXME: insert proper C++ library support 15192 ld_shlibs_CXX=no 15193 ;; 15194 esac 15195 ;; 15196 15197 freebsd2.*) 15198 # C++ shared libraries reported to be fairly broken before 15199 # switch to ELF 15200 ld_shlibs_CXX=no 15201 ;; 15202 15203 freebsd-elf*) 15204 archive_cmds_need_lc_CXX=no 15205 ;; 15206 15207 freebsd* | dragonfly*) 15208 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15209 # conventions 15210 ld_shlibs_CXX=yes 15211 ;; 15212 15213 haiku*) 15214 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15215 link_all_deplibs_CXX=yes 15216 ;; 15217 15218 hpux9*) 15219 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15220 hardcode_libdir_separator_CXX=: 15221 export_dynamic_flag_spec_CXX='$wl-E' 15222 hardcode_direct_CXX=yes 15223 hardcode_minus_L_CXX=yes # Not in the search PATH, 15224 # but as the default 15225 # location of the library. 15226 15227 case $cc_basename in 15228 CC*) 15229 # FIXME: insert proper C++ library support 15230 ld_shlibs_CXX=no 15231 ;; 15232 aCC*) 15233 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15234 # Commands to make compiler produce verbose output that lists 15235 # what "hidden" libraries, object files and flags are used when 15236 # linking a shared library. 15237 # 15238 # There doesn't appear to be a way to prevent this compiler from 15239 # explicitly linking system object files so we need to strip them 15240 # from the output so that they don't get included in the library 15241 # dependencies. 15242 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"' 15243 ;; 15244 *) 15245 if test yes = "$GXX"; then 15246 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15247 else 15248 # FIXME: insert proper C++ library support 15249 ld_shlibs_CXX=no 15250 fi 15251 ;; 15252 esac 15253 ;; 15254 15255 hpux10*|hpux11*) 15256 if test no = "$with_gnu_ld"; then 15257 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15258 hardcode_libdir_separator_CXX=: 15259 15260 case $host_cpu in 15261 hppa*64*|ia64*) 15262 ;; 15263 *) 15264 export_dynamic_flag_spec_CXX='$wl-E' 15265 ;; 15266 esac 15267 fi 15268 case $host_cpu in 15269 hppa*64*|ia64*) 15270 hardcode_direct_CXX=no 15271 hardcode_shlibpath_var_CXX=no 15272 ;; 15273 *) 15274 hardcode_direct_CXX=yes 15275 hardcode_direct_absolute_CXX=yes 15276 hardcode_minus_L_CXX=yes # Not in the search PATH, 15277 # but as the default 15278 # location of the library. 15279 ;; 15280 esac 15281 15282 case $cc_basename in 15283 CC*) 15284 # FIXME: insert proper C++ library support 15285 ld_shlibs_CXX=no 15286 ;; 15287 aCC*) 15288 case $host_cpu in 15289 hppa*64*) 15290 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15291 ;; 15292 ia64*) 15293 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15294 ;; 15295 *) 15296 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15297 ;; 15298 esac 15299 # Commands to make compiler produce verbose output that lists 15300 # what "hidden" libraries, object files and flags are used when 15301 # linking a shared library. 15302 # 15303 # There doesn't appear to be a way to prevent this compiler from 15304 # explicitly linking system object files so we need to strip them 15305 # from the output so that they don't get included in the library 15306 # dependencies. 15307 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"' 15308 ;; 15309 *) 15310 if test yes = "$GXX"; then 15311 if test no = "$with_gnu_ld"; then 15312 case $host_cpu in 15313 hppa*64*) 15314 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15315 ;; 15316 ia64*) 15317 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15318 ;; 15319 *) 15320 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' 15321 ;; 15322 esac 15323 fi 15324 else 15325 # FIXME: insert proper C++ library support 15326 ld_shlibs_CXX=no 15327 fi 15328 ;; 15329 esac 15330 ;; 15331 15332 interix[3-9]*) 15333 hardcode_direct_CXX=no 15334 hardcode_shlibpath_var_CXX=no 15335 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15336 export_dynamic_flag_spec_CXX='$wl-E' 15337 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15338 # Instead, shared libraries are loaded at an image base (0x10000000 by 15339 # default) and relocated if they conflict, which is a slow very memory 15340 # consuming and fragmenting process. To avoid this, we pick a random, 15341 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15342 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15343 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' 15344 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' 15345 ;; 15346 irix5* | irix6*) 15347 case $cc_basename in 15348 CC*) 15349 # SGI C++ 15350 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' 15351 15352 # Archives containing C++ object files must be created using 15353 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15354 # necessary to make sure instantiated templates are included 15355 # in the archive. 15356 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15357 ;; 15358 *) 15359 if test yes = "$GXX"; then 15360 if test no = "$with_gnu_ld"; then 15361 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' 15362 else 15363 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' 15364 fi 15365 fi 15366 link_all_deplibs_CXX=yes 15367 ;; 15368 esac 15369 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15370 hardcode_libdir_separator_CXX=: 15371 inherit_rpath_CXX=yes 15372 ;; 15373 15374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15375 case $cc_basename in 15376 KCC*) 15377 # Kuck and Associates, Inc. (KAI) C++ Compiler 15378 15379 # KCC will only create a shared library if the output file 15380 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15381 # to its proper name (with version) after linking. 15382 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' 15383 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' 15384 # Commands to make compiler produce verbose output that lists 15385 # what "hidden" libraries, object files and flags are used when 15386 # linking a shared library. 15387 # 15388 # There doesn't appear to be a way to prevent this compiler from 15389 # explicitly linking system object files so we need to strip them 15390 # from the output so that they don't get included in the library 15391 # dependencies. 15392 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"' 15393 15394 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15395 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15396 15397 # Archives containing C++ object files must be created using 15398 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15399 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15400 ;; 15401 icpc* | ecpc* ) 15402 # Intel C++ 15403 with_gnu_ld=yes 15404 # version 8.0 and above of icpc choke on multiply defined symbols 15405 # if we add $predep_objects and $postdep_objects, however 7.1 and 15406 # earlier do not add the objects themselves. 15407 case `$CC -V 2>&1` in 15408 *"Version 7."*) 15409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15410 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' 15411 ;; 15412 *) # Version 8.0 or newer 15413 tmp_idyn= 15414 case $host_cpu in 15415 ia64*) tmp_idyn=' -i_dynamic';; 15416 esac 15417 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15418 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' 15419 ;; 15420 esac 15421 archive_cmds_need_lc_CXX=no 15422 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15423 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15424 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15425 ;; 15426 pgCC* | pgcpp*) 15427 # Portland Group C++ compiler 15428 case `$CC -V` in 15429 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15430 prelink_cmds_CXX='tpldir=Template.dir~ 15431 rm -rf $tpldir~ 15432 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15433 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15434 old_archive_cmds_CXX='tpldir=Template.dir~ 15435 rm -rf $tpldir~ 15436 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15437 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15438 $RANLIB $oldlib' 15439 archive_cmds_CXX='tpldir=Template.dir~ 15440 rm -rf $tpldir~ 15441 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15442 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15443 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15444 rm -rf $tpldir~ 15445 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15446 $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' 15447 ;; 15448 *) # Version 6 and above use weak symbols 15449 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15450 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' 15451 ;; 15452 esac 15453 15454 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15455 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15456 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' 15457 ;; 15458 cxx*) 15459 # Compaq C++ 15460 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15461 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' 15462 15463 runpath_var=LD_RUN_PATH 15464 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15465 hardcode_libdir_separator_CXX=: 15466 15467 # Commands to make compiler produce verbose output that lists 15468 # what "hidden" libraries, object files and flags are used when 15469 # linking a shared library. 15470 # 15471 # There doesn't appear to be a way to prevent this compiler from 15472 # explicitly linking system object files so we need to strip them 15473 # from the output so that they don't get included in the library 15474 # dependencies. 15475 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' 15476 ;; 15477 xl* | mpixl* | bgxl*) 15478 # IBM XL 8.0 on PPC, with GNU ld 15479 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15480 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15481 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15482 if test yes = "$supports_anon_versioning"; then 15483 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15485 echo "local: *; };" >> $output_objdir/$libname.ver~ 15486 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15487 fi 15488 ;; 15489 *) 15490 case `$CC -V 2>&1 | sed 5q` in 15491 *Sun\ C*) 15492 # Sun C++ 5.9 15493 no_undefined_flag_CXX=' -zdefs' 15494 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15495 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' 15496 hardcode_libdir_flag_spec_CXX='-R$libdir' 15497 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' 15498 compiler_needs_object_CXX=yes 15499 15500 # Not sure whether something based on 15501 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15502 # would be better. 15503 output_verbose_link_cmd='func_echo_all' 15504 15505 # Archives containing C++ object files must be created using 15506 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15507 # necessary to make sure instantiated templates are included 15508 # in the archive. 15509 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15510 ;; 15511 esac 15512 ;; 15513 esac 15514 ;; 15515 15516 lynxos*) 15517 # FIXME: insert proper C++ library support 15518 ld_shlibs_CXX=no 15519 ;; 15520 15521 m88k*) 15522 # FIXME: insert proper C++ library support 15523 ld_shlibs_CXX=no 15524 ;; 15525 15526 mvs*) 15527 case $cc_basename in 15528 cxx*) 15529 # FIXME: insert proper C++ library support 15530 ld_shlibs_CXX=no 15531 ;; 15532 *) 15533 # FIXME: insert proper C++ library support 15534 ld_shlibs_CXX=no 15535 ;; 15536 esac 15537 ;; 15538 15539 netbsd*) 15540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15541 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15542 wlarc= 15543 hardcode_libdir_flag_spec_CXX='-R$libdir' 15544 hardcode_direct_CXX=yes 15545 hardcode_shlibpath_var_CXX=no 15546 fi 15547 # Workaround some broken pre-1.5 toolchains 15548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15549 ;; 15550 15551 *nto* | *qnx*) 15552 ld_shlibs_CXX=yes 15553 ;; 15554 15555 openbsd* | bitrig*) 15556 if test -f /usr/libexec/ld.so; then 15557 hardcode_direct_CXX=yes 15558 hardcode_shlibpath_var_CXX=no 15559 hardcode_direct_absolute_CXX=yes 15560 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15561 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15563 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15564 export_dynamic_flag_spec_CXX='$wl-E' 15565 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15566 fi 15567 output_verbose_link_cmd=func_echo_all 15568 else 15569 ld_shlibs_CXX=no 15570 fi 15571 ;; 15572 15573 osf3* | osf4* | osf5*) 15574 case $cc_basename in 15575 KCC*) 15576 # Kuck and Associates, Inc. (KAI) C++ Compiler 15577 15578 # KCC will only create a shared library if the output file 15579 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15580 # to its proper name (with version) after linking. 15581 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' 15582 15583 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15584 hardcode_libdir_separator_CXX=: 15585 15586 # Archives containing C++ object files must be created using 15587 # the KAI C++ compiler. 15588 case $host in 15589 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15590 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15591 esac 15592 ;; 15593 RCC*) 15594 # Rational C++ 2.4.1 15595 # FIXME: insert proper C++ library support 15596 ld_shlibs_CXX=no 15597 ;; 15598 cxx*) 15599 case $host in 15600 osf3*) 15601 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15602 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' 15603 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15604 ;; 15605 *) 15606 allow_undefined_flag_CXX=' -expect_unresolved \*' 15607 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' 15608 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15609 echo "-hidden">> $lib.exp~ 15610 $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~ 15611 $RM $lib.exp' 15612 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15613 ;; 15614 esac 15615 15616 hardcode_libdir_separator_CXX=: 15617 15618 # Commands to make compiler produce verbose output that lists 15619 # what "hidden" libraries, object files and flags are used when 15620 # linking a shared library. 15621 # 15622 # There doesn't appear to be a way to prevent this compiler from 15623 # explicitly linking system object files so we need to strip them 15624 # from the output so that they don't get included in the library 15625 # dependencies. 15626 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"' 15627 ;; 15628 *) 15629 if test yes,no = "$GXX,$with_gnu_ld"; then 15630 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15631 case $host in 15632 osf3*) 15633 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' 15634 ;; 15635 *) 15636 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' 15637 ;; 15638 esac 15639 15640 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15641 hardcode_libdir_separator_CXX=: 15642 15643 # Commands to make compiler produce verbose output that lists 15644 # what "hidden" libraries, object files and flags are used when 15645 # linking a shared library. 15646 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15647 15648 else 15649 # FIXME: insert proper C++ library support 15650 ld_shlibs_CXX=no 15651 fi 15652 ;; 15653 esac 15654 ;; 15655 15656 psos*) 15657 # FIXME: insert proper C++ library support 15658 ld_shlibs_CXX=no 15659 ;; 15660 15661 sunos4*) 15662 case $cc_basename in 15663 CC*) 15664 # Sun C++ 4.x 15665 # FIXME: insert proper C++ library support 15666 ld_shlibs_CXX=no 15667 ;; 15668 lcc*) 15669 # Lucid 15670 # FIXME: insert proper C++ library support 15671 ld_shlibs_CXX=no 15672 ;; 15673 *) 15674 # FIXME: insert proper C++ library support 15675 ld_shlibs_CXX=no 15676 ;; 15677 esac 15678 ;; 15679 15680 solaris*) 15681 case $cc_basename in 15682 CC* | sunCC*) 15683 # Sun C++ 4.2, 5.x and Centerline C++ 15684 archive_cmds_need_lc_CXX=yes 15685 no_undefined_flag_CXX=' -zdefs' 15686 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15687 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15688 $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' 15689 15690 hardcode_libdir_flag_spec_CXX='-R$libdir' 15691 hardcode_shlibpath_var_CXX=no 15692 case $host_os in 15693 solaris2.[0-5] | solaris2.[0-5].*) ;; 15694 *) 15695 # The compiler driver will combine and reorder linker options, 15696 # but understands '-z linker_flag'. 15697 # Supported since Solaris 2.6 (maybe 2.5.1?) 15698 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15699 ;; 15700 esac 15701 link_all_deplibs_CXX=yes 15702 15703 output_verbose_link_cmd='func_echo_all' 15704 15705 # Archives containing C++ object files must be created using 15706 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15707 # necessary to make sure instantiated templates are included 15708 # in the archive. 15709 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15710 ;; 15711 gcx*) 15712 # Green Hills C++ Compiler 15713 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15714 15715 # The C++ compiler must be used to create the archive. 15716 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15717 ;; 15718 *) 15719 # GNU C++ compiler with Solaris linker 15720 if test yes,no = "$GXX,$with_gnu_ld"; then 15721 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15722 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15723 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15724 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15725 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15726 15727 # Commands to make compiler produce verbose output that lists 15728 # what "hidden" libraries, object files and flags are used when 15729 # linking a shared library. 15730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15731 else 15732 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15733 # platform. 15734 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15735 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15736 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15737 15738 # Commands to make compiler produce verbose output that lists 15739 # what "hidden" libraries, object files and flags are used when 15740 # linking a shared library. 15741 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15742 fi 15743 15744 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15745 case $host_os in 15746 solaris2.[0-5] | solaris2.[0-5].*) ;; 15747 *) 15748 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15749 ;; 15750 esac 15751 fi 15752 ;; 15753 esac 15754 ;; 15755 15756 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15757 no_undefined_flag_CXX='$wl-z,text' 15758 archive_cmds_need_lc_CXX=no 15759 hardcode_shlibpath_var_CXX=no 15760 runpath_var='LD_RUN_PATH' 15761 15762 case $cc_basename in 15763 CC*) 15764 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15765 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15766 ;; 15767 *) 15768 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15769 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15770 ;; 15771 esac 15772 ;; 15773 15774 sysv5* | sco3.2v5* | sco5v6*) 15775 # Note: We CANNOT use -z defs as we might desire, because we do not 15776 # link with -lc, and that would cause any symbols used from libc to 15777 # always be unresolved, which means just about no library would 15778 # ever link correctly. If we're not using GNU ld we use -z text 15779 # though, which does catch some bad symbols but isn't as heavy-handed 15780 # as -z defs. 15781 no_undefined_flag_CXX='$wl-z,text' 15782 allow_undefined_flag_CXX='$wl-z,nodefs' 15783 archive_cmds_need_lc_CXX=no 15784 hardcode_shlibpath_var_CXX=no 15785 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15786 hardcode_libdir_separator_CXX=':' 15787 link_all_deplibs_CXX=yes 15788 export_dynamic_flag_spec_CXX='$wl-Bexport' 15789 runpath_var='LD_RUN_PATH' 15790 15791 case $cc_basename in 15792 CC*) 15793 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15794 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15795 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15796 '"$old_archive_cmds_CXX" 15797 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15798 '"$reload_cmds_CXX" 15799 ;; 15800 *) 15801 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15802 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15803 ;; 15804 esac 15805 ;; 15806 15807 tandem*) 15808 case $cc_basename in 15809 NCC*) 15810 # NonStop-UX NCC 3.20 15811 # FIXME: insert proper C++ library support 15812 ld_shlibs_CXX=no 15813 ;; 15814 *) 15815 # FIXME: insert proper C++ library support 15816 ld_shlibs_CXX=no 15817 ;; 15818 esac 15819 ;; 15820 15821 vxworks*) 15822 # FIXME: insert proper C++ library support 15823 ld_shlibs_CXX=no 15824 ;; 15825 15826 *) 15827 # FIXME: insert proper C++ library support 15828 ld_shlibs_CXX=no 15829 ;; 15830 esac 15831 15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15833printf "%s\n" "$ld_shlibs_CXX" >&6; } 15834 test no = "$ld_shlibs_CXX" && can_build_shared=no 15835 15836 GCC_CXX=$GXX 15837 LD_CXX=$LD 15838 15839 ## CAVEAT EMPTOR: 15840 ## There is no encapsulation within the following macros, do not change 15841 ## the running order or otherwise move them around unless you know exactly 15842 ## what you are doing... 15843 # Dependencies to place before and after the object being linked: 15844predep_objects_CXX= 15845postdep_objects_CXX= 15846predeps_CXX= 15847postdeps_CXX= 15848compiler_lib_search_path_CXX= 15849 15850cat > conftest.$ac_ext <<_LT_EOF 15851class Foo 15852{ 15853public: 15854 Foo (void) { a = 0; } 15855private: 15856 int a; 15857}; 15858_LT_EOF 15859 15860 15861_lt_libdeps_save_CFLAGS=$CFLAGS 15862case "$CC $CFLAGS " in #( 15863*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15864*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15865*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15866esac 15867 15868if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15869 (eval $ac_compile) 2>&5 15870 ac_status=$? 15871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15872 test $ac_status = 0; }; then 15873 # Parse the compiler output and extract the necessary 15874 # objects, libraries and library flags. 15875 15876 # Sentinel used to keep track of whether or not we are before 15877 # the conftest object file. 15878 pre_test_object_deps_done=no 15879 15880 for p in `eval "$output_verbose_link_cmd"`; do 15881 case $prev$p in 15882 15883 -L* | -R* | -l*) 15884 # Some compilers place space between "-{L,R}" and the path. 15885 # Remove the space. 15886 if test x-L = "$p" || 15887 test x-R = "$p"; then 15888 prev=$p 15889 continue 15890 fi 15891 15892 # Expand the sysroot to ease extracting the directories later. 15893 if test -z "$prev"; then 15894 case $p in 15895 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15896 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15897 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15898 esac 15899 fi 15900 case $p in 15901 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15902 esac 15903 if test no = "$pre_test_object_deps_done"; then 15904 case $prev in 15905 -L | -R) 15906 # Internal compiler library paths should come after those 15907 # provided the user. The postdeps already come after the 15908 # user supplied libs so there is no need to process them. 15909 if test -z "$compiler_lib_search_path_CXX"; then 15910 compiler_lib_search_path_CXX=$prev$p 15911 else 15912 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15913 fi 15914 ;; 15915 # The "-l" case would never come before the object being 15916 # linked, so don't bother handling this case. 15917 esac 15918 else 15919 if test -z "$postdeps_CXX"; then 15920 postdeps_CXX=$prev$p 15921 else 15922 postdeps_CXX="${postdeps_CXX} $prev$p" 15923 fi 15924 fi 15925 prev= 15926 ;; 15927 15928 *.lto.$objext) ;; # Ignore GCC LTO objects 15929 *.$objext) 15930 # This assumes that the test object file only shows up 15931 # once in the compiler output. 15932 if test "$p" = "conftest.$objext"; then 15933 pre_test_object_deps_done=yes 15934 continue 15935 fi 15936 15937 if test no = "$pre_test_object_deps_done"; then 15938 if test -z "$predep_objects_CXX"; then 15939 predep_objects_CXX=$p 15940 else 15941 predep_objects_CXX="$predep_objects_CXX $p" 15942 fi 15943 else 15944 if test -z "$postdep_objects_CXX"; then 15945 postdep_objects_CXX=$p 15946 else 15947 postdep_objects_CXX="$postdep_objects_CXX $p" 15948 fi 15949 fi 15950 ;; 15951 15952 *) ;; # Ignore the rest. 15953 15954 esac 15955 done 15956 15957 # Clean up. 15958 rm -f a.out a.exe 15959else 15960 echo "libtool.m4: error: problem compiling CXX test program" 15961fi 15962 15963$RM -f confest.$objext 15964CFLAGS=$_lt_libdeps_save_CFLAGS 15965 15966# PORTME: override above test on systems where it is broken 15967case $host_os in 15968interix[3-9]*) 15969 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15970 # hack all around it, let's just trust "g++" to DTRT. 15971 predep_objects_CXX= 15972 postdep_objects_CXX= 15973 postdeps_CXX= 15974 ;; 15975esac 15976 15977 15978case " $postdeps_CXX " in 15979*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15980esac 15981 compiler_lib_search_dirs_CXX= 15982if test -n "${compiler_lib_search_path_CXX}"; then 15983 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15984fi 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 lt_prog_compiler_wl_CXX= 16017lt_prog_compiler_pic_CXX= 16018lt_prog_compiler_static_CXX= 16019 16020 16021 # C++ specific cases for pic, static, wl, etc. 16022 if test yes = "$GXX"; then 16023 lt_prog_compiler_wl_CXX='-Wl,' 16024 lt_prog_compiler_static_CXX='-static' 16025 16026 case $host_os in 16027 aix*) 16028 # All AIX code is PIC. 16029 if test ia64 = "$host_cpu"; then 16030 # AIX 5 now supports IA64 processor 16031 lt_prog_compiler_static_CXX='-Bstatic' 16032 fi 16033 lt_prog_compiler_pic_CXX='-fPIC' 16034 ;; 16035 16036 amigaos*) 16037 case $host_cpu in 16038 powerpc) 16039 # see comment about AmigaOS4 .so support 16040 lt_prog_compiler_pic_CXX='-fPIC' 16041 ;; 16042 m68k) 16043 # FIXME: we need at least 68020 code to build shared libraries, but 16044 # adding the '-m68020' flag to GCC prevents building anything better, 16045 # like '-m68040'. 16046 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16047 ;; 16048 esac 16049 ;; 16050 16051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16052 # PIC is the default for these OSes. 16053 ;; 16054 mingw* | cygwin* | os2* | pw32* | cegcc*) 16055 # This hack is so that the source file can tell whether it is being 16056 # built for inclusion in a dll (and should export symbols for example). 16057 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16058 # (--disable-auto-import) libraries 16059 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16060 case $host_os in 16061 os2*) 16062 lt_prog_compiler_static_CXX='$wl-static' 16063 ;; 16064 esac 16065 ;; 16066 darwin* | rhapsody*) 16067 # PIC is the default on this platform 16068 # Common symbols not allowed in MH_DYLIB files 16069 lt_prog_compiler_pic_CXX='-fno-common' 16070 ;; 16071 *djgpp*) 16072 # DJGPP does not support shared libraries at all 16073 lt_prog_compiler_pic_CXX= 16074 ;; 16075 haiku*) 16076 # PIC is the default for Haiku. 16077 # The "-static" flag exists, but is broken. 16078 lt_prog_compiler_static_CXX= 16079 ;; 16080 interix[3-9]*) 16081 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16082 # Instead, we relocate shared libraries at runtime. 16083 ;; 16084 sysv4*MP*) 16085 if test -d /usr/nec; then 16086 lt_prog_compiler_pic_CXX=-Kconform_pic 16087 fi 16088 ;; 16089 hpux*) 16090 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16091 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16092 # sets the default TLS model and affects inlining. 16093 case $host_cpu in 16094 hppa*64*) 16095 ;; 16096 *) 16097 lt_prog_compiler_pic_CXX='-fPIC' 16098 ;; 16099 esac 16100 ;; 16101 *qnx* | *nto*) 16102 # QNX uses GNU C++, but need to define -shared option too, otherwise 16103 # it will coredump. 16104 lt_prog_compiler_pic_CXX='-fPIC -shared' 16105 ;; 16106 *) 16107 lt_prog_compiler_pic_CXX='-fPIC' 16108 ;; 16109 esac 16110 else 16111 case $host_os in 16112 aix[4-9]*) 16113 # All AIX code is PIC. 16114 if test ia64 = "$host_cpu"; then 16115 # AIX 5 now supports IA64 processor 16116 lt_prog_compiler_static_CXX='-Bstatic' 16117 else 16118 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16119 fi 16120 ;; 16121 chorus*) 16122 case $cc_basename in 16123 cxch68*) 16124 # Green Hills C++ Compiler 16125 # _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" 16126 ;; 16127 esac 16128 ;; 16129 mingw* | cygwin* | os2* | pw32* | cegcc*) 16130 # This hack is so that the source file can tell whether it is being 16131 # built for inclusion in a dll (and should export symbols for example). 16132 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16133 ;; 16134 dgux*) 16135 case $cc_basename in 16136 ec++*) 16137 lt_prog_compiler_pic_CXX='-KPIC' 16138 ;; 16139 ghcx*) 16140 # Green Hills C++ Compiler 16141 lt_prog_compiler_pic_CXX='-pic' 16142 ;; 16143 *) 16144 ;; 16145 esac 16146 ;; 16147 freebsd* | dragonfly*) 16148 # FreeBSD uses GNU C++ 16149 ;; 16150 hpux9* | hpux10* | hpux11*) 16151 case $cc_basename in 16152 CC*) 16153 lt_prog_compiler_wl_CXX='-Wl,' 16154 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16155 if test ia64 != "$host_cpu"; then 16156 lt_prog_compiler_pic_CXX='+Z' 16157 fi 16158 ;; 16159 aCC*) 16160 lt_prog_compiler_wl_CXX='-Wl,' 16161 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16162 case $host_cpu in 16163 hppa*64*|ia64*) 16164 # +Z the default 16165 ;; 16166 *) 16167 lt_prog_compiler_pic_CXX='+Z' 16168 ;; 16169 esac 16170 ;; 16171 *) 16172 ;; 16173 esac 16174 ;; 16175 interix*) 16176 # This is c89, which is MS Visual C++ (no shared libs) 16177 # Anyone wants to do a port? 16178 ;; 16179 irix5* | irix6* | nonstopux*) 16180 case $cc_basename in 16181 CC*) 16182 lt_prog_compiler_wl_CXX='-Wl,' 16183 lt_prog_compiler_static_CXX='-non_shared' 16184 # CC pic flag -KPIC is the default. 16185 ;; 16186 *) 16187 ;; 16188 esac 16189 ;; 16190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16191 case $cc_basename in 16192 KCC*) 16193 # KAI C++ Compiler 16194 lt_prog_compiler_wl_CXX='--backend -Wl,' 16195 lt_prog_compiler_pic_CXX='-fPIC' 16196 ;; 16197 ecpc* ) 16198 # old Intel C++ for x86_64, which still supported -KPIC. 16199 lt_prog_compiler_wl_CXX='-Wl,' 16200 lt_prog_compiler_pic_CXX='-KPIC' 16201 lt_prog_compiler_static_CXX='-static' 16202 ;; 16203 icpc* ) 16204 # Intel C++, used to be incompatible with GCC. 16205 # ICC 10 doesn't accept -KPIC any more. 16206 lt_prog_compiler_wl_CXX='-Wl,' 16207 lt_prog_compiler_pic_CXX='-fPIC' 16208 lt_prog_compiler_static_CXX='-static' 16209 ;; 16210 pgCC* | pgcpp*) 16211 # Portland Group C++ compiler 16212 lt_prog_compiler_wl_CXX='-Wl,' 16213 lt_prog_compiler_pic_CXX='-fpic' 16214 lt_prog_compiler_static_CXX='-Bstatic' 16215 ;; 16216 cxx*) 16217 # Compaq C++ 16218 # Make sure the PIC flag is empty. It appears that all Alpha 16219 # Linux and Compaq Tru64 Unix objects are PIC. 16220 lt_prog_compiler_pic_CXX= 16221 lt_prog_compiler_static_CXX='-non_shared' 16222 ;; 16223 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16224 # IBM XL 8.0, 9.0 on PPC and BlueGene 16225 lt_prog_compiler_wl_CXX='-Wl,' 16226 lt_prog_compiler_pic_CXX='-qpic' 16227 lt_prog_compiler_static_CXX='-qstaticlink' 16228 ;; 16229 *) 16230 case `$CC -V 2>&1 | sed 5q` in 16231 *Sun\ C*) 16232 # Sun C++ 5.9 16233 lt_prog_compiler_pic_CXX='-KPIC' 16234 lt_prog_compiler_static_CXX='-Bstatic' 16235 lt_prog_compiler_wl_CXX='-Qoption ld ' 16236 ;; 16237 esac 16238 ;; 16239 esac 16240 ;; 16241 lynxos*) 16242 ;; 16243 m88k*) 16244 ;; 16245 mvs*) 16246 case $cc_basename in 16247 cxx*) 16248 lt_prog_compiler_pic_CXX='-W c,exportall' 16249 ;; 16250 *) 16251 ;; 16252 esac 16253 ;; 16254 netbsd*) 16255 ;; 16256 *qnx* | *nto*) 16257 # QNX uses GNU C++, but need to define -shared option too, otherwise 16258 # it will coredump. 16259 lt_prog_compiler_pic_CXX='-fPIC -shared' 16260 ;; 16261 osf3* | osf4* | osf5*) 16262 case $cc_basename in 16263 KCC*) 16264 lt_prog_compiler_wl_CXX='--backend -Wl,' 16265 ;; 16266 RCC*) 16267 # Rational C++ 2.4.1 16268 lt_prog_compiler_pic_CXX='-pic' 16269 ;; 16270 cxx*) 16271 # Digital/Compaq C++ 16272 lt_prog_compiler_wl_CXX='-Wl,' 16273 # Make sure the PIC flag is empty. It appears that all Alpha 16274 # Linux and Compaq Tru64 Unix objects are PIC. 16275 lt_prog_compiler_pic_CXX= 16276 lt_prog_compiler_static_CXX='-non_shared' 16277 ;; 16278 *) 16279 ;; 16280 esac 16281 ;; 16282 psos*) 16283 ;; 16284 solaris*) 16285 case $cc_basename in 16286 CC* | sunCC*) 16287 # Sun C++ 4.2, 5.x and Centerline C++ 16288 lt_prog_compiler_pic_CXX='-KPIC' 16289 lt_prog_compiler_static_CXX='-Bstatic' 16290 lt_prog_compiler_wl_CXX='-Qoption ld ' 16291 ;; 16292 gcx*) 16293 # Green Hills C++ Compiler 16294 lt_prog_compiler_pic_CXX='-PIC' 16295 ;; 16296 *) 16297 ;; 16298 esac 16299 ;; 16300 sunos4*) 16301 case $cc_basename in 16302 CC*) 16303 # Sun C++ 4.x 16304 lt_prog_compiler_pic_CXX='-pic' 16305 lt_prog_compiler_static_CXX='-Bstatic' 16306 ;; 16307 lcc*) 16308 # Lucid 16309 lt_prog_compiler_pic_CXX='-pic' 16310 ;; 16311 *) 16312 ;; 16313 esac 16314 ;; 16315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16316 case $cc_basename in 16317 CC*) 16318 lt_prog_compiler_wl_CXX='-Wl,' 16319 lt_prog_compiler_pic_CXX='-KPIC' 16320 lt_prog_compiler_static_CXX='-Bstatic' 16321 ;; 16322 esac 16323 ;; 16324 tandem*) 16325 case $cc_basename in 16326 NCC*) 16327 # NonStop-UX NCC 3.20 16328 lt_prog_compiler_pic_CXX='-KPIC' 16329 ;; 16330 *) 16331 ;; 16332 esac 16333 ;; 16334 vxworks*) 16335 ;; 16336 *) 16337 lt_prog_compiler_can_build_shared_CXX=no 16338 ;; 16339 esac 16340 fi 16341 16342case $host_os in 16343 # For platforms that do not support PIC, -DPIC is meaningless: 16344 *djgpp*) 16345 lt_prog_compiler_pic_CXX= 16346 ;; 16347 *) 16348 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16349 ;; 16350esac 16351 16352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16353printf %s "checking for $compiler option to produce PIC... " >&6; } 16354if test ${lt_cv_prog_compiler_pic_CXX+y} 16355then : 16356 printf %s "(cached) " >&6 16357else $as_nop 16358 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16359fi 16360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16361printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 16362lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16363 16364# 16365# Check to make sure the PIC flag actually works. 16366# 16367if test -n "$lt_prog_compiler_pic_CXX"; then 16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16369printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16370if test ${lt_cv_prog_compiler_pic_works_CXX+y} 16371then : 16372 printf %s "(cached) " >&6 16373else $as_nop 16374 lt_cv_prog_compiler_pic_works_CXX=no 16375 ac_outfile=conftest.$ac_objext 16376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16377 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 16378 # Insert the option either (1) after the last *FLAGS variable, or 16379 # (2) before a word containing "conftest.", or (3) at the end. 16380 # Note that $ac_compile itself does not contain backslashes and begins 16381 # with a dollar sign (not a hyphen), so the echo should work correctly. 16382 # The option is referenced via a variable to avoid confusing sed. 16383 lt_compile=`echo "$ac_compile" | $SED \ 16384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16386 -e 's:$: $lt_compiler_flag:'` 16387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16388 (eval "$lt_compile" 2>conftest.err) 16389 ac_status=$? 16390 cat conftest.err >&5 16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16392 if (exit $ac_status) && test -s "$ac_outfile"; then 16393 # The compiler can only warn and ignore the option if not recognized 16394 # So say no if there are warnings other than the usual output. 16395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16398 lt_cv_prog_compiler_pic_works_CXX=yes 16399 fi 16400 fi 16401 $RM conftest* 16402 16403fi 16404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16405printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16406 16407if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16408 case $lt_prog_compiler_pic_CXX in 16409 "" | " "*) ;; 16410 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16411 esac 16412else 16413 lt_prog_compiler_pic_CXX= 16414 lt_prog_compiler_can_build_shared_CXX=no 16415fi 16416 16417fi 16418 16419 16420 16421 16422 16423# 16424# Check to make sure the static flag actually works. 16425# 16426wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16428printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16429if test ${lt_cv_prog_compiler_static_works_CXX+y} 16430then : 16431 printf %s "(cached) " >&6 16432else $as_nop 16433 lt_cv_prog_compiler_static_works_CXX=no 16434 save_LDFLAGS=$LDFLAGS 16435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16436 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16438 # The linker can only warn and ignore the option if not recognized 16439 # So say no if there are warnings 16440 if test -s conftest.err; then 16441 # Append any errors to the config.log. 16442 cat conftest.err 1>&5 16443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16445 if diff conftest.exp conftest.er2 >/dev/null; then 16446 lt_cv_prog_compiler_static_works_CXX=yes 16447 fi 16448 else 16449 lt_cv_prog_compiler_static_works_CXX=yes 16450 fi 16451 fi 16452 $RM -r conftest* 16453 LDFLAGS=$save_LDFLAGS 16454 16455fi 16456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16457printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16458 16459if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16460 : 16461else 16462 lt_prog_compiler_static_CXX= 16463fi 16464 16465 16466 16467 16468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16469printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16470if test ${lt_cv_prog_compiler_c_o_CXX+y} 16471then : 16472 printf %s "(cached) " >&6 16473else $as_nop 16474 lt_cv_prog_compiler_c_o_CXX=no 16475 $RM -r conftest 2>/dev/null 16476 mkdir conftest 16477 cd conftest 16478 mkdir out 16479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16480 16481 lt_compiler_flag="-o out/conftest2.$ac_objext" 16482 # Insert the option either (1) after the last *FLAGS variable, or 16483 # (2) before a word containing "conftest.", or (3) at the end. 16484 # Note that $ac_compile itself does not contain backslashes and begins 16485 # with a dollar sign (not a hyphen), so the echo should work correctly. 16486 lt_compile=`echo "$ac_compile" | $SED \ 16487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16489 -e 's:$: $lt_compiler_flag:'` 16490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16491 (eval "$lt_compile" 2>out/conftest.err) 16492 ac_status=$? 16493 cat out/conftest.err >&5 16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16495 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16496 then 16497 # The compiler can only warn and ignore the option if not recognized 16498 # So say no if there are warnings 16499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16502 lt_cv_prog_compiler_c_o_CXX=yes 16503 fi 16504 fi 16505 chmod u+w . 2>&5 16506 $RM conftest* 16507 # SGI C++ compiler will create directory out/ii_files/ for 16508 # template instantiation 16509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16510 $RM out/* && rmdir out 16511 cd .. 16512 $RM -r conftest 16513 $RM conftest* 16514 16515fi 16516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16517printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16518 16519 16520 16521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16522printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16523if test ${lt_cv_prog_compiler_c_o_CXX+y} 16524then : 16525 printf %s "(cached) " >&6 16526else $as_nop 16527 lt_cv_prog_compiler_c_o_CXX=no 16528 $RM -r conftest 2>/dev/null 16529 mkdir conftest 16530 cd conftest 16531 mkdir out 16532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16533 16534 lt_compiler_flag="-o out/conftest2.$ac_objext" 16535 # Insert the option either (1) after the last *FLAGS variable, or 16536 # (2) before a word containing "conftest.", or (3) at the end. 16537 # Note that $ac_compile itself does not contain backslashes and begins 16538 # with a dollar sign (not a hyphen), so the echo should work correctly. 16539 lt_compile=`echo "$ac_compile" | $SED \ 16540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16542 -e 's:$: $lt_compiler_flag:'` 16543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16544 (eval "$lt_compile" 2>out/conftest.err) 16545 ac_status=$? 16546 cat out/conftest.err >&5 16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16548 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16549 then 16550 # The compiler can only warn and ignore the option if not recognized 16551 # So say no if there are warnings 16552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16555 lt_cv_prog_compiler_c_o_CXX=yes 16556 fi 16557 fi 16558 chmod u+w . 2>&5 16559 $RM conftest* 16560 # SGI C++ compiler will create directory out/ii_files/ for 16561 # template instantiation 16562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16563 $RM out/* && rmdir out 16564 cd .. 16565 $RM -r conftest 16566 $RM conftest* 16567 16568fi 16569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16570printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16571 16572 16573 16574 16575hard_links=nottested 16576if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16577 # do not overwrite the value of need_locks provided by the user 16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16579printf %s "checking if we can lock with hard links... " >&6; } 16580 hard_links=yes 16581 $RM conftest* 16582 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16583 touch conftest.a 16584 ln conftest.a conftest.b 2>&5 || hard_links=no 16585 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16587printf "%s\n" "$hard_links" >&6; } 16588 if test no = "$hard_links"; then 16589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16590printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16591 need_locks=warn 16592 fi 16593else 16594 need_locks=no 16595fi 16596 16597 16598 16599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16600printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16601 16602 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16603 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16604 case $host_os in 16605 aix[4-9]*) 16606 # If we're using GNU nm, then we don't want the "-C" option. 16607 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16608 # Without the "-l" option, or with the "-B" option, AIX nm treats 16609 # weak defined symbols like other global defined symbols, whereas 16610 # GNU nm marks them as "W". 16611 # While the 'weak' keyword is ignored in the Export File, we need 16612 # it in the Import File for the 'aix-soname' feature, so we have 16613 # to replace the "-B" option with "-P" for AIX nm. 16614 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16615 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16616 else 16617 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16618 fi 16619 ;; 16620 pw32*) 16621 export_symbols_cmds_CXX=$ltdll_cmds 16622 ;; 16623 cygwin* | mingw* | cegcc*) 16624 case $cc_basename in 16625 cl*) 16626 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16627 ;; 16628 *) 16629 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' 16630 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16631 ;; 16632 esac 16633 ;; 16634 *) 16635 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16636 ;; 16637 esac 16638 16639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16640printf "%s\n" "$ld_shlibs_CXX" >&6; } 16641test no = "$ld_shlibs_CXX" && can_build_shared=no 16642 16643with_gnu_ld_CXX=$with_gnu_ld 16644 16645 16646 16647 16648 16649 16650# 16651# Do we need to explicitly link libc? 16652# 16653case "x$archive_cmds_need_lc_CXX" in 16654x|xyes) 16655 # Assume -lc should be added 16656 archive_cmds_need_lc_CXX=yes 16657 16658 if test yes,yes = "$GCC,$enable_shared"; then 16659 case $archive_cmds_CXX in 16660 *'~'*) 16661 # FIXME: we may have to deal with multi-command sequences. 16662 ;; 16663 '$CC '*) 16664 # Test whether the compiler implicitly links with -lc since on some 16665 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16666 # to ld, don't add -lc before -lgcc. 16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16668printf %s "checking whether -lc should be explicitly linked in... " >&6; } 16669if test ${lt_cv_archive_cmds_need_lc_CXX+y} 16670then : 16671 printf %s "(cached) " >&6 16672else $as_nop 16673 $RM conftest* 16674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16675 16676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16677 (eval $ac_compile) 2>&5 16678 ac_status=$? 16679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16680 test $ac_status = 0; } 2>conftest.err; then 16681 soname=conftest 16682 lib=conftest 16683 libobjs=conftest.$ac_objext 16684 deplibs= 16685 wl=$lt_prog_compiler_wl_CXX 16686 pic_flag=$lt_prog_compiler_pic_CXX 16687 compiler_flags=-v 16688 linker_flags=-v 16689 verstring= 16690 output_objdir=. 16691 libname=conftest 16692 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16693 allow_undefined_flag_CXX= 16694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16695 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16696 ac_status=$? 16697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16698 test $ac_status = 0; } 16699 then 16700 lt_cv_archive_cmds_need_lc_CXX=no 16701 else 16702 lt_cv_archive_cmds_need_lc_CXX=yes 16703 fi 16704 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16705 else 16706 cat conftest.err 1>&5 16707 fi 16708 $RM conftest* 16709 16710fi 16711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16712printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16713 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16714 ;; 16715 esac 16716 fi 16717 ;; 16718esac 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16782printf %s "checking dynamic linker characteristics... " >&6; } 16783 16784library_names_spec= 16785libname_spec='lib$name' 16786soname_spec= 16787shrext_cmds=.so 16788postinstall_cmds= 16789postuninstall_cmds= 16790finish_cmds= 16791finish_eval= 16792shlibpath_var= 16793shlibpath_overrides_runpath=unknown 16794version_type=none 16795dynamic_linker="$host_os ld.so" 16796sys_lib_dlsearch_path_spec="/lib /usr/lib" 16797need_lib_prefix=unknown 16798hardcode_into_libs=no 16799 16800# when you set need_version to no, make sure it does not cause -set_version 16801# flags to be left without arguments 16802need_version=unknown 16803 16804 16805 16806case $host_os in 16807aix3*) 16808 version_type=linux # correct to gnu/linux during the next big refactor 16809 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16810 shlibpath_var=LIBPATH 16811 16812 # AIX 3 has no versioning support, so we append a major version to the name. 16813 soname_spec='$libname$release$shared_ext$major' 16814 ;; 16815 16816aix[4-9]*) 16817 version_type=linux # correct to gnu/linux during the next big refactor 16818 need_lib_prefix=no 16819 need_version=no 16820 hardcode_into_libs=yes 16821 if test ia64 = "$host_cpu"; then 16822 # AIX 5 supports IA64 16823 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16824 shlibpath_var=LD_LIBRARY_PATH 16825 else 16826 # With GCC up to 2.95.x, collect2 would create an import file 16827 # for dependence libraries. The import file would start with 16828 # the line '#! .'. This would cause the generated library to 16829 # depend on '.', always an invalid library. This was fixed in 16830 # development snapshots of GCC prior to 3.0. 16831 case $host_os in 16832 aix4 | aix4.[01] | aix4.[01].*) 16833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16834 echo ' yes ' 16835 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16836 : 16837 else 16838 can_build_shared=no 16839 fi 16840 ;; 16841 esac 16842 # Using Import Files as archive members, it is possible to support 16843 # filename-based versioning of shared library archives on AIX. While 16844 # this would work for both with and without runtime linking, it will 16845 # prevent static linking of such archives. So we do filename-based 16846 # shared library versioning with .so extension only, which is used 16847 # when both runtime linking and shared linking is enabled. 16848 # Unfortunately, runtime linking may impact performance, so we do 16849 # not want this to be the default eventually. Also, we use the 16850 # versioned .so libs for executables only if there is the -brtl 16851 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16852 # To allow for filename-based versioning support, we need to create 16853 # libNAME.so.V as an archive file, containing: 16854 # *) an Import File, referring to the versioned filename of the 16855 # archive as well as the shared archive member, telling the 16856 # bitwidth (32 or 64) of that shared object, and providing the 16857 # list of exported symbols of that shared object, eventually 16858 # decorated with the 'weak' keyword 16859 # *) the shared object with the F_LOADONLY flag set, to really avoid 16860 # it being seen by the linker. 16861 # At run time we better use the real file rather than another symlink, 16862 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16863 16864 case $with_aix_soname,$aix_use_runtimelinking in 16865 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16866 # soname into executable. Probably we can add versioning support to 16867 # collect2, so additional links can be useful in future. 16868 aix,yes) # traditional libtool 16869 dynamic_linker='AIX unversionable lib.so' 16870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16871 # instead of lib<name>.a to let people know that these are not 16872 # typical AIX shared libraries. 16873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16874 ;; 16875 aix,no) # traditional AIX only 16876 dynamic_linker='AIX lib.a(lib.so.V)' 16877 # We preserve .a as extension for shared libraries through AIX4.2 16878 # and later when we are not doing run time linking. 16879 library_names_spec='$libname$release.a $libname.a' 16880 soname_spec='$libname$release$shared_ext$major' 16881 ;; 16882 svr4,*) # full svr4 only 16883 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16884 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16885 # We do not specify a path in Import Files, so LIBPATH fires. 16886 shlibpath_overrides_runpath=yes 16887 ;; 16888 *,yes) # both, prefer svr4 16889 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16890 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16891 # unpreferred sharedlib libNAME.a needs extra handling 16892 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16893 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16894 # We do not specify a path in Import Files, so LIBPATH fires. 16895 shlibpath_overrides_runpath=yes 16896 ;; 16897 *,no) # both, prefer aix 16898 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16899 library_names_spec='$libname$release.a $libname.a' 16900 soname_spec='$libname$release$shared_ext$major' 16901 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16902 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16903 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16904 ;; 16905 esac 16906 shlibpath_var=LIBPATH 16907 fi 16908 ;; 16909 16910amigaos*) 16911 case $host_cpu in 16912 powerpc) 16913 # Since July 2007 AmigaOS4 officially supports .so libraries. 16914 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16916 ;; 16917 m68k) 16918 library_names_spec='$libname.ixlibrary $libname.a' 16919 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16920 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16921 ;; 16922 esac 16923 ;; 16924 16925beos*) 16926 library_names_spec='$libname$shared_ext' 16927 dynamic_linker="$host_os ld.so" 16928 shlibpath_var=LIBRARY_PATH 16929 ;; 16930 16931bsdi[45]*) 16932 version_type=linux # correct to gnu/linux during the next big refactor 16933 need_version=no 16934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16935 soname_spec='$libname$release$shared_ext$major' 16936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16937 shlibpath_var=LD_LIBRARY_PATH 16938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16940 # the default ld.so.conf also contains /usr/contrib/lib and 16941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16942 # libtool to hard-code these into programs 16943 ;; 16944 16945cygwin* | mingw* | pw32* | cegcc*) 16946 version_type=windows 16947 shrext_cmds=.dll 16948 need_version=no 16949 need_lib_prefix=no 16950 16951 case $GCC,$cc_basename in 16952 yes,*) 16953 # gcc 16954 library_names_spec='$libname.dll.a' 16955 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16956 postinstall_cmds='base_file=`basename \$file`~ 16957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16958 dldir=$destdir/`dirname \$dlpath`~ 16959 test -d \$dldir || mkdir -p \$dldir~ 16960 $install_prog $dir/$dlname \$dldir/$dlname~ 16961 chmod a+x \$dldir/$dlname~ 16962 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16963 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16964 fi' 16965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16966 dlpath=$dir/\$dldll~ 16967 $RM \$dlpath' 16968 shlibpath_overrides_runpath=yes 16969 16970 case $host_os in 16971 cygwin*) 16972 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16973 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16974 16975 ;; 16976 mingw* | cegcc*) 16977 # MinGW DLLs use traditional 'lib' prefix 16978 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16979 ;; 16980 pw32*) 16981 # pw32 DLLs use 'pw' prefix rather than 'lib' 16982 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16983 ;; 16984 esac 16985 dynamic_linker='Win32 ld.exe' 16986 ;; 16987 16988 *,cl*) 16989 # Native MSVC 16990 libname_spec='$name' 16991 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16992 library_names_spec='$libname.dll.lib' 16993 16994 case $build_os in 16995 mingw*) 16996 sys_lib_search_path_spec= 16997 lt_save_ifs=$IFS 16998 IFS=';' 16999 for lt_path in $LIB 17000 do 17001 IFS=$lt_save_ifs 17002 # Let DOS variable expansion print the short 8.3 style file name. 17003 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17004 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17005 done 17006 IFS=$lt_save_ifs 17007 # Convert to MSYS style. 17008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17009 ;; 17010 cygwin*) 17011 # Convert to unix form, then to dos form, then back to unix form 17012 # but this time dos style (no spaces!) so that the unix form looks 17013 # like /cygdrive/c/PROGRA~1:/cygdr... 17014 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17015 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17016 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17017 ;; 17018 *) 17019 sys_lib_search_path_spec=$LIB 17020 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17021 # It is most probably a Windows format PATH. 17022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17023 else 17024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17025 fi 17026 # FIXME: find the short name or the path components, as spaces are 17027 # common. (e.g. "Program Files" -> "PROGRA~1") 17028 ;; 17029 esac 17030 17031 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17032 postinstall_cmds='base_file=`basename \$file`~ 17033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17034 dldir=$destdir/`dirname \$dlpath`~ 17035 test -d \$dldir || mkdir -p \$dldir~ 17036 $install_prog $dir/$dlname \$dldir/$dlname' 17037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17038 dlpath=$dir/\$dldll~ 17039 $RM \$dlpath' 17040 shlibpath_overrides_runpath=yes 17041 dynamic_linker='Win32 link.exe' 17042 ;; 17043 17044 *) 17045 # Assume MSVC wrapper 17046 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17047 dynamic_linker='Win32 ld.exe' 17048 ;; 17049 esac 17050 # FIXME: first we should search . and the directory the executable is in 17051 shlibpath_var=PATH 17052 ;; 17053 17054darwin* | rhapsody*) 17055 dynamic_linker="$host_os dyld" 17056 version_type=darwin 17057 need_lib_prefix=no 17058 need_version=no 17059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17060 soname_spec='$libname$release$major$shared_ext' 17061 shlibpath_overrides_runpath=yes 17062 shlibpath_var=DYLD_LIBRARY_PATH 17063 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17064 17065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17066 ;; 17067 17068dgux*) 17069 version_type=linux # correct to gnu/linux during the next big refactor 17070 need_lib_prefix=no 17071 need_version=no 17072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17073 soname_spec='$libname$release$shared_ext$major' 17074 shlibpath_var=LD_LIBRARY_PATH 17075 ;; 17076 17077freebsd* | dragonfly*) 17078 # DragonFly does not have aout. When/if they implement a new 17079 # versioning mechanism, adjust this. 17080 if test -x /usr/bin/objformat; then 17081 objformat=`/usr/bin/objformat` 17082 else 17083 case $host_os in 17084 freebsd[23].*) objformat=aout ;; 17085 *) objformat=elf ;; 17086 esac 17087 fi 17088 version_type=freebsd-$objformat 17089 case $version_type in 17090 freebsd-elf*) 17091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17092 soname_spec='$libname$release$shared_ext$major' 17093 need_version=no 17094 need_lib_prefix=no 17095 ;; 17096 freebsd-*) 17097 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17098 need_version=yes 17099 ;; 17100 esac 17101 shlibpath_var=LD_LIBRARY_PATH 17102 case $host_os in 17103 freebsd2.*) 17104 shlibpath_overrides_runpath=yes 17105 ;; 17106 freebsd3.[01]* | freebsdelf3.[01]*) 17107 shlibpath_overrides_runpath=yes 17108 hardcode_into_libs=yes 17109 ;; 17110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17112 shlibpath_overrides_runpath=no 17113 hardcode_into_libs=yes 17114 ;; 17115 *) # from 4.6 on, and DragonFly 17116 shlibpath_overrides_runpath=yes 17117 hardcode_into_libs=yes 17118 ;; 17119 esac 17120 ;; 17121 17122haiku*) 17123 version_type=linux # correct to gnu/linux during the next big refactor 17124 need_lib_prefix=no 17125 need_version=no 17126 dynamic_linker="$host_os runtime_loader" 17127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17128 soname_spec='$libname$release$shared_ext$major' 17129 shlibpath_var=LIBRARY_PATH 17130 shlibpath_overrides_runpath=no 17131 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17132 hardcode_into_libs=yes 17133 ;; 17134 17135hpux9* | hpux10* | hpux11*) 17136 # Give a soname corresponding to the major version so that dld.sl refuses to 17137 # link against other versions. 17138 version_type=sunos 17139 need_lib_prefix=no 17140 need_version=no 17141 case $host_cpu in 17142 ia64*) 17143 shrext_cmds='.so' 17144 hardcode_into_libs=yes 17145 dynamic_linker="$host_os dld.so" 17146 shlibpath_var=LD_LIBRARY_PATH 17147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17149 soname_spec='$libname$release$shared_ext$major' 17150 if test 32 = "$HPUX_IA64_MODE"; then 17151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17152 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17153 else 17154 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17155 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17156 fi 17157 ;; 17158 hppa*64*) 17159 shrext_cmds='.sl' 17160 hardcode_into_libs=yes 17161 dynamic_linker="$host_os dld.sl" 17162 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17165 soname_spec='$libname$release$shared_ext$major' 17166 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17168 ;; 17169 *) 17170 shrext_cmds='.sl' 17171 dynamic_linker="$host_os dld.sl" 17172 shlibpath_var=SHLIB_PATH 17173 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17175 soname_spec='$libname$release$shared_ext$major' 17176 ;; 17177 esac 17178 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17179 postinstall_cmds='chmod 555 $lib' 17180 # or fails outright, so override atomically: 17181 install_override_mode=555 17182 ;; 17183 17184interix[3-9]*) 17185 version_type=linux # correct to gnu/linux during the next big refactor 17186 need_lib_prefix=no 17187 need_version=no 17188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17189 soname_spec='$libname$release$shared_ext$major' 17190 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17191 shlibpath_var=LD_LIBRARY_PATH 17192 shlibpath_overrides_runpath=no 17193 hardcode_into_libs=yes 17194 ;; 17195 17196irix5* | irix6* | nonstopux*) 17197 case $host_os in 17198 nonstopux*) version_type=nonstopux ;; 17199 *) 17200 if test yes = "$lt_cv_prog_gnu_ld"; then 17201 version_type=linux # correct to gnu/linux during the next big refactor 17202 else 17203 version_type=irix 17204 fi ;; 17205 esac 17206 need_lib_prefix=no 17207 need_version=no 17208 soname_spec='$libname$release$shared_ext$major' 17209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17210 case $host_os in 17211 irix5* | nonstopux*) 17212 libsuff= shlibsuff= 17213 ;; 17214 *) 17215 case $LD in # libtool.m4 will add one of these switches to LD 17216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17217 libsuff= shlibsuff= libmagic=32-bit;; 17218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17219 libsuff=32 shlibsuff=N32 libmagic=N32;; 17220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17221 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17222 *) libsuff= shlibsuff= libmagic=never-match;; 17223 esac 17224 ;; 17225 esac 17226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17227 shlibpath_overrides_runpath=no 17228 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17229 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17230 hardcode_into_libs=yes 17231 ;; 17232 17233# No shared lib support for Linux oldld, aout, or coff. 17234linux*oldld* | linux*aout* | linux*coff*) 17235 dynamic_linker=no 17236 ;; 17237 17238linux*android*) 17239 version_type=none # Android doesn't support versioned libraries. 17240 need_lib_prefix=no 17241 need_version=no 17242 library_names_spec='$libname$release$shared_ext' 17243 soname_spec='$libname$release$shared_ext' 17244 finish_cmds= 17245 shlibpath_var=LD_LIBRARY_PATH 17246 shlibpath_overrides_runpath=yes 17247 17248 # This implies no fast_install, which is unacceptable. 17249 # Some rework will be needed to allow for fast_install 17250 # before this can be enabled. 17251 hardcode_into_libs=yes 17252 17253 dynamic_linker='Android linker' 17254 # Don't embed -rpath directories since the linker doesn't support them. 17255 hardcode_libdir_flag_spec_CXX='-L$libdir' 17256 ;; 17257 17258# This must be glibc/ELF. 17259linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17260 version_type=linux # correct to gnu/linux during the next big refactor 17261 need_lib_prefix=no 17262 need_version=no 17263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17264 soname_spec='$libname$release$shared_ext$major' 17265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17266 shlibpath_var=LD_LIBRARY_PATH 17267 shlibpath_overrides_runpath=no 17268 17269 # Some binutils ld are patched to set DT_RUNPATH 17270 if test ${lt_cv_shlibpath_overrides_runpath+y} 17271then : 17272 printf %s "(cached) " >&6 17273else $as_nop 17274 lt_cv_shlibpath_overrides_runpath=no 17275 save_LDFLAGS=$LDFLAGS 17276 save_libdir=$libdir 17277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280/* end confdefs.h. */ 17281 17282int 17283main (void) 17284{ 17285 17286 ; 17287 return 0; 17288} 17289_ACEOF 17290if ac_fn_cxx_try_link "$LINENO" 17291then : 17292 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 17293then : 17294 lt_cv_shlibpath_overrides_runpath=yes 17295fi 17296fi 17297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17298 conftest$ac_exeext conftest.$ac_ext 17299 LDFLAGS=$save_LDFLAGS 17300 libdir=$save_libdir 17301 17302fi 17303 17304 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17305 17306 # This implies no fast_install, which is unacceptable. 17307 # Some rework will be needed to allow for fast_install 17308 # before this can be enabled. 17309 hardcode_into_libs=yes 17310 17311 # Ideally, we could use ldconfig to report *all* directores which are 17312 # searched for libraries, however this is still not possible. Aside from not 17313 # being certain /sbin/ldconfig is available, command 17314 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17315 # even though it is searched at run-time. Try to do the best guess by 17316 # appending ld.so.conf contents (and includes) to the search path. 17317 if test -f /etc/ld.so.conf; then 17318 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' ' '` 17319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17320 fi 17321 17322 # We used to test for /lib/ld.so.1 and disable shared libraries on 17323 # powerpc, because MkLinux only supported shared libraries with the 17324 # GNU dynamic linker. Since this was broken with cross compilers, 17325 # most powerpc-linux boxes support dynamic linking these days and 17326 # people can always --disable-shared, the test was removed, and we 17327 # assume the GNU/Linux dynamic linker is in use. 17328 dynamic_linker='GNU/Linux ld.so' 17329 ;; 17330 17331netbsd*) 17332 version_type=sunos 17333 need_lib_prefix=no 17334 need_version=no 17335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17336 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17338 dynamic_linker='NetBSD (a.out) ld.so' 17339 else 17340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17341 soname_spec='$libname$release$shared_ext$major' 17342 dynamic_linker='NetBSD ld.elf_so' 17343 fi 17344 shlibpath_var=LD_LIBRARY_PATH 17345 shlibpath_overrides_runpath=yes 17346 hardcode_into_libs=yes 17347 ;; 17348 17349newsos6) 17350 version_type=linux # correct to gnu/linux during the next big refactor 17351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17352 shlibpath_var=LD_LIBRARY_PATH 17353 shlibpath_overrides_runpath=yes 17354 ;; 17355 17356*nto* | *qnx*) 17357 version_type=qnx 17358 need_lib_prefix=no 17359 need_version=no 17360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17361 soname_spec='$libname$release$shared_ext$major' 17362 shlibpath_var=LD_LIBRARY_PATH 17363 shlibpath_overrides_runpath=no 17364 hardcode_into_libs=yes 17365 dynamic_linker='ldqnx.so' 17366 ;; 17367 17368openbsd* | bitrig*) 17369 version_type=sunos 17370 sys_lib_dlsearch_path_spec=/usr/lib 17371 need_lib_prefix=no 17372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17373 need_version=no 17374 else 17375 need_version=yes 17376 fi 17377 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17379 shlibpath_var=LD_LIBRARY_PATH 17380 shlibpath_overrides_runpath=yes 17381 ;; 17382 17383os2*) 17384 libname_spec='$name' 17385 version_type=windows 17386 shrext_cmds=.dll 17387 need_version=no 17388 need_lib_prefix=no 17389 # OS/2 can only load a DLL with a base name of 8 characters or less. 17390 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17391 v=$($ECHO $release$versuffix | tr -d .-); 17392 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17393 $ECHO $n$v`$shared_ext' 17394 library_names_spec='${libname}_dll.$libext' 17395 dynamic_linker='OS/2 ld.exe' 17396 shlibpath_var=BEGINLIBPATH 17397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17399 postinstall_cmds='base_file=`basename \$file`~ 17400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17401 dldir=$destdir/`dirname \$dlpath`~ 17402 test -d \$dldir || mkdir -p \$dldir~ 17403 $install_prog $dir/$dlname \$dldir/$dlname~ 17404 chmod a+x \$dldir/$dlname~ 17405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17407 fi' 17408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17409 dlpath=$dir/\$dldll~ 17410 $RM \$dlpath' 17411 ;; 17412 17413osf3* | osf4* | osf5*) 17414 version_type=osf 17415 need_lib_prefix=no 17416 need_version=no 17417 soname_spec='$libname$release$shared_ext$major' 17418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17419 shlibpath_var=LD_LIBRARY_PATH 17420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17422 ;; 17423 17424rdos*) 17425 dynamic_linker=no 17426 ;; 17427 17428solaris*) 17429 version_type=linux # correct to gnu/linux during the next big refactor 17430 need_lib_prefix=no 17431 need_version=no 17432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17433 soname_spec='$libname$release$shared_ext$major' 17434 shlibpath_var=LD_LIBRARY_PATH 17435 shlibpath_overrides_runpath=yes 17436 hardcode_into_libs=yes 17437 # ldd complains unless libraries are executable 17438 postinstall_cmds='chmod +x $lib' 17439 ;; 17440 17441sunos4*) 17442 version_type=sunos 17443 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17445 shlibpath_var=LD_LIBRARY_PATH 17446 shlibpath_overrides_runpath=yes 17447 if test yes = "$with_gnu_ld"; then 17448 need_lib_prefix=no 17449 fi 17450 need_version=yes 17451 ;; 17452 17453sysv4 | sysv4.3*) 17454 version_type=linux # correct to gnu/linux during the next big refactor 17455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17456 soname_spec='$libname$release$shared_ext$major' 17457 shlibpath_var=LD_LIBRARY_PATH 17458 case $host_vendor in 17459 sni) 17460 shlibpath_overrides_runpath=no 17461 need_lib_prefix=no 17462 runpath_var=LD_RUN_PATH 17463 ;; 17464 siemens) 17465 need_lib_prefix=no 17466 ;; 17467 motorola) 17468 need_lib_prefix=no 17469 need_version=no 17470 shlibpath_overrides_runpath=no 17471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17472 ;; 17473 esac 17474 ;; 17475 17476sysv4*MP*) 17477 if test -d /usr/nec; then 17478 version_type=linux # correct to gnu/linux during the next big refactor 17479 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17480 soname_spec='$libname$shared_ext.$major' 17481 shlibpath_var=LD_LIBRARY_PATH 17482 fi 17483 ;; 17484 17485sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17486 version_type=sco 17487 need_lib_prefix=no 17488 need_version=no 17489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17490 soname_spec='$libname$release$shared_ext$major' 17491 shlibpath_var=LD_LIBRARY_PATH 17492 shlibpath_overrides_runpath=yes 17493 hardcode_into_libs=yes 17494 if test yes = "$with_gnu_ld"; then 17495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17496 else 17497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17498 case $host_os in 17499 sco3.2v5*) 17500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17501 ;; 17502 esac 17503 fi 17504 sys_lib_dlsearch_path_spec='/usr/lib' 17505 ;; 17506 17507tpf*) 17508 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17509 version_type=linux # correct to gnu/linux during the next big refactor 17510 need_lib_prefix=no 17511 need_version=no 17512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17513 shlibpath_var=LD_LIBRARY_PATH 17514 shlibpath_overrides_runpath=no 17515 hardcode_into_libs=yes 17516 ;; 17517 17518uts4*) 17519 version_type=linux # correct to gnu/linux during the next big refactor 17520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17521 soname_spec='$libname$release$shared_ext$major' 17522 shlibpath_var=LD_LIBRARY_PATH 17523 ;; 17524 17525*) 17526 dynamic_linker=no 17527 ;; 17528esac 17529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17530printf "%s\n" "$dynamic_linker" >&6; } 17531test no = "$dynamic_linker" && can_build_shared=no 17532 17533variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17534if test yes = "$GCC"; then 17535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17536fi 17537 17538if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17539 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17540fi 17541 17542if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17543 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17544fi 17545 17546# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17547configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17548 17549# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17550func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17551 17552# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17553configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17595printf %s "checking how to hardcode library paths into programs... " >&6; } 17596hardcode_action_CXX= 17597if test -n "$hardcode_libdir_flag_spec_CXX" || 17598 test -n "$runpath_var_CXX" || 17599 test yes = "$hardcode_automatic_CXX"; then 17600 17601 # We can hardcode non-existent directories. 17602 if test no != "$hardcode_direct_CXX" && 17603 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17604 # have to relink, otherwise we might link with an installed library 17605 # when we should be linking with a yet-to-be-installed one 17606 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17607 test no != "$hardcode_minus_L_CXX"; then 17608 # Linking always hardcodes the temporary library directory. 17609 hardcode_action_CXX=relink 17610 else 17611 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17612 hardcode_action_CXX=immediate 17613 fi 17614else 17615 # We cannot hardcode anything, or else we can only hardcode existing 17616 # directories. 17617 hardcode_action_CXX=unsupported 17618fi 17619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17620printf "%s\n" "$hardcode_action_CXX" >&6; } 17621 17622if test relink = "$hardcode_action_CXX" || 17623 test yes = "$inherit_rpath_CXX"; then 17624 # Fast installation is not supported 17625 enable_fast_install=no 17626elif test yes = "$shlibpath_overrides_runpath" || 17627 test no = "$enable_shared"; then 17628 # Fast installation is not necessary 17629 enable_fast_install=needless 17630fi 17631 17632 17633 17634 17635 17636 17637 17638 fi # test -n "$compiler" 17639 17640 CC=$lt_save_CC 17641 CFLAGS=$lt_save_CFLAGS 17642 LDCXX=$LD 17643 LD=$lt_save_LD 17644 GCC=$lt_save_GCC 17645 with_gnu_ld=$lt_save_with_gnu_ld 17646 lt_cv_path_LDCXX=$lt_cv_path_LD 17647 lt_cv_path_LD=$lt_save_path_LD 17648 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17649 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17650fi # test yes != "$_lt_caught_CXX_error" 17651 17652ac_ext=c 17653ac_cpp='$CPP $CPPFLAGS' 17654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17656ac_compiler_gnu=$ac_cv_c_compiler_gnu 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 ac_config_commands="$ac_config_commands libtool" 17673 17674 17675 17676 17677# Only expand once: 17678 17679 17680 17681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 17682printf %s "checking whether ln -s works... " >&6; } 17683LN_S=$as_ln_s 17684if test "$LN_S" = "ln -s"; then 17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17686printf "%s\n" "yes" >&6; } 17687else 17688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 17689printf "%s\n" "no, using $LN_S" >&6; } 17690fi 17691 17692for ac_prog in gawk mawk nawk awk 17693do 17694 # Extract the first word of "$ac_prog", so it can be a program name with args. 17695set dummy $ac_prog; ac_word=$2 17696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17697printf %s "checking for $ac_word... " >&6; } 17698if test ${ac_cv_prog_AWK+y} 17699then : 17700 printf %s "(cached) " >&6 17701else $as_nop 17702 if test -n "$AWK"; then 17703 ac_cv_prog_AWK="$AWK" # Let the user override the test. 17704else 17705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17706for as_dir in $PATH 17707do 17708 IFS=$as_save_IFS 17709 case $as_dir in #((( 17710 '') as_dir=./ ;; 17711 */) ;; 17712 *) as_dir=$as_dir/ ;; 17713 esac 17714 for ac_exec_ext in '' $ac_executable_extensions; do 17715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17716 ac_cv_prog_AWK="$ac_prog" 17717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17718 break 2 17719 fi 17720done 17721 done 17722IFS=$as_save_IFS 17723 17724fi 17725fi 17726AWK=$ac_cv_prog_AWK 17727if test -n "$AWK"; then 17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 17729printf "%s\n" "$AWK" >&6; } 17730else 17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17732printf "%s\n" "no" >&6; } 17733fi 17734 17735 17736 test -n "$AWK" && break 17737done 17738 17739# Extract the first word of "autoconf", so it can be a program name with args. 17740set dummy autoconf; ac_word=$2 17741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17742printf %s "checking for $ac_word... " >&6; } 17743if test ${ac_cv_prog_AUTOCONF+y} 17744then : 17745 printf %s "(cached) " >&6 17746else $as_nop 17747 if test -n "$AUTOCONF"; then 17748 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 17749else 17750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17751for as_dir in $PATH 17752do 17753 IFS=$as_save_IFS 17754 case $as_dir in #((( 17755 '') as_dir=./ ;; 17756 */) ;; 17757 *) as_dir=$as_dir/ ;; 17758 esac 17759 for ac_exec_ext in '' $ac_executable_extensions; do 17760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17761 ac_cv_prog_AUTOCONF="autoconf" 17762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17763 break 2 17764 fi 17765done 17766 done 17767IFS=$as_save_IFS 17768 17769 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="true" 17770fi 17771fi 17772AUTOCONF=$ac_cv_prog_AUTOCONF 17773if test -n "$AUTOCONF"; then 17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 17775printf "%s\n" "$AUTOCONF" >&6; } 17776else 17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17778printf "%s\n" "no" >&6; } 17779fi 17780 17781 17782 17783if test "$GCC" = "yes" ; then 17784 AM_CFLAGS="$AM_CFLAGS -Wall -W" 17785 AM_CXXFLAGS="$AM_CXXFLAGS -Wall -W" 17786fi 17787 17788 17789 17790 17791ac_ext=c 17792ac_cpp='$CPP $CPPFLAGS' 17793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17795ac_compiler_gnu=$ac_cv_c_compiler_gnu 17796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 17797printf %s "checking how to run the C preprocessor... " >&6; } 17798# On Suns, sometimes $CPP names a directory. 17799if test -n "$CPP" && test -d "$CPP"; then 17800 CPP= 17801fi 17802if test -z "$CPP"; then 17803 if test ${ac_cv_prog_CPP+y} 17804then : 17805 printf %s "(cached) " >&6 17806else $as_nop 17807 # Double quotes because $CC needs to be expanded 17808 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 17809 do 17810 ac_preproc_ok=false 17811for ac_c_preproc_warn_flag in '' yes 17812do 17813 # Use a header file that comes with gcc, so configuring glibc 17814 # with a fresh cross-compiler works. 17815 # On the NeXT, cc -E runs the code through the compiler's parser, 17816 # not just through cpp. "Syntax error" is here to catch this case. 17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17818/* end confdefs.h. */ 17819#include <limits.h> 17820 Syntax error 17821_ACEOF 17822if ac_fn_c_try_cpp "$LINENO" 17823then : 17824 17825else $as_nop 17826 # Broken: fails on valid input. 17827continue 17828fi 17829rm -f conftest.err conftest.i conftest.$ac_ext 17830 17831 # OK, works on sane cases. Now check whether nonexistent headers 17832 # can be detected and how. 17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17834/* end confdefs.h. */ 17835#include <ac_nonexistent.h> 17836_ACEOF 17837if ac_fn_c_try_cpp "$LINENO" 17838then : 17839 # Broken: success on invalid input. 17840continue 17841else $as_nop 17842 # Passes both tests. 17843ac_preproc_ok=: 17844break 17845fi 17846rm -f conftest.err conftest.i conftest.$ac_ext 17847 17848done 17849# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17850rm -f conftest.i conftest.err conftest.$ac_ext 17851if $ac_preproc_ok 17852then : 17853 break 17854fi 17855 17856 done 17857 ac_cv_prog_CPP=$CPP 17858 17859fi 17860 CPP=$ac_cv_prog_CPP 17861else 17862 ac_cv_prog_CPP=$CPP 17863fi 17864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 17865printf "%s\n" "$CPP" >&6; } 17866ac_preproc_ok=false 17867for ac_c_preproc_warn_flag in '' yes 17868do 17869 # Use a header file that comes with gcc, so configuring glibc 17870 # with a fresh cross-compiler works. 17871 # On the NeXT, cc -E runs the code through the compiler's parser, 17872 # not just through cpp. "Syntax error" is here to catch this case. 17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17874/* end confdefs.h. */ 17875#include <limits.h> 17876 Syntax error 17877_ACEOF 17878if ac_fn_c_try_cpp "$LINENO" 17879then : 17880 17881else $as_nop 17882 # Broken: fails on valid input. 17883continue 17884fi 17885rm -f conftest.err conftest.i conftest.$ac_ext 17886 17887 # OK, works on sane cases. Now check whether nonexistent headers 17888 # can be detected and how. 17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17890/* end confdefs.h. */ 17891#include <ac_nonexistent.h> 17892_ACEOF 17893if ac_fn_c_try_cpp "$LINENO" 17894then : 17895 # Broken: success on invalid input. 17896continue 17897else $as_nop 17898 # Passes both tests. 17899ac_preproc_ok=: 17900break 17901fi 17902rm -f conftest.err conftest.i conftest.$ac_ext 17903 17904done 17905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17906rm -f conftest.i conftest.err conftest.$ac_ext 17907if $ac_preproc_ok 17908then : 17909 17910else $as_nop 17911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17912printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17913as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 17914See \`config.log' for more details" "$LINENO" 5; } 17915fi 17916 17917ac_ext=c 17918ac_cpp='$CPP $CPPFLAGS' 17919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17921ac_compiler_gnu=$ac_cv_c_compiler_gnu 17922 17923 17924 17925 17926 17927 17928ac_ext=c 17929ac_cpp='$CPP $CPPFLAGS' 17930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17932ac_compiler_gnu=$ac_cv_c_compiler_gnu 17933 17934ax_pthread_ok=no 17935 17936# We used to check for pthread.h first, but this fails if pthread.h 17937# requires special compiler flags (e.g. on Tru64 or Sequent). 17938# It gets checked for in the link test anyway. 17939 17940# First of all, check if the user has set any of the PTHREAD_LIBS, 17941# etcetera environment variables, and if threads linking works using 17942# them: 17943if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 17944 ax_pthread_save_CC="$CC" 17945 ax_pthread_save_CFLAGS="$CFLAGS" 17946 ax_pthread_save_LIBS="$LIBS" 17947 if test "x$PTHREAD_CC" != "x" 17948then : 17949 CC="$PTHREAD_CC" 17950fi 17951 if test "x$PTHREAD_CXX" != "x" 17952then : 17953 CXX="$PTHREAD_CXX" 17954fi 17955 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17956 LIBS="$PTHREAD_LIBS $LIBS" 17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 17958printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17960/* end confdefs.h. */ 17961 17962/* Override any GCC internal prototype to avoid an error. 17963 Use char because int might match the return type of a GCC 17964 builtin and then its argument prototype would still apply. */ 17965char pthread_join (); 17966int 17967main (void) 17968{ 17969return pthread_join (); 17970 ; 17971 return 0; 17972} 17973_ACEOF 17974if ac_fn_c_try_link "$LINENO" 17975then : 17976 ax_pthread_ok=yes 17977fi 17978rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17979 conftest$ac_exeext conftest.$ac_ext 17980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 17981printf "%s\n" "$ax_pthread_ok" >&6; } 17982 if test "x$ax_pthread_ok" = "xno"; then 17983 PTHREAD_LIBS="" 17984 PTHREAD_CFLAGS="" 17985 fi 17986 CC="$ax_pthread_save_CC" 17987 CFLAGS="$ax_pthread_save_CFLAGS" 17988 LIBS="$ax_pthread_save_LIBS" 17989fi 17990 17991# We must check for the threads library under a number of different 17992# names; the ordering is very important because some systems 17993# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17994# libraries is broken (non-POSIX). 17995 17996# Create a list of thread flags to try. Items with a "," contain both 17997# C compiler flags (before ",") and linker flags (after ","). Other items 17998# starting with a "-" are C compiler flags, and remaining items are 17999# library names, except for "none" which indicates that we try without 18000# any flags at all, and "pthread-config" which is a program returning 18001# the flags for the Pth emulation library. 18002 18003ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18004 18005# The ordering *is* (sometimes) important. Some notes on the 18006# individual items follow: 18007 18008# pthreads: AIX (must check this before -lpthread) 18009# none: in case threads are in libc; should be tried before -Kthread and 18010# other compiler flags to prevent continual compiler warnings 18011# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 18012# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 18013# (Note: HP C rejects this with "bad form for `-t' option") 18014# -pthreads: Solaris/gcc (Note: HP C also rejects) 18015# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 18016# doesn't hurt to check since this sometimes defines pthreads and 18017# -D_REENTRANT too), HP C (must be checked before -lpthread, which 18018# is present but should not be used directly; and before -mthreads, 18019# because the compiler interprets this as "-mt" + "-hreads") 18020# -mthreads: Mingw32/gcc, Lynx/gcc 18021# pthread: Linux, etcetera 18022# --thread-safe: KAI C++ 18023# pthread-config: use pthread-config program (for GNU Pth library) 18024 18025case $host_os in 18026 18027 freebsd*) 18028 18029 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 18030 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 18031 18032 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 18033 ;; 18034 18035 hpux*) 18036 18037 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 18038 # multi-threading and also sets -lpthread." 18039 18040 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 18041 ;; 18042 18043 openedition*) 18044 18045 # IBM z/OS requires a feature-test macro to be defined in order to 18046 # enable POSIX threads at all, so give the user a hint if this is 18047 # not set. (We don't define these ourselves, as they can affect 18048 # other portions of the system API in unpredictable ways.) 18049 18050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18051/* end confdefs.h. */ 18052 18053# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 18054 AX_PTHREAD_ZOS_MISSING 18055# endif 18056 18057_ACEOF 18058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18059 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 18060then : 18061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 18062printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 18063fi 18064rm -rf conftest* 18065 18066 ;; 18067 18068 solaris*) 18069 18070 # On Solaris (at least, for some versions), libc contains stubbed 18071 # (non-functional) versions of the pthreads routines, so link-based 18072 # tests will erroneously succeed. (N.B.: The stubs are missing 18073 # pthread_cleanup_push, or rather a function called by this macro, 18074 # so we could check for that, but who knows whether they'll stub 18075 # that too in a future libc.) So we'll check first for the 18076 # standard Solaris way of linking pthreads (-mt -lpthread). 18077 18078 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 18079 ;; 18080esac 18081 18082# Are we compiling with Clang? 18083 18084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 18085printf %s "checking whether $CC is Clang... " >&6; } 18086if test ${ax_cv_PTHREAD_CLANG+y} 18087then : 18088 printf %s "(cached) " >&6 18089else $as_nop 18090 ax_cv_PTHREAD_CLANG=no 18091 # Note that Autoconf sets GCC=yes for Clang as well as GCC 18092 if test "x$GCC" = "xyes"; then 18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18094/* end confdefs.h. */ 18095/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 18096# if defined(__clang__) && defined(__llvm__) 18097 AX_PTHREAD_CC_IS_CLANG 18098# endif 18099 18100_ACEOF 18101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18102 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 18103then : 18104 ax_cv_PTHREAD_CLANG=yes 18105fi 18106rm -rf conftest* 18107 18108 fi 18109 18110fi 18111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 18112printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 18113ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 18114 18115 18116# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 18117 18118# Note that for GCC and Clang -pthread generally implies -lpthread, 18119# except when -nostdlib is passed. 18120# This is problematic using libtool to build C++ shared libraries with pthread: 18121# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 18122# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 18123# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 18124# To solve this, first try -pthread together with -lpthread for GCC 18125 18126if test "x$GCC" = "xyes" 18127then : 18128 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 18129fi 18130 18131# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 18132 18133if test "x$ax_pthread_clang" = "xyes" 18134then : 18135 ax_pthread_flags="-pthread,-lpthread -pthread" 18136fi 18137 18138 18139# The presence of a feature test macro requesting re-entrant function 18140# definitions is, on some systems, a strong hint that pthreads support is 18141# correctly enabled 18142 18143case $host_os in 18144 darwin* | hpux* | linux* | osf* | solaris*) 18145 ax_pthread_check_macro="_REENTRANT" 18146 ;; 18147 18148 aix*) 18149 ax_pthread_check_macro="_THREAD_SAFE" 18150 ;; 18151 18152 *) 18153 ax_pthread_check_macro="--" 18154 ;; 18155esac 18156if test "x$ax_pthread_check_macro" = "x--" 18157then : 18158 ax_pthread_check_cond=0 18159else $as_nop 18160 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 18161fi 18162 18163 18164if test "x$ax_pthread_ok" = "xno"; then 18165for ax_pthread_try_flag in $ax_pthread_flags; do 18166 18167 case $ax_pthread_try_flag in 18168 none) 18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18170printf %s "checking whether pthreads work without any flags... " >&6; } 18171 ;; 18172 18173 *,*) 18174 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 18175 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 18177printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 18178 ;; 18179 18180 -*) 18181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 18182printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 18183 PTHREAD_CFLAGS="$ax_pthread_try_flag" 18184 ;; 18185 18186 pthread-config) 18187 # Extract the first word of "pthread-config", so it can be a program name with args. 18188set dummy pthread-config; ac_word=$2 18189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18190printf %s "checking for $ac_word... " >&6; } 18191if test ${ac_cv_prog_ax_pthread_config+y} 18192then : 18193 printf %s "(cached) " >&6 18194else $as_nop 18195 if test -n "$ax_pthread_config"; then 18196 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18197else 18198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18199for as_dir in $PATH 18200do 18201 IFS=$as_save_IFS 18202 case $as_dir in #((( 18203 '') as_dir=./ ;; 18204 */) ;; 18205 *) as_dir=$as_dir/ ;; 18206 esac 18207 for ac_exec_ext in '' $ac_executable_extensions; do 18208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18209 ac_cv_prog_ax_pthread_config="yes" 18210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18211 break 2 18212 fi 18213done 18214 done 18215IFS=$as_save_IFS 18216 18217 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18218fi 18219fi 18220ax_pthread_config=$ac_cv_prog_ax_pthread_config 18221if test -n "$ax_pthread_config"; then 18222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18223printf "%s\n" "$ax_pthread_config" >&6; } 18224else 18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18226printf "%s\n" "no" >&6; } 18227fi 18228 18229 18230 if test "x$ax_pthread_config" = "xno" 18231then : 18232 continue 18233fi 18234 PTHREAD_CFLAGS="`pthread-config --cflags`" 18235 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18236 ;; 18237 18238 *) 18239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 18240printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 18241 PTHREAD_LIBS="-l$ax_pthread_try_flag" 18242 ;; 18243 esac 18244 18245 ax_pthread_save_CFLAGS="$CFLAGS" 18246 ax_pthread_save_LIBS="$LIBS" 18247 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18248 LIBS="$PTHREAD_LIBS $LIBS" 18249 18250 # Check for various functions. We must include pthread.h, 18251 # since some functions may be macros. (On the Sequent, we 18252 # need a special flag -Kthread to make this header compile.) 18253 # We check for pthread_join because it is in -lpthread on IRIX 18254 # while pthread_create is in libc. We check for pthread_attr_init 18255 # due to DEC craziness with -lpthreads. We check for 18256 # pthread_cleanup_push because it is one of the few pthread 18257 # functions on Solaris that doesn't have a non-functional libc stub. 18258 # We try pthread_create on general principles. 18259 18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18261/* end confdefs.h. */ 18262#include <pthread.h> 18263# if $ax_pthread_check_cond 18264# error "$ax_pthread_check_macro must be defined" 18265# endif 18266 static void *some_global = NULL; 18267 static void routine(void *a) 18268 { 18269 /* To avoid any unused-parameter or 18270 unused-but-set-parameter warning. */ 18271 some_global = a; 18272 } 18273 static void *start_routine(void *a) { return a; } 18274int 18275main (void) 18276{ 18277pthread_t th; pthread_attr_t attr; 18278 pthread_create(&th, 0, start_routine, 0); 18279 pthread_join(th, 0); 18280 pthread_attr_init(&attr); 18281 pthread_cleanup_push(routine, 0); 18282 pthread_cleanup_pop(0) /* ; */ 18283 ; 18284 return 0; 18285} 18286_ACEOF 18287if ac_fn_c_try_link "$LINENO" 18288then : 18289 ax_pthread_ok=yes 18290fi 18291rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18292 conftest$ac_exeext conftest.$ac_ext 18293 18294 CFLAGS="$ax_pthread_save_CFLAGS" 18295 LIBS="$ax_pthread_save_LIBS" 18296 18297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18298printf "%s\n" "$ax_pthread_ok" >&6; } 18299 if test "x$ax_pthread_ok" = "xyes" 18300then : 18301 break 18302fi 18303 18304 PTHREAD_LIBS="" 18305 PTHREAD_CFLAGS="" 18306done 18307fi 18308 18309 18310# Clang needs special handling, because older versions handle the -pthread 18311# option in a rather... idiosyncratic way 18312 18313if test "x$ax_pthread_clang" = "xyes"; then 18314 18315 # Clang takes -pthread; it has never supported any other flag 18316 18317 # (Note 1: This will need to be revisited if a system that Clang 18318 # supports has POSIX threads in a separate library. This tends not 18319 # to be the way of modern systems, but it's conceivable.) 18320 18321 # (Note 2: On some systems, notably Darwin, -pthread is not needed 18322 # to get POSIX threads support; the API is always present and 18323 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 18324 # -pthread does define _REENTRANT, and while the Darwin headers 18325 # ignore this macro, third-party headers might not.) 18326 18327 # However, older versions of Clang make a point of warning the user 18328 # that, in an invocation where only linking and no compilation is 18329 # taking place, the -pthread option has no effect ("argument unused 18330 # during compilation"). They expect -pthread to be passed in only 18331 # when source code is being compiled. 18332 # 18333 # Problem is, this is at odds with the way Automake and most other 18334 # C build frameworks function, which is that the same flags used in 18335 # compilation (CFLAGS) are also used in linking. Many systems 18336 # supported by AX_PTHREAD require exactly this for POSIX threads 18337 # support, and in fact it is often not straightforward to specify a 18338 # flag that is used only in the compilation phase and not in 18339 # linking. Such a scenario is extremely rare in practice. 18340 # 18341 # Even though use of the -pthread flag in linking would only print 18342 # a warning, this can be a nuisance for well-run software projects 18343 # that build with -Werror. So if the active version of Clang has 18344 # this misfeature, we search for an option to squash it. 18345 18346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 18347printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 18348if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 18349then : 18350 printf %s "(cached) " >&6 18351else $as_nop 18352 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 18353 # Create an alternate version of $ac_link that compiles and 18354 # links in two steps (.c -> .o, .o -> exe) instead of one 18355 # (.c -> exe), because the warning occurs only in the second 18356 # step 18357 ax_pthread_save_ac_link="$ac_link" 18358 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 18359 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 18360 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 18361 ax_pthread_save_CFLAGS="$CFLAGS" 18362 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 18363 if test "x$ax_pthread_try" = "xunknown" 18364then : 18365 break 18366fi 18367 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 18368 ac_link="$ax_pthread_save_ac_link" 18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18370/* end confdefs.h. */ 18371int main(void){return 0;} 18372_ACEOF 18373if ac_fn_c_try_link "$LINENO" 18374then : 18375 ac_link="$ax_pthread_2step_ac_link" 18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18377/* end confdefs.h. */ 18378int main(void){return 0;} 18379_ACEOF 18380if ac_fn_c_try_link "$LINENO" 18381then : 18382 break 18383fi 18384rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18385 conftest$ac_exeext conftest.$ac_ext 18386 18387fi 18388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18389 conftest$ac_exeext conftest.$ac_ext 18390 done 18391 ac_link="$ax_pthread_save_ac_link" 18392 CFLAGS="$ax_pthread_save_CFLAGS" 18393 if test "x$ax_pthread_try" = "x" 18394then : 18395 ax_pthread_try=no 18396fi 18397 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 18398 18399fi 18400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 18401printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 18402 18403 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 18404 no | unknown) ;; 18405 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 18406 esac 18407 18408fi # $ax_pthread_clang = yes 18409 18410 18411 18412# Various other checks: 18413if test "x$ax_pthread_ok" = "xyes"; then 18414 ax_pthread_save_CFLAGS="$CFLAGS" 18415 ax_pthread_save_LIBS="$LIBS" 18416 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18417 LIBS="$PTHREAD_LIBS $LIBS" 18418 18419 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18421printf %s "checking for joinable pthread attribute... " >&6; } 18422if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 18423then : 18424 printf %s "(cached) " >&6 18425else $as_nop 18426 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 18427 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18429/* end confdefs.h. */ 18430#include <pthread.h> 18431int 18432main (void) 18433{ 18434int attr = $ax_pthread_attr; return attr /* ; */ 18435 ; 18436 return 0; 18437} 18438_ACEOF 18439if ac_fn_c_try_link "$LINENO" 18440then : 18441 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 18442fi 18443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18444 conftest$ac_exeext conftest.$ac_ext 18445 done 18446 18447fi 18448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 18449printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 18450 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 18451 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 18452 test "x$ax_pthread_joinable_attr_defined" != "xyes" 18453then : 18454 18455printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 18456 18457 ax_pthread_joinable_attr_defined=yes 18458 18459fi 18460 18461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 18462printf %s "checking whether more special flags are required for pthreads... " >&6; } 18463if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 18464then : 18465 printf %s "(cached) " >&6 18466else $as_nop 18467 ax_cv_PTHREAD_SPECIAL_FLAGS=no 18468 case $host_os in 18469 solaris*) 18470 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 18471 ;; 18472 esac 18473 18474fi 18475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 18476printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 18477 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 18478 test "x$ax_pthread_special_flags_added" != "xyes" 18479then : 18480 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 18481 ax_pthread_special_flags_added=yes 18482fi 18483 18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 18485printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 18486if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 18487then : 18488 printf %s "(cached) " >&6 18489else $as_nop 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492#include <pthread.h> 18493int 18494main (void) 18495{ 18496int i = PTHREAD_PRIO_INHERIT; 18497 return i; 18498 ; 18499 return 0; 18500} 18501_ACEOF 18502if ac_fn_c_try_link "$LINENO" 18503then : 18504 ax_cv_PTHREAD_PRIO_INHERIT=yes 18505else $as_nop 18506 ax_cv_PTHREAD_PRIO_INHERIT=no 18507fi 18508rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18509 conftest$ac_exeext conftest.$ac_ext 18510 18511fi 18512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 18513printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 18514 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 18515 test "x$ax_pthread_prio_inherit_defined" != "xyes" 18516then : 18517 18518printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 18519 18520 ax_pthread_prio_inherit_defined=yes 18521 18522fi 18523 18524 CFLAGS="$ax_pthread_save_CFLAGS" 18525 LIBS="$ax_pthread_save_LIBS" 18526 18527 # More AIX lossage: compile with *_r variant 18528 if test "x$GCC" != "xyes"; then 18529 case $host_os in 18530 aix*) 18531 case "x/$CC" in #( 18532 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 18533 #handle absolute path differently from PATH based program lookup 18534 case "x$CC" in #( 18535 x/*) : 18536 18537 if as_fn_executable_p ${CC}_r 18538then : 18539 PTHREAD_CC="${CC}_r" 18540fi 18541 if test "x${CXX}" != "x" 18542then : 18543 if as_fn_executable_p ${CXX}_r 18544then : 18545 PTHREAD_CXX="${CXX}_r" 18546fi 18547fi 18548 ;; #( 18549 *) : 18550 18551 for ac_prog in ${CC}_r 18552do 18553 # Extract the first word of "$ac_prog", so it can be a program name with args. 18554set dummy $ac_prog; ac_word=$2 18555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18556printf %s "checking for $ac_word... " >&6; } 18557if test ${ac_cv_prog_PTHREAD_CC+y} 18558then : 18559 printf %s "(cached) " >&6 18560else $as_nop 18561 if test -n "$PTHREAD_CC"; then 18562 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18563else 18564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18565for as_dir in $PATH 18566do 18567 IFS=$as_save_IFS 18568 case $as_dir in #((( 18569 '') as_dir=./ ;; 18570 */) ;; 18571 *) as_dir=$as_dir/ ;; 18572 esac 18573 for ac_exec_ext in '' $ac_executable_extensions; do 18574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18575 ac_cv_prog_PTHREAD_CC="$ac_prog" 18576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18577 break 2 18578 fi 18579done 18580 done 18581IFS=$as_save_IFS 18582 18583fi 18584fi 18585PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18586if test -n "$PTHREAD_CC"; then 18587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18588printf "%s\n" "$PTHREAD_CC" >&6; } 18589else 18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18591printf "%s\n" "no" >&6; } 18592fi 18593 18594 18595 test -n "$PTHREAD_CC" && break 18596done 18597test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18598 18599 if test "x${CXX}" != "x" 18600then : 18601 for ac_prog in ${CXX}_r 18602do 18603 # Extract the first word of "$ac_prog", so it can be a program name with args. 18604set dummy $ac_prog; ac_word=$2 18605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18606printf %s "checking for $ac_word... " >&6; } 18607if test ${ac_cv_prog_PTHREAD_CXX+y} 18608then : 18609 printf %s "(cached) " >&6 18610else $as_nop 18611 if test -n "$PTHREAD_CXX"; then 18612 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 18613else 18614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18615for as_dir in $PATH 18616do 18617 IFS=$as_save_IFS 18618 case $as_dir in #((( 18619 '') as_dir=./ ;; 18620 */) ;; 18621 *) as_dir=$as_dir/ ;; 18622 esac 18623 for ac_exec_ext in '' $ac_executable_extensions; do 18624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18625 ac_cv_prog_PTHREAD_CXX="$ac_prog" 18626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18627 break 2 18628 fi 18629done 18630 done 18631IFS=$as_save_IFS 18632 18633fi 18634fi 18635PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 18636if test -n "$PTHREAD_CXX"; then 18637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 18638printf "%s\n" "$PTHREAD_CXX" >&6; } 18639else 18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18641printf "%s\n" "no" >&6; } 18642fi 18643 18644 18645 test -n "$PTHREAD_CXX" && break 18646done 18647test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 18648 18649fi 18650 18651 ;; 18652esac 18653 ;; #( 18654 *) : 18655 ;; 18656esac 18657 ;; 18658 esac 18659 fi 18660fi 18661 18662test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18663test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 18664 18665 18666 18667 18668 18669 18670# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18671if test "x$ax_pthread_ok" = "xyes"; then 18672 18673printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 18674 18675 : 18676else 18677 ax_pthread_ok=no 18678 as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5 18679fi 18680ac_ext=c 18681ac_cpp='$CPP $CPPFLAGS' 18682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18684ac_compiler_gnu=$ac_cv_c_compiler_gnu 18685 18686 18687 18688# Check for required includes 18689ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 18690if test "x$ac_cv_header_unistd_h" = xyes 18691then : 18692 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 18693 18694fi 18695ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" 18696if test "x$ac_cv_header_direct_h" = xyes 18697then : 18698 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h 18699 18700fi 18701 18702 18703ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 18704if test "x$ac_cv_func_strcasecmp" = xyes 18705then : 18706 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 18707 18708fi 18709 18710 18711# Check whether getcwd can dynamically allocate memory. 18712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5 18713printf %s "checking whether getcwd(NULL, 0) works... " >&6; } 18714if test ${xml_cv_func_getcwd_null+y} 18715then : 18716 printf %s "(cached) " >&6 18717else $as_nop 18718 if test "$cross_compiling" = yes 18719then : 18720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18721printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18722as_fn_error $? "cannot run test program while cross compiling 18723See \`config.log' for more details" "$LINENO" 5; } 18724else $as_nop 18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18726/* end confdefs.h. */ 18727#include <stdlib.h> 18728 #include <unistd.h> 18729 char *cwd = getcwd(NULL, 0); 18730 return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE; 18731int 18732main (void) 18733{ 18734 18735 ; 18736 return 0; 18737} 18738_ACEOF 18739if ac_fn_c_try_run "$LINENO" 18740then : 18741 xml_cv_func_getcwd_null=yes 18742else $as_nop 18743 xml_cv_func_getcwd_null=no 18744fi 18745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18746 conftest.$ac_objext conftest.beam conftest.$ac_ext 18747fi 18748 18749fi 18750 18751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xml_cv_func_getcwd_null" >&5 18752printf "%s\n" "$xml_cv_func_getcwd_null" >&6; } 18753if test $xml_cv_func_getcwd_null = yes; then 18754 18755printf "%s\n" "#define XSEC_HAVE_GETCWD_DYN 1" >>confdefs.h 18756 18757fi 18758 18759ac_ext=cpp 18760ac_cpp='$CXXCPP $CPPFLAGS' 18761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18764 18765 18766# Note that the pkg-config macros improperly set pkg_CFLAGS rather 18767# than CPPFLAGS and/or CXXFLAGS, so this requires some workarounds. 18768# Where possible, we clear the CFLAGS version to make sure nothing 18769# is depending on it downstream. Compile tests are favored over 18770# preproc-only tests so that CXXFLAGS should be sufficient. 18771 18772 18773 18774 18775 18776 18777 18778 18779if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18780 if test -n "$ac_tool_prefix"; then 18781 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18782set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18784printf %s "checking for $ac_word... " >&6; } 18785if test ${ac_cv_path_PKG_CONFIG+y} 18786then : 18787 printf %s "(cached) " >&6 18788else $as_nop 18789 case $PKG_CONFIG in 18790 [\\/]* | ?:[\\/]*) 18791 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18792 ;; 18793 *) 18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18795for as_dir in $PATH 18796do 18797 IFS=$as_save_IFS 18798 case $as_dir in #((( 18799 '') as_dir=./ ;; 18800 */) ;; 18801 *) as_dir=$as_dir/ ;; 18802 esac 18803 for ac_exec_ext in '' $ac_executable_extensions; do 18804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18805 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 18806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18807 break 2 18808 fi 18809done 18810 done 18811IFS=$as_save_IFS 18812 18813 ;; 18814esac 18815fi 18816PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18817if test -n "$PKG_CONFIG"; then 18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18819printf "%s\n" "$PKG_CONFIG" >&6; } 18820else 18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18822printf "%s\n" "no" >&6; } 18823fi 18824 18825 18826fi 18827if test -z "$ac_cv_path_PKG_CONFIG"; then 18828 ac_pt_PKG_CONFIG=$PKG_CONFIG 18829 # Extract the first word of "pkg-config", so it can be a program name with args. 18830set dummy pkg-config; ac_word=$2 18831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18832printf %s "checking for $ac_word... " >&6; } 18833if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 18834then : 18835 printf %s "(cached) " >&6 18836else $as_nop 18837 case $ac_pt_PKG_CONFIG in 18838 [\\/]* | ?:[\\/]*) 18839 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18840 ;; 18841 *) 18842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18843for as_dir in $PATH 18844do 18845 IFS=$as_save_IFS 18846 case $as_dir in #((( 18847 '') as_dir=./ ;; 18848 */) ;; 18849 *) as_dir=$as_dir/ ;; 18850 esac 18851 for ac_exec_ext in '' $ac_executable_extensions; do 18852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18853 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 18854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18855 break 2 18856 fi 18857done 18858 done 18859IFS=$as_save_IFS 18860 18861 ;; 18862esac 18863fi 18864ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18865if test -n "$ac_pt_PKG_CONFIG"; then 18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18867printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 18868else 18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18870printf "%s\n" "no" >&6; } 18871fi 18872 18873 if test "x$ac_pt_PKG_CONFIG" = x; then 18874 PKG_CONFIG="" 18875 else 18876 case $cross_compiling:$ac_tool_warned in 18877yes:) 18878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18879printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18880ac_tool_warned=yes ;; 18881esac 18882 PKG_CONFIG=$ac_pt_PKG_CONFIG 18883 fi 18884else 18885 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18886fi 18887 18888fi 18889if test -n "$PKG_CONFIG"; then 18890 _pkg_min_version=0.9.0 18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18892printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18893 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18895printf "%s\n" "yes" >&6; } 18896 else 18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18898printf "%s\n" "no" >&6; } 18899 PKG_CONFIG="" 18900 fi 18901fi 18902 18903 18904 18905 18906 18907pkg_failed=no 18908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xerces-c >= 3.2" >&5 18909printf %s "checking for xerces-c >= 3.2... " >&6; } 18910 18911if test -n "$xerces_CFLAGS"; then 18912 pkg_cv_xerces_CFLAGS="$xerces_CFLAGS" 18913 elif test -n "$PKG_CONFIG"; then 18914 if test -n "$PKG_CONFIG" && \ 18915 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xerces-c >= 3.2\""; } >&5 18916 ($PKG_CONFIG --exists --print-errors " xerces-c >= 3.2") 2>&5 18917 ac_status=$? 18918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18919 test $ac_status = 0; }; then 18920 pkg_cv_xerces_CFLAGS=`$PKG_CONFIG --cflags " xerces-c >= 3.2" 2>/dev/null` 18921 test "x$?" != "x0" && pkg_failed=yes 18922else 18923 pkg_failed=yes 18924fi 18925 else 18926 pkg_failed=untried 18927fi 18928if test -n "$xerces_LIBS"; then 18929 pkg_cv_xerces_LIBS="$xerces_LIBS" 18930 elif test -n "$PKG_CONFIG"; then 18931 if test -n "$PKG_CONFIG" && \ 18932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xerces-c >= 3.2\""; } >&5 18933 ($PKG_CONFIG --exists --print-errors " xerces-c >= 3.2") 2>&5 18934 ac_status=$? 18935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18936 test $ac_status = 0; }; then 18937 pkg_cv_xerces_LIBS=`$PKG_CONFIG --libs " xerces-c >= 3.2" 2>/dev/null` 18938 test "x$?" != "x0" && pkg_failed=yes 18939else 18940 pkg_failed=yes 18941fi 18942 else 18943 pkg_failed=untried 18944fi 18945 18946 18947 18948if test $pkg_failed = yes; then 18949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18950printf "%s\n" "no" >&6; } 18951 18952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18953 _pkg_short_errors_supported=yes 18954else 18955 _pkg_short_errors_supported=no 18956fi 18957 if test $_pkg_short_errors_supported = yes; then 18958 xerces_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " xerces-c >= 3.2" 2>&1` 18959 else 18960 xerces_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " xerces-c >= 3.2" 2>&1` 18961 fi 18962 # Put the nasty error message in config.log where it belongs 18963 echo "$xerces_PKG_ERRORS" >&5 18964 18965 as_fn_error $? "Package requirements ( xerces-c >= 3.2) were not met: 18966 18967$xerces_PKG_ERRORS 18968 18969Consider adjusting the PKG_CONFIG_PATH environment variable if you 18970installed software in a non-standard prefix. 18971 18972Alternatively, you may set the environment variables xerces_CFLAGS 18973and xerces_LIBS to avoid the need to call pkg-config. 18974See the pkg-config man page for more details." "$LINENO" 5 18975elif test $pkg_failed = untried; then 18976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18977printf "%s\n" "no" >&6; } 18978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18979printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18980as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18981is in your PATH or set the PKG_CONFIG environment variable to the full 18982path to pkg-config. 18983 18984Alternatively, you may set the environment variables xerces_CFLAGS 18985and xerces_LIBS to avoid the need to call pkg-config. 18986See the pkg-config man page for more details. 18987 18988To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18989See \`config.log' for more details" "$LINENO" 5; } 18990else 18991 xerces_CFLAGS=$pkg_cv_xerces_CFLAGS 18992 xerces_LIBS=$pkg_cv_xerces_LIBS 18993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18994printf "%s\n" "yes" >&6; } 18995 18996 AX_PACKAGE_REQUIRES="$AX_PACKAGE_REQUIRES " 18997 AX_PACKAGE_REQUIRES_PRIVATE="$AX_PACKAGE_REQUIRES_PRIVATE xerces-c >= 3.2" 18998 18999fi 19000 19001 # Substitute output. 19002 19003 19004 19005xerces_CXXFLAGS=$xerces_CFLAGS 19006xerces_CFLAGS="" 19007 19008 19009# Get user options 19010 19011 19012# Check whether --with-xalan was given. 19013if test ${with_xalan+y} 19014then : 19015 withval=$with_xalan; use_xalan=$withval 19016else $as_nop 19017 use_xalan=yes 19018fi 19019 19020 19021if test x"$use_xalan" != "xyes" ; then 19022 if test x"$use_xalan" != "xno" ; then 19023 XALANCROOT=$use_xalan 19024 fi 19025fi 19026 19027# Now check for Xalan 19028 19029if test x"$use_xalan" != x"no" ; then 19030 19031 if test $XALANCROOT; then 19032 19033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for Xalan headers in $XALANCROOT" >&5 19034printf "%s\n" "$as_me: looking for Xalan headers in $XALANCROOT" >&6;} 19035 19036 # Updated to include nls/include as this is generally needed for 19037 # compilation against non-installed xalan. 19038 # Also now include XALANCROOT/include to cater for installed xalan 19039 xalan_CXXFLAGS="-I${XALANCROOT}/src -I${XALANCROOT}/include -I${XALANCROOT}/nls/include" 19040 xalan_LIBS="-L${XALANCROOT}/lib -lxalan-c" 19041 19042 19043_ax_xalan_saved_flag_cxxflags="$CXXFLAGS" 19044CXXFLAGS="$xalan_CXXFLAGS $CXXFLAGS" 19045 19046 19047 19048 ac_fn_cxx_check_header_compile "$LINENO" "xalanc/Include/XalanVersion.hpp" "ac_cv_header_xalanc_Include_XalanVersion_hpp" "$ac_includes_default" 19049if test "x$ac_cv_header_xalanc_Include_XalanVersion_hpp" = xyes 19050then : 19051 xalan_found=yes 19052fi 19053 19054 19055 19056CXXFLAGS="$_ax_xalan_saved_flag_cxxflags" 19057 19058 19059 19060 19061 19062 fi 19063 19064 if test -z "$xalan_found" ; then 19065 19066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for Xalan in system includes" >&5 19067printf "%s\n" "$as_me: looking for Xalan in system includes" >&6;} 19068 unset ac_cv_header_xalanc_Include_XalanVersion_hpp 19069 ac_fn_cxx_check_header_compile "$LINENO" "xalanc/Include/XalanVersion.hpp" "ac_cv_header_xalanc_Include_XalanVersion_hpp" "$ac_includes_default" 19070if test "x$ac_cv_header_xalanc_Include_XalanVersion_hpp" = xyes 19071then : 19072 xalan_found=yes 19073 xalan_CXXFLAGS="" 19074 xalan_LIBS="-lxalan-c" 19075else $as_nop 19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING - configuring without Xalan" >&5 19077printf "%s\n" "$as_me: WARNING - configuring without Xalan" >&6;} 19078fi 19079 19080 19081 fi 19082fi 19083 19084if test "${xalan_found}" = "yes" ; then 19085 19086 19087_ax_xalan_saved_flag_cxxflags="$CXXFLAGS" 19088CXXFLAGS="$xalan_CXXFLAGS $CXXFLAGS" 19089 19090 19091_ax_xalan_saved_flag_libs="$LIBS" 19092LIBS="$xalan_LIBS $LIBS" 19093 19094 19095 19096 19097 19098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Xalan version" >&5 19099printf %s "checking Xalan version... " >&6; } 19100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19101/* end confdefs.h. */ 19102#include <xalanc/Include/XalanVersion.hpp> 19103int 19104main (void) 19105{ 19106#if _XALAN_VERSION >= 11100 19107int i = 0; 19108#else 19109#error requires Xalan version 1.11+ 19110#endif 19111 ; 19112 return 0; 19113} 19114_ACEOF 19115if ac_fn_cxx_try_compile "$LINENO" 19116then : 19117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5 19118printf "%s\n" "OK" >&6; } 19119else $as_nop 19120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19121printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19122as_fn_error $? "Xalan-C 1.11+ is required 19123See \`config.log' for more details" "$LINENO" 5; } 19124fi 19125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19126 19127 # Do we need xalanMsg.so? 19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing XalanInitialize" >&5 19129printf %s "checking for library containing XalanInitialize... " >&6; } 19130if test ${ac_cv_search_XalanInitialize+y} 19131then : 19132 printf %s "(cached) " >&6 19133else $as_nop 19134 ac_func_search_save_LIBS=$LIBS 19135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19136/* end confdefs.h. */ 19137 19138namespace conftest { 19139 extern "C" int XalanInitialize (); 19140} 19141int 19142main (void) 19143{ 19144return conftest::XalanInitialize (); 19145 ; 19146 return 0; 19147} 19148_ACEOF 19149for ac_lib in '' xalanMsg 19150do 19151 if test -z "$ac_lib"; then 19152 ac_res="none required" 19153 else 19154 ac_res=-l$ac_lib 19155 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19156 fi 19157 if ac_fn_cxx_try_link "$LINENO" 19158then : 19159 ac_cv_search_XalanInitialize=$ac_res 19160fi 19161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19162 conftest$ac_exeext 19163 if test ${ac_cv_search_XalanInitialize+y} 19164then : 19165 break 19166fi 19167done 19168if test ${ac_cv_search_XalanInitialize+y} 19169then : 19170 19171else $as_nop 19172 ac_cv_search_XalanInitialize=no 19173fi 19174rm conftest.$ac_ext 19175LIBS=$ac_func_search_save_LIBS 19176fi 19177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XalanInitialize" >&5 19178printf "%s\n" "$ac_cv_search_XalanInitialize" >&6; } 19179ac_res=$ac_cv_search_XalanInitialize 19180if test "$ac_res" != no 19181then : 19182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19183 xalan_LIBS="$LIBS" 19184fi 19185 19186 19187 19188printf "%s\n" "#define XSEC_HAVE_XALAN 1" >>confdefs.h 19189 19190 19191 19192 19193 19194 19195CXXFLAGS="$_ax_xalan_saved_flag_cxxflags" 19196 19197 19198LIBS="$_ax_xalan_saved_flag_libs" 19199 19200 19201 19202 19203 19204else 19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Xalan not included in build - XPath and XSLT will not be available" >&5 19206printf "%s\n" "$as_me: Xalan not included in build - XPath and XSLT will not be available" >&6;} 19207fi 19208 19209ac_ext=c 19210ac_cpp='$CPP $CPPFLAGS' 19211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19213ac_compiler_gnu=$ac_cv_c_compiler_gnu 19214 19215 19216# Crypto provider options (OpenSSL / NSS) 19217 19218 19219# Check whether --with-openssl was given. 19220if test ${with_openssl+y} 19221then : 19222 withval=$with_openssl; 19223else $as_nop 19224 with_openssl=check 19225fi 19226 19227 19228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 19229printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 19230if test ${ac_cv_c_undeclared_builtin_options+y} 19231then : 19232 printf %s "(cached) " >&6 19233else $as_nop 19234 ac_save_CFLAGS=$CFLAGS 19235 ac_cv_c_undeclared_builtin_options='cannot detect' 19236 for ac_arg in '' -fno-builtin; do 19237 CFLAGS="$ac_save_CFLAGS $ac_arg" 19238 # This test program should *not* compile successfully. 19239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19240/* end confdefs.h. */ 19241 19242int 19243main (void) 19244{ 19245(void) strchr; 19246 ; 19247 return 0; 19248} 19249_ACEOF 19250if ac_fn_c_try_compile "$LINENO" 19251then : 19252 19253else $as_nop 19254 # This test program should compile successfully. 19255 # No library function is consistently available on 19256 # freestanding implementations, so test against a dummy 19257 # declaration. Include always-available headers on the 19258 # off chance that they somehow elicit warnings. 19259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19260/* end confdefs.h. */ 19261#include <float.h> 19262#include <limits.h> 19263#include <stdarg.h> 19264#include <stddef.h> 19265extern void ac_decl (int, char *); 19266 19267int 19268main (void) 19269{ 19270(void) ac_decl (0, (char *) 0); 19271 (void) ac_decl; 19272 19273 ; 19274 return 0; 19275} 19276_ACEOF 19277if ac_fn_c_try_compile "$LINENO" 19278then : 19279 if test x"$ac_arg" = x 19280then : 19281 ac_cv_c_undeclared_builtin_options='none needed' 19282else $as_nop 19283 ac_cv_c_undeclared_builtin_options=$ac_arg 19284fi 19285 break 19286fi 19287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19288fi 19289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19290 done 19291 CFLAGS=$ac_save_CFLAGS 19292 19293fi 19294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 19295printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 19296 case $ac_cv_c_undeclared_builtin_options in #( 19297 'cannot detect') : 19298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19299printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19300as_fn_error $? "cannot make $CC report undeclared builtins 19301See \`config.log' for more details" "$LINENO" 5; } ;; #( 19302 'none needed') : 19303 ac_c_undeclared_builtin_options='' ;; #( 19304 *) : 19305 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 19306esac 19307 19308if test x"$with_openssl" != xno 19309then : 19310 19311 19312 19313 19314 19315pkg_failed=no 19316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5 19317printf %s "checking for libcrypto... " >&6; } 19318 19319if test -n "$openssl_CFLAGS"; then 19320 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS" 19321 elif test -n "$PKG_CONFIG"; then 19322 if test -n "$PKG_CONFIG" && \ 19323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libcrypto\""; } >&5 19324 ($PKG_CONFIG --exists --print-errors " libcrypto") 2>&5 19325 ac_status=$? 19326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19327 test $ac_status = 0; }; then 19328 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags " libcrypto" 2>/dev/null` 19329 test "x$?" != "x0" && pkg_failed=yes 19330else 19331 pkg_failed=yes 19332fi 19333 else 19334 pkg_failed=untried 19335fi 19336if test -n "$openssl_LIBS"; then 19337 pkg_cv_openssl_LIBS="$openssl_LIBS" 19338 elif test -n "$PKG_CONFIG"; then 19339 if test -n "$PKG_CONFIG" && \ 19340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libcrypto\""; } >&5 19341 ($PKG_CONFIG --exists --print-errors " libcrypto") 2>&5 19342 ac_status=$? 19343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19344 test $ac_status = 0; }; then 19345 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs " libcrypto" 2>/dev/null` 19346 test "x$?" != "x0" && pkg_failed=yes 19347else 19348 pkg_failed=yes 19349fi 19350 else 19351 pkg_failed=untried 19352fi 19353 19354 19355 19356if test $pkg_failed = yes; then 19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19358printf "%s\n" "no" >&6; } 19359 19360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19361 _pkg_short_errors_supported=yes 19362else 19363 _pkg_short_errors_supported=no 19364fi 19365 if test $_pkg_short_errors_supported = yes; then 19366 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libcrypto" 2>&1` 19367 else 19368 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libcrypto" 2>&1` 19369 fi 19370 # Put the nasty error message in config.log where it belongs 19371 echo "$openssl_PKG_ERRORS" >&5 19372 19373 if test "x$with_openssl" != xcheck 19374then : 19375 as_fn_error $? "Unable to find OpenSSL" "$LINENO" 5 19376fi 19377elif test $pkg_failed = untried; then 19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19379printf "%s\n" "no" >&6; } 19380 if test "x$with_openssl" != xcheck 19381then : 19382 as_fn_error $? "Unable to find OpenSSL" "$LINENO" 5 19383fi 19384else 19385 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS 19386 openssl_LIBS=$pkg_cv_openssl_LIBS 19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19388printf "%s\n" "yes" >&6; } 19389 19390 AX_PACKAGE_REQUIRES="$AX_PACKAGE_REQUIRES " 19391 AX_PACKAGE_REQUIRES_PRIVATE="$AX_PACKAGE_REQUIRES_PRIVATE libcrypto" 19392 with_openssl=found 19393 19394printf "%s\n" "#define XSEC_HAVE_OPENSSL 1" >>confdefs.h 19395 19396 19397 # Now try to find out some things about this version of OpenSSL 19398 19399 19400 19401_ax_openssl_saved_flag_cflags="$CFLAGS" 19402CFLAGS="$openssl_CFLAGS $CFLAGS" 19403 19404 19405_ax_openssl_saved_flag_libs="$LIBS" 19406LIBS="$openssl_LIBS $LIBS" 19407 19408 19409 19410 19411 19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5 19413printf %s "checking for const input buffers in OpenSSL... " >&6; } 19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19415/* end confdefs.h. */ 19416#include <openssl/rsa.h> 19417int 19418main (void) 19419{ 19420 const unsigned char * buf; 19421 unsigned char * outbuf; 19422 RSA rsa; 19423 RSA_private_decrypt(1,buf,outbuf,&rsa,RSA_PKCS1_PADDING); 19424 ; 19425 return 0; 19426} 19427_ACEOF 19428if ac_fn_c_try_compile "$LINENO" 19429then : 19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19431printf "%s\n" "yes" >&6; } 19432 19433printf "%s\n" "#define XSEC_OPENSSL_CONST_BUFFERS 1" >>confdefs.h 19434 19435else $as_nop 19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19437printf "%s\n" "no" >&6; } 19438fi 19439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19440 19441 ac_fn_check_decl "$LINENO" "EVP_PKEY_id" "ac_cv_have_decl_EVP_PKEY_id" "#include <openssl/evp.h> 19442" "$ac_c_undeclared_builtin_options" "CFLAGS" 19443if test "x$ac_cv_have_decl_EVP_PKEY_id" = xyes 19444then : 19445 19446printf "%s\n" "#define XSEC_OPENSSL_HAVE_EVP_PKEY_ID 1" >>confdefs.h 19447 19448fi 19449 19450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-broken AES support" >&5 19451printf %s "checking for non-broken AES support... " >&6; } 19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19453/* end confdefs.h. */ 19454#include <openssl/evp.h> 19455int 19456main (void) 19457{ 19458 EVP_aes_256_cbc(); 19459 19460 ; 19461 return 0; 19462} 19463_ACEOF 19464if ac_fn_c_try_link "$LINENO" 19465then : 19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19467printf "%s\n" "yes" >&6; } 19468 19469printf "%s\n" "#define XSEC_OPENSSL_HAVE_AES 1" >>confdefs.h 19470 19471else $as_nop 19472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19473printf "%s\n" "no" >&6; } 19474fi 19475rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19476 conftest$ac_exeext conftest.$ac_ext 19477 19478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCM support" >&5 19479printf %s "checking for GCM support... " >&6; } 19480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19481/* end confdefs.h. */ 19482#include <openssl/evp.h> 19483int 19484main (void) 19485{ 19486 EVP_aes_256_gcm(); 19487 19488 ; 19489 return 0; 19490} 19491_ACEOF 19492if ac_fn_c_try_link "$LINENO" 19493then : 19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19495printf "%s\n" "yes" >&6; } 19496 19497printf "%s\n" "#define XSEC_OPENSSL_HAVE_GCM 1" >>confdefs.h 19498 19499else $as_nop 19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19501printf "%s\n" "no" >&6; } 19502fi 19503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19504 conftest$ac_exeext conftest.$ac_ext 19505 19506 ac_fn_check_decl "$LINENO" "PKCS1_MGF1" "ac_cv_have_decl_PKCS1_MGF1" "#include <openssl/rsa.h> 19507" "$ac_c_undeclared_builtin_options" "CFLAGS" 19508if test "x$ac_cv_have_decl_PKCS1_MGF1" = xyes 19509then : 19510 19511printf "%s\n" "#define XSEC_OPENSSL_HAVE_MGF1 1" >>confdefs.h 19512 19513fi 19514 19515 ac_fn_check_decl "$LINENO" "EVP_PKEY_set1_EC_KEY" "ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" "#include <openssl/evp.h> 19516" "$ac_c_undeclared_builtin_options" "CFLAGS" 19517if test "x$ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" = xyes 19518then : 19519 19520printf "%s\n" "#define XSEC_OPENSSL_HAVE_EC 1" >>confdefs.h 19521 19522fi 19523 19524 ac_fn_check_decl "$LINENO" "EVP_sha512" "ac_cv_have_decl_EVP_sha512" "#include <openssl/evp.h> 19525" "$ac_c_undeclared_builtin_options" "CFLAGS" 19526if test "x$ac_cv_have_decl_EVP_sha512" = xyes 19527then : 19528 19529printf "%s\n" "#define XSEC_OPENSSL_HAVE_SHA2 1" >>confdefs.h 19530 19531fi 19532 19533 ac_fn_check_decl "$LINENO" "EVP_CIPHER_CTX_set_padding" "ac_cv_have_decl_EVP_CIPHER_CTX_set_padding" "#include <openssl/evp.h> 19534" "$ac_c_undeclared_builtin_options" "CFLAGS" 19535if test "x$ac_cv_have_decl_EVP_CIPHER_CTX_set_padding" = xyes 19536then : 19537 19538printf "%s\n" "#define XSEC_OPENSSL_CANSET_PADDING 1" >>confdefs.h 19539 19540fi 19541 19542 ac_fn_check_decl "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_have_decl_CRYPTO_cleanup_all_ex_data" "#include <openssl/crypto.h> 19543" "$ac_c_undeclared_builtin_options" "CFLAGS" 19544if test "x$ac_cv_have_decl_CRYPTO_cleanup_all_ex_data" = xyes 19545then : 19546 19547printf "%s\n" "#define XSEC_OPENSSL_HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h 19548 19549fi 19550 19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for const input buffer in loadX509Base64Bin" >&5 19552printf %s "checking for const input buffer in loadX509Base64Bin... " >&6; } 19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19554/* end confdefs.h. */ 19555#include <openssl/x509.h> 19556int 19557main (void) 19558{ 19559 const unsigned char * buf; d2i_X509(NULL, &buf, 1); 19560 ; 19561 return 0; 19562} 19563_ACEOF 19564if ac_fn_c_try_compile "$LINENO" 19565then : 19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19567printf "%s\n" "yes" >&6; } 19568 19569printf "%s\n" "#define XSEC_OPENSSL_D2IX509_CONST_BUFFER 1" >>confdefs.h 19570 19571else $as_nop 19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19573printf "%s\n" "no" >&6; } 19574fi 19575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19576 19577 19578 19579CFLAGS="$_ax_openssl_saved_flag_cflags" 19580 19581 19582LIBS="$_ax_openssl_saved_flag_libs" 19583 19584 19585 19586 19587 19588 19589 19590fi 19591 19592 # Substitute output. 19593 19594 19595 19596 19597fi 19598 19599 19600# Check whether --with-nss was given. 19601if test ${with_nss+y} 19602then : 19603 withval=$with_nss; 19604else $as_nop 19605 with_nss=check 19606fi 19607 19608 19609if test x"$with_nss" != xno 19610then : 19611 19612 19613 19614 19615 19616pkg_failed=no 19617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5 19618printf %s "checking for nss... " >&6; } 19619 19620if test -n "$nss_CFLAGS"; then 19621 pkg_cv_nss_CFLAGS="$nss_CFLAGS" 19622 elif test -n "$PKG_CONFIG"; then 19623 if test -n "$PKG_CONFIG" && \ 19624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" nss\""; } >&5 19625 ($PKG_CONFIG --exists --print-errors " nss") 2>&5 19626 ac_status=$? 19627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19628 test $ac_status = 0; }; then 19629 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags " nss" 2>/dev/null` 19630 test "x$?" != "x0" && pkg_failed=yes 19631else 19632 pkg_failed=yes 19633fi 19634 else 19635 pkg_failed=untried 19636fi 19637if test -n "$nss_LIBS"; then 19638 pkg_cv_nss_LIBS="$nss_LIBS" 19639 elif test -n "$PKG_CONFIG"; then 19640 if test -n "$PKG_CONFIG" && \ 19641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" nss\""; } >&5 19642 ($PKG_CONFIG --exists --print-errors " nss") 2>&5 19643 ac_status=$? 19644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19645 test $ac_status = 0; }; then 19646 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs " nss" 2>/dev/null` 19647 test "x$?" != "x0" && pkg_failed=yes 19648else 19649 pkg_failed=yes 19650fi 19651 else 19652 pkg_failed=untried 19653fi 19654 19655 19656 19657if test $pkg_failed = yes; then 19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19659printf "%s\n" "no" >&6; } 19660 19661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19662 _pkg_short_errors_supported=yes 19663else 19664 _pkg_short_errors_supported=no 19665fi 19666 if test $_pkg_short_errors_supported = yes; then 19667 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " nss" 2>&1` 19668 else 19669 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " nss" 2>&1` 19670 fi 19671 # Put the nasty error message in config.log where it belongs 19672 echo "$nss_PKG_ERRORS" >&5 19673 19674 if test "x$with_nss" != "xcheck" 19675then : 19676 as_fn_error $? "Unable to find NSS" "$LINENO" 5 19677fi 19678elif test $pkg_failed = untried; then 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19680printf "%s\n" "no" >&6; } 19681 if test "x$with_nss" != "xcheck" 19682then : 19683 as_fn_error $? "Unable to find NSS" "$LINENO" 5 19684fi 19685else 19686 nss_CFLAGS=$pkg_cv_nss_CFLAGS 19687 nss_LIBS=$pkg_cv_nss_LIBS 19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19689printf "%s\n" "yes" >&6; } 19690 19691 AX_PACKAGE_REQUIRES="$AX_PACKAGE_REQUIRES " 19692 AX_PACKAGE_REQUIRES_PRIVATE="$AX_PACKAGE_REQUIRES_PRIVATE nss" 19693 with_nss=found 19694 19695printf "%s\n" "#define XSEC_HAVE_NSS 1" >>confdefs.h 19696 19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NSS is no longer officially supported" >&5 19698printf "%s\n" "$as_me: WARNING: NSS is no longer officially supported" >&2;} 19699 19700fi 19701 19702 # Substitute output. 19703 19704 19705 19706 19707fi 19708 19709# Check whether --enable-xkms was given. 19710if test ${enable_xkms+y} 19711then : 19712 enableval=$enable_xkms; have_xkms=${enableval} 19713else $as_nop 19714 have_xkms=yes 19715fi 19716 19717if test x"$have_xkms" = "xyes" ; then 19718 19719printf "%s\n" "#define XSEC_XKMS_ENABLED 1" >>confdefs.h 19720 19721fi 19722 19723# Populate the Makefile conditionals 19724 if test "x$with_openssl" = xfound; then 19725 XSEC_AM_HAVE_OPENSSL_TRUE= 19726 XSEC_AM_HAVE_OPENSSL_FALSE='#' 19727else 19728 XSEC_AM_HAVE_OPENSSL_TRUE='#' 19729 XSEC_AM_HAVE_OPENSSL_FALSE= 19730fi 19731 19732 if test "x$with_nss" = xfound; then 19733 XSEC_AM_HAVE_NSS_TRUE= 19734 XSEC_AM_HAVE_NSS_FALSE='#' 19735else 19736 XSEC_AM_HAVE_NSS_TRUE='#' 19737 XSEC_AM_HAVE_NSS_FALSE= 19738fi 19739 19740 if test x"$have_xkms" = "xyes"; then 19741 XSEC_AM_HAVE_XKMS_TRUE= 19742 XSEC_AM_HAVE_XKMS_FALSE='#' 19743else 19744 XSEC_AM_HAVE_XKMS_TRUE='#' 19745 XSEC_AM_HAVE_XKMS_FALSE= 19746fi 19747 19748 19749# output the Makefiles 19750cat >confcache <<\_ACEOF 19751# This file is a shell script that caches the results of configure 19752# tests run on this system so they can be shared between configure 19753# scripts and configure runs, see configure's option --config-cache. 19754# It is not useful on other systems. If it contains results you don't 19755# want to keep, you may remove or edit it. 19756# 19757# config.status only pays attention to the cache file if you give it 19758# the --recheck option to rerun configure. 19759# 19760# `ac_cv_env_foo' variables (set or unset) will be overridden when 19761# loading this file, other *unset* `ac_cv_foo' will be assigned the 19762# following values. 19763 19764_ACEOF 19765 19766# The following way of writing the cache mishandles newlines in values, 19767# but we know of no workaround that is simple, portable, and efficient. 19768# So, we kill variables containing newlines. 19769# Ultrix sh set writes to stderr and can't be redirected directly, 19770# and sets the high bit in the cache file unless we assign to the vars. 19771( 19772 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19773 eval ac_val=\$$ac_var 19774 case $ac_val in #( 19775 *${as_nl}*) 19776 case $ac_var in #( 19777 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19778printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19779 esac 19780 case $ac_var in #( 19781 _ | IFS | as_nl) ;; #( 19782 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19783 *) { eval $ac_var=; unset $ac_var;} ;; 19784 esac ;; 19785 esac 19786 done 19787 19788 (set) 2>&1 | 19789 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19790 *${as_nl}ac_space=\ *) 19791 # `set' does not quote correctly, so add quotes: double-quote 19792 # substitution turns \\\\ into \\, and sed turns \\ into \. 19793 sed -n \ 19794 "s/'/'\\\\''/g; 19795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19796 ;; #( 19797 *) 19798 # `set' quotes correctly as required by POSIX, so do not add quotes. 19799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19800 ;; 19801 esac | 19802 sort 19803) | 19804 sed ' 19805 /^ac_cv_env_/b end 19806 t clear 19807 :clear 19808 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19809 t end 19810 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19811 :end' >>confcache 19812if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19813 if test -w "$cache_file"; then 19814 if test "x$cache_file" != "x/dev/null"; then 19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19816printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19817 if test ! -f "$cache_file" || test -h "$cache_file"; then 19818 cat confcache >"$cache_file" 19819 else 19820 case $cache_file in #( 19821 */* | ?:*) 19822 mv -f confcache "$cache_file"$$ && 19823 mv -f "$cache_file"$$ "$cache_file" ;; #( 19824 *) 19825 mv -f confcache "$cache_file" ;; 19826 esac 19827 fi 19828 fi 19829 else 19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19831printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19832 fi 19833fi 19834rm -f confcache 19835 19836test "x$prefix" = xNONE && prefix=$ac_default_prefix 19837# Let make expand exec_prefix. 19838test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19839 19840DEFS=-DHAVE_CONFIG_H 19841 19842ac_libobjs= 19843ac_ltlibobjs= 19844U= 19845for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19846 # 1. Remove the extension, and $U if already installed. 19847 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19848 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19849 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19850 # will be set to the directory where LIBOBJS objects are built. 19851 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19852 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19853done 19854LIBOBJS=$ac_libobjs 19855 19856LTLIBOBJS=$ac_ltlibobjs 19857 19858 19859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19860printf %s "checking that generated files are newer than configure... " >&6; } 19861 if test -n "$am_sleep_pid"; then 19862 # Hide warnings about reused PIDs. 19863 wait $am_sleep_pid 2>/dev/null 19864 fi 19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19866printf "%s\n" "done" >&6; } 19867 if test -n "$EXEEXT"; then 19868 am__EXEEXT_TRUE= 19869 am__EXEEXT_FALSE='#' 19870else 19871 am__EXEEXT_TRUE='#' 19872 am__EXEEXT_FALSE= 19873fi 19874 19875if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19876 as_fn_error $? "conditional \"AMDEP\" was never defined. 19877Usually this means the macro was only invoked conditionally." "$LINENO" 5 19878fi 19879if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19880 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19881Usually this means the macro was only invoked conditionally." "$LINENO" 5 19882fi 19883if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19884 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19885Usually this means the macro was only invoked conditionally." "$LINENO" 5 19886fi 19887if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19888 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19889Usually this means the macro was only invoked conditionally." "$LINENO" 5 19890fi 19891if test -z "${XSEC_AM_HAVE_OPENSSL_TRUE}" && test -z "${XSEC_AM_HAVE_OPENSSL_FALSE}"; then 19892 as_fn_error $? "conditional \"XSEC_AM_HAVE_OPENSSL\" was never defined. 19893Usually this means the macro was only invoked conditionally." "$LINENO" 5 19894fi 19895if test -z "${XSEC_AM_HAVE_NSS_TRUE}" && test -z "${XSEC_AM_HAVE_NSS_FALSE}"; then 19896 as_fn_error $? "conditional \"XSEC_AM_HAVE_NSS\" was never defined. 19897Usually this means the macro was only invoked conditionally." "$LINENO" 5 19898fi 19899if test -z "${XSEC_AM_HAVE_XKMS_TRUE}" && test -z "${XSEC_AM_HAVE_XKMS_FALSE}"; then 19900 as_fn_error $? "conditional \"XSEC_AM_HAVE_XKMS\" was never defined. 19901Usually this means the macro was only invoked conditionally." "$LINENO" 5 19902fi 19903 19904: "${CONFIG_STATUS=./config.status}" 19905ac_write_fail=0 19906ac_clean_files_save=$ac_clean_files 19907ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19909printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19910as_write_fail=0 19911cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19912#! $SHELL 19913# Generated by $as_me. 19914# Run this file to recreate the current configuration. 19915# Compiler output produced by configure, useful for debugging 19916# configure, is in config.log if it exists. 19917 19918debug=false 19919ac_cs_recheck=false 19920ac_cs_silent=false 19921 19922SHELL=\${CONFIG_SHELL-$SHELL} 19923export SHELL 19924_ASEOF 19925cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19926## -------------------- ## 19927## M4sh Initialization. ## 19928## -------------------- ## 19929 19930# Be more Bourne compatible 19931DUALCASE=1; export DUALCASE # for MKS sh 19932as_nop=: 19933if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19934then : 19935 emulate sh 19936 NULLCMD=: 19937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19938 # is contrary to our usage. Disable this feature. 19939 alias -g '${1+"$@"}'='"$@"' 19940 setopt NO_GLOB_SUBST 19941else $as_nop 19942 case `(set -o) 2>/dev/null` in #( 19943 *posix*) : 19944 set -o posix ;; #( 19945 *) : 19946 ;; 19947esac 19948fi 19949 19950 19951 19952# Reset variables that may have inherited troublesome values from 19953# the environment. 19954 19955# IFS needs to be set, to space, tab, and newline, in precisely that order. 19956# (If _AS_PATH_WALK were called with IFS unset, it would have the 19957# side effect of setting IFS to empty, thus disabling word splitting.) 19958# Quoting is to prevent editors from complaining about space-tab. 19959as_nl=' 19960' 19961export as_nl 19962IFS=" "" $as_nl" 19963 19964PS1='$ ' 19965PS2='> ' 19966PS4='+ ' 19967 19968# Ensure predictable behavior from utilities with locale-dependent output. 19969LC_ALL=C 19970export LC_ALL 19971LANGUAGE=C 19972export LANGUAGE 19973 19974# We cannot yet rely on "unset" to work, but we need these variables 19975# to be unset--not just set to an empty or harmless value--now, to 19976# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19977# also avoids known problems related to "unset" and subshell syntax 19978# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19979for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19980do eval test \${$as_var+y} \ 19981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19982done 19983 19984# Ensure that fds 0, 1, and 2 are open. 19985if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19986if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19987if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19988 19989# The user is always right. 19990if ${PATH_SEPARATOR+false} :; then 19991 PATH_SEPARATOR=: 19992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19994 PATH_SEPARATOR=';' 19995 } 19996fi 19997 19998 19999# Find who we are. Look in the path if we contain no directory separator. 20000as_myself= 20001case $0 in #(( 20002 *[\\/]* ) as_myself=$0 ;; 20003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20004for as_dir in $PATH 20005do 20006 IFS=$as_save_IFS 20007 case $as_dir in #((( 20008 '') as_dir=./ ;; 20009 */) ;; 20010 *) as_dir=$as_dir/ ;; 20011 esac 20012 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20013 done 20014IFS=$as_save_IFS 20015 20016 ;; 20017esac 20018# We did not find ourselves, most probably we were run as `sh COMMAND' 20019# in which case we are not to be found in the path. 20020if test "x$as_myself" = x; then 20021 as_myself=$0 20022fi 20023if test ! -f "$as_myself"; then 20024 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20025 exit 1 20026fi 20027 20028 20029 20030# as_fn_error STATUS ERROR [LINENO LOG_FD] 20031# ---------------------------------------- 20032# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20033# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20034# script with STATUS, using 1 if that was 0. 20035as_fn_error () 20036{ 20037 as_status=$1; test $as_status -eq 0 && as_status=1 20038 if test "$4"; then 20039 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20041 fi 20042 printf "%s\n" "$as_me: error: $2" >&2 20043 as_fn_exit $as_status 20044} # as_fn_error 20045 20046 20047 20048# as_fn_set_status STATUS 20049# ----------------------- 20050# Set $? to STATUS, without forking. 20051as_fn_set_status () 20052{ 20053 return $1 20054} # as_fn_set_status 20055 20056# as_fn_exit STATUS 20057# ----------------- 20058# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20059as_fn_exit () 20060{ 20061 set +e 20062 as_fn_set_status $1 20063 exit $1 20064} # as_fn_exit 20065 20066# as_fn_unset VAR 20067# --------------- 20068# Portably unset VAR. 20069as_fn_unset () 20070{ 20071 { eval $1=; unset $1;} 20072} 20073as_unset=as_fn_unset 20074 20075# as_fn_append VAR VALUE 20076# ---------------------- 20077# Append the text in VALUE to the end of the definition contained in VAR. Take 20078# advantage of any shell optimizations that allow amortized linear growth over 20079# repeated appends, instead of the typical quadratic growth present in naive 20080# implementations. 20081if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20082then : 20083 eval 'as_fn_append () 20084 { 20085 eval $1+=\$2 20086 }' 20087else $as_nop 20088 as_fn_append () 20089 { 20090 eval $1=\$$1\$2 20091 } 20092fi # as_fn_append 20093 20094# as_fn_arith ARG... 20095# ------------------ 20096# Perform arithmetic evaluation on the ARGs, and store the result in the 20097# global $as_val. Take advantage of shells that can avoid forks. The arguments 20098# must be portable across $(()) and expr. 20099if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20100then : 20101 eval 'as_fn_arith () 20102 { 20103 as_val=$(( $* )) 20104 }' 20105else $as_nop 20106 as_fn_arith () 20107 { 20108 as_val=`expr "$@" || test $? -eq 1` 20109 } 20110fi # as_fn_arith 20111 20112 20113if expr a : '\(a\)' >/dev/null 2>&1 && 20114 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20115 as_expr=expr 20116else 20117 as_expr=false 20118fi 20119 20120if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20121 as_basename=basename 20122else 20123 as_basename=false 20124fi 20125 20126if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20127 as_dirname=dirname 20128else 20129 as_dirname=false 20130fi 20131 20132as_me=`$as_basename -- "$0" || 20133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20134 X"$0" : 'X\(//\)$' \| \ 20135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20136printf "%s\n" X/"$0" | 20137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20138 s//\1/ 20139 q 20140 } 20141 /^X\/\(\/\/\)$/{ 20142 s//\1/ 20143 q 20144 } 20145 /^X\/\(\/\).*/{ 20146 s//\1/ 20147 q 20148 } 20149 s/.*/./; q'` 20150 20151# Avoid depending upon Character Ranges. 20152as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20154as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20155as_cr_digits='0123456789' 20156as_cr_alnum=$as_cr_Letters$as_cr_digits 20157 20158 20159# Determine whether it's possible to make 'echo' print without a newline. 20160# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20161# for compatibility with existing Makefiles. 20162ECHO_C= ECHO_N= ECHO_T= 20163case `echo -n x` in #((((( 20164-n*) 20165 case `echo 'xy\c'` in 20166 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20167 xy) ECHO_C='\c';; 20168 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20169 ECHO_T=' ';; 20170 esac;; 20171*) 20172 ECHO_N='-n';; 20173esac 20174 20175# For backward compatibility with old third-party macros, we provide 20176# the shell variables $as_echo and $as_echo_n. New code should use 20177# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20178as_echo='printf %s\n' 20179as_echo_n='printf %s' 20180 20181rm -f conf$$ conf$$.exe conf$$.file 20182if test -d conf$$.dir; then 20183 rm -f conf$$.dir/conf$$.file 20184else 20185 rm -f conf$$.dir 20186 mkdir conf$$.dir 2>/dev/null 20187fi 20188if (echo >conf$$.file) 2>/dev/null; then 20189 if ln -s conf$$.file conf$$ 2>/dev/null; then 20190 as_ln_s='ln -s' 20191 # ... but there are two gotchas: 20192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20194 # In both cases, we have to default to `cp -pR'. 20195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20196 as_ln_s='cp -pR' 20197 elif ln conf$$.file conf$$ 2>/dev/null; then 20198 as_ln_s=ln 20199 else 20200 as_ln_s='cp -pR' 20201 fi 20202else 20203 as_ln_s='cp -pR' 20204fi 20205rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20206rmdir conf$$.dir 2>/dev/null 20207 20208 20209# as_fn_mkdir_p 20210# ------------- 20211# Create "$as_dir" as a directory, including parents if necessary. 20212as_fn_mkdir_p () 20213{ 20214 20215 case $as_dir in #( 20216 -*) as_dir=./$as_dir;; 20217 esac 20218 test -d "$as_dir" || eval $as_mkdir_p || { 20219 as_dirs= 20220 while :; do 20221 case $as_dir in #( 20222 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20223 *) as_qdir=$as_dir;; 20224 esac 20225 as_dirs="'$as_qdir' $as_dirs" 20226 as_dir=`$as_dirname -- "$as_dir" || 20227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20228 X"$as_dir" : 'X\(//\)[^/]' \| \ 20229 X"$as_dir" : 'X\(//\)$' \| \ 20230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20231printf "%s\n" X"$as_dir" | 20232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20233 s//\1/ 20234 q 20235 } 20236 /^X\(\/\/\)[^/].*/{ 20237 s//\1/ 20238 q 20239 } 20240 /^X\(\/\/\)$/{ 20241 s//\1/ 20242 q 20243 } 20244 /^X\(\/\).*/{ 20245 s//\1/ 20246 q 20247 } 20248 s/.*/./; q'` 20249 test -d "$as_dir" && break 20250 done 20251 test -z "$as_dirs" || eval "mkdir $as_dirs" 20252 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20253 20254 20255} # as_fn_mkdir_p 20256if mkdir -p . 2>/dev/null; then 20257 as_mkdir_p='mkdir -p "$as_dir"' 20258else 20259 test -d ./-p && rmdir ./-p 20260 as_mkdir_p=false 20261fi 20262 20263 20264# as_fn_executable_p FILE 20265# ----------------------- 20266# Test if FILE is an executable regular file. 20267as_fn_executable_p () 20268{ 20269 test -f "$1" && test -x "$1" 20270} # as_fn_executable_p 20271as_test_x='test -x' 20272as_executable_p=as_fn_executable_p 20273 20274# Sed expression to map a string onto a valid CPP name. 20275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20276 20277# Sed expression to map a string onto a valid variable name. 20278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20279 20280 20281exec 6>&1 20282## ----------------------------------- ## 20283## Main body of $CONFIG_STATUS script. ## 20284## ----------------------------------- ## 20285_ASEOF 20286test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20287 20288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20289# Save the log message, to keep $0 and so on meaningful, and to 20290# report actual input values of CONFIG_FILES etc. instead of their 20291# values after options handling. 20292ac_log=" 20293This file was extended by XML-Security-C $as_me 2.0.4, which was 20294generated by GNU Autoconf 2.71. Invocation command line was 20295 20296 CONFIG_FILES = $CONFIG_FILES 20297 CONFIG_HEADERS = $CONFIG_HEADERS 20298 CONFIG_LINKS = $CONFIG_LINKS 20299 CONFIG_COMMANDS = $CONFIG_COMMANDS 20300 $ $0 $@ 20301 20302on `(hostname || uname -n) 2>/dev/null | sed 1q` 20303" 20304 20305_ACEOF 20306 20307case $ac_config_files in *" 20308"*) set x $ac_config_files; shift; ac_config_files=$*;; 20309esac 20310 20311case $ac_config_headers in *" 20312"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20313esac 20314 20315 20316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20317# Files that config.status was made for. 20318config_files="$ac_config_files" 20319config_headers="$ac_config_headers" 20320config_commands="$ac_config_commands" 20321 20322_ACEOF 20323 20324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20325ac_cs_usage="\ 20326\`$as_me' instantiates files and other configuration actions 20327from templates according to the current configuration. Unless the files 20328and actions are specified as TAGs, all are instantiated by default. 20329 20330Usage: $0 [OPTION]... [TAG]... 20331 20332 -h, --help print this help, then exit 20333 -V, --version print version number and configuration settings, then exit 20334 --config print configuration, then exit 20335 -q, --quiet, --silent 20336 do not print progress messages 20337 -d, --debug don't remove temporary files 20338 --recheck update $as_me by reconfiguring in the same conditions 20339 --file=FILE[:TEMPLATE] 20340 instantiate the configuration file FILE 20341 --header=FILE[:TEMPLATE] 20342 instantiate the configuration header FILE 20343 20344Configuration files: 20345$config_files 20346 20347Configuration headers: 20348$config_headers 20349 20350Configuration commands: 20351$config_commands 20352 20353Report bugs to <dev@santuario.apache.org>." 20354 20355_ACEOF 20356ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20357ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20359ac_cs_config='$ac_cs_config_escaped' 20360ac_cs_version="\\ 20361XML-Security-C config.status 2.0.4 20362configured by $0, generated by GNU Autoconf 2.71, 20363 with options \\"\$ac_cs_config\\" 20364 20365Copyright (C) 2021 Free Software Foundation, Inc. 20366This config.status script is free software; the Free Software Foundation 20367gives unlimited permission to copy, distribute and modify it." 20368 20369ac_pwd='$ac_pwd' 20370srcdir='$srcdir' 20371INSTALL='$INSTALL' 20372MKDIR_P='$MKDIR_P' 20373AWK='$AWK' 20374test -n "\$AWK" || AWK=awk 20375_ACEOF 20376 20377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20378# The default lists apply if the user does not specify any file. 20379ac_need_defaults=: 20380while test $# != 0 20381do 20382 case $1 in 20383 --*=?*) 20384 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20386 ac_shift=: 20387 ;; 20388 --*=) 20389 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20390 ac_optarg= 20391 ac_shift=: 20392 ;; 20393 *) 20394 ac_option=$1 20395 ac_optarg=$2 20396 ac_shift=shift 20397 ;; 20398 esac 20399 20400 case $ac_option in 20401 # Handling of the options. 20402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20403 ac_cs_recheck=: ;; 20404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20405 printf "%s\n" "$ac_cs_version"; exit ;; 20406 --config | --confi | --conf | --con | --co | --c ) 20407 printf "%s\n" "$ac_cs_config"; exit ;; 20408 --debug | --debu | --deb | --de | --d | -d ) 20409 debug=: ;; 20410 --file | --fil | --fi | --f ) 20411 $ac_shift 20412 case $ac_optarg in 20413 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20414 '') as_fn_error $? "missing file argument" ;; 20415 esac 20416 as_fn_append CONFIG_FILES " '$ac_optarg'" 20417 ac_need_defaults=false;; 20418 --header | --heade | --head | --hea ) 20419 $ac_shift 20420 case $ac_optarg in 20421 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20422 esac 20423 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20424 ac_need_defaults=false;; 20425 --he | --h) 20426 # Conflict between --help and --header 20427 as_fn_error $? "ambiguous option: \`$1' 20428Try \`$0 --help' for more information.";; 20429 --help | --hel | -h ) 20430 printf "%s\n" "$ac_cs_usage"; exit ;; 20431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20432 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20433 ac_cs_silent=: ;; 20434 20435 # This is an error. 20436 -*) as_fn_error $? "unrecognized option: \`$1' 20437Try \`$0 --help' for more information." ;; 20438 20439 *) as_fn_append ac_config_targets " $1" 20440 ac_need_defaults=false ;; 20441 20442 esac 20443 shift 20444done 20445 20446ac_configure_extra_args= 20447 20448if $ac_cs_silent; then 20449 exec 6>/dev/null 20450 ac_configure_extra_args="$ac_configure_extra_args --silent" 20451fi 20452 20453_ACEOF 20454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20455if \$ac_cs_recheck; then 20456 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20457 shift 20458 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20459 CONFIG_SHELL='$SHELL' 20460 export CONFIG_SHELL 20461 exec "\$@" 20462fi 20463 20464_ACEOF 20465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20466exec 5>>config.log 20467{ 20468 echo 20469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20470## Running $as_me. ## 20471_ASBOX 20472 printf "%s\n" "$ac_log" 20473} >&5 20474 20475_ACEOF 20476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20477# 20478# INIT-COMMANDS 20479# 20480AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20481 20482 20483# The HP-UX ksh and POSIX shell print the target directory to stdout 20484# if CDPATH is set. 20485(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20486 20487sed_quote_subst='$sed_quote_subst' 20488double_quote_subst='$double_quote_subst' 20489delay_variable_subst='$delay_variable_subst' 20490macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20491macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20492enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20493enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20494pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20495enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20496shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20497SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20498ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20499PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20500host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20501host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20502host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20503build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20504build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20505build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20506SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20507Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20508GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20509EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20510FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20511LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20512NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20513LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20514max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20515ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20516exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20517lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20518lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20519lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20520lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20521lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20522reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20523reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20524OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20525deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20526file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20527file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20528want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20529DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20530sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20531AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20532AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20533archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20534STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20535RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20536old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20537old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20538old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20539lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20540CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20541CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20542compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20543GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20544lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20545lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20546lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20547lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20548lt_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"`' 20549lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20550nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20551lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20552lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20553objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20554MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20555lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20556lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20557lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20558lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20559lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20560need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20561MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20562DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20563NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20564LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20565OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20566OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20567libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20568shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20569extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20570archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20571enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20572export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20573whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20574compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20575old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20576old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20577archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20578archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20579module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20580module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20581with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20582allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20583no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20584hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20585hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20586hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20587hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20588hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20589hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20590hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20591inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20592link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20593always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20594export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20595exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20596include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20597prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20598postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20599file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20600variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20601need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20602need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20603version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20604runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20605shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20606shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20607libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20608library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20609soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20610install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20611postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20612postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20613finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20614finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20615hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20616sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20617configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20618configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20619hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20620enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20621enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20622enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20623old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20624striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20625compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20626predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20627postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20628predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20629postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20630compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20631LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20632reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20633reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20634old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20635compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20636GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20637lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20638lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20639lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20640lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20641lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20642archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20643enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20644export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20645whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20646compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20647old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20648old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20649archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20650archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20651module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20652module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20653with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20654allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20655no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20656hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20657hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20658hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20659hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20660hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20661hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20662hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20663inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20664link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20665always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20666export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20667exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20668include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20669prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20670postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20671file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20672hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20673compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20674predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20675postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20676predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20677postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20678compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20679 20680LTCC='$LTCC' 20681LTCFLAGS='$LTCFLAGS' 20682compiler='$compiler_DEFAULT' 20683 20684# A function that is used when there is no print builtin or printf. 20685func_fallback_echo () 20686{ 20687 eval 'cat <<_LTECHO_EOF 20688\$1 20689_LTECHO_EOF' 20690} 20691 20692# Quote evaled strings. 20693for var in SHELL \ 20694ECHO \ 20695PATH_SEPARATOR \ 20696SED \ 20697GREP \ 20698EGREP \ 20699FGREP \ 20700LD \ 20701NM \ 20702LN_S \ 20703lt_SP2NL \ 20704lt_NL2SP \ 20705reload_flag \ 20706OBJDUMP \ 20707deplibs_check_method \ 20708file_magic_cmd \ 20709file_magic_glob \ 20710want_nocaseglob \ 20711DLLTOOL \ 20712sharedlib_from_linklib_cmd \ 20713AR \ 20714AR_FLAGS \ 20715archiver_list_spec \ 20716STRIP \ 20717RANLIB \ 20718CC \ 20719CFLAGS \ 20720compiler \ 20721lt_cv_sys_global_symbol_pipe \ 20722lt_cv_sys_global_symbol_to_cdecl \ 20723lt_cv_sys_global_symbol_to_import \ 20724lt_cv_sys_global_symbol_to_c_name_address \ 20725lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20726lt_cv_nm_interface \ 20727nm_file_list_spec \ 20728lt_cv_truncate_bin \ 20729lt_prog_compiler_no_builtin_flag \ 20730lt_prog_compiler_pic \ 20731lt_prog_compiler_wl \ 20732lt_prog_compiler_static \ 20733lt_cv_prog_compiler_c_o \ 20734need_locks \ 20735MANIFEST_TOOL \ 20736DSYMUTIL \ 20737NMEDIT \ 20738LIPO \ 20739OTOOL \ 20740OTOOL64 \ 20741shrext_cmds \ 20742export_dynamic_flag_spec \ 20743whole_archive_flag_spec \ 20744compiler_needs_object \ 20745with_gnu_ld \ 20746allow_undefined_flag \ 20747no_undefined_flag \ 20748hardcode_libdir_flag_spec \ 20749hardcode_libdir_separator \ 20750exclude_expsyms \ 20751include_expsyms \ 20752file_list_spec \ 20753variables_saved_for_relink \ 20754libname_spec \ 20755library_names_spec \ 20756soname_spec \ 20757install_override_mode \ 20758finish_eval \ 20759old_striplib \ 20760striplib \ 20761compiler_lib_search_dirs \ 20762predep_objects \ 20763postdep_objects \ 20764predeps \ 20765postdeps \ 20766compiler_lib_search_path \ 20767LD_CXX \ 20768reload_flag_CXX \ 20769compiler_CXX \ 20770lt_prog_compiler_no_builtin_flag_CXX \ 20771lt_prog_compiler_pic_CXX \ 20772lt_prog_compiler_wl_CXX \ 20773lt_prog_compiler_static_CXX \ 20774lt_cv_prog_compiler_c_o_CXX \ 20775export_dynamic_flag_spec_CXX \ 20776whole_archive_flag_spec_CXX \ 20777compiler_needs_object_CXX \ 20778with_gnu_ld_CXX \ 20779allow_undefined_flag_CXX \ 20780no_undefined_flag_CXX \ 20781hardcode_libdir_flag_spec_CXX \ 20782hardcode_libdir_separator_CXX \ 20783exclude_expsyms_CXX \ 20784include_expsyms_CXX \ 20785file_list_spec_CXX \ 20786compiler_lib_search_dirs_CXX \ 20787predep_objects_CXX \ 20788postdep_objects_CXX \ 20789predeps_CXX \ 20790postdeps_CXX \ 20791compiler_lib_search_path_CXX; do 20792 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20793 *[\\\\\\\`\\"\\\$]*) 20794 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20795 ;; 20796 *) 20797 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20798 ;; 20799 esac 20800done 20801 20802# Double-quote double-evaled strings. 20803for var in reload_cmds \ 20804old_postinstall_cmds \ 20805old_postuninstall_cmds \ 20806old_archive_cmds \ 20807extract_expsyms_cmds \ 20808old_archive_from_new_cmds \ 20809old_archive_from_expsyms_cmds \ 20810archive_cmds \ 20811archive_expsym_cmds \ 20812module_cmds \ 20813module_expsym_cmds \ 20814export_symbols_cmds \ 20815prelink_cmds \ 20816postlink_cmds \ 20817postinstall_cmds \ 20818postuninstall_cmds \ 20819finish_cmds \ 20820sys_lib_search_path_spec \ 20821configure_time_dlsearch_path \ 20822configure_time_lt_sys_library_path \ 20823reload_cmds_CXX \ 20824old_archive_cmds_CXX \ 20825old_archive_from_new_cmds_CXX \ 20826old_archive_from_expsyms_cmds_CXX \ 20827archive_cmds_CXX \ 20828archive_expsym_cmds_CXX \ 20829module_cmds_CXX \ 20830module_expsym_cmds_CXX \ 20831export_symbols_cmds_CXX \ 20832prelink_cmds_CXX \ 20833postlink_cmds_CXX; do 20834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20835 *[\\\\\\\`\\"\\\$]*) 20836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20837 ;; 20838 *) 20839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20840 ;; 20841 esac 20842done 20843 20844ac_aux_dir='$ac_aux_dir' 20845 20846# See if we are running on zsh, and set the options that allow our 20847# commands through without removal of \ escapes INIT. 20848if test -n "\${ZSH_VERSION+set}"; then 20849 setopt NO_GLOB_SUBST 20850fi 20851 20852 20853 PACKAGE='$PACKAGE' 20854 VERSION='$VERSION' 20855 RM='$RM' 20856 ofile='$ofile' 20857 20858 20859 20860 20861 20862 20863_ACEOF 20864 20865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20866 20867# Handling of arguments. 20868for ac_config_target in $ac_config_targets 20869do 20870 case $ac_config_target in 20871 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20872 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20873 "xsec/Makefile") CONFIG_FILES="$CONFIG_FILES xsec/Makefile" ;; 20874 "xml-security-c.pc") CONFIG_FILES="$CONFIG_FILES xml-security-c.pc" ;; 20875 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20876 "xsec/framework/XSECConfig.hpp") CONFIG_HEADERS="$CONFIG_HEADERS xsec/framework/XSECConfig.hpp" ;; 20877 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20878 20879 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20880 esac 20881done 20882 20883 20884# If the user did not use the arguments to specify the items to instantiate, 20885# then the envvar interface is used. Set only those that are not. 20886# We use the long form for the default assignment because of an extremely 20887# bizarre bug on SunOS 4.1.3. 20888if $ac_need_defaults; then 20889 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20890 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20891 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20892fi 20893 20894# Have a temporary directory for convenience. Make it in the build tree 20895# simply because there is no reason against having it here, and in addition, 20896# creating and moving files from /tmp can sometimes cause problems. 20897# Hook for its removal unless debugging. 20898# Note that there is a small window in which the directory will not be cleaned: 20899# after its creation but before its name has been assigned to `$tmp'. 20900$debug || 20901{ 20902 tmp= ac_tmp= 20903 trap 'exit_status=$? 20904 : "${ac_tmp:=$tmp}" 20905 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20906' 0 20907 trap 'as_fn_exit 1' 1 2 13 15 20908} 20909# Create a (secure) tmp directory for tmp files. 20910 20911{ 20912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20913 test -d "$tmp" 20914} || 20915{ 20916 tmp=./conf$$-$RANDOM 20917 (umask 077 && mkdir "$tmp") 20918} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20919ac_tmp=$tmp 20920 20921# Set up the scripts for CONFIG_FILES section. 20922# No need to generate them if there are no CONFIG_FILES. 20923# This happens for instance with `./config.status config.h'. 20924if test -n "$CONFIG_FILES"; then 20925 20926 20927ac_cr=`echo X | tr X '\015'` 20928# On cygwin, bash can eat \r inside `` if the user requested igncr. 20929# But we know of no other shell where ac_cr would be empty at this 20930# point, so we can use a bashism as a fallback. 20931if test "x$ac_cr" = x; then 20932 eval ac_cr=\$\'\\r\' 20933fi 20934ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20935if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20936 ac_cs_awk_cr='\\r' 20937else 20938 ac_cs_awk_cr=$ac_cr 20939fi 20940 20941echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20942_ACEOF 20943 20944 20945{ 20946 echo "cat >conf$$subs.awk <<_ACEOF" && 20947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20948 echo "_ACEOF" 20949} >conf$$subs.sh || 20950 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20951ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20952ac_delim='%!_!# ' 20953for ac_last_try in false false false false false :; do 20954 . ./conf$$subs.sh || 20955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20956 20957 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20958 if test $ac_delim_n = $ac_delim_num; then 20959 break 20960 elif $ac_last_try; then 20961 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20962 else 20963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20964 fi 20965done 20966rm -f conf$$subs.sh 20967 20968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20969cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20970_ACEOF 20971sed -n ' 20972h 20973s/^/S["/; s/!.*/"]=/ 20974p 20975g 20976s/^[^!]*!// 20977:repl 20978t repl 20979s/'"$ac_delim"'$// 20980t delim 20981:nl 20982h 20983s/\(.\{148\}\)..*/\1/ 20984t more1 20985s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20986p 20987n 20988b repl 20989:more1 20990s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20991p 20992g 20993s/.\{148\}// 20994t nl 20995:delim 20996h 20997s/\(.\{148\}\)..*/\1/ 20998t more2 20999s/["\\]/\\&/g; s/^/"/; s/$/"/ 21000p 21001b 21002:more2 21003s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21004p 21005g 21006s/.\{148\}// 21007t delim 21008' <conf$$subs.awk | sed ' 21009/^[^""]/{ 21010 N 21011 s/\n// 21012} 21013' >>$CONFIG_STATUS || ac_write_fail=1 21014rm -f conf$$subs.awk 21015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21016_ACAWK 21017cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21018 for (key in S) S_is_set[key] = 1 21019 FS = "" 21020 21021} 21022{ 21023 line = $ 0 21024 nfields = split(line, field, "@") 21025 substed = 0 21026 len = length(field[1]) 21027 for (i = 2; i < nfields; i++) { 21028 key = field[i] 21029 keylen = length(key) 21030 if (S_is_set[key]) { 21031 value = S[key] 21032 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21033 len += length(value) + length(field[++i]) 21034 substed = 1 21035 } else 21036 len += 1 + keylen 21037 } 21038 21039 print line 21040} 21041 21042_ACAWK 21043_ACEOF 21044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21045if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21046 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21047else 21048 cat 21049fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21050 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21051_ACEOF 21052 21053# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21054# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21055# trailing colons and then remove the whole line if VPATH becomes empty 21056# (actually we leave an empty line to preserve line numbers). 21057if test "x$srcdir" = x.; then 21058 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21059h 21060s/// 21061s/^/:/ 21062s/[ ]*$/:/ 21063s/:\$(srcdir):/:/g 21064s/:\${srcdir}:/:/g 21065s/:@srcdir@:/:/g 21066s/^:*// 21067s/:*$// 21068x 21069s/\(=[ ]*\).*/\1/ 21070G 21071s/\n// 21072s/^[^=]*=[ ]*$// 21073}' 21074fi 21075 21076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21077fi # test -n "$CONFIG_FILES" 21078 21079# Set up the scripts for CONFIG_HEADERS section. 21080# No need to generate them if there are no CONFIG_HEADERS. 21081# This happens for instance with `./config.status Makefile'. 21082if test -n "$CONFIG_HEADERS"; then 21083cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21084BEGIN { 21085_ACEOF 21086 21087# Transform confdefs.h into an awk script `defines.awk', embedded as 21088# here-document in config.status, that substitutes the proper values into 21089# config.h.in to produce config.h. 21090 21091# Create a delimiter string that does not exist in confdefs.h, to ease 21092# handling of long lines. 21093ac_delim='%!_!# ' 21094for ac_last_try in false false :; do 21095 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21096 if test -z "$ac_tt"; then 21097 break 21098 elif $ac_last_try; then 21099 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21100 else 21101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21102 fi 21103done 21104 21105# For the awk script, D is an array of macro values keyed by name, 21106# likewise P contains macro parameters if any. Preserve backslash 21107# newline sequences. 21108 21109ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21110sed -n ' 21111s/.\{148\}/&'"$ac_delim"'/g 21112t rset 21113:rset 21114s/^[ ]*#[ ]*define[ ][ ]*/ / 21115t def 21116d 21117:def 21118s/\\$// 21119t bsnl 21120s/["\\]/\\&/g 21121s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21122D["\1"]=" \3"/p 21123s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21124d 21125:bsnl 21126s/["\\]/\\&/g 21127s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21128D["\1"]=" \3\\\\\\n"\\/p 21129t cont 21130s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21131t cont 21132d 21133:cont 21134n 21135s/.\{148\}/&'"$ac_delim"'/g 21136t clear 21137:clear 21138s/\\$// 21139t bsnlc 21140s/["\\]/\\&/g; s/^/"/; s/$/"/p 21141d 21142:bsnlc 21143s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21144b cont 21145' <confdefs.h | sed ' 21146s/'"$ac_delim"'/"\\\ 21147"/g' >>$CONFIG_STATUS || ac_write_fail=1 21148 21149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21150 for (key in D) D_is_set[key] = 1 21151 FS = "" 21152} 21153/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21154 line = \$ 0 21155 split(line, arg, " ") 21156 if (arg[1] == "#") { 21157 defundef = arg[2] 21158 mac1 = arg[3] 21159 } else { 21160 defundef = substr(arg[1], 2) 21161 mac1 = arg[2] 21162 } 21163 split(mac1, mac2, "(") #) 21164 macro = mac2[1] 21165 prefix = substr(line, 1, index(line, defundef) - 1) 21166 if (D_is_set[macro]) { 21167 # Preserve the white space surrounding the "#". 21168 print prefix "define", macro P[macro] D[macro] 21169 next 21170 } else { 21171 # Replace #undef with comments. This is necessary, for example, 21172 # in the case of _POSIX_SOURCE, which is predefined and required 21173 # on some systems where configure will not decide to define it. 21174 if (defundef == "undef") { 21175 print "/*", prefix defundef, macro, "*/" 21176 next 21177 } 21178 } 21179} 21180{ print } 21181_ACAWK 21182_ACEOF 21183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21184 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21185fi # test -n "$CONFIG_HEADERS" 21186 21187 21188eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21189shift 21190for ac_tag 21191do 21192 case $ac_tag in 21193 :[FHLC]) ac_mode=$ac_tag; continue;; 21194 esac 21195 case $ac_mode$ac_tag in 21196 :[FHL]*:*);; 21197 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21198 :[FH]-) ac_tag=-:-;; 21199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21200 esac 21201 ac_save_IFS=$IFS 21202 IFS=: 21203 set x $ac_tag 21204 IFS=$ac_save_IFS 21205 shift 21206 ac_file=$1 21207 shift 21208 21209 case $ac_mode in 21210 :L) ac_source=$1;; 21211 :[FH]) 21212 ac_file_inputs= 21213 for ac_f 21214 do 21215 case $ac_f in 21216 -) ac_f="$ac_tmp/stdin";; 21217 *) # Look for the file first in the build tree, then in the source tree 21218 # (if the path is not absolute). The absolute path cannot be DOS-style, 21219 # because $ac_f cannot contain `:'. 21220 test -f "$ac_f" || 21221 case $ac_f in 21222 [\\/$]*) false;; 21223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21224 esac || 21225 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21226 esac 21227 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21228 as_fn_append ac_file_inputs " '$ac_f'" 21229 done 21230 21231 # Let's still pretend it is `configure' which instantiates (i.e., don't 21232 # use $as_me), people would be surprised to read: 21233 # /* config.h. Generated by config.status. */ 21234 configure_input='Generated from '` 21235 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21236 `' by configure.' 21237 if test x"$ac_file" != x-; then 21238 configure_input="$ac_file. $configure_input" 21239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21240printf "%s\n" "$as_me: creating $ac_file" >&6;} 21241 fi 21242 # Neutralize special characters interpreted by sed in replacement strings. 21243 case $configure_input in #( 21244 *\&* | *\|* | *\\* ) 21245 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21246 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21247 *) ac_sed_conf_input=$configure_input;; 21248 esac 21249 21250 case $ac_tag in 21251 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21253 esac 21254 ;; 21255 esac 21256 21257 ac_dir=`$as_dirname -- "$ac_file" || 21258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21259 X"$ac_file" : 'X\(//\)[^/]' \| \ 21260 X"$ac_file" : 'X\(//\)$' \| \ 21261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21262printf "%s\n" X"$ac_file" | 21263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21264 s//\1/ 21265 q 21266 } 21267 /^X\(\/\/\)[^/].*/{ 21268 s//\1/ 21269 q 21270 } 21271 /^X\(\/\/\)$/{ 21272 s//\1/ 21273 q 21274 } 21275 /^X\(\/\).*/{ 21276 s//\1/ 21277 q 21278 } 21279 s/.*/./; q'` 21280 as_dir="$ac_dir"; as_fn_mkdir_p 21281 ac_builddir=. 21282 21283case "$ac_dir" in 21284.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21285*) 21286 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21287 # A ".." for each directory in $ac_dir_suffix. 21288 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21289 case $ac_top_builddir_sub in 21290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21292 esac ;; 21293esac 21294ac_abs_top_builddir=$ac_pwd 21295ac_abs_builddir=$ac_pwd$ac_dir_suffix 21296# for backward compatibility: 21297ac_top_builddir=$ac_top_build_prefix 21298 21299case $srcdir in 21300 .) # We are building in place. 21301 ac_srcdir=. 21302 ac_top_srcdir=$ac_top_builddir_sub 21303 ac_abs_top_srcdir=$ac_pwd ;; 21304 [\\/]* | ?:[\\/]* ) # Absolute name. 21305 ac_srcdir=$srcdir$ac_dir_suffix; 21306 ac_top_srcdir=$srcdir 21307 ac_abs_top_srcdir=$srcdir ;; 21308 *) # Relative name. 21309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21310 ac_top_srcdir=$ac_top_build_prefix$srcdir 21311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21312esac 21313ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21314 21315 21316 case $ac_mode in 21317 :F) 21318 # 21319 # CONFIG_FILE 21320 # 21321 21322 case $INSTALL in 21323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21325 esac 21326 ac_MKDIR_P=$MKDIR_P 21327 case $MKDIR_P in 21328 [\\/$]* | ?:[\\/]* ) ;; 21329 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21330 esac 21331_ACEOF 21332 21333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21334# If the template does not know about datarootdir, expand it. 21335# FIXME: This hack should be removed a few years after 2.60. 21336ac_datarootdir_hack=; ac_datarootdir_seen= 21337ac_sed_dataroot=' 21338/datarootdir/ { 21339 p 21340 q 21341} 21342/@datadir@/p 21343/@docdir@/p 21344/@infodir@/p 21345/@localedir@/p 21346/@mandir@/p' 21347case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21348*datarootdir*) ac_datarootdir_seen=yes;; 21349*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21351printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21352_ACEOF 21353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21354 ac_datarootdir_hack=' 21355 s&@datadir@&$datadir&g 21356 s&@docdir@&$docdir&g 21357 s&@infodir@&$infodir&g 21358 s&@localedir@&$localedir&g 21359 s&@mandir@&$mandir&g 21360 s&\\\${datarootdir}&$datarootdir&g' ;; 21361esac 21362_ACEOF 21363 21364# Neutralize VPATH when `$srcdir' = `.'. 21365# Shell code in configure.ac might set extrasub. 21366# FIXME: do we really want to maintain this feature? 21367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21368ac_sed_extra="$ac_vpsub 21369$extrasub 21370_ACEOF 21371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21372:t 21373/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21374s|@configure_input@|$ac_sed_conf_input|;t t 21375s&@top_builddir@&$ac_top_builddir_sub&;t t 21376s&@top_build_prefix@&$ac_top_build_prefix&;t t 21377s&@srcdir@&$ac_srcdir&;t t 21378s&@abs_srcdir@&$ac_abs_srcdir&;t t 21379s&@top_srcdir@&$ac_top_srcdir&;t t 21380s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21381s&@builddir@&$ac_builddir&;t t 21382s&@abs_builddir@&$ac_abs_builddir&;t t 21383s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21384s&@INSTALL@&$ac_INSTALL&;t t 21385s&@MKDIR_P@&$ac_MKDIR_P&;t t 21386$ac_datarootdir_hack 21387" 21388eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21389 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21390 21391test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21392 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21393 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21394 "$ac_tmp/out"`; test -z "$ac_out"; } && 21395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21396which seems to be undefined. Please make sure it is defined" >&5 21397printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21398which seems to be undefined. Please make sure it is defined" >&2;} 21399 21400 rm -f "$ac_tmp/stdin" 21401 case $ac_file in 21402 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21403 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21404 esac \ 21405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21406 ;; 21407 :H) 21408 # 21409 # CONFIG_HEADER 21410 # 21411 if test x"$ac_file" != x-; then 21412 { 21413 printf "%s\n" "/* $configure_input */" >&1 \ 21414 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21415 } >"$ac_tmp/config.h" \ 21416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21417 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21419printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21420 else 21421 rm -f "$ac_file" 21422 mv "$ac_tmp/config.h" "$ac_file" \ 21423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21424 fi 21425 else 21426 printf "%s\n" "/* $configure_input */" >&1 \ 21427 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21428 || as_fn_error $? "could not create -" "$LINENO" 5 21429 fi 21430# Compute "$ac_file"'s index in $config_headers. 21431_am_arg="$ac_file" 21432_am_stamp_count=1 21433for _am_header in $config_headers :; do 21434 case $_am_header in 21435 $_am_arg | $_am_arg:* ) 21436 break ;; 21437 * ) 21438 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21439 esac 21440done 21441echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21442$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21443 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21444 X"$_am_arg" : 'X\(//\)$' \| \ 21445 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21446printf "%s\n" X"$_am_arg" | 21447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21448 s//\1/ 21449 q 21450 } 21451 /^X\(\/\/\)[^/].*/{ 21452 s//\1/ 21453 q 21454 } 21455 /^X\(\/\/\)$/{ 21456 s//\1/ 21457 q 21458 } 21459 /^X\(\/\).*/{ 21460 s//\1/ 21461 q 21462 } 21463 s/.*/./; q'`/stamp-h$_am_stamp_count 21464 ;; 21465 21466 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21467printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21468 ;; 21469 esac 21470 21471 21472 case $ac_file$ac_mode in 21473 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21474 # Older Autoconf quotes --file arguments for eval, but not when files 21475 # are listed without --file. Let's play safe and only enable the eval 21476 # if we detect the quoting. 21477 # TODO: see whether this extra hack can be removed once we start 21478 # requiring Autoconf 2.70 or later. 21479 case $CONFIG_FILES in #( 21480 *\'*) : 21481 eval set x "$CONFIG_FILES" ;; #( 21482 *) : 21483 set x $CONFIG_FILES ;; #( 21484 *) : 21485 ;; 21486esac 21487 shift 21488 # Used to flag and report bootstrapping failures. 21489 am_rc=0 21490 for am_mf 21491 do 21492 # Strip MF so we end up with the name of the file. 21493 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21494 # Check whether this is an Automake generated Makefile which includes 21495 # dependency-tracking related rules and includes. 21496 # Grep'ing the whole file directly is not great: AIX grep has a line 21497 # limit of 2048, but all sed's we know have understand at least 4000. 21498 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21499 || continue 21500 am_dirpart=`$as_dirname -- "$am_mf" || 21501$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21502 X"$am_mf" : 'X\(//\)[^/]' \| \ 21503 X"$am_mf" : 'X\(//\)$' \| \ 21504 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21505printf "%s\n" X"$am_mf" | 21506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21507 s//\1/ 21508 q 21509 } 21510 /^X\(\/\/\)[^/].*/{ 21511 s//\1/ 21512 q 21513 } 21514 /^X\(\/\/\)$/{ 21515 s//\1/ 21516 q 21517 } 21518 /^X\(\/\).*/{ 21519 s//\1/ 21520 q 21521 } 21522 s/.*/./; q'` 21523 am_filepart=`$as_basename -- "$am_mf" || 21524$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21525 X"$am_mf" : 'X\(//\)$' \| \ 21526 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21527printf "%s\n" X/"$am_mf" | 21528 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21529 s//\1/ 21530 q 21531 } 21532 /^X\/\(\/\/\)$/{ 21533 s//\1/ 21534 q 21535 } 21536 /^X\/\(\/\).*/{ 21537 s//\1/ 21538 q 21539 } 21540 s/.*/./; q'` 21541 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21542 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21543 | $MAKE -f - am--depfiles" >&5 21544 (cd "$am_dirpart" \ 21545 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21546 | $MAKE -f - am--depfiles) >&5 2>&5 21547 ac_status=$? 21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21549 (exit $ac_status); } || am_rc=$? 21550 done 21551 if test $am_rc -ne 0; then 21552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21553printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21554as_fn_error $? "Something went wrong bootstrapping makefile fragments 21555 for automatic dependency tracking. If GNU make was not used, consider 21556 re-running the configure script with MAKE=\"gmake\" (or whatever is 21557 necessary). You can also try re-running configure with the 21558 '--disable-dependency-tracking' option to at least be able to build 21559 the package (albeit without support for automatic dependency tracking). 21560See \`config.log' for more details" "$LINENO" 5; } 21561 fi 21562 { am_dirpart=; unset am_dirpart;} 21563 { am_filepart=; unset am_filepart;} 21564 { am_mf=; unset am_mf;} 21565 { am_rc=; unset am_rc;} 21566 rm -f conftest-deps.mk 21567} 21568 ;; 21569 "libtool":C) 21570 21571 # See if we are running on zsh, and set the options that allow our 21572 # commands through without removal of \ escapes. 21573 if test -n "${ZSH_VERSION+set}"; then 21574 setopt NO_GLOB_SUBST 21575 fi 21576 21577 cfgfile=${ofile}T 21578 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21579 $RM "$cfgfile" 21580 21581 cat <<_LT_EOF >> "$cfgfile" 21582#! $SHELL 21583# Generated automatically by $as_me ($PACKAGE) $VERSION 21584# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21585# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21586 21587# Provide generalized library-building support services. 21588# Written by Gordon Matzigkeit, 1996 21589 21590# Copyright (C) 2014 Free Software Foundation, Inc. 21591# This is free software; see the source for copying conditions. There is NO 21592# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21593 21594# GNU Libtool is free software; you can redistribute it and/or modify 21595# it under the terms of the GNU General Public License as published by 21596# the Free Software Foundation; either version 2 of of the License, or 21597# (at your option) any later version. 21598# 21599# As a special exception to the GNU General Public License, if you 21600# distribute this file as part of a program or library that is built 21601# using GNU Libtool, you may include this file under the same 21602# distribution terms that you use for the rest of that program. 21603# 21604# GNU Libtool is distributed in the hope that it will be useful, but 21605# WITHOUT ANY WARRANTY; without even the implied warranty of 21606# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21607# GNU General Public License for more details. 21608# 21609# You should have received a copy of the GNU General Public License 21610# along with this program. If not, see <http://www.gnu.org/licenses/>. 21611 21612 21613# The names of the tagged configurations supported by this script. 21614available_tags='CXX ' 21615 21616# Configured defaults for sys_lib_dlsearch_path munging. 21617: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21618 21619# ### BEGIN LIBTOOL CONFIG 21620 21621# Which release of libtool.m4 was used? 21622macro_version=$macro_version 21623macro_revision=$macro_revision 21624 21625# Whether or not to build static libraries. 21626build_old_libs=$enable_static 21627 21628# Whether or not to build shared libraries. 21629build_libtool_libs=$enable_shared 21630 21631# What type of objects to build. 21632pic_mode=$pic_mode 21633 21634# Whether or not to optimize for fast installation. 21635fast_install=$enable_fast_install 21636 21637# Shared archive member basename,for filename based shared library versioning on AIX. 21638shared_archive_member_spec=$shared_archive_member_spec 21639 21640# Shell to use when invoking shell scripts. 21641SHELL=$lt_SHELL 21642 21643# An echo program that protects backslashes. 21644ECHO=$lt_ECHO 21645 21646# The PATH separator for the build system. 21647PATH_SEPARATOR=$lt_PATH_SEPARATOR 21648 21649# The host system. 21650host_alias=$host_alias 21651host=$host 21652host_os=$host_os 21653 21654# The build system. 21655build_alias=$build_alias 21656build=$build 21657build_os=$build_os 21658 21659# A sed program that does not truncate output. 21660SED=$lt_SED 21661 21662# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21663Xsed="\$SED -e 1s/^X//" 21664 21665# A grep program that handles long lines. 21666GREP=$lt_GREP 21667 21668# An ERE matcher. 21669EGREP=$lt_EGREP 21670 21671# A literal string matcher. 21672FGREP=$lt_FGREP 21673 21674# A BSD- or MS-compatible name lister. 21675NM=$lt_NM 21676 21677# Whether we need soft or hard links. 21678LN_S=$lt_LN_S 21679 21680# What is the maximum length of a command? 21681max_cmd_len=$max_cmd_len 21682 21683# Object file suffix (normally "o"). 21684objext=$ac_objext 21685 21686# Executable file suffix (normally ""). 21687exeext=$exeext 21688 21689# whether the shell understands "unset". 21690lt_unset=$lt_unset 21691 21692# turn spaces into newlines. 21693SP2NL=$lt_lt_SP2NL 21694 21695# turn newlines into spaces. 21696NL2SP=$lt_lt_NL2SP 21697 21698# convert \$build file names to \$host format. 21699to_host_file_cmd=$lt_cv_to_host_file_cmd 21700 21701# convert \$build files to toolchain format. 21702to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21703 21704# An object symbol dumper. 21705OBJDUMP=$lt_OBJDUMP 21706 21707# Method to check whether dependent libraries are shared objects. 21708deplibs_check_method=$lt_deplibs_check_method 21709 21710# Command to use when deplibs_check_method = "file_magic". 21711file_magic_cmd=$lt_file_magic_cmd 21712 21713# How to find potential files when deplibs_check_method = "file_magic". 21714file_magic_glob=$lt_file_magic_glob 21715 21716# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21717want_nocaseglob=$lt_want_nocaseglob 21718 21719# DLL creation program. 21720DLLTOOL=$lt_DLLTOOL 21721 21722# Command to associate shared and link libraries. 21723sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21724 21725# The archiver. 21726AR=$lt_AR 21727 21728# Flags to create an archive. 21729AR_FLAGS=$lt_AR_FLAGS 21730 21731# How to feed a file listing to the archiver. 21732archiver_list_spec=$lt_archiver_list_spec 21733 21734# A symbol stripping program. 21735STRIP=$lt_STRIP 21736 21737# Commands used to install an old-style archive. 21738RANLIB=$lt_RANLIB 21739old_postinstall_cmds=$lt_old_postinstall_cmds 21740old_postuninstall_cmds=$lt_old_postuninstall_cmds 21741 21742# Whether to use a lock for old archive extraction. 21743lock_old_archive_extraction=$lock_old_archive_extraction 21744 21745# A C compiler. 21746LTCC=$lt_CC 21747 21748# LTCC compiler flags. 21749LTCFLAGS=$lt_CFLAGS 21750 21751# Take the output of nm and produce a listing of raw symbols and C names. 21752global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21753 21754# Transform the output of nm in a proper C declaration. 21755global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21756 21757# Transform the output of nm into a list of symbols to manually relocate. 21758global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21759 21760# Transform the output of nm in a C name address pair. 21761global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21762 21763# Transform the output of nm in a C name address pair when lib prefix is needed. 21764global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21765 21766# The name lister interface. 21767nm_interface=$lt_lt_cv_nm_interface 21768 21769# Specify filename containing input files for \$NM. 21770nm_file_list_spec=$lt_nm_file_list_spec 21771 21772# The root where to search for dependent libraries,and where our libraries should be installed. 21773lt_sysroot=$lt_sysroot 21774 21775# Command to truncate a binary pipe. 21776lt_truncate_bin=$lt_lt_cv_truncate_bin 21777 21778# The name of the directory that contains temporary libtool files. 21779objdir=$objdir 21780 21781# Used to examine libraries when file_magic_cmd begins with "file". 21782MAGIC_CMD=$MAGIC_CMD 21783 21784# Must we lock files when doing compilation? 21785need_locks=$lt_need_locks 21786 21787# Manifest tool. 21788MANIFEST_TOOL=$lt_MANIFEST_TOOL 21789 21790# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21791DSYMUTIL=$lt_DSYMUTIL 21792 21793# Tool to change global to local symbols on Mac OS X. 21794NMEDIT=$lt_NMEDIT 21795 21796# Tool to manipulate fat objects and archives on Mac OS X. 21797LIPO=$lt_LIPO 21798 21799# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21800OTOOL=$lt_OTOOL 21801 21802# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21803OTOOL64=$lt_OTOOL64 21804 21805# Old archive suffix (normally "a"). 21806libext=$libext 21807 21808# Shared library suffix (normally ".so"). 21809shrext_cmds=$lt_shrext_cmds 21810 21811# The commands to extract the exported symbol list from a shared archive. 21812extract_expsyms_cmds=$lt_extract_expsyms_cmds 21813 21814# Variables whose values should be saved in libtool wrapper scripts and 21815# restored at link time. 21816variables_saved_for_relink=$lt_variables_saved_for_relink 21817 21818# Do we need the "lib" prefix for modules? 21819need_lib_prefix=$need_lib_prefix 21820 21821# Do we need a version for libraries? 21822need_version=$need_version 21823 21824# Library versioning type. 21825version_type=$version_type 21826 21827# Shared library runtime path variable. 21828runpath_var=$runpath_var 21829 21830# Shared library path variable. 21831shlibpath_var=$shlibpath_var 21832 21833# Is shlibpath searched before the hard-coded library search path? 21834shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21835 21836# Format of library name prefix. 21837libname_spec=$lt_libname_spec 21838 21839# List of archive names. First name is the real one, the rest are links. 21840# The last name is the one that the linker finds with -lNAME 21841library_names_spec=$lt_library_names_spec 21842 21843# The coded name of the library, if different from the real name. 21844soname_spec=$lt_soname_spec 21845 21846# Permission mode override for installation of shared libraries. 21847install_override_mode=$lt_install_override_mode 21848 21849# Command to use after installation of a shared archive. 21850postinstall_cmds=$lt_postinstall_cmds 21851 21852# Command to use after uninstallation of a shared archive. 21853postuninstall_cmds=$lt_postuninstall_cmds 21854 21855# Commands used to finish a libtool library installation in a directory. 21856finish_cmds=$lt_finish_cmds 21857 21858# As "finish_cmds", except a single script fragment to be evaled but 21859# not shown. 21860finish_eval=$lt_finish_eval 21861 21862# Whether we should hardcode library paths into libraries. 21863hardcode_into_libs=$hardcode_into_libs 21864 21865# Compile-time system search path for libraries. 21866sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21867 21868# Detected run-time system search path for libraries. 21869sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21870 21871# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21872configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21873 21874# Whether dlopen is supported. 21875dlopen_support=$enable_dlopen 21876 21877# Whether dlopen of programs is supported. 21878dlopen_self=$enable_dlopen_self 21879 21880# Whether dlopen of statically linked programs is supported. 21881dlopen_self_static=$enable_dlopen_self_static 21882 21883# Commands to strip libraries. 21884old_striplib=$lt_old_striplib 21885striplib=$lt_striplib 21886 21887 21888# The linker used to build libraries. 21889LD=$lt_LD 21890 21891# How to create reloadable object files. 21892reload_flag=$lt_reload_flag 21893reload_cmds=$lt_reload_cmds 21894 21895# Commands used to build an old-style archive. 21896old_archive_cmds=$lt_old_archive_cmds 21897 21898# A language specific compiler. 21899CC=$lt_compiler 21900 21901# Is the compiler the GNU compiler? 21902with_gcc=$GCC 21903 21904# Compiler flag to turn off builtin functions. 21905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21906 21907# Additional compiler flags for building library objects. 21908pic_flag=$lt_lt_prog_compiler_pic 21909 21910# How to pass a linker flag through the compiler. 21911wl=$lt_lt_prog_compiler_wl 21912 21913# Compiler flag to prevent dynamic linking. 21914link_static_flag=$lt_lt_prog_compiler_static 21915 21916# Does compiler simultaneously support -c and -o options? 21917compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21918 21919# Whether or not to add -lc for building shared libraries. 21920build_libtool_need_lc=$archive_cmds_need_lc 21921 21922# Whether or not to disallow shared libs when runtime libs are static. 21923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21924 21925# Compiler flag to allow reflexive dlopens. 21926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21927 21928# Compiler flag to generate shared objects directly from archives. 21929whole_archive_flag_spec=$lt_whole_archive_flag_spec 21930 21931# Whether the compiler copes with passing no objects directly. 21932compiler_needs_object=$lt_compiler_needs_object 21933 21934# Create an old-style archive from a shared archive. 21935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21936 21937# Create a temporary old-style archive to link instead of a shared archive. 21938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21939 21940# Commands used to build a shared archive. 21941archive_cmds=$lt_archive_cmds 21942archive_expsym_cmds=$lt_archive_expsym_cmds 21943 21944# Commands used to build a loadable module if different from building 21945# a shared archive. 21946module_cmds=$lt_module_cmds 21947module_expsym_cmds=$lt_module_expsym_cmds 21948 21949# Whether we are building with GNU ld or not. 21950with_gnu_ld=$lt_with_gnu_ld 21951 21952# Flag that allows shared libraries with undefined symbols to be built. 21953allow_undefined_flag=$lt_allow_undefined_flag 21954 21955# Flag that enforces no undefined symbols. 21956no_undefined_flag=$lt_no_undefined_flag 21957 21958# Flag to hardcode \$libdir into a binary during linking. 21959# This must work even if \$libdir does not exist 21960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21961 21962# Whether we need a single "-rpath" flag with a separated argument. 21963hardcode_libdir_separator=$lt_hardcode_libdir_separator 21964 21965# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21966# DIR into the resulting binary. 21967hardcode_direct=$hardcode_direct 21968 21969# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21970# DIR into the resulting binary and the resulting library dependency is 21971# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21972# library is relocated. 21973hardcode_direct_absolute=$hardcode_direct_absolute 21974 21975# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21976# into the resulting binary. 21977hardcode_minus_L=$hardcode_minus_L 21978 21979# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21980# into the resulting binary. 21981hardcode_shlibpath_var=$hardcode_shlibpath_var 21982 21983# Set to "yes" if building a shared library automatically hardcodes DIR 21984# into the library and all subsequent libraries and executables linked 21985# against it. 21986hardcode_automatic=$hardcode_automatic 21987 21988# Set to yes if linker adds runtime paths of dependent libraries 21989# to runtime path list. 21990inherit_rpath=$inherit_rpath 21991 21992# Whether libtool must link a program against all its dependency libraries. 21993link_all_deplibs=$link_all_deplibs 21994 21995# Set to "yes" if exported symbols are required. 21996always_export_symbols=$always_export_symbols 21997 21998# The commands to list exported symbols. 21999export_symbols_cmds=$lt_export_symbols_cmds 22000 22001# Symbols that should not be listed in the preloaded symbols. 22002exclude_expsyms=$lt_exclude_expsyms 22003 22004# Symbols that must always be exported. 22005include_expsyms=$lt_include_expsyms 22006 22007# Commands necessary for linking programs (against libraries) with templates. 22008prelink_cmds=$lt_prelink_cmds 22009 22010# Commands necessary for finishing linking programs. 22011postlink_cmds=$lt_postlink_cmds 22012 22013# Specify filename containing input files. 22014file_list_spec=$lt_file_list_spec 22015 22016# How to hardcode a shared library path into an executable. 22017hardcode_action=$hardcode_action 22018 22019# The directories searched by this compiler when creating a shared library. 22020compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22021 22022# Dependencies to place before and after the objects being linked to 22023# create a shared library. 22024predep_objects=$lt_predep_objects 22025postdep_objects=$lt_postdep_objects 22026predeps=$lt_predeps 22027postdeps=$lt_postdeps 22028 22029# The library search path used internally by the compiler when linking 22030# a shared library. 22031compiler_lib_search_path=$lt_compiler_lib_search_path 22032 22033# ### END LIBTOOL CONFIG 22034 22035_LT_EOF 22036 22037 cat <<'_LT_EOF' >> "$cfgfile" 22038 22039# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22040 22041# func_munge_path_list VARIABLE PATH 22042# ----------------------------------- 22043# VARIABLE is name of variable containing _space_ separated list of 22044# directories to be munged by the contents of PATH, which is string 22045# having a format: 22046# "DIR[:DIR]:" 22047# string "DIR[ DIR]" will be prepended to VARIABLE 22048# ":DIR[:DIR]" 22049# string "DIR[ DIR]" will be appended to VARIABLE 22050# "DIRP[:DIRP]::[DIRA:]DIRA" 22051# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22052# "DIRA[ DIRA]" will be appended to VARIABLE 22053# "DIR[:DIR]" 22054# VARIABLE will be replaced by "DIR[ DIR]" 22055func_munge_path_list () 22056{ 22057 case x$2 in 22058 x) 22059 ;; 22060 *:) 22061 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22062 ;; 22063 x:*) 22064 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22065 ;; 22066 *::*) 22067 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22068 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22069 ;; 22070 *) 22071 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22072 ;; 22073 esac 22074} 22075 22076 22077# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22078func_cc_basename () 22079{ 22080 for cc_temp in $*""; do 22081 case $cc_temp in 22082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22084 \-*) ;; 22085 *) break;; 22086 esac 22087 done 22088 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22089} 22090 22091 22092# ### END FUNCTIONS SHARED WITH CONFIGURE 22093 22094_LT_EOF 22095 22096 case $host_os in 22097 aix3*) 22098 cat <<\_LT_EOF >> "$cfgfile" 22099# AIX sometimes has problems with the GCC collect2 program. For some 22100# reason, if we set the COLLECT_NAMES environment variable, the problems 22101# vanish in a puff of smoke. 22102if test set != "${COLLECT_NAMES+set}"; then 22103 COLLECT_NAMES= 22104 export COLLECT_NAMES 22105fi 22106_LT_EOF 22107 ;; 22108 esac 22109 22110 22111 22112ltmain=$ac_aux_dir/ltmain.sh 22113 22114 22115 # We use sed instead of cat because bash on DJGPP gets confused if 22116 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22117 # text mode, it properly converts lines to CR/LF. This bash problem 22118 # is reportedly fixed, but why not run on old versions too? 22119 sed '$q' "$ltmain" >> "$cfgfile" \ 22120 || (rm -f "$cfgfile"; exit 1) 22121 22122 mv -f "$cfgfile" "$ofile" || 22123 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22124 chmod +x "$ofile" 22125 22126 22127 cat <<_LT_EOF >> "$ofile" 22128 22129# ### BEGIN LIBTOOL TAG CONFIG: CXX 22130 22131# The linker used to build libraries. 22132LD=$lt_LD_CXX 22133 22134# How to create reloadable object files. 22135reload_flag=$lt_reload_flag_CXX 22136reload_cmds=$lt_reload_cmds_CXX 22137 22138# Commands used to build an old-style archive. 22139old_archive_cmds=$lt_old_archive_cmds_CXX 22140 22141# A language specific compiler. 22142CC=$lt_compiler_CXX 22143 22144# Is the compiler the GNU compiler? 22145with_gcc=$GCC_CXX 22146 22147# Compiler flag to turn off builtin functions. 22148no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22149 22150# Additional compiler flags for building library objects. 22151pic_flag=$lt_lt_prog_compiler_pic_CXX 22152 22153# How to pass a linker flag through the compiler. 22154wl=$lt_lt_prog_compiler_wl_CXX 22155 22156# Compiler flag to prevent dynamic linking. 22157link_static_flag=$lt_lt_prog_compiler_static_CXX 22158 22159# Does compiler simultaneously support -c and -o options? 22160compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22161 22162# Whether or not to add -lc for building shared libraries. 22163build_libtool_need_lc=$archive_cmds_need_lc_CXX 22164 22165# Whether or not to disallow shared libs when runtime libs are static. 22166allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22167 22168# Compiler flag to allow reflexive dlopens. 22169export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22170 22171# Compiler flag to generate shared objects directly from archives. 22172whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22173 22174# Whether the compiler copes with passing no objects directly. 22175compiler_needs_object=$lt_compiler_needs_object_CXX 22176 22177# Create an old-style archive from a shared archive. 22178old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22179 22180# Create a temporary old-style archive to link instead of a shared archive. 22181old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22182 22183# Commands used to build a shared archive. 22184archive_cmds=$lt_archive_cmds_CXX 22185archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22186 22187# Commands used to build a loadable module if different from building 22188# a shared archive. 22189module_cmds=$lt_module_cmds_CXX 22190module_expsym_cmds=$lt_module_expsym_cmds_CXX 22191 22192# Whether we are building with GNU ld or not. 22193with_gnu_ld=$lt_with_gnu_ld_CXX 22194 22195# Flag that allows shared libraries with undefined symbols to be built. 22196allow_undefined_flag=$lt_allow_undefined_flag_CXX 22197 22198# Flag that enforces no undefined symbols. 22199no_undefined_flag=$lt_no_undefined_flag_CXX 22200 22201# Flag to hardcode \$libdir into a binary during linking. 22202# This must work even if \$libdir does not exist 22203hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22204 22205# Whether we need a single "-rpath" flag with a separated argument. 22206hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22207 22208# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22209# DIR into the resulting binary. 22210hardcode_direct=$hardcode_direct_CXX 22211 22212# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22213# DIR into the resulting binary and the resulting library dependency is 22214# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22215# library is relocated. 22216hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22217 22218# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22219# into the resulting binary. 22220hardcode_minus_L=$hardcode_minus_L_CXX 22221 22222# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22223# into the resulting binary. 22224hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22225 22226# Set to "yes" if building a shared library automatically hardcodes DIR 22227# into the library and all subsequent libraries and executables linked 22228# against it. 22229hardcode_automatic=$hardcode_automatic_CXX 22230 22231# Set to yes if linker adds runtime paths of dependent libraries 22232# to runtime path list. 22233inherit_rpath=$inherit_rpath_CXX 22234 22235# Whether libtool must link a program against all its dependency libraries. 22236link_all_deplibs=$link_all_deplibs_CXX 22237 22238# Set to "yes" if exported symbols are required. 22239always_export_symbols=$always_export_symbols_CXX 22240 22241# The commands to list exported symbols. 22242export_symbols_cmds=$lt_export_symbols_cmds_CXX 22243 22244# Symbols that should not be listed in the preloaded symbols. 22245exclude_expsyms=$lt_exclude_expsyms_CXX 22246 22247# Symbols that must always be exported. 22248include_expsyms=$lt_include_expsyms_CXX 22249 22250# Commands necessary for linking programs (against libraries) with templates. 22251prelink_cmds=$lt_prelink_cmds_CXX 22252 22253# Commands necessary for finishing linking programs. 22254postlink_cmds=$lt_postlink_cmds_CXX 22255 22256# Specify filename containing input files. 22257file_list_spec=$lt_file_list_spec_CXX 22258 22259# How to hardcode a shared library path into an executable. 22260hardcode_action=$hardcode_action_CXX 22261 22262# The directories searched by this compiler when creating a shared library. 22263compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22264 22265# Dependencies to place before and after the objects being linked to 22266# create a shared library. 22267predep_objects=$lt_predep_objects_CXX 22268postdep_objects=$lt_postdep_objects_CXX 22269predeps=$lt_predeps_CXX 22270postdeps=$lt_postdeps_CXX 22271 22272# The library search path used internally by the compiler when linking 22273# a shared library. 22274compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22275 22276# ### END LIBTOOL TAG CONFIG: CXX 22277_LT_EOF 22278 22279 ;; 22280 22281 esac 22282done # for ac_tag 22283 22284 22285as_fn_exit 0 22286_ACEOF 22287ac_clean_files=$ac_clean_files_save 22288 22289test $ac_write_fail = 0 || 22290 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22291 22292 22293# configure is writing to config.log, and then calls config.status. 22294# config.status does its own redirection, appending to config.log. 22295# Unfortunately, on DOS this fails, as config.log is still kept open 22296# by configure, so config.status won't be able to write to it; its 22297# output is simply discarded. So we exec the FD to /dev/null, 22298# effectively closing config.log, so it can be properly (re)opened and 22299# appended to by config.status. When coming back to configure, we 22300# need to make the FD available again. 22301if test "$no_create" != yes; then 22302 ac_cs_success=: 22303 ac_config_status_args= 22304 test "$silent" = yes && 22305 ac_config_status_args="$ac_config_status_args --quiet" 22306 exec 5>/dev/null 22307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22308 exec 5>>config.log 22309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22310 # would make configure fail if this is the last instruction. 22311 $ac_cs_success || as_fn_exit 1 22312fi 22313if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22315printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22316fi 22317 22318 22319