1#! /bin/sh 2# From configure.ac Id: ec6bc79bf30ae8b800d556fcf002946946ca68df . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for ldapcpplib . 5# 6# Report bugs to <http://www.openldap.org/its/ >. 7# 8# Copyright 2000-2021 The OpenLDAP Foundation. All rights reserved. 9# Restrictions apply, see COPYRIGHT and LICENSE files. 10# 11# 12# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 13# 14# 15# This configure script is free software; the Free Software Foundation 16# gives unlimited permission to copy, distribute and modify it. 17## -------------------- ## 18## M4sh Initialization. ## 19## -------------------- ## 20 21# Be more Bourne compatible 22DUALCASE=1; export DUALCASE # for MKS sh 23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24 emulate sh 25 NULLCMD=: 26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27 # is contrary to our usage. Disable this feature. 28 alias -g '${1+"$@"}'='"$@"' 29 setopt NO_GLOB_SUBST 30else 31 case `(set -o) 2>/dev/null` in #( 32 *posix*) : 33 set -o posix ;; #( 34 *) : 35 ;; 36esac 37fi 38 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47# Prefer a ksh shell builtin over an external printf program on Solaris, 48# but without wasting forks for bash or zsh. 49if test -z "$BASH_VERSION$ZSH_VERSION" \ 50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='print -r --' 52 as_echo_n='print -rn --' 53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 54 as_echo='printf %s\n' 55 as_echo_n='printf %s' 56else 57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 59 as_echo_n='/usr/ucb/echo -n' 60 else 61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 62 as_echo_n_body='eval 63 arg=$1; 64 case $arg in #( 65 *"$as_nl"*) 66 expr "X$arg" : "X\\(.*\\)$as_nl"; 67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 68 esac; 69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 70 ' 71 export as_echo_n_body 72 as_echo_n='sh -c $as_echo_n_body as_echo' 73 fi 74 export as_echo_body 75 as_echo='sh -c $as_echo_body as_echo' 76fi 77 78# The user is always right. 79if test "${PATH_SEPARATOR+set}" != set; then 80 PATH_SEPARATOR=: 81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 83 PATH_SEPARATOR=';' 84 } 85fi 86 87 88# IFS 89# We need space, tab and new line, in precisely that order. Quoting is 90# there to prevent editors from complaining about space-tab. 91# (If _AS_PATH_WALK were called with IFS unset, it would disable word 92# splitting by setting IFS to empty value.) 93IFS=" "" $as_nl" 94 95# Find who we are. Look in the path if we contain no directory separator. 96as_myself= 97case $0 in #(( 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105 done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 exit 1 118fi 119 120# Unset variables that we do not need and which cause bugs (e.g. in 121# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 122# suppresses any "Segmentation fault" message there. '((' could 123# trigger a bug in pdksh 5.2.14. 124for as_var in BASH_ENV ENV MAIL MAILPATH 125do eval test x\${$as_var+set} = xset \ 126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 127done 128PS1='$ ' 129PS2='> ' 130PS4='+ ' 131 132# NLS nuisances. 133LC_ALL=C 134export LC_ALL 135LANGUAGE=C 136export LANGUAGE 137 138# CDPATH. 139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 140 141# Use a proper internal environment variable to ensure we don't fall 142 # into an infinite loop, continuously re-executing ourselves. 143 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 144 _as_can_reexec=no; export _as_can_reexec; 145 # We cannot yet assume a decent shell, so we have to provide a 146# neutralization value for shells without unset; and this also 147# works around shells that cannot unset nonexistent variables. 148# Preserve -v and -x to the replacement shell. 149BASH_ENV=/dev/null 150ENV=/dev/null 151(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 152case $- in # (((( 153 *v*x* | *x*v* ) as_opts=-vx ;; 154 *v* ) as_opts=-v ;; 155 *x* ) as_opts=-x ;; 156 * ) as_opts= ;; 157esac 158exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 159# Admittedly, this is quite paranoid, since all the known shells bail 160# out after a failed `exec'. 161$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 162as_fn_exit 255 163 fi 164 # We don't want this to propagate to other subprocesses. 165 { _as_can_reexec=; unset _as_can_reexec;} 166if test "x$CONFIG_SHELL" = x; then 167 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 168 emulate sh 169 NULLCMD=: 170 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 171 # is contrary to our usage. Disable this feature. 172 alias -g '\${1+\"\$@\"}'='\"\$@\"' 173 setopt NO_GLOB_SUBST 174else 175 case \`(set -o) 2>/dev/null\` in #( 176 *posix*) : 177 set -o posix ;; #( 178 *) : 179 ;; 180esac 181fi 182" 183 as_required="as_fn_return () { (exit \$1); } 184as_fn_success () { as_fn_return 0; } 185as_fn_failure () { as_fn_return 1; } 186as_fn_ret_success () { return 0; } 187as_fn_ret_failure () { return 1; } 188 189exitcode=0 190as_fn_success || { exitcode=1; echo as_fn_success failed.; } 191as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 192as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 193as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 194if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 195 196else 197 exitcode=1; echo positional parameters were not saved. 198fi 199test x\$exitcode = x0 || exit 1 200test -x / || exit 1" 201 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 202 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 203 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 204 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 205 206 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 207 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 208 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 209 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 210 PATH=/empty FPATH=/empty; export PATH FPATH 211 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 212 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 213test \$(( 1 + 1 )) = 2 || exit 1" 214 if (eval "$as_required") 2>/dev/null; then : 215 as_have_required=yes 216else 217 as_have_required=no 218fi 219 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 220 221else 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223as_found=false 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 as_found=: 229 case $as_dir in #( 230 /*) 231 for as_base in sh bash ksh sh5; do 232 # Try only shells that exist, to save several forks. 233 as_shell=$as_dir/$as_base 234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 236 CONFIG_SHELL=$as_shell as_have_required=yes 237 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 238 break 2 239fi 240fi 241 done;; 242 esac 243 as_found=false 244done 245$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 246 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 247 CONFIG_SHELL=$SHELL as_have_required=yes 248fi; } 249IFS=$as_save_IFS 250 251 252 if test "x$CONFIG_SHELL" != x; then : 253 export CONFIG_SHELL 254 # We cannot yet assume a decent shell, so we have to provide a 255# neutralization value for shells without unset; and this also 256# works around shells that cannot unset nonexistent variables. 257# Preserve -v and -x to the replacement shell. 258BASH_ENV=/dev/null 259ENV=/dev/null 260(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 261case $- in # (((( 262 *v*x* | *x*v* ) as_opts=-vx ;; 263 *v* ) as_opts=-v ;; 264 *x* ) as_opts=-x ;; 265 * ) as_opts= ;; 266esac 267exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 268# Admittedly, this is quite paranoid, since all the known shells bail 269# out after a failed `exec'. 270$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 271exit 255 272fi 273 274 if test x$as_have_required = xno; then : 275 $as_echo "$0: This script requires a shell more modern than all" 276 $as_echo "$0: the shells that I found on your system." 277 if test x${ZSH_VERSION+set} = xset ; then 278 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 $as_echo "$0: Please tell bug-autoconf@gnu.org and 282$0: http://www.openldap.org/its/ about your system, 283$0: including any error possibly output before this 284$0: message. Then install a modern shell, or manually run 285$0: the script under such a shell if you do have one." 286 fi 287 exit 1 288fi 289fi 290fi 291SHELL=${CONFIG_SHELL-/bin/sh} 292export SHELL 293# Unset more variables known to interfere with behavior of common tools. 294CLICOLOR_FORCE= GREP_OPTIONS= 295unset CLICOLOR_FORCE GREP_OPTIONS 296 297## --------------------- ## 298## M4sh Shell Functions. ## 299## --------------------- ## 300# as_fn_unset VAR 301# --------------- 302# Portably unset VAR. 303as_fn_unset () 304{ 305 { eval $1=; unset $1;} 306} 307as_unset=as_fn_unset 308 309# as_fn_set_status STATUS 310# ----------------------- 311# Set $? to STATUS, without forking. 312as_fn_set_status () 313{ 314 return $1 315} # as_fn_set_status 316 317# as_fn_exit STATUS 318# ----------------- 319# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 320as_fn_exit () 321{ 322 set +e 323 as_fn_set_status $1 324 exit $1 325} # as_fn_exit 326 327# as_fn_mkdir_p 328# ------------- 329# Create "$as_dir" as a directory, including parents if necessary. 330as_fn_mkdir_p () 331{ 332 333 case $as_dir in #( 334 -*) as_dir=./$as_dir;; 335 esac 336 test -d "$as_dir" || eval $as_mkdir_p || { 337 as_dirs= 338 while :; do 339 case $as_dir in #( 340 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 341 *) as_qdir=$as_dir;; 342 esac 343 as_dirs="'$as_qdir' $as_dirs" 344 as_dir=`$as_dirname -- "$as_dir" || 345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 346 X"$as_dir" : 'X\(//\)[^/]' \| \ 347 X"$as_dir" : 'X\(//\)$' \| \ 348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 349$as_echo X"$as_dir" | 350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)[^/].*/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\/\)$/{ 359 s//\1/ 360 q 361 } 362 /^X\(\/\).*/{ 363 s//\1/ 364 q 365 } 366 s/.*/./; q'` 367 test -d "$as_dir" && break 368 done 369 test -z "$as_dirs" || eval "mkdir $as_dirs" 370 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 371 372 373} # as_fn_mkdir_p 374 375# as_fn_executable_p FILE 376# ----------------------- 377# Test if FILE is an executable regular file. 378as_fn_executable_p () 379{ 380 test -f "$1" && test -x "$1" 381} # as_fn_executable_p 382# as_fn_append VAR VALUE 383# ---------------------- 384# Append the text in VALUE to the end of the definition contained in VAR. Take 385# advantage of any shell optimizations that allow amortized linear growth over 386# repeated appends, instead of the typical quadratic growth present in naive 387# implementations. 388if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 406 eval 'as_fn_arith () 407 { 408 as_val=$(( $* )) 409 }' 410else 411 as_fn_arith () 412 { 413 as_val=`expr "$@" || test $? -eq 1` 414 } 415fi # as_fn_arith 416 417 418# as_fn_error STATUS ERROR [LINENO LOG_FD] 419# ---------------------------------------- 420# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 421# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 422# script with STATUS, using 1 if that was 0. 423as_fn_error () 424{ 425 as_status=$1; test $as_status -eq 0 && as_status=1 426 if test "$4"; then 427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 428 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 429 fi 430 $as_echo "$as_me: error: $2" >&2 431 as_fn_exit $as_status 432} # as_fn_error 433 434if expr a : '\(a\)' >/dev/null 2>&1 && 435 test "X`expr 00001 : '.*\(...\)'`" = X001; then 436 as_expr=expr 437else 438 as_expr=false 439fi 440 441if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 442 as_basename=basename 443else 444 as_basename=false 445fi 446 447if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 448 as_dirname=dirname 449else 450 as_dirname=false 451fi 452 453as_me=`$as_basename -- "$0" || 454$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 455 X"$0" : 'X\(//\)$' \| \ 456 X"$0" : 'X\(/\)' \| . 2>/dev/null || 457$as_echo X/"$0" | 458 sed '/^.*\/\([^/][^/]*\)\/*$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\/\)$/{ 463 s//\1/ 464 q 465 } 466 /^X\/\(\/\).*/{ 467 s//\1/ 468 q 469 } 470 s/.*/./; q'` 471 472# Avoid depending upon Character Ranges. 473as_cr_letters='abcdefghijklmnopqrstuvwxyz' 474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 475as_cr_Letters=$as_cr_letters$as_cr_LETTERS 476as_cr_digits='0123456789' 477as_cr_alnum=$as_cr_Letters$as_cr_digits 478 479 480 as_lineno_1=$LINENO as_lineno_1a=$LINENO 481 as_lineno_2=$LINENO as_lineno_2a=$LINENO 482 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 483 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 484 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 485 sed -n ' 486 p 487 /[$]LINENO/= 488 ' <$as_myself | 489 sed ' 490 s/[$]LINENO.*/&-/ 491 t lineno 492 b 493 :lineno 494 N 495 :loop 496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 497 t loop 498 s/-\n.*// 499 ' >$as_me.lineno && 500 chmod +x "$as_me.lineno" || 501 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 502 503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 504 # already done that, so ensure we don't try to do so again and fall 505 # in an infinite loop. This has already happened in practice. 506 _as_can_reexec=no; export _as_can_reexec 507 # Don't try to exec as it changes $[0], causing all sort of problems 508 # (the dirname of $[0] is not the place where we might find the 509 # original and so on. Autoconf is especially sensitive to this). 510 . "./$as_me.lineno" 511 # Exit status is that of the last command. 512 exit 513} 514 515ECHO_C= ECHO_N= ECHO_T= 516case `echo -n x` in #((((( 517-n*) 518 case `echo 'xy\c'` in 519 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 520 xy) ECHO_C='\c';; 521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 522 ECHO_T=' ';; 523 esac;; 524*) 525 ECHO_N='-n';; 526esac 527 528rm -f conf$$ conf$$.exe conf$$.file 529if test -d conf$$.dir; then 530 rm -f conf$$.dir/conf$$.file 531else 532 rm -f conf$$.dir 533 mkdir conf$$.dir 2>/dev/null 534fi 535if (echo >conf$$.file) 2>/dev/null; then 536 if ln -s conf$$.file conf$$ 2>/dev/null; then 537 as_ln_s='ln -s' 538 # ... but there are two gotchas: 539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 541 # In both cases, we have to default to `cp -pR'. 542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 543 as_ln_s='cp -pR' 544 elif ln conf$$.file conf$$ 2>/dev/null; then 545 as_ln_s=ln 546 else 547 as_ln_s='cp -pR' 548 fi 549else 550 as_ln_s='cp -pR' 551fi 552rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 553rmdir conf$$.dir 2>/dev/null 554 555if mkdir -p . 2>/dev/null; then 556 as_mkdir_p='mkdir -p "$as_dir"' 557else 558 test -d ./-p && rmdir ./-p 559 as_mkdir_p=false 560fi 561 562as_test_x='test -x' 563as_executable_p=as_fn_executable_p 564 565# Sed expression to map a string onto a valid CPP name. 566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 567 568# Sed expression to map a string onto a valid variable name. 569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573 574test -n "$DJDIR" || exec 7<&0 </dev/null 575exec 6>&1 576 577# Name of the host. 578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 579# so uname gets run too. 580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 581 582# 583# Initializations. 584# 585ac_default_prefix=/usr/local 586ac_clean_files= 587ac_config_libobj_dir=. 588LIBOBJS= 589cross_compiling=no 590subdirs= 591MFLAGS= 592MAKEFLAGS= 593 594# Identity of this package. 595PACKAGE_NAME='ldapcpplib' 596PACKAGE_TARNAME='ldapcpplib' 597PACKAGE_VERSION=' ' 598PACKAGE_STRING='ldapcpplib ' 599PACKAGE_BUGREPORT='http://www.openldap.org/its/ ' 600PACKAGE_URL='' 601 602ac_unique_file="src/LDAPConnection.h" 603# Factoring default headers for most tests. 604ac_includes_default="\ 605#include <stdio.h> 606#ifdef HAVE_SYS_TYPES_H 607# include <sys/types.h> 608#endif 609#ifdef HAVE_SYS_STAT_H 610# include <sys/stat.h> 611#endif 612#ifdef STDC_HEADERS 613# include <stdlib.h> 614# include <stddef.h> 615#else 616# ifdef HAVE_STDLIB_H 617# include <stdlib.h> 618# endif 619#endif 620#ifdef HAVE_STRING_H 621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622# include <memory.h> 623# endif 624# include <string.h> 625#endif 626#ifdef HAVE_STRINGS_H 627# include <strings.h> 628#endif 629#ifdef HAVE_INTTYPES_H 630# include <inttypes.h> 631#endif 632#ifdef HAVE_STDINT_H 633# include <stdint.h> 634#endif 635#ifdef HAVE_UNISTD_H 636# include <unistd.h> 637#endif" 638 639ac_subst_vars='am__EXEEXT_FALSE 640am__EXEEXT_TRUE 641LTLIBOBJS 642LIBOBJS 643CXXCPP 644CPP 645LT_SYS_LIBRARY_PATH 646OTOOL64 647OTOOL 648LIPO 649NMEDIT 650DSYMUTIL 651MANIFEST_TOOL 652RANLIB 653ac_ct_AR 654AR 655DLLTOOL 656OBJDUMP 657LN_S 658NM 659ac_ct_DUMPBIN 660DUMPBIN 661LD 662FGREP 663EGREP 664GREP 665SED 666am__fastdepCC_FALSE 667am__fastdepCC_TRUE 668CCDEPMODE 669ac_ct_CC 670CFLAGS 671CC 672host_os 673host_vendor 674host_cpu 675host 676build_os 677build_vendor 678build_cpu 679build 680LIBTOOL 681am__fastdepCXX_FALSE 682am__fastdepCXX_TRUE 683CXXDEPMODE 684am__nodep 685AMDEPBACKSLASH 686AMDEP_FALSE 687AMDEP_TRUE 688am__include 689DEPDIR 690OBJEXT 691EXEEXT 692ac_ct_CXX 693CPPFLAGS 694LDFLAGS 695CXXFLAGS 696CXX 697OPENLDAP_CPP_API_VERSION 698AM_BACKSLASH 699AM_DEFAULT_VERBOSITY 700AM_DEFAULT_V 701AM_V 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707AWK 708mkdir_p 709MKDIR_P 710INSTALL_STRIP_PROGRAM 711STRIP 712install_sh 713MAKEINFO 714AUTOHEADER 715AUTOMAKE 716AUTOCONF 717ACLOCAL 718VERSION 719PACKAGE 720CYGPATH_W 721am__isrc 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725target_alias 726host_alias 727build_alias 728LIBS 729ECHO_T 730ECHO_N 731ECHO_C 732DEFS 733mandir 734localedir 735libdir 736psdir 737pdfdir 738dvidir 739htmldir 740infodir 741docdir 742oldincludedir 743includedir 744runstatedir 745localstatedir 746sharedstatedir 747sysconfdir 748datadir 749datarootdir 750libexecdir 751sbindir 752bindir 753program_transform_name 754prefix 755exec_prefix 756PACKAGE_URL 757PACKAGE_BUGREPORT 758PACKAGE_STRING 759PACKAGE_VERSION 760PACKAGE_TARNAME 761PACKAGE_NAME 762PATH_SEPARATOR 763SHELL 764am__quote' 765ac_subst_files='' 766ac_user_opts=' 767enable_option_checking 768enable_silent_rules 769enable_dependency_tracking 770enable_shared 771enable_static 772with_pic 773enable_fast_install 774with_aix_soname 775with_gnu_ld 776with_sysroot 777enable_libtool_lock 778enable_debug 779with_libldap 780with_ldap_includes 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CXX 786CXXFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CCC 791CC 792CFLAGS 793LT_SYS_LIBRARY_PATH 794CPP 795CXXCPP' 796 797 798# Initialize some variables set by options. 799ac_init_help= 800ac_init_version=false 801ac_unrecognized_opts= 802ac_unrecognized_sep= 803# The variables have the same names as the options, with 804# dashes changed to underlines. 805cache_file=/dev/null 806exec_prefix=NONE 807no_create= 808no_recursion= 809prefix=NONE 810program_prefix=NONE 811program_suffix=NONE 812program_transform_name=s,x,x, 813silent= 814site= 815srcdir= 816verbose= 817x_includes=NONE 818x_libraries=NONE 819 820# Installation directory options. 821# These are left unexpanded so users can "make install exec_prefix=/foo" 822# and all the variables that are supposed to be based on exec_prefix 823# by default will actually change. 824# Use braces instead of parens because sh, perl, etc. also accept them. 825# (The list follows the same order as the GNU Coding Standards.) 826bindir='${exec_prefix}/bin' 827sbindir='${exec_prefix}/sbin' 828libexecdir='${exec_prefix}/libexec' 829datarootdir='${prefix}/share' 830datadir='${datarootdir}' 831sysconfdir='${prefix}/etc' 832sharedstatedir='${prefix}/com' 833localstatedir='${prefix}/var' 834runstatedir='${localstatedir}/run' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 # Accept the important Cygnus configure options, so we can diagnose typos. 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1088 | --runstate | --runstat | --runsta | --runst | --runs \ 1089 | --run | --ru | --r) 1090 ac_prev=runstatedir ;; 1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1093 | --run=* | --ru=* | --r=*) 1094 runstatedir=$ac_optarg ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: $ac_useropt" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir runstatedir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264fi 1265 1266ac_tool_prefix= 1267test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269test "$silent" = yes && exec 6>/dev/null 1270 1271 1272ac_pwd=`pwd` && test -n "$ac_pwd" && 1273ac_ls_di=`ls -di .` && 1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280# Find the source files, if location was not specified. 1281if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289$as_echo X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311else 1312 ac_srcdir_defaulted=no 1313fi 1314if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317fi 1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322# When building in place, set srcdir=. 1323if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325fi 1326# Remove unnecessary trailing slashes from srcdir. 1327# Double slashes in file names in object file debugging info 1328# mess up M-x gdb in Emacs. 1329case $srcdir in 1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331esac 1332for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337done 1338 1339# 1340# Report the --help message. 1341# 1342if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346\`configure' configures ldapcpplib to adapt to many kinds of systems. 1347 1348Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353Defaults for the options are specified in brackets. 1354 1355Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print \`checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for \`--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365 1366Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372By default, \`make install' will install all the files in 1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375for instance \`--prefix=\$HOME'. 1376 1377For better control, use the options below. 1378 1379Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1387 --libdir=DIR object code libraries [EPREFIX/lib] 1388 --includedir=DIR C header files [PREFIX/include] 1389 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392 --infodir=DIR info documentation [DATAROOTDIR/info] 1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394 --mandir=DIR man documentation [DATAROOTDIR/man] 1395 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib] 1396 --htmldir=DIR html documentation [DOCDIR] 1397 --dvidir=DIR dvi documentation [DOCDIR] 1398 --pdfdir=DIR pdf documentation [DOCDIR] 1399 --psdir=DIR ps documentation [DOCDIR] 1400_ACEOF 1401 1402 cat <<\_ACEOF 1403 1404Program names: 1405 --program-prefix=PREFIX prepend PREFIX to installed program names 1406 --program-suffix=SUFFIX append SUFFIX to installed program names 1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1408 1409System types: 1410 --build=BUILD configure for building on BUILD [guessed] 1411 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412_ACEOF 1413fi 1414 1415if test -n "$ac_init_help"; then 1416 case $ac_init_help in 1417 short | recursive ) echo "Configuration of ldapcpplib :";; 1418 esac 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-silent-rules less verbose build output (undo: "make V=1") 1426 --disable-silent-rules verbose build output (undo: "make V=0") 1427 --enable-dependency-tracking 1428 do not reject slow dependency extractors 1429 --disable-dependency-tracking 1430 speeds up one-time build 1431 --enable-shared[=PKGS] build shared libraries [default=yes] 1432 --enable-static[=PKGS] build static libraries [default=yes] 1433 --enable-fast-install[=PKGS] 1434 optimize for fast installation [default=yes] 1435 --disable-libtool-lock avoid locking (might break parallel builds) 1436 --enable-debug 1437 1438Optional Packages: 1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1442 both] 1443 --with-aix-soname=aix|svr4|both 1444 shared library versioning (aka "SONAME") variant to 1445 provide on AIX, [default=aix]. 1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1447 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1448 compiler's sysroot if not specified). 1449 --with-libldap=DIR Path to the libldap library /usr/local/lib 1450 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include 1451 1452Some influential environment variables: 1453 CXX C++ compiler command 1454 CXXFLAGS C++ compiler flags 1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1456 nonstandard directory <lib dir> 1457 LIBS libraries to pass to the linker, e.g. -l<library> 1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1459 you have headers in a nonstandard directory <include dir> 1460 CC C compiler command 1461 CFLAGS C compiler flags 1462 LT_SYS_LIBRARY_PATH 1463 User-defined run-time library search path. 1464 CPP C preprocessor 1465 CXXCPP C++ preprocessor 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470Report bugs to <http://www.openldap.org/its/ >. 1471_ACEOF 1472ac_status=$? 1473fi 1474 1475if test "$ac_init_help" = "recursive"; then 1476 # If there are subdirs, report their specific --help. 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1478 test -d "$ac_dir" || 1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1480 continue 1481 ac_builddir=. 1482 1483case "$ac_dir" in 1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485*) 1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1487 # A ".." for each directory in $ac_dir_suffix. 1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1489 case $ac_top_builddir_sub in 1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1492 esac ;; 1493esac 1494ac_abs_top_builddir=$ac_pwd 1495ac_abs_builddir=$ac_pwd$ac_dir_suffix 1496# for backward compatibility: 1497ac_top_builddir=$ac_top_build_prefix 1498 1499case $srcdir in 1500 .) # We are building in place. 1501 ac_srcdir=. 1502 ac_top_srcdir=$ac_top_builddir_sub 1503 ac_abs_top_srcdir=$ac_pwd ;; 1504 [\\/]* | ?:[\\/]* ) # Absolute name. 1505 ac_srcdir=$srcdir$ac_dir_suffix; 1506 ac_top_srcdir=$srcdir 1507 ac_abs_top_srcdir=$srcdir ;; 1508 *) # Relative name. 1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1510 ac_top_srcdir=$ac_top_build_prefix$srcdir 1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1512esac 1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1514 1515 cd "$ac_dir" || { ac_status=$?; continue; } 1516 # Check for guested configure. 1517 if test -f "$ac_srcdir/configure.gnu"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1520 elif test -f "$ac_srcdir/configure"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure" --help=recursive 1523 else 1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1525 fi || ac_status=$? 1526 cd "$ac_pwd" || { ac_status=$?; break; } 1527 done 1528fi 1529 1530test -n "$ac_init_help" && exit $ac_status 1531if $ac_init_version; then 1532 cat <<\_ACEOF 1533ldapcpplib configure 1534generated by GNU Autoconf 2.69 1535 1536Copyright (C) 2012 Free Software Foundation, Inc. 1537This configure script is free software; the Free Software Foundation 1538gives unlimited permission to copy, distribute and modify it. 1539 1540Copyright 2000-2021 The OpenLDAP Foundation. All rights reserved. 1541Restrictions apply, see COPYRIGHT and LICENSE files. 1542_ACEOF 1543 exit 1544fi 1545 1546## ------------------------ ## 1547## Autoconf initialization. ## 1548## ------------------------ ## 1549 1550# ac_fn_cxx_try_compile LINENO 1551# ---------------------------- 1552# Try to compile conftest.$ac_ext, and return whether this succeeded. 1553ac_fn_cxx_try_compile () 1554{ 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556 rm -f conftest.$ac_objext 1557 if { { ac_try="$ac_compile" 1558case "(($ac_try" in 1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1560 *) ac_try_echo=$ac_try;; 1561esac 1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1563$as_echo "$ac_try_echo"; } >&5 1564 (eval "$ac_compile") 2>conftest.err 1565 ac_status=$? 1566 if test -s conftest.err; then 1567 grep -v '^ *+' conftest.err >conftest.er1 1568 cat conftest.er1 >&5 1569 mv -f conftest.er1 conftest.err 1570 fi 1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572 test $ac_status = 0; } && { 1573 test -z "$ac_cxx_werror_flag" || 1574 test ! -s conftest.err 1575 } && test -s conftest.$ac_objext; then : 1576 ac_retval=0 1577else 1578 $as_echo "$as_me: failed program was:" >&5 1579sed 's/^/| /' conftest.$ac_ext >&5 1580 1581 ac_retval=1 1582fi 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1584 as_fn_set_status $ac_retval 1585 1586} # ac_fn_cxx_try_compile 1587 1588# ac_fn_c_try_compile LINENO 1589# -------------------------- 1590# Try to compile conftest.$ac_ext, and return whether this succeeded. 1591ac_fn_c_try_compile () 1592{ 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 rm -f conftest.$ac_objext 1595 if { { ac_try="$ac_compile" 1596case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599esac 1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601$as_echo "$ac_try_echo"; } >&5 1602 (eval "$ac_compile") 2>conftest.err 1603 ac_status=$? 1604 if test -s conftest.err; then 1605 grep -v '^ *+' conftest.err >conftest.er1 1606 cat conftest.er1 >&5 1607 mv -f conftest.er1 conftest.err 1608 fi 1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1610 test $ac_status = 0; } && { 1611 test -z "$ac_c_werror_flag" || 1612 test ! -s conftest.err 1613 } && test -s conftest.$ac_objext; then : 1614 ac_retval=0 1615else 1616 $as_echo "$as_me: failed program was:" >&5 1617sed 's/^/| /' conftest.$ac_ext >&5 1618 1619 ac_retval=1 1620fi 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 as_fn_set_status $ac_retval 1623 1624} # ac_fn_c_try_compile 1625 1626# ac_fn_c_try_link LINENO 1627# ----------------------- 1628# Try to link conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_c_try_link () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext conftest$ac_exeext 1633 if { { ac_try="$ac_link" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_link") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest$ac_exeext && { 1652 test "$cross_compiling" = yes || 1653 test -x conftest$ac_exeext 1654 }; then : 1655 ac_retval=0 1656else 1657 $as_echo "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1664 # interfere with the next link command; also delete a directory that is 1665 # left behind by Apple's compiler. We do this before executing the actions. 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_link 1671 1672# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1673# ------------------------------------------------------- 1674# Tests whether HEADER exists and can be compiled using the include files in 1675# INCLUDES, setting the cache variable VAR accordingly. 1676ac_fn_c_check_header_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1680$as_echo_n "checking for $2... " >&6; } 1681if eval \${$3+:} false; then : 1682 $as_echo_n "(cached) " >&6 1683else 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685/* end confdefs.h. */ 1686$4 1687#include <$2> 1688_ACEOF 1689if ac_fn_c_try_compile "$LINENO"; then : 1690 eval "$3=yes" 1691else 1692 eval "$3=no" 1693fi 1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1695fi 1696eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698$as_echo "$ac_res" >&6; } 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 1701} # ac_fn_c_check_header_compile 1702 1703# ac_fn_c_try_cpp LINENO 1704# ---------------------- 1705# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1706ac_fn_c_try_cpp () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 if { { ac_try="$ac_cpp conftest.$ac_ext" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } > conftest.i && { 1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1726 test ! -s conftest.err 1727 }; then : 1728 ac_retval=0 1729else 1730 $as_echo "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=1 1734fi 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_cpp 1739 1740# ac_fn_c_try_run LINENO 1741# ---------------------- 1742# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1743# that executables *can* be run. 1744ac_fn_c_try_run () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 if { { ac_try="$ac_link" 1748case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751esac 1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753$as_echo "$ac_try_echo"; } >&5 1754 (eval "$ac_link") 2>&5 1755 ac_status=$? 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1758 { { case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_try") 2>&5 1765 ac_status=$? 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; }; }; then : 1768 ac_retval=0 1769else 1770 $as_echo "$as_me: program exited with status $ac_status" >&5 1771 $as_echo "$as_me: failed program was:" >&5 1772sed 's/^/| /' conftest.$ac_ext >&5 1773 1774 ac_retval=$ac_status 1775fi 1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 as_fn_set_status $ac_retval 1779 1780} # ac_fn_c_try_run 1781 1782# ac_fn_c_check_func LINENO FUNC VAR 1783# ---------------------------------- 1784# Tests whether FUNC exists, setting the cache variable VAR accordingly 1785ac_fn_c_check_func () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789$as_echo_n "checking for $2... " >&6; } 1790if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792else 1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1794/* end confdefs.h. */ 1795/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1796 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1797#define $2 innocuous_$2 1798 1799/* System header to define __stub macros and hopefully few prototypes, 1800 which can conflict with char $2 (); below. 1801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1802 <limits.h> exists even on freestanding compilers. */ 1803 1804#ifdef __STDC__ 1805# include <limits.h> 1806#else 1807# include <assert.h> 1808#endif 1809 1810#undef $2 1811 1812/* Override any GCC internal prototype to avoid an error. 1813 Use char because int might match the return type of a GCC 1814 builtin and then its argument prototype would still apply. */ 1815#ifdef __cplusplus 1816extern "C" 1817#endif 1818char $2 (); 1819/* The GNU C library defines this for functions which it implements 1820 to always fail with ENOSYS. Some functions are actually named 1821 something starting with __ and the normal name is an alias. */ 1822#if defined __stub_$2 || defined __stub___$2 1823choke me 1824#endif 1825 1826int 1827main () 1828{ 1829return $2 (); 1830 ; 1831 return 0; 1832} 1833_ACEOF 1834if ac_fn_c_try_link "$LINENO"; then : 1835 eval "$3=yes" 1836else 1837 eval "$3=no" 1838fi 1839rm -f core conftest.err conftest.$ac_objext \ 1840 conftest$ac_exeext conftest.$ac_ext 1841fi 1842eval ac_res=\$$3 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1844$as_echo "$ac_res" >&6; } 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1846 1847} # ac_fn_c_check_func 1848 1849# ac_fn_cxx_try_cpp LINENO 1850# ------------------------ 1851# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1852ac_fn_cxx_try_cpp () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 if { { ac_try="$ac_cpp conftest.$ac_ext" 1856case "(($ac_try" in 1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1858 *) ac_try_echo=$ac_try;; 1859esac 1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1861$as_echo "$ac_try_echo"; } >&5 1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1863 ac_status=$? 1864 if test -s conftest.err; then 1865 grep -v '^ *+' conftest.err >conftest.er1 1866 cat conftest.er1 >&5 1867 mv -f conftest.er1 conftest.err 1868 fi 1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1870 test $ac_status = 0; } > conftest.i && { 1871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1872 test ! -s conftest.err 1873 }; then : 1874 ac_retval=0 1875else 1876 $as_echo "$as_me: failed program was:" >&5 1877sed 's/^/| /' conftest.$ac_ext >&5 1878 1879 ac_retval=1 1880fi 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 as_fn_set_status $ac_retval 1883 1884} # ac_fn_cxx_try_cpp 1885 1886# ac_fn_cxx_try_link LINENO 1887# ------------------------- 1888# Try to link conftest.$ac_ext, and return whether this succeeded. 1889ac_fn_cxx_try_link () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 rm -f conftest.$ac_objext conftest$ac_exeext 1893 if { { ac_try="$ac_link" 1894case "(($ac_try" in 1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1896 *) ac_try_echo=$ac_try;; 1897esac 1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1899$as_echo "$ac_try_echo"; } >&5 1900 (eval "$ac_link") 2>conftest.err 1901 ac_status=$? 1902 if test -s conftest.err; then 1903 grep -v '^ *+' conftest.err >conftest.er1 1904 cat conftest.er1 >&5 1905 mv -f conftest.er1 conftest.err 1906 fi 1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1908 test $ac_status = 0; } && { 1909 test -z "$ac_cxx_werror_flag" || 1910 test ! -s conftest.err 1911 } && test -s conftest$ac_exeext && { 1912 test "$cross_compiling" = yes || 1913 test -x conftest$ac_exeext 1914 }; then : 1915 ac_retval=0 1916else 1917 $as_echo "$as_me: failed program was:" >&5 1918sed 's/^/| /' conftest.$ac_ext >&5 1919 1920 ac_retval=1 1921fi 1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1924 # interfere with the next link command; also delete a directory that is 1925 # left behind by Apple's compiler. We do this before executing the actions. 1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 as_fn_set_status $ac_retval 1929 1930} # ac_fn_cxx_try_link 1931 1932# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1933# ------------------------------------------------------- 1934# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1935# the include files in INCLUDES and setting the cache variable VAR 1936# accordingly. 1937ac_fn_c_check_header_mongrel () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 if eval \${$3+:} false; then : 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1942$as_echo_n "checking for $2... " >&6; } 1943if eval \${$3+:} false; then : 1944 $as_echo_n "(cached) " >&6 1945fi 1946eval ac_res=\$$3 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1948$as_echo "$ac_res" >&6; } 1949else 1950 # Is the header compilable? 1951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1952$as_echo_n "checking $2 usability... " >&6; } 1953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$4 1956#include <$2> 1957_ACEOF 1958if ac_fn_c_try_compile "$LINENO"; then : 1959 ac_header_compiler=yes 1960else 1961 ac_header_compiler=no 1962fi 1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1965$as_echo "$ac_header_compiler" >&6; } 1966 1967# Is the header present? 1968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1969$as_echo_n "checking $2 presence... " >&6; } 1970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971/* end confdefs.h. */ 1972#include <$2> 1973_ACEOF 1974if ac_fn_c_try_cpp "$LINENO"; then : 1975 ac_header_preproc=yes 1976else 1977 ac_header_preproc=no 1978fi 1979rm -f conftest.err conftest.i conftest.$ac_ext 1980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1981$as_echo "$ac_header_preproc" >&6; } 1982 1983# So? What about this header? 1984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1985 yes:no: ) 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1987$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1989$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1990 ;; 1991 no:yes:* ) 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1993$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1995$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1997$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1999$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2001$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2002( $as_echo "## -------------------------------------------- ## 2003## Report this to http://www.openldap.org/its/ ## 2004## -------------------------------------------- ##" 2005 ) | sed "s/^/$as_me: WARNING: /" >&2 2006 ;; 2007esac 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2009$as_echo_n "checking for $2... " >&6; } 2010if eval \${$3+:} false; then : 2011 $as_echo_n "(cached) " >&6 2012else 2013 eval "$3=\$ac_header_compiler" 2014fi 2015eval ac_res=\$$3 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2017$as_echo "$ac_res" >&6; } 2018fi 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2020 2021} # ac_fn_c_check_header_mongrel 2022cat >config.log <<_ACEOF 2023This file contains any messages produced by compilers while 2024running configure, to aid debugging if configure makes a mistake. 2025 2026It was created by ldapcpplib $as_me , which was 2027generated by GNU Autoconf 2.69. Invocation command line was 2028 2029 $ $0 $@ 2030 2031_ACEOF 2032exec 5>>config.log 2033{ 2034cat <<_ASUNAME 2035## --------- ## 2036## Platform. ## 2037## --------- ## 2038 2039hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2040uname -m = `(uname -m) 2>/dev/null || echo unknown` 2041uname -r = `(uname -r) 2>/dev/null || echo unknown` 2042uname -s = `(uname -s) 2>/dev/null || echo unknown` 2043uname -v = `(uname -v) 2>/dev/null || echo unknown` 2044 2045/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2046/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2047 2048/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2049/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2050/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2051/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2052/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2053/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2054/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2055 2056_ASUNAME 2057 2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2059for as_dir in $PATH 2060do 2061 IFS=$as_save_IFS 2062 test -z "$as_dir" && as_dir=. 2063 $as_echo "PATH: $as_dir" 2064 done 2065IFS=$as_save_IFS 2066 2067} >&5 2068 2069cat >&5 <<_ACEOF 2070 2071 2072## ----------- ## 2073## Core tests. ## 2074## ----------- ## 2075 2076_ACEOF 2077 2078 2079# Keep a trace of the command line. 2080# Strip out --no-create and --no-recursion so they do not pile up. 2081# Strip out --silent because we don't want to record it for future runs. 2082# Also quote any args containing shell meta-characters. 2083# Make two passes to allow for proper duplicate-argument suppression. 2084ac_configure_args= 2085ac_configure_args0= 2086ac_configure_args1= 2087ac_must_keep_next=false 2088for ac_pass in 1 2 2089do 2090 for ac_arg 2091 do 2092 case $ac_arg in 2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2095 | -silent | --silent | --silen | --sile | --sil) 2096 continue ;; 2097 *\'*) 2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2099 esac 2100 case $ac_pass in 2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2102 2) 2103 as_fn_append ac_configure_args1 " '$ac_arg'" 2104 if test $ac_must_keep_next = true; then 2105 ac_must_keep_next=false # Got value, back to normal. 2106 else 2107 case $ac_arg in 2108 *=* | --config-cache | -C | -disable-* | --disable-* \ 2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2111 | -with-* | --with-* | -without-* | --without-* | --x) 2112 case "$ac_configure_args0 " in 2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2114 esac 2115 ;; 2116 -* ) ac_must_keep_next=true ;; 2117 esac 2118 fi 2119 as_fn_append ac_configure_args " '$ac_arg'" 2120 ;; 2121 esac 2122 done 2123done 2124{ ac_configure_args0=; unset ac_configure_args0;} 2125{ ac_configure_args1=; unset ac_configure_args1;} 2126 2127# When interrupted or exit'd, cleanup temporary files, and complete 2128# config.log. We remove comments because anyway the quotes in there 2129# would cause problems or look ugly. 2130# WARNING: Use '\'' to represent an apostrophe within the trap. 2131# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2132trap 'exit_status=$? 2133 # Save into config.log some information that might help in debugging. 2134 { 2135 echo 2136 2137 $as_echo "## ---------------- ## 2138## Cache variables. ## 2139## ---------------- ##" 2140 echo 2141 # The following way of writing the cache mishandles newlines in values, 2142( 2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2144 eval ac_val=\$$ac_var 2145 case $ac_val in #( 2146 *${as_nl}*) 2147 case $ac_var in #( 2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2150 esac 2151 case $ac_var in #( 2152 _ | IFS | as_nl) ;; #( 2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2154 *) { eval $ac_var=; unset $ac_var;} ;; 2155 esac ;; 2156 esac 2157 done 2158 (set) 2>&1 | 2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2160 *${as_nl}ac_space=\ *) 2161 sed -n \ 2162 "s/'\''/'\''\\\\'\'''\''/g; 2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2164 ;; #( 2165 *) 2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2167 ;; 2168 esac | 2169 sort 2170) 2171 echo 2172 2173 $as_echo "## ----------------- ## 2174## Output variables. ## 2175## ----------------- ##" 2176 echo 2177 for ac_var in $ac_subst_vars 2178 do 2179 eval ac_val=\$$ac_var 2180 case $ac_val in 2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2182 esac 2183 $as_echo "$ac_var='\''$ac_val'\''" 2184 done | sort 2185 echo 2186 2187 if test -n "$ac_subst_files"; then 2188 $as_echo "## ------------------- ## 2189## File substitutions. ## 2190## ------------------- ##" 2191 echo 2192 for ac_var in $ac_subst_files 2193 do 2194 eval ac_val=\$$ac_var 2195 case $ac_val in 2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2197 esac 2198 $as_echo "$ac_var='\''$ac_val'\''" 2199 done | sort 2200 echo 2201 fi 2202 2203 if test -s confdefs.h; then 2204 $as_echo "## ----------- ## 2205## confdefs.h. ## 2206## ----------- ##" 2207 echo 2208 cat confdefs.h 2209 echo 2210 fi 2211 test "$ac_signal" != 0 && 2212 $as_echo "$as_me: caught signal $ac_signal" 2213 $as_echo "$as_me: exit $exit_status" 2214 } >&5 2215 rm -f core *.core core.conftest.* && 2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2217 exit $exit_status 2218' 0 2219for ac_signal in 1 2 13 15; do 2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2221done 2222ac_signal=0 2223 2224# confdefs.h avoids OS command line length limits that DEFS can exceed. 2225rm -f -r conftest* confdefs.h 2226 2227$as_echo "/* confdefs.h */" > confdefs.h 2228 2229# Predefined preprocessor variables. 2230 2231cat >>confdefs.h <<_ACEOF 2232#define PACKAGE_NAME "$PACKAGE_NAME" 2233_ACEOF 2234 2235cat >>confdefs.h <<_ACEOF 2236#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2237_ACEOF 2238 2239cat >>confdefs.h <<_ACEOF 2240#define PACKAGE_VERSION "$PACKAGE_VERSION" 2241_ACEOF 2242 2243cat >>confdefs.h <<_ACEOF 2244#define PACKAGE_STRING "$PACKAGE_STRING" 2245_ACEOF 2246 2247cat >>confdefs.h <<_ACEOF 2248#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2249_ACEOF 2250 2251cat >>confdefs.h <<_ACEOF 2252#define PACKAGE_URL "$PACKAGE_URL" 2253_ACEOF 2254 2255 2256# Let the site file select an alternate cache file if it wants to. 2257# Prefer an explicitly selected file to automatically selected ones. 2258ac_site_file1=NONE 2259ac_site_file2=NONE 2260if test -n "$CONFIG_SITE"; then 2261 # We do not want a PATH search for config.site. 2262 case $CONFIG_SITE in #(( 2263 -*) ac_site_file1=./$CONFIG_SITE;; 2264 */*) ac_site_file1=$CONFIG_SITE;; 2265 *) ac_site_file1=./$CONFIG_SITE;; 2266 esac 2267elif test "x$prefix" != xNONE; then 2268 ac_site_file1=$prefix/share/config.site 2269 ac_site_file2=$prefix/etc/config.site 2270else 2271 ac_site_file1=$ac_default_prefix/share/config.site 2272 ac_site_file2=$ac_default_prefix/etc/config.site 2273fi 2274for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2275do 2276 test "x$ac_site_file" = xNONE && continue 2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2279$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2280 sed 's/^/| /' "$ac_site_file" >&5 2281 . "$ac_site_file" \ 2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2284as_fn_error $? "failed to load site script $ac_site_file 2285See \`config.log' for more details" "$LINENO" 5; } 2286 fi 2287done 2288 2289if test -r "$cache_file"; then 2290 # Some versions of bash will fail to source /dev/null (special files 2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2294$as_echo "$as_me: loading cache $cache_file" >&6;} 2295 case $cache_file in 2296 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2297 *) . "./$cache_file";; 2298 esac 2299 fi 2300else 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2302$as_echo "$as_me: creating cache $cache_file" >&6;} 2303 >$cache_file 2304fi 2305 2306# Check that the precious variables saved in the cache have kept the same 2307# value. 2308ac_cache_corrupted=false 2309for ac_var in $ac_precious_vars; do 2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2311 eval ac_new_set=\$ac_env_${ac_var}_set 2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2313 eval ac_new_val=\$ac_env_${ac_var}_value 2314 case $ac_old_set,$ac_new_set in 2315 set,) 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2317$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2318 ac_cache_corrupted=: ;; 2319 ,set) 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2321$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2322 ac_cache_corrupted=: ;; 2323 ,);; 2324 *) 2325 if test "x$ac_old_val" != "x$ac_new_val"; then 2326 # differences in whitespace do not lead to failure. 2327 ac_old_val_w=`echo x $ac_old_val` 2328 ac_new_val_w=`echo x $ac_new_val` 2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2331$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2332 ac_cache_corrupted=: 2333 else 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2335$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2336 eval $ac_var=\$ac_old_val 2337 fi 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2339$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2341$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2342 fi;; 2343 esac 2344 # Pass precious variables to config.status. 2345 if test "$ac_new_set" = set; then 2346 case $ac_new_val in 2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2348 *) ac_arg=$ac_var=$ac_new_val ;; 2349 esac 2350 case " $ac_configure_args " in 2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2353 esac 2354 fi 2355done 2356if $ac_cache_corrupted; then 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2360$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2362fi 2363## -------------------- ## 2364## Main body of script. ## 2365## -------------------- ## 2366 2367ac_ext=c 2368ac_cpp='$CPP $CPPFLAGS' 2369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2371ac_compiler_gnu=$ac_cv_c_compiler_gnu 2372 2373 2374 2375am__api_version='1.16' 2376 2377ac_aux_dir= 2378for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2379 if test -f "$ac_dir/install-sh"; then 2380 ac_aux_dir=$ac_dir 2381 ac_install_sh="$ac_aux_dir/install-sh -c" 2382 break 2383 elif test -f "$ac_dir/install.sh"; then 2384 ac_aux_dir=$ac_dir 2385 ac_install_sh="$ac_aux_dir/install.sh -c" 2386 break 2387 elif test -f "$ac_dir/shtool"; then 2388 ac_aux_dir=$ac_dir 2389 ac_install_sh="$ac_aux_dir/shtool install -c" 2390 break 2391 fi 2392done 2393if test -z "$ac_aux_dir"; then 2394 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2395fi 2396 2397# These three variables are undocumented and unsupported, 2398# and are intended to be withdrawn in a future Autoconf release. 2399# They can cause serious problems if a builder's source tree is in a directory 2400# whose full name contains unusual characters. 2401ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2402ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2403ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2404 2405 2406# Find a good install program. We prefer a C program (faster), 2407# so one script is as good as another. But avoid the broken or 2408# incompatible versions: 2409# SysV /etc/install, /usr/sbin/install 2410# SunOS /usr/etc/install 2411# IRIX /sbin/install 2412# AIX /bin/install 2413# AmigaOS /C/install, which installs bootblocks on floppy discs 2414# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2415# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2416# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2417# OS/2's system install, which has a completely different semantic 2418# ./install, which can be erroneously created by make from ./install.sh. 2419# Reject install programs that cannot install multiple files. 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2421$as_echo_n "checking for a BSD-compatible install... " >&6; } 2422if test -z "$INSTALL"; then 2423if ${ac_cv_path_install+:} false; then : 2424 $as_echo_n "(cached) " >&6 2425else 2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2427for as_dir in $PATH 2428do 2429 IFS=$as_save_IFS 2430 test -z "$as_dir" && as_dir=. 2431 # Account for people who put trailing slashes in PATH elements. 2432case $as_dir/ in #(( 2433 ./ | .// | /[cC]/* | \ 2434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2436 /usr/ucb/* ) ;; 2437 *) 2438 # OSF1 and SCO ODT 3.0 have their own names for install. 2439 # Don't use installbsd from OSF since it installs stuff as root 2440 # by default. 2441 for ac_prog in ginstall scoinst install; do 2442 for ac_exec_ext in '' $ac_executable_extensions; do 2443 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2444 if test $ac_prog = install && 2445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2446 # AIX install. It has an incompatible calling convention. 2447 : 2448 elif test $ac_prog = install && 2449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2450 # program-specific install script used by HP pwplus--don't use. 2451 : 2452 else 2453 rm -rf conftest.one conftest.two conftest.dir 2454 echo one > conftest.one 2455 echo two > conftest.two 2456 mkdir conftest.dir 2457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2458 test -s conftest.one && test -s conftest.two && 2459 test -s conftest.dir/conftest.one && 2460 test -s conftest.dir/conftest.two 2461 then 2462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2463 break 3 2464 fi 2465 fi 2466 fi 2467 done 2468 done 2469 ;; 2470esac 2471 2472 done 2473IFS=$as_save_IFS 2474 2475rm -rf conftest.one conftest.two conftest.dir 2476 2477fi 2478 if test "${ac_cv_path_install+set}" = set; then 2479 INSTALL=$ac_cv_path_install 2480 else 2481 # As a last resort, use the slow shell script. Don't cache a 2482 # value for INSTALL within a source directory, because that will 2483 # break other packages using the cache if that directory is 2484 # removed, or if the value is a relative name. 2485 INSTALL=$ac_install_sh 2486 fi 2487fi 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2489$as_echo "$INSTALL" >&6; } 2490 2491# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2492# It thinks the first close brace ends the variable substitution. 2493test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2494 2495test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2496 2497test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2498 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2500$as_echo_n "checking whether build environment is sane... " >&6; } 2501# Reject unsafe characters in $srcdir or the absolute working directory 2502# name. Accept space and tab only in the latter. 2503am_lf=' 2504' 2505case `pwd` in 2506 *[\\\"\#\$\&\'\`$am_lf]*) 2507 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2508esac 2509case $srcdir in 2510 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2511 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2512esac 2513 2514# Do 'set' in a subshell so we don't clobber the current shell's 2515# arguments. Must try -L first in case configure is actually a 2516# symlink; some systems play weird games with the mod time of symlinks 2517# (eg FreeBSD returns the mod time of the symlink's containing 2518# directory). 2519if ( 2520 am_has_slept=no 2521 for am_try in 1 2; do 2522 echo "timestamp, slept: $am_has_slept" > conftest.file 2523 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2524 if test "$*" = "X"; then 2525 # -L didn't work. 2526 set X `ls -t "$srcdir/configure" conftest.file` 2527 fi 2528 if test "$*" != "X $srcdir/configure conftest.file" \ 2529 && test "$*" != "X conftest.file $srcdir/configure"; then 2530 2531 # If neither matched, then we have a broken ls. This can happen 2532 # if, for instance, CONFIG_SHELL is bash and it inherits a 2533 # broken ls alias from the environment. This has actually 2534 # happened. Such a system could not be considered "sane". 2535 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2536 alias in your environment" "$LINENO" 5 2537 fi 2538 if test "$2" = conftest.file || test $am_try -eq 2; then 2539 break 2540 fi 2541 # Just in case. 2542 sleep 1 2543 am_has_slept=yes 2544 done 2545 test "$2" = conftest.file 2546 ) 2547then 2548 # Ok. 2549 : 2550else 2551 as_fn_error $? "newly created file is older than distributed files! 2552Check your system clock" "$LINENO" 5 2553fi 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2555$as_echo "yes" >&6; } 2556# If we didn't sleep, we still need to ensure time stamps of config.status and 2557# generated files are strictly newer. 2558am_sleep_pid= 2559if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2560 ( sleep 1 ) & 2561 am_sleep_pid=$! 2562fi 2563 2564rm -f conftest.file 2565 2566test "$program_prefix" != NONE && 2567 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2568# Use a double $ so make ignores it. 2569test "$program_suffix" != NONE && 2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2571# Double any \ or $. 2572# By default was `s,x,x', remove it if useless. 2573ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2574program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2575 2576# Expand $ac_aux_dir to an absolute path. 2577am_aux_dir=`cd "$ac_aux_dir" && pwd` 2578 2579if test x"${MISSING+set}" != xset; then 2580 case $am_aux_dir in 2581 *\ * | *\ *) 2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2583 *) 2584 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2585 esac 2586fi 2587# Use eval to expand $SHELL 2588if eval "$MISSING --is-lightweight"; then 2589 am_missing_run="$MISSING " 2590else 2591 am_missing_run= 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2593$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2594fi 2595 2596if test x"${install_sh+set}" != xset; then 2597 case $am_aux_dir in 2598 *\ * | *\ *) 2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2600 *) 2601 install_sh="\${SHELL} $am_aux_dir/install-sh" 2602 esac 2603fi 2604 2605# Installed binaries are usually stripped using 'strip' when the user 2606# run "make install-strip". However 'strip' might not be the right 2607# tool to use in cross-compilation environments, therefore Automake 2608# will honor the 'STRIP' environment variable to overrule this program. 2609if test "$cross_compiling" != no; then 2610 if test -n "$ac_tool_prefix"; then 2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2612set dummy ${ac_tool_prefix}strip; ac_word=$2 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2614$as_echo_n "checking for $ac_word... " >&6; } 2615if ${ac_cv_prog_STRIP+:} false; then : 2616 $as_echo_n "(cached) " >&6 2617else 2618 if test -n "$STRIP"; then 2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633 done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638STRIP=$ac_cv_prog_STRIP 2639if test -n "$STRIP"; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2641$as_echo "$STRIP" >&6; } 2642else 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2644$as_echo "no" >&6; } 2645fi 2646 2647 2648fi 2649if test -z "$ac_cv_prog_STRIP"; then 2650 ac_ct_STRIP=$STRIP 2651 # Extract the first word of "strip", so it can be a program name with args. 2652set dummy strip; ac_word=$2 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2654$as_echo_n "checking for $ac_word... " >&6; } 2655if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2656 $as_echo_n "(cached) " >&6 2657else 2658 if test -n "$ac_ct_STRIP"; then 2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2660else 2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2662for as_dir in $PATH 2663do 2664 IFS=$as_save_IFS 2665 test -z "$as_dir" && as_dir=. 2666 for ac_exec_ext in '' $ac_executable_extensions; do 2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2668 ac_cv_prog_ac_ct_STRIP="strip" 2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2670 break 2 2671 fi 2672done 2673 done 2674IFS=$as_save_IFS 2675 2676fi 2677fi 2678ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2679if test -n "$ac_ct_STRIP"; then 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2681$as_echo "$ac_ct_STRIP" >&6; } 2682else 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2684$as_echo "no" >&6; } 2685fi 2686 2687 if test "x$ac_ct_STRIP" = x; then 2688 STRIP=":" 2689 else 2690 case $cross_compiling:$ac_tool_warned in 2691yes:) 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2694ac_tool_warned=yes ;; 2695esac 2696 STRIP=$ac_ct_STRIP 2697 fi 2698else 2699 STRIP="$ac_cv_prog_STRIP" 2700fi 2701 2702fi 2703INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2704 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2706$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2707if test -z "$MKDIR_P"; then 2708 if ${ac_cv_path_mkdir+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2712for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2713do 2714 IFS=$as_save_IFS 2715 test -z "$as_dir" && as_dir=. 2716 for ac_prog in mkdir gmkdir; do 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2720 'mkdir (GNU coreutils) '* | \ 2721 'mkdir (coreutils) '* | \ 2722 'mkdir (fileutils) '4.1*) 2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2724 break 3;; 2725 esac 2726 done 2727 done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732 2733 test -d ./--version && rmdir ./--version 2734 if test "${ac_cv_path_mkdir+set}" = set; then 2735 MKDIR_P="$ac_cv_path_mkdir -p" 2736 else 2737 # As a last resort, use the slow shell script. Don't cache a 2738 # value for MKDIR_P within a source directory, because that will 2739 # break other packages using the cache if that directory is 2740 # removed, or if the value is a relative name. 2741 MKDIR_P="$ac_install_sh -d" 2742 fi 2743fi 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2745$as_echo "$MKDIR_P" >&6; } 2746 2747for ac_prog in gawk mawk nawk awk 2748do 2749 # Extract the first word of "$ac_prog", so it can be a program name with args. 2750set dummy $ac_prog; ac_word=$2 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2752$as_echo_n "checking for $ac_word... " >&6; } 2753if ${ac_cv_prog_AWK+:} false; then : 2754 $as_echo_n "(cached) " >&6 2755else 2756 if test -n "$AWK"; then 2757 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2758else 2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH 2761do 2762 IFS=$as_save_IFS 2763 test -z "$as_dir" && as_dir=. 2764 for ac_exec_ext in '' $ac_executable_extensions; do 2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2766 ac_cv_prog_AWK="$ac_prog" 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2768 break 2 2769 fi 2770done 2771 done 2772IFS=$as_save_IFS 2773 2774fi 2775fi 2776AWK=$ac_cv_prog_AWK 2777if test -n "$AWK"; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2779$as_echo "$AWK" >&6; } 2780else 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2782$as_echo "no" >&6; } 2783fi 2784 2785 2786 test -n "$AWK" && break 2787done 2788 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2790$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2791set x ${MAKE-make} 2792ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2793if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2794 $as_echo_n "(cached) " >&6 2795else 2796 cat >conftest.make <<\_ACEOF 2797SHELL = /bin/sh 2798all: 2799 @echo '@@@%%%=$(MAKE)=@@@%%%' 2800_ACEOF 2801# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2802case `${MAKE-make} -f conftest.make 2>/dev/null` in 2803 *@@@%%%=?*=@@@%%%*) 2804 eval ac_cv_prog_make_${ac_make}_set=yes;; 2805 *) 2806 eval ac_cv_prog_make_${ac_make}_set=no;; 2807esac 2808rm -f conftest.make 2809fi 2810if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2812$as_echo "yes" >&6; } 2813 SET_MAKE= 2814else 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2816$as_echo "no" >&6; } 2817 SET_MAKE="MAKE=${MAKE-make}" 2818fi 2819 2820rm -rf .tst 2>/dev/null 2821mkdir .tst 2>/dev/null 2822if test -d .tst; then 2823 am__leading_dot=. 2824else 2825 am__leading_dot=_ 2826fi 2827rmdir .tst 2>/dev/null 2828 2829# Check whether --enable-silent-rules was given. 2830if test "${enable_silent_rules+set}" = set; then : 2831 enableval=$enable_silent_rules; 2832fi 2833 2834case $enable_silent_rules in # ((( 2835 yes) AM_DEFAULT_VERBOSITY=0;; 2836 no) AM_DEFAULT_VERBOSITY=1;; 2837 *) AM_DEFAULT_VERBOSITY=1;; 2838esac 2839am_make=${MAKE-make} 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2841$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2842if ${am_cv_make_support_nested_variables+:} false; then : 2843 $as_echo_n "(cached) " >&6 2844else 2845 if $as_echo 'TRUE=$(BAR$(V)) 2846BAR0=false 2847BAR1=true 2848V=1 2849am__doit: 2850 @$(TRUE) 2851.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2852 am_cv_make_support_nested_variables=yes 2853else 2854 am_cv_make_support_nested_variables=no 2855fi 2856fi 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2858$as_echo "$am_cv_make_support_nested_variables" >&6; } 2859if test $am_cv_make_support_nested_variables = yes; then 2860 AM_V='$(V)' 2861 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2862else 2863 AM_V=$AM_DEFAULT_VERBOSITY 2864 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2865fi 2866AM_BACKSLASH='\' 2867 2868if test "`cd $srcdir && pwd`" != "`pwd`"; then 2869 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2870 # is not polluted with repeated "-I." 2871 am__isrc=' -I$(srcdir)' 2872 # test to see if srcdir already configured 2873 if test -f $srcdir/config.status; then 2874 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2875 fi 2876fi 2877 2878# test whether we have cygpath 2879if test -z "$CYGPATH_W"; then 2880 if (cygpath --version) >/dev/null 2>/dev/null; then 2881 CYGPATH_W='cygpath -w' 2882 else 2883 CYGPATH_W=echo 2884 fi 2885fi 2886 2887 2888# Define the identity of the package. 2889 PACKAGE='ldapcpplib' 2890 VERSION=' ' 2891 2892 2893cat >>confdefs.h <<_ACEOF 2894#define PACKAGE "$PACKAGE" 2895_ACEOF 2896 2897 2898cat >>confdefs.h <<_ACEOF 2899#define VERSION "$VERSION" 2900_ACEOF 2901 2902# Some tools Automake needs. 2903 2904ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2905 2906 2907AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2908 2909 2910AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2911 2912 2913AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2914 2915 2916MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2917 2918# For better backward compatibility. To be removed once Automake 1.9.x 2919# dies out for good. For more background, see: 2920# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2921# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2922mkdir_p='$(MKDIR_P)' 2923 2924# We need awk for the "check" target (and possibly the TAP driver). The 2925# system "awk" is bad on some platforms. 2926# Always define AMTAR for backward compatibility. Yes, it's still used 2927# in the wild :-( We should find a proper way to deprecate it ... 2928AMTAR='$${TAR-tar}' 2929 2930 2931# We'll loop over all known methods to create a tar archive until one works. 2932_am_tools='gnutar pax cpio none' 2933 2934am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2935 2936 2937 2938 2939 2940 2941# POSIX will say in a future version that running "rm -f" with no argument 2942# is OK; and we want to be able to make that assumption in our Makefile 2943# recipes. So use an aggressive probe to check that the usage we want is 2944# actually supported "in the wild" to an acceptable degree. 2945# See automake bug#10828. 2946# To make any issue more visible, cause the running configure to be aborted 2947# by default if the 'rm' program in use doesn't match our expectations; the 2948# user can still override this though. 2949if rm -f && rm -fr && rm -rf; then : OK; else 2950 cat >&2 <<'END' 2951Oops! 2952 2953Your 'rm' program seems unable to run without file operands specified 2954on the command line, even when the '-f' option is present. This is contrary 2955to the behaviour of most rm programs out there, and not conforming with 2956the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2957 2958Please tell bug-automake@gnu.org about your system, including the value 2959of your $PATH and any error possibly output before this message. This 2960can help us improve future automake versions. 2961 2962END 2963 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2964 echo 'Configuration will proceed anyway, since you have set the' >&2 2965 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2966 echo >&2 2967 else 2968 cat >&2 <<'END' 2969Aborting the configuration process, to ensure you take notice of the issue. 2970 2971You can download and install GNU coreutils to get an 'rm' implementation 2972that behaves properly: <https://www.gnu.org/software/coreutils/>. 2973 2974If you want to complete the configuration process using your problematic 2975'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2976to "yes", and re-run configure. 2977 2978END 2979 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2980 fi 2981fi 2982 2983ac_config_headers="$ac_config_headers src/config.h" 2984 2985 2986eval `$ac_aux_dir/version.sh` 2987if test -z "$OL_CPP_API_RELEASE"; then 2988 as_fn_error $? "could not determine version" "$LINENO" 5 2989fi 2990 2991VERSION=$OL_CPP_API_RELEASE 2992OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION 2993 2994 2995 2996ac_ext=cpp 2997ac_cpp='$CXXCPP $CPPFLAGS' 2998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3001if test -z "$CXX"; then 3002 if test -n "$CCC"; then 3003 CXX=$CCC 3004 else 3005 if test -n "$ac_tool_prefix"; then 3006 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3007 do 3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3009set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011$as_echo_n "checking for $ac_word... " >&6; } 3012if ${ac_cv_prog_CXX+:} false; then : 3013 $as_echo_n "(cached) " >&6 3014else 3015 if test -n "$CXX"; then 3016 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3017else 3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019for as_dir in $PATH 3020do 3021 IFS=$as_save_IFS 3022 test -z "$as_dir" && as_dir=. 3023 for ac_exec_ext in '' $ac_executable_extensions; do 3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3025 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3027 break 2 3028 fi 3029done 3030 done 3031IFS=$as_save_IFS 3032 3033fi 3034fi 3035CXX=$ac_cv_prog_CXX 3036if test -n "$CXX"; then 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3038$as_echo "$CXX" >&6; } 3039else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041$as_echo "no" >&6; } 3042fi 3043 3044 3045 test -n "$CXX" && break 3046 done 3047fi 3048if test -z "$CXX"; then 3049 ac_ct_CXX=$CXX 3050 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3051do 3052 # Extract the first word of "$ac_prog", so it can be a program name with args. 3053set dummy $ac_prog; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$ac_ct_CXX"; then 3060 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3061else 3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3063for as_dir in $PATH 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_exec_ext in '' $ac_executable_extensions; do 3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3069 ac_cv_prog_ac_ct_CXX="$ac_prog" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077fi 3078fi 3079ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3080if test -n "$ac_ct_CXX"; then 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3082$as_echo "$ac_ct_CXX" >&6; } 3083else 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085$as_echo "no" >&6; } 3086fi 3087 3088 3089 test -n "$ac_ct_CXX" && break 3090done 3091 3092 if test "x$ac_ct_CXX" = x; then 3093 CXX="g++" 3094 else 3095 case $cross_compiling:$ac_tool_warned in 3096yes:) 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3099ac_tool_warned=yes ;; 3100esac 3101 CXX=$ac_ct_CXX 3102 fi 3103fi 3104 3105 fi 3106fi 3107# Provide some information about the compiler. 3108$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3109set X $ac_compile 3110ac_compiler=$2 3111for ac_option in --version -v -V -qversion; do 3112 { { ac_try="$ac_compiler $ac_option >&5" 3113case "(($ac_try" in 3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *) ac_try_echo=$ac_try;; 3116esac 3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3118$as_echo "$ac_try_echo"; } >&5 3119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3120 ac_status=$? 3121 if test -s conftest.err; then 3122 sed '10a\ 3123... rest of stderr output deleted ... 3124 10q' conftest.err >conftest.er1 3125 cat conftest.er1 >&5 3126 fi 3127 rm -f conftest.er1 conftest.err 3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3129 test $ac_status = 0; } 3130done 3131 3132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3133/* end confdefs.h. */ 3134 3135int 3136main () 3137{ 3138 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143ac_clean_files_save=$ac_clean_files 3144ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3145# Try to create an executable without -o first, disregard a.out. 3146# It will help us diagnose broken compilers, and finding out an intuition 3147# of exeext. 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3149$as_echo_n "checking whether the C++ compiler works... " >&6; } 3150ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3151 3152# The possible output files: 3153ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3154 3155ac_rmfiles= 3156for ac_file in $ac_files 3157do 3158 case $ac_file in 3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3160 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3161 esac 3162done 3163rm -f $ac_rmfiles 3164 3165if { { ac_try="$ac_link_default" 3166case "(($ac_try" in 3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3168 *) ac_try_echo=$ac_try;; 3169esac 3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3171$as_echo "$ac_try_echo"; } >&5 3172 (eval "$ac_link_default") 2>&5 3173 ac_status=$? 3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3175 test $ac_status = 0; }; then : 3176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3178# in a Makefile. We should not override ac_cv_exeext if it was cached, 3179# so that the user can short-circuit this test for compilers unknown to 3180# Autoconf. 3181for ac_file in $ac_files '' 3182do 3183 test -f "$ac_file" || continue 3184 case $ac_file in 3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3186 ;; 3187 [ab].out ) 3188 # We found the default executable, but exeext='' is most 3189 # certainly right. 3190 break;; 3191 *.* ) 3192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3193 then :; else 3194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3195 fi 3196 # We set ac_cv_exeext here because the later test for it is not 3197 # safe: cross compilers may not add the suffix if given an `-o' 3198 # argument, so we may need to know it at that point already. 3199 # Even if this section looks crufty: it has the advantage of 3200 # actually working. 3201 break;; 3202 * ) 3203 break;; 3204 esac 3205done 3206test "$ac_cv_exeext" = no && ac_cv_exeext= 3207 3208else 3209 ac_file='' 3210fi 3211if test -z "$ac_file"; then : 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3213$as_echo "no" >&6; } 3214$as_echo "$as_me: failed program was:" >&5 3215sed 's/^/| /' conftest.$ac_ext >&5 3216 3217{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3219as_fn_error 77 "C++ compiler cannot create executables 3220See \`config.log' for more details" "$LINENO" 5; } 3221else 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3223$as_echo "yes" >&6; } 3224fi 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3226$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3228$as_echo "$ac_file" >&6; } 3229ac_exeext=$ac_cv_exeext 3230 3231rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3232ac_clean_files=$ac_clean_files_save 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3234$as_echo_n "checking for suffix of executables... " >&6; } 3235if { { ac_try="$ac_link" 3236case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239esac 3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3241$as_echo "$ac_try_echo"; } >&5 3242 (eval "$ac_link") 2>&5 3243 ac_status=$? 3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3245 test $ac_status = 0; }; then : 3246 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3247# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3248# work properly (i.e., refer to `conftest.exe'), while it won't with 3249# `rm'. 3250for ac_file in conftest.exe conftest conftest.*; do 3251 test -f "$ac_file" || continue 3252 case $ac_file in 3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3254 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3255 break;; 3256 * ) break;; 3257 esac 3258done 3259else 3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3262as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3263See \`config.log' for more details" "$LINENO" 5; } 3264fi 3265rm -f conftest conftest$ac_cv_exeext 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3267$as_echo "$ac_cv_exeext" >&6; } 3268 3269rm -f conftest.$ac_ext 3270EXEEXT=$ac_cv_exeext 3271ac_exeext=$EXEEXT 3272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273/* end confdefs.h. */ 3274#include <stdio.h> 3275int 3276main () 3277{ 3278FILE *f = fopen ("conftest.out", "w"); 3279 return ferror (f) || fclose (f) != 0; 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285ac_clean_files="$ac_clean_files conftest.out" 3286# Check that the compiler produces executables we can run. If not, either 3287# the compiler is broken, or we cross compile. 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3289$as_echo_n "checking whether we are cross compiling... " >&6; } 3290if test "$cross_compiling" != yes; then 3291 { { ac_try="$ac_link" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3297$as_echo "$ac_try_echo"; } >&5 3298 (eval "$ac_link") 2>&5 3299 ac_status=$? 3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3301 test $ac_status = 0; } 3302 if { ac_try='./conftest$ac_cv_exeext' 3303 { { case "(($ac_try" in 3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3305 *) ac_try_echo=$ac_try;; 3306esac 3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3308$as_echo "$ac_try_echo"; } >&5 3309 (eval "$ac_try") 2>&5 3310 ac_status=$? 3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3312 test $ac_status = 0; }; }; then 3313 cross_compiling=no 3314 else 3315 if test "$cross_compiling" = maybe; then 3316 cross_compiling=yes 3317 else 3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3320as_fn_error $? "cannot run C++ compiled programs. 3321If you meant to cross compile, use \`--host'. 3322See \`config.log' for more details" "$LINENO" 5; } 3323 fi 3324 fi 3325fi 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3327$as_echo "$cross_compiling" >&6; } 3328 3329rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3330ac_clean_files=$ac_clean_files_save 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3332$as_echo_n "checking for suffix of object files... " >&6; } 3333if ${ac_cv_objext+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335else 3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3337/* end confdefs.h. */ 3338 3339int 3340main () 3341{ 3342 3343 ; 3344 return 0; 3345} 3346_ACEOF 3347rm -f conftest.o conftest.obj 3348if { { ac_try="$ac_compile" 3349case "(($ac_try" in 3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3351 *) ac_try_echo=$ac_try;; 3352esac 3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3354$as_echo "$ac_try_echo"; } >&5 3355 (eval "$ac_compile") 2>&5 3356 ac_status=$? 3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3358 test $ac_status = 0; }; then : 3359 for ac_file in conftest.o conftest.obj conftest.*; do 3360 test -f "$ac_file" || continue; 3361 case $ac_file in 3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3364 break;; 3365 esac 3366done 3367else 3368 $as_echo "$as_me: failed program was:" >&5 3369sed 's/^/| /' conftest.$ac_ext >&5 3370 3371{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3373as_fn_error $? "cannot compute suffix of object files: cannot compile 3374See \`config.log' for more details" "$LINENO" 5; } 3375fi 3376rm -f conftest.$ac_cv_objext conftest.$ac_ext 3377fi 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3379$as_echo "$ac_cv_objext" >&6; } 3380OBJEXT=$ac_cv_objext 3381ac_objext=$OBJEXT 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3383$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3384if ${ac_cv_cxx_compiler_gnu+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386else 3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393#ifndef __GNUC__ 3394 choke me 3395#endif 3396 3397 ; 3398 return 0; 3399} 3400_ACEOF 3401if ac_fn_cxx_try_compile "$LINENO"; then : 3402 ac_compiler_gnu=yes 3403else 3404 ac_compiler_gnu=no 3405fi 3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3407ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3408 3409fi 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3411$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3412if test $ac_compiler_gnu = yes; then 3413 GXX=yes 3414else 3415 GXX= 3416fi 3417ac_test_CXXFLAGS=${CXXFLAGS+set} 3418ac_save_CXXFLAGS=$CXXFLAGS 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3420$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3421if ${ac_cv_prog_cxx_g+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3425 ac_cxx_werror_flag=yes 3426 ac_cv_prog_cxx_g=no 3427 CXXFLAGS="-g" 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430 3431int 3432main () 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439if ac_fn_cxx_try_compile "$LINENO"; then : 3440 ac_cv_prog_cxx_g=yes 3441else 3442 CXXFLAGS="" 3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3444/* end confdefs.h. */ 3445 3446int 3447main () 3448{ 3449 3450 ; 3451 return 0; 3452} 3453_ACEOF 3454if ac_fn_cxx_try_compile "$LINENO"; then : 3455 3456else 3457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3458 CXXFLAGS="-g" 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461 3462int 3463main () 3464{ 3465 3466 ; 3467 return 0; 3468} 3469_ACEOF 3470if ac_fn_cxx_try_compile "$LINENO"; then : 3471 ac_cv_prog_cxx_g=yes 3472fi 3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3474fi 3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3476fi 3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3479fi 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3481$as_echo "$ac_cv_prog_cxx_g" >&6; } 3482if test "$ac_test_CXXFLAGS" = set; then 3483 CXXFLAGS=$ac_save_CXXFLAGS 3484elif test $ac_cv_prog_cxx_g = yes; then 3485 if test "$GXX" = yes; then 3486 CXXFLAGS="-g -O2" 3487 else 3488 CXXFLAGS="-g" 3489 fi 3490else 3491 if test "$GXX" = yes; then 3492 CXXFLAGS="-O2" 3493 else 3494 CXXFLAGS= 3495 fi 3496fi 3497ac_ext=c 3498ac_cpp='$CPP $CPPFLAGS' 3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3501ac_compiler_gnu=$ac_cv_c_compiler_gnu 3502DEPDIR="${am__leading_dot}deps" 3503 3504ac_config_commands="$ac_config_commands depfiles" 3505 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3507$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3508cat > confinc.mk << 'END' 3509am__doit: 3510 @echo this is the am__doit target >confinc.out 3511.PHONY: am__doit 3512END 3513am__include="#" 3514am__quote= 3515# BSD make does it like this. 3516echo '.include "confinc.mk" # ignored' > confmf.BSD 3517# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3518echo 'include confinc.mk # ignored' > confmf.GNU 3519_am_result=no 3520for s in GNU BSD; do 3521 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3522 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3523 ac_status=$? 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); } 3526 case $?:`cat confinc.out 2>/dev/null` in #( 3527 '0:this is the am__doit target') : 3528 case $s in #( 3529 BSD) : 3530 am__include='.include' am__quote='"' ;; #( 3531 *) : 3532 am__include='include' am__quote='' ;; 3533esac ;; #( 3534 *) : 3535 ;; 3536esac 3537 if test "$am__include" != "#"; then 3538 _am_result="yes ($s style)" 3539 break 3540 fi 3541done 3542rm -f confinc.* confmf.* 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3544$as_echo "${_am_result}" >&6; } 3545 3546# Check whether --enable-dependency-tracking was given. 3547if test "${enable_dependency_tracking+set}" = set; then : 3548 enableval=$enable_dependency_tracking; 3549fi 3550 3551if test "x$enable_dependency_tracking" != xno; then 3552 am_depcomp="$ac_aux_dir/depcomp" 3553 AMDEPBACKSLASH='\' 3554 am__nodep='_no' 3555fi 3556 if test "x$enable_dependency_tracking" != xno; then 3557 AMDEP_TRUE= 3558 AMDEP_FALSE='#' 3559else 3560 AMDEP_TRUE='#' 3561 AMDEP_FALSE= 3562fi 3563 3564 3565 3566depcc="$CXX" am_compiler_list= 3567 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3569$as_echo_n "checking dependency style of $depcc... " >&6; } 3570if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3574 # We make a subdir and do the tests there. Otherwise we can end up 3575 # making bogus files that we don't know about and never remove. For 3576 # instance it was reported that on HP-UX the gcc test will end up 3577 # making a dummy file named 'D' -- because '-MD' means "put the output 3578 # in D". 3579 rm -rf conftest.dir 3580 mkdir conftest.dir 3581 # Copy depcomp to subdir because otherwise we won't find it if we're 3582 # using a relative directory. 3583 cp "$am_depcomp" conftest.dir 3584 cd conftest.dir 3585 # We will build objects and dependencies in a subdirectory because 3586 # it helps to detect inapplicable dependency modes. For instance 3587 # both Tru64's cc and ICC support -MD to output dependencies as a 3588 # side effect of compilation, but ICC will put the dependencies in 3589 # the current directory while Tru64 will put them in the object 3590 # directory. 3591 mkdir sub 3592 3593 am_cv_CXX_dependencies_compiler_type=none 3594 if test "$am_compiler_list" = ""; then 3595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3596 fi 3597 am__universal=false 3598 case " $depcc " in #( 3599 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3600 esac 3601 3602 for depmode in $am_compiler_list; do 3603 # Setup a source with many dependencies, because some compilers 3604 # like to wrap large dependency lists on column 80 (with \), and 3605 # we should not choose a depcomp mode which is confused by this. 3606 # 3607 # We need to recreate these files for each test, as the compiler may 3608 # overwrite some of them when testing with obscure command lines. 3609 # This happens at least with the AIX C compiler. 3610 : > sub/conftest.c 3611 for i in 1 2 3 4 5 6; do 3612 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3613 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3614 # Solaris 10 /bin/sh. 3615 echo '/* dummy */' > sub/conftst$i.h 3616 done 3617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3618 3619 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3620 # mode. It turns out that the SunPro C++ compiler does not properly 3621 # handle '-M -o', and we need to detect this. Also, some Intel 3622 # versions had trouble with output in subdirs. 3623 am__obj=sub/conftest.${OBJEXT-o} 3624 am__minus_obj="-o $am__obj" 3625 case $depmode in 3626 gcc) 3627 # This depmode causes a compiler race in universal mode. 3628 test "$am__universal" = false || continue 3629 ;; 3630 nosideeffect) 3631 # After this tag, mechanisms are not by side-effect, so they'll 3632 # only be used when explicitly requested. 3633 if test "x$enable_dependency_tracking" = xyes; then 3634 continue 3635 else 3636 break 3637 fi 3638 ;; 3639 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3640 # This compiler won't grok '-c -o', but also, the minuso test has 3641 # not run yet. These depmodes are late enough in the game, and 3642 # so weak that their functioning should not be impacted. 3643 am__obj=conftest.${OBJEXT-o} 3644 am__minus_obj= 3645 ;; 3646 none) break ;; 3647 esac 3648 if depmode=$depmode \ 3649 source=sub/conftest.c object=$am__obj \ 3650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3652 >/dev/null 2>conftest.err && 3653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3657 # icc doesn't choke on unknown options, it will just issue warnings 3658 # or remarks (even with -Werror). So we grep stderr for any message 3659 # that says an option was ignored or not supported. 3660 # When given -MP, icc 7.0 and 7.1 complain thusly: 3661 # icc: Command line warning: ignoring option '-M'; no argument required 3662 # The diagnosis changed in icc 8.0: 3663 # icc: Command line remark: option '-MP' not supported 3664 if (grep 'ignoring option' conftest.err || 3665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3666 am_cv_CXX_dependencies_compiler_type=$depmode 3667 break 3668 fi 3669 fi 3670 done 3671 3672 cd .. 3673 rm -rf conftest.dir 3674else 3675 am_cv_CXX_dependencies_compiler_type=none 3676fi 3677 3678fi 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3680$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3681CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3682 3683 if 3684 test "x$enable_dependency_tracking" != xno \ 3685 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3686 am__fastdepCXX_TRUE= 3687 am__fastdepCXX_FALSE='#' 3688else 3689 am__fastdepCXX_TRUE='#' 3690 am__fastdepCXX_FALSE= 3691fi 3692 3693 3694case `pwd` in 3695 *\ * | *\ *) 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3697$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3698esac 3699 3700 3701 3702macro_version='2.4.6' 3703macro_revision='2.4.6' 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717ltmain=$ac_aux_dir/ltmain.sh 3718 3719# Make sure we can run config.sub. 3720$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3722 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3724$as_echo_n "checking build system type... " >&6; } 3725if ${ac_cv_build+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 ac_build_alias=$build_alias 3729test "x$ac_build_alias" = x && 3730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3731test "x$ac_build_alias" = x && 3732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3733ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3735 3736fi 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3738$as_echo "$ac_cv_build" >&6; } 3739case $ac_cv_build in 3740*-*-*) ;; 3741*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3742esac 3743build=$ac_cv_build 3744ac_save_IFS=$IFS; IFS='-' 3745set x $ac_cv_build 3746shift 3747build_cpu=$1 3748build_vendor=$2 3749shift; shift 3750# Remember, the first character of IFS is used to create $*, 3751# except with old shells: 3752build_os=$* 3753IFS=$ac_save_IFS 3754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3755 3756 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3758$as_echo_n "checking host system type... " >&6; } 3759if ${ac_cv_host+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761else 3762 if test "x$host_alias" = x; then 3763 ac_cv_host=$ac_cv_build 3764else 3765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3767fi 3768 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3771$as_echo "$ac_cv_host" >&6; } 3772case $ac_cv_host in 3773*-*-*) ;; 3774*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3775esac 3776host=$ac_cv_host 3777ac_save_IFS=$IFS; IFS='-' 3778set x $ac_cv_host 3779shift 3780host_cpu=$1 3781host_vendor=$2 3782shift; shift 3783# Remember, the first character of IFS is used to create $*, 3784# except with old shells: 3785host_os=$* 3786IFS=$ac_save_IFS 3787case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3788 3789 3790# Backslashify metacharacters that are still active within 3791# double-quoted strings. 3792sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3793 3794# Same as above, but do not quote variable references. 3795double_quote_subst='s/\(["`\\]\)/\\\1/g' 3796 3797# Sed substitution to delay expansion of an escaped shell variable in a 3798# double_quote_subst'ed string. 3799delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3800 3801# Sed substitution to delay expansion of an escaped single quote. 3802delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3803 3804# Sed substitution to avoid accidental globbing in evaled expressions 3805no_glob_subst='s/\*/\\\*/g' 3806 3807ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3808ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3810 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3812$as_echo_n "checking how to print strings... " >&6; } 3813# Test print first, because it will be a builtin if present. 3814if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3816 ECHO='print -r --' 3817elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3818 ECHO='printf %s\n' 3819else 3820 # Use this function as a fallback that always works. 3821 func_fallback_echo () 3822 { 3823 eval 'cat <<_LTECHO_EOF 3824$1 3825_LTECHO_EOF' 3826 } 3827 ECHO='func_fallback_echo' 3828fi 3829 3830# func_echo_all arg... 3831# Invoke $ECHO with all args, space-separated. 3832func_echo_all () 3833{ 3834 $ECHO "" 3835} 3836 3837case $ECHO in 3838 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3839$as_echo "printf" >&6; } ;; 3840 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3841$as_echo "print -r" >&6; } ;; 3842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3843$as_echo "cat" >&6; } ;; 3844esac 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859ac_ext=c 3860ac_cpp='$CPP $CPPFLAGS' 3861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3863ac_compiler_gnu=$ac_cv_c_compiler_gnu 3864if test -n "$ac_tool_prefix"; then 3865 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3866set dummy ${ac_tool_prefix}gcc; ac_word=$2 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868$as_echo_n "checking for $ac_word... " >&6; } 3869if ${ac_cv_prog_CC+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 if test -n "$CC"; then 3873 ac_cv_prog_CC="$CC" # Let the user override the test. 3874else 3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3876for as_dir in $PATH 3877do 3878 IFS=$as_save_IFS 3879 test -z "$as_dir" && as_dir=. 3880 for ac_exec_ext in '' $ac_executable_extensions; do 3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3882 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3884 break 2 3885 fi 3886done 3887 done 3888IFS=$as_save_IFS 3889 3890fi 3891fi 3892CC=$ac_cv_prog_CC 3893if test -n "$CC"; then 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3895$as_echo "$CC" >&6; } 3896else 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3898$as_echo "no" >&6; } 3899fi 3900 3901 3902fi 3903if test -z "$ac_cv_prog_CC"; then 3904 ac_ct_CC=$CC 3905 # Extract the first word of "gcc", so it can be a program name with args. 3906set dummy gcc; ac_word=$2 3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3908$as_echo_n "checking for $ac_word... " >&6; } 3909if ${ac_cv_prog_ac_ct_CC+:} false; then : 3910 $as_echo_n "(cached) " >&6 3911else 3912 if test -n "$ac_ct_CC"; then 3913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3914else 3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916for as_dir in $PATH 3917do 3918 IFS=$as_save_IFS 3919 test -z "$as_dir" && as_dir=. 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3922 ac_cv_prog_ac_ct_CC="gcc" 3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3924 break 2 3925 fi 3926done 3927 done 3928IFS=$as_save_IFS 3929 3930fi 3931fi 3932ac_ct_CC=$ac_cv_prog_ac_ct_CC 3933if test -n "$ac_ct_CC"; then 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3935$as_echo "$ac_ct_CC" >&6; } 3936else 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3938$as_echo "no" >&6; } 3939fi 3940 3941 if test "x$ac_ct_CC" = x; then 3942 CC="" 3943 else 3944 case $cross_compiling:$ac_tool_warned in 3945yes:) 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3948ac_tool_warned=yes ;; 3949esac 3950 CC=$ac_ct_CC 3951 fi 3952else 3953 CC="$ac_cv_prog_CC" 3954fi 3955 3956if test -z "$CC"; then 3957 if test -n "$ac_tool_prefix"; then 3958 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3959set dummy ${ac_tool_prefix}cc; ac_word=$2 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961$as_echo_n "checking for $ac_word... " >&6; } 3962if ${ac_cv_prog_CC+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -n "$CC"; then 3966 ac_cv_prog_CC="$CC" # Let the user override the test. 3967else 3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969for as_dir in $PATH 3970do 3971 IFS=$as_save_IFS 3972 test -z "$as_dir" && as_dir=. 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3975 ac_cv_prog_CC="${ac_tool_prefix}cc" 3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3977 break 2 3978 fi 3979done 3980 done 3981IFS=$as_save_IFS 3982 3983fi 3984fi 3985CC=$ac_cv_prog_CC 3986if test -n "$CC"; then 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3988$as_echo "$CC" >&6; } 3989else 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3991$as_echo "no" >&6; } 3992fi 3993 3994 3995 fi 3996fi 3997if test -z "$CC"; then 3998 # Extract the first word of "cc", so it can be a program name with args. 3999set dummy cc; ac_word=$2 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4001$as_echo_n "checking for $ac_word... " >&6; } 4002if ${ac_cv_prog_CC+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 if test -n "$CC"; then 4006 ac_cv_prog_CC="$CC" # Let the user override the test. 4007else 4008 ac_prog_rejected=no 4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4010for as_dir in $PATH 4011do 4012 IFS=$as_save_IFS 4013 test -z "$as_dir" && as_dir=. 4014 for ac_exec_ext in '' $ac_executable_extensions; do 4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4016 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4017 ac_prog_rejected=yes 4018 continue 4019 fi 4020 ac_cv_prog_CC="cc" 4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4022 break 2 4023 fi 4024done 4025 done 4026IFS=$as_save_IFS 4027 4028if test $ac_prog_rejected = yes; then 4029 # We found a bogon in the path, so make sure we never use it. 4030 set dummy $ac_cv_prog_CC 4031 shift 4032 if test $# != 0; then 4033 # We chose a different compiler from the bogus one. 4034 # However, it has the same basename, so the bogon will be chosen 4035 # first if we set CC to just the basename; use the full file name. 4036 shift 4037 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4038 fi 4039fi 4040fi 4041fi 4042CC=$ac_cv_prog_CC 4043if test -n "$CC"; then 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4045$as_echo "$CC" >&6; } 4046else 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4048$as_echo "no" >&6; } 4049fi 4050 4051 4052fi 4053if test -z "$CC"; then 4054 if test -n "$ac_tool_prefix"; then 4055 for ac_prog in cl.exe 4056 do 4057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4058set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4060$as_echo_n "checking for $ac_word... " >&6; } 4061if ${ac_cv_prog_CC+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 if test -n "$CC"; then 4065 ac_cv_prog_CC="$CC" # Let the user override the test. 4066else 4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4068for as_dir in $PATH 4069do 4070 IFS=$as_save_IFS 4071 test -z "$as_dir" && as_dir=. 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4074 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4076 break 2 4077 fi 4078done 4079 done 4080IFS=$as_save_IFS 4081 4082fi 4083fi 4084CC=$ac_cv_prog_CC 4085if test -n "$CC"; then 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4087$as_echo "$CC" >&6; } 4088else 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4090$as_echo "no" >&6; } 4091fi 4092 4093 4094 test -n "$CC" && break 4095 done 4096fi 4097if test -z "$CC"; then 4098 ac_ct_CC=$CC 4099 for ac_prog in cl.exe 4100do 4101 # Extract the first word of "$ac_prog", so it can be a program name with args. 4102set dummy $ac_prog; ac_word=$2 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4104$as_echo_n "checking for $ac_word... " >&6; } 4105if ${ac_cv_prog_ac_ct_CC+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 if test -n "$ac_ct_CC"; then 4109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4110else 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4118 ac_cv_prog_ac_ct_CC="$ac_prog" 4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4120 break 2 4121 fi 4122done 4123 done 4124IFS=$as_save_IFS 4125 4126fi 4127fi 4128ac_ct_CC=$ac_cv_prog_ac_ct_CC 4129if test -n "$ac_ct_CC"; then 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4131$as_echo "$ac_ct_CC" >&6; } 4132else 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4134$as_echo "no" >&6; } 4135fi 4136 4137 4138 test -n "$ac_ct_CC" && break 4139done 4140 4141 if test "x$ac_ct_CC" = x; then 4142 CC="" 4143 else 4144 case $cross_compiling:$ac_tool_warned in 4145yes:) 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4148ac_tool_warned=yes ;; 4149esac 4150 CC=$ac_ct_CC 4151 fi 4152fi 4153 4154fi 4155 4156 4157test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4159as_fn_error $? "no acceptable C compiler found in \$PATH 4160See \`config.log' for more details" "$LINENO" 5; } 4161 4162# Provide some information about the compiler. 4163$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4164set X $ac_compile 4165ac_compiler=$2 4166for ac_option in --version -v -V -qversion; do 4167 { { ac_try="$ac_compiler $ac_option >&5" 4168case "(($ac_try" in 4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4170 *) ac_try_echo=$ac_try;; 4171esac 4172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4173$as_echo "$ac_try_echo"; } >&5 4174 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4175 ac_status=$? 4176 if test -s conftest.err; then 4177 sed '10a\ 4178... rest of stderr output deleted ... 4179 10q' conftest.err >conftest.er1 4180 cat conftest.er1 >&5 4181 fi 4182 rm -f conftest.er1 conftest.err 4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; } 4185done 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4188$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4189if ${ac_cv_c_compiler_gnu+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194 4195int 4196main () 4197{ 4198#ifndef __GNUC__ 4199 choke me 4200#endif 4201 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206if ac_fn_c_try_compile "$LINENO"; then : 4207 ac_compiler_gnu=yes 4208else 4209 ac_compiler_gnu=no 4210fi 4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4212ac_cv_c_compiler_gnu=$ac_compiler_gnu 4213 4214fi 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4216$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4217if test $ac_compiler_gnu = yes; then 4218 GCC=yes 4219else 4220 GCC= 4221fi 4222ac_test_CFLAGS=${CFLAGS+set} 4223ac_save_CFLAGS=$CFLAGS 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4225$as_echo_n "checking whether $CC accepts -g... " >&6; } 4226if ${ac_cv_prog_cc_g+:} false; then : 4227 $as_echo_n "(cached) " >&6 4228else 4229 ac_save_c_werror_flag=$ac_c_werror_flag 4230 ac_c_werror_flag=yes 4231 ac_cv_prog_cc_g=no 4232 CFLAGS="-g" 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234/* end confdefs.h. */ 4235 4236int 4237main () 4238{ 4239 4240 ; 4241 return 0; 4242} 4243_ACEOF 4244if ac_fn_c_try_compile "$LINENO"; then : 4245 ac_cv_prog_cc_g=yes 4246else 4247 CFLAGS="" 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250 4251int 4252main () 4253{ 4254 4255 ; 4256 return 0; 4257} 4258_ACEOF 4259if ac_fn_c_try_compile "$LINENO"; then : 4260 4261else 4262 ac_c_werror_flag=$ac_save_c_werror_flag 4263 CFLAGS="-g" 4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4265/* end confdefs.h. */ 4266 4267int 4268main () 4269{ 4270 4271 ; 4272 return 0; 4273} 4274_ACEOF 4275if ac_fn_c_try_compile "$LINENO"; then : 4276 ac_cv_prog_cc_g=yes 4277fi 4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4279fi 4280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4281fi 4282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4283 ac_c_werror_flag=$ac_save_c_werror_flag 4284fi 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4286$as_echo "$ac_cv_prog_cc_g" >&6; } 4287if test "$ac_test_CFLAGS" = set; then 4288 CFLAGS=$ac_save_CFLAGS 4289elif test $ac_cv_prog_cc_g = yes; then 4290 if test "$GCC" = yes; then 4291 CFLAGS="-g -O2" 4292 else 4293 CFLAGS="-g" 4294 fi 4295else 4296 if test "$GCC" = yes; then 4297 CFLAGS="-O2" 4298 else 4299 CFLAGS= 4300 fi 4301fi 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4303$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4304if ${ac_cv_prog_cc_c89+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 ac_cv_prog_cc_c89=no 4308ac_save_CC=$CC 4309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311#include <stdarg.h> 4312#include <stdio.h> 4313struct stat; 4314/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4315struct buf { int x; }; 4316FILE * (*rcsopen) (struct buf *, struct stat *, int); 4317static char *e (p, i) 4318 char **p; 4319 int i; 4320{ 4321 return p[i]; 4322} 4323static char *f (char * (*g) (char **, int), char **p, ...) 4324{ 4325 char *s; 4326 va_list v; 4327 va_start (v,p); 4328 s = g (p, va_arg (v,int)); 4329 va_end (v); 4330 return s; 4331} 4332 4333/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4334 function prototypes and stuff, but not '\xHH' hex character constants. 4335 These don't provoke an error unfortunately, instead are silently treated 4336 as 'x'. The following induces an error, until -std is added to get 4337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4338 array size at least. It's necessary to write '\x00'==0 to get something 4339 that's true only with -std. */ 4340int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4341 4342/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4343 inside strings and character constants. */ 4344#define FOO(x) 'x' 4345int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4346 4347int test (int i, double x); 4348struct s1 {int (*f) (int a);}; 4349struct s2 {int (*f) (double a);}; 4350int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4351int argc; 4352char **argv; 4353int 4354main () 4355{ 4356return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4357 ; 4358 return 0; 4359} 4360_ACEOF 4361for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4362 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4363do 4364 CC="$ac_save_CC $ac_arg" 4365 if ac_fn_c_try_compile "$LINENO"; then : 4366 ac_cv_prog_cc_c89=$ac_arg 4367fi 4368rm -f core conftest.err conftest.$ac_objext 4369 test "x$ac_cv_prog_cc_c89" != "xno" && break 4370done 4371rm -f conftest.$ac_ext 4372CC=$ac_save_CC 4373 4374fi 4375# AC_CACHE_VAL 4376case "x$ac_cv_prog_cc_c89" in 4377 x) 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4379$as_echo "none needed" >&6; } ;; 4380 xno) 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4382$as_echo "unsupported" >&6; } ;; 4383 *) 4384 CC="$CC $ac_cv_prog_cc_c89" 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4386$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4387esac 4388if test "x$ac_cv_prog_cc_c89" != xno; then : 4389 4390fi 4391 4392ac_ext=c 4393ac_cpp='$CPP $CPPFLAGS' 4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397 4398ac_ext=c 4399ac_cpp='$CPP $CPPFLAGS' 4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4402ac_compiler_gnu=$ac_cv_c_compiler_gnu 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4404$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4405if ${am_cv_prog_cc_c_o+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409/* end confdefs.h. */ 4410 4411int 4412main () 4413{ 4414 4415 ; 4416 return 0; 4417} 4418_ACEOF 4419 # Make sure it works both with $CC and with simple cc. 4420 # Following AC_PROG_CC_C_O, we do the test twice because some 4421 # compilers refuse to overwrite an existing .o file with -o, 4422 # though they will create one. 4423 am_cv_prog_cc_c_o=yes 4424 for am_i in 1 2; do 4425 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4426 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4427 ac_status=$? 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); } \ 4430 && test -f conftest2.$ac_objext; then 4431 : OK 4432 else 4433 am_cv_prog_cc_c_o=no 4434 break 4435 fi 4436 done 4437 rm -f core conftest* 4438 unset am_i 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4441$as_echo "$am_cv_prog_cc_c_o" >&6; } 4442if test "$am_cv_prog_cc_c_o" != yes; then 4443 # Losing compiler, so override with the script. 4444 # FIXME: It is wrong to rewrite CC. 4445 # But if we don't then we get into trouble of one sort or another. 4446 # A longer-term fix would be to have automake use am__CC in this case, 4447 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4448 CC="$am_aux_dir/compile $CC" 4449fi 4450ac_ext=c 4451ac_cpp='$CPP $CPPFLAGS' 4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4454ac_compiler_gnu=$ac_cv_c_compiler_gnu 4455 4456 4457depcc="$CC" am_compiler_list= 4458 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4460$as_echo_n "checking dependency style of $depcc... " >&6; } 4461if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4465 # We make a subdir and do the tests there. Otherwise we can end up 4466 # making bogus files that we don't know about and never remove. For 4467 # instance it was reported that on HP-UX the gcc test will end up 4468 # making a dummy file named 'D' -- because '-MD' means "put the output 4469 # in D". 4470 rm -rf conftest.dir 4471 mkdir conftest.dir 4472 # Copy depcomp to subdir because otherwise we won't find it if we're 4473 # using a relative directory. 4474 cp "$am_depcomp" conftest.dir 4475 cd conftest.dir 4476 # We will build objects and dependencies in a subdirectory because 4477 # it helps to detect inapplicable dependency modes. For instance 4478 # both Tru64's cc and ICC support -MD to output dependencies as a 4479 # side effect of compilation, but ICC will put the dependencies in 4480 # the current directory while Tru64 will put them in the object 4481 # directory. 4482 mkdir sub 4483 4484 am_cv_CC_dependencies_compiler_type=none 4485 if test "$am_compiler_list" = ""; then 4486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4487 fi 4488 am__universal=false 4489 case " $depcc " in #( 4490 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4491 esac 4492 4493 for depmode in $am_compiler_list; do 4494 # Setup a source with many dependencies, because some compilers 4495 # like to wrap large dependency lists on column 80 (with \), and 4496 # we should not choose a depcomp mode which is confused by this. 4497 # 4498 # We need to recreate these files for each test, as the compiler may 4499 # overwrite some of them when testing with obscure command lines. 4500 # This happens at least with the AIX C compiler. 4501 : > sub/conftest.c 4502 for i in 1 2 3 4 5 6; do 4503 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4504 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4505 # Solaris 10 /bin/sh. 4506 echo '/* dummy */' > sub/conftst$i.h 4507 done 4508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4509 4510 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4511 # mode. It turns out that the SunPro C++ compiler does not properly 4512 # handle '-M -o', and we need to detect this. Also, some Intel 4513 # versions had trouble with output in subdirs. 4514 am__obj=sub/conftest.${OBJEXT-o} 4515 am__minus_obj="-o $am__obj" 4516 case $depmode in 4517 gcc) 4518 # This depmode causes a compiler race in universal mode. 4519 test "$am__universal" = false || continue 4520 ;; 4521 nosideeffect) 4522 # After this tag, mechanisms are not by side-effect, so they'll 4523 # only be used when explicitly requested. 4524 if test "x$enable_dependency_tracking" = xyes; then 4525 continue 4526 else 4527 break 4528 fi 4529 ;; 4530 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4531 # This compiler won't grok '-c -o', but also, the minuso test has 4532 # not run yet. These depmodes are late enough in the game, and 4533 # so weak that their functioning should not be impacted. 4534 am__obj=conftest.${OBJEXT-o} 4535 am__minus_obj= 4536 ;; 4537 none) break ;; 4538 esac 4539 if depmode=$depmode \ 4540 source=sub/conftest.c object=$am__obj \ 4541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4543 >/dev/null 2>conftest.err && 4544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4548 # icc doesn't choke on unknown options, it will just issue warnings 4549 # or remarks (even with -Werror). So we grep stderr for any message 4550 # that says an option was ignored or not supported. 4551 # When given -MP, icc 7.0 and 7.1 complain thusly: 4552 # icc: Command line warning: ignoring option '-M'; no argument required 4553 # The diagnosis changed in icc 8.0: 4554 # icc: Command line remark: option '-MP' not supported 4555 if (grep 'ignoring option' conftest.err || 4556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4557 am_cv_CC_dependencies_compiler_type=$depmode 4558 break 4559 fi 4560 fi 4561 done 4562 4563 cd .. 4564 rm -rf conftest.dir 4565else 4566 am_cv_CC_dependencies_compiler_type=none 4567fi 4568 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4571$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4572CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4573 4574 if 4575 test "x$enable_dependency_tracking" != xno \ 4576 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4577 am__fastdepCC_TRUE= 4578 am__fastdepCC_FALSE='#' 4579else 4580 am__fastdepCC_TRUE='#' 4581 am__fastdepCC_FALSE= 4582fi 4583 4584 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4586$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4587if ${ac_cv_path_SED+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4591 for ac_i in 1 2 3 4 5 6 7; do 4592 ac_script="$ac_script$as_nl$ac_script" 4593 done 4594 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4595 { ac_script=; unset ac_script;} 4596 if test -z "$SED"; then 4597 ac_path_SED_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in sed gsed; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4607 as_fn_executable_p "$ac_path_SED" || continue 4608# Check for GNU ac_path_SED and select it if it is found. 4609 # Check for GNU $ac_path_SED 4610case `"$ac_path_SED" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo '' >> "conftest.nl" 4622 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 as_fn_arith $ac_count + 1 && ac_count=$as_val 4625 if test $ac_count -gt ${ac_path_SED_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_SED="$ac_path_SED" 4628 ac_path_SED_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_SED_found && break 3 4637 done 4638 done 4639 done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_SED"; then 4642 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4643 fi 4644else 4645 ac_cv_path_SED=$SED 4646fi 4647 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4650$as_echo "$ac_cv_path_SED" >&6; } 4651 SED="$ac_cv_path_SED" 4652 rm -f conftest.sed 4653 4654test -z "$SED" && SED=sed 4655Xsed="$SED -e 1s/^X//" 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4668$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4669if ${ac_cv_path_GREP+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 if test -z "$GREP"; then 4673 ac_path_GREP_found=false 4674 # Loop through the user's path and test for each of PROGNAME-LIST 4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4676for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4677do 4678 IFS=$as_save_IFS 4679 test -z "$as_dir" && as_dir=. 4680 for ac_prog in grep ggrep; do 4681 for ac_exec_ext in '' $ac_executable_extensions; do 4682 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4683 as_fn_executable_p "$ac_path_GREP" || continue 4684# Check for GNU ac_path_GREP and select it if it is found. 4685 # Check for GNU $ac_path_GREP 4686case `"$ac_path_GREP" --version 2>&1` in 4687*GNU*) 4688 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4689*) 4690 ac_count=0 4691 $as_echo_n 0123456789 >"conftest.in" 4692 while : 4693 do 4694 cat "conftest.in" "conftest.in" >"conftest.tmp" 4695 mv "conftest.tmp" "conftest.in" 4696 cp "conftest.in" "conftest.nl" 4697 $as_echo 'GREP' >> "conftest.nl" 4698 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4700 as_fn_arith $ac_count + 1 && ac_count=$as_val 4701 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4702 # Best one so far, save it but keep looking for a better one 4703 ac_cv_path_GREP="$ac_path_GREP" 4704 ac_path_GREP_max=$ac_count 4705 fi 4706 # 10*(2^10) chars as input seems more than enough 4707 test $ac_count -gt 10 && break 4708 done 4709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4710esac 4711 4712 $ac_path_GREP_found && break 3 4713 done 4714 done 4715 done 4716IFS=$as_save_IFS 4717 if test -z "$ac_cv_path_GREP"; then 4718 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4719 fi 4720else 4721 ac_cv_path_GREP=$GREP 4722fi 4723 4724fi 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4726$as_echo "$ac_cv_path_GREP" >&6; } 4727 GREP="$ac_cv_path_GREP" 4728 4729 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4731$as_echo_n "checking for egrep... " >&6; } 4732if ${ac_cv_path_EGREP+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4736 then ac_cv_path_EGREP="$GREP -E" 4737 else 4738 if test -z "$EGREP"; then 4739 ac_path_EGREP_found=false 4740 # Loop through the user's path and test for each of PROGNAME-LIST 4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4743do 4744 IFS=$as_save_IFS 4745 test -z "$as_dir" && as_dir=. 4746 for ac_prog in egrep; do 4747 for ac_exec_ext in '' $ac_executable_extensions; do 4748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4749 as_fn_executable_p "$ac_path_EGREP" || continue 4750# Check for GNU ac_path_EGREP and select it if it is found. 4751 # Check for GNU $ac_path_EGREP 4752case `"$ac_path_EGREP" --version 2>&1` in 4753*GNU*) 4754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4755*) 4756 ac_count=0 4757 $as_echo_n 0123456789 >"conftest.in" 4758 while : 4759 do 4760 cat "conftest.in" "conftest.in" >"conftest.tmp" 4761 mv "conftest.tmp" "conftest.in" 4762 cp "conftest.in" "conftest.nl" 4763 $as_echo 'EGREP' >> "conftest.nl" 4764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4766 as_fn_arith $ac_count + 1 && ac_count=$as_val 4767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4768 # Best one so far, save it but keep looking for a better one 4769 ac_cv_path_EGREP="$ac_path_EGREP" 4770 ac_path_EGREP_max=$ac_count 4771 fi 4772 # 10*(2^10) chars as input seems more than enough 4773 test $ac_count -gt 10 && break 4774 done 4775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4776esac 4777 4778 $ac_path_EGREP_found && break 3 4779 done 4780 done 4781 done 4782IFS=$as_save_IFS 4783 if test -z "$ac_cv_path_EGREP"; then 4784 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4785 fi 4786else 4787 ac_cv_path_EGREP=$EGREP 4788fi 4789 4790 fi 4791fi 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4793$as_echo "$ac_cv_path_EGREP" >&6; } 4794 EGREP="$ac_cv_path_EGREP" 4795 4796 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4798$as_echo_n "checking for fgrep... " >&6; } 4799if ${ac_cv_path_FGREP+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4803 then ac_cv_path_FGREP="$GREP -F" 4804 else 4805 if test -z "$FGREP"; then 4806 ac_path_FGREP_found=false 4807 # Loop through the user's path and test for each of PROGNAME-LIST 4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4810do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_prog in fgrep; do 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4816 as_fn_executable_p "$ac_path_FGREP" || continue 4817# Check for GNU ac_path_FGREP and select it if it is found. 4818 # Check for GNU $ac_path_FGREP 4819case `"$ac_path_FGREP" --version 2>&1` in 4820*GNU*) 4821 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4822*) 4823 ac_count=0 4824 $as_echo_n 0123456789 >"conftest.in" 4825 while : 4826 do 4827 cat "conftest.in" "conftest.in" >"conftest.tmp" 4828 mv "conftest.tmp" "conftest.in" 4829 cp "conftest.in" "conftest.nl" 4830 $as_echo 'FGREP' >> "conftest.nl" 4831 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4833 as_fn_arith $ac_count + 1 && ac_count=$as_val 4834 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4835 # Best one so far, save it but keep looking for a better one 4836 ac_cv_path_FGREP="$ac_path_FGREP" 4837 ac_path_FGREP_max=$ac_count 4838 fi 4839 # 10*(2^10) chars as input seems more than enough 4840 test $ac_count -gt 10 && break 4841 done 4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4843esac 4844 4845 $ac_path_FGREP_found && break 3 4846 done 4847 done 4848 done 4849IFS=$as_save_IFS 4850 if test -z "$ac_cv_path_FGREP"; then 4851 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4852 fi 4853else 4854 ac_cv_path_FGREP=$FGREP 4855fi 4856 4857 fi 4858fi 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4860$as_echo "$ac_cv_path_FGREP" >&6; } 4861 FGREP="$ac_cv_path_FGREP" 4862 4863 4864test -z "$GREP" && GREP=grep 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884# Check whether --with-gnu-ld was given. 4885if test "${with_gnu_ld+set}" = set; then : 4886 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4887else 4888 with_gnu_ld=no 4889fi 4890 4891ac_prog=ld 4892if test yes = "$GCC"; then 4893 # Check if gcc -print-prog-name=ld gives a path. 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4895$as_echo_n "checking for ld used by $CC... " >&6; } 4896 case $host in 4897 *-*-mingw*) 4898 # gcc leaves a trailing carriage return, which upsets mingw 4899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4900 *) 4901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4902 esac 4903 case $ac_prog in 4904 # Accept absolute paths. 4905 [\\/]* | ?:[\\/]*) 4906 re_direlt='/[^/][^/]*/\.\./' 4907 # Canonicalize the pathname of ld 4908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4911 done 4912 test -z "$LD" && LD=$ac_prog 4913 ;; 4914 "") 4915 # If it fails, then pretend we aren't using GCC. 4916 ac_prog=ld 4917 ;; 4918 *) 4919 # If it is relative, then search for the first ld in PATH. 4920 with_gnu_ld=unknown 4921 ;; 4922 esac 4923elif test yes = "$with_gnu_ld"; then 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4925$as_echo_n "checking for GNU ld... " >&6; } 4926else 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4928$as_echo_n "checking for non-GNU ld... " >&6; } 4929fi 4930if ${lt_cv_path_LD+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 if test -z "$LD"; then 4934 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4935 for ac_dir in $PATH; do 4936 IFS=$lt_save_ifs 4937 test -z "$ac_dir" && ac_dir=. 4938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4939 lt_cv_path_LD=$ac_dir/$ac_prog 4940 # Check to see if the program is GNU ld. I'd rather use --version, 4941 # but apparently some variants of GNU ld only accept -v. 4942 # Break only if it was the GNU/non-GNU ld that we prefer. 4943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4944 *GNU* | *'with BFD'*) 4945 test no != "$with_gnu_ld" && break 4946 ;; 4947 *) 4948 test yes != "$with_gnu_ld" && break 4949 ;; 4950 esac 4951 fi 4952 done 4953 IFS=$lt_save_ifs 4954else 4955 lt_cv_path_LD=$LD # Let the user override the test with a path. 4956fi 4957fi 4958 4959LD=$lt_cv_path_LD 4960if test -n "$LD"; then 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4962$as_echo "$LD" >&6; } 4963else 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965$as_echo "no" >&6; } 4966fi 4967test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4970if ${lt_cv_prog_gnu_ld+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4974case `$LD -v 2>&1 </dev/null` in 4975*GNU* | *'with BFD'*) 4976 lt_cv_prog_gnu_ld=yes 4977 ;; 4978*) 4979 lt_cv_prog_gnu_ld=no 4980 ;; 4981esac 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4984$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4985with_gnu_ld=$lt_cv_prog_gnu_ld 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4997if ${lt_cv_path_NM+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 if test -n "$NM"; then 5001 # Let the user override the test. 5002 lt_cv_path_NM=$NM 5003else 5004 lt_nm_to_check=${ac_tool_prefix}nm 5005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5006 lt_nm_to_check="$lt_nm_to_check nm" 5007 fi 5008 for lt_tmp_nm in $lt_nm_to_check; do 5009 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5010 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5011 IFS=$lt_save_ifs 5012 test -z "$ac_dir" && ac_dir=. 5013 tmp_nm=$ac_dir/$lt_tmp_nm 5014 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5015 # Check to see if the nm accepts a BSD-compat flag. 5016 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5017 # nm: unknown option "B" ignored 5018 # Tru64's nm complains that /dev/null is an invalid object file 5019 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5020 case $build_os in 5021 mingw*) lt_bad_file=conftest.nm/nofile ;; 5022 *) lt_bad_file=/dev/null ;; 5023 esac 5024 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5025 *$lt_bad_file* | *'Invalid file or object type'*) 5026 lt_cv_path_NM="$tmp_nm -B" 5027 break 2 5028 ;; 5029 *) 5030 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5031 */dev/null*) 5032 lt_cv_path_NM="$tmp_nm -p" 5033 break 2 5034 ;; 5035 *) 5036 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5037 continue # so that we can try to find one that supports BSD flags 5038 ;; 5039 esac 5040 ;; 5041 esac 5042 fi 5043 done 5044 IFS=$lt_save_ifs 5045 done 5046 : ${lt_cv_path_NM=no} 5047fi 5048fi 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5050$as_echo "$lt_cv_path_NM" >&6; } 5051if test no != "$lt_cv_path_NM"; then 5052 NM=$lt_cv_path_NM 5053else 5054 # Didn't find any BSD compatible name lister, look for dumpbin. 5055 if test -n "$DUMPBIN"; then : 5056 # Let the user override the test. 5057 else 5058 if test -n "$ac_tool_prefix"; then 5059 for ac_prog in dumpbin "link -dump" 5060 do 5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5062set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5064$as_echo_n "checking for $ac_word... " >&6; } 5065if ${ac_cv_prog_DUMPBIN+:} false; then : 5066 $as_echo_n "(cached) " >&6 5067else 5068 if test -n "$DUMPBIN"; then 5069 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5070else 5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5072for as_dir in $PATH 5073do 5074 IFS=$as_save_IFS 5075 test -z "$as_dir" && as_dir=. 5076 for ac_exec_ext in '' $ac_executable_extensions; do 5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5078 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5080 break 2 5081 fi 5082done 5083 done 5084IFS=$as_save_IFS 5085 5086fi 5087fi 5088DUMPBIN=$ac_cv_prog_DUMPBIN 5089if test -n "$DUMPBIN"; then 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5091$as_echo "$DUMPBIN" >&6; } 5092else 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5094$as_echo "no" >&6; } 5095fi 5096 5097 5098 test -n "$DUMPBIN" && break 5099 done 5100fi 5101if test -z "$DUMPBIN"; then 5102 ac_ct_DUMPBIN=$DUMPBIN 5103 for ac_prog in dumpbin "link -dump" 5104do 5105 # Extract the first word of "$ac_prog", so it can be a program name with args. 5106set dummy $ac_prog; ac_word=$2 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5108$as_echo_n "checking for $ac_word... " >&6; } 5109if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 if test -n "$ac_ct_DUMPBIN"; then 5113 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5114else 5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_exec_ext in '' $ac_executable_extensions; do 5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5122 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5124 break 2 5125 fi 5126done 5127 done 5128IFS=$as_save_IFS 5129 5130fi 5131fi 5132ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5133if test -n "$ac_ct_DUMPBIN"; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5135$as_echo "$ac_ct_DUMPBIN" >&6; } 5136else 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5138$as_echo "no" >&6; } 5139fi 5140 5141 5142 test -n "$ac_ct_DUMPBIN" && break 5143done 5144 5145 if test "x$ac_ct_DUMPBIN" = x; then 5146 DUMPBIN=":" 5147 else 5148 case $cross_compiling:$ac_tool_warned in 5149yes:) 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5152ac_tool_warned=yes ;; 5153esac 5154 DUMPBIN=$ac_ct_DUMPBIN 5155 fi 5156fi 5157 5158 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5159 *COFF*) 5160 DUMPBIN="$DUMPBIN -symbols -headers" 5161 ;; 5162 *) 5163 DUMPBIN=: 5164 ;; 5165 esac 5166 fi 5167 5168 if test : != "$DUMPBIN"; then 5169 NM=$DUMPBIN 5170 fi 5171fi 5172test -z "$NM" && NM=nm 5173 5174 5175 5176 5177 5178 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5180$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5181if ${lt_cv_nm_interface+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 lt_cv_nm_interface="BSD nm" 5185 echo "int some_variable = 0;" > conftest.$ac_ext 5186 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5187 (eval "$ac_compile" 2>conftest.err) 5188 cat conftest.err >&5 5189 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5191 cat conftest.err >&5 5192 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5193 cat conftest.out >&5 5194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5195 lt_cv_nm_interface="MS dumpbin" 5196 fi 5197 rm -f conftest* 5198fi 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5200$as_echo "$lt_cv_nm_interface" >&6; } 5201 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5203$as_echo_n "checking whether ln -s works... " >&6; } 5204LN_S=$as_ln_s 5205if test "$LN_S" = "ln -s"; then 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5207$as_echo "yes" >&6; } 5208else 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5210$as_echo "no, using $LN_S" >&6; } 5211fi 5212 5213# find the maximum length of command line arguments 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5215$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5216if ${lt_cv_sys_max_cmd_len+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 i=0 5220 teststring=ABCD 5221 5222 case $build_os in 5223 msdosdjgpp*) 5224 # On DJGPP, this test can blow up pretty badly due to problems in libc 5225 # (any single argument exceeding 2000 bytes causes a buffer overrun 5226 # during glob expansion). Even if it were fixed, the result of this 5227 # check would be larger than it should be. 5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5229 ;; 5230 5231 gnu*) 5232 # Under GNU Hurd, this test is not required because there is 5233 # no limit to the length of command line arguments. 5234 # Libtool will interpret -1 as no limit whatsoever 5235 lt_cv_sys_max_cmd_len=-1; 5236 ;; 5237 5238 cygwin* | mingw* | cegcc*) 5239 # On Win9x/ME, this test blows up -- it succeeds, but takes 5240 # about 5 minutes as the teststring grows exponentially. 5241 # Worse, since 9x/ME are not pre-emptively multitasking, 5242 # you end up with a "frozen" computer, even though with patience 5243 # the test eventually succeeds (with a max line length of 256k). 5244 # Instead, let's just punt: use the minimum linelength reported by 5245 # all of the supported platforms: 8192 (on NT/2K/XP). 5246 lt_cv_sys_max_cmd_len=8192; 5247 ;; 5248 5249 mint*) 5250 # On MiNT this can take a long time and run out of memory. 5251 lt_cv_sys_max_cmd_len=8192; 5252 ;; 5253 5254 amigaos*) 5255 # On AmigaOS with pdksh, this test takes hours, literally. 5256 # So we just punt and use a minimum line length of 8192. 5257 lt_cv_sys_max_cmd_len=8192; 5258 ;; 5259 5260 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5261 # This has been around since 386BSD, at least. Likely further. 5262 if test -x /sbin/sysctl; then 5263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5264 elif test -x /usr/sbin/sysctl; then 5265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5266 else 5267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5268 fi 5269 # And add a safety zone 5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5272 ;; 5273 5274 interix*) 5275 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5276 lt_cv_sys_max_cmd_len=196608 5277 ;; 5278 5279 os2*) 5280 # The test takes a long time on OS/2. 5281 lt_cv_sys_max_cmd_len=8192 5282 ;; 5283 5284 osf*) 5285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5287 # nice to cause kernel panics so lets avoid the loop below. 5288 # First set a reasonable default. 5289 lt_cv_sys_max_cmd_len=16384 5290 # 5291 if test -x /sbin/sysconfig; then 5292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5293 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5294 esac 5295 fi 5296 ;; 5297 sco3.2v5*) 5298 lt_cv_sys_max_cmd_len=102400 5299 ;; 5300 sysv5* | sco5v6* | sysv4.2uw2*) 5301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5302 if test -n "$kargmax"; then 5303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5304 else 5305 lt_cv_sys_max_cmd_len=32768 5306 fi 5307 ;; 5308 *) 5309 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5310 if test -n "$lt_cv_sys_max_cmd_len" && \ 5311 test undefined != "$lt_cv_sys_max_cmd_len"; then 5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5314 else 5315 # Make teststring a little bigger before we do anything with it. 5316 # a 1K string should be a reasonable start. 5317 for i in 1 2 3 4 5 6 7 8; do 5318 teststring=$teststring$teststring 5319 done 5320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5321 # If test is not a shell built-in, we'll probably end up computing a 5322 # maximum length that is only half of the actual maximum length, but 5323 # we can't tell. 5324 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5325 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5326 test 17 != "$i" # 1/2 MB should be enough 5327 do 5328 i=`expr $i + 1` 5329 teststring=$teststring$teststring 5330 done 5331 # Only check the string length outside the loop. 5332 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5333 teststring= 5334 # Add a significant safety factor because C++ compilers can tack on 5335 # massive amounts of additional arguments before passing them to the 5336 # linker. It appears as though 1/2 is a usable value. 5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5338 fi 5339 ;; 5340 esac 5341 5342fi 5343 5344if test -n "$lt_cv_sys_max_cmd_len"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5346$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5347else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5349$as_echo "none" >&6; } 5350fi 5351max_cmd_len=$lt_cv_sys_max_cmd_len 5352 5353 5354 5355 5356 5357 5358: ${CP="cp -f"} 5359: ${MV="mv -f"} 5360: ${RM="rm -f"} 5361 5362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5363 lt_unset=unset 5364else 5365 lt_unset=false 5366fi 5367 5368 5369 5370 5371 5372# test EBCDIC or ASCII 5373case `echo X|tr X '\101'` in 5374 A) # ASCII based system 5375 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5376 lt_SP2NL='tr \040 \012' 5377 lt_NL2SP='tr \015\012 \040\040' 5378 ;; 5379 *) # EBCDIC based system 5380 lt_SP2NL='tr \100 \n' 5381 lt_NL2SP='tr \r\n \100\100' 5382 ;; 5383esac 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5394$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5395if ${lt_cv_to_host_file_cmd+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 case $host in 5399 *-*-mingw* ) 5400 case $build in 5401 *-*-mingw* ) # actually msys 5402 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5403 ;; 5404 *-*-cygwin* ) 5405 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5406 ;; 5407 * ) # otherwise, assume *nix 5408 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5409 ;; 5410 esac 5411 ;; 5412 *-*-cygwin* ) 5413 case $build in 5414 *-*-mingw* ) # actually msys 5415 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5416 ;; 5417 *-*-cygwin* ) 5418 lt_cv_to_host_file_cmd=func_convert_file_noop 5419 ;; 5420 * ) # otherwise, assume *nix 5421 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5422 ;; 5423 esac 5424 ;; 5425 * ) # unhandled hosts (and "normal" native builds) 5426 lt_cv_to_host_file_cmd=func_convert_file_noop 5427 ;; 5428esac 5429 5430fi 5431 5432to_host_file_cmd=$lt_cv_to_host_file_cmd 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5434$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5435 5436 5437 5438 5439 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5441$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5442if ${lt_cv_to_tool_file_cmd+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 #assume ordinary cross tools, or native build. 5446lt_cv_to_tool_file_cmd=func_convert_file_noop 5447case $host in 5448 *-*-mingw* ) 5449 case $build in 5450 *-*-mingw* ) # actually msys 5451 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5452 ;; 5453 esac 5454 ;; 5455esac 5456 5457fi 5458 5459to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5461$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5462 5463 5464 5465 5466 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5468$as_echo_n "checking for $LD option to reload object files... " >&6; } 5469if ${lt_cv_ld_reload_flag+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 lt_cv_ld_reload_flag='-r' 5473fi 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5475$as_echo "$lt_cv_ld_reload_flag" >&6; } 5476reload_flag=$lt_cv_ld_reload_flag 5477case $reload_flag in 5478"" | " "*) ;; 5479*) reload_flag=" $reload_flag" ;; 5480esac 5481reload_cmds='$LD$reload_flag -o $output$reload_objs' 5482case $host_os in 5483 cygwin* | mingw* | pw32* | cegcc*) 5484 if test yes != "$GCC"; then 5485 reload_cmds=false 5486 fi 5487 ;; 5488 darwin*) 5489 if test yes = "$GCC"; then 5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5491 else 5492 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5493 fi 5494 ;; 5495esac 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505if test -n "$ac_tool_prefix"; then 5506 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5507set dummy ${ac_tool_prefix}objdump; ac_word=$2 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5509$as_echo_n "checking for $ac_word... " >&6; } 5510if ${ac_cv_prog_OBJDUMP+:} false; then : 5511 $as_echo_n "(cached) " >&6 5512else 5513 if test -n "$OBJDUMP"; then 5514 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5515else 5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517for as_dir in $PATH 5518do 5519 IFS=$as_save_IFS 5520 test -z "$as_dir" && as_dir=. 5521 for ac_exec_ext in '' $ac_executable_extensions; do 5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5523 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5525 break 2 5526 fi 5527done 5528 done 5529IFS=$as_save_IFS 5530 5531fi 5532fi 5533OBJDUMP=$ac_cv_prog_OBJDUMP 5534if test -n "$OBJDUMP"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5536$as_echo "$OBJDUMP" >&6; } 5537else 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5539$as_echo "no" >&6; } 5540fi 5541 5542 5543fi 5544if test -z "$ac_cv_prog_OBJDUMP"; then 5545 ac_ct_OBJDUMP=$OBJDUMP 5546 # Extract the first word of "objdump", so it can be a program name with args. 5547set dummy objdump; ac_word=$2 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5549$as_echo_n "checking for $ac_word... " >&6; } 5550if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 if test -n "$ac_ct_OBJDUMP"; then 5554 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5555else 5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5557for as_dir in $PATH 5558do 5559 IFS=$as_save_IFS 5560 test -z "$as_dir" && as_dir=. 5561 for ac_exec_ext in '' $ac_executable_extensions; do 5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5563 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5565 break 2 5566 fi 5567done 5568 done 5569IFS=$as_save_IFS 5570 5571fi 5572fi 5573ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5574if test -n "$ac_ct_OBJDUMP"; then 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5576$as_echo "$ac_ct_OBJDUMP" >&6; } 5577else 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5579$as_echo "no" >&6; } 5580fi 5581 5582 if test "x$ac_ct_OBJDUMP" = x; then 5583 OBJDUMP="false" 5584 else 5585 case $cross_compiling:$ac_tool_warned in 5586yes:) 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5589ac_tool_warned=yes ;; 5590esac 5591 OBJDUMP=$ac_ct_OBJDUMP 5592 fi 5593else 5594 OBJDUMP="$ac_cv_prog_OBJDUMP" 5595fi 5596 5597test -z "$OBJDUMP" && OBJDUMP=objdump 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5608$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5609if ${lt_cv_deplibs_check_method+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 lt_cv_file_magic_cmd='$MAGIC_CMD' 5613lt_cv_file_magic_test_file= 5614lt_cv_deplibs_check_method='unknown' 5615# Need to set the preceding variable on all platforms that support 5616# interlibrary dependencies. 5617# 'none' -- dependencies not supported. 5618# 'unknown' -- same as none, but documents that we really don't know. 5619# 'pass_all' -- all dependencies passed with no checks. 5620# 'test_compile' -- check by making test program. 5621# 'file_magic [[regex]]' -- check by looking for files in library path 5622# that responds to the $file_magic_cmd with a given extended regex. 5623# If you have 'file' or equivalent on your system and you're not sure 5624# whether 'pass_all' will *always* work, you probably want this one. 5625 5626case $host_os in 5627aix[4-9]*) 5628 lt_cv_deplibs_check_method=pass_all 5629 ;; 5630 5631beos*) 5632 lt_cv_deplibs_check_method=pass_all 5633 ;; 5634 5635bsdi[45]*) 5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5637 lt_cv_file_magic_cmd='/usr/bin/file -L' 5638 lt_cv_file_magic_test_file=/shlib/libc.so 5639 ;; 5640 5641cygwin*) 5642 # func_win32_libid is a shell function defined in ltmain.sh 5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5644 lt_cv_file_magic_cmd='func_win32_libid' 5645 ;; 5646 5647mingw* | pw32*) 5648 # Base MSYS/MinGW do not provide the 'file' command needed by 5649 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5650 # unless we find 'file', for example because we are cross-compiling. 5651 if ( file / ) >/dev/null 2>&1; then 5652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5653 lt_cv_file_magic_cmd='func_win32_libid' 5654 else 5655 # Keep this pattern in sync with the one in func_win32_libid. 5656 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5657 lt_cv_file_magic_cmd='$OBJDUMP -f' 5658 fi 5659 ;; 5660 5661cegcc*) 5662 # use the weaker test based on 'objdump'. See mingw*. 5663 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5664 lt_cv_file_magic_cmd='$OBJDUMP -f' 5665 ;; 5666 5667darwin* | rhapsody*) 5668 lt_cv_deplibs_check_method=pass_all 5669 ;; 5670 5671freebsd* | dragonfly*) 5672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5673 case $host_cpu in 5674 i*86 ) 5675 # Not sure whether the presence of OpenBSD here was a mistake. 5676 # Let's accept both of them until this is cleared up. 5677 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5678 lt_cv_file_magic_cmd=/usr/bin/file 5679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5680 ;; 5681 esac 5682 else 5683 lt_cv_deplibs_check_method=pass_all 5684 fi 5685 ;; 5686 5687haiku*) 5688 lt_cv_deplibs_check_method=pass_all 5689 ;; 5690 5691hpux10.20* | hpux11*) 5692 lt_cv_file_magic_cmd=/usr/bin/file 5693 case $host_cpu in 5694 ia64*) 5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5696 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5697 ;; 5698 hppa*64*) 5699 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]' 5700 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5701 ;; 5702 *) 5703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5704 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5705 ;; 5706 esac 5707 ;; 5708 5709interix[3-9]*) 5710 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5712 ;; 5713 5714irix5* | irix6* | nonstopux*) 5715 case $LD in 5716 *-32|*"-32 ") libmagic=32-bit;; 5717 *-n32|*"-n32 ") libmagic=N32;; 5718 *-64|*"-64 ") libmagic=64-bit;; 5719 *) libmagic=never-match;; 5720 esac 5721 lt_cv_deplibs_check_method=pass_all 5722 ;; 5723 5724# This must be glibc/ELF. 5725linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5726 lt_cv_deplibs_check_method=pass_all 5727 ;; 5728 5729netbsd* | netbsdelf*-gnu) 5730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5732 else 5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5734 fi 5735 ;; 5736 5737newos6*) 5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5739 lt_cv_file_magic_cmd=/usr/bin/file 5740 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5741 ;; 5742 5743*nto* | *qnx*) 5744 lt_cv_deplibs_check_method=pass_all 5745 ;; 5746 5747openbsd* | bitrig*) 5748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5750 else 5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5752 fi 5753 ;; 5754 5755osf3* | osf4* | osf5*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 5759rdos*) 5760 lt_cv_deplibs_check_method=pass_all 5761 ;; 5762 5763solaris*) 5764 lt_cv_deplibs_check_method=pass_all 5765 ;; 5766 5767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 5771sysv4 | sysv4.3*) 5772 case $host_vendor in 5773 motorola) 5774 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]' 5775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5776 ;; 5777 ncr) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 sequent) 5781 lt_cv_file_magic_cmd='/bin/file' 5782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5783 ;; 5784 sni) 5785 lt_cv_file_magic_cmd='/bin/file' 5786 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5787 lt_cv_file_magic_test_file=/lib/libc.so 5788 ;; 5789 siemens) 5790 lt_cv_deplibs_check_method=pass_all 5791 ;; 5792 pc) 5793 lt_cv_deplibs_check_method=pass_all 5794 ;; 5795 esac 5796 ;; 5797 5798tpf*) 5799 lt_cv_deplibs_check_method=pass_all 5800 ;; 5801os2*) 5802 lt_cv_deplibs_check_method=pass_all 5803 ;; 5804esac 5805 5806fi 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5808$as_echo "$lt_cv_deplibs_check_method" >&6; } 5809 5810file_magic_glob= 5811want_nocaseglob=no 5812if test "$build" = "$host"; then 5813 case $host_os in 5814 mingw* | pw32*) 5815 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5816 want_nocaseglob=yes 5817 else 5818 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5819 fi 5820 ;; 5821 esac 5822fi 5823 5824file_magic_cmd=$lt_cv_file_magic_cmd 5825deplibs_check_method=$lt_cv_deplibs_check_method 5826test -z "$deplibs_check_method" && deplibs_check_method=unknown 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849if test -n "$ac_tool_prefix"; then 5850 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5851set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853$as_echo_n "checking for $ac_word... " >&6; } 5854if ${ac_cv_prog_DLLTOOL+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if test -n "$DLLTOOL"; then 5858 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5859else 5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861for as_dir in $PATH 5862do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5867 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871done 5872 done 5873IFS=$as_save_IFS 5874 5875fi 5876fi 5877DLLTOOL=$ac_cv_prog_DLLTOOL 5878if test -n "$DLLTOOL"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5880$as_echo "$DLLTOOL" >&6; } 5881else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884fi 5885 5886 5887fi 5888if test -z "$ac_cv_prog_DLLTOOL"; then 5889 ac_ct_DLLTOOL=$DLLTOOL 5890 # Extract the first word of "dlltool", so it can be a program name with args. 5891set dummy dlltool; ac_word=$2 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5893$as_echo_n "checking for $ac_word... " >&6; } 5894if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 if test -n "$ac_ct_DLLTOOL"; then 5898 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5899else 5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901for as_dir in $PATH 5902do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5907 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911done 5912 done 5913IFS=$as_save_IFS 5914 5915fi 5916fi 5917ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5918if test -n "$ac_ct_DLLTOOL"; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5920$as_echo "$ac_ct_DLLTOOL" >&6; } 5921else 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5923$as_echo "no" >&6; } 5924fi 5925 5926 if test "x$ac_ct_DLLTOOL" = x; then 5927 DLLTOOL="false" 5928 else 5929 case $cross_compiling:$ac_tool_warned in 5930yes:) 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5933ac_tool_warned=yes ;; 5934esac 5935 DLLTOOL=$ac_ct_DLLTOOL 5936 fi 5937else 5938 DLLTOOL="$ac_cv_prog_DLLTOOL" 5939fi 5940 5941test -z "$DLLTOOL" && DLLTOOL=dlltool 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5953$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5954if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5955 $as_echo_n "(cached) " >&6 5956else 5957 lt_cv_sharedlib_from_linklib_cmd='unknown' 5958 5959case $host_os in 5960cygwin* | mingw* | pw32* | cegcc*) 5961 # two different shell functions defined in ltmain.sh; 5962 # decide which one to use based on capabilities of $DLLTOOL 5963 case `$DLLTOOL --help 2>&1` in 5964 *--identify-strict*) 5965 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5966 ;; 5967 *) 5968 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5969 ;; 5970 esac 5971 ;; 5972*) 5973 # fallback: assume linklib IS sharedlib 5974 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5975 ;; 5976esac 5977 5978fi 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5980$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5981sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5982test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5983 5984 5985 5986 5987 5988 5989 5990 5991if test -n "$ac_tool_prefix"; then 5992 for ac_prog in ar 5993 do 5994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5995set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997$as_echo_n "checking for $ac_word... " >&6; } 5998if ${ac_cv_prog_AR+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 if test -n "$AR"; then 6002 ac_cv_prog_AR="$AR" # Let the user override the test. 6003else 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6011 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019fi 6020fi 6021AR=$ac_cv_prog_AR 6022if test -n "$AR"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6024$as_echo "$AR" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 6031 test -n "$AR" && break 6032 done 6033fi 6034if test -z "$AR"; then 6035 ac_ct_AR=$AR 6036 for ac_prog in ar 6037do 6038 # Extract the first word of "$ac_prog", so it can be a program name with args. 6039set dummy $ac_prog; ac_word=$2 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6041$as_echo_n "checking for $ac_word... " >&6; } 6042if ${ac_cv_prog_ac_ct_AR+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 if test -n "$ac_ct_AR"; then 6046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6047else 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH 6050do 6051 IFS=$as_save_IFS 6052 test -z "$as_dir" && as_dir=. 6053 for ac_exec_ext in '' $ac_executable_extensions; do 6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6055 ac_cv_prog_ac_ct_AR="$ac_prog" 6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6057 break 2 6058 fi 6059done 6060 done 6061IFS=$as_save_IFS 6062 6063fi 6064fi 6065ac_ct_AR=$ac_cv_prog_ac_ct_AR 6066if test -n "$ac_ct_AR"; then 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6068$as_echo "$ac_ct_AR" >&6; } 6069else 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6071$as_echo "no" >&6; } 6072fi 6073 6074 6075 test -n "$ac_ct_AR" && break 6076done 6077 6078 if test "x$ac_ct_AR" = x; then 6079 AR="false" 6080 else 6081 case $cross_compiling:$ac_tool_warned in 6082yes:) 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6085ac_tool_warned=yes ;; 6086esac 6087 AR=$ac_ct_AR 6088 fi 6089fi 6090 6091: ${AR=ar} 6092: ${AR_FLAGS=cr} 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6105$as_echo_n "checking for archiver @FILE support... " >&6; } 6106if ${lt_cv_ar_at_file+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108else 6109 lt_cv_ar_at_file=no 6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112 6113int 6114main () 6115{ 6116 6117 ; 6118 return 0; 6119} 6120_ACEOF 6121if ac_fn_c_try_compile "$LINENO"; then : 6122 echo conftest.$ac_objext > conftest.lst 6123 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6125 (eval $lt_ar_try) 2>&5 6126 ac_status=$? 6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6128 test $ac_status = 0; } 6129 if test 0 -eq "$ac_status"; then 6130 # Ensure the archiver fails upon bogus file names. 6131 rm -f conftest.$ac_objext libconftest.a 6132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6133 (eval $lt_ar_try) 2>&5 6134 ac_status=$? 6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6136 test $ac_status = 0; } 6137 if test 0 -ne "$ac_status"; then 6138 lt_cv_ar_at_file=@ 6139 fi 6140 fi 6141 rm -f conftest.* libconftest.a 6142 6143fi 6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6145 6146fi 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6148$as_echo "$lt_cv_ar_at_file" >&6; } 6149 6150if test no = "$lt_cv_ar_at_file"; then 6151 archiver_list_spec= 6152else 6153 archiver_list_spec=$lt_cv_ar_at_file 6154fi 6155 6156 6157 6158 6159 6160 6161 6162if test -n "$ac_tool_prefix"; then 6163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6164set dummy ${ac_tool_prefix}strip; ac_word=$2 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6166$as_echo_n "checking for $ac_word... " >&6; } 6167if ${ac_cv_prog_STRIP+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 if test -n "$STRIP"; then 6171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6172else 6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6174for as_dir in $PATH 6175do 6176 IFS=$as_save_IFS 6177 test -z "$as_dir" && as_dir=. 6178 for ac_exec_ext in '' $ac_executable_extensions; do 6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6180 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6182 break 2 6183 fi 6184done 6185 done 6186IFS=$as_save_IFS 6187 6188fi 6189fi 6190STRIP=$ac_cv_prog_STRIP 6191if test -n "$STRIP"; then 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6193$as_echo "$STRIP" >&6; } 6194else 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6196$as_echo "no" >&6; } 6197fi 6198 6199 6200fi 6201if test -z "$ac_cv_prog_STRIP"; then 6202 ac_ct_STRIP=$STRIP 6203 # Extract the first word of "strip", so it can be a program name with args. 6204set dummy strip; ac_word=$2 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6206$as_echo_n "checking for $ac_word... " >&6; } 6207if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6208 $as_echo_n "(cached) " >&6 6209else 6210 if test -n "$ac_ct_STRIP"; then 6211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6212else 6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6214for as_dir in $PATH 6215do 6216 IFS=$as_save_IFS 6217 test -z "$as_dir" && as_dir=. 6218 for ac_exec_ext in '' $ac_executable_extensions; do 6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6220 ac_cv_prog_ac_ct_STRIP="strip" 6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6222 break 2 6223 fi 6224done 6225 done 6226IFS=$as_save_IFS 6227 6228fi 6229fi 6230ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6231if test -n "$ac_ct_STRIP"; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6233$as_echo "$ac_ct_STRIP" >&6; } 6234else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6236$as_echo "no" >&6; } 6237fi 6238 6239 if test "x$ac_ct_STRIP" = x; then 6240 STRIP=":" 6241 else 6242 case $cross_compiling:$ac_tool_warned in 6243yes:) 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6246ac_tool_warned=yes ;; 6247esac 6248 STRIP=$ac_ct_STRIP 6249 fi 6250else 6251 STRIP="$ac_cv_prog_STRIP" 6252fi 6253 6254test -z "$STRIP" && STRIP=: 6255 6256 6257 6258 6259 6260 6261if test -n "$ac_tool_prefix"; then 6262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6263set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6265$as_echo_n "checking for $ac_word... " >&6; } 6266if ${ac_cv_prog_RANLIB+:} false; then : 6267 $as_echo_n "(cached) " >&6 6268else 6269 if test -n "$RANLIB"; then 6270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6271else 6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6273for as_dir in $PATH 6274do 6275 IFS=$as_save_IFS 6276 test -z "$as_dir" && as_dir=. 6277 for ac_exec_ext in '' $ac_executable_extensions; do 6278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6281 break 2 6282 fi 6283done 6284 done 6285IFS=$as_save_IFS 6286 6287fi 6288fi 6289RANLIB=$ac_cv_prog_RANLIB 6290if test -n "$RANLIB"; then 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6292$as_echo "$RANLIB" >&6; } 6293else 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6295$as_echo "no" >&6; } 6296fi 6297 6298 6299fi 6300if test -z "$ac_cv_prog_RANLIB"; then 6301 ac_ct_RANLIB=$RANLIB 6302 # Extract the first word of "ranlib", so it can be a program name with args. 6303set dummy ranlib; ac_word=$2 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6305$as_echo_n "checking for $ac_word... " >&6; } 6306if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 if test -n "$ac_ct_RANLIB"; then 6310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6311else 6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6313for as_dir in $PATH 6314do 6315 IFS=$as_save_IFS 6316 test -z "$as_dir" && as_dir=. 6317 for ac_exec_ext in '' $ac_executable_extensions; do 6318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6319 ac_cv_prog_ac_ct_RANLIB="ranlib" 6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6321 break 2 6322 fi 6323done 6324 done 6325IFS=$as_save_IFS 6326 6327fi 6328fi 6329ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6330if test -n "$ac_ct_RANLIB"; then 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6332$as_echo "$ac_ct_RANLIB" >&6; } 6333else 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335$as_echo "no" >&6; } 6336fi 6337 6338 if test "x$ac_ct_RANLIB" = x; then 6339 RANLIB=":" 6340 else 6341 case $cross_compiling:$ac_tool_warned in 6342yes:) 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6345ac_tool_warned=yes ;; 6346esac 6347 RANLIB=$ac_ct_RANLIB 6348 fi 6349else 6350 RANLIB="$ac_cv_prog_RANLIB" 6351fi 6352 6353test -z "$RANLIB" && RANLIB=: 6354 6355 6356 6357 6358 6359 6360# Determine commands to create old-style static archives. 6361old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6362old_postinstall_cmds='chmod 644 $oldlib' 6363old_postuninstall_cmds= 6364 6365if test -n "$RANLIB"; then 6366 case $host_os in 6367 bitrig* | openbsd*) 6368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6369 ;; 6370 *) 6371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6372 ;; 6373 esac 6374 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6375fi 6376 6377case $host_os in 6378 darwin*) 6379 lock_old_archive_extraction=yes ;; 6380 *) 6381 lock_old_archive_extraction=no ;; 6382esac 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422# If no C compiler was specified, use CC. 6423LTCC=${LTCC-"$CC"} 6424 6425# If no C compiler flags were specified, use CFLAGS. 6426LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6427 6428# Allow CC to be a program name with arguments. 6429compiler=$CC 6430 6431 6432# Check for command to grab the raw symbol name followed by C symbol from nm. 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6434$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6435if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 6439# These are sane defaults that work on at least a few old systems. 6440# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6441 6442# Character class describing NM global symbol codes. 6443symcode='[BCDEGRST]' 6444 6445# Regexp to match symbols that can be accessed directly from C. 6446sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6447 6448# Define system-specific variables. 6449case $host_os in 6450aix*) 6451 symcode='[BCDT]' 6452 ;; 6453cygwin* | mingw* | pw32* | cegcc*) 6454 symcode='[ABCDGISTW]' 6455 ;; 6456hpux*) 6457 if test ia64 = "$host_cpu"; then 6458 symcode='[ABCDEGRST]' 6459 fi 6460 ;; 6461irix* | nonstopux*) 6462 symcode='[BCDEGRST]' 6463 ;; 6464osf*) 6465 symcode='[BCDEGQRST]' 6466 ;; 6467solaris*) 6468 symcode='[BDRT]' 6469 ;; 6470sco3.2v5*) 6471 symcode='[DT]' 6472 ;; 6473sysv4.2uw2*) 6474 symcode='[DT]' 6475 ;; 6476sysv5* | sco5v6* | unixware* | OpenUNIX*) 6477 symcode='[ABDT]' 6478 ;; 6479sysv4) 6480 symcode='[DFNSTU]' 6481 ;; 6482esac 6483 6484# If we're using GNU nm, then use its standard symbol codes. 6485case `$NM -V 2>&1` in 6486*GNU* | *'with BFD'*) 6487 symcode='[ABCDGIRSTW]' ;; 6488esac 6489 6490if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6491 # Gets list of data symbols to import. 6492 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6493 # Adjust the below global symbol transforms to fixup imported variables. 6494 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6495 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6496 lt_c_name_lib_hook="\ 6497 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6498 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6499else 6500 # Disable hooks by default. 6501 lt_cv_sys_global_symbol_to_import= 6502 lt_cdecl_hook= 6503 lt_c_name_hook= 6504 lt_c_name_lib_hook= 6505fi 6506 6507# Transform an extracted symbol line into a proper C declaration. 6508# Some systems (esp. on ia64) link data and code symbols differently, 6509# so use this general approach. 6510lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6511$lt_cdecl_hook\ 6512" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6513" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6514 6515# Transform an extracted symbol line into symbol name and symbol address 6516lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6517$lt_c_name_hook\ 6518" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6519" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6520 6521# Transform an extracted symbol line into symbol name with lib prefix and 6522# symbol address. 6523lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6524$lt_c_name_lib_hook\ 6525" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6526" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6527" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6528 6529# Handle CRLF in mingw tool chain 6530opt_cr= 6531case $build_os in 6532mingw*) 6533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6534 ;; 6535esac 6536 6537# Try without a prefix underscore, then with it. 6538for ac_symprfx in "" "_"; do 6539 6540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6541 symxfrm="\\1 $ac_symprfx\\2 \\2" 6542 6543 # Write the raw and C identifiers. 6544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6545 # Fake it for dumpbin and say T for any non-static function, 6546 # D for any global variable and I for any imported variable. 6547 # Also find C++ and __fastcall symbols from MSVC++, 6548 # which start with @ or ?. 6549 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6550" {last_section=section; section=\$ 3};"\ 6551" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6552" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6553" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6554" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6555" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6556" \$ 0!~/External *\|/{next};"\ 6557" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6558" {if(hide[section]) next};"\ 6559" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6560" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6561" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6562" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6563" ' prfx=^$ac_symprfx" 6564 else 6565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6566 fi 6567 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6568 6569 # Check to see that the pipe works correctly. 6570 pipe_works=no 6571 6572 rm -f conftest* 6573 cat > conftest.$ac_ext <<_LT_EOF 6574#ifdef __cplusplus 6575extern "C" { 6576#endif 6577char nm_test_var; 6578void nm_test_func(void); 6579void nm_test_func(void){} 6580#ifdef __cplusplus 6581} 6582#endif 6583int main(){nm_test_var='a';nm_test_func();return(0);} 6584_LT_EOF 6585 6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6587 (eval $ac_compile) 2>&5 6588 ac_status=$? 6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6590 test $ac_status = 0; }; then 6591 # Now try to grab the symbols. 6592 nlist=conftest.nm 6593 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6594 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6595 # Try sorting and uniquifying the output. 6596 if sort "$nlist" | uniq > "$nlist"T; then 6597 mv -f "$nlist"T "$nlist" 6598 else 6599 rm -f "$nlist"T 6600 fi 6601 6602 # Make sure that we snagged all the symbols we need. 6603 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6604 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6605 cat <<_LT_EOF > conftest.$ac_ext 6606/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6607#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6608/* DATA imports from DLLs on WIN32 can't be const, because runtime 6609 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6610# define LT_DLSYM_CONST 6611#elif defined __osf__ 6612/* This system does not cope well with relocations in const data. */ 6613# define LT_DLSYM_CONST 6614#else 6615# define LT_DLSYM_CONST const 6616#endif 6617 6618#ifdef __cplusplus 6619extern "C" { 6620#endif 6621 6622_LT_EOF 6623 # Now generate the symbol file. 6624 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6625 6626 cat <<_LT_EOF >> conftest.$ac_ext 6627 6628/* The mapping between symbol names and symbols. */ 6629LT_DLSYM_CONST struct { 6630 const char *name; 6631 void *address; 6632} 6633lt__PROGRAM__LTX_preloaded_symbols[] = 6634{ 6635 { "@PROGRAM@", (void *) 0 }, 6636_LT_EOF 6637 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6638 cat <<\_LT_EOF >> conftest.$ac_ext 6639 {0, (void *) 0} 6640}; 6641 6642/* This works around a problem in FreeBSD linker */ 6643#ifdef FREEBSD_WORKAROUND 6644static const void *lt_preloaded_setup() { 6645 return lt__PROGRAM__LTX_preloaded_symbols; 6646} 6647#endif 6648 6649#ifdef __cplusplus 6650} 6651#endif 6652_LT_EOF 6653 # Now try linking the two files. 6654 mv conftest.$ac_objext conftstm.$ac_objext 6655 lt_globsym_save_LIBS=$LIBS 6656 lt_globsym_save_CFLAGS=$CFLAGS 6657 LIBS=conftstm.$ac_objext 6658 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6660 (eval $ac_link) 2>&5 6661 ac_status=$? 6662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6663 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6664 pipe_works=yes 6665 fi 6666 LIBS=$lt_globsym_save_LIBS 6667 CFLAGS=$lt_globsym_save_CFLAGS 6668 else 6669 echo "cannot find nm_test_func in $nlist" >&5 6670 fi 6671 else 6672 echo "cannot find nm_test_var in $nlist" >&5 6673 fi 6674 else 6675 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6676 fi 6677 else 6678 echo "$progname: failed program was:" >&5 6679 cat conftest.$ac_ext >&5 6680 fi 6681 rm -rf conftest* conftst* 6682 6683 # Do not use the global_symbol_pipe unless it works. 6684 if test yes = "$pipe_works"; then 6685 break 6686 else 6687 lt_cv_sys_global_symbol_pipe= 6688 fi 6689done 6690 6691fi 6692 6693if test -z "$lt_cv_sys_global_symbol_pipe"; then 6694 lt_cv_sys_global_symbol_to_cdecl= 6695fi 6696if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6698$as_echo "failed" >&6; } 6699else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6701$as_echo "ok" >&6; } 6702fi 6703 6704# Response file support. 6705if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6706 nm_file_list_spec='@' 6707elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6708 nm_file_list_spec='@' 6709fi 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6748$as_echo_n "checking for sysroot... " >&6; } 6749 6750# Check whether --with-sysroot was given. 6751if test "${with_sysroot+set}" = set; then : 6752 withval=$with_sysroot; 6753else 6754 with_sysroot=no 6755fi 6756 6757 6758lt_sysroot= 6759case $with_sysroot in #( 6760 yes) 6761 if test yes = "$GCC"; then 6762 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6763 fi 6764 ;; #( 6765 /*) 6766 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6767 ;; #( 6768 no|'') 6769 ;; #( 6770 *) 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6772$as_echo "$with_sysroot" >&6; } 6773 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6774 ;; 6775esac 6776 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6778$as_echo "${lt_sysroot:-no}" >&6; } 6779 6780 6781 6782 6783 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6785$as_echo_n "checking for a working dd... " >&6; } 6786if ${ac_cv_path_lt_DD+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 printf 0123456789abcdef0123456789abcdef >conftest.i 6790cat conftest.i conftest.i >conftest2.i 6791: ${lt_DD:=$DD} 6792if test -z "$lt_DD"; then 6793 ac_path_lt_DD_found=false 6794 # Loop through the user's path and test for each of PROGNAME-LIST 6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_prog in dd; do 6801 for ac_exec_ext in '' $ac_executable_extensions; do 6802 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6803 as_fn_executable_p "$ac_path_lt_DD" || continue 6804if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6805 cmp -s conftest.i conftest.out \ 6806 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6807fi 6808 $ac_path_lt_DD_found && break 3 6809 done 6810 done 6811 done 6812IFS=$as_save_IFS 6813 if test -z "$ac_cv_path_lt_DD"; then 6814 : 6815 fi 6816else 6817 ac_cv_path_lt_DD=$lt_DD 6818fi 6819 6820rm -f conftest.i conftest2.i conftest.out 6821fi 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6823$as_echo "$ac_cv_path_lt_DD" >&6; } 6824 6825 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6827$as_echo_n "checking how to truncate binary pipes... " >&6; } 6828if ${lt_cv_truncate_bin+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 printf 0123456789abcdef0123456789abcdef >conftest.i 6832cat conftest.i conftest.i >conftest2.i 6833lt_cv_truncate_bin= 6834if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6835 cmp -s conftest.i conftest.out \ 6836 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6837fi 6838rm -f conftest.i conftest2.i conftest.out 6839test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6840fi 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6842$as_echo "$lt_cv_truncate_bin" >&6; } 6843 6844 6845 6846 6847 6848 6849 6850# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6851func_cc_basename () 6852{ 6853 for cc_temp in $*""; do 6854 case $cc_temp in 6855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6857 \-*) ;; 6858 *) break;; 6859 esac 6860 done 6861 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6862} 6863 6864# Check whether --enable-libtool-lock was given. 6865if test "${enable_libtool_lock+set}" = set; then : 6866 enableval=$enable_libtool_lock; 6867fi 6868 6869test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6870 6871# Some flags need to be propagated to the compiler or linker for good 6872# libtool support. 6873case $host in 6874ia64-*-hpux*) 6875 # Find out what ABI is being produced by ac_compile, and set mode 6876 # options accordingly. 6877 echo 'int i;' > conftest.$ac_ext 6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6879 (eval $ac_compile) 2>&5 6880 ac_status=$? 6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6882 test $ac_status = 0; }; then 6883 case `/usr/bin/file conftest.$ac_objext` in 6884 *ELF-32*) 6885 HPUX_IA64_MODE=32 6886 ;; 6887 *ELF-64*) 6888 HPUX_IA64_MODE=64 6889 ;; 6890 esac 6891 fi 6892 rm -rf conftest* 6893 ;; 6894*-*-irix6*) 6895 # Find out what ABI is being produced by ac_compile, and set linker 6896 # options accordingly. 6897 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6899 (eval $ac_compile) 2>&5 6900 ac_status=$? 6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6902 test $ac_status = 0; }; then 6903 if test yes = "$lt_cv_prog_gnu_ld"; then 6904 case `/usr/bin/file conftest.$ac_objext` in 6905 *32-bit*) 6906 LD="${LD-ld} -melf32bsmip" 6907 ;; 6908 *N32*) 6909 LD="${LD-ld} -melf32bmipn32" 6910 ;; 6911 *64-bit*) 6912 LD="${LD-ld} -melf64bmip" 6913 ;; 6914 esac 6915 else 6916 case `/usr/bin/file conftest.$ac_objext` in 6917 *32-bit*) 6918 LD="${LD-ld} -32" 6919 ;; 6920 *N32*) 6921 LD="${LD-ld} -n32" 6922 ;; 6923 *64-bit*) 6924 LD="${LD-ld} -64" 6925 ;; 6926 esac 6927 fi 6928 fi 6929 rm -rf conftest* 6930 ;; 6931 6932mips64*-*linux*) 6933 # Find out what ABI is being produced by ac_compile, and set linker 6934 # options accordingly. 6935 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6937 (eval $ac_compile) 2>&5 6938 ac_status=$? 6939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6940 test $ac_status = 0; }; then 6941 emul=elf 6942 case `/usr/bin/file conftest.$ac_objext` in 6943 *32-bit*) 6944 emul="${emul}32" 6945 ;; 6946 *64-bit*) 6947 emul="${emul}64" 6948 ;; 6949 esac 6950 case `/usr/bin/file conftest.$ac_objext` in 6951 *MSB*) 6952 emul="${emul}btsmip" 6953 ;; 6954 *LSB*) 6955 emul="${emul}ltsmip" 6956 ;; 6957 esac 6958 case `/usr/bin/file conftest.$ac_objext` in 6959 *N32*) 6960 emul="${emul}n32" 6961 ;; 6962 esac 6963 LD="${LD-ld} -m $emul" 6964 fi 6965 rm -rf conftest* 6966 ;; 6967 6968x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6969s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6970 # Find out what ABI is being produced by ac_compile, and set linker 6971 # options accordingly. Note that the listed cases only cover the 6972 # situations where additional linker options are needed (such as when 6973 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6974 # vice versa); the common cases where no linker options are needed do 6975 # not appear in the list. 6976 echo 'int i;' > conftest.$ac_ext 6977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6978 (eval $ac_compile) 2>&5 6979 ac_status=$? 6980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6981 test $ac_status = 0; }; then 6982 case `/usr/bin/file conftest.o` in 6983 *32-bit*) 6984 case $host in 6985 x86_64-*kfreebsd*-gnu) 6986 LD="${LD-ld} -m elf_i386_fbsd" 6987 ;; 6988 x86_64-*linux*) 6989 case `/usr/bin/file conftest.o` in 6990 *x86-64*) 6991 LD="${LD-ld} -m elf32_x86_64" 6992 ;; 6993 *) 6994 LD="${LD-ld} -m elf_i386" 6995 ;; 6996 esac 6997 ;; 6998 powerpc64le-*linux*) 6999 LD="${LD-ld} -m elf32lppclinux" 7000 ;; 7001 powerpc64-*linux*) 7002 LD="${LD-ld} -m elf32ppclinux" 7003 ;; 7004 s390x-*linux*) 7005 LD="${LD-ld} -m elf_s390" 7006 ;; 7007 sparc64-*linux*) 7008 LD="${LD-ld} -m elf32_sparc" 7009 ;; 7010 esac 7011 ;; 7012 *64-bit*) 7013 case $host in 7014 x86_64-*kfreebsd*-gnu) 7015 LD="${LD-ld} -m elf_x86_64_fbsd" 7016 ;; 7017 x86_64-*linux*) 7018 LD="${LD-ld} -m elf_x86_64" 7019 ;; 7020 powerpcle-*linux*) 7021 LD="${LD-ld} -m elf64lppc" 7022 ;; 7023 powerpc-*linux*) 7024 LD="${LD-ld} -m elf64ppc" 7025 ;; 7026 s390*-*linux*|s390*-*tpf*) 7027 LD="${LD-ld} -m elf64_s390" 7028 ;; 7029 sparc*-*linux*) 7030 LD="${LD-ld} -m elf64_sparc" 7031 ;; 7032 esac 7033 ;; 7034 esac 7035 fi 7036 rm -rf conftest* 7037 ;; 7038 7039*-*-sco3.2v5*) 7040 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7041 SAVE_CFLAGS=$CFLAGS 7042 CFLAGS="$CFLAGS -belf" 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7044$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7045if ${lt_cv_cc_needs_belf+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 ac_ext=c 7049ac_cpp='$CPP $CPPFLAGS' 7050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7052ac_compiler_gnu=$ac_cv_c_compiler_gnu 7053 7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055/* end confdefs.h. */ 7056 7057int 7058main () 7059{ 7060 7061 ; 7062 return 0; 7063} 7064_ACEOF 7065if ac_fn_c_try_link "$LINENO"; then : 7066 lt_cv_cc_needs_belf=yes 7067else 7068 lt_cv_cc_needs_belf=no 7069fi 7070rm -f core conftest.err conftest.$ac_objext \ 7071 conftest$ac_exeext conftest.$ac_ext 7072 ac_ext=c 7073ac_cpp='$CPP $CPPFLAGS' 7074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7076ac_compiler_gnu=$ac_cv_c_compiler_gnu 7077 7078fi 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7080$as_echo "$lt_cv_cc_needs_belf" >&6; } 7081 if test yes != "$lt_cv_cc_needs_belf"; then 7082 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7083 CFLAGS=$SAVE_CFLAGS 7084 fi 7085 ;; 7086*-*solaris*) 7087 # Find out what ABI is being produced by ac_compile, and set linker 7088 # options accordingly. 7089 echo 'int i;' > conftest.$ac_ext 7090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7091 (eval $ac_compile) 2>&5 7092 ac_status=$? 7093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7094 test $ac_status = 0; }; then 7095 case `/usr/bin/file conftest.o` in 7096 *64-bit*) 7097 case $lt_cv_prog_gnu_ld in 7098 yes*) 7099 case $host in 7100 i?86-*-solaris*|x86_64-*-solaris*) 7101 LD="${LD-ld} -m elf_x86_64" 7102 ;; 7103 sparc*-*-solaris*) 7104 LD="${LD-ld} -m elf64_sparc" 7105 ;; 7106 esac 7107 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7108 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7109 LD=${LD-ld}_sol2 7110 fi 7111 ;; 7112 *) 7113 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7114 LD="${LD-ld} -64" 7115 fi 7116 ;; 7117 esac 7118 ;; 7119 esac 7120 fi 7121 rm -rf conftest* 7122 ;; 7123esac 7124 7125need_locks=$enable_libtool_lock 7126 7127if test -n "$ac_tool_prefix"; then 7128 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7129set dummy ${ac_tool_prefix}mt; ac_word=$2 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7131$as_echo_n "checking for $ac_word... " >&6; } 7132if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 if test -n "$MANIFEST_TOOL"; then 7136 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7137else 7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7139for as_dir in $PATH 7140do 7141 IFS=$as_save_IFS 7142 test -z "$as_dir" && as_dir=. 7143 for ac_exec_ext in '' $ac_executable_extensions; do 7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7145 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7147 break 2 7148 fi 7149done 7150 done 7151IFS=$as_save_IFS 7152 7153fi 7154fi 7155MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7156if test -n "$MANIFEST_TOOL"; then 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7158$as_echo "$MANIFEST_TOOL" >&6; } 7159else 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7161$as_echo "no" >&6; } 7162fi 7163 7164 7165fi 7166if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7167 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7168 # Extract the first word of "mt", so it can be a program name with args. 7169set dummy mt; ac_word=$2 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7171$as_echo_n "checking for $ac_word... " >&6; } 7172if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 if test -n "$ac_ct_MANIFEST_TOOL"; then 7176 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7177else 7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 test -z "$as_dir" && as_dir=. 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7185 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7187 break 2 7188 fi 7189done 7190 done 7191IFS=$as_save_IFS 7192 7193fi 7194fi 7195ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7196if test -n "$ac_ct_MANIFEST_TOOL"; then 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7198$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7199else 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7201$as_echo "no" >&6; } 7202fi 7203 7204 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7205 MANIFEST_TOOL=":" 7206 else 7207 case $cross_compiling:$ac_tool_warned in 7208yes:) 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7211ac_tool_warned=yes ;; 7212esac 7213 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7214 fi 7215else 7216 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7217fi 7218 7219test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7221$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7222if ${lt_cv_path_mainfest_tool+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224else 7225 lt_cv_path_mainfest_tool=no 7226 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7227 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7228 cat conftest.err >&5 7229 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7230 lt_cv_path_mainfest_tool=yes 7231 fi 7232 rm -f conftest* 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7235$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7236if test yes != "$lt_cv_path_mainfest_tool"; then 7237 MANIFEST_TOOL=: 7238fi 7239 7240 7241 7242 7243 7244 7245 case $host_os in 7246 rhapsody* | darwin*) 7247 if test -n "$ac_tool_prefix"; then 7248 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7249set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7251$as_echo_n "checking for $ac_word... " >&6; } 7252if ${ac_cv_prog_DSYMUTIL+:} false; then : 7253 $as_echo_n "(cached) " >&6 7254else 7255 if test -n "$DSYMUTIL"; then 7256 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7257else 7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7259for as_dir in $PATH 7260do 7261 IFS=$as_save_IFS 7262 test -z "$as_dir" && as_dir=. 7263 for ac_exec_ext in '' $ac_executable_extensions; do 7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7265 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7267 break 2 7268 fi 7269done 7270 done 7271IFS=$as_save_IFS 7272 7273fi 7274fi 7275DSYMUTIL=$ac_cv_prog_DSYMUTIL 7276if test -n "$DSYMUTIL"; then 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7278$as_echo "$DSYMUTIL" >&6; } 7279else 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7281$as_echo "no" >&6; } 7282fi 7283 7284 7285fi 7286if test -z "$ac_cv_prog_DSYMUTIL"; then 7287 ac_ct_DSYMUTIL=$DSYMUTIL 7288 # Extract the first word of "dsymutil", so it can be a program name with args. 7289set dummy dsymutil; ac_word=$2 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7291$as_echo_n "checking for $ac_word... " >&6; } 7292if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 if test -n "$ac_ct_DSYMUTIL"; then 7296 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7297else 7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7299for as_dir in $PATH 7300do 7301 IFS=$as_save_IFS 7302 test -z "$as_dir" && as_dir=. 7303 for ac_exec_ext in '' $ac_executable_extensions; do 7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7305 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7307 break 2 7308 fi 7309done 7310 done 7311IFS=$as_save_IFS 7312 7313fi 7314fi 7315ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7316if test -n "$ac_ct_DSYMUTIL"; then 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7318$as_echo "$ac_ct_DSYMUTIL" >&6; } 7319else 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7321$as_echo "no" >&6; } 7322fi 7323 7324 if test "x$ac_ct_DSYMUTIL" = x; then 7325 DSYMUTIL=":" 7326 else 7327 case $cross_compiling:$ac_tool_warned in 7328yes:) 7329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7331ac_tool_warned=yes ;; 7332esac 7333 DSYMUTIL=$ac_ct_DSYMUTIL 7334 fi 7335else 7336 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7337fi 7338 7339 if test -n "$ac_tool_prefix"; then 7340 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7341set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7343$as_echo_n "checking for $ac_word... " >&6; } 7344if ${ac_cv_prog_NMEDIT+:} false; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 if test -n "$NMEDIT"; then 7348 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7349else 7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7351for as_dir in $PATH 7352do 7353 IFS=$as_save_IFS 7354 test -z "$as_dir" && as_dir=. 7355 for ac_exec_ext in '' $ac_executable_extensions; do 7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7357 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7359 break 2 7360 fi 7361done 7362 done 7363IFS=$as_save_IFS 7364 7365fi 7366fi 7367NMEDIT=$ac_cv_prog_NMEDIT 7368if test -n "$NMEDIT"; then 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7370$as_echo "$NMEDIT" >&6; } 7371else 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7373$as_echo "no" >&6; } 7374fi 7375 7376 7377fi 7378if test -z "$ac_cv_prog_NMEDIT"; then 7379 ac_ct_NMEDIT=$NMEDIT 7380 # Extract the first word of "nmedit", so it can be a program name with args. 7381set dummy nmedit; ac_word=$2 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7383$as_echo_n "checking for $ac_word... " >&6; } 7384if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7385 $as_echo_n "(cached) " >&6 7386else 7387 if test -n "$ac_ct_NMEDIT"; then 7388 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7389else 7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7391for as_dir in $PATH 7392do 7393 IFS=$as_save_IFS 7394 test -z "$as_dir" && as_dir=. 7395 for ac_exec_ext in '' $ac_executable_extensions; do 7396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7397 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7399 break 2 7400 fi 7401done 7402 done 7403IFS=$as_save_IFS 7404 7405fi 7406fi 7407ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7408if test -n "$ac_ct_NMEDIT"; then 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7410$as_echo "$ac_ct_NMEDIT" >&6; } 7411else 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7413$as_echo "no" >&6; } 7414fi 7415 7416 if test "x$ac_ct_NMEDIT" = x; then 7417 NMEDIT=":" 7418 else 7419 case $cross_compiling:$ac_tool_warned in 7420yes:) 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7423ac_tool_warned=yes ;; 7424esac 7425 NMEDIT=$ac_ct_NMEDIT 7426 fi 7427else 7428 NMEDIT="$ac_cv_prog_NMEDIT" 7429fi 7430 7431 if test -n "$ac_tool_prefix"; then 7432 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7433set dummy ${ac_tool_prefix}lipo; ac_word=$2 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7435$as_echo_n "checking for $ac_word... " >&6; } 7436if ${ac_cv_prog_LIPO+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 if test -n "$LIPO"; then 7440 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7441else 7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7443for as_dir in $PATH 7444do 7445 IFS=$as_save_IFS 7446 test -z "$as_dir" && as_dir=. 7447 for ac_exec_ext in '' $ac_executable_extensions; do 7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7449 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7451 break 2 7452 fi 7453done 7454 done 7455IFS=$as_save_IFS 7456 7457fi 7458fi 7459LIPO=$ac_cv_prog_LIPO 7460if test -n "$LIPO"; then 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7462$as_echo "$LIPO" >&6; } 7463else 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7465$as_echo "no" >&6; } 7466fi 7467 7468 7469fi 7470if test -z "$ac_cv_prog_LIPO"; then 7471 ac_ct_LIPO=$LIPO 7472 # Extract the first word of "lipo", so it can be a program name with args. 7473set dummy lipo; ac_word=$2 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7475$as_echo_n "checking for $ac_word... " >&6; } 7476if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 if test -n "$ac_ct_LIPO"; then 7480 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7481else 7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7483for as_dir in $PATH 7484do 7485 IFS=$as_save_IFS 7486 test -z "$as_dir" && as_dir=. 7487 for ac_exec_ext in '' $ac_executable_extensions; do 7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7489 ac_cv_prog_ac_ct_LIPO="lipo" 7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7491 break 2 7492 fi 7493done 7494 done 7495IFS=$as_save_IFS 7496 7497fi 7498fi 7499ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7500if test -n "$ac_ct_LIPO"; then 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7502$as_echo "$ac_ct_LIPO" >&6; } 7503else 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7505$as_echo "no" >&6; } 7506fi 7507 7508 if test "x$ac_ct_LIPO" = x; then 7509 LIPO=":" 7510 else 7511 case $cross_compiling:$ac_tool_warned in 7512yes:) 7513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7515ac_tool_warned=yes ;; 7516esac 7517 LIPO=$ac_ct_LIPO 7518 fi 7519else 7520 LIPO="$ac_cv_prog_LIPO" 7521fi 7522 7523 if test -n "$ac_tool_prefix"; then 7524 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7525set dummy ${ac_tool_prefix}otool; ac_word=$2 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7527$as_echo_n "checking for $ac_word... " >&6; } 7528if ${ac_cv_prog_OTOOL+:} false; then : 7529 $as_echo_n "(cached) " >&6 7530else 7531 if test -n "$OTOOL"; then 7532 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7533else 7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7535for as_dir in $PATH 7536do 7537 IFS=$as_save_IFS 7538 test -z "$as_dir" && as_dir=. 7539 for ac_exec_ext in '' $ac_executable_extensions; do 7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7541 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7543 break 2 7544 fi 7545done 7546 done 7547IFS=$as_save_IFS 7548 7549fi 7550fi 7551OTOOL=$ac_cv_prog_OTOOL 7552if test -n "$OTOOL"; then 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7554$as_echo "$OTOOL" >&6; } 7555else 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7557$as_echo "no" >&6; } 7558fi 7559 7560 7561fi 7562if test -z "$ac_cv_prog_OTOOL"; then 7563 ac_ct_OTOOL=$OTOOL 7564 # Extract the first word of "otool", so it can be a program name with args. 7565set dummy otool; ac_word=$2 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7567$as_echo_n "checking for $ac_word... " >&6; } 7568if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 if test -n "$ac_ct_OTOOL"; then 7572 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7573else 7574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7575for as_dir in $PATH 7576do 7577 IFS=$as_save_IFS 7578 test -z "$as_dir" && as_dir=. 7579 for ac_exec_ext in '' $ac_executable_extensions; do 7580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7581 ac_cv_prog_ac_ct_OTOOL="otool" 7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7583 break 2 7584 fi 7585done 7586 done 7587IFS=$as_save_IFS 7588 7589fi 7590fi 7591ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7592if test -n "$ac_ct_OTOOL"; then 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7594$as_echo "$ac_ct_OTOOL" >&6; } 7595else 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7597$as_echo "no" >&6; } 7598fi 7599 7600 if test "x$ac_ct_OTOOL" = x; then 7601 OTOOL=":" 7602 else 7603 case $cross_compiling:$ac_tool_warned in 7604yes:) 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7607ac_tool_warned=yes ;; 7608esac 7609 OTOOL=$ac_ct_OTOOL 7610 fi 7611else 7612 OTOOL="$ac_cv_prog_OTOOL" 7613fi 7614 7615 if test -n "$ac_tool_prefix"; then 7616 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7617set dummy ${ac_tool_prefix}otool64; ac_word=$2 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7619$as_echo_n "checking for $ac_word... " >&6; } 7620if ${ac_cv_prog_OTOOL64+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 if test -n "$OTOOL64"; then 7624 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7625else 7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7627for as_dir in $PATH 7628do 7629 IFS=$as_save_IFS 7630 test -z "$as_dir" && as_dir=. 7631 for ac_exec_ext in '' $ac_executable_extensions; do 7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7633 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7635 break 2 7636 fi 7637done 7638 done 7639IFS=$as_save_IFS 7640 7641fi 7642fi 7643OTOOL64=$ac_cv_prog_OTOOL64 7644if test -n "$OTOOL64"; then 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7646$as_echo "$OTOOL64" >&6; } 7647else 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7649$as_echo "no" >&6; } 7650fi 7651 7652 7653fi 7654if test -z "$ac_cv_prog_OTOOL64"; then 7655 ac_ct_OTOOL64=$OTOOL64 7656 # Extract the first word of "otool64", so it can be a program name with args. 7657set dummy otool64; ac_word=$2 7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7659$as_echo_n "checking for $ac_word... " >&6; } 7660if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 if test -n "$ac_ct_OTOOL64"; then 7664 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7665else 7666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7667for as_dir in $PATH 7668do 7669 IFS=$as_save_IFS 7670 test -z "$as_dir" && as_dir=. 7671 for ac_exec_ext in '' $ac_executable_extensions; do 7672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7673 ac_cv_prog_ac_ct_OTOOL64="otool64" 7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7675 break 2 7676 fi 7677done 7678 done 7679IFS=$as_save_IFS 7680 7681fi 7682fi 7683ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7684if test -n "$ac_ct_OTOOL64"; then 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7686$as_echo "$ac_ct_OTOOL64" >&6; } 7687else 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7689$as_echo "no" >&6; } 7690fi 7691 7692 if test "x$ac_ct_OTOOL64" = x; then 7693 OTOOL64=":" 7694 else 7695 case $cross_compiling:$ac_tool_warned in 7696yes:) 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7699ac_tool_warned=yes ;; 7700esac 7701 OTOOL64=$ac_ct_OTOOL64 7702 fi 7703else 7704 OTOOL64="$ac_cv_prog_OTOOL64" 7705fi 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7734$as_echo_n "checking for -single_module linker flag... " >&6; } 7735if ${lt_cv_apple_cc_single_mod+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 lt_cv_apple_cc_single_mod=no 7739 if test -z "$LT_MULTI_MODULE"; then 7740 # By default we will add the -single_module flag. You can override 7741 # by either setting the environment variable LT_MULTI_MODULE 7742 # non-empty at configure time, or by adding -multi_module to the 7743 # link flags. 7744 rm -rf libconftest.dylib* 7745 echo "int foo(void){return 1;}" > conftest.c 7746 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7747-dynamiclib -Wl,-single_module conftest.c" >&5 7748 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7749 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7750 _lt_result=$? 7751 # If there is a non-empty error log, and "single_module" 7752 # appears in it, assume the flag caused a linker warning 7753 if test -s conftest.err && $GREP single_module conftest.err; then 7754 cat conftest.err >&5 7755 # Otherwise, if the output was created with a 0 exit code from 7756 # the compiler, it worked. 7757 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7758 lt_cv_apple_cc_single_mod=yes 7759 else 7760 cat conftest.err >&5 7761 fi 7762 rm -rf libconftest.dylib* 7763 rm -f conftest.* 7764 fi 7765fi 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7767$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7768 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7770$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7771if ${lt_cv_ld_exported_symbols_list+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 lt_cv_ld_exported_symbols_list=no 7775 save_LDFLAGS=$LDFLAGS 7776 echo "_main" > conftest.sym 7777 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779/* end confdefs.h. */ 7780 7781int 7782main () 7783{ 7784 7785 ; 7786 return 0; 7787} 7788_ACEOF 7789if ac_fn_c_try_link "$LINENO"; then : 7790 lt_cv_ld_exported_symbols_list=yes 7791else 7792 lt_cv_ld_exported_symbols_list=no 7793fi 7794rm -f core conftest.err conftest.$ac_objext \ 7795 conftest$ac_exeext conftest.$ac_ext 7796 LDFLAGS=$save_LDFLAGS 7797 7798fi 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7800$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7801 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7803$as_echo_n "checking for -force_load linker flag... " >&6; } 7804if ${lt_cv_ld_force_load+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 lt_cv_ld_force_load=no 7808 cat > conftest.c << _LT_EOF 7809int forced_loaded() { return 2;} 7810_LT_EOF 7811 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7812 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7813 echo "$AR cr libconftest.a conftest.o" >&5 7814 $AR cr libconftest.a conftest.o 2>&5 7815 echo "$RANLIB libconftest.a" >&5 7816 $RANLIB libconftest.a 2>&5 7817 cat > conftest.c << _LT_EOF 7818int main() { return 0;} 7819_LT_EOF 7820 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7821 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7822 _lt_result=$? 7823 if test -s conftest.err && $GREP force_load conftest.err; then 7824 cat conftest.err >&5 7825 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7826 lt_cv_ld_force_load=yes 7827 else 7828 cat conftest.err >&5 7829 fi 7830 rm -f conftest.err libconftest.a conftest conftest.c 7831 rm -rf conftest.dSYM 7832 7833fi 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7835$as_echo "$lt_cv_ld_force_load" >&6; } 7836 case $host_os in 7837 rhapsody* | darwin1.[012]) 7838 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7839 darwin1.*) 7840 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7841 darwin*) # darwin 5.x on 7842 # if running on 10.5 or later, the deployment target defaults 7843 # to the OS version, if on x86, and 10.4, the deployment 7844 # target defaults to 10.4. Don't you love it? 7845 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7846 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7847 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7848 10.[012][,.]*) 7849 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7850 10.*) 7851 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7852 esac 7853 ;; 7854 esac 7855 if test yes = "$lt_cv_apple_cc_single_mod"; then 7856 _lt_dar_single_mod='$single_module' 7857 fi 7858 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7859 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7860 else 7861 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7862 fi 7863 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7864 _lt_dsymutil='~$DSYMUTIL $lib || :' 7865 else 7866 _lt_dsymutil= 7867 fi 7868 ;; 7869 esac 7870 7871# func_munge_path_list VARIABLE PATH 7872# ----------------------------------- 7873# VARIABLE is name of variable containing _space_ separated list of 7874# directories to be munged by the contents of PATH, which is string 7875# having a format: 7876# "DIR[:DIR]:" 7877# string "DIR[ DIR]" will be prepended to VARIABLE 7878# ":DIR[:DIR]" 7879# string "DIR[ DIR]" will be appended to VARIABLE 7880# "DIRP[:DIRP]::[DIRA:]DIRA" 7881# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7882# "DIRA[ DIRA]" will be appended to VARIABLE 7883# "DIR[:DIR]" 7884# VARIABLE will be replaced by "DIR[ DIR]" 7885func_munge_path_list () 7886{ 7887 case x$2 in 7888 x) 7889 ;; 7890 *:) 7891 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7892 ;; 7893 x:*) 7894 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7895 ;; 7896 *::*) 7897 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7898 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7899 ;; 7900 *) 7901 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7902 ;; 7903 esac 7904} 7905 7906ac_ext=c 7907ac_cpp='$CPP $CPPFLAGS' 7908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7910ac_compiler_gnu=$ac_cv_c_compiler_gnu 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7912$as_echo_n "checking how to run the C preprocessor... " >&6; } 7913# On Suns, sometimes $CPP names a directory. 7914if test -n "$CPP" && test -d "$CPP"; then 7915 CPP= 7916fi 7917if test -z "$CPP"; then 7918 if ${ac_cv_prog_CPP+:} false; then : 7919 $as_echo_n "(cached) " >&6 7920else 7921 # Double quotes because CPP needs to be expanded 7922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7923 do 7924 ac_preproc_ok=false 7925for ac_c_preproc_warn_flag in '' yes 7926do 7927 # Use a header file that comes with gcc, so configuring glibc 7928 # with a fresh cross-compiler works. 7929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7930 # <limits.h> exists even on freestanding compilers. 7931 # On the NeXT, cc -E runs the code through the compiler's parser, 7932 # not just through cpp. "Syntax error" is here to catch this case. 7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7934/* end confdefs.h. */ 7935#ifdef __STDC__ 7936# include <limits.h> 7937#else 7938# include <assert.h> 7939#endif 7940 Syntax error 7941_ACEOF 7942if ac_fn_c_try_cpp "$LINENO"; then : 7943 7944else 7945 # Broken: fails on valid input. 7946continue 7947fi 7948rm -f conftest.err conftest.i conftest.$ac_ext 7949 7950 # OK, works on sane cases. Now check whether nonexistent headers 7951 # can be detected and how. 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954#include <ac_nonexistent.h> 7955_ACEOF 7956if ac_fn_c_try_cpp "$LINENO"; then : 7957 # Broken: success on invalid input. 7958continue 7959else 7960 # Passes both tests. 7961ac_preproc_ok=: 7962break 7963fi 7964rm -f conftest.err conftest.i conftest.$ac_ext 7965 7966done 7967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7968rm -f conftest.i conftest.err conftest.$ac_ext 7969if $ac_preproc_ok; then : 7970 break 7971fi 7972 7973 done 7974 ac_cv_prog_CPP=$CPP 7975 7976fi 7977 CPP=$ac_cv_prog_CPP 7978else 7979 ac_cv_prog_CPP=$CPP 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7982$as_echo "$CPP" >&6; } 7983ac_preproc_ok=false 7984for ac_c_preproc_warn_flag in '' yes 7985do 7986 # Use a header file that comes with gcc, so configuring glibc 7987 # with a fresh cross-compiler works. 7988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7989 # <limits.h> exists even on freestanding compilers. 7990 # On the NeXT, cc -E runs the code through the compiler's parser, 7991 # not just through cpp. "Syntax error" is here to catch this case. 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994#ifdef __STDC__ 7995# include <limits.h> 7996#else 7997# include <assert.h> 7998#endif 7999 Syntax error 8000_ACEOF 8001if ac_fn_c_try_cpp "$LINENO"; then : 8002 8003else 8004 # Broken: fails on valid input. 8005continue 8006fi 8007rm -f conftest.err conftest.i conftest.$ac_ext 8008 8009 # OK, works on sane cases. Now check whether nonexistent headers 8010 # can be detected and how. 8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8012/* end confdefs.h. */ 8013#include <ac_nonexistent.h> 8014_ACEOF 8015if ac_fn_c_try_cpp "$LINENO"; then : 8016 # Broken: success on invalid input. 8017continue 8018else 8019 # Passes both tests. 8020ac_preproc_ok=: 8021break 8022fi 8023rm -f conftest.err conftest.i conftest.$ac_ext 8024 8025done 8026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8027rm -f conftest.i conftest.err conftest.$ac_ext 8028if $ac_preproc_ok; then : 8029 8030else 8031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8033as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8034See \`config.log' for more details" "$LINENO" 5; } 8035fi 8036 8037ac_ext=c 8038ac_cpp='$CPP $CPPFLAGS' 8039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8041ac_compiler_gnu=$ac_cv_c_compiler_gnu 8042 8043 8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8045$as_echo_n "checking for ANSI C header files... " >&6; } 8046if ${ac_cv_header_stdc+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050/* end confdefs.h. */ 8051#include <stdlib.h> 8052#include <stdarg.h> 8053#include <string.h> 8054#include <float.h> 8055 8056int 8057main () 8058{ 8059 8060 ; 8061 return 0; 8062} 8063_ACEOF 8064if ac_fn_c_try_compile "$LINENO"; then : 8065 ac_cv_header_stdc=yes 8066else 8067 ac_cv_header_stdc=no 8068fi 8069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8070 8071if test $ac_cv_header_stdc = yes; then 8072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074/* end confdefs.h. */ 8075#include <string.h> 8076 8077_ACEOF 8078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8079 $EGREP "memchr" >/dev/null 2>&1; then : 8080 8081else 8082 ac_cv_header_stdc=no 8083fi 8084rm -f conftest* 8085 8086fi 8087 8088if test $ac_cv_header_stdc = yes; then 8089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8091/* end confdefs.h. */ 8092#include <stdlib.h> 8093 8094_ACEOF 8095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8096 $EGREP "free" >/dev/null 2>&1; then : 8097 8098else 8099 ac_cv_header_stdc=no 8100fi 8101rm -f conftest* 8102 8103fi 8104 8105if test $ac_cv_header_stdc = yes; then 8106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8107 if test "$cross_compiling" = yes; then : 8108 : 8109else 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112#include <ctype.h> 8113#include <stdlib.h> 8114#if ((' ' & 0x0FF) == 0x020) 8115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8117#else 8118# define ISLOWER(c) \ 8119 (('a' <= (c) && (c) <= 'i') \ 8120 || ('j' <= (c) && (c) <= 'r') \ 8121 || ('s' <= (c) && (c) <= 'z')) 8122# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8123#endif 8124 8125#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8126int 8127main () 8128{ 8129 int i; 8130 for (i = 0; i < 256; i++) 8131 if (XOR (islower (i), ISLOWER (i)) 8132 || toupper (i) != TOUPPER (i)) 8133 return 2; 8134 return 0; 8135} 8136_ACEOF 8137if ac_fn_c_try_run "$LINENO"; then : 8138 8139else 8140 ac_cv_header_stdc=no 8141fi 8142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8143 conftest.$ac_objext conftest.beam conftest.$ac_ext 8144fi 8145 8146fi 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8149$as_echo "$ac_cv_header_stdc" >&6; } 8150if test $ac_cv_header_stdc = yes; then 8151 8152$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8153 8154fi 8155 8156# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8157for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8158 inttypes.h stdint.h unistd.h 8159do : 8160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8161ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8162" 8163if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8164 cat >>confdefs.h <<_ACEOF 8165#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8166_ACEOF 8167 8168fi 8169 8170done 8171 8172 8173for ac_header in dlfcn.h 8174do : 8175 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8176" 8177if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8178 cat >>confdefs.h <<_ACEOF 8179#define HAVE_DLFCN_H 1 8180_ACEOF 8181 8182fi 8183 8184done 8185 8186 8187 8188 8189func_stripname_cnf () 8190{ 8191 case $2 in 8192 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8193 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8194 esac 8195} # func_stripname_cnf 8196 8197 8198 8199 8200 8201# Set options 8202 8203 8204 8205 enable_dlopen=no 8206 8207 8208 enable_win32_dll=no 8209 8210 8211 # Check whether --enable-shared was given. 8212if test "${enable_shared+set}" = set; then : 8213 enableval=$enable_shared; p=${PACKAGE-default} 8214 case $enableval in 8215 yes) enable_shared=yes ;; 8216 no) enable_shared=no ;; 8217 *) 8218 enable_shared=no 8219 # Look at the argument we got. We use all the common list separators. 8220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8221 for pkg in $enableval; do 8222 IFS=$lt_save_ifs 8223 if test "X$pkg" = "X$p"; then 8224 enable_shared=yes 8225 fi 8226 done 8227 IFS=$lt_save_ifs 8228 ;; 8229 esac 8230else 8231 enable_shared=yes 8232fi 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 # Check whether --enable-static was given. 8243if test "${enable_static+set}" = set; then : 8244 enableval=$enable_static; p=${PACKAGE-default} 8245 case $enableval in 8246 yes) enable_static=yes ;; 8247 no) enable_static=no ;; 8248 *) 8249 enable_static=no 8250 # Look at the argument we got. We use all the common list separators. 8251 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8252 for pkg in $enableval; do 8253 IFS=$lt_save_ifs 8254 if test "X$pkg" = "X$p"; then 8255 enable_static=yes 8256 fi 8257 done 8258 IFS=$lt_save_ifs 8259 ;; 8260 esac 8261else 8262 enable_static=yes 8263fi 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274# Check whether --with-pic was given. 8275if test "${with_pic+set}" = set; then : 8276 withval=$with_pic; lt_p=${PACKAGE-default} 8277 case $withval in 8278 yes|no) pic_mode=$withval ;; 8279 *) 8280 pic_mode=default 8281 # Look at the argument we got. We use all the common list separators. 8282 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8283 for lt_pkg in $withval; do 8284 IFS=$lt_save_ifs 8285 if test "X$lt_pkg" = "X$lt_p"; then 8286 pic_mode=yes 8287 fi 8288 done 8289 IFS=$lt_save_ifs 8290 ;; 8291 esac 8292else 8293 pic_mode=default 8294fi 8295 8296 8297 8298 8299 8300 8301 8302 8303 # Check whether --enable-fast-install was given. 8304if test "${enable_fast_install+set}" = set; then : 8305 enableval=$enable_fast_install; p=${PACKAGE-default} 8306 case $enableval in 8307 yes) enable_fast_install=yes ;; 8308 no) enable_fast_install=no ;; 8309 *) 8310 enable_fast_install=no 8311 # Look at the argument we got. We use all the common list separators. 8312 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8313 for pkg in $enableval; do 8314 IFS=$lt_save_ifs 8315 if test "X$pkg" = "X$p"; then 8316 enable_fast_install=yes 8317 fi 8318 done 8319 IFS=$lt_save_ifs 8320 ;; 8321 esac 8322else 8323 enable_fast_install=yes 8324fi 8325 8326 8327 8328 8329 8330 8331 8332 8333 shared_archive_member_spec= 8334case $host,$enable_shared in 8335power*-*-aix[5-9]*,yes) 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8337$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8338 8339# Check whether --with-aix-soname was given. 8340if test "${with_aix_soname+set}" = set; then : 8341 withval=$with_aix_soname; case $withval in 8342 aix|svr4|both) 8343 ;; 8344 *) 8345 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8346 ;; 8347 esac 8348 lt_cv_with_aix_soname=$with_aix_soname 8349else 8350 if ${lt_cv_with_aix_soname+:} false; then : 8351 $as_echo_n "(cached) " >&6 8352else 8353 lt_cv_with_aix_soname=aix 8354fi 8355 8356 with_aix_soname=$lt_cv_with_aix_soname 8357fi 8358 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8360$as_echo "$with_aix_soname" >&6; } 8361 if test aix != "$with_aix_soname"; then 8362 # For the AIX way of multilib, we name the shared archive member 8363 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8364 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8365 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8366 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8367 if test 64 = "${OBJECT_MODE-32}"; then 8368 shared_archive_member_spec=shr_64 8369 else 8370 shared_archive_member_spec=shr 8371 fi 8372 fi 8373 ;; 8374*) 8375 with_aix_soname=aix 8376 ;; 8377esac 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388# This can be used to rebuild libtool when needed 8389LIBTOOL_DEPS=$ltmain 8390 8391# Always use our own libtool. 8392LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 8423test -z "$LN_S" && LN_S="ln -s" 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438if test -n "${ZSH_VERSION+set}"; then 8439 setopt NO_GLOB_SUBST 8440fi 8441 8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8443$as_echo_n "checking for objdir... " >&6; } 8444if ${lt_cv_objdir+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 rm -f .libs 2>/dev/null 8448mkdir .libs 2>/dev/null 8449if test -d .libs; then 8450 lt_cv_objdir=.libs 8451else 8452 # MS-DOS does not allow filenames that begin with a dot. 8453 lt_cv_objdir=_libs 8454fi 8455rmdir .libs 2>/dev/null 8456fi 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8458$as_echo "$lt_cv_objdir" >&6; } 8459objdir=$lt_cv_objdir 8460 8461 8462 8463 8464 8465cat >>confdefs.h <<_ACEOF 8466#define LT_OBJDIR "$lt_cv_objdir/" 8467_ACEOF 8468 8469 8470 8471 8472case $host_os in 8473aix3*) 8474 # AIX sometimes has problems with the GCC collect2 program. For some 8475 # reason, if we set the COLLECT_NAMES environment variable, the problems 8476 # vanish in a puff of smoke. 8477 if test set != "${COLLECT_NAMES+set}"; then 8478 COLLECT_NAMES= 8479 export COLLECT_NAMES 8480 fi 8481 ;; 8482esac 8483 8484# Global variables: 8485ofile=libtool 8486can_build_shared=yes 8487 8488# All known linkers require a '.a' archive for static linking (except MSVC, 8489# which needs '.lib'). 8490libext=a 8491 8492with_gnu_ld=$lt_cv_prog_gnu_ld 8493 8494old_CC=$CC 8495old_CFLAGS=$CFLAGS 8496 8497# Set sane defaults for various variables 8498test -z "$CC" && CC=cc 8499test -z "$LTCC" && LTCC=$CC 8500test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8501test -z "$LD" && LD=ld 8502test -z "$ac_objext" && ac_objext=o 8503 8504func_cc_basename $compiler 8505cc_basename=$func_cc_basename_result 8506 8507 8508# Only perform the check for file, if the check method requires it 8509test -z "$MAGIC_CMD" && MAGIC_CMD=file 8510case $deplibs_check_method in 8511file_magic*) 8512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8514$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8515if ${lt_cv_path_MAGIC_CMD+:} false; then : 8516 $as_echo_n "(cached) " >&6 8517else 8518 case $MAGIC_CMD in 8519[\\/*] | ?:[\\/]*) 8520 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8521 ;; 8522*) 8523 lt_save_MAGIC_CMD=$MAGIC_CMD 8524 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8526 for ac_dir in $ac_dummy; do 8527 IFS=$lt_save_ifs 8528 test -z "$ac_dir" && ac_dir=. 8529 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8530 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8531 if test -n "$file_magic_test_file"; then 8532 case $deplibs_check_method in 8533 "file_magic "*) 8534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8537 $EGREP "$file_magic_regex" > /dev/null; then 8538 : 8539 else 8540 cat <<_LT_EOF 1>&2 8541 8542*** Warning: the command libtool uses to detect shared libraries, 8543*** $file_magic_cmd, produces output that libtool cannot recognize. 8544*** The result is that libtool may fail to recognize shared libraries 8545*** as such. This will affect the creation of libtool libraries that 8546*** depend on shared libraries, but programs linked with such libtool 8547*** libraries will work regardless of this problem. Nevertheless, you 8548*** may want to report the problem to your system manager and/or to 8549*** bug-libtool@gnu.org 8550 8551_LT_EOF 8552 fi ;; 8553 esac 8554 fi 8555 break 8556 fi 8557 done 8558 IFS=$lt_save_ifs 8559 MAGIC_CMD=$lt_save_MAGIC_CMD 8560 ;; 8561esac 8562fi 8563 8564MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8565if test -n "$MAGIC_CMD"; then 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8567$as_echo "$MAGIC_CMD" >&6; } 8568else 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8570$as_echo "no" >&6; } 8571fi 8572 8573 8574 8575 8576 8577if test -z "$lt_cv_path_MAGIC_CMD"; then 8578 if test -n "$ac_tool_prefix"; then 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8580$as_echo_n "checking for file... " >&6; } 8581if ${lt_cv_path_MAGIC_CMD+:} false; then : 8582 $as_echo_n "(cached) " >&6 8583else 8584 case $MAGIC_CMD in 8585[\\/*] | ?:[\\/]*) 8586 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8587 ;; 8588*) 8589 lt_save_MAGIC_CMD=$MAGIC_CMD 8590 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8592 for ac_dir in $ac_dummy; do 8593 IFS=$lt_save_ifs 8594 test -z "$ac_dir" && ac_dir=. 8595 if test -f "$ac_dir/file"; then 8596 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8597 if test -n "$file_magic_test_file"; then 8598 case $deplibs_check_method in 8599 "file_magic "*) 8600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8601 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8603 $EGREP "$file_magic_regex" > /dev/null; then 8604 : 8605 else 8606 cat <<_LT_EOF 1>&2 8607 8608*** Warning: the command libtool uses to detect shared libraries, 8609*** $file_magic_cmd, produces output that libtool cannot recognize. 8610*** The result is that libtool may fail to recognize shared libraries 8611*** as such. This will affect the creation of libtool libraries that 8612*** depend on shared libraries, but programs linked with such libtool 8613*** libraries will work regardless of this problem. Nevertheless, you 8614*** may want to report the problem to your system manager and/or to 8615*** bug-libtool@gnu.org 8616 8617_LT_EOF 8618 fi ;; 8619 esac 8620 fi 8621 break 8622 fi 8623 done 8624 IFS=$lt_save_ifs 8625 MAGIC_CMD=$lt_save_MAGIC_CMD 8626 ;; 8627esac 8628fi 8629 8630MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8631if test -n "$MAGIC_CMD"; then 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8633$as_echo "$MAGIC_CMD" >&6; } 8634else 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8636$as_echo "no" >&6; } 8637fi 8638 8639 8640 else 8641 MAGIC_CMD=: 8642 fi 8643fi 8644 8645 fi 8646 ;; 8647esac 8648 8649# Use C for the default configuration in the libtool script 8650 8651lt_save_CC=$CC 8652ac_ext=c 8653ac_cpp='$CPP $CPPFLAGS' 8654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8656ac_compiler_gnu=$ac_cv_c_compiler_gnu 8657 8658 8659# Source file extension for C test sources. 8660ac_ext=c 8661 8662# Object file extension for compiled C test sources. 8663objext=o 8664objext=$objext 8665 8666# Code to be used in simple compile tests 8667lt_simple_compile_test_code="int some_variable = 0;" 8668 8669# Code to be used in simple link tests 8670lt_simple_link_test_code='int main(){return(0);}' 8671 8672 8673 8674 8675 8676 8677 8678# If no C compiler was specified, use CC. 8679LTCC=${LTCC-"$CC"} 8680 8681# If no C compiler flags were specified, use CFLAGS. 8682LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8683 8684# Allow CC to be a program name with arguments. 8685compiler=$CC 8686 8687# Save the default compiler, since it gets overwritten when the other 8688# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8689compiler_DEFAULT=$CC 8690 8691# save warnings/boilerplate of simple test code 8692ac_outfile=conftest.$ac_objext 8693echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8694eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8695_lt_compiler_boilerplate=`cat conftest.err` 8696$RM conftest* 8697 8698ac_outfile=conftest.$ac_objext 8699echo "$lt_simple_link_test_code" >conftest.$ac_ext 8700eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8701_lt_linker_boilerplate=`cat conftest.err` 8702$RM -r conftest* 8703 8704 8705if test -n "$compiler"; then 8706 8707lt_prog_compiler_no_builtin_flag= 8708 8709if test yes = "$GCC"; then 8710 case $cc_basename in 8711 nvcc*) 8712 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8713 *) 8714 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8715 esac 8716 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8718$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8719if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8720 $as_echo_n "(cached) " >&6 8721else 8722 lt_cv_prog_compiler_rtti_exceptions=no 8723 ac_outfile=conftest.$ac_objext 8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8725 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8726 # Insert the option either (1) after the last *FLAGS variable, or 8727 # (2) before a word containing "conftest.", or (3) at the end. 8728 # Note that $ac_compile itself does not contain backslashes and begins 8729 # with a dollar sign (not a hyphen), so the echo should work correctly. 8730 # The option is referenced via a variable to avoid confusing sed. 8731 lt_compile=`echo "$ac_compile" | $SED \ 8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8734 -e 's:$: $lt_compiler_flag:'` 8735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8736 (eval "$lt_compile" 2>conftest.err) 8737 ac_status=$? 8738 cat conftest.err >&5 8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8740 if (exit $ac_status) && test -s "$ac_outfile"; then 8741 # The compiler can only warn and ignore the option if not recognized 8742 # So say no if there are warnings other than the usual output. 8743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8746 lt_cv_prog_compiler_rtti_exceptions=yes 8747 fi 8748 fi 8749 $RM conftest* 8750 8751fi 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8753$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8754 8755if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8756 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8757else 8758 : 8759fi 8760 8761fi 8762 8763 8764 8765 8766 8767 8768 lt_prog_compiler_wl= 8769lt_prog_compiler_pic= 8770lt_prog_compiler_static= 8771 8772 8773 if test yes = "$GCC"; then 8774 lt_prog_compiler_wl='-Wl,' 8775 lt_prog_compiler_static='-static' 8776 8777 case $host_os in 8778 aix*) 8779 # All AIX code is PIC. 8780 if test ia64 = "$host_cpu"; then 8781 # AIX 5 now supports IA64 processor 8782 lt_prog_compiler_static='-Bstatic' 8783 fi 8784 lt_prog_compiler_pic='-fPIC' 8785 ;; 8786 8787 amigaos*) 8788 case $host_cpu in 8789 powerpc) 8790 # see comment about AmigaOS4 .so support 8791 lt_prog_compiler_pic='-fPIC' 8792 ;; 8793 m68k) 8794 # FIXME: we need at least 68020 code to build shared libraries, but 8795 # adding the '-m68020' flag to GCC prevents building anything better, 8796 # like '-m68040'. 8797 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8798 ;; 8799 esac 8800 ;; 8801 8802 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8803 # PIC is the default for these OSes. 8804 ;; 8805 8806 mingw* | cygwin* | pw32* | os2* | cegcc*) 8807 # This hack is so that the source file can tell whether it is being 8808 # built for inclusion in a dll (and should export symbols for example). 8809 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8810 # (--disable-auto-import) libraries 8811 lt_prog_compiler_pic='-DDLL_EXPORT' 8812 case $host_os in 8813 os2*) 8814 lt_prog_compiler_static='$wl-static' 8815 ;; 8816 esac 8817 ;; 8818 8819 darwin* | rhapsody*) 8820 # PIC is the default on this platform 8821 # Common symbols not allowed in MH_DYLIB files 8822 lt_prog_compiler_pic='-fno-common' 8823 ;; 8824 8825 haiku*) 8826 # PIC is the default for Haiku. 8827 # The "-static" flag exists, but is broken. 8828 lt_prog_compiler_static= 8829 ;; 8830 8831 hpux*) 8832 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8833 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8834 # sets the default TLS model and affects inlining. 8835 case $host_cpu in 8836 hppa*64*) 8837 # +Z the default 8838 ;; 8839 *) 8840 lt_prog_compiler_pic='-fPIC' 8841 ;; 8842 esac 8843 ;; 8844 8845 interix[3-9]*) 8846 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8847 # Instead, we relocate shared libraries at runtime. 8848 ;; 8849 8850 msdosdjgpp*) 8851 # Just because we use GCC doesn't mean we suddenly get shared libraries 8852 # on systems that don't support them. 8853 lt_prog_compiler_can_build_shared=no 8854 enable_shared=no 8855 ;; 8856 8857 *nto* | *qnx*) 8858 # QNX uses GNU C++, but need to define -shared option too, otherwise 8859 # it will coredump. 8860 lt_prog_compiler_pic='-fPIC -shared' 8861 ;; 8862 8863 sysv4*MP*) 8864 if test -d /usr/nec; then 8865 lt_prog_compiler_pic=-Kconform_pic 8866 fi 8867 ;; 8868 8869 *) 8870 lt_prog_compiler_pic='-fPIC' 8871 ;; 8872 esac 8873 8874 case $cc_basename in 8875 nvcc*) # Cuda Compiler Driver 2.2 8876 lt_prog_compiler_wl='-Xlinker ' 8877 if test -n "$lt_prog_compiler_pic"; then 8878 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8879 fi 8880 ;; 8881 esac 8882 else 8883 # PORTME Check for flag to pass linker flags through the system compiler. 8884 case $host_os in 8885 aix*) 8886 lt_prog_compiler_wl='-Wl,' 8887 if test ia64 = "$host_cpu"; then 8888 # AIX 5 now supports IA64 processor 8889 lt_prog_compiler_static='-Bstatic' 8890 else 8891 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8892 fi 8893 ;; 8894 8895 darwin* | rhapsody*) 8896 # PIC is the default on this platform 8897 # Common symbols not allowed in MH_DYLIB files 8898 lt_prog_compiler_pic='-fno-common' 8899 case $cc_basename in 8900 nagfor*) 8901 # NAG Fortran compiler 8902 lt_prog_compiler_wl='-Wl,-Wl,,' 8903 lt_prog_compiler_pic='-PIC' 8904 lt_prog_compiler_static='-Bstatic' 8905 ;; 8906 esac 8907 ;; 8908 8909 mingw* | cygwin* | pw32* | os2* | cegcc*) 8910 # This hack is so that the source file can tell whether it is being 8911 # built for inclusion in a dll (and should export symbols for example). 8912 lt_prog_compiler_pic='-DDLL_EXPORT' 8913 case $host_os in 8914 os2*) 8915 lt_prog_compiler_static='$wl-static' 8916 ;; 8917 esac 8918 ;; 8919 8920 hpux9* | hpux10* | hpux11*) 8921 lt_prog_compiler_wl='-Wl,' 8922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8923 # not for PA HP-UX. 8924 case $host_cpu in 8925 hppa*64*|ia64*) 8926 # +Z the default 8927 ;; 8928 *) 8929 lt_prog_compiler_pic='+Z' 8930 ;; 8931 esac 8932 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8933 lt_prog_compiler_static='$wl-a ${wl}archive' 8934 ;; 8935 8936 irix5* | irix6* | nonstopux*) 8937 lt_prog_compiler_wl='-Wl,' 8938 # PIC (with -KPIC) is the default. 8939 lt_prog_compiler_static='-non_shared' 8940 ;; 8941 8942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8943 case $cc_basename in 8944 # old Intel for x86_64, which still supported -KPIC. 8945 ecc*) 8946 lt_prog_compiler_wl='-Wl,' 8947 lt_prog_compiler_pic='-KPIC' 8948 lt_prog_compiler_static='-static' 8949 ;; 8950 # flang / f18. f95 an alias for gfortran or flang on Debian 8951 flang* | f18* | f95*) 8952 lt_prog_compiler_wl='-Wl,' 8953 lt_prog_compiler_pic='-fPIC' 8954 lt_prog_compiler_static='-static' 8955 ;; 8956 # icc used to be incompatible with GCC. 8957 # ICC 10 doesn't accept -KPIC any more. 8958 icc* | ifort*) 8959 lt_prog_compiler_wl='-Wl,' 8960 lt_prog_compiler_pic='-fPIC' 8961 lt_prog_compiler_static='-static' 8962 ;; 8963 # Lahey Fortran 8.1. 8964 lf95*) 8965 lt_prog_compiler_wl='-Wl,' 8966 lt_prog_compiler_pic='--shared' 8967 lt_prog_compiler_static='--static' 8968 ;; 8969 nagfor*) 8970 # NAG Fortran compiler 8971 lt_prog_compiler_wl='-Wl,-Wl,,' 8972 lt_prog_compiler_pic='-PIC' 8973 lt_prog_compiler_static='-Bstatic' 8974 ;; 8975 tcc*) 8976 # Fabrice Bellard et al's Tiny C Compiler 8977 lt_prog_compiler_wl='-Wl,' 8978 lt_prog_compiler_pic='-fPIC' 8979 lt_prog_compiler_static='-static' 8980 ;; 8981 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8982 # Portland Group compilers (*not* the Pentium gcc compiler, 8983 # which looks to be a dead project) 8984 lt_prog_compiler_wl='-Wl,' 8985 lt_prog_compiler_pic='-fpic' 8986 lt_prog_compiler_static='-Bstatic' 8987 ;; 8988 ccc*) 8989 lt_prog_compiler_wl='-Wl,' 8990 # All Alpha code is PIC. 8991 lt_prog_compiler_static='-non_shared' 8992 ;; 8993 xl* | bgxl* | bgf* | mpixl*) 8994 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8995 lt_prog_compiler_wl='-Wl,' 8996 lt_prog_compiler_pic='-qpic' 8997 lt_prog_compiler_static='-qstaticlink' 8998 ;; 8999 *) 9000 case `$CC -V 2>&1 | sed 5q` in 9001 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9002 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9003 lt_prog_compiler_pic='-KPIC' 9004 lt_prog_compiler_static='-Bstatic' 9005 lt_prog_compiler_wl='' 9006 ;; 9007 *Sun\ F* | *Sun*Fortran*) 9008 lt_prog_compiler_pic='-KPIC' 9009 lt_prog_compiler_static='-Bstatic' 9010 lt_prog_compiler_wl='-Qoption ld ' 9011 ;; 9012 *Sun\ C*) 9013 # Sun C 5.9 9014 lt_prog_compiler_pic='-KPIC' 9015 lt_prog_compiler_static='-Bstatic' 9016 lt_prog_compiler_wl='-Wl,' 9017 ;; 9018 *Intel*\ [CF]*Compiler*) 9019 lt_prog_compiler_wl='-Wl,' 9020 lt_prog_compiler_pic='-fPIC' 9021 lt_prog_compiler_static='-static' 9022 ;; 9023 *Portland\ Group*) 9024 lt_prog_compiler_wl='-Wl,' 9025 lt_prog_compiler_pic='-fpic' 9026 lt_prog_compiler_static='-Bstatic' 9027 ;; 9028 esac 9029 ;; 9030 esac 9031 ;; 9032 9033 newsos6) 9034 lt_prog_compiler_pic='-KPIC' 9035 lt_prog_compiler_static='-Bstatic' 9036 ;; 9037 9038 *nto* | *qnx*) 9039 # QNX uses GNU C++, but need to define -shared option too, otherwise 9040 # it will coredump. 9041 lt_prog_compiler_pic='-fPIC -shared' 9042 ;; 9043 9044 osf3* | osf4* | osf5*) 9045 lt_prog_compiler_wl='-Wl,' 9046 # All OSF/1 code is PIC. 9047 lt_prog_compiler_static='-non_shared' 9048 ;; 9049 9050 rdos*) 9051 lt_prog_compiler_static='-non_shared' 9052 ;; 9053 9054 solaris*) 9055 lt_prog_compiler_pic='-KPIC' 9056 lt_prog_compiler_static='-Bstatic' 9057 case $cc_basename in 9058 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9059 lt_prog_compiler_wl='-Qoption ld ';; 9060 *) 9061 lt_prog_compiler_wl='-Wl,';; 9062 esac 9063 ;; 9064 9065 sunos4*) 9066 lt_prog_compiler_wl='-Qoption ld ' 9067 lt_prog_compiler_pic='-PIC' 9068 lt_prog_compiler_static='-Bstatic' 9069 ;; 9070 9071 sysv4 | sysv4.2uw2* | sysv4.3*) 9072 lt_prog_compiler_wl='-Wl,' 9073 lt_prog_compiler_pic='-KPIC' 9074 lt_prog_compiler_static='-Bstatic' 9075 ;; 9076 9077 sysv4*MP*) 9078 if test -d /usr/nec; then 9079 lt_prog_compiler_pic='-Kconform_pic' 9080 lt_prog_compiler_static='-Bstatic' 9081 fi 9082 ;; 9083 9084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9085 lt_prog_compiler_wl='-Wl,' 9086 lt_prog_compiler_pic='-KPIC' 9087 lt_prog_compiler_static='-Bstatic' 9088 ;; 9089 9090 unicos*) 9091 lt_prog_compiler_wl='-Wl,' 9092 lt_prog_compiler_can_build_shared=no 9093 ;; 9094 9095 uts4*) 9096 lt_prog_compiler_pic='-pic' 9097 lt_prog_compiler_static='-Bstatic' 9098 ;; 9099 9100 *) 9101 lt_prog_compiler_can_build_shared=no 9102 ;; 9103 esac 9104 fi 9105 9106case $host_os in 9107 # For platforms that do not support PIC, -DPIC is meaningless: 9108 *djgpp*) 9109 lt_prog_compiler_pic= 9110 ;; 9111 *) 9112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9113 ;; 9114esac 9115 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9117$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9118if ${lt_cv_prog_compiler_pic+:} false; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9122fi 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9124$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9125lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9126 9127# 9128# Check to make sure the PIC flag actually works. 9129# 9130if test -n "$lt_prog_compiler_pic"; then 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9132$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9133if ${lt_cv_prog_compiler_pic_works+:} false; then : 9134 $as_echo_n "(cached) " >&6 9135else 9136 lt_cv_prog_compiler_pic_works=no 9137 ac_outfile=conftest.$ac_objext 9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9139 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9140 # Insert the option either (1) after the last *FLAGS variable, or 9141 # (2) before a word containing "conftest.", or (3) at the end. 9142 # Note that $ac_compile itself does not contain backslashes and begins 9143 # with a dollar sign (not a hyphen), so the echo should work correctly. 9144 # The option is referenced via a variable to avoid confusing sed. 9145 lt_compile=`echo "$ac_compile" | $SED \ 9146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9148 -e 's:$: $lt_compiler_flag:'` 9149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9150 (eval "$lt_compile" 2>conftest.err) 9151 ac_status=$? 9152 cat conftest.err >&5 9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9154 if (exit $ac_status) && test -s "$ac_outfile"; then 9155 # The compiler can only warn and ignore the option if not recognized 9156 # So say no if there are warnings other than the usual output. 9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9160 lt_cv_prog_compiler_pic_works=yes 9161 fi 9162 fi 9163 $RM conftest* 9164 9165fi 9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9167$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9168 9169if test yes = "$lt_cv_prog_compiler_pic_works"; then 9170 case $lt_prog_compiler_pic in 9171 "" | " "*) ;; 9172 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9173 esac 9174else 9175 lt_prog_compiler_pic= 9176 lt_prog_compiler_can_build_shared=no 9177fi 9178 9179fi 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191# 9192# Check to make sure the static flag actually works. 9193# 9194wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9196$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9197if ${lt_cv_prog_compiler_static_works+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199else 9200 lt_cv_prog_compiler_static_works=no 9201 save_LDFLAGS=$LDFLAGS 9202 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9203 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9205 # The linker can only warn and ignore the option if not recognized 9206 # So say no if there are warnings 9207 if test -s conftest.err; then 9208 # Append any errors to the config.log. 9209 cat conftest.err 1>&5 9210 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9212 if diff conftest.exp conftest.er2 >/dev/null; then 9213 lt_cv_prog_compiler_static_works=yes 9214 fi 9215 else 9216 lt_cv_prog_compiler_static_works=yes 9217 fi 9218 fi 9219 $RM -r conftest* 9220 LDFLAGS=$save_LDFLAGS 9221 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9224$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9225 9226if test yes = "$lt_cv_prog_compiler_static_works"; then 9227 : 9228else 9229 lt_prog_compiler_static= 9230fi 9231 9232 9233 9234 9235 9236 9237 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9239$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9240if ${lt_cv_prog_compiler_c_o+:} false; then : 9241 $as_echo_n "(cached) " >&6 9242else 9243 lt_cv_prog_compiler_c_o=no 9244 $RM -r conftest 2>/dev/null 9245 mkdir conftest 9246 cd conftest 9247 mkdir out 9248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9249 9250 lt_compiler_flag="-o out/conftest2.$ac_objext" 9251 # Insert the option either (1) after the last *FLAGS variable, or 9252 # (2) before a word containing "conftest.", or (3) at the end. 9253 # Note that $ac_compile itself does not contain backslashes and begins 9254 # with a dollar sign (not a hyphen), so the echo should work correctly. 9255 lt_compile=`echo "$ac_compile" | $SED \ 9256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9258 -e 's:$: $lt_compiler_flag:'` 9259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9260 (eval "$lt_compile" 2>out/conftest.err) 9261 ac_status=$? 9262 cat out/conftest.err >&5 9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9264 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9265 then 9266 # The compiler can only warn and ignore the option if not recognized 9267 # So say no if there are warnings 9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9271 lt_cv_prog_compiler_c_o=yes 9272 fi 9273 fi 9274 chmod u+w . 2>&5 9275 $RM conftest* 9276 # SGI C++ compiler will create directory out/ii_files/ for 9277 # template instantiation 9278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9279 $RM out/* && rmdir out 9280 cd .. 9281 $RM -r conftest 9282 $RM conftest* 9283 9284fi 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9286$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9287 9288 9289 9290 9291 9292 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9294$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9295if ${lt_cv_prog_compiler_c_o+:} false; then : 9296 $as_echo_n "(cached) " >&6 9297else 9298 lt_cv_prog_compiler_c_o=no 9299 $RM -r conftest 2>/dev/null 9300 mkdir conftest 9301 cd conftest 9302 mkdir out 9303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9304 9305 lt_compiler_flag="-o out/conftest2.$ac_objext" 9306 # Insert the option either (1) after the last *FLAGS variable, or 9307 # (2) before a word containing "conftest.", or (3) at the end. 9308 # Note that $ac_compile itself does not contain backslashes and begins 9309 # with a dollar sign (not a hyphen), so the echo should work correctly. 9310 lt_compile=`echo "$ac_compile" | $SED \ 9311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9313 -e 's:$: $lt_compiler_flag:'` 9314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9315 (eval "$lt_compile" 2>out/conftest.err) 9316 ac_status=$? 9317 cat out/conftest.err >&5 9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9319 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9320 then 9321 # The compiler can only warn and ignore the option if not recognized 9322 # So say no if there are warnings 9323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9326 lt_cv_prog_compiler_c_o=yes 9327 fi 9328 fi 9329 chmod u+w . 2>&5 9330 $RM conftest* 9331 # SGI C++ compiler will create directory out/ii_files/ for 9332 # template instantiation 9333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9334 $RM out/* && rmdir out 9335 cd .. 9336 $RM -r conftest 9337 $RM conftest* 9338 9339fi 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9341$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9342 9343 9344 9345 9346hard_links=nottested 9347if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9348 # do not overwrite the value of need_locks provided by the user 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9350$as_echo_n "checking if we can lock with hard links... " >&6; } 9351 hard_links=yes 9352 $RM conftest* 9353 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9354 touch conftest.a 9355 ln conftest.a conftest.b 2>&5 || hard_links=no 9356 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9358$as_echo "$hard_links" >&6; } 9359 if test no = "$hard_links"; then 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9361$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9362 need_locks=warn 9363 fi 9364else 9365 need_locks=no 9366fi 9367 9368 9369 9370 9371 9372 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9374$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9375 9376 runpath_var= 9377 allow_undefined_flag= 9378 always_export_symbols=no 9379 archive_cmds= 9380 archive_expsym_cmds= 9381 compiler_needs_object=no 9382 enable_shared_with_static_runtimes=no 9383 export_dynamic_flag_spec= 9384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9385 hardcode_automatic=no 9386 hardcode_direct=no 9387 hardcode_direct_absolute=no 9388 hardcode_libdir_flag_spec= 9389 hardcode_libdir_separator= 9390 hardcode_minus_L=no 9391 hardcode_shlibpath_var=unsupported 9392 inherit_rpath=no 9393 link_all_deplibs=unknown 9394 module_cmds= 9395 module_expsym_cmds= 9396 old_archive_from_new_cmds= 9397 old_archive_from_expsyms_cmds= 9398 thread_safe_flag_spec= 9399 whole_archive_flag_spec= 9400 # include_expsyms should be a list of space-separated symbols to be *always* 9401 # included in the symbol list 9402 include_expsyms= 9403 # exclude_expsyms can be an extended regexp of symbols to exclude 9404 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9405 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9406 # as well as any symbol that contains 'd'. 9407 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9409 # platforms (ab)use it in PIC code, but their linkers get confused if 9410 # the symbol is explicitly referenced. Since portable code cannot 9411 # rely on this symbol name, it's probably fine to never include it in 9412 # preloaded symbol tables. 9413 # Exclude shared library initialization/finalization symbols. 9414 extract_expsyms_cmds= 9415 9416 case $host_os in 9417 cygwin* | mingw* | pw32* | cegcc*) 9418 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9419 # When not using gcc, we currently assume that we are using 9420 # Microsoft Visual C++. 9421 if test yes != "$GCC"; then 9422 with_gnu_ld=no 9423 fi 9424 ;; 9425 interix*) 9426 # we just hope/assume this is gcc and not c89 (= MSVC++) 9427 with_gnu_ld=yes 9428 ;; 9429 openbsd* | bitrig*) 9430 with_gnu_ld=no 9431 ;; 9432 linux* | k*bsd*-gnu | gnu*) 9433 link_all_deplibs=no 9434 ;; 9435 esac 9436 9437 ld_shlibs=yes 9438 9439 # On some targets, GNU ld is compatible enough with the native linker 9440 # that we're better off using the native interface for both. 9441 lt_use_gnu_ld_interface=no 9442 if test yes = "$with_gnu_ld"; then 9443 case $host_os in 9444 aix*) 9445 # The AIX port of GNU ld has always aspired to compatibility 9446 # with the native linker. However, as the warning in the GNU ld 9447 # block says, versions before 2.19.5* couldn't really create working 9448 # shared libraries, regardless of the interface used. 9449 case `$LD -v 2>&1` in 9450 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9451 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9452 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9453 *) 9454 lt_use_gnu_ld_interface=yes 9455 ;; 9456 esac 9457 ;; 9458 *) 9459 lt_use_gnu_ld_interface=yes 9460 ;; 9461 esac 9462 fi 9463 9464 if test yes = "$lt_use_gnu_ld_interface"; then 9465 # If archive_cmds runs LD, not CC, wlarc should be empty 9466 wlarc='$wl' 9467 9468 # Set some defaults for GNU ld with shared library support. These 9469 # are reset later if shared libraries are not supported. Putting them 9470 # here allows them to be overridden if necessary. 9471 runpath_var=LD_RUN_PATH 9472 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9473 export_dynamic_flag_spec='$wl--export-dynamic' 9474 # ancient GNU ld didn't support --whole-archive et. al. 9475 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9476 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9477 else 9478 whole_archive_flag_spec= 9479 fi 9480 supports_anon_versioning=no 9481 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9482 *GNU\ gold*) supports_anon_versioning=yes ;; 9483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9486 *\ 2.11.*) ;; # other 2.11 versions 9487 *) supports_anon_versioning=yes ;; 9488 esac 9489 9490 # See if GNU ld supports shared libraries. 9491 case $host_os in 9492 aix[3-9]*) 9493 # On AIX/PPC, the GNU linker is very broken 9494 if test ia64 != "$host_cpu"; then 9495 ld_shlibs=no 9496 cat <<_LT_EOF 1>&2 9497 9498*** Warning: the GNU linker, at least up to release 2.19, is reported 9499*** to be unable to reliably create shared libraries on AIX. 9500*** Therefore, libtool is disabling shared libraries support. If you 9501*** really care for shared libraries, you may want to install binutils 9502*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9503*** You will then need to restart the configuration process. 9504 9505_LT_EOF 9506 fi 9507 ;; 9508 9509 amigaos*) 9510 case $host_cpu in 9511 powerpc) 9512 # see comment about AmigaOS4 .so support 9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9514 archive_expsym_cmds='' 9515 ;; 9516 m68k) 9517 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)' 9518 hardcode_libdir_flag_spec='-L$libdir' 9519 hardcode_minus_L=yes 9520 ;; 9521 esac 9522 ;; 9523 9524 beos*) 9525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9526 allow_undefined_flag=unsupported 9527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9528 # support --undefined. This deserves some investigation. FIXME 9529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9530 else 9531 ld_shlibs=no 9532 fi 9533 ;; 9534 9535 cygwin* | mingw* | pw32* | cegcc*) 9536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9537 # as there is no search path for DLLs. 9538 hardcode_libdir_flag_spec='-L$libdir' 9539 export_dynamic_flag_spec='$wl--export-all-symbols' 9540 allow_undefined_flag=unsupported 9541 always_export_symbols=no 9542 enable_shared_with_static_runtimes=yes 9543 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' 9544 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9545 9546 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9548 # If the export-symbols file already is a .def file, use it as 9549 # is; otherwise, prepend EXPORTS... 9550 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9551 cp $export_symbols $output_objdir/$soname.def; 9552 else 9553 echo EXPORTS > $output_objdir/$soname.def; 9554 cat $export_symbols >> $output_objdir/$soname.def; 9555 fi~ 9556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9557 else 9558 ld_shlibs=no 9559 fi 9560 ;; 9561 9562 haiku*) 9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9564 link_all_deplibs=yes 9565 ;; 9566 9567 os2*) 9568 hardcode_libdir_flag_spec='-L$libdir' 9569 hardcode_minus_L=yes 9570 allow_undefined_flag=unsupported 9571 shrext_cmds=.dll 9572 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9575 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9576 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9577 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9578 emximp -o $lib $output_objdir/$libname.def' 9579 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9580 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9581 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9582 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9583 prefix_cmds="$SED"~ 9584 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9585 prefix_cmds="$prefix_cmds -e 1d"; 9586 fi~ 9587 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9588 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9589 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9590 emximp -o $lib $output_objdir/$libname.def' 9591 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9592 enable_shared_with_static_runtimes=yes 9593 ;; 9594 9595 interix[3-9]*) 9596 hardcode_direct=no 9597 hardcode_shlibpath_var=no 9598 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9599 export_dynamic_flag_spec='$wl-E' 9600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9601 # Instead, shared libraries are loaded at an image base (0x10000000 by 9602 # default) and relocated if they conflict, which is a slow very memory 9603 # consuming and fragmenting process. To avoid this, we pick a random, 9604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9605 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9607 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' 9608 ;; 9609 9610 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9611 tmp_diet=no 9612 if test linux-dietlibc = "$host_os"; then 9613 case $cc_basename in 9614 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9615 esac 9616 fi 9617 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9618 && test no = "$tmp_diet" 9619 then 9620 tmp_addflag=' $pic_flag' 9621 tmp_sharedflag='-shared' 9622 case $cc_basename,$host_cpu in 9623 pgcc*) # Portland Group C compiler 9624 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' 9625 tmp_addflag=' $pic_flag' 9626 ;; 9627 pgf77* | pgf90* | pgf95* | pgfortran*) 9628 # Portland Group f77 and f90 compilers 9629 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' 9630 tmp_addflag=' $pic_flag -Mnomain' ;; 9631 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9632 tmp_addflag=' -i_dynamic' ;; 9633 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9634 tmp_addflag=' -i_dynamic -nofor_main' ;; 9635 ifc* | ifort*) # Intel Fortran compiler 9636 tmp_addflag=' -nofor_main' ;; 9637 lf95*) # Lahey Fortran 8.1 9638 whole_archive_flag_spec= 9639 tmp_sharedflag='--shared' ;; 9640 nagfor*) # NAGFOR 5.3 9641 tmp_sharedflag='-Wl,-shared' ;; 9642 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9643 tmp_sharedflag='-qmkshrobj' 9644 tmp_addflag= ;; 9645 nvcc*) # Cuda Compiler Driver 2.2 9646 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' 9647 compiler_needs_object=yes 9648 ;; 9649 esac 9650 case `$CC -V 2>&1 | sed 5q` in 9651 *Sun\ C*) # Sun C 5.9 9652 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' 9653 compiler_needs_object=yes 9654 tmp_sharedflag='-G' ;; 9655 *Sun\ F*) # Sun Fortran 8.3 9656 tmp_sharedflag='-G' ;; 9657 esac 9658 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9659 9660 if test yes = "$supports_anon_versioning"; then 9661 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9663 echo "local: *; };" >> $output_objdir/$libname.ver~ 9664 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9665 fi 9666 9667 case $cc_basename in 9668 tcc*) 9669 export_dynamic_flag_spec='-rdynamic' 9670 ;; 9671 xlf* | bgf* | bgxlf* | mpixlf*) 9672 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9673 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9674 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9675 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9676 if test yes = "$supports_anon_versioning"; then 9677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9679 echo "local: *; };" >> $output_objdir/$libname.ver~ 9680 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9681 fi 9682 ;; 9683 esac 9684 else 9685 ld_shlibs=no 9686 fi 9687 ;; 9688 9689 netbsd* | netbsdelf*-gnu) 9690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9691 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9692 wlarc= 9693 else 9694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9695 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9696 fi 9697 ;; 9698 9699 solaris*) 9700 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9701 ld_shlibs=no 9702 cat <<_LT_EOF 1>&2 9703 9704*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9705*** create shared libraries on Solaris systems. Therefore, libtool 9706*** is disabling shared libraries support. We urge you to upgrade GNU 9707*** binutils to release 2.9.1 or newer. Another option is to modify 9708*** your PATH or compiler configuration so that the native linker is 9709*** used, and then restart. 9710 9711_LT_EOF 9712 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9713 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9714 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9715 else 9716 ld_shlibs=no 9717 fi 9718 ;; 9719 9720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9721 case `$LD -v 2>&1` in 9722 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9723 ld_shlibs=no 9724 cat <<_LT_EOF 1>&2 9725 9726*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9727*** reliably create shared libraries on SCO systems. Therefore, libtool 9728*** is disabling shared libraries support. We urge you to upgrade GNU 9729*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9730*** your PATH or compiler configuration so that the native linker is 9731*** used, and then restart. 9732 9733_LT_EOF 9734 ;; 9735 *) 9736 # For security reasons, it is highly recommended that you always 9737 # use absolute paths for naming shared libraries, and exclude the 9738 # DT_RUNPATH tag from executables and libraries. But doing so 9739 # requires that you compile everything twice, which is a pain. 9740 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9741 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9743 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9744 else 9745 ld_shlibs=no 9746 fi 9747 ;; 9748 esac 9749 ;; 9750 9751 sunos4*) 9752 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9753 wlarc= 9754 hardcode_direct=yes 9755 hardcode_shlibpath_var=no 9756 ;; 9757 9758 *) 9759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9761 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9762 else 9763 ld_shlibs=no 9764 fi 9765 ;; 9766 esac 9767 9768 if test no = "$ld_shlibs"; then 9769 runpath_var= 9770 hardcode_libdir_flag_spec= 9771 export_dynamic_flag_spec= 9772 whole_archive_flag_spec= 9773 fi 9774 else 9775 # PORTME fill in a description of your system's linker (not GNU ld) 9776 case $host_os in 9777 aix3*) 9778 allow_undefined_flag=unsupported 9779 always_export_symbols=yes 9780 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' 9781 # Note: this linker hardcodes the directories in LIBPATH if there 9782 # are no directories specified by -L. 9783 hardcode_minus_L=yes 9784 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9785 # Neither direct hardcoding nor static linking is supported with a 9786 # broken collect2. 9787 hardcode_direct=unsupported 9788 fi 9789 ;; 9790 9791 aix[4-9]*) 9792 if test ia64 = "$host_cpu"; then 9793 # On IA64, the linker does run time linking by default, so we don't 9794 # have to do anything special. 9795 aix_use_runtimelinking=no 9796 exp_sym_flag='-Bexport' 9797 no_entry_flag= 9798 else 9799 # If we're using GNU nm, then we don't want the "-C" option. 9800 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9801 # Without the "-l" option, or with the "-B" option, AIX nm treats 9802 # weak defined symbols like other global defined symbols, whereas 9803 # GNU nm marks them as "W". 9804 # While the 'weak' keyword is ignored in the Export File, we need 9805 # it in the Import File for the 'aix-soname' feature, so we have 9806 # to replace the "-B" option with "-P" for AIX nm. 9807 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9808 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' 9809 else 9810 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' 9811 fi 9812 aix_use_runtimelinking=no 9813 9814 # Test if we are trying to use run time linking or normal 9815 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9816 # have runtime linking enabled, and use it for executables. 9817 # For shared libraries, we enable/disable runtime linking 9818 # depending on the kind of the shared library created - 9819 # when "with_aix_soname,aix_use_runtimelinking" is: 9820 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9821 # "aix,yes" lib.so shared, rtl:yes, for executables 9822 # lib.a static archive 9823 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9824 # lib.a(lib.so.V) shared, rtl:no, for executables 9825 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9826 # lib.a(lib.so.V) shared, rtl:no 9827 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9828 # lib.a static archive 9829 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9830 for ld_flag in $LDFLAGS; do 9831 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9832 aix_use_runtimelinking=yes 9833 break 9834 fi 9835 done 9836 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9837 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9838 # so we don't have lib.a shared libs to link our executables. 9839 # We have to force runtime linking in this case. 9840 aix_use_runtimelinking=yes 9841 LDFLAGS="$LDFLAGS -Wl,-brtl" 9842 fi 9843 ;; 9844 esac 9845 9846 exp_sym_flag='-bexport' 9847 no_entry_flag='-bnoentry' 9848 fi 9849 9850 # When large executables or shared objects are built, AIX ld can 9851 # have problems creating the table of contents. If linking a library 9852 # or program results in "error TOC overflow" add -mminimal-toc to 9853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9855 9856 archive_cmds='' 9857 hardcode_direct=yes 9858 hardcode_direct_absolute=yes 9859 hardcode_libdir_separator=':' 9860 link_all_deplibs=yes 9861 file_list_spec='$wl-f,' 9862 case $with_aix_soname,$aix_use_runtimelinking in 9863 aix,*) ;; # traditional, no import file 9864 svr4,* | *,yes) # use import file 9865 # The Import File defines what to hardcode. 9866 hardcode_direct=no 9867 hardcode_direct_absolute=no 9868 ;; 9869 esac 9870 9871 if test yes = "$GCC"; then 9872 case $host_os in aix4.[012]|aix4.[012].*) 9873 # We only want to do this on AIX 4.2 and lower, the check 9874 # below for broken collect2 doesn't work under 4.3+ 9875 collect2name=`$CC -print-prog-name=collect2` 9876 if test -f "$collect2name" && 9877 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9878 then 9879 # We have reworked collect2 9880 : 9881 else 9882 # We have old collect2 9883 hardcode_direct=unsupported 9884 # It fails to find uninstalled libraries when the uninstalled 9885 # path is not listed in the libpath. Setting hardcode_minus_L 9886 # to unsupported forces relinking 9887 hardcode_minus_L=yes 9888 hardcode_libdir_flag_spec='-L$libdir' 9889 hardcode_libdir_separator= 9890 fi 9891 ;; 9892 esac 9893 shared_flag='-shared' 9894 if test yes = "$aix_use_runtimelinking"; then 9895 shared_flag="$shared_flag "'$wl-G' 9896 fi 9897 # Need to ensure runtime linking is disabled for the traditional 9898 # shared library, or the linker may eventually find shared libraries 9899 # /with/ Import File - we do not want to mix them. 9900 shared_flag_aix='-shared' 9901 shared_flag_svr4='-shared $wl-G' 9902 else 9903 # not using gcc 9904 if test ia64 = "$host_cpu"; then 9905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9906 # chokes on -Wl,-G. The following line is correct: 9907 shared_flag='-G' 9908 else 9909 if test yes = "$aix_use_runtimelinking"; then 9910 shared_flag='$wl-G' 9911 else 9912 shared_flag='$wl-bM:SRE' 9913 fi 9914 shared_flag_aix='$wl-bM:SRE' 9915 shared_flag_svr4='$wl-G' 9916 fi 9917 fi 9918 9919 export_dynamic_flag_spec='$wl-bexpall' 9920 # It seems that -bexpall does not export symbols beginning with 9921 # underscore (_), so it is better to generate a list of symbols to export. 9922 always_export_symbols=yes 9923 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9924 # Warning - without using the other runtime loading flags (-brtl), 9925 # -berok will link without error, but may produce a broken library. 9926 allow_undefined_flag='-berok' 9927 # Determine the default libpath from the value encoded in an 9928 # empty executable. 9929 if test set = "${lt_cv_aix_libpath+set}"; then 9930 aix_libpath=$lt_cv_aix_libpath 9931else 9932 if ${lt_cv_aix_libpath_+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937 9938int 9939main () 9940{ 9941 9942 ; 9943 return 0; 9944} 9945_ACEOF 9946if ac_fn_c_try_link "$LINENO"; then : 9947 9948 lt_aix_libpath_sed=' 9949 /Import File Strings/,/^$/ { 9950 /^0/ { 9951 s/^0 *\([^ ]*\) *$/\1/ 9952 p 9953 } 9954 }' 9955 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9956 # Check for a 64-bit object if we didn't find anything. 9957 if test -z "$lt_cv_aix_libpath_"; then 9958 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9959 fi 9960fi 9961rm -f core conftest.err conftest.$ac_objext \ 9962 conftest$ac_exeext conftest.$ac_ext 9963 if test -z "$lt_cv_aix_libpath_"; then 9964 lt_cv_aix_libpath_=/usr/lib:/lib 9965 fi 9966 9967fi 9968 9969 aix_libpath=$lt_cv_aix_libpath_ 9970fi 9971 9972 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9973 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9974 else 9975 if test ia64 = "$host_cpu"; then 9976 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9977 allow_undefined_flag="-z nodefs" 9978 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 9979 else 9980 # Determine the default libpath from the value encoded in an 9981 # empty executable. 9982 if test set = "${lt_cv_aix_libpath+set}"; then 9983 aix_libpath=$lt_cv_aix_libpath 9984else 9985 if ${lt_cv_aix_libpath_+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990 9991int 9992main () 9993{ 9994 9995 ; 9996 return 0; 9997} 9998_ACEOF 9999if ac_fn_c_try_link "$LINENO"; then : 10000 10001 lt_aix_libpath_sed=' 10002 /Import File Strings/,/^$/ { 10003 /^0/ { 10004 s/^0 *\([^ ]*\) *$/\1/ 10005 p 10006 } 10007 }' 10008 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10009 # Check for a 64-bit object if we didn't find anything. 10010 if test -z "$lt_cv_aix_libpath_"; then 10011 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10012 fi 10013fi 10014rm -f core conftest.err conftest.$ac_objext \ 10015 conftest$ac_exeext conftest.$ac_ext 10016 if test -z "$lt_cv_aix_libpath_"; then 10017 lt_cv_aix_libpath_=/usr/lib:/lib 10018 fi 10019 10020fi 10021 10022 aix_libpath=$lt_cv_aix_libpath_ 10023fi 10024 10025 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10026 # Warning - without using the other run time loading flags, 10027 # -berok will link without error, but may produce a broken library. 10028 no_undefined_flag=' $wl-bernotok' 10029 allow_undefined_flag=' $wl-berok' 10030 if test yes = "$with_gnu_ld"; then 10031 # We only use this code for GNU lds that support --whole-archive. 10032 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10033 else 10034 # Exported symbols can be pulled into shared objects from archives 10035 whole_archive_flag_spec='$convenience' 10036 fi 10037 archive_cmds_need_lc=yes 10038 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10039 # -brtl affects multiple linker settings, -berok does not and is overridden later 10040 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10041 if test svr4 != "$with_aix_soname"; then 10042 # This is similar to how AIX traditionally builds its shared libraries. 10043 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' 10044 fi 10045 if test aix != "$with_aix_soname"; then 10046 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' 10047 else 10048 # used by -dlpreopen to get the symbols 10049 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10050 fi 10051 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10052 fi 10053 fi 10054 ;; 10055 10056 amigaos*) 10057 case $host_cpu in 10058 powerpc) 10059 # see comment about AmigaOS4 .so support 10060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10061 archive_expsym_cmds='' 10062 ;; 10063 m68k) 10064 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)' 10065 hardcode_libdir_flag_spec='-L$libdir' 10066 hardcode_minus_L=yes 10067 ;; 10068 esac 10069 ;; 10070 10071 bsdi[45]*) 10072 export_dynamic_flag_spec=-rdynamic 10073 ;; 10074 10075 cygwin* | mingw* | pw32* | cegcc*) 10076 # When not using gcc, we currently assume that we are using 10077 # Microsoft Visual C++. 10078 # hardcode_libdir_flag_spec is actually meaningless, as there is 10079 # no search path for DLLs. 10080 case $cc_basename in 10081 cl*) 10082 # Native MSVC 10083 hardcode_libdir_flag_spec=' ' 10084 allow_undefined_flag=unsupported 10085 always_export_symbols=yes 10086 file_list_spec='@' 10087 # Tell ltmain to make .lib files, not .a files. 10088 libext=lib 10089 # Tell ltmain to make .dll files, not .so files. 10090 shrext_cmds=.dll 10091 # FIXME: Setting linknames here is a bad hack. 10092 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10093 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10094 cp "$export_symbols" "$output_objdir/$soname.def"; 10095 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10096 else 10097 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10098 fi~ 10099 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10100 linknames=' 10101 # The linker will not automatically build a static lib if we build a DLL. 10102 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10103 enable_shared_with_static_runtimes=yes 10104 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10105 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10106 # Don't use ranlib 10107 old_postinstall_cmds='chmod 644 $oldlib' 10108 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10109 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10110 case $lt_outputfile in 10111 *.exe|*.EXE) ;; 10112 *) 10113 lt_outputfile=$lt_outputfile.exe 10114 lt_tool_outputfile=$lt_tool_outputfile.exe 10115 ;; 10116 esac~ 10117 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10118 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10119 $RM "$lt_outputfile.manifest"; 10120 fi' 10121 ;; 10122 *) 10123 # Assume MSVC wrapper 10124 hardcode_libdir_flag_spec=' ' 10125 allow_undefined_flag=unsupported 10126 # Tell ltmain to make .lib files, not .a files. 10127 libext=lib 10128 # Tell ltmain to make .dll files, not .so files. 10129 shrext_cmds=.dll 10130 # FIXME: Setting linknames here is a bad hack. 10131 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10132 # The linker will automatically build a .lib file if we build a DLL. 10133 old_archive_from_new_cmds='true' 10134 # FIXME: Should let the user specify the lib program. 10135 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10136 enable_shared_with_static_runtimes=yes 10137 ;; 10138 esac 10139 ;; 10140 10141 darwin* | rhapsody*) 10142 10143 10144 archive_cmds_need_lc=no 10145 hardcode_direct=no 10146 hardcode_automatic=yes 10147 hardcode_shlibpath_var=unsupported 10148 if test yes = "$lt_cv_ld_force_load"; then 10149 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\"`' 10150 10151 else 10152 whole_archive_flag_spec='' 10153 fi 10154 link_all_deplibs=yes 10155 allow_undefined_flag=$_lt_dar_allow_undefined 10156 case $cc_basename in 10157 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10158 *) _lt_dar_can_shared=$GCC ;; 10159 esac 10160 if test yes = "$_lt_dar_can_shared"; then 10161 output_verbose_link_cmd=func_echo_all 10162 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10163 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10164 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" 10165 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" 10166 10167 else 10168 ld_shlibs=no 10169 fi 10170 10171 ;; 10172 10173 dgux*) 10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10175 hardcode_libdir_flag_spec='-L$libdir' 10176 hardcode_shlibpath_var=no 10177 ;; 10178 10179 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10180 # support. Future versions do this automatically, but an explicit c++rt0.o 10181 # does not break anything, and helps significantly (at the cost of a little 10182 # extra space). 10183 freebsd2.2*) 10184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10185 hardcode_libdir_flag_spec='-R$libdir' 10186 hardcode_direct=yes 10187 hardcode_shlibpath_var=no 10188 ;; 10189 10190 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10191 freebsd2.*) 10192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10193 hardcode_direct=yes 10194 hardcode_minus_L=yes 10195 hardcode_shlibpath_var=no 10196 ;; 10197 10198 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10199 freebsd* | dragonfly*) 10200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10201 hardcode_libdir_flag_spec='-R$libdir' 10202 hardcode_direct=yes 10203 hardcode_shlibpath_var=no 10204 ;; 10205 10206 hpux9*) 10207 if test yes = "$GCC"; then 10208 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' 10209 else 10210 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' 10211 fi 10212 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10213 hardcode_libdir_separator=: 10214 hardcode_direct=yes 10215 10216 # hardcode_minus_L: Not really in the search PATH, 10217 # but as the default location of the library. 10218 hardcode_minus_L=yes 10219 export_dynamic_flag_spec='$wl-E' 10220 ;; 10221 10222 hpux10*) 10223 if test yes,no = "$GCC,$with_gnu_ld"; then 10224 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10225 else 10226 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10227 fi 10228 if test no = "$with_gnu_ld"; then 10229 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10230 hardcode_libdir_separator=: 10231 hardcode_direct=yes 10232 hardcode_direct_absolute=yes 10233 export_dynamic_flag_spec='$wl-E' 10234 # hardcode_minus_L: Not really in the search PATH, 10235 # but as the default location of the library. 10236 hardcode_minus_L=yes 10237 fi 10238 ;; 10239 10240 hpux11*) 10241 if test yes,no = "$GCC,$with_gnu_ld"; then 10242 case $host_cpu in 10243 hppa*64*) 10244 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10245 ;; 10246 ia64*) 10247 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10248 ;; 10249 *) 10250 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10251 ;; 10252 esac 10253 else 10254 case $host_cpu in 10255 hppa*64*) 10256 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10257 ;; 10258 ia64*) 10259 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10260 ;; 10261 *) 10262 10263 # Older versions of the 11.00 compiler do not understand -b yet 10264 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10266$as_echo_n "checking if $CC understands -b... " >&6; } 10267if ${lt_cv_prog_compiler__b+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 lt_cv_prog_compiler__b=no 10271 save_LDFLAGS=$LDFLAGS 10272 LDFLAGS="$LDFLAGS -b" 10273 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10274 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10275 # The linker can only warn and ignore the option if not recognized 10276 # So say no if there are warnings 10277 if test -s conftest.err; then 10278 # Append any errors to the config.log. 10279 cat conftest.err 1>&5 10280 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10282 if diff conftest.exp conftest.er2 >/dev/null; then 10283 lt_cv_prog_compiler__b=yes 10284 fi 10285 else 10286 lt_cv_prog_compiler__b=yes 10287 fi 10288 fi 10289 $RM -r conftest* 10290 LDFLAGS=$save_LDFLAGS 10291 10292fi 10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10294$as_echo "$lt_cv_prog_compiler__b" >&6; } 10295 10296if test yes = "$lt_cv_prog_compiler__b"; then 10297 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10298else 10299 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10300fi 10301 10302 ;; 10303 esac 10304 fi 10305 if test no = "$with_gnu_ld"; then 10306 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10307 hardcode_libdir_separator=: 10308 10309 case $host_cpu in 10310 hppa*64*|ia64*) 10311 hardcode_direct=no 10312 hardcode_shlibpath_var=no 10313 ;; 10314 *) 10315 hardcode_direct=yes 10316 hardcode_direct_absolute=yes 10317 export_dynamic_flag_spec='$wl-E' 10318 10319 # hardcode_minus_L: Not really in the search PATH, 10320 # but as the default location of the library. 10321 hardcode_minus_L=yes 10322 ;; 10323 esac 10324 fi 10325 ;; 10326 10327 irix5* | irix6* | nonstopux*) 10328 if test yes = "$GCC"; then 10329 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' 10330 # Try to use the -exported_symbol ld option, if it does not 10331 # work, assume that -exports_file does not work either and 10332 # implicitly export all symbols. 10333 # This should be the same for all languages, so no per-tag cache variable. 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10335$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10336if ${lt_cv_irix_exported_symbol+:} false; then : 10337 $as_echo_n "(cached) " >&6 10338else 10339 save_LDFLAGS=$LDFLAGS 10340 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342/* end confdefs.h. */ 10343int foo (void) { return 0; } 10344_ACEOF 10345if ac_fn_c_try_link "$LINENO"; then : 10346 lt_cv_irix_exported_symbol=yes 10347else 10348 lt_cv_irix_exported_symbol=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext \ 10351 conftest$ac_exeext conftest.$ac_ext 10352 LDFLAGS=$save_LDFLAGS 10353fi 10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10355$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10356 if test yes = "$lt_cv_irix_exported_symbol"; then 10357 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' 10358 fi 10359 link_all_deplibs=no 10360 else 10361 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' 10362 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' 10363 fi 10364 archive_cmds_need_lc='no' 10365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10366 hardcode_libdir_separator=: 10367 inherit_rpath=yes 10368 link_all_deplibs=yes 10369 ;; 10370 10371 linux*) 10372 case $cc_basename in 10373 tcc*) 10374 # Fabrice Bellard et al's Tiny C Compiler 10375 ld_shlibs=yes 10376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10377 ;; 10378 esac 10379 ;; 10380 10381 netbsd* | netbsdelf*-gnu) 10382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10384 else 10385 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10386 fi 10387 hardcode_libdir_flag_spec='-R$libdir' 10388 hardcode_direct=yes 10389 hardcode_shlibpath_var=no 10390 ;; 10391 10392 newsos6) 10393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10394 hardcode_direct=yes 10395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10396 hardcode_libdir_separator=: 10397 hardcode_shlibpath_var=no 10398 ;; 10399 10400 *nto* | *qnx*) 10401 ;; 10402 10403 openbsd* | bitrig*) 10404 if test -f /usr/libexec/ld.so; then 10405 hardcode_direct=yes 10406 hardcode_shlibpath_var=no 10407 hardcode_direct_absolute=yes 10408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10410 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10411 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10412 export_dynamic_flag_spec='$wl-E' 10413 else 10414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10415 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10416 fi 10417 else 10418 ld_shlibs=no 10419 fi 10420 ;; 10421 10422 os2*) 10423 hardcode_libdir_flag_spec='-L$libdir' 10424 hardcode_minus_L=yes 10425 allow_undefined_flag=unsupported 10426 shrext_cmds=.dll 10427 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10428 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10429 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10430 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10431 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10432 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10433 emximp -o $lib $output_objdir/$libname.def' 10434 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10435 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10436 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10437 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10438 prefix_cmds="$SED"~ 10439 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10440 prefix_cmds="$prefix_cmds -e 1d"; 10441 fi~ 10442 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10443 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10444 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10445 emximp -o $lib $output_objdir/$libname.def' 10446 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10447 enable_shared_with_static_runtimes=yes 10448 ;; 10449 10450 osf3*) 10451 if test yes = "$GCC"; then 10452 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10453 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' 10454 else 10455 allow_undefined_flag=' -expect_unresolved \*' 10456 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' 10457 fi 10458 archive_cmds_need_lc='no' 10459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10460 hardcode_libdir_separator=: 10461 ;; 10462 10463 osf4* | osf5*) # as osf3* with the addition of -msym flag 10464 if test yes = "$GCC"; then 10465 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10466 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' 10467 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10468 else 10469 allow_undefined_flag=' -expect_unresolved \*' 10470 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' 10471 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~ 10472 $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' 10473 10474 # Both c and cxx compiler support -rpath directly 10475 hardcode_libdir_flag_spec='-rpath $libdir' 10476 fi 10477 archive_cmds_need_lc='no' 10478 hardcode_libdir_separator=: 10479 ;; 10480 10481 solaris*) 10482 no_undefined_flag=' -z defs' 10483 if test yes = "$GCC"; then 10484 wlarc='$wl' 10485 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10486 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10487 $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' 10488 else 10489 case `$CC -V 2>&1` in 10490 *"Compilers 5.0"*) 10491 wlarc='' 10492 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10494 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10495 ;; 10496 *) 10497 wlarc='$wl' 10498 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10500 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10501 ;; 10502 esac 10503 fi 10504 hardcode_libdir_flag_spec='-R$libdir' 10505 hardcode_shlibpath_var=no 10506 case $host_os in 10507 solaris2.[0-5] | solaris2.[0-5].*) ;; 10508 *) 10509 # The compiler driver will combine and reorder linker options, 10510 # but understands '-z linker_flag'. GCC discards it without '$wl', 10511 # but is careful enough not to reorder. 10512 # Supported since Solaris 2.6 (maybe 2.5.1?) 10513 if test yes = "$GCC"; then 10514 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10515 else 10516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10517 fi 10518 ;; 10519 esac 10520 link_all_deplibs=yes 10521 ;; 10522 10523 sunos4*) 10524 if test sequent = "$host_vendor"; then 10525 # Use $CC to link under sequent, because it throws in some extra .o 10526 # files that make .init and .fini sections work. 10527 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10528 else 10529 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10530 fi 10531 hardcode_libdir_flag_spec='-L$libdir' 10532 hardcode_direct=yes 10533 hardcode_minus_L=yes 10534 hardcode_shlibpath_var=no 10535 ;; 10536 10537 sysv4) 10538 case $host_vendor in 10539 sni) 10540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10541 hardcode_direct=yes # is this really true??? 10542 ;; 10543 siemens) 10544 ## LD is ld it makes a PLAMLIB 10545 ## CC just makes a GrossModule. 10546 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10547 reload_cmds='$CC -r -o $output$reload_objs' 10548 hardcode_direct=no 10549 ;; 10550 motorola) 10551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10552 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10553 ;; 10554 esac 10555 runpath_var='LD_RUN_PATH' 10556 hardcode_shlibpath_var=no 10557 ;; 10558 10559 sysv4.3*) 10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10561 hardcode_shlibpath_var=no 10562 export_dynamic_flag_spec='-Bexport' 10563 ;; 10564 10565 sysv4*MP*) 10566 if test -d /usr/nec; then 10567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10568 hardcode_shlibpath_var=no 10569 runpath_var=LD_RUN_PATH 10570 hardcode_runpath_var=yes 10571 ld_shlibs=yes 10572 fi 10573 ;; 10574 10575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10576 no_undefined_flag='$wl-z,text' 10577 archive_cmds_need_lc=no 10578 hardcode_shlibpath_var=no 10579 runpath_var='LD_RUN_PATH' 10580 10581 if test yes = "$GCC"; then 10582 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10583 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10584 else 10585 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10586 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10587 fi 10588 ;; 10589 10590 sysv5* | sco3.2v5* | sco5v6*) 10591 # Note: We CANNOT use -z defs as we might desire, because we do not 10592 # link with -lc, and that would cause any symbols used from libc to 10593 # always be unresolved, which means just about no library would 10594 # ever link correctly. If we're not using GNU ld we use -z text 10595 # though, which does catch some bad symbols but isn't as heavy-handed 10596 # as -z defs. 10597 no_undefined_flag='$wl-z,text' 10598 allow_undefined_flag='$wl-z,nodefs' 10599 archive_cmds_need_lc=no 10600 hardcode_shlibpath_var=no 10601 hardcode_libdir_flag_spec='$wl-R,$libdir' 10602 hardcode_libdir_separator=':' 10603 link_all_deplibs=yes 10604 export_dynamic_flag_spec='$wl-Bexport' 10605 runpath_var='LD_RUN_PATH' 10606 10607 if test yes = "$GCC"; then 10608 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10609 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10610 else 10611 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10612 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10613 fi 10614 ;; 10615 10616 uts4*) 10617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10618 hardcode_libdir_flag_spec='-L$libdir' 10619 hardcode_shlibpath_var=no 10620 ;; 10621 10622 *) 10623 ld_shlibs=no 10624 ;; 10625 esac 10626 10627 if test sni = "$host_vendor"; then 10628 case $host in 10629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10630 export_dynamic_flag_spec='$wl-Blargedynsym' 10631 ;; 10632 esac 10633 fi 10634 fi 10635 10636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10637$as_echo "$ld_shlibs" >&6; } 10638test no = "$ld_shlibs" && can_build_shared=no 10639 10640with_gnu_ld=$with_gnu_ld 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656# 10657# Do we need to explicitly link libc? 10658# 10659case "x$archive_cmds_need_lc" in 10660x|xyes) 10661 # Assume -lc should be added 10662 archive_cmds_need_lc=yes 10663 10664 if test yes,yes = "$GCC,$enable_shared"; then 10665 case $archive_cmds in 10666 *'~'*) 10667 # FIXME: we may have to deal with multi-command sequences. 10668 ;; 10669 '$CC '*) 10670 # Test whether the compiler implicitly links with -lc since on some 10671 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10672 # to ld, don't add -lc before -lgcc. 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10674$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10675if ${lt_cv_archive_cmds_need_lc+:} false; then : 10676 $as_echo_n "(cached) " >&6 10677else 10678 $RM conftest* 10679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10680 10681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10682 (eval $ac_compile) 2>&5 10683 ac_status=$? 10684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10685 test $ac_status = 0; } 2>conftest.err; then 10686 soname=conftest 10687 lib=conftest 10688 libobjs=conftest.$ac_objext 10689 deplibs= 10690 wl=$lt_prog_compiler_wl 10691 pic_flag=$lt_prog_compiler_pic 10692 compiler_flags=-v 10693 linker_flags=-v 10694 verstring= 10695 output_objdir=. 10696 libname=conftest 10697 lt_save_allow_undefined_flag=$allow_undefined_flag 10698 allow_undefined_flag= 10699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10700 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10701 ac_status=$? 10702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10703 test $ac_status = 0; } 10704 then 10705 lt_cv_archive_cmds_need_lc=no 10706 else 10707 lt_cv_archive_cmds_need_lc=yes 10708 fi 10709 allow_undefined_flag=$lt_save_allow_undefined_flag 10710 else 10711 cat conftest.err 1>&5 10712 fi 10713 $RM conftest* 10714 10715fi 10716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10717$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10718 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10719 ;; 10720 esac 10721 fi 10722 ;; 10723esac 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10877$as_echo_n "checking dynamic linker characteristics... " >&6; } 10878 10879if test yes = "$GCC"; then 10880 case $host_os in 10881 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10882 *) lt_awk_arg='/^libraries:/' ;; 10883 esac 10884 case $host_os in 10885 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10886 *) lt_sed_strip_eq='s|=/|/|g' ;; 10887 esac 10888 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10889 case $lt_search_path_spec in 10890 *\;*) 10891 # if the path contains ";" then we assume it to be the separator 10892 # otherwise default to the standard path separator (i.e. ":") - it is 10893 # assumed that no part of a normal pathname contains ";" but that should 10894 # okay in the real world where ";" in dirpaths is itself problematic. 10895 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10896 ;; 10897 *) 10898 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10899 ;; 10900 esac 10901 # Ok, now we have the path, separated by spaces, we can step through it 10902 # and add multilib dir if necessary... 10903 lt_tmp_lt_search_path_spec= 10904 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10905 # ...but if some path component already ends with the multilib dir we assume 10906 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10907 case "$lt_multi_os_dir; $lt_search_path_spec " in 10908 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10909 lt_multi_os_dir= 10910 ;; 10911 esac 10912 for lt_sys_path in $lt_search_path_spec; do 10913 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10914 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10915 elif test -n "$lt_multi_os_dir"; then 10916 test -d "$lt_sys_path" && \ 10917 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10918 fi 10919 done 10920 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10921BEGIN {RS = " "; FS = "/|\n";} { 10922 lt_foo = ""; 10923 lt_count = 0; 10924 for (lt_i = NF; lt_i > 0; lt_i--) { 10925 if ($lt_i != "" && $lt_i != ".") { 10926 if ($lt_i == "..") { 10927 lt_count++; 10928 } else { 10929 if (lt_count == 0) { 10930 lt_foo = "/" $lt_i lt_foo; 10931 } else { 10932 lt_count--; 10933 } 10934 } 10935 } 10936 } 10937 if (lt_foo != "") { lt_freq[lt_foo]++; } 10938 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10939}'` 10940 # AWK program above erroneously prepends '/' to C:/dos/paths 10941 # for these hosts. 10942 case $host_os in 10943 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10944 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10945 esac 10946 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10947else 10948 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10949fi 10950library_names_spec= 10951libname_spec='lib$name' 10952soname_spec= 10953shrext_cmds=.so 10954postinstall_cmds= 10955postuninstall_cmds= 10956finish_cmds= 10957finish_eval= 10958shlibpath_var= 10959shlibpath_overrides_runpath=unknown 10960version_type=none 10961dynamic_linker="$host_os ld.so" 10962sys_lib_dlsearch_path_spec="/lib /usr/lib" 10963need_lib_prefix=unknown 10964hardcode_into_libs=no 10965 10966# when you set need_version to no, make sure it does not cause -set_version 10967# flags to be left without arguments 10968need_version=unknown 10969 10970 10971 10972case $host_os in 10973aix3*) 10974 version_type=linux # correct to gnu/linux during the next big refactor 10975 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10976 shlibpath_var=LIBPATH 10977 10978 # AIX 3 has no versioning support, so we append a major version to the name. 10979 soname_spec='$libname$release$shared_ext$major' 10980 ;; 10981 10982aix[4-9]*) 10983 version_type=linux # correct to gnu/linux during the next big refactor 10984 need_lib_prefix=no 10985 need_version=no 10986 hardcode_into_libs=yes 10987 if test ia64 = "$host_cpu"; then 10988 # AIX 5 supports IA64 10989 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10990 shlibpath_var=LD_LIBRARY_PATH 10991 else 10992 # With GCC up to 2.95.x, collect2 would create an import file 10993 # for dependence libraries. The import file would start with 10994 # the line '#! .'. This would cause the generated library to 10995 # depend on '.', always an invalid library. This was fixed in 10996 # development snapshots of GCC prior to 3.0. 10997 case $host_os in 10998 aix4 | aix4.[01] | aix4.[01].*) 10999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11000 echo ' yes ' 11001 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11002 : 11003 else 11004 can_build_shared=no 11005 fi 11006 ;; 11007 esac 11008 # Using Import Files as archive members, it is possible to support 11009 # filename-based versioning of shared library archives on AIX. While 11010 # this would work for both with and without runtime linking, it will 11011 # prevent static linking of such archives. So we do filename-based 11012 # shared library versioning with .so extension only, which is used 11013 # when both runtime linking and shared linking is enabled. 11014 # Unfortunately, runtime linking may impact performance, so we do 11015 # not want this to be the default eventually. Also, we use the 11016 # versioned .so libs for executables only if there is the -brtl 11017 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11018 # To allow for filename-based versioning support, we need to create 11019 # libNAME.so.V as an archive file, containing: 11020 # *) an Import File, referring to the versioned filename of the 11021 # archive as well as the shared archive member, telling the 11022 # bitwidth (32 or 64) of that shared object, and providing the 11023 # list of exported symbols of that shared object, eventually 11024 # decorated with the 'weak' keyword 11025 # *) the shared object with the F_LOADONLY flag set, to really avoid 11026 # it being seen by the linker. 11027 # At run time we better use the real file rather than another symlink, 11028 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11029 11030 case $with_aix_soname,$aix_use_runtimelinking in 11031 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11032 # soname into executable. Probably we can add versioning support to 11033 # collect2, so additional links can be useful in future. 11034 aix,yes) # traditional libtool 11035 dynamic_linker='AIX unversionable lib.so' 11036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11037 # instead of lib<name>.a to let people know that these are not 11038 # typical AIX shared libraries. 11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11040 ;; 11041 aix,no) # traditional AIX only 11042 dynamic_linker='AIX lib.a(lib.so.V)' 11043 # We preserve .a as extension for shared libraries through AIX4.2 11044 # and later when we are not doing run time linking. 11045 library_names_spec='$libname$release.a $libname.a' 11046 soname_spec='$libname$release$shared_ext$major' 11047 ;; 11048 svr4,*) # full svr4 only 11049 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11050 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11051 # We do not specify a path in Import Files, so LIBPATH fires. 11052 shlibpath_overrides_runpath=yes 11053 ;; 11054 *,yes) # both, prefer svr4 11055 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11056 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11057 # unpreferred sharedlib libNAME.a needs extra handling 11058 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"' 11059 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"' 11060 # We do not specify a path in Import Files, so LIBPATH fires. 11061 shlibpath_overrides_runpath=yes 11062 ;; 11063 *,no) # both, prefer aix 11064 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11065 library_names_spec='$libname$release.a $libname.a' 11066 soname_spec='$libname$release$shared_ext$major' 11067 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11068 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)' 11069 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"' 11070 ;; 11071 esac 11072 shlibpath_var=LIBPATH 11073 fi 11074 ;; 11075 11076amigaos*) 11077 case $host_cpu in 11078 powerpc) 11079 # Since July 2007 AmigaOS4 officially supports .so libraries. 11080 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11082 ;; 11083 m68k) 11084 library_names_spec='$libname.ixlibrary $libname.a' 11085 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11086 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' 11087 ;; 11088 esac 11089 ;; 11090 11091beos*) 11092 library_names_spec='$libname$shared_ext' 11093 dynamic_linker="$host_os ld.so" 11094 shlibpath_var=LIBRARY_PATH 11095 ;; 11096 11097bsdi[45]*) 11098 version_type=linux # correct to gnu/linux during the next big refactor 11099 need_version=no 11100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11101 soname_spec='$libname$release$shared_ext$major' 11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11103 shlibpath_var=LD_LIBRARY_PATH 11104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11106 # the default ld.so.conf also contains /usr/contrib/lib and 11107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11108 # libtool to hard-code these into programs 11109 ;; 11110 11111cygwin* | mingw* | pw32* | cegcc*) 11112 version_type=windows 11113 shrext_cmds=.dll 11114 need_version=no 11115 need_lib_prefix=no 11116 11117 case $GCC,$cc_basename in 11118 yes,*) 11119 # gcc 11120 library_names_spec='$libname.dll.a' 11121 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11122 postinstall_cmds='base_file=`basename \$file`~ 11123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11124 dldir=$destdir/`dirname \$dlpath`~ 11125 test -d \$dldir || mkdir -p \$dldir~ 11126 $install_prog $dir/$dlname \$dldir/$dlname~ 11127 chmod a+x \$dldir/$dlname~ 11128 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11129 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11130 fi' 11131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11132 dlpath=$dir/\$dldll~ 11133 $RM \$dlpath' 11134 shlibpath_overrides_runpath=yes 11135 11136 case $host_os in 11137 cygwin*) 11138 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11139 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11140 11141 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11142 ;; 11143 mingw* | cegcc*) 11144 # MinGW DLLs use traditional 'lib' prefix 11145 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11146 ;; 11147 pw32*) 11148 # pw32 DLLs use 'pw' prefix rather than 'lib' 11149 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11150 ;; 11151 esac 11152 dynamic_linker='Win32 ld.exe' 11153 ;; 11154 11155 *,cl*) 11156 # Native MSVC 11157 libname_spec='$name' 11158 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11159 library_names_spec='$libname.dll.lib' 11160 11161 case $build_os in 11162 mingw*) 11163 sys_lib_search_path_spec= 11164 lt_save_ifs=$IFS 11165 IFS=';' 11166 for lt_path in $LIB 11167 do 11168 IFS=$lt_save_ifs 11169 # Let DOS variable expansion print the short 8.3 style file name. 11170 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11171 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11172 done 11173 IFS=$lt_save_ifs 11174 # Convert to MSYS style. 11175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11176 ;; 11177 cygwin*) 11178 # Convert to unix form, then to dos form, then back to unix form 11179 # but this time dos style (no spaces!) so that the unix form looks 11180 # like /cygdrive/c/PROGRA~1:/cygdr... 11181 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11182 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11183 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11184 ;; 11185 *) 11186 sys_lib_search_path_spec=$LIB 11187 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11188 # It is most probably a Windows format PATH. 11189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11190 else 11191 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11192 fi 11193 # FIXME: find the short name or the path components, as spaces are 11194 # common. (e.g. "Program Files" -> "PROGRA~1") 11195 ;; 11196 esac 11197 11198 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11199 postinstall_cmds='base_file=`basename \$file`~ 11200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11201 dldir=$destdir/`dirname \$dlpath`~ 11202 test -d \$dldir || mkdir -p \$dldir~ 11203 $install_prog $dir/$dlname \$dldir/$dlname' 11204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11205 dlpath=$dir/\$dldll~ 11206 $RM \$dlpath' 11207 shlibpath_overrides_runpath=yes 11208 dynamic_linker='Win32 link.exe' 11209 ;; 11210 11211 *) 11212 # Assume MSVC wrapper 11213 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11214 dynamic_linker='Win32 ld.exe' 11215 ;; 11216 esac 11217 # FIXME: first we should search . and the directory the executable is in 11218 shlibpath_var=PATH 11219 ;; 11220 11221darwin* | rhapsody*) 11222 dynamic_linker="$host_os dyld" 11223 version_type=darwin 11224 need_lib_prefix=no 11225 need_version=no 11226 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11227 soname_spec='$libname$release$major$shared_ext' 11228 shlibpath_overrides_runpath=yes 11229 shlibpath_var=DYLD_LIBRARY_PATH 11230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11231 11232 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11234 ;; 11235 11236dgux*) 11237 version_type=linux # correct to gnu/linux during the next big refactor 11238 need_lib_prefix=no 11239 need_version=no 11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11241 soname_spec='$libname$release$shared_ext$major' 11242 shlibpath_var=LD_LIBRARY_PATH 11243 ;; 11244 11245freebsd* | dragonfly*) 11246 # DragonFly does not have aout. When/if they implement a new 11247 # versioning mechanism, adjust this. 11248 if test -x /usr/bin/objformat; then 11249 objformat=`/usr/bin/objformat` 11250 else 11251 case $host_os in 11252 freebsd[23].*) objformat=aout ;; 11253 *) objformat=elf ;; 11254 esac 11255 fi 11256 version_type=freebsd-$objformat 11257 case $version_type in 11258 freebsd-elf*) 11259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11260 soname_spec='$libname$release$shared_ext$major' 11261 need_version=no 11262 need_lib_prefix=no 11263 ;; 11264 freebsd-*) 11265 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11266 need_version=yes 11267 ;; 11268 esac 11269 shlibpath_var=LD_LIBRARY_PATH 11270 case $host_os in 11271 freebsd2.*) 11272 shlibpath_overrides_runpath=yes 11273 ;; 11274 freebsd3.[01]* | freebsdelf3.[01]*) 11275 shlibpath_overrides_runpath=yes 11276 hardcode_into_libs=yes 11277 ;; 11278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11280 shlibpath_overrides_runpath=no 11281 hardcode_into_libs=yes 11282 ;; 11283 *) # from 4.6 on, and DragonFly 11284 shlibpath_overrides_runpath=yes 11285 hardcode_into_libs=yes 11286 ;; 11287 esac 11288 ;; 11289 11290haiku*) 11291 version_type=linux # correct to gnu/linux during the next big refactor 11292 need_lib_prefix=no 11293 need_version=no 11294 dynamic_linker="$host_os runtime_loader" 11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11296 soname_spec='$libname$release$shared_ext$major' 11297 shlibpath_var=LIBRARY_PATH 11298 shlibpath_overrides_runpath=no 11299 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11300 hardcode_into_libs=yes 11301 ;; 11302 11303hpux9* | hpux10* | hpux11*) 11304 # Give a soname corresponding to the major version so that dld.sl refuses to 11305 # link against other versions. 11306 version_type=sunos 11307 need_lib_prefix=no 11308 need_version=no 11309 case $host_cpu in 11310 ia64*) 11311 shrext_cmds='.so' 11312 hardcode_into_libs=yes 11313 dynamic_linker="$host_os dld.so" 11314 shlibpath_var=LD_LIBRARY_PATH 11315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11317 soname_spec='$libname$release$shared_ext$major' 11318 if test 32 = "$HPUX_IA64_MODE"; then 11319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11320 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11321 else 11322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11323 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11324 fi 11325 ;; 11326 hppa*64*) 11327 shrext_cmds='.sl' 11328 hardcode_into_libs=yes 11329 dynamic_linker="$host_os dld.sl" 11330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11333 soname_spec='$libname$release$shared_ext$major' 11334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11336 ;; 11337 *) 11338 shrext_cmds='.sl' 11339 dynamic_linker="$host_os dld.sl" 11340 shlibpath_var=SHLIB_PATH 11341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11343 soname_spec='$libname$release$shared_ext$major' 11344 ;; 11345 esac 11346 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11347 postinstall_cmds='chmod 555 $lib' 11348 # or fails outright, so override atomically: 11349 install_override_mode=555 11350 ;; 11351 11352interix[3-9]*) 11353 version_type=linux # correct to gnu/linux during the next big refactor 11354 need_lib_prefix=no 11355 need_version=no 11356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11357 soname_spec='$libname$release$shared_ext$major' 11358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11359 shlibpath_var=LD_LIBRARY_PATH 11360 shlibpath_overrides_runpath=no 11361 hardcode_into_libs=yes 11362 ;; 11363 11364irix5* | irix6* | nonstopux*) 11365 case $host_os in 11366 nonstopux*) version_type=nonstopux ;; 11367 *) 11368 if test yes = "$lt_cv_prog_gnu_ld"; then 11369 version_type=linux # correct to gnu/linux during the next big refactor 11370 else 11371 version_type=irix 11372 fi ;; 11373 esac 11374 need_lib_prefix=no 11375 need_version=no 11376 soname_spec='$libname$release$shared_ext$major' 11377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11378 case $host_os in 11379 irix5* | nonstopux*) 11380 libsuff= shlibsuff= 11381 ;; 11382 *) 11383 case $LD in # libtool.m4 will add one of these switches to LD 11384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11385 libsuff= shlibsuff= libmagic=32-bit;; 11386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11387 libsuff=32 shlibsuff=N32 libmagic=N32;; 11388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11389 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11390 *) libsuff= shlibsuff= libmagic=never-match;; 11391 esac 11392 ;; 11393 esac 11394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11395 shlibpath_overrides_runpath=no 11396 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11397 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11398 hardcode_into_libs=yes 11399 ;; 11400 11401# No shared lib support for Linux oldld, aout, or coff. 11402linux*oldld* | linux*aout* | linux*coff*) 11403 dynamic_linker=no 11404 ;; 11405 11406linux*android*) 11407 version_type=none # Android doesn't support versioned libraries. 11408 need_lib_prefix=no 11409 need_version=no 11410 library_names_spec='$libname$release$shared_ext' 11411 soname_spec='$libname$release$shared_ext' 11412 finish_cmds= 11413 shlibpath_var=LD_LIBRARY_PATH 11414 shlibpath_overrides_runpath=yes 11415 11416 # This implies no fast_install, which is unacceptable. 11417 # Some rework will be needed to allow for fast_install 11418 # before this can be enabled. 11419 hardcode_into_libs=yes 11420 11421 dynamic_linker='Android linker' 11422 # Don't embed -rpath directories since the linker doesn't support them. 11423 hardcode_libdir_flag_spec='-L$libdir' 11424 ;; 11425 11426# This must be glibc/ELF. 11427linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11428 version_type=linux # correct to gnu/linux during the next big refactor 11429 need_lib_prefix=no 11430 need_version=no 11431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11432 soname_spec='$libname$release$shared_ext$major' 11433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11434 shlibpath_var=LD_LIBRARY_PATH 11435 shlibpath_overrides_runpath=no 11436 11437 # Some binutils ld are patched to set DT_RUNPATH 11438 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11439 $as_echo_n "(cached) " >&6 11440else 11441 lt_cv_shlibpath_overrides_runpath=no 11442 save_LDFLAGS=$LDFLAGS 11443 save_libdir=$libdir 11444 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11445 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11447/* end confdefs.h. */ 11448 11449int 11450main () 11451{ 11452 11453 ; 11454 return 0; 11455} 11456_ACEOF 11457if ac_fn_c_try_link "$LINENO"; then : 11458 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11459 lt_cv_shlibpath_overrides_runpath=yes 11460fi 11461fi 11462rm -f core conftest.err conftest.$ac_objext \ 11463 conftest$ac_exeext conftest.$ac_ext 11464 LDFLAGS=$save_LDFLAGS 11465 libdir=$save_libdir 11466 11467fi 11468 11469 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11470 11471 # This implies no fast_install, which is unacceptable. 11472 # Some rework will be needed to allow for fast_install 11473 # before this can be enabled. 11474 hardcode_into_libs=yes 11475 11476 # Ideally, we could use ldconfig to report *all* directores which are 11477 # searched for libraries, however this is still not possible. Aside from not 11478 # being certain /sbin/ldconfig is available, command 11479 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11480 # even though it is searched at run-time. Try to do the best guess by 11481 # appending ld.so.conf contents (and includes) to the search path. 11482 if test -f /etc/ld.so.conf; then 11483 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' ' '` 11484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11485 fi 11486 11487 # We used to test for /lib/ld.so.1 and disable shared libraries on 11488 # powerpc, because MkLinux only supported shared libraries with the 11489 # GNU dynamic linker. Since this was broken with cross compilers, 11490 # most powerpc-linux boxes support dynamic linking these days and 11491 # people can always --disable-shared, the test was removed, and we 11492 # assume the GNU/Linux dynamic linker is in use. 11493 dynamic_linker='GNU/Linux ld.so' 11494 ;; 11495 11496netbsdelf*-gnu) 11497 version_type=linux 11498 need_lib_prefix=no 11499 need_version=no 11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11501 soname_spec='${libname}${release}${shared_ext}$major' 11502 shlibpath_var=LD_LIBRARY_PATH 11503 shlibpath_overrides_runpath=no 11504 hardcode_into_libs=yes 11505 dynamic_linker='NetBSD ld.elf_so' 11506 ;; 11507 11508netbsd*) 11509 version_type=sunos 11510 need_lib_prefix=no 11511 need_version=no 11512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11513 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11515 dynamic_linker='NetBSD (a.out) ld.so' 11516 else 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 soname_spec='$libname$release$shared_ext$major' 11519 dynamic_linker='NetBSD ld.elf_so' 11520 fi 11521 shlibpath_var=LD_LIBRARY_PATH 11522 shlibpath_overrides_runpath=yes 11523 hardcode_into_libs=yes 11524 ;; 11525 11526newsos6) 11527 version_type=linux # correct to gnu/linux during the next big refactor 11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11529 shlibpath_var=LD_LIBRARY_PATH 11530 shlibpath_overrides_runpath=yes 11531 ;; 11532 11533*nto* | *qnx*) 11534 version_type=qnx 11535 need_lib_prefix=no 11536 need_version=no 11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11538 soname_spec='$libname$release$shared_ext$major' 11539 shlibpath_var=LD_LIBRARY_PATH 11540 shlibpath_overrides_runpath=no 11541 hardcode_into_libs=yes 11542 dynamic_linker='ldqnx.so' 11543 ;; 11544 11545openbsd* | bitrig*) 11546 version_type=sunos 11547 sys_lib_dlsearch_path_spec=/usr/lib 11548 need_lib_prefix=no 11549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11550 need_version=no 11551 else 11552 need_version=yes 11553 fi 11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11556 shlibpath_var=LD_LIBRARY_PATH 11557 shlibpath_overrides_runpath=yes 11558 ;; 11559 11560os2*) 11561 libname_spec='$name' 11562 version_type=windows 11563 shrext_cmds=.dll 11564 need_version=no 11565 need_lib_prefix=no 11566 # OS/2 can only load a DLL with a base name of 8 characters or less. 11567 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11568 v=$($ECHO $release$versuffix | tr -d .-); 11569 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11570 $ECHO $n$v`$shared_ext' 11571 library_names_spec='${libname}_dll.$libext' 11572 dynamic_linker='OS/2 ld.exe' 11573 shlibpath_var=BEGINLIBPATH 11574 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11576 postinstall_cmds='base_file=`basename \$file`~ 11577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11578 dldir=$destdir/`dirname \$dlpath`~ 11579 test -d \$dldir || mkdir -p \$dldir~ 11580 $install_prog $dir/$dlname \$dldir/$dlname~ 11581 chmod a+x \$dldir/$dlname~ 11582 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11583 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11584 fi' 11585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11586 dlpath=$dir/\$dldll~ 11587 $RM \$dlpath' 11588 ;; 11589 11590osf3* | osf4* | osf5*) 11591 version_type=osf 11592 need_lib_prefix=no 11593 need_version=no 11594 soname_spec='$libname$release$shared_ext$major' 11595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11596 shlibpath_var=LD_LIBRARY_PATH 11597 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11599 ;; 11600 11601rdos*) 11602 dynamic_linker=no 11603 ;; 11604 11605solaris*) 11606 version_type=linux # correct to gnu/linux during the next big refactor 11607 need_lib_prefix=no 11608 need_version=no 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11610 soname_spec='$libname$release$shared_ext$major' 11611 shlibpath_var=LD_LIBRARY_PATH 11612 shlibpath_overrides_runpath=yes 11613 hardcode_into_libs=yes 11614 # ldd complains unless libraries are executable 11615 postinstall_cmds='chmod +x $lib' 11616 ;; 11617 11618sunos4*) 11619 version_type=sunos 11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11621 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11622 shlibpath_var=LD_LIBRARY_PATH 11623 shlibpath_overrides_runpath=yes 11624 if test yes = "$with_gnu_ld"; then 11625 need_lib_prefix=no 11626 fi 11627 need_version=yes 11628 ;; 11629 11630sysv4 | sysv4.3*) 11631 version_type=linux # correct to gnu/linux during the next big refactor 11632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11633 soname_spec='$libname$release$shared_ext$major' 11634 shlibpath_var=LD_LIBRARY_PATH 11635 case $host_vendor in 11636 sni) 11637 shlibpath_overrides_runpath=no 11638 need_lib_prefix=no 11639 runpath_var=LD_RUN_PATH 11640 ;; 11641 siemens) 11642 need_lib_prefix=no 11643 ;; 11644 motorola) 11645 need_lib_prefix=no 11646 need_version=no 11647 shlibpath_overrides_runpath=no 11648 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11649 ;; 11650 esac 11651 ;; 11652 11653sysv4*MP*) 11654 if test -d /usr/nec; then 11655 version_type=linux # correct to gnu/linux during the next big refactor 11656 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11657 soname_spec='$libname$shared_ext.$major' 11658 shlibpath_var=LD_LIBRARY_PATH 11659 fi 11660 ;; 11661 11662sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11663 version_type=sco 11664 need_lib_prefix=no 11665 need_version=no 11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11667 soname_spec='$libname$release$shared_ext$major' 11668 shlibpath_var=LD_LIBRARY_PATH 11669 shlibpath_overrides_runpath=yes 11670 hardcode_into_libs=yes 11671 if test yes = "$with_gnu_ld"; then 11672 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11673 else 11674 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11675 case $host_os in 11676 sco3.2v5*) 11677 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11678 ;; 11679 esac 11680 fi 11681 sys_lib_dlsearch_path_spec='/usr/lib' 11682 ;; 11683 11684tpf*) 11685 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11686 version_type=linux # correct to gnu/linux during the next big refactor 11687 need_lib_prefix=no 11688 need_version=no 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11690 shlibpath_var=LD_LIBRARY_PATH 11691 shlibpath_overrides_runpath=no 11692 hardcode_into_libs=yes 11693 ;; 11694 11695uts4*) 11696 version_type=linux # correct to gnu/linux during the next big refactor 11697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11698 soname_spec='$libname$release$shared_ext$major' 11699 shlibpath_var=LD_LIBRARY_PATH 11700 ;; 11701 11702*) 11703 dynamic_linker=no 11704 ;; 11705esac 11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11707$as_echo "$dynamic_linker" >&6; } 11708test no = "$dynamic_linker" && can_build_shared=no 11709 11710variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11711if test yes = "$GCC"; then 11712 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11713fi 11714 11715if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11716 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11717fi 11718 11719if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11720 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11721fi 11722 11723# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11724configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11725 11726# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11727func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11728 11729# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11730configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11829$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11830hardcode_action= 11831if test -n "$hardcode_libdir_flag_spec" || 11832 test -n "$runpath_var" || 11833 test yes = "$hardcode_automatic"; then 11834 11835 # We can hardcode non-existent directories. 11836 if test no != "$hardcode_direct" && 11837 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11838 # have to relink, otherwise we might link with an installed library 11839 # when we should be linking with a yet-to-be-installed one 11840 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11841 test no != "$hardcode_minus_L"; then 11842 # Linking always hardcodes the temporary library directory. 11843 hardcode_action=relink 11844 else 11845 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11846 hardcode_action=immediate 11847 fi 11848else 11849 # We cannot hardcode anything, or else we can only hardcode existing 11850 # directories. 11851 hardcode_action=unsupported 11852fi 11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11854$as_echo "$hardcode_action" >&6; } 11855 11856if test relink = "$hardcode_action" || 11857 test yes = "$inherit_rpath"; then 11858 # Fast installation is not supported 11859 enable_fast_install=no 11860elif test yes = "$shlibpath_overrides_runpath" || 11861 test no = "$enable_shared"; then 11862 # Fast installation is not necessary 11863 enable_fast_install=needless 11864fi 11865 11866 11867 11868 11869 11870 11871 if test yes != "$enable_dlopen"; then 11872 enable_dlopen=unknown 11873 enable_dlopen_self=unknown 11874 enable_dlopen_self_static=unknown 11875else 11876 lt_cv_dlopen=no 11877 lt_cv_dlopen_libs= 11878 11879 case $host_os in 11880 beos*) 11881 lt_cv_dlopen=load_add_on 11882 lt_cv_dlopen_libs= 11883 lt_cv_dlopen_self=yes 11884 ;; 11885 11886 mingw* | pw32* | cegcc*) 11887 lt_cv_dlopen=LoadLibrary 11888 lt_cv_dlopen_libs= 11889 ;; 11890 11891 cygwin*) 11892 lt_cv_dlopen=dlopen 11893 lt_cv_dlopen_libs= 11894 ;; 11895 11896 darwin*) 11897 # if libdl is installed we need to link against it 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11899$as_echo_n "checking for dlopen in -ldl... " >&6; } 11900if ${ac_cv_lib_dl_dlopen+:} false; then : 11901 $as_echo_n "(cached) " >&6 11902else 11903 ac_check_lib_save_LIBS=$LIBS 11904LIBS="-ldl $LIBS" 11905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11906/* end confdefs.h. */ 11907 11908/* Override any GCC internal prototype to avoid an error. 11909 Use char because int might match the return type of a GCC 11910 builtin and then its argument prototype would still apply. */ 11911#ifdef __cplusplus 11912extern "C" 11913#endif 11914char dlopen (); 11915int 11916main () 11917{ 11918return dlopen (); 11919 ; 11920 return 0; 11921} 11922_ACEOF 11923if ac_fn_c_try_link "$LINENO"; then : 11924 ac_cv_lib_dl_dlopen=yes 11925else 11926 ac_cv_lib_dl_dlopen=no 11927fi 11928rm -f core conftest.err conftest.$ac_objext \ 11929 conftest$ac_exeext conftest.$ac_ext 11930LIBS=$ac_check_lib_save_LIBS 11931fi 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11933$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11934if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11935 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11936else 11937 11938 lt_cv_dlopen=dyld 11939 lt_cv_dlopen_libs= 11940 lt_cv_dlopen_self=yes 11941 11942fi 11943 11944 ;; 11945 11946 tpf*) 11947 # Don't try to run any link tests for TPF. We know it's impossible 11948 # because TPF is a cross-compiler, and we know how we open DSOs. 11949 lt_cv_dlopen=dlopen 11950 lt_cv_dlopen_libs= 11951 lt_cv_dlopen_self=no 11952 ;; 11953 11954 *) 11955 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11956if test "x$ac_cv_func_shl_load" = xyes; then : 11957 lt_cv_dlopen=shl_load 11958else 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11960$as_echo_n "checking for shl_load in -ldld... " >&6; } 11961if ${ac_cv_lib_dld_shl_load+:} false; then : 11962 $as_echo_n "(cached) " >&6 11963else 11964 ac_check_lib_save_LIBS=$LIBS 11965LIBS="-ldld $LIBS" 11966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11967/* end confdefs.h. */ 11968 11969/* Override any GCC internal prototype to avoid an error. 11970 Use char because int might match the return type of a GCC 11971 builtin and then its argument prototype would still apply. */ 11972#ifdef __cplusplus 11973extern "C" 11974#endif 11975char shl_load (); 11976int 11977main () 11978{ 11979return shl_load (); 11980 ; 11981 return 0; 11982} 11983_ACEOF 11984if ac_fn_c_try_link "$LINENO"; then : 11985 ac_cv_lib_dld_shl_load=yes 11986else 11987 ac_cv_lib_dld_shl_load=no 11988fi 11989rm -f core conftest.err conftest.$ac_objext \ 11990 conftest$ac_exeext conftest.$ac_ext 11991LIBS=$ac_check_lib_save_LIBS 11992fi 11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11994$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11995if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11996 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11997else 11998 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11999if test "x$ac_cv_func_dlopen" = xyes; then : 12000 lt_cv_dlopen=dlopen 12001else 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12003$as_echo_n "checking for dlopen in -ldl... " >&6; } 12004if ${ac_cv_lib_dl_dlopen+:} false; then : 12005 $as_echo_n "(cached) " >&6 12006else 12007 ac_check_lib_save_LIBS=$LIBS 12008LIBS="-ldl $LIBS" 12009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12010/* end confdefs.h. */ 12011 12012/* Override any GCC internal prototype to avoid an error. 12013 Use char because int might match the return type of a GCC 12014 builtin and then its argument prototype would still apply. */ 12015#ifdef __cplusplus 12016extern "C" 12017#endif 12018char dlopen (); 12019int 12020main () 12021{ 12022return dlopen (); 12023 ; 12024 return 0; 12025} 12026_ACEOF 12027if ac_fn_c_try_link "$LINENO"; then : 12028 ac_cv_lib_dl_dlopen=yes 12029else 12030 ac_cv_lib_dl_dlopen=no 12031fi 12032rm -f core conftest.err conftest.$ac_objext \ 12033 conftest$ac_exeext conftest.$ac_ext 12034LIBS=$ac_check_lib_save_LIBS 12035fi 12036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12037$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12038if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12039 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12040else 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12042$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12043if ${ac_cv_lib_svld_dlopen+:} false; then : 12044 $as_echo_n "(cached) " >&6 12045else 12046 ac_check_lib_save_LIBS=$LIBS 12047LIBS="-lsvld $LIBS" 12048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12049/* end confdefs.h. */ 12050 12051/* Override any GCC internal prototype to avoid an error. 12052 Use char because int might match the return type of a GCC 12053 builtin and then its argument prototype would still apply. */ 12054#ifdef __cplusplus 12055extern "C" 12056#endif 12057char dlopen (); 12058int 12059main () 12060{ 12061return dlopen (); 12062 ; 12063 return 0; 12064} 12065_ACEOF 12066if ac_fn_c_try_link "$LINENO"; then : 12067 ac_cv_lib_svld_dlopen=yes 12068else 12069 ac_cv_lib_svld_dlopen=no 12070fi 12071rm -f core conftest.err conftest.$ac_objext \ 12072 conftest$ac_exeext conftest.$ac_ext 12073LIBS=$ac_check_lib_save_LIBS 12074fi 12075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12076$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12077if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12078 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12079else 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12081$as_echo_n "checking for dld_link in -ldld... " >&6; } 12082if ${ac_cv_lib_dld_dld_link+:} false; then : 12083 $as_echo_n "(cached) " >&6 12084else 12085 ac_check_lib_save_LIBS=$LIBS 12086LIBS="-ldld $LIBS" 12087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12088/* end confdefs.h. */ 12089 12090/* Override any GCC internal prototype to avoid an error. 12091 Use char because int might match the return type of a GCC 12092 builtin and then its argument prototype would still apply. */ 12093#ifdef __cplusplus 12094extern "C" 12095#endif 12096char dld_link (); 12097int 12098main () 12099{ 12100return dld_link (); 12101 ; 12102 return 0; 12103} 12104_ACEOF 12105if ac_fn_c_try_link "$LINENO"; then : 12106 ac_cv_lib_dld_dld_link=yes 12107else 12108 ac_cv_lib_dld_dld_link=no 12109fi 12110rm -f core conftest.err conftest.$ac_objext \ 12111 conftest$ac_exeext conftest.$ac_ext 12112LIBS=$ac_check_lib_save_LIBS 12113fi 12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12115$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12116if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12117 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12118fi 12119 12120 12121fi 12122 12123 12124fi 12125 12126 12127fi 12128 12129 12130fi 12131 12132 12133fi 12134 12135 ;; 12136 esac 12137 12138 if test no = "$lt_cv_dlopen"; then 12139 enable_dlopen=no 12140 else 12141 enable_dlopen=yes 12142 fi 12143 12144 case $lt_cv_dlopen in 12145 dlopen) 12146 save_CPPFLAGS=$CPPFLAGS 12147 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12148 12149 save_LDFLAGS=$LDFLAGS 12150 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12151 12152 save_LIBS=$LIBS 12153 LIBS="$lt_cv_dlopen_libs $LIBS" 12154 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12156$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12157if ${lt_cv_dlopen_self+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 if test yes = "$cross_compiling"; then : 12161 lt_cv_dlopen_self=cross 12162else 12163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12164 lt_status=$lt_dlunknown 12165 cat > conftest.$ac_ext <<_LT_EOF 12166#line $LINENO "configure" 12167#include "confdefs.h" 12168 12169#if HAVE_DLFCN_H 12170#include <dlfcn.h> 12171#endif 12172 12173#include <stdio.h> 12174 12175#ifdef RTLD_GLOBAL 12176# define LT_DLGLOBAL RTLD_GLOBAL 12177#else 12178# ifdef DL_GLOBAL 12179# define LT_DLGLOBAL DL_GLOBAL 12180# else 12181# define LT_DLGLOBAL 0 12182# endif 12183#endif 12184 12185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12186 find out it does not work in some platform. */ 12187#ifndef LT_DLLAZY_OR_NOW 12188# ifdef RTLD_LAZY 12189# define LT_DLLAZY_OR_NOW RTLD_LAZY 12190# else 12191# ifdef DL_LAZY 12192# define LT_DLLAZY_OR_NOW DL_LAZY 12193# else 12194# ifdef RTLD_NOW 12195# define LT_DLLAZY_OR_NOW RTLD_NOW 12196# else 12197# ifdef DL_NOW 12198# define LT_DLLAZY_OR_NOW DL_NOW 12199# else 12200# define LT_DLLAZY_OR_NOW 0 12201# endif 12202# endif 12203# endif 12204# endif 12205#endif 12206 12207/* When -fvisibility=hidden is used, assume the code has been annotated 12208 correspondingly for the symbols needed. */ 12209#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12210int fnord () __attribute__((visibility("default"))); 12211#endif 12212 12213int fnord () { return 42; } 12214int main () 12215{ 12216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12217 int status = $lt_dlunknown; 12218 12219 if (self) 12220 { 12221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12222 else 12223 { 12224 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12225 else puts (dlerror ()); 12226 } 12227 /* dlclose (self); */ 12228 } 12229 else 12230 puts (dlerror ()); 12231 12232 return status; 12233} 12234_LT_EOF 12235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12236 (eval $ac_link) 2>&5 12237 ac_status=$? 12238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12239 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12240 (./conftest; exit; ) >&5 2>/dev/null 12241 lt_status=$? 12242 case x$lt_status in 12243 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12244 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12245 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12246 esac 12247 else : 12248 # compilation failed 12249 lt_cv_dlopen_self=no 12250 fi 12251fi 12252rm -fr conftest* 12253 12254 12255fi 12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12257$as_echo "$lt_cv_dlopen_self" >&6; } 12258 12259 if test yes = "$lt_cv_dlopen_self"; then 12260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12262$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12263if ${lt_cv_dlopen_self_static+:} false; then : 12264 $as_echo_n "(cached) " >&6 12265else 12266 if test yes = "$cross_compiling"; then : 12267 lt_cv_dlopen_self_static=cross 12268else 12269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12270 lt_status=$lt_dlunknown 12271 cat > conftest.$ac_ext <<_LT_EOF 12272#line $LINENO "configure" 12273#include "confdefs.h" 12274 12275#if HAVE_DLFCN_H 12276#include <dlfcn.h> 12277#endif 12278 12279#include <stdio.h> 12280 12281#ifdef RTLD_GLOBAL 12282# define LT_DLGLOBAL RTLD_GLOBAL 12283#else 12284# ifdef DL_GLOBAL 12285# define LT_DLGLOBAL DL_GLOBAL 12286# else 12287# define LT_DLGLOBAL 0 12288# endif 12289#endif 12290 12291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12292 find out it does not work in some platform. */ 12293#ifndef LT_DLLAZY_OR_NOW 12294# ifdef RTLD_LAZY 12295# define LT_DLLAZY_OR_NOW RTLD_LAZY 12296# else 12297# ifdef DL_LAZY 12298# define LT_DLLAZY_OR_NOW DL_LAZY 12299# else 12300# ifdef RTLD_NOW 12301# define LT_DLLAZY_OR_NOW RTLD_NOW 12302# else 12303# ifdef DL_NOW 12304# define LT_DLLAZY_OR_NOW DL_NOW 12305# else 12306# define LT_DLLAZY_OR_NOW 0 12307# endif 12308# endif 12309# endif 12310# endif 12311#endif 12312 12313/* When -fvisibility=hidden is used, assume the code has been annotated 12314 correspondingly for the symbols needed. */ 12315#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12316int fnord () __attribute__((visibility("default"))); 12317#endif 12318 12319int fnord () { return 42; } 12320int main () 12321{ 12322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12323 int status = $lt_dlunknown; 12324 12325 if (self) 12326 { 12327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12328 else 12329 { 12330 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12331 else puts (dlerror ()); 12332 } 12333 /* dlclose (self); */ 12334 } 12335 else 12336 puts (dlerror ()); 12337 12338 return status; 12339} 12340_LT_EOF 12341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12342 (eval $ac_link) 2>&5 12343 ac_status=$? 12344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12345 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12346 (./conftest; exit; ) >&5 2>/dev/null 12347 lt_status=$? 12348 case x$lt_status in 12349 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12350 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12351 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12352 esac 12353 else : 12354 # compilation failed 12355 lt_cv_dlopen_self_static=no 12356 fi 12357fi 12358rm -fr conftest* 12359 12360 12361fi 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12363$as_echo "$lt_cv_dlopen_self_static" >&6; } 12364 fi 12365 12366 CPPFLAGS=$save_CPPFLAGS 12367 LDFLAGS=$save_LDFLAGS 12368 LIBS=$save_LIBS 12369 ;; 12370 esac 12371 12372 case $lt_cv_dlopen_self in 12373 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12374 *) enable_dlopen_self=unknown ;; 12375 esac 12376 12377 case $lt_cv_dlopen_self_static in 12378 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12379 *) enable_dlopen_self_static=unknown ;; 12380 esac 12381fi 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399striplib= 12400old_striplib= 12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12402$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12403if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12404 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12405 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12407$as_echo "yes" >&6; } 12408else 12409# FIXME - insert some real tests, host_os isn't really good enough 12410 case $host_os in 12411 darwin*) 12412 if test -n "$STRIP"; then 12413 striplib="$STRIP -x" 12414 old_striplib="$STRIP -S" 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12416$as_echo "yes" >&6; } 12417 else 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12419$as_echo "no" >&6; } 12420 fi 12421 ;; 12422 *) 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12424$as_echo "no" >&6; } 12425 ;; 12426 esac 12427fi 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 # Report what library types will actually be built 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12442$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12444$as_echo "$can_build_shared" >&6; } 12445 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12447$as_echo_n "checking whether to build shared libraries... " >&6; } 12448 test no = "$can_build_shared" && enable_shared=no 12449 12450 # On AIX, shared libraries and static libraries use the same namespace, and 12451 # are all built from PIC. 12452 case $host_os in 12453 aix3*) 12454 test yes = "$enable_shared" && enable_static=no 12455 if test -n "$RANLIB"; then 12456 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12457 postinstall_cmds='$RANLIB $lib' 12458 fi 12459 ;; 12460 12461 aix[4-9]*) 12462 if test ia64 != "$host_cpu"; then 12463 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12464 yes,aix,yes) ;; # shared object as lib.so file only 12465 yes,svr4,*) ;; # shared object as lib.so archive member only 12466 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12467 esac 12468 fi 12469 ;; 12470 esac 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12472$as_echo "$enable_shared" >&6; } 12473 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12475$as_echo_n "checking whether to build static libraries... " >&6; } 12476 # Make sure either enable_shared or enable_static is yes. 12477 test yes = "$enable_shared" || enable_static=yes 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12479$as_echo "$enable_static" >&6; } 12480 12481 12482 12483 12484fi 12485ac_ext=c 12486ac_cpp='$CPP $CPPFLAGS' 12487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12489ac_compiler_gnu=$ac_cv_c_compiler_gnu 12490 12491CC=$lt_save_CC 12492 12493 if test -n "$CXX" && ( test no != "$CXX" && 12494 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12495 (test g++ != "$CXX"))); then 12496 ac_ext=cpp 12497ac_cpp='$CXXCPP $CPPFLAGS' 12498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12502$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12503if test -z "$CXXCPP"; then 12504 if ${ac_cv_prog_CXXCPP+:} false; then : 12505 $as_echo_n "(cached) " >&6 12506else 12507 # Double quotes because CXXCPP needs to be expanded 12508 for CXXCPP in "$CXX -E" "/lib/cpp" 12509 do 12510 ac_preproc_ok=false 12511for ac_cxx_preproc_warn_flag in '' yes 12512do 12513 # Use a header file that comes with gcc, so configuring glibc 12514 # with a fresh cross-compiler works. 12515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12516 # <limits.h> exists even on freestanding compilers. 12517 # On the NeXT, cc -E runs the code through the compiler's parser, 12518 # not just through cpp. "Syntax error" is here to catch this case. 12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521#ifdef __STDC__ 12522# include <limits.h> 12523#else 12524# include <assert.h> 12525#endif 12526 Syntax error 12527_ACEOF 12528if ac_fn_cxx_try_cpp "$LINENO"; then : 12529 12530else 12531 # Broken: fails on valid input. 12532continue 12533fi 12534rm -f conftest.err conftest.i conftest.$ac_ext 12535 12536 # OK, works on sane cases. Now check whether nonexistent headers 12537 # can be detected and how. 12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12539/* end confdefs.h. */ 12540#include <ac_nonexistent.h> 12541_ACEOF 12542if ac_fn_cxx_try_cpp "$LINENO"; then : 12543 # Broken: success on invalid input. 12544continue 12545else 12546 # Passes both tests. 12547ac_preproc_ok=: 12548break 12549fi 12550rm -f conftest.err conftest.i conftest.$ac_ext 12551 12552done 12553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12554rm -f conftest.i conftest.err conftest.$ac_ext 12555if $ac_preproc_ok; then : 12556 break 12557fi 12558 12559 done 12560 ac_cv_prog_CXXCPP=$CXXCPP 12561 12562fi 12563 CXXCPP=$ac_cv_prog_CXXCPP 12564else 12565 ac_cv_prog_CXXCPP=$CXXCPP 12566fi 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12568$as_echo "$CXXCPP" >&6; } 12569ac_preproc_ok=false 12570for ac_cxx_preproc_warn_flag in '' yes 12571do 12572 # Use a header file that comes with gcc, so configuring glibc 12573 # with a fresh cross-compiler works. 12574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12575 # <limits.h> exists even on freestanding compilers. 12576 # On the NeXT, cc -E runs the code through the compiler's parser, 12577 # not just through cpp. "Syntax error" is here to catch this case. 12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12579/* end confdefs.h. */ 12580#ifdef __STDC__ 12581# include <limits.h> 12582#else 12583# include <assert.h> 12584#endif 12585 Syntax error 12586_ACEOF 12587if ac_fn_cxx_try_cpp "$LINENO"; then : 12588 12589else 12590 # Broken: fails on valid input. 12591continue 12592fi 12593rm -f conftest.err conftest.i conftest.$ac_ext 12594 12595 # OK, works on sane cases. Now check whether nonexistent headers 12596 # can be detected and how. 12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12598/* end confdefs.h. */ 12599#include <ac_nonexistent.h> 12600_ACEOF 12601if ac_fn_cxx_try_cpp "$LINENO"; then : 12602 # Broken: success on invalid input. 12603continue 12604else 12605 # Passes both tests. 12606ac_preproc_ok=: 12607break 12608fi 12609rm -f conftest.err conftest.i conftest.$ac_ext 12610 12611done 12612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12613rm -f conftest.i conftest.err conftest.$ac_ext 12614if $ac_preproc_ok; then : 12615 12616else 12617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12619as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12620See \`config.log' for more details" "$LINENO" 5; } 12621fi 12622 12623ac_ext=c 12624ac_cpp='$CPP $CPPFLAGS' 12625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12627ac_compiler_gnu=$ac_cv_c_compiler_gnu 12628 12629else 12630 _lt_caught_CXX_error=yes 12631fi 12632 12633ac_ext=cpp 12634ac_cpp='$CXXCPP $CPPFLAGS' 12635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12638 12639archive_cmds_need_lc_CXX=no 12640allow_undefined_flag_CXX= 12641always_export_symbols_CXX=no 12642archive_expsym_cmds_CXX= 12643compiler_needs_object_CXX=no 12644export_dynamic_flag_spec_CXX= 12645hardcode_direct_CXX=no 12646hardcode_direct_absolute_CXX=no 12647hardcode_libdir_flag_spec_CXX= 12648hardcode_libdir_separator_CXX= 12649hardcode_minus_L_CXX=no 12650hardcode_shlibpath_var_CXX=unsupported 12651hardcode_automatic_CXX=no 12652inherit_rpath_CXX=no 12653module_cmds_CXX= 12654module_expsym_cmds_CXX= 12655link_all_deplibs_CXX=unknown 12656old_archive_cmds_CXX=$old_archive_cmds 12657reload_flag_CXX=$reload_flag 12658reload_cmds_CXX=$reload_cmds 12659no_undefined_flag_CXX= 12660whole_archive_flag_spec_CXX= 12661enable_shared_with_static_runtimes_CXX=no 12662 12663# Source file extension for C++ test sources. 12664ac_ext=cpp 12665 12666# Object file extension for compiled C++ test sources. 12667objext=o 12668objext_CXX=$objext 12669 12670# No sense in running all these tests if we already determined that 12671# the CXX compiler isn't working. Some variables (like enable_shared) 12672# are currently assumed to apply to all compilers on this platform, 12673# and will be corrupted by setting them based on a non-working compiler. 12674if test yes != "$_lt_caught_CXX_error"; then 12675 # Code to be used in simple compile tests 12676 lt_simple_compile_test_code="int some_variable = 0;" 12677 12678 # Code to be used in simple link tests 12679 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12680 12681 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12682 12683 12684 12685 12686 12687 12688# If no C compiler was specified, use CC. 12689LTCC=${LTCC-"$CC"} 12690 12691# If no C compiler flags were specified, use CFLAGS. 12692LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12693 12694# Allow CC to be a program name with arguments. 12695compiler=$CC 12696 12697 12698 # save warnings/boilerplate of simple test code 12699 ac_outfile=conftest.$ac_objext 12700echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12701eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12702_lt_compiler_boilerplate=`cat conftest.err` 12703$RM conftest* 12704 12705 ac_outfile=conftest.$ac_objext 12706echo "$lt_simple_link_test_code" >conftest.$ac_ext 12707eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12708_lt_linker_boilerplate=`cat conftest.err` 12709$RM -r conftest* 12710 12711 12712 # Allow CC to be a program name with arguments. 12713 lt_save_CC=$CC 12714 lt_save_CFLAGS=$CFLAGS 12715 lt_save_LD=$LD 12716 lt_save_GCC=$GCC 12717 GCC=$GXX 12718 lt_save_with_gnu_ld=$with_gnu_ld 12719 lt_save_path_LD=$lt_cv_path_LD 12720 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12721 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12722 else 12723 $as_unset lt_cv_prog_gnu_ld 12724 fi 12725 if test -n "${lt_cv_path_LDCXX+set}"; then 12726 lt_cv_path_LD=$lt_cv_path_LDCXX 12727 else 12728 $as_unset lt_cv_path_LD 12729 fi 12730 test -z "${LDCXX+set}" || LD=$LDCXX 12731 CC=${CXX-"c++"} 12732 CFLAGS=$CXXFLAGS 12733 compiler=$CC 12734 compiler_CXX=$CC 12735 func_cc_basename $compiler 12736cc_basename=$func_cc_basename_result 12737 12738 12739 if test -n "$compiler"; then 12740 # We don't want -fno-exception when compiling C++ code, so set the 12741 # no_builtin_flag separately 12742 if test yes = "$GXX"; then 12743 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12744 else 12745 lt_prog_compiler_no_builtin_flag_CXX= 12746 fi 12747 12748 if test yes = "$GXX"; then 12749 # Set up default GNU C++ configuration 12750 12751 12752 12753# Check whether --with-gnu-ld was given. 12754if test "${with_gnu_ld+set}" = set; then : 12755 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12756else 12757 with_gnu_ld=no 12758fi 12759 12760ac_prog=ld 12761if test yes = "$GCC"; then 12762 # Check if gcc -print-prog-name=ld gives a path. 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12764$as_echo_n "checking for ld used by $CC... " >&6; } 12765 case $host in 12766 *-*-mingw*) 12767 # gcc leaves a trailing carriage return, which upsets mingw 12768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12769 *) 12770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12771 esac 12772 case $ac_prog in 12773 # Accept absolute paths. 12774 [\\/]* | ?:[\\/]*) 12775 re_direlt='/[^/][^/]*/\.\./' 12776 # Canonicalize the pathname of ld 12777 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12778 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12779 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12780 done 12781 test -z "$LD" && LD=$ac_prog 12782 ;; 12783 "") 12784 # If it fails, then pretend we aren't using GCC. 12785 ac_prog=ld 12786 ;; 12787 *) 12788 # If it is relative, then search for the first ld in PATH. 12789 with_gnu_ld=unknown 12790 ;; 12791 esac 12792elif test yes = "$with_gnu_ld"; then 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12794$as_echo_n "checking for GNU ld... " >&6; } 12795else 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12797$as_echo_n "checking for non-GNU ld... " >&6; } 12798fi 12799if ${lt_cv_path_LD+:} false; then : 12800 $as_echo_n "(cached) " >&6 12801else 12802 if test -z "$LD"; then 12803 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12804 for ac_dir in $PATH; do 12805 IFS=$lt_save_ifs 12806 test -z "$ac_dir" && ac_dir=. 12807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12808 lt_cv_path_LD=$ac_dir/$ac_prog 12809 # Check to see if the program is GNU ld. I'd rather use --version, 12810 # but apparently some variants of GNU ld only accept -v. 12811 # Break only if it was the GNU/non-GNU ld that we prefer. 12812 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12813 *GNU* | *'with BFD'*) 12814 test no != "$with_gnu_ld" && break 12815 ;; 12816 *) 12817 test yes != "$with_gnu_ld" && break 12818 ;; 12819 esac 12820 fi 12821 done 12822 IFS=$lt_save_ifs 12823else 12824 lt_cv_path_LD=$LD # Let the user override the test with a path. 12825fi 12826fi 12827 12828LD=$lt_cv_path_LD 12829if test -n "$LD"; then 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12831$as_echo "$LD" >&6; } 12832else 12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12834$as_echo "no" >&6; } 12835fi 12836test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12838$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12839if ${lt_cv_prog_gnu_ld+:} false; then : 12840 $as_echo_n "(cached) " >&6 12841else 12842 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12843case `$LD -v 2>&1 </dev/null` in 12844*GNU* | *'with BFD'*) 12845 lt_cv_prog_gnu_ld=yes 12846 ;; 12847*) 12848 lt_cv_prog_gnu_ld=no 12849 ;; 12850esac 12851fi 12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12853$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12854with_gnu_ld=$lt_cv_prog_gnu_ld 12855 12856 12857 12858 12859 12860 12861 12862 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12863 # archiving commands below assume that GNU ld is being used. 12864 if test yes = "$with_gnu_ld"; then 12865 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 12866 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' 12867 12868 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 12869 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12870 12871 # If archive_cmds runs LD, not CC, wlarc should be empty 12872 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12873 # investigate it a little bit more. (MM) 12874 wlarc='$wl' 12875 12876 # ancient GNU ld didn't support --whole-archive et. al. 12877 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12878 $GREP 'no-whole-archive' > /dev/null; then 12879 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12880 else 12881 whole_archive_flag_spec_CXX= 12882 fi 12883 else 12884 with_gnu_ld=no 12885 wlarc= 12886 12887 # A generic and very simple default shared library creation 12888 # command for GNU C++ for the case where it uses the native 12889 # linker, instead of GNU ld. If possible, this setting should 12890 # overridden to take advantage of the native linker features on 12891 # the platform it is being used on. 12892 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12893 fi 12894 12895 # Commands to make compiler produce verbose output that lists 12896 # what "hidden" libraries, object files and flags are used when 12897 # linking a shared library. 12898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 12899 12900 else 12901 GXX=no 12902 with_gnu_ld=no 12903 wlarc= 12904 fi 12905 12906 # PORTME: fill in a description of your system's C++ link characteristics 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12908$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12909 ld_shlibs_CXX=yes 12910 case $host_os in 12911 aix3*) 12912 # FIXME: insert proper C++ library support 12913 ld_shlibs_CXX=no 12914 ;; 12915 aix[4-9]*) 12916 if test ia64 = "$host_cpu"; then 12917 # On IA64, the linker does run time linking by default, so we don't 12918 # have to do anything special. 12919 aix_use_runtimelinking=no 12920 exp_sym_flag='-Bexport' 12921 no_entry_flag= 12922 else 12923 aix_use_runtimelinking=no 12924 12925 # Test if we are trying to use run time linking or normal 12926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12927 # have runtime linking enabled, and use it for executables. 12928 # For shared libraries, we enable/disable runtime linking 12929 # depending on the kind of the shared library created - 12930 # when "with_aix_soname,aix_use_runtimelinking" is: 12931 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12932 # "aix,yes" lib.so shared, rtl:yes, for executables 12933 # lib.a static archive 12934 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12935 # lib.a(lib.so.V) shared, rtl:no, for executables 12936 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12937 # lib.a(lib.so.V) shared, rtl:no 12938 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12939 # lib.a static archive 12940 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12941 for ld_flag in $LDFLAGS; do 12942 case $ld_flag in 12943 *-brtl*) 12944 aix_use_runtimelinking=yes 12945 break 12946 ;; 12947 esac 12948 done 12949 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12950 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12951 # so we don't have lib.a shared libs to link our executables. 12952 # We have to force runtime linking in this case. 12953 aix_use_runtimelinking=yes 12954 LDFLAGS="$LDFLAGS -Wl,-brtl" 12955 fi 12956 ;; 12957 esac 12958 12959 exp_sym_flag='-bexport' 12960 no_entry_flag='-bnoentry' 12961 fi 12962 12963 # When large executables or shared objects are built, AIX ld can 12964 # have problems creating the table of contents. If linking a library 12965 # or program results in "error TOC overflow" add -mminimal-toc to 12966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12968 12969 archive_cmds_CXX='' 12970 hardcode_direct_CXX=yes 12971 hardcode_direct_absolute_CXX=yes 12972 hardcode_libdir_separator_CXX=':' 12973 link_all_deplibs_CXX=yes 12974 file_list_spec_CXX='$wl-f,' 12975 case $with_aix_soname,$aix_use_runtimelinking in 12976 aix,*) ;; # no import file 12977 svr4,* | *,yes) # use import file 12978 # The Import File defines what to hardcode. 12979 hardcode_direct_CXX=no 12980 hardcode_direct_absolute_CXX=no 12981 ;; 12982 esac 12983 12984 if test yes = "$GXX"; then 12985 case $host_os in aix4.[012]|aix4.[012].*) 12986 # We only want to do this on AIX 4.2 and lower, the check 12987 # below for broken collect2 doesn't work under 4.3+ 12988 collect2name=`$CC -print-prog-name=collect2` 12989 if test -f "$collect2name" && 12990 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12991 then 12992 # We have reworked collect2 12993 : 12994 else 12995 # We have old collect2 12996 hardcode_direct_CXX=unsupported 12997 # It fails to find uninstalled libraries when the uninstalled 12998 # path is not listed in the libpath. Setting hardcode_minus_L 12999 # to unsupported forces relinking 13000 hardcode_minus_L_CXX=yes 13001 hardcode_libdir_flag_spec_CXX='-L$libdir' 13002 hardcode_libdir_separator_CXX= 13003 fi 13004 esac 13005 shared_flag='-shared' 13006 if test yes = "$aix_use_runtimelinking"; then 13007 shared_flag=$shared_flag' $wl-G' 13008 fi 13009 # Need to ensure runtime linking is disabled for the traditional 13010 # shared library, or the linker may eventually find shared libraries 13011 # /with/ Import File - we do not want to mix them. 13012 shared_flag_aix='-shared' 13013 shared_flag_svr4='-shared $wl-G' 13014 else 13015 # not using gcc 13016 if test ia64 = "$host_cpu"; then 13017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13018 # chokes on -Wl,-G. The following line is correct: 13019 shared_flag='-G' 13020 else 13021 if test yes = "$aix_use_runtimelinking"; then 13022 shared_flag='$wl-G' 13023 else 13024 shared_flag='$wl-bM:SRE' 13025 fi 13026 shared_flag_aix='$wl-bM:SRE' 13027 shared_flag_svr4='$wl-G' 13028 fi 13029 fi 13030 13031 export_dynamic_flag_spec_CXX='$wl-bexpall' 13032 # It seems that -bexpall does not export symbols beginning with 13033 # underscore (_), so it is better to generate a list of symbols to 13034 # export. 13035 always_export_symbols_CXX=yes 13036 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13037 # Warning - without using the other runtime loading flags (-brtl), 13038 # -berok will link without error, but may produce a broken library. 13039 # The "-G" linker flag allows undefined symbols. 13040 no_undefined_flag_CXX='-bernotok' 13041 # Determine the default libpath from the value encoded in an empty 13042 # executable. 13043 if test set = "${lt_cv_aix_libpath+set}"; then 13044 aix_libpath=$lt_cv_aix_libpath 13045else 13046 if ${lt_cv_aix_libpath__CXX+:} false; then : 13047 $as_echo_n "(cached) " >&6 13048else 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13050/* end confdefs.h. */ 13051 13052int 13053main () 13054{ 13055 13056 ; 13057 return 0; 13058} 13059_ACEOF 13060if ac_fn_cxx_try_link "$LINENO"; then : 13061 13062 lt_aix_libpath_sed=' 13063 /Import File Strings/,/^$/ { 13064 /^0/ { 13065 s/^0 *\([^ ]*\) *$/\1/ 13066 p 13067 } 13068 }' 13069 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13070 # Check for a 64-bit object if we didn't find anything. 13071 if test -z "$lt_cv_aix_libpath__CXX"; then 13072 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13073 fi 13074fi 13075rm -f core conftest.err conftest.$ac_objext \ 13076 conftest$ac_exeext conftest.$ac_ext 13077 if test -z "$lt_cv_aix_libpath__CXX"; then 13078 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13079 fi 13080 13081fi 13082 13083 aix_libpath=$lt_cv_aix_libpath__CXX 13084fi 13085 13086 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13087 13088 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 13089 else 13090 if test ia64 = "$host_cpu"; then 13091 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13092 allow_undefined_flag_CXX="-z nodefs" 13093 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" 13094 else 13095 # Determine the default libpath from the value encoded in an 13096 # empty executable. 13097 if test set = "${lt_cv_aix_libpath+set}"; then 13098 aix_libpath=$lt_cv_aix_libpath 13099else 13100 if ${lt_cv_aix_libpath__CXX+:} false; then : 13101 $as_echo_n "(cached) " >&6 13102else 13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13104/* end confdefs.h. */ 13105 13106int 13107main () 13108{ 13109 13110 ; 13111 return 0; 13112} 13113_ACEOF 13114if ac_fn_cxx_try_link "$LINENO"; then : 13115 13116 lt_aix_libpath_sed=' 13117 /Import File Strings/,/^$/ { 13118 /^0/ { 13119 s/^0 *\([^ ]*\) *$/\1/ 13120 p 13121 } 13122 }' 13123 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13124 # Check for a 64-bit object if we didn't find anything. 13125 if test -z "$lt_cv_aix_libpath__CXX"; then 13126 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13127 fi 13128fi 13129rm -f core conftest.err conftest.$ac_objext \ 13130 conftest$ac_exeext conftest.$ac_ext 13131 if test -z "$lt_cv_aix_libpath__CXX"; then 13132 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13133 fi 13134 13135fi 13136 13137 aix_libpath=$lt_cv_aix_libpath__CXX 13138fi 13139 13140 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13141 # Warning - without using the other run time loading flags, 13142 # -berok will link without error, but may produce a broken library. 13143 no_undefined_flag_CXX=' $wl-bernotok' 13144 allow_undefined_flag_CXX=' $wl-berok' 13145 if test yes = "$with_gnu_ld"; then 13146 # We only use this code for GNU lds that support --whole-archive. 13147 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13148 else 13149 # Exported symbols can be pulled into shared objects from archives 13150 whole_archive_flag_spec_CXX='$convenience' 13151 fi 13152 archive_cmds_need_lc_CXX=yes 13153 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13154 # -brtl affects multiple linker settings, -berok does not and is overridden later 13155 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13156 if test svr4 != "$with_aix_soname"; then 13157 # This is similar to how AIX traditionally builds its shared 13158 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13159 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' 13160 fi 13161 if test aix != "$with_aix_soname"; then 13162 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' 13163 else 13164 # used by -dlpreopen to get the symbols 13165 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13166 fi 13167 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13168 fi 13169 fi 13170 ;; 13171 13172 beos*) 13173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13174 allow_undefined_flag_CXX=unsupported 13175 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13176 # support --undefined. This deserves some investigation. FIXME 13177 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13178 else 13179 ld_shlibs_CXX=no 13180 fi 13181 ;; 13182 13183 chorus*) 13184 case $cc_basename in 13185 *) 13186 # FIXME: insert proper C++ library support 13187 ld_shlibs_CXX=no 13188 ;; 13189 esac 13190 ;; 13191 13192 cygwin* | mingw* | pw32* | cegcc*) 13193 case $GXX,$cc_basename in 13194 ,cl* | no,cl*) 13195 # Native MSVC 13196 # hardcode_libdir_flag_spec is actually meaningless, as there is 13197 # no search path for DLLs. 13198 hardcode_libdir_flag_spec_CXX=' ' 13199 allow_undefined_flag_CXX=unsupported 13200 always_export_symbols_CXX=yes 13201 file_list_spec_CXX='@' 13202 # Tell ltmain to make .lib files, not .a files. 13203 libext=lib 13204 # Tell ltmain to make .dll files, not .so files. 13205 shrext_cmds=.dll 13206 # FIXME: Setting linknames here is a bad hack. 13207 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13208 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13209 cp "$export_symbols" "$output_objdir/$soname.def"; 13210 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13211 else 13212 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13213 fi~ 13214 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13215 linknames=' 13216 # The linker will not automatically build a static lib if we build a DLL. 13217 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13218 enable_shared_with_static_runtimes_CXX=yes 13219 # Don't use ranlib 13220 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13221 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13222 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13223 case $lt_outputfile in 13224 *.exe|*.EXE) ;; 13225 *) 13226 lt_outputfile=$lt_outputfile.exe 13227 lt_tool_outputfile=$lt_tool_outputfile.exe 13228 ;; 13229 esac~ 13230 func_to_tool_file "$lt_outputfile"~ 13231 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13232 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13233 $RM "$lt_outputfile.manifest"; 13234 fi' 13235 ;; 13236 *) 13237 # g++ 13238 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13239 # as there is no search path for DLLs. 13240 hardcode_libdir_flag_spec_CXX='-L$libdir' 13241 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13242 allow_undefined_flag_CXX=unsupported 13243 always_export_symbols_CXX=no 13244 enable_shared_with_static_runtimes_CXX=yes 13245 13246 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13247 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' 13248 # If the export-symbols file already is a .def file, use it as 13249 # is; otherwise, prepend EXPORTS... 13250 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13251 cp $export_symbols $output_objdir/$soname.def; 13252 else 13253 echo EXPORTS > $output_objdir/$soname.def; 13254 cat $export_symbols >> $output_objdir/$soname.def; 13255 fi~ 13256 $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' 13257 else 13258 ld_shlibs_CXX=no 13259 fi 13260 ;; 13261 esac 13262 ;; 13263 darwin* | rhapsody*) 13264 13265 13266 archive_cmds_need_lc_CXX=no 13267 hardcode_direct_CXX=no 13268 hardcode_automatic_CXX=yes 13269 hardcode_shlibpath_var_CXX=unsupported 13270 if test yes = "$lt_cv_ld_force_load"; then 13271 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\"`' 13272 13273 else 13274 whole_archive_flag_spec_CXX='' 13275 fi 13276 link_all_deplibs_CXX=yes 13277 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13278 case $cc_basename in 13279 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13280 *) _lt_dar_can_shared=$GCC ;; 13281 esac 13282 if test yes = "$_lt_dar_can_shared"; then 13283 output_verbose_link_cmd=func_echo_all 13284 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" 13285 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13286 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" 13287 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" 13288 if test yes != "$lt_cv_apple_cc_single_mod"; then 13289 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" 13290 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" 13291 fi 13292 13293 else 13294 ld_shlibs_CXX=no 13295 fi 13296 13297 ;; 13298 13299 os2*) 13300 hardcode_libdir_flag_spec_CXX='-L$libdir' 13301 hardcode_minus_L_CXX=yes 13302 allow_undefined_flag_CXX=unsupported 13303 shrext_cmds=.dll 13304 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13305 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13306 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13307 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13308 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13309 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13310 emximp -o $lib $output_objdir/$libname.def' 13311 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13312 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13313 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13314 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13315 prefix_cmds="$SED"~ 13316 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13317 prefix_cmds="$prefix_cmds -e 1d"; 13318 fi~ 13319 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13320 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13321 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13322 emximp -o $lib $output_objdir/$libname.def' 13323 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13324 enable_shared_with_static_runtimes_CXX=yes 13325 ;; 13326 13327 dgux*) 13328 case $cc_basename in 13329 ec++*) 13330 # FIXME: insert proper C++ library support 13331 ld_shlibs_CXX=no 13332 ;; 13333 ghcx*) 13334 # Green Hills C++ Compiler 13335 # FIXME: insert proper C++ library support 13336 ld_shlibs_CXX=no 13337 ;; 13338 *) 13339 # FIXME: insert proper C++ library support 13340 ld_shlibs_CXX=no 13341 ;; 13342 esac 13343 ;; 13344 13345 freebsd2.*) 13346 # C++ shared libraries reported to be fairly broken before 13347 # switch to ELF 13348 ld_shlibs_CXX=no 13349 ;; 13350 13351 freebsd-elf*) 13352 archive_cmds_need_lc_CXX=no 13353 ;; 13354 13355 freebsd* | dragonfly*) 13356 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13357 # conventions 13358 ld_shlibs_CXX=yes 13359 ;; 13360 13361 haiku*) 13362 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13363 link_all_deplibs_CXX=yes 13364 ;; 13365 13366 hpux9*) 13367 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13368 hardcode_libdir_separator_CXX=: 13369 export_dynamic_flag_spec_CXX='$wl-E' 13370 hardcode_direct_CXX=yes 13371 hardcode_minus_L_CXX=yes # Not in the search PATH, 13372 # but as the default 13373 # location of the library. 13374 13375 case $cc_basename in 13376 CC*) 13377 # FIXME: insert proper C++ library support 13378 ld_shlibs_CXX=no 13379 ;; 13380 aCC*) 13381 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' 13382 # Commands to make compiler produce verbose output that lists 13383 # what "hidden" libraries, object files and flags are used when 13384 # linking a shared library. 13385 # 13386 # There doesn't appear to be a way to prevent this compiler from 13387 # explicitly linking system object files so we need to strip them 13388 # from the output so that they don't get included in the library 13389 # dependencies. 13390 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"' 13391 ;; 13392 *) 13393 if test yes = "$GXX"; then 13394 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' 13395 else 13396 # FIXME: insert proper C++ library support 13397 ld_shlibs_CXX=no 13398 fi 13399 ;; 13400 esac 13401 ;; 13402 13403 hpux10*|hpux11*) 13404 if test no = "$with_gnu_ld"; then 13405 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13406 hardcode_libdir_separator_CXX=: 13407 13408 case $host_cpu in 13409 hppa*64*|ia64*) 13410 ;; 13411 *) 13412 export_dynamic_flag_spec_CXX='$wl-E' 13413 ;; 13414 esac 13415 fi 13416 case $host_cpu in 13417 hppa*64*|ia64*) 13418 hardcode_direct_CXX=no 13419 hardcode_shlibpath_var_CXX=no 13420 ;; 13421 *) 13422 hardcode_direct_CXX=yes 13423 hardcode_direct_absolute_CXX=yes 13424 hardcode_minus_L_CXX=yes # Not in the search PATH, 13425 # but as the default 13426 # location of the library. 13427 ;; 13428 esac 13429 13430 case $cc_basename in 13431 CC*) 13432 # FIXME: insert proper C++ library support 13433 ld_shlibs_CXX=no 13434 ;; 13435 aCC*) 13436 case $host_cpu in 13437 hppa*64*) 13438 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13439 ;; 13440 ia64*) 13441 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13442 ;; 13443 *) 13444 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13445 ;; 13446 esac 13447 # Commands to make compiler produce verbose output that lists 13448 # what "hidden" libraries, object files and flags are used when 13449 # linking a shared library. 13450 # 13451 # There doesn't appear to be a way to prevent this compiler from 13452 # explicitly linking system object files so we need to strip them 13453 # from the output so that they don't get included in the library 13454 # dependencies. 13455 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"' 13456 ;; 13457 *) 13458 if test yes = "$GXX"; then 13459 if test no = "$with_gnu_ld"; then 13460 case $host_cpu in 13461 hppa*64*) 13462 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13463 ;; 13464 ia64*) 13465 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13466 ;; 13467 *) 13468 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' 13469 ;; 13470 esac 13471 fi 13472 else 13473 # FIXME: insert proper C++ library support 13474 ld_shlibs_CXX=no 13475 fi 13476 ;; 13477 esac 13478 ;; 13479 13480 interix[3-9]*) 13481 hardcode_direct_CXX=no 13482 hardcode_shlibpath_var_CXX=no 13483 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13484 export_dynamic_flag_spec_CXX='$wl-E' 13485 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13486 # Instead, shared libraries are loaded at an image base (0x10000000 by 13487 # default) and relocated if they conflict, which is a slow very memory 13488 # consuming and fragmenting process. To avoid this, we pick a random, 13489 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13490 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13491 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' 13492 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' 13493 ;; 13494 irix5* | irix6*) 13495 case $cc_basename in 13496 CC*) 13497 # SGI C++ 13498 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' 13499 13500 # Archives containing C++ object files must be created using 13501 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13502 # necessary to make sure instantiated templates are included 13503 # in the archive. 13504 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13505 ;; 13506 *) 13507 if test yes = "$GXX"; then 13508 if test no = "$with_gnu_ld"; then 13509 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' 13510 else 13511 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' 13512 fi 13513 fi 13514 link_all_deplibs_CXX=yes 13515 ;; 13516 esac 13517 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13518 hardcode_libdir_separator_CXX=: 13519 inherit_rpath_CXX=yes 13520 ;; 13521 13522 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13523 case $cc_basename in 13524 KCC*) 13525 # Kuck and Associates, Inc. (KAI) C++ Compiler 13526 13527 # KCC will only create a shared library if the output file 13528 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13529 # to its proper name (with version) after linking. 13530 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' 13531 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' 13532 # Commands to make compiler produce verbose output that lists 13533 # what "hidden" libraries, object files and flags are used when 13534 # linking a shared library. 13535 # 13536 # There doesn't appear to be a way to prevent this compiler from 13537 # explicitly linking system object files so we need to strip them 13538 # from the output so that they don't get included in the library 13539 # dependencies. 13540 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"' 13541 13542 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13543 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13544 13545 # Archives containing C++ object files must be created using 13546 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13547 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13548 ;; 13549 icpc* | ecpc* ) 13550 # Intel C++ 13551 with_gnu_ld=yes 13552 # version 8.0 and above of icpc choke on multiply defined symbols 13553 # if we add $predep_objects and $postdep_objects, however 7.1 and 13554 # earlier do not add the objects themselves. 13555 case `$CC -V 2>&1` in 13556 *"Version 7."*) 13557 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13558 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' 13559 ;; 13560 *) # Version 8.0 or newer 13561 tmp_idyn= 13562 case $host_cpu in 13563 ia64*) tmp_idyn=' -i_dynamic';; 13564 esac 13565 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13566 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' 13567 ;; 13568 esac 13569 archive_cmds_need_lc_CXX=no 13570 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13571 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13572 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13573 ;; 13574 pgCC* | pgcpp*) 13575 # Portland Group C++ compiler 13576 case `$CC -V` in 13577 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13578 prelink_cmds_CXX='tpldir=Template.dir~ 13579 rm -rf $tpldir~ 13580 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13581 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13582 old_archive_cmds_CXX='tpldir=Template.dir~ 13583 rm -rf $tpldir~ 13584 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13585 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13586 $RANLIB $oldlib' 13587 archive_cmds_CXX='tpldir=Template.dir~ 13588 rm -rf $tpldir~ 13589 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13590 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13591 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13592 rm -rf $tpldir~ 13593 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13594 $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' 13595 ;; 13596 *) # Version 6 and above use weak symbols 13597 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13598 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' 13599 ;; 13600 esac 13601 13602 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13603 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13604 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' 13605 ;; 13606 cxx*) 13607 # Compaq C++ 13608 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13609 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' 13610 13611 runpath_var=LD_RUN_PATH 13612 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13613 hardcode_libdir_separator_CXX=: 13614 13615 # Commands to make compiler produce verbose output that lists 13616 # what "hidden" libraries, object files and flags are used when 13617 # linking a shared library. 13618 # 13619 # There doesn't appear to be a way to prevent this compiler from 13620 # explicitly linking system object files so we need to strip them 13621 # from the output so that they don't get included in the library 13622 # dependencies. 13623 output_verbose_link_cmd='templist=`$CC -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' 13624 ;; 13625 xl* | mpixl* | bgxl*) 13626 # IBM XL 8.0 on PPC, with GNU ld 13627 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13628 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13629 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13630 if test yes = "$supports_anon_versioning"; then 13631 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13633 echo "local: *; };" >> $output_objdir/$libname.ver~ 13634 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13635 fi 13636 ;; 13637 *) 13638 case `$CC -V 2>&1 | sed 5q` in 13639 *Sun\ C*) 13640 # Sun C++ 5.9 13641 no_undefined_flag_CXX=' -zdefs' 13642 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13643 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' 13644 hardcode_libdir_flag_spec_CXX='-R$libdir' 13645 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' 13646 compiler_needs_object_CXX=yes 13647 13648 # Not sure whether something based on 13649 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13650 # would be better. 13651 output_verbose_link_cmd='func_echo_all' 13652 13653 # Archives containing C++ object files must be created using 13654 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13655 # necessary to make sure instantiated templates are included 13656 # in the archive. 13657 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13658 ;; 13659 esac 13660 ;; 13661 esac 13662 ;; 13663 13664 lynxos*) 13665 # FIXME: insert proper C++ library support 13666 ld_shlibs_CXX=no 13667 ;; 13668 13669 m88k*) 13670 # FIXME: insert proper C++ library support 13671 ld_shlibs_CXX=no 13672 ;; 13673 13674 mvs*) 13675 case $cc_basename in 13676 cxx*) 13677 # FIXME: insert proper C++ library support 13678 ld_shlibs_CXX=no 13679 ;; 13680 *) 13681 # FIXME: insert proper C++ library support 13682 ld_shlibs_CXX=no 13683 ;; 13684 esac 13685 ;; 13686 13687 netbsd*) 13688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13689 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13690 wlarc= 13691 hardcode_libdir_flag_spec_CXX='-R$libdir' 13692 hardcode_direct_CXX=yes 13693 hardcode_shlibpath_var_CXX=no 13694 fi 13695 # Workaround some broken pre-1.5 toolchains 13696 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13697 ;; 13698 13699 *nto* | *qnx*) 13700 ld_shlibs_CXX=yes 13701 ;; 13702 13703 openbsd* | bitrig*) 13704 if test -f /usr/libexec/ld.so; then 13705 hardcode_direct_CXX=yes 13706 hardcode_shlibpath_var_CXX=no 13707 hardcode_direct_absolute_CXX=yes 13708 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13709 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13711 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13712 export_dynamic_flag_spec_CXX='$wl-E' 13713 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13714 fi 13715 output_verbose_link_cmd=func_echo_all 13716 else 13717 ld_shlibs_CXX=no 13718 fi 13719 ;; 13720 13721 osf3* | osf4* | osf5*) 13722 case $cc_basename in 13723 KCC*) 13724 # Kuck and Associates, Inc. (KAI) C++ Compiler 13725 13726 # KCC will only create a shared library if the output file 13727 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13728 # to its proper name (with version) after linking. 13729 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' 13730 13731 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13732 hardcode_libdir_separator_CXX=: 13733 13734 # Archives containing C++ object files must be created using 13735 # the KAI C++ compiler. 13736 case $host in 13737 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13738 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13739 esac 13740 ;; 13741 RCC*) 13742 # Rational C++ 2.4.1 13743 # FIXME: insert proper C++ library support 13744 ld_shlibs_CXX=no 13745 ;; 13746 cxx*) 13747 case $host in 13748 osf3*) 13749 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13750 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' 13751 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13752 ;; 13753 *) 13754 allow_undefined_flag_CXX=' -expect_unresolved \*' 13755 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' 13756 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13757 echo "-hidden">> $lib.exp~ 13758 $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~ 13759 $RM $lib.exp' 13760 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13761 ;; 13762 esac 13763 13764 hardcode_libdir_separator_CXX=: 13765 13766 # Commands to make compiler produce verbose output that lists 13767 # what "hidden" libraries, object files and flags are used when 13768 # linking a shared library. 13769 # 13770 # There doesn't appear to be a way to prevent this compiler from 13771 # explicitly linking system object files so we need to strip them 13772 # from the output so that they don't get included in the library 13773 # dependencies. 13774 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"' 13775 ;; 13776 *) 13777 if test yes,no = "$GXX,$with_gnu_ld"; then 13778 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13779 case $host in 13780 osf3*) 13781 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' 13782 ;; 13783 *) 13784 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' 13785 ;; 13786 esac 13787 13788 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13789 hardcode_libdir_separator_CXX=: 13790 13791 # Commands to make compiler produce verbose output that lists 13792 # what "hidden" libraries, object files and flags are used when 13793 # linking a shared library. 13794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13795 13796 else 13797 # FIXME: insert proper C++ library support 13798 ld_shlibs_CXX=no 13799 fi 13800 ;; 13801 esac 13802 ;; 13803 13804 psos*) 13805 # FIXME: insert proper C++ library support 13806 ld_shlibs_CXX=no 13807 ;; 13808 13809 sunos4*) 13810 case $cc_basename in 13811 CC*) 13812 # Sun C++ 4.x 13813 # FIXME: insert proper C++ library support 13814 ld_shlibs_CXX=no 13815 ;; 13816 lcc*) 13817 # Lucid 13818 # FIXME: insert proper C++ library support 13819 ld_shlibs_CXX=no 13820 ;; 13821 *) 13822 # FIXME: insert proper C++ library support 13823 ld_shlibs_CXX=no 13824 ;; 13825 esac 13826 ;; 13827 13828 solaris*) 13829 case $cc_basename in 13830 CC* | sunCC*) 13831 # Sun C++ 4.2, 5.x and Centerline C++ 13832 archive_cmds_need_lc_CXX=yes 13833 no_undefined_flag_CXX=' -zdefs' 13834 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13835 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13836 $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' 13837 13838 hardcode_libdir_flag_spec_CXX='-R$libdir' 13839 hardcode_shlibpath_var_CXX=no 13840 case $host_os in 13841 solaris2.[0-5] | solaris2.[0-5].*) ;; 13842 *) 13843 # The compiler driver will combine and reorder linker options, 13844 # but understands '-z linker_flag'. 13845 # Supported since Solaris 2.6 (maybe 2.5.1?) 13846 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13847 ;; 13848 esac 13849 link_all_deplibs_CXX=yes 13850 13851 output_verbose_link_cmd='func_echo_all' 13852 13853 # Archives containing C++ object files must be created using 13854 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13855 # necessary to make sure instantiated templates are included 13856 # in the archive. 13857 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13858 ;; 13859 gcx*) 13860 # Green Hills C++ Compiler 13861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13862 13863 # The C++ compiler must be used to create the archive. 13864 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13865 ;; 13866 *) 13867 # GNU C++ compiler with Solaris linker 13868 if test yes,no = "$GXX,$with_gnu_ld"; then 13869 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13870 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13871 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13872 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13873 $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' 13874 13875 # Commands to make compiler produce verbose output that lists 13876 # what "hidden" libraries, object files and flags are used when 13877 # linking a shared library. 13878 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13879 else 13880 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13881 # platform. 13882 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13883 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13884 $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' 13885 13886 # Commands to make compiler produce verbose output that lists 13887 # what "hidden" libraries, object files and flags are used when 13888 # linking a shared library. 13889 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13890 fi 13891 13892 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13893 case $host_os in 13894 solaris2.[0-5] | solaris2.[0-5].*) ;; 13895 *) 13896 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13897 ;; 13898 esac 13899 fi 13900 ;; 13901 esac 13902 ;; 13903 13904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13905 no_undefined_flag_CXX='$wl-z,text' 13906 archive_cmds_need_lc_CXX=no 13907 hardcode_shlibpath_var_CXX=no 13908 runpath_var='LD_RUN_PATH' 13909 13910 case $cc_basename in 13911 CC*) 13912 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13913 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13914 ;; 13915 *) 13916 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13917 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13918 ;; 13919 esac 13920 ;; 13921 13922 sysv5* | sco3.2v5* | sco5v6*) 13923 # Note: We CANNOT use -z defs as we might desire, because we do not 13924 # link with -lc, and that would cause any symbols used from libc to 13925 # always be unresolved, which means just about no library would 13926 # ever link correctly. If we're not using GNU ld we use -z text 13927 # though, which does catch some bad symbols but isn't as heavy-handed 13928 # as -z defs. 13929 no_undefined_flag_CXX='$wl-z,text' 13930 allow_undefined_flag_CXX='$wl-z,nodefs' 13931 archive_cmds_need_lc_CXX=no 13932 hardcode_shlibpath_var_CXX=no 13933 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 13934 hardcode_libdir_separator_CXX=':' 13935 link_all_deplibs_CXX=yes 13936 export_dynamic_flag_spec_CXX='$wl-Bexport' 13937 runpath_var='LD_RUN_PATH' 13938 13939 case $cc_basename in 13940 CC*) 13941 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13942 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13943 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13944 '"$old_archive_cmds_CXX" 13945 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13946 '"$reload_cmds_CXX" 13947 ;; 13948 *) 13949 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13950 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13951 ;; 13952 esac 13953 ;; 13954 13955 tandem*) 13956 case $cc_basename in 13957 NCC*) 13958 # NonStop-UX NCC 3.20 13959 # FIXME: insert proper C++ library support 13960 ld_shlibs_CXX=no 13961 ;; 13962 *) 13963 # FIXME: insert proper C++ library support 13964 ld_shlibs_CXX=no 13965 ;; 13966 esac 13967 ;; 13968 13969 vxworks*) 13970 # FIXME: insert proper C++ library support 13971 ld_shlibs_CXX=no 13972 ;; 13973 13974 *) 13975 # FIXME: insert proper C++ library support 13976 ld_shlibs_CXX=no 13977 ;; 13978 esac 13979 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13981$as_echo "$ld_shlibs_CXX" >&6; } 13982 test no = "$ld_shlibs_CXX" && can_build_shared=no 13983 13984 GCC_CXX=$GXX 13985 LD_CXX=$LD 13986 13987 ## CAVEAT EMPTOR: 13988 ## There is no encapsulation within the following macros, do not change 13989 ## the running order or otherwise move them around unless you know exactly 13990 ## what you are doing... 13991 # Dependencies to place before and after the object being linked: 13992predep_objects_CXX= 13993postdep_objects_CXX= 13994predeps_CXX= 13995postdeps_CXX= 13996compiler_lib_search_path_CXX= 13997 13998cat > conftest.$ac_ext <<_LT_EOF 13999class Foo 14000{ 14001public: 14002 Foo (void) { a = 0; } 14003private: 14004 int a; 14005}; 14006_LT_EOF 14007 14008 14009_lt_libdeps_save_CFLAGS=$CFLAGS 14010case "$CC $CFLAGS " in #( 14011*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14012*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14013*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14014esac 14015 14016if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14017 (eval $ac_compile) 2>&5 14018 ac_status=$? 14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14020 test $ac_status = 0; }; then 14021 # Parse the compiler output and extract the necessary 14022 # objects, libraries and library flags. 14023 14024 # Sentinel used to keep track of whether or not we are before 14025 # the conftest object file. 14026 pre_test_object_deps_done=no 14027 14028 for p in `eval "$output_verbose_link_cmd"`; do 14029 case $prev$p in 14030 14031 -L* | -R* | -l*) 14032 # Some compilers place space between "-{L,R}" and the path. 14033 # Remove the space. 14034 if test x-L = "$p" || 14035 test x-R = "$p"; then 14036 prev=$p 14037 continue 14038 fi 14039 14040 # Expand the sysroot to ease extracting the directories later. 14041 if test -z "$prev"; then 14042 case $p in 14043 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14044 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14045 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14046 esac 14047 fi 14048 case $p in 14049 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14050 esac 14051 if test no = "$pre_test_object_deps_done"; then 14052 case $prev in 14053 -L | -R) 14054 # Internal compiler library paths should come after those 14055 # provided the user. The postdeps already come after the 14056 # user supplied libs so there is no need to process them. 14057 if test -z "$compiler_lib_search_path_CXX"; then 14058 compiler_lib_search_path_CXX=$prev$p 14059 else 14060 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14061 fi 14062 ;; 14063 # The "-l" case would never come before the object being 14064 # linked, so don't bother handling this case. 14065 esac 14066 else 14067 if test -z "$postdeps_CXX"; then 14068 postdeps_CXX=$prev$p 14069 else 14070 postdeps_CXX="${postdeps_CXX} $prev$p" 14071 fi 14072 fi 14073 prev= 14074 ;; 14075 14076 *.lto.$objext) ;; # Ignore GCC LTO objects 14077 *.$objext) 14078 # This assumes that the test object file only shows up 14079 # once in the compiler output. 14080 if test "$p" = "conftest.$objext"; then 14081 pre_test_object_deps_done=yes 14082 continue 14083 fi 14084 14085 if test no = "$pre_test_object_deps_done"; then 14086 if test -z "$predep_objects_CXX"; then 14087 predep_objects_CXX=$p 14088 else 14089 predep_objects_CXX="$predep_objects_CXX $p" 14090 fi 14091 else 14092 if test -z "$postdep_objects_CXX"; then 14093 postdep_objects_CXX=$p 14094 else 14095 postdep_objects_CXX="$postdep_objects_CXX $p" 14096 fi 14097 fi 14098 ;; 14099 14100 *) ;; # Ignore the rest. 14101 14102 esac 14103 done 14104 14105 # Clean up. 14106 rm -f a.out a.exe 14107else 14108 echo "libtool.m4: error: problem compiling CXX test program" 14109fi 14110 14111$RM -f confest.$objext 14112CFLAGS=$_lt_libdeps_save_CFLAGS 14113 14114# PORTME: override above test on systems where it is broken 14115case $host_os in 14116interix[3-9]*) 14117 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14118 # hack all around it, let's just trust "g++" to DTRT. 14119 predep_objects_CXX= 14120 postdep_objects_CXX= 14121 postdeps_CXX= 14122 ;; 14123esac 14124 14125 14126case " $postdeps_CXX " in 14127*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14128esac 14129 compiler_lib_search_dirs_CXX= 14130if test -n "${compiler_lib_search_path_CXX}"; then 14131 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14132fi 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 lt_prog_compiler_wl_CXX= 14165lt_prog_compiler_pic_CXX= 14166lt_prog_compiler_static_CXX= 14167 14168 14169 # C++ specific cases for pic, static, wl, etc. 14170 if test yes = "$GXX"; then 14171 lt_prog_compiler_wl_CXX='-Wl,' 14172 lt_prog_compiler_static_CXX='-static' 14173 14174 case $host_os in 14175 aix*) 14176 # All AIX code is PIC. 14177 if test ia64 = "$host_cpu"; then 14178 # AIX 5 now supports IA64 processor 14179 lt_prog_compiler_static_CXX='-Bstatic' 14180 fi 14181 lt_prog_compiler_pic_CXX='-fPIC' 14182 ;; 14183 14184 amigaos*) 14185 case $host_cpu in 14186 powerpc) 14187 # see comment about AmigaOS4 .so support 14188 lt_prog_compiler_pic_CXX='-fPIC' 14189 ;; 14190 m68k) 14191 # FIXME: we need at least 68020 code to build shared libraries, but 14192 # adding the '-m68020' flag to GCC prevents building anything better, 14193 # like '-m68040'. 14194 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14195 ;; 14196 esac 14197 ;; 14198 14199 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14200 # PIC is the default for these OSes. 14201 ;; 14202 mingw* | cygwin* | os2* | pw32* | cegcc*) 14203 # This hack is so that the source file can tell whether it is being 14204 # built for inclusion in a dll (and should export symbols for example). 14205 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14206 # (--disable-auto-import) libraries 14207 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14208 case $host_os in 14209 os2*) 14210 lt_prog_compiler_static_CXX='$wl-static' 14211 ;; 14212 esac 14213 ;; 14214 darwin* | rhapsody*) 14215 # PIC is the default on this platform 14216 # Common symbols not allowed in MH_DYLIB files 14217 lt_prog_compiler_pic_CXX='-fno-common' 14218 ;; 14219 *djgpp*) 14220 # DJGPP does not support shared libraries at all 14221 lt_prog_compiler_pic_CXX= 14222 ;; 14223 haiku*) 14224 # PIC is the default for Haiku. 14225 # The "-static" flag exists, but is broken. 14226 lt_prog_compiler_static_CXX= 14227 ;; 14228 interix[3-9]*) 14229 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14230 # Instead, we relocate shared libraries at runtime. 14231 ;; 14232 sysv4*MP*) 14233 if test -d /usr/nec; then 14234 lt_prog_compiler_pic_CXX=-Kconform_pic 14235 fi 14236 ;; 14237 hpux*) 14238 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14239 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14240 # sets the default TLS model and affects inlining. 14241 case $host_cpu in 14242 hppa*64*) 14243 ;; 14244 *) 14245 lt_prog_compiler_pic_CXX='-fPIC' 14246 ;; 14247 esac 14248 ;; 14249 *qnx* | *nto*) 14250 # QNX uses GNU C++, but need to define -shared option too, otherwise 14251 # it will coredump. 14252 lt_prog_compiler_pic_CXX='-fPIC -shared' 14253 ;; 14254 *) 14255 lt_prog_compiler_pic_CXX='-fPIC' 14256 ;; 14257 esac 14258 else 14259 case $host_os in 14260 aix[4-9]*) 14261 # All AIX code is PIC. 14262 if test ia64 = "$host_cpu"; then 14263 # AIX 5 now supports IA64 processor 14264 lt_prog_compiler_static_CXX='-Bstatic' 14265 else 14266 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14267 fi 14268 ;; 14269 chorus*) 14270 case $cc_basename in 14271 cxch68*) 14272 # Green Hills C++ Compiler 14273 # _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" 14274 ;; 14275 esac 14276 ;; 14277 mingw* | cygwin* | os2* | pw32* | cegcc*) 14278 # This hack is so that the source file can tell whether it is being 14279 # built for inclusion in a dll (and should export symbols for example). 14280 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14281 ;; 14282 dgux*) 14283 case $cc_basename in 14284 ec++*) 14285 lt_prog_compiler_pic_CXX='-KPIC' 14286 ;; 14287 ghcx*) 14288 # Green Hills C++ Compiler 14289 lt_prog_compiler_pic_CXX='-pic' 14290 ;; 14291 *) 14292 ;; 14293 esac 14294 ;; 14295 freebsd* | dragonfly*) 14296 # FreeBSD uses GNU C++ 14297 ;; 14298 hpux9* | hpux10* | hpux11*) 14299 case $cc_basename in 14300 CC*) 14301 lt_prog_compiler_wl_CXX='-Wl,' 14302 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14303 if test ia64 != "$host_cpu"; then 14304 lt_prog_compiler_pic_CXX='+Z' 14305 fi 14306 ;; 14307 aCC*) 14308 lt_prog_compiler_wl_CXX='-Wl,' 14309 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14310 case $host_cpu in 14311 hppa*64*|ia64*) 14312 # +Z the default 14313 ;; 14314 *) 14315 lt_prog_compiler_pic_CXX='+Z' 14316 ;; 14317 esac 14318 ;; 14319 *) 14320 ;; 14321 esac 14322 ;; 14323 interix*) 14324 # This is c89, which is MS Visual C++ (no shared libs) 14325 # Anyone wants to do a port? 14326 ;; 14327 irix5* | irix6* | nonstopux*) 14328 case $cc_basename in 14329 CC*) 14330 lt_prog_compiler_wl_CXX='-Wl,' 14331 lt_prog_compiler_static_CXX='-non_shared' 14332 # CC pic flag -KPIC is the default. 14333 ;; 14334 *) 14335 ;; 14336 esac 14337 ;; 14338 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14339 case $cc_basename in 14340 KCC*) 14341 # KAI C++ Compiler 14342 lt_prog_compiler_wl_CXX='--backend -Wl,' 14343 lt_prog_compiler_pic_CXX='-fPIC' 14344 ;; 14345 ecpc* ) 14346 # old Intel C++ for x86_64, which still supported -KPIC. 14347 lt_prog_compiler_wl_CXX='-Wl,' 14348 lt_prog_compiler_pic_CXX='-KPIC' 14349 lt_prog_compiler_static_CXX='-static' 14350 ;; 14351 icpc* ) 14352 # Intel C++, used to be incompatible with GCC. 14353 # ICC 10 doesn't accept -KPIC any more. 14354 lt_prog_compiler_wl_CXX='-Wl,' 14355 lt_prog_compiler_pic_CXX='-fPIC' 14356 lt_prog_compiler_static_CXX='-static' 14357 ;; 14358 pgCC* | pgcpp*) 14359 # Portland Group C++ compiler 14360 lt_prog_compiler_wl_CXX='-Wl,' 14361 lt_prog_compiler_pic_CXX='-fpic' 14362 lt_prog_compiler_static_CXX='-Bstatic' 14363 ;; 14364 cxx*) 14365 # Compaq C++ 14366 # Make sure the PIC flag is empty. It appears that all Alpha 14367 # Linux and Compaq Tru64 Unix objects are PIC. 14368 lt_prog_compiler_pic_CXX= 14369 lt_prog_compiler_static_CXX='-non_shared' 14370 ;; 14371 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14372 # IBM XL 8.0, 9.0 on PPC and BlueGene 14373 lt_prog_compiler_wl_CXX='-Wl,' 14374 lt_prog_compiler_pic_CXX='-qpic' 14375 lt_prog_compiler_static_CXX='-qstaticlink' 14376 ;; 14377 *) 14378 case `$CC -V 2>&1 | sed 5q` in 14379 *Sun\ C*) 14380 # Sun C++ 5.9 14381 lt_prog_compiler_pic_CXX='-KPIC' 14382 lt_prog_compiler_static_CXX='-Bstatic' 14383 lt_prog_compiler_wl_CXX='-Qoption ld ' 14384 ;; 14385 esac 14386 ;; 14387 esac 14388 ;; 14389 lynxos*) 14390 ;; 14391 m88k*) 14392 ;; 14393 mvs*) 14394 case $cc_basename in 14395 cxx*) 14396 lt_prog_compiler_pic_CXX='-W c,exportall' 14397 ;; 14398 *) 14399 ;; 14400 esac 14401 ;; 14402 netbsd* | netbsdelf*-gnu) 14403 ;; 14404 *qnx* | *nto*) 14405 # QNX uses GNU C++, but need to define -shared option too, otherwise 14406 # it will coredump. 14407 lt_prog_compiler_pic_CXX='-fPIC -shared' 14408 ;; 14409 osf3* | osf4* | osf5*) 14410 case $cc_basename in 14411 KCC*) 14412 lt_prog_compiler_wl_CXX='--backend -Wl,' 14413 ;; 14414 RCC*) 14415 # Rational C++ 2.4.1 14416 lt_prog_compiler_pic_CXX='-pic' 14417 ;; 14418 cxx*) 14419 # Digital/Compaq C++ 14420 lt_prog_compiler_wl_CXX='-Wl,' 14421 # Make sure the PIC flag is empty. It appears that all Alpha 14422 # Linux and Compaq Tru64 Unix objects are PIC. 14423 lt_prog_compiler_pic_CXX= 14424 lt_prog_compiler_static_CXX='-non_shared' 14425 ;; 14426 *) 14427 ;; 14428 esac 14429 ;; 14430 psos*) 14431 ;; 14432 solaris*) 14433 case $cc_basename in 14434 CC* | sunCC*) 14435 # Sun C++ 4.2, 5.x and Centerline C++ 14436 lt_prog_compiler_pic_CXX='-KPIC' 14437 lt_prog_compiler_static_CXX='-Bstatic' 14438 lt_prog_compiler_wl_CXX='-Qoption ld ' 14439 ;; 14440 gcx*) 14441 # Green Hills C++ Compiler 14442 lt_prog_compiler_pic_CXX='-PIC' 14443 ;; 14444 *) 14445 ;; 14446 esac 14447 ;; 14448 sunos4*) 14449 case $cc_basename in 14450 CC*) 14451 # Sun C++ 4.x 14452 lt_prog_compiler_pic_CXX='-pic' 14453 lt_prog_compiler_static_CXX='-Bstatic' 14454 ;; 14455 lcc*) 14456 # Lucid 14457 lt_prog_compiler_pic_CXX='-pic' 14458 ;; 14459 *) 14460 ;; 14461 esac 14462 ;; 14463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14464 case $cc_basename in 14465 CC*) 14466 lt_prog_compiler_wl_CXX='-Wl,' 14467 lt_prog_compiler_pic_CXX='-KPIC' 14468 lt_prog_compiler_static_CXX='-Bstatic' 14469 ;; 14470 esac 14471 ;; 14472 tandem*) 14473 case $cc_basename in 14474 NCC*) 14475 # NonStop-UX NCC 3.20 14476 lt_prog_compiler_pic_CXX='-KPIC' 14477 ;; 14478 *) 14479 ;; 14480 esac 14481 ;; 14482 vxworks*) 14483 ;; 14484 *) 14485 lt_prog_compiler_can_build_shared_CXX=no 14486 ;; 14487 esac 14488 fi 14489 14490case $host_os in 14491 # For platforms that do not support PIC, -DPIC is meaningless: 14492 *djgpp*) 14493 lt_prog_compiler_pic_CXX= 14494 ;; 14495 *) 14496 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14497 ;; 14498esac 14499 14500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14501$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14502if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14503 $as_echo_n "(cached) " >&6 14504else 14505 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14506fi 14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14508$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14509lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14510 14511# 14512# Check to make sure the PIC flag actually works. 14513# 14514if test -n "$lt_prog_compiler_pic_CXX"; then 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14516$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14517if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14518 $as_echo_n "(cached) " >&6 14519else 14520 lt_cv_prog_compiler_pic_works_CXX=no 14521 ac_outfile=conftest.$ac_objext 14522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14523 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14524 # Insert the option either (1) after the last *FLAGS variable, or 14525 # (2) before a word containing "conftest.", or (3) at the end. 14526 # Note that $ac_compile itself does not contain backslashes and begins 14527 # with a dollar sign (not a hyphen), so the echo should work correctly. 14528 # The option is referenced via a variable to avoid confusing sed. 14529 lt_compile=`echo "$ac_compile" | $SED \ 14530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14532 -e 's:$: $lt_compiler_flag:'` 14533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14534 (eval "$lt_compile" 2>conftest.err) 14535 ac_status=$? 14536 cat conftest.err >&5 14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14538 if (exit $ac_status) && test -s "$ac_outfile"; then 14539 # The compiler can only warn and ignore the option if not recognized 14540 # So say no if there are warnings other than the usual output. 14541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14544 lt_cv_prog_compiler_pic_works_CXX=yes 14545 fi 14546 fi 14547 $RM conftest* 14548 14549fi 14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14551$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14552 14553if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14554 case $lt_prog_compiler_pic_CXX in 14555 "" | " "*) ;; 14556 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14557 esac 14558else 14559 lt_prog_compiler_pic_CXX= 14560 lt_prog_compiler_can_build_shared_CXX=no 14561fi 14562 14563fi 14564 14565 14566 14567 14568 14569# 14570# Check to make sure the static flag actually works. 14571# 14572wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14574$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14575if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14576 $as_echo_n "(cached) " >&6 14577else 14578 lt_cv_prog_compiler_static_works_CXX=no 14579 save_LDFLAGS=$LDFLAGS 14580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14581 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14583 # The linker can only warn and ignore the option if not recognized 14584 # So say no if there are warnings 14585 if test -s conftest.err; then 14586 # Append any errors to the config.log. 14587 cat conftest.err 1>&5 14588 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14590 if diff conftest.exp conftest.er2 >/dev/null; then 14591 lt_cv_prog_compiler_static_works_CXX=yes 14592 fi 14593 else 14594 lt_cv_prog_compiler_static_works_CXX=yes 14595 fi 14596 fi 14597 $RM -r conftest* 14598 LDFLAGS=$save_LDFLAGS 14599 14600fi 14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14602$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14603 14604if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14605 : 14606else 14607 lt_prog_compiler_static_CXX= 14608fi 14609 14610 14611 14612 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14615if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14616 $as_echo_n "(cached) " >&6 14617else 14618 lt_cv_prog_compiler_c_o_CXX=no 14619 $RM -r conftest 2>/dev/null 14620 mkdir conftest 14621 cd conftest 14622 mkdir out 14623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14624 14625 lt_compiler_flag="-o out/conftest2.$ac_objext" 14626 # Insert the option either (1) after the last *FLAGS variable, or 14627 # (2) before a word containing "conftest.", or (3) at the end. 14628 # Note that $ac_compile itself does not contain backslashes and begins 14629 # with a dollar sign (not a hyphen), so the echo should work correctly. 14630 lt_compile=`echo "$ac_compile" | $SED \ 14631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14633 -e 's:$: $lt_compiler_flag:'` 14634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14635 (eval "$lt_compile" 2>out/conftest.err) 14636 ac_status=$? 14637 cat out/conftest.err >&5 14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14639 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14640 then 14641 # The compiler can only warn and ignore the option if not recognized 14642 # So say no if there are warnings 14643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14646 lt_cv_prog_compiler_c_o_CXX=yes 14647 fi 14648 fi 14649 chmod u+w . 2>&5 14650 $RM conftest* 14651 # SGI C++ compiler will create directory out/ii_files/ for 14652 # template instantiation 14653 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14654 $RM out/* && rmdir out 14655 cd .. 14656 $RM -r conftest 14657 $RM conftest* 14658 14659fi 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14661$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14662 14663 14664 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14666$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14667if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14668 $as_echo_n "(cached) " >&6 14669else 14670 lt_cv_prog_compiler_c_o_CXX=no 14671 $RM -r conftest 2>/dev/null 14672 mkdir conftest 14673 cd conftest 14674 mkdir out 14675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14676 14677 lt_compiler_flag="-o out/conftest2.$ac_objext" 14678 # Insert the option either (1) after the last *FLAGS variable, or 14679 # (2) before a word containing "conftest.", or (3) at the end. 14680 # Note that $ac_compile itself does not contain backslashes and begins 14681 # with a dollar sign (not a hyphen), so the echo should work correctly. 14682 lt_compile=`echo "$ac_compile" | $SED \ 14683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14685 -e 's:$: $lt_compiler_flag:'` 14686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14687 (eval "$lt_compile" 2>out/conftest.err) 14688 ac_status=$? 14689 cat out/conftest.err >&5 14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14691 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14692 then 14693 # The compiler can only warn and ignore the option if not recognized 14694 # So say no if there are warnings 14695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14698 lt_cv_prog_compiler_c_o_CXX=yes 14699 fi 14700 fi 14701 chmod u+w . 2>&5 14702 $RM conftest* 14703 # SGI C++ compiler will create directory out/ii_files/ for 14704 # template instantiation 14705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14706 $RM out/* && rmdir out 14707 cd .. 14708 $RM -r conftest 14709 $RM conftest* 14710 14711fi 14712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14713$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14714 14715 14716 14717 14718hard_links=nottested 14719if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14720 # do not overwrite the value of need_locks provided by the user 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14722$as_echo_n "checking if we can lock with hard links... " >&6; } 14723 hard_links=yes 14724 $RM conftest* 14725 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14726 touch conftest.a 14727 ln conftest.a conftest.b 2>&5 || hard_links=no 14728 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14730$as_echo "$hard_links" >&6; } 14731 if test no = "$hard_links"; then 14732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14733$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14734 need_locks=warn 14735 fi 14736else 14737 need_locks=no 14738fi 14739 14740 14741 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14743$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14744 14745 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14746 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14747 case $host_os in 14748 aix[4-9]*) 14749 # If we're using GNU nm, then we don't want the "-C" option. 14750 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14751 # Without the "-l" option, or with the "-B" option, AIX nm treats 14752 # weak defined symbols like other global defined symbols, whereas 14753 # GNU nm marks them as "W". 14754 # While the 'weak' keyword is ignored in the Export File, we need 14755 # it in the Import File for the 'aix-soname' feature, so we have 14756 # to replace the "-B" option with "-P" for AIX nm. 14757 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14758 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' 14759 else 14760 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' 14761 fi 14762 ;; 14763 pw32*) 14764 export_symbols_cmds_CXX=$ltdll_cmds 14765 ;; 14766 cygwin* | mingw* | cegcc*) 14767 case $cc_basename in 14768 cl*) 14769 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14770 ;; 14771 *) 14772 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' 14773 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14774 ;; 14775 esac 14776 ;; 14777 linux* | k*bsd*-gnu | gnu*) 14778 link_all_deplibs_CXX=no 14779 ;; 14780 *) 14781 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14782 ;; 14783 esac 14784 14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14786$as_echo "$ld_shlibs_CXX" >&6; } 14787test no = "$ld_shlibs_CXX" && can_build_shared=no 14788 14789with_gnu_ld_CXX=$with_gnu_ld 14790 14791 14792 14793 14794 14795 14796# 14797# Do we need to explicitly link libc? 14798# 14799case "x$archive_cmds_need_lc_CXX" in 14800x|xyes) 14801 # Assume -lc should be added 14802 archive_cmds_need_lc_CXX=yes 14803 14804 if test yes,yes = "$GCC,$enable_shared"; then 14805 case $archive_cmds_CXX in 14806 *'~'*) 14807 # FIXME: we may have to deal with multi-command sequences. 14808 ;; 14809 '$CC '*) 14810 # Test whether the compiler implicitly links with -lc since on some 14811 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14812 # to ld, don't add -lc before -lgcc. 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14814$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14815if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14816 $as_echo_n "(cached) " >&6 14817else 14818 $RM conftest* 14819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14820 14821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14822 (eval $ac_compile) 2>&5 14823 ac_status=$? 14824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14825 test $ac_status = 0; } 2>conftest.err; then 14826 soname=conftest 14827 lib=conftest 14828 libobjs=conftest.$ac_objext 14829 deplibs= 14830 wl=$lt_prog_compiler_wl_CXX 14831 pic_flag=$lt_prog_compiler_pic_CXX 14832 compiler_flags=-v 14833 linker_flags=-v 14834 verstring= 14835 output_objdir=. 14836 libname=conftest 14837 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14838 allow_undefined_flag_CXX= 14839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14840 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14841 ac_status=$? 14842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14843 test $ac_status = 0; } 14844 then 14845 lt_cv_archive_cmds_need_lc_CXX=no 14846 else 14847 lt_cv_archive_cmds_need_lc_CXX=yes 14848 fi 14849 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14850 else 14851 cat conftest.err 1>&5 14852 fi 14853 $RM conftest* 14854 14855fi 14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14857$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14858 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14859 ;; 14860 esac 14861 fi 14862 ;; 14863esac 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14927$as_echo_n "checking dynamic linker characteristics... " >&6; } 14928 14929library_names_spec= 14930libname_spec='lib$name' 14931soname_spec= 14932shrext_cmds=.so 14933postinstall_cmds= 14934postuninstall_cmds= 14935finish_cmds= 14936finish_eval= 14937shlibpath_var= 14938shlibpath_overrides_runpath=unknown 14939version_type=none 14940dynamic_linker="$host_os ld.so" 14941sys_lib_dlsearch_path_spec="/lib /usr/lib" 14942need_lib_prefix=unknown 14943hardcode_into_libs=no 14944 14945# when you set need_version to no, make sure it does not cause -set_version 14946# flags to be left without arguments 14947need_version=unknown 14948 14949 14950 14951case $host_os in 14952aix3*) 14953 version_type=linux # correct to gnu/linux during the next big refactor 14954 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14955 shlibpath_var=LIBPATH 14956 14957 # AIX 3 has no versioning support, so we append a major version to the name. 14958 soname_spec='$libname$release$shared_ext$major' 14959 ;; 14960 14961aix[4-9]*) 14962 version_type=linux # correct to gnu/linux during the next big refactor 14963 need_lib_prefix=no 14964 need_version=no 14965 hardcode_into_libs=yes 14966 if test ia64 = "$host_cpu"; then 14967 # AIX 5 supports IA64 14968 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14969 shlibpath_var=LD_LIBRARY_PATH 14970 else 14971 # With GCC up to 2.95.x, collect2 would create an import file 14972 # for dependence libraries. The import file would start with 14973 # the line '#! .'. This would cause the generated library to 14974 # depend on '.', always an invalid library. This was fixed in 14975 # development snapshots of GCC prior to 3.0. 14976 case $host_os in 14977 aix4 | aix4.[01] | aix4.[01].*) 14978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14979 echo ' yes ' 14980 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14981 : 14982 else 14983 can_build_shared=no 14984 fi 14985 ;; 14986 esac 14987 # Using Import Files as archive members, it is possible to support 14988 # filename-based versioning of shared library archives on AIX. While 14989 # this would work for both with and without runtime linking, it will 14990 # prevent static linking of such archives. So we do filename-based 14991 # shared library versioning with .so extension only, which is used 14992 # when both runtime linking and shared linking is enabled. 14993 # Unfortunately, runtime linking may impact performance, so we do 14994 # not want this to be the default eventually. Also, we use the 14995 # versioned .so libs for executables only if there is the -brtl 14996 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14997 # To allow for filename-based versioning support, we need to create 14998 # libNAME.so.V as an archive file, containing: 14999 # *) an Import File, referring to the versioned filename of the 15000 # archive as well as the shared archive member, telling the 15001 # bitwidth (32 or 64) of that shared object, and providing the 15002 # list of exported symbols of that shared object, eventually 15003 # decorated with the 'weak' keyword 15004 # *) the shared object with the F_LOADONLY flag set, to really avoid 15005 # it being seen by the linker. 15006 # At run time we better use the real file rather than another symlink, 15007 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15008 15009 case $with_aix_soname,$aix_use_runtimelinking in 15010 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15011 # soname into executable. Probably we can add versioning support to 15012 # collect2, so additional links can be useful in future. 15013 aix,yes) # traditional libtool 15014 dynamic_linker='AIX unversionable lib.so' 15015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15016 # instead of lib<name>.a to let people know that these are not 15017 # typical AIX shared libraries. 15018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15019 ;; 15020 aix,no) # traditional AIX only 15021 dynamic_linker='AIX lib.a(lib.so.V)' 15022 # We preserve .a as extension for shared libraries through AIX4.2 15023 # and later when we are not doing run time linking. 15024 library_names_spec='$libname$release.a $libname.a' 15025 soname_spec='$libname$release$shared_ext$major' 15026 ;; 15027 svr4,*) # full svr4 only 15028 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15029 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15030 # We do not specify a path in Import Files, so LIBPATH fires. 15031 shlibpath_overrides_runpath=yes 15032 ;; 15033 *,yes) # both, prefer svr4 15034 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15035 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15036 # unpreferred sharedlib libNAME.a needs extra handling 15037 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"' 15038 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"' 15039 # We do not specify a path in Import Files, so LIBPATH fires. 15040 shlibpath_overrides_runpath=yes 15041 ;; 15042 *,no) # both, prefer aix 15043 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15044 library_names_spec='$libname$release.a $libname.a' 15045 soname_spec='$libname$release$shared_ext$major' 15046 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15047 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)' 15048 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"' 15049 ;; 15050 esac 15051 shlibpath_var=LIBPATH 15052 fi 15053 ;; 15054 15055amigaos*) 15056 case $host_cpu in 15057 powerpc) 15058 # Since July 2007 AmigaOS4 officially supports .so libraries. 15059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15061 ;; 15062 m68k) 15063 library_names_spec='$libname.ixlibrary $libname.a' 15064 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15065 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' 15066 ;; 15067 esac 15068 ;; 15069 15070beos*) 15071 library_names_spec='$libname$shared_ext' 15072 dynamic_linker="$host_os ld.so" 15073 shlibpath_var=LIBRARY_PATH 15074 ;; 15075 15076bsdi[45]*) 15077 version_type=linux # correct to gnu/linux during the next big refactor 15078 need_version=no 15079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15080 soname_spec='$libname$release$shared_ext$major' 15081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15082 shlibpath_var=LD_LIBRARY_PATH 15083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15085 # the default ld.so.conf also contains /usr/contrib/lib and 15086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15087 # libtool to hard-code these into programs 15088 ;; 15089 15090cygwin* | mingw* | pw32* | cegcc*) 15091 version_type=windows 15092 shrext_cmds=.dll 15093 need_version=no 15094 need_lib_prefix=no 15095 15096 case $GCC,$cc_basename in 15097 yes,*) 15098 # gcc 15099 library_names_spec='$libname.dll.a' 15100 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15101 postinstall_cmds='base_file=`basename \$file`~ 15102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15103 dldir=$destdir/`dirname \$dlpath`~ 15104 test -d \$dldir || mkdir -p \$dldir~ 15105 $install_prog $dir/$dlname \$dldir/$dlname~ 15106 chmod a+x \$dldir/$dlname~ 15107 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15108 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15109 fi' 15110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15111 dlpath=$dir/\$dldll~ 15112 $RM \$dlpath' 15113 shlibpath_overrides_runpath=yes 15114 15115 case $host_os in 15116 cygwin*) 15117 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15118 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15119 15120 ;; 15121 mingw* | cegcc*) 15122 # MinGW DLLs use traditional 'lib' prefix 15123 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15124 ;; 15125 pw32*) 15126 # pw32 DLLs use 'pw' prefix rather than 'lib' 15127 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15128 ;; 15129 esac 15130 dynamic_linker='Win32 ld.exe' 15131 ;; 15132 15133 *,cl*) 15134 # Native MSVC 15135 libname_spec='$name' 15136 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15137 library_names_spec='$libname.dll.lib' 15138 15139 case $build_os in 15140 mingw*) 15141 sys_lib_search_path_spec= 15142 lt_save_ifs=$IFS 15143 IFS=';' 15144 for lt_path in $LIB 15145 do 15146 IFS=$lt_save_ifs 15147 # Let DOS variable expansion print the short 8.3 style file name. 15148 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15149 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15150 done 15151 IFS=$lt_save_ifs 15152 # Convert to MSYS style. 15153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15154 ;; 15155 cygwin*) 15156 # Convert to unix form, then to dos form, then back to unix form 15157 # but this time dos style (no spaces!) so that the unix form looks 15158 # like /cygdrive/c/PROGRA~1:/cygdr... 15159 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15160 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15161 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15162 ;; 15163 *) 15164 sys_lib_search_path_spec=$LIB 15165 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15166 # It is most probably a Windows format PATH. 15167 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15168 else 15169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15170 fi 15171 # FIXME: find the short name or the path components, as spaces are 15172 # common. (e.g. "Program Files" -> "PROGRA~1") 15173 ;; 15174 esac 15175 15176 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15177 postinstall_cmds='base_file=`basename \$file`~ 15178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15179 dldir=$destdir/`dirname \$dlpath`~ 15180 test -d \$dldir || mkdir -p \$dldir~ 15181 $install_prog $dir/$dlname \$dldir/$dlname' 15182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15183 dlpath=$dir/\$dldll~ 15184 $RM \$dlpath' 15185 shlibpath_overrides_runpath=yes 15186 dynamic_linker='Win32 link.exe' 15187 ;; 15188 15189 *) 15190 # Assume MSVC wrapper 15191 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15192 dynamic_linker='Win32 ld.exe' 15193 ;; 15194 esac 15195 # FIXME: first we should search . and the directory the executable is in 15196 shlibpath_var=PATH 15197 ;; 15198 15199darwin* | rhapsody*) 15200 dynamic_linker="$host_os dyld" 15201 version_type=darwin 15202 need_lib_prefix=no 15203 need_version=no 15204 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15205 soname_spec='$libname$release$major$shared_ext' 15206 shlibpath_overrides_runpath=yes 15207 shlibpath_var=DYLD_LIBRARY_PATH 15208 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15209 15210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15211 ;; 15212 15213dgux*) 15214 version_type=linux # correct to gnu/linux during the next big refactor 15215 need_lib_prefix=no 15216 need_version=no 15217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15218 soname_spec='$libname$release$shared_ext$major' 15219 shlibpath_var=LD_LIBRARY_PATH 15220 ;; 15221 15222freebsd* | dragonfly*) 15223 # DragonFly does not have aout. When/if they implement a new 15224 # versioning mechanism, adjust this. 15225 if test -x /usr/bin/objformat; then 15226 objformat=`/usr/bin/objformat` 15227 else 15228 case $host_os in 15229 freebsd[23].*) objformat=aout ;; 15230 *) objformat=elf ;; 15231 esac 15232 fi 15233 version_type=freebsd-$objformat 15234 case $version_type in 15235 freebsd-elf*) 15236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15237 soname_spec='$libname$release$shared_ext$major' 15238 need_version=no 15239 need_lib_prefix=no 15240 ;; 15241 freebsd-*) 15242 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15243 need_version=yes 15244 ;; 15245 esac 15246 shlibpath_var=LD_LIBRARY_PATH 15247 case $host_os in 15248 freebsd2.*) 15249 shlibpath_overrides_runpath=yes 15250 ;; 15251 freebsd3.[01]* | freebsdelf3.[01]*) 15252 shlibpath_overrides_runpath=yes 15253 hardcode_into_libs=yes 15254 ;; 15255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15257 shlibpath_overrides_runpath=no 15258 hardcode_into_libs=yes 15259 ;; 15260 *) # from 4.6 on, and DragonFly 15261 shlibpath_overrides_runpath=yes 15262 hardcode_into_libs=yes 15263 ;; 15264 esac 15265 ;; 15266 15267haiku*) 15268 version_type=linux # correct to gnu/linux during the next big refactor 15269 need_lib_prefix=no 15270 need_version=no 15271 dynamic_linker="$host_os runtime_loader" 15272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15273 soname_spec='$libname$release$shared_ext$major' 15274 shlibpath_var=LIBRARY_PATH 15275 shlibpath_overrides_runpath=no 15276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15277 hardcode_into_libs=yes 15278 ;; 15279 15280hpux9* | hpux10* | hpux11*) 15281 # Give a soname corresponding to the major version so that dld.sl refuses to 15282 # link against other versions. 15283 version_type=sunos 15284 need_lib_prefix=no 15285 need_version=no 15286 case $host_cpu in 15287 ia64*) 15288 shrext_cmds='.so' 15289 hardcode_into_libs=yes 15290 dynamic_linker="$host_os dld.so" 15291 shlibpath_var=LD_LIBRARY_PATH 15292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15294 soname_spec='$libname$release$shared_ext$major' 15295 if test 32 = "$HPUX_IA64_MODE"; then 15296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15297 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15298 else 15299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15300 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15301 fi 15302 ;; 15303 hppa*64*) 15304 shrext_cmds='.sl' 15305 hardcode_into_libs=yes 15306 dynamic_linker="$host_os dld.sl" 15307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15310 soname_spec='$libname$release$shared_ext$major' 15311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15313 ;; 15314 *) 15315 shrext_cmds='.sl' 15316 dynamic_linker="$host_os dld.sl" 15317 shlibpath_var=SHLIB_PATH 15318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15320 soname_spec='$libname$release$shared_ext$major' 15321 ;; 15322 esac 15323 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15324 postinstall_cmds='chmod 555 $lib' 15325 # or fails outright, so override atomically: 15326 install_override_mode=555 15327 ;; 15328 15329interix[3-9]*) 15330 version_type=linux # correct to gnu/linux during the next big refactor 15331 need_lib_prefix=no 15332 need_version=no 15333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15334 soname_spec='$libname$release$shared_ext$major' 15335 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15336 shlibpath_var=LD_LIBRARY_PATH 15337 shlibpath_overrides_runpath=no 15338 hardcode_into_libs=yes 15339 ;; 15340 15341irix5* | irix6* | nonstopux*) 15342 case $host_os in 15343 nonstopux*) version_type=nonstopux ;; 15344 *) 15345 if test yes = "$lt_cv_prog_gnu_ld"; then 15346 version_type=linux # correct to gnu/linux during the next big refactor 15347 else 15348 version_type=irix 15349 fi ;; 15350 esac 15351 need_lib_prefix=no 15352 need_version=no 15353 soname_spec='$libname$release$shared_ext$major' 15354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15355 case $host_os in 15356 irix5* | nonstopux*) 15357 libsuff= shlibsuff= 15358 ;; 15359 *) 15360 case $LD in # libtool.m4 will add one of these switches to LD 15361 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15362 libsuff= shlibsuff= libmagic=32-bit;; 15363 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15364 libsuff=32 shlibsuff=N32 libmagic=N32;; 15365 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15366 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15367 *) libsuff= shlibsuff= libmagic=never-match;; 15368 esac 15369 ;; 15370 esac 15371 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15372 shlibpath_overrides_runpath=no 15373 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15374 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15375 hardcode_into_libs=yes 15376 ;; 15377 15378# No shared lib support for Linux oldld, aout, or coff. 15379linux*oldld* | linux*aout* | linux*coff*) 15380 dynamic_linker=no 15381 ;; 15382 15383linux*android*) 15384 version_type=none # Android doesn't support versioned libraries. 15385 need_lib_prefix=no 15386 need_version=no 15387 library_names_spec='$libname$release$shared_ext' 15388 soname_spec='$libname$release$shared_ext' 15389 finish_cmds= 15390 shlibpath_var=LD_LIBRARY_PATH 15391 shlibpath_overrides_runpath=yes 15392 15393 # This implies no fast_install, which is unacceptable. 15394 # Some rework will be needed to allow for fast_install 15395 # before this can be enabled. 15396 hardcode_into_libs=yes 15397 15398 dynamic_linker='Android linker' 15399 # Don't embed -rpath directories since the linker doesn't support them. 15400 hardcode_libdir_flag_spec_CXX='-L$libdir' 15401 ;; 15402 15403# This must be glibc/ELF. 15404linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15405 version_type=linux # correct to gnu/linux during the next big refactor 15406 need_lib_prefix=no 15407 need_version=no 15408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15409 soname_spec='$libname$release$shared_ext$major' 15410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15411 shlibpath_var=LD_LIBRARY_PATH 15412 shlibpath_overrides_runpath=no 15413 15414 # Some binutils ld are patched to set DT_RUNPATH 15415 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15416 $as_echo_n "(cached) " >&6 15417else 15418 lt_cv_shlibpath_overrides_runpath=no 15419 save_LDFLAGS=$LDFLAGS 15420 save_libdir=$libdir 15421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15424/* end confdefs.h. */ 15425 15426int 15427main () 15428{ 15429 15430 ; 15431 return 0; 15432} 15433_ACEOF 15434if ac_fn_cxx_try_link "$LINENO"; then : 15435 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15436 lt_cv_shlibpath_overrides_runpath=yes 15437fi 15438fi 15439rm -f core conftest.err conftest.$ac_objext \ 15440 conftest$ac_exeext conftest.$ac_ext 15441 LDFLAGS=$save_LDFLAGS 15442 libdir=$save_libdir 15443 15444fi 15445 15446 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15447 15448 # This implies no fast_install, which is unacceptable. 15449 # Some rework will be needed to allow for fast_install 15450 # before this can be enabled. 15451 hardcode_into_libs=yes 15452 15453 # Ideally, we could use ldconfig to report *all* directores which are 15454 # searched for libraries, however this is still not possible. Aside from not 15455 # being certain /sbin/ldconfig is available, command 15456 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15457 # even though it is searched at run-time. Try to do the best guess by 15458 # appending ld.so.conf contents (and includes) to the search path. 15459 if test -f /etc/ld.so.conf; then 15460 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' ' '` 15461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15462 fi 15463 15464 # We used to test for /lib/ld.so.1 and disable shared libraries on 15465 # powerpc, because MkLinux only supported shared libraries with the 15466 # GNU dynamic linker. Since this was broken with cross compilers, 15467 # most powerpc-linux boxes support dynamic linking these days and 15468 # people can always --disable-shared, the test was removed, and we 15469 # assume the GNU/Linux dynamic linker is in use. 15470 dynamic_linker='GNU/Linux ld.so' 15471 ;; 15472 15473netbsdelf*-gnu) 15474 version_type=linux 15475 need_lib_prefix=no 15476 need_version=no 15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15478 soname_spec='${libname}${release}${shared_ext}$major' 15479 shlibpath_var=LD_LIBRARY_PATH 15480 shlibpath_overrides_runpath=no 15481 hardcode_into_libs=yes 15482 dynamic_linker='NetBSD ld.elf_so' 15483 ;; 15484 15485netbsd*) 15486 version_type=sunos 15487 need_lib_prefix=no 15488 need_version=no 15489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15490 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15492 dynamic_linker='NetBSD (a.out) ld.so' 15493 else 15494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15495 soname_spec='$libname$release$shared_ext$major' 15496 dynamic_linker='NetBSD ld.elf_so' 15497 fi 15498 shlibpath_var=LD_LIBRARY_PATH 15499 shlibpath_overrides_runpath=yes 15500 hardcode_into_libs=yes 15501 ;; 15502 15503newsos6) 15504 version_type=linux # correct to gnu/linux during the next big refactor 15505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15506 shlibpath_var=LD_LIBRARY_PATH 15507 shlibpath_overrides_runpath=yes 15508 ;; 15509 15510*nto* | *qnx*) 15511 version_type=qnx 15512 need_lib_prefix=no 15513 need_version=no 15514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15515 soname_spec='$libname$release$shared_ext$major' 15516 shlibpath_var=LD_LIBRARY_PATH 15517 shlibpath_overrides_runpath=no 15518 hardcode_into_libs=yes 15519 dynamic_linker='ldqnx.so' 15520 ;; 15521 15522openbsd* | bitrig*) 15523 version_type=sunos 15524 sys_lib_dlsearch_path_spec=/usr/lib 15525 need_lib_prefix=no 15526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15527 need_version=no 15528 else 15529 need_version=yes 15530 fi 15531 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15533 shlibpath_var=LD_LIBRARY_PATH 15534 shlibpath_overrides_runpath=yes 15535 ;; 15536 15537os2*) 15538 libname_spec='$name' 15539 version_type=windows 15540 shrext_cmds=.dll 15541 need_version=no 15542 need_lib_prefix=no 15543 # OS/2 can only load a DLL with a base name of 8 characters or less. 15544 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15545 v=$($ECHO $release$versuffix | tr -d .-); 15546 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15547 $ECHO $n$v`$shared_ext' 15548 library_names_spec='${libname}_dll.$libext' 15549 dynamic_linker='OS/2 ld.exe' 15550 shlibpath_var=BEGINLIBPATH 15551 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15553 postinstall_cmds='base_file=`basename \$file`~ 15554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15555 dldir=$destdir/`dirname \$dlpath`~ 15556 test -d \$dldir || mkdir -p \$dldir~ 15557 $install_prog $dir/$dlname \$dldir/$dlname~ 15558 chmod a+x \$dldir/$dlname~ 15559 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15560 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15561 fi' 15562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15563 dlpath=$dir/\$dldll~ 15564 $RM \$dlpath' 15565 ;; 15566 15567osf3* | osf4* | osf5*) 15568 version_type=osf 15569 need_lib_prefix=no 15570 need_version=no 15571 soname_spec='$libname$release$shared_ext$major' 15572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15573 shlibpath_var=LD_LIBRARY_PATH 15574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15576 ;; 15577 15578rdos*) 15579 dynamic_linker=no 15580 ;; 15581 15582solaris*) 15583 version_type=linux # correct to gnu/linux during the next big refactor 15584 need_lib_prefix=no 15585 need_version=no 15586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15587 soname_spec='$libname$release$shared_ext$major' 15588 shlibpath_var=LD_LIBRARY_PATH 15589 shlibpath_overrides_runpath=yes 15590 hardcode_into_libs=yes 15591 # ldd complains unless libraries are executable 15592 postinstall_cmds='chmod +x $lib' 15593 ;; 15594 15595sunos4*) 15596 version_type=sunos 15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15598 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15599 shlibpath_var=LD_LIBRARY_PATH 15600 shlibpath_overrides_runpath=yes 15601 if test yes = "$with_gnu_ld"; then 15602 need_lib_prefix=no 15603 fi 15604 need_version=yes 15605 ;; 15606 15607sysv4 | sysv4.3*) 15608 version_type=linux # correct to gnu/linux during the next big refactor 15609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15610 soname_spec='$libname$release$shared_ext$major' 15611 shlibpath_var=LD_LIBRARY_PATH 15612 case $host_vendor in 15613 sni) 15614 shlibpath_overrides_runpath=no 15615 need_lib_prefix=no 15616 runpath_var=LD_RUN_PATH 15617 ;; 15618 siemens) 15619 need_lib_prefix=no 15620 ;; 15621 motorola) 15622 need_lib_prefix=no 15623 need_version=no 15624 shlibpath_overrides_runpath=no 15625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15626 ;; 15627 esac 15628 ;; 15629 15630sysv4*MP*) 15631 if test -d /usr/nec; then 15632 version_type=linux # correct to gnu/linux during the next big refactor 15633 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15634 soname_spec='$libname$shared_ext.$major' 15635 shlibpath_var=LD_LIBRARY_PATH 15636 fi 15637 ;; 15638 15639sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15640 version_type=sco 15641 need_lib_prefix=no 15642 need_version=no 15643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15644 soname_spec='$libname$release$shared_ext$major' 15645 shlibpath_var=LD_LIBRARY_PATH 15646 shlibpath_overrides_runpath=yes 15647 hardcode_into_libs=yes 15648 if test yes = "$with_gnu_ld"; then 15649 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15650 else 15651 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15652 case $host_os in 15653 sco3.2v5*) 15654 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15655 ;; 15656 esac 15657 fi 15658 sys_lib_dlsearch_path_spec='/usr/lib' 15659 ;; 15660 15661tpf*) 15662 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15663 version_type=linux # correct to gnu/linux during the next big refactor 15664 need_lib_prefix=no 15665 need_version=no 15666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15667 shlibpath_var=LD_LIBRARY_PATH 15668 shlibpath_overrides_runpath=no 15669 hardcode_into_libs=yes 15670 ;; 15671 15672uts4*) 15673 version_type=linux # correct to gnu/linux during the next big refactor 15674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15675 soname_spec='$libname$release$shared_ext$major' 15676 shlibpath_var=LD_LIBRARY_PATH 15677 ;; 15678 15679*) 15680 dynamic_linker=no 15681 ;; 15682esac 15683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15684$as_echo "$dynamic_linker" >&6; } 15685test no = "$dynamic_linker" && can_build_shared=no 15686 15687variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15688if test yes = "$GCC"; then 15689 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15690fi 15691 15692if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15693 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15694fi 15695 15696if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15697 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15698fi 15699 15700# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15701configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15702 15703# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15704func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15705 15706# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15707configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15749$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15750hardcode_action_CXX= 15751if test -n "$hardcode_libdir_flag_spec_CXX" || 15752 test -n "$runpath_var_CXX" || 15753 test yes = "$hardcode_automatic_CXX"; then 15754 15755 # We can hardcode non-existent directories. 15756 if test no != "$hardcode_direct_CXX" && 15757 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15758 # have to relink, otherwise we might link with an installed library 15759 # when we should be linking with a yet-to-be-installed one 15760 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15761 test no != "$hardcode_minus_L_CXX"; then 15762 # Linking always hardcodes the temporary library directory. 15763 hardcode_action_CXX=relink 15764 else 15765 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15766 hardcode_action_CXX=immediate 15767 fi 15768else 15769 # We cannot hardcode anything, or else we can only hardcode existing 15770 # directories. 15771 hardcode_action_CXX=unsupported 15772fi 15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15774$as_echo "$hardcode_action_CXX" >&6; } 15775 15776if test relink = "$hardcode_action_CXX" || 15777 test yes = "$inherit_rpath_CXX"; then 15778 # Fast installation is not supported 15779 enable_fast_install=no 15780elif test yes = "$shlibpath_overrides_runpath" || 15781 test no = "$enable_shared"; then 15782 # Fast installation is not necessary 15783 enable_fast_install=needless 15784fi 15785 15786 15787 15788 15789 15790 15791 15792 fi # test -n "$compiler" 15793 15794 CC=$lt_save_CC 15795 CFLAGS=$lt_save_CFLAGS 15796 LDCXX=$LD 15797 LD=$lt_save_LD 15798 GCC=$lt_save_GCC 15799 with_gnu_ld=$lt_save_with_gnu_ld 15800 lt_cv_path_LDCXX=$lt_cv_path_LD 15801 lt_cv_path_LD=$lt_save_path_LD 15802 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15803 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15804fi # test yes != "$_lt_caught_CXX_error" 15805 15806ac_ext=c 15807ac_cpp='$CPP $CPPFLAGS' 15808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15810ac_compiler_gnu=$ac_cv_c_compiler_gnu 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 ac_config_commands="$ac_config_commands libtool" 15827 15828 15829 15830 15831# Only expand once: 15832 15833 15834# Check whether --enable-debug was given. 15835if test "${enable_debug+set}" = set; then : 15836 enableval=$enable_debug; 15837 CXXFLAGS="-g -O0 -Wall" 15838 15839$as_echo "#define WITH_DEBUG /**/" >>confdefs.h 15840 15841 15842fi 15843 15844 15845 15846# Check whether --with-libldap was given. 15847if test "${with_libldap+set}" = set; then : 15848 withval=$with_libldap; 15849 LIBS="-L$with_libldap $LIBS " 15850 15851else 15852 15853 LIBS="-L/usr/local/lib $LIBS " 15854 15855 15856fi 15857 15858 15859 15860# Check whether --with-ldap-includes was given. 15861if test "${with_ldap_includes+set}" = set; then : 15862 withval=$with_ldap_includes; 15863 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS " 15864 15865else 15866 15867 CPPFLAGS="-I/usr/local/include $CPPFLAGS " 15868 15869 15870fi 15871 15872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5 15873$as_echo_n "checking for main in -lresolv... " >&6; } 15874if ${ac_cv_lib_resolv_main+:} false; then : 15875 $as_echo_n "(cached) " >&6 15876else 15877 ac_check_lib_save_LIBS=$LIBS 15878LIBS="-lresolv $LIBS" 15879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881 15882 15883int 15884main () 15885{ 15886return main (); 15887 ; 15888 return 0; 15889} 15890_ACEOF 15891if ac_fn_c_try_link "$LINENO"; then : 15892 ac_cv_lib_resolv_main=yes 15893else 15894 ac_cv_lib_resolv_main=no 15895fi 15896rm -f core conftest.err conftest.$ac_objext \ 15897 conftest$ac_exeext conftest.$ac_ext 15898LIBS=$ac_check_lib_save_LIBS 15899fi 15900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5 15901$as_echo "$ac_cv_lib_resolv_main" >&6; } 15902if test "x$ac_cv_lib_resolv_main" = xyes; then : 15903 cat >>confdefs.h <<_ACEOF 15904#define HAVE_LIBRESOLV 1 15905_ACEOF 15906 15907 LIBS="-lresolv $LIBS" 15908 15909fi 15910 15911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_strdup in -llber" >&5 15912$as_echo_n "checking for ber_strdup in -llber... " >&6; } 15913if ${ac_cv_lib_lber_ber_strdup+:} false; then : 15914 $as_echo_n "(cached) " >&6 15915else 15916 ac_check_lib_save_LIBS=$LIBS 15917LIBS="-llber $LIBS" 15918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15919/* end confdefs.h. */ 15920 15921/* Override any GCC internal prototype to avoid an error. 15922 Use char because int might match the return type of a GCC 15923 builtin and then its argument prototype would still apply. */ 15924#ifdef __cplusplus 15925extern "C" 15926#endif 15927char ber_strdup (); 15928int 15929main () 15930{ 15931return ber_strdup (); 15932 ; 15933 return 0; 15934} 15935_ACEOF 15936if ac_fn_c_try_link "$LINENO"; then : 15937 ac_cv_lib_lber_ber_strdup=yes 15938else 15939 ac_cv_lib_lber_ber_strdup=no 15940fi 15941rm -f core conftest.err conftest.$ac_objext \ 15942 conftest$ac_exeext conftest.$ac_ext 15943LIBS=$ac_check_lib_save_LIBS 15944fi 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_strdup" >&5 15946$as_echo "$ac_cv_lib_lber_ber_strdup" >&6; } 15947if test "x$ac_cv_lib_lber_ber_strdup" = xyes; then : 15948 15949 : 15950 15951else 15952 15953 echo " didn't find ber_strdup in liblber !"; 15954 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries"; 15955 echo " or try the --with-libldap option."; 15956 exit 15957 15958fi 15959 15960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_add_ext in -lldap" >&5 15961$as_echo_n "checking for ldap_add_ext in -lldap... " >&6; } 15962if ${ac_cv_lib_ldap_ldap_add_ext+:} false; then : 15963 $as_echo_n "(cached) " >&6 15964else 15965 ac_check_lib_save_LIBS=$LIBS 15966LIBS="-lldap 15967 -llber 15968 $LIBS" 15969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971 15972/* Override any GCC internal prototype to avoid an error. 15973 Use char because int might match the return type of a GCC 15974 builtin and then its argument prototype would still apply. */ 15975#ifdef __cplusplus 15976extern "C" 15977#endif 15978char ldap_add_ext (); 15979int 15980main () 15981{ 15982return ldap_add_ext (); 15983 ; 15984 return 0; 15985} 15986_ACEOF 15987if ac_fn_c_try_link "$LINENO"; then : 15988 ac_cv_lib_ldap_ldap_add_ext=yes 15989else 15990 ac_cv_lib_ldap_ldap_add_ext=no 15991fi 15992rm -f core conftest.err conftest.$ac_objext \ 15993 conftest$ac_exeext conftest.$ac_ext 15994LIBS=$ac_check_lib_save_LIBS 15995fi 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_add_ext" >&5 15997$as_echo "$ac_cv_lib_ldap_ldap_add_ext" >&6; } 15998if test "x$ac_cv_lib_ldap_ldap_add_ext" = xyes; then : 15999 16000 : 16001 16002else 16003 16004 echo " didn't find ldap_add_ext in libldap !"; 16005 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries"; 16006 echo " or try the --with-libldap option."; 16007 exit 16008 16009fi 16010 16011for ac_header in termios.h ldap.h 16012do : 16013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16014ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16015if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16016 cat >>confdefs.h <<_ACEOF 16017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16018_ACEOF 16019 16020fi 16021 16022done 16023 16024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16025/* end confdefs.h. */ 16026#include <ldap.h> 16027 16028_ACEOF 16029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16030 $EGREP "ldap_add_ext" >/dev/null 2>&1; then : 16031 16032 : 16033 16034else 16035 16036 echo " didn't find ldap_add_ext in ldap.h!"; 16037 echo " Check for the right version (>= 2.0) of the OpenLDAP includes"; 16038 echo " or try --with-ldap-includes option."; 16039 exit 16040 16041fi 16042rm -f conftest* 16043 16044ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" 16045if test "x$ac_cv_header_lber_h" = xyes; then : 16046 16047fi 16048 16049 16050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16051/* end confdefs.h. */ 16052#include <lber.h> 16053 16054_ACEOF 16055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16056 $EGREP "ber_strdup" >/dev/null 2>&1; then : 16057 16058 : 16059 16060else 16061 16062 echo " didn't find ber_strdup in lber.h!"; 16063 echo " Check for the right version (>= 2.0) of the OpenLDAP includes"; 16064 echo " or try --with-ldap-includes option."; 16065 exit 16066 16067fi 16068rm -f conftest* 16069 16070 16071 16072 16073ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile" 16074 16075cat >confcache <<\_ACEOF 16076# This file is a shell script that caches the results of configure 16077# tests run on this system so they can be shared between configure 16078# scripts and configure runs, see configure's option --config-cache. 16079# It is not useful on other systems. If it contains results you don't 16080# want to keep, you may remove or edit it. 16081# 16082# config.status only pays attention to the cache file if you give it 16083# the --recheck option to rerun configure. 16084# 16085# `ac_cv_env_foo' variables (set or unset) will be overridden when 16086# loading this file, other *unset* `ac_cv_foo' will be assigned the 16087# following values. 16088 16089_ACEOF 16090 16091# The following way of writing the cache mishandles newlines in values, 16092# but we know of no workaround that is simple, portable, and efficient. 16093# So, we kill variables containing newlines. 16094# Ultrix sh set writes to stderr and can't be redirected directly, 16095# and sets the high bit in the cache file unless we assign to the vars. 16096( 16097 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16098 eval ac_val=\$$ac_var 16099 case $ac_val in #( 16100 *${as_nl}*) 16101 case $ac_var in #( 16102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16104 esac 16105 case $ac_var in #( 16106 _ | IFS | as_nl) ;; #( 16107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16108 *) { eval $ac_var=; unset $ac_var;} ;; 16109 esac ;; 16110 esac 16111 done 16112 16113 (set) 2>&1 | 16114 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16115 *${as_nl}ac_space=\ *) 16116 # `set' does not quote correctly, so add quotes: double-quote 16117 # substitution turns \\\\ into \\, and sed turns \\ into \. 16118 sed -n \ 16119 "s/'/'\\\\''/g; 16120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16121 ;; #( 16122 *) 16123 # `set' quotes correctly as required by POSIX, so do not add quotes. 16124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16125 ;; 16126 esac | 16127 sort 16128) | 16129 sed ' 16130 /^ac_cv_env_/b end 16131 t clear 16132 :clear 16133 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16134 t end 16135 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16136 :end' >>confcache 16137if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16138 if test -w "$cache_file"; then 16139 if test "x$cache_file" != "x/dev/null"; then 16140 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16141$as_echo "$as_me: updating cache $cache_file" >&6;} 16142 if test ! -f "$cache_file" || test -h "$cache_file"; then 16143 cat confcache >"$cache_file" 16144 else 16145 case $cache_file in #( 16146 */* | ?:*) 16147 mv -f confcache "$cache_file"$$ && 16148 mv -f "$cache_file"$$ "$cache_file" ;; #( 16149 *) 16150 mv -f confcache "$cache_file" ;; 16151 esac 16152 fi 16153 fi 16154 else 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16156$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16157 fi 16158fi 16159rm -f confcache 16160 16161test "x$prefix" = xNONE && prefix=$ac_default_prefix 16162# Let make expand exec_prefix. 16163test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16164 16165DEFS=-DHAVE_CONFIG_H 16166 16167ac_libobjs= 16168ac_ltlibobjs= 16169U= 16170for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16171 # 1. Remove the extension, and $U if already installed. 16172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16173 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16175 # will be set to the directory where LIBOBJS objects are built. 16176 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16177 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16178done 16179LIBOBJS=$ac_libobjs 16180 16181LTLIBOBJS=$ac_ltlibobjs 16182 16183 16184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16185$as_echo_n "checking that generated files are newer than configure... " >&6; } 16186 if test -n "$am_sleep_pid"; then 16187 # Hide warnings about reused PIDs. 16188 wait $am_sleep_pid 2>/dev/null 16189 fi 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16191$as_echo "done" >&6; } 16192 if test -n "$EXEEXT"; then 16193 am__EXEEXT_TRUE= 16194 am__EXEEXT_FALSE='#' 16195else 16196 am__EXEEXT_TRUE='#' 16197 am__EXEEXT_FALSE= 16198fi 16199 16200if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16201 as_fn_error $? "conditional \"AMDEP\" was never defined. 16202Usually this means the macro was only invoked conditionally." "$LINENO" 5 16203fi 16204if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16205 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16206Usually this means the macro was only invoked conditionally." "$LINENO" 5 16207fi 16208if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16209 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16210Usually this means the macro was only invoked conditionally." "$LINENO" 5 16211fi 16212 16213: "${CONFIG_STATUS=./config.status}" 16214ac_write_fail=0 16215ac_clean_files_save=$ac_clean_files 16216ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16217{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16218$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16219as_write_fail=0 16220cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16221#! $SHELL 16222# Generated by $as_me. 16223# Run this file to recreate the current configuration. 16224# Compiler output produced by configure, useful for debugging 16225# configure, is in config.log if it exists. 16226 16227debug=false 16228ac_cs_recheck=false 16229ac_cs_silent=false 16230 16231SHELL=\${CONFIG_SHELL-$SHELL} 16232export SHELL 16233_ASEOF 16234cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16235## -------------------- ## 16236## M4sh Initialization. ## 16237## -------------------- ## 16238 16239# Be more Bourne compatible 16240DUALCASE=1; export DUALCASE # for MKS sh 16241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16242 emulate sh 16243 NULLCMD=: 16244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16245 # is contrary to our usage. Disable this feature. 16246 alias -g '${1+"$@"}'='"$@"' 16247 setopt NO_GLOB_SUBST 16248else 16249 case `(set -o) 2>/dev/null` in #( 16250 *posix*) : 16251 set -o posix ;; #( 16252 *) : 16253 ;; 16254esac 16255fi 16256 16257 16258as_nl=' 16259' 16260export as_nl 16261# Printing a long string crashes Solaris 7 /usr/bin/printf. 16262as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16263as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16265# Prefer a ksh shell builtin over an external printf program on Solaris, 16266# but without wasting forks for bash or zsh. 16267if test -z "$BASH_VERSION$ZSH_VERSION" \ 16268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16269 as_echo='print -r --' 16270 as_echo_n='print -rn --' 16271elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16272 as_echo='printf %s\n' 16273 as_echo_n='printf %s' 16274else 16275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16277 as_echo_n='/usr/ucb/echo -n' 16278 else 16279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16280 as_echo_n_body='eval 16281 arg=$1; 16282 case $arg in #( 16283 *"$as_nl"*) 16284 expr "X$arg" : "X\\(.*\\)$as_nl"; 16285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16286 esac; 16287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16288 ' 16289 export as_echo_n_body 16290 as_echo_n='sh -c $as_echo_n_body as_echo' 16291 fi 16292 export as_echo_body 16293 as_echo='sh -c $as_echo_body as_echo' 16294fi 16295 16296# The user is always right. 16297if test "${PATH_SEPARATOR+set}" != set; then 16298 PATH_SEPARATOR=: 16299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16301 PATH_SEPARATOR=';' 16302 } 16303fi 16304 16305 16306# IFS 16307# We need space, tab and new line, in precisely that order. Quoting is 16308# there to prevent editors from complaining about space-tab. 16309# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16310# splitting by setting IFS to empty value.) 16311IFS=" "" $as_nl" 16312 16313# Find who we are. Look in the path if we contain no directory separator. 16314as_myself= 16315case $0 in #(( 16316 *[\\/]* ) as_myself=$0 ;; 16317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16318for as_dir in $PATH 16319do 16320 IFS=$as_save_IFS 16321 test -z "$as_dir" && as_dir=. 16322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16323 done 16324IFS=$as_save_IFS 16325 16326 ;; 16327esac 16328# We did not find ourselves, most probably we were run as `sh COMMAND' 16329# in which case we are not to be found in the path. 16330if test "x$as_myself" = x; then 16331 as_myself=$0 16332fi 16333if test ! -f "$as_myself"; then 16334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16335 exit 1 16336fi 16337 16338# Unset variables that we do not need and which cause bugs (e.g. in 16339# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16340# suppresses any "Segmentation fault" message there. '((' could 16341# trigger a bug in pdksh 5.2.14. 16342for as_var in BASH_ENV ENV MAIL MAILPATH 16343do eval test x\${$as_var+set} = xset \ 16344 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16345done 16346PS1='$ ' 16347PS2='> ' 16348PS4='+ ' 16349 16350# NLS nuisances. 16351LC_ALL=C 16352export LC_ALL 16353LANGUAGE=C 16354export LANGUAGE 16355 16356# CDPATH. 16357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16358 16359 16360# as_fn_error STATUS ERROR [LINENO LOG_FD] 16361# ---------------------------------------- 16362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16364# script with STATUS, using 1 if that was 0. 16365as_fn_error () 16366{ 16367 as_status=$1; test $as_status -eq 0 && as_status=1 16368 if test "$4"; then 16369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16371 fi 16372 $as_echo "$as_me: error: $2" >&2 16373 as_fn_exit $as_status 16374} # as_fn_error 16375 16376 16377# as_fn_set_status STATUS 16378# ----------------------- 16379# Set $? to STATUS, without forking. 16380as_fn_set_status () 16381{ 16382 return $1 16383} # as_fn_set_status 16384 16385# as_fn_exit STATUS 16386# ----------------- 16387# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16388as_fn_exit () 16389{ 16390 set +e 16391 as_fn_set_status $1 16392 exit $1 16393} # as_fn_exit 16394 16395# as_fn_unset VAR 16396# --------------- 16397# Portably unset VAR. 16398as_fn_unset () 16399{ 16400 { eval $1=; unset $1;} 16401} 16402as_unset=as_fn_unset 16403# as_fn_append VAR VALUE 16404# ---------------------- 16405# Append the text in VALUE to the end of the definition contained in VAR. Take 16406# advantage of any shell optimizations that allow amortized linear growth over 16407# repeated appends, instead of the typical quadratic growth present in naive 16408# implementations. 16409if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16410 eval 'as_fn_append () 16411 { 16412 eval $1+=\$2 16413 }' 16414else 16415 as_fn_append () 16416 { 16417 eval $1=\$$1\$2 16418 } 16419fi # as_fn_append 16420 16421# as_fn_arith ARG... 16422# ------------------ 16423# Perform arithmetic evaluation on the ARGs, and store the result in the 16424# global $as_val. Take advantage of shells that can avoid forks. The arguments 16425# must be portable across $(()) and expr. 16426if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16427 eval 'as_fn_arith () 16428 { 16429 as_val=$(( $* )) 16430 }' 16431else 16432 as_fn_arith () 16433 { 16434 as_val=`expr "$@" || test $? -eq 1` 16435 } 16436fi # as_fn_arith 16437 16438 16439if expr a : '\(a\)' >/dev/null 2>&1 && 16440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16441 as_expr=expr 16442else 16443 as_expr=false 16444fi 16445 16446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16447 as_basename=basename 16448else 16449 as_basename=false 16450fi 16451 16452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16453 as_dirname=dirname 16454else 16455 as_dirname=false 16456fi 16457 16458as_me=`$as_basename -- "$0" || 16459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16460 X"$0" : 'X\(//\)$' \| \ 16461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16462$as_echo X/"$0" | 16463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16464 s//\1/ 16465 q 16466 } 16467 /^X\/\(\/\/\)$/{ 16468 s//\1/ 16469 q 16470 } 16471 /^X\/\(\/\).*/{ 16472 s//\1/ 16473 q 16474 } 16475 s/.*/./; q'` 16476 16477# Avoid depending upon Character Ranges. 16478as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16481as_cr_digits='0123456789' 16482as_cr_alnum=$as_cr_Letters$as_cr_digits 16483 16484ECHO_C= ECHO_N= ECHO_T= 16485case `echo -n x` in #((((( 16486-n*) 16487 case `echo 'xy\c'` in 16488 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16489 xy) ECHO_C='\c';; 16490 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16491 ECHO_T=' ';; 16492 esac;; 16493*) 16494 ECHO_N='-n';; 16495esac 16496 16497rm -f conf$$ conf$$.exe conf$$.file 16498if test -d conf$$.dir; then 16499 rm -f conf$$.dir/conf$$.file 16500else 16501 rm -f conf$$.dir 16502 mkdir conf$$.dir 2>/dev/null 16503fi 16504if (echo >conf$$.file) 2>/dev/null; then 16505 if ln -s conf$$.file conf$$ 2>/dev/null; then 16506 as_ln_s='ln -s' 16507 # ... but there are two gotchas: 16508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16510 # In both cases, we have to default to `cp -pR'. 16511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16512 as_ln_s='cp -pR' 16513 elif ln conf$$.file conf$$ 2>/dev/null; then 16514 as_ln_s=ln 16515 else 16516 as_ln_s='cp -pR' 16517 fi 16518else 16519 as_ln_s='cp -pR' 16520fi 16521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16522rmdir conf$$.dir 2>/dev/null 16523 16524 16525# as_fn_mkdir_p 16526# ------------- 16527# Create "$as_dir" as a directory, including parents if necessary. 16528as_fn_mkdir_p () 16529{ 16530 16531 case $as_dir in #( 16532 -*) as_dir=./$as_dir;; 16533 esac 16534 test -d "$as_dir" || eval $as_mkdir_p || { 16535 as_dirs= 16536 while :; do 16537 case $as_dir in #( 16538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16539 *) as_qdir=$as_dir;; 16540 esac 16541 as_dirs="'$as_qdir' $as_dirs" 16542 as_dir=`$as_dirname -- "$as_dir" || 16543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16544 X"$as_dir" : 'X\(//\)[^/]' \| \ 16545 X"$as_dir" : 'X\(//\)$' \| \ 16546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16547$as_echo X"$as_dir" | 16548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16549 s//\1/ 16550 q 16551 } 16552 /^X\(\/\/\)[^/].*/{ 16553 s//\1/ 16554 q 16555 } 16556 /^X\(\/\/\)$/{ 16557 s//\1/ 16558 q 16559 } 16560 /^X\(\/\).*/{ 16561 s//\1/ 16562 q 16563 } 16564 s/.*/./; q'` 16565 test -d "$as_dir" && break 16566 done 16567 test -z "$as_dirs" || eval "mkdir $as_dirs" 16568 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16569 16570 16571} # as_fn_mkdir_p 16572if mkdir -p . 2>/dev/null; then 16573 as_mkdir_p='mkdir -p "$as_dir"' 16574else 16575 test -d ./-p && rmdir ./-p 16576 as_mkdir_p=false 16577fi 16578 16579 16580# as_fn_executable_p FILE 16581# ----------------------- 16582# Test if FILE is an executable regular file. 16583as_fn_executable_p () 16584{ 16585 test -f "$1" && test -x "$1" 16586} # as_fn_executable_p 16587as_test_x='test -x' 16588as_executable_p=as_fn_executable_p 16589 16590# Sed expression to map a string onto a valid CPP name. 16591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16592 16593# Sed expression to map a string onto a valid variable name. 16594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16595 16596 16597exec 6>&1 16598## ----------------------------------- ## 16599## Main body of $CONFIG_STATUS script. ## 16600## ----------------------------------- ## 16601_ASEOF 16602test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16603 16604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16605# Save the log message, to keep $0 and so on meaningful, and to 16606# report actual input values of CONFIG_FILES etc. instead of their 16607# values after options handling. 16608ac_log=" 16609This file was extended by ldapcpplib $as_me , which was 16610generated by GNU Autoconf 2.69. Invocation command line was 16611 16612 CONFIG_FILES = $CONFIG_FILES 16613 CONFIG_HEADERS = $CONFIG_HEADERS 16614 CONFIG_LINKS = $CONFIG_LINKS 16615 CONFIG_COMMANDS = $CONFIG_COMMANDS 16616 $ $0 $@ 16617 16618on `(hostname || uname -n) 2>/dev/null | sed 1q` 16619" 16620 16621_ACEOF 16622 16623case $ac_config_files in *" 16624"*) set x $ac_config_files; shift; ac_config_files=$*;; 16625esac 16626 16627case $ac_config_headers in *" 16628"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16629esac 16630 16631 16632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16633# Files that config.status was made for. 16634config_files="$ac_config_files" 16635config_headers="$ac_config_headers" 16636config_commands="$ac_config_commands" 16637 16638_ACEOF 16639 16640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16641ac_cs_usage="\ 16642\`$as_me' instantiates files and other configuration actions 16643from templates according to the current configuration. Unless the files 16644and actions are specified as TAGs, all are instantiated by default. 16645 16646Usage: $0 [OPTION]... [TAG]... 16647 16648 -h, --help print this help, then exit 16649 -V, --version print version number and configuration settings, then exit 16650 --config print configuration, then exit 16651 -q, --quiet, --silent 16652 do not print progress messages 16653 -d, --debug don't remove temporary files 16654 --recheck update $as_me by reconfiguring in the same conditions 16655 --file=FILE[:TEMPLATE] 16656 instantiate the configuration file FILE 16657 --header=FILE[:TEMPLATE] 16658 instantiate the configuration header FILE 16659 16660Configuration files: 16661$config_files 16662 16663Configuration headers: 16664$config_headers 16665 16666Configuration commands: 16667$config_commands 16668 16669Report bugs to <http://www.openldap.org/its/ >." 16670 16671_ACEOF 16672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16673ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16674ac_cs_version="\\ 16675ldapcpplib config.status 16676configured by $0, generated by GNU Autoconf 2.69, 16677 with options \\"\$ac_cs_config\\" 16678 16679Copyright (C) 2012 Free Software Foundation, Inc. 16680This config.status script is free software; the Free Software Foundation 16681gives unlimited permission to copy, distribute and modify it." 16682 16683ac_pwd='$ac_pwd' 16684srcdir='$srcdir' 16685INSTALL='$INSTALL' 16686MKDIR_P='$MKDIR_P' 16687AWK='$AWK' 16688test -n "\$AWK" || AWK=awk 16689_ACEOF 16690 16691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16692# The default lists apply if the user does not specify any file. 16693ac_need_defaults=: 16694while test $# != 0 16695do 16696 case $1 in 16697 --*=?*) 16698 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16699 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16700 ac_shift=: 16701 ;; 16702 --*=) 16703 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16704 ac_optarg= 16705 ac_shift=: 16706 ;; 16707 *) 16708 ac_option=$1 16709 ac_optarg=$2 16710 ac_shift=shift 16711 ;; 16712 esac 16713 16714 case $ac_option in 16715 # Handling of the options. 16716 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16717 ac_cs_recheck=: ;; 16718 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16719 $as_echo "$ac_cs_version"; exit ;; 16720 --config | --confi | --conf | --con | --co | --c ) 16721 $as_echo "$ac_cs_config"; exit ;; 16722 --debug | --debu | --deb | --de | --d | -d ) 16723 debug=: ;; 16724 --file | --fil | --fi | --f ) 16725 $ac_shift 16726 case $ac_optarg in 16727 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16728 '') as_fn_error $? "missing file argument" ;; 16729 esac 16730 as_fn_append CONFIG_FILES " '$ac_optarg'" 16731 ac_need_defaults=false;; 16732 --header | --heade | --head | --hea ) 16733 $ac_shift 16734 case $ac_optarg in 16735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16736 esac 16737 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16738 ac_need_defaults=false;; 16739 --he | --h) 16740 # Conflict between --help and --header 16741 as_fn_error $? "ambiguous option: \`$1' 16742Try \`$0 --help' for more information.";; 16743 --help | --hel | -h ) 16744 $as_echo "$ac_cs_usage"; exit ;; 16745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16746 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16747 ac_cs_silent=: ;; 16748 16749 # This is an error. 16750 -*) as_fn_error $? "unrecognized option: \`$1' 16751Try \`$0 --help' for more information." ;; 16752 16753 *) as_fn_append ac_config_targets " $1" 16754 ac_need_defaults=false ;; 16755 16756 esac 16757 shift 16758done 16759 16760ac_configure_extra_args= 16761 16762if $ac_cs_silent; then 16763 exec 6>/dev/null 16764 ac_configure_extra_args="$ac_configure_extra_args --silent" 16765fi 16766 16767_ACEOF 16768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16769if \$ac_cs_recheck; then 16770 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16771 shift 16772 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16773 CONFIG_SHELL='$SHELL' 16774 export CONFIG_SHELL 16775 exec "\$@" 16776fi 16777 16778_ACEOF 16779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16780exec 5>>config.log 16781{ 16782 echo 16783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16784## Running $as_me. ## 16785_ASBOX 16786 $as_echo "$ac_log" 16787} >&5 16788 16789_ACEOF 16790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16791# 16792# INIT-COMMANDS 16793# 16794AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16795 16796 16797# The HP-UX ksh and POSIX shell print the target directory to stdout 16798# if CDPATH is set. 16799(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16800 16801sed_quote_subst='$sed_quote_subst' 16802double_quote_subst='$double_quote_subst' 16803delay_variable_subst='$delay_variable_subst' 16804macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16805macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16806enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16807enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16808pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16809enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16810shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16811SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16812ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16813PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16814host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16815host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16816host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16817build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16818build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16819build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16820SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16821Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16822GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16823EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16824FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16825LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16826NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16827LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16828max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16829ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16830exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16831lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16832lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16833lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16834lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16835lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16836reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16837reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16838OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16839deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16840file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16841file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16842want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16843DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16844sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16845AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16846AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16847archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16848STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16849RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16850old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16851old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16852old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16853lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16854CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16855CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16856compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16857GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16858lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16859lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16860lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16861lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16862lt_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"`' 16863lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16864nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16865lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16866lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16867objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16868MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16869lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16870lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16871lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16872lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16873lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16874need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16875MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16876DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16877NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16878LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16879OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16880OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16881libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16882shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16883extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16884archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16885enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16886export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16887whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16888compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16889old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16890old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16891archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16892archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16893module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16894module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16895with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16896allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16897no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16898hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16899hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16900hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16901hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16902hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16903hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16904hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16905inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16906link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16907always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16908export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16909exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16910include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16911prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16912postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16913file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16914variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16915need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16916need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16917version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16918runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16919shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16920shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16921libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16922library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16923soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16924install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16925postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16926postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16927finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16928finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16929hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16930sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16931configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16932configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16933hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16934enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16935enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16936enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16937old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16938striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16939compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16940predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16941postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16942predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16943postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16944compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16945LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16946reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16947reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16948old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16949compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16950GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16951lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16952lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16953lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16954lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16955lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16956archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16957enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16958export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16959whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16960compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16961old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16962old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16963archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16964archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16965module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16966module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16967with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16968allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16969no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16970hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16971hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16972hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16973hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16974hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16975hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16976hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16977inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16978link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16979always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16980export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16981exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16982include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16983prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16984postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16985file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16986hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16987compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16988predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16989postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16990predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16991postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16992compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16993 16994LTCC='$LTCC' 16995LTCFLAGS='$LTCFLAGS' 16996compiler='$compiler_DEFAULT' 16997 16998# A function that is used when there is no print builtin or printf. 16999func_fallback_echo () 17000{ 17001 eval 'cat <<_LTECHO_EOF 17002\$1 17003_LTECHO_EOF' 17004} 17005 17006# Quote evaled strings. 17007for var in SHELL \ 17008ECHO \ 17009PATH_SEPARATOR \ 17010SED \ 17011GREP \ 17012EGREP \ 17013FGREP \ 17014LD \ 17015NM \ 17016LN_S \ 17017lt_SP2NL \ 17018lt_NL2SP \ 17019reload_flag \ 17020OBJDUMP \ 17021deplibs_check_method \ 17022file_magic_cmd \ 17023file_magic_glob \ 17024want_nocaseglob \ 17025DLLTOOL \ 17026sharedlib_from_linklib_cmd \ 17027AR \ 17028AR_FLAGS \ 17029archiver_list_spec \ 17030STRIP \ 17031RANLIB \ 17032CC \ 17033CFLAGS \ 17034compiler \ 17035lt_cv_sys_global_symbol_pipe \ 17036lt_cv_sys_global_symbol_to_cdecl \ 17037lt_cv_sys_global_symbol_to_import \ 17038lt_cv_sys_global_symbol_to_c_name_address \ 17039lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17040lt_cv_nm_interface \ 17041nm_file_list_spec \ 17042lt_cv_truncate_bin \ 17043lt_prog_compiler_no_builtin_flag \ 17044lt_prog_compiler_pic \ 17045lt_prog_compiler_wl \ 17046lt_prog_compiler_static \ 17047lt_cv_prog_compiler_c_o \ 17048need_locks \ 17049MANIFEST_TOOL \ 17050DSYMUTIL \ 17051NMEDIT \ 17052LIPO \ 17053OTOOL \ 17054OTOOL64 \ 17055shrext_cmds \ 17056export_dynamic_flag_spec \ 17057whole_archive_flag_spec \ 17058compiler_needs_object \ 17059with_gnu_ld \ 17060allow_undefined_flag \ 17061no_undefined_flag \ 17062hardcode_libdir_flag_spec \ 17063hardcode_libdir_separator \ 17064exclude_expsyms \ 17065include_expsyms \ 17066file_list_spec \ 17067variables_saved_for_relink \ 17068libname_spec \ 17069library_names_spec \ 17070soname_spec \ 17071install_override_mode \ 17072finish_eval \ 17073old_striplib \ 17074striplib \ 17075compiler_lib_search_dirs \ 17076predep_objects \ 17077postdep_objects \ 17078predeps \ 17079postdeps \ 17080compiler_lib_search_path \ 17081LD_CXX \ 17082reload_flag_CXX \ 17083compiler_CXX \ 17084lt_prog_compiler_no_builtin_flag_CXX \ 17085lt_prog_compiler_pic_CXX \ 17086lt_prog_compiler_wl_CXX \ 17087lt_prog_compiler_static_CXX \ 17088lt_cv_prog_compiler_c_o_CXX \ 17089export_dynamic_flag_spec_CXX \ 17090whole_archive_flag_spec_CXX \ 17091compiler_needs_object_CXX \ 17092with_gnu_ld_CXX \ 17093allow_undefined_flag_CXX \ 17094no_undefined_flag_CXX \ 17095hardcode_libdir_flag_spec_CXX \ 17096hardcode_libdir_separator_CXX \ 17097exclude_expsyms_CXX \ 17098include_expsyms_CXX \ 17099file_list_spec_CXX \ 17100compiler_lib_search_dirs_CXX \ 17101predep_objects_CXX \ 17102postdep_objects_CXX \ 17103predeps_CXX \ 17104postdeps_CXX \ 17105compiler_lib_search_path_CXX; do 17106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17107 *[\\\\\\\`\\"\\\$]*) 17108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17109 ;; 17110 *) 17111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17112 ;; 17113 esac 17114done 17115 17116# Double-quote double-evaled strings. 17117for var in reload_cmds \ 17118old_postinstall_cmds \ 17119old_postuninstall_cmds \ 17120old_archive_cmds \ 17121extract_expsyms_cmds \ 17122old_archive_from_new_cmds \ 17123old_archive_from_expsyms_cmds \ 17124archive_cmds \ 17125archive_expsym_cmds \ 17126module_cmds \ 17127module_expsym_cmds \ 17128export_symbols_cmds \ 17129prelink_cmds \ 17130postlink_cmds \ 17131postinstall_cmds \ 17132postuninstall_cmds \ 17133finish_cmds \ 17134sys_lib_search_path_spec \ 17135configure_time_dlsearch_path \ 17136configure_time_lt_sys_library_path \ 17137reload_cmds_CXX \ 17138old_archive_cmds_CXX \ 17139old_archive_from_new_cmds_CXX \ 17140old_archive_from_expsyms_cmds_CXX \ 17141archive_cmds_CXX \ 17142archive_expsym_cmds_CXX \ 17143module_cmds_CXX \ 17144module_expsym_cmds_CXX \ 17145export_symbols_cmds_CXX \ 17146prelink_cmds_CXX \ 17147postlink_cmds_CXX; do 17148 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17149 *[\\\\\\\`\\"\\\$]*) 17150 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17151 ;; 17152 *) 17153 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17154 ;; 17155 esac 17156done 17157 17158ac_aux_dir='$ac_aux_dir' 17159 17160# See if we are running on zsh, and set the options that allow our 17161# commands through without removal of \ escapes INIT. 17162if test -n "\${ZSH_VERSION+set}"; then 17163 setopt NO_GLOB_SUBST 17164fi 17165 17166 17167 PACKAGE='$PACKAGE' 17168 VERSION='$VERSION' 17169 RM='$RM' 17170 ofile='$ofile' 17171 17172 17173 17174 17175 17176 17177_ACEOF 17178 17179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17180 17181# Handling of arguments. 17182for ac_config_target in $ac_config_targets 17183do 17184 case $ac_config_target in 17185 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 17186 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17187 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17188 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17189 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17190 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 17191 17192 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17193 esac 17194done 17195 17196 17197# If the user did not use the arguments to specify the items to instantiate, 17198# then the envvar interface is used. Set only those that are not. 17199# We use the long form for the default assignment because of an extremely 17200# bizarre bug on SunOS 4.1.3. 17201if $ac_need_defaults; then 17202 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17203 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17204 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17205fi 17206 17207# Have a temporary directory for convenience. Make it in the build tree 17208# simply because there is no reason against having it here, and in addition, 17209# creating and moving files from /tmp can sometimes cause problems. 17210# Hook for its removal unless debugging. 17211# Note that there is a small window in which the directory will not be cleaned: 17212# after its creation but before its name has been assigned to `$tmp'. 17213$debug || 17214{ 17215 tmp= ac_tmp= 17216 trap 'exit_status=$? 17217 : "${ac_tmp:=$tmp}" 17218 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17219' 0 17220 trap 'as_fn_exit 1' 1 2 13 15 17221} 17222# Create a (secure) tmp directory for tmp files. 17223 17224{ 17225 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17226 test -d "$tmp" 17227} || 17228{ 17229 tmp=./conf$$-$RANDOM 17230 (umask 077 && mkdir "$tmp") 17231} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17232ac_tmp=$tmp 17233 17234# Set up the scripts for CONFIG_FILES section. 17235# No need to generate them if there are no CONFIG_FILES. 17236# This happens for instance with `./config.status config.h'. 17237if test -n "$CONFIG_FILES"; then 17238 17239 17240ac_cr=`echo X | tr X '\015'` 17241# On cygwin, bash can eat \r inside `` if the user requested igncr. 17242# But we know of no other shell where ac_cr would be empty at this 17243# point, so we can use a bashism as a fallback. 17244if test "x$ac_cr" = x; then 17245 eval ac_cr=\$\'\\r\' 17246fi 17247ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17248if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17249 ac_cs_awk_cr='\\r' 17250else 17251 ac_cs_awk_cr=$ac_cr 17252fi 17253 17254echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17255_ACEOF 17256 17257 17258{ 17259 echo "cat >conf$$subs.awk <<_ACEOF" && 17260 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17261 echo "_ACEOF" 17262} >conf$$subs.sh || 17263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17264ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17265ac_delim='%!_!# ' 17266for ac_last_try in false false false false false :; do 17267 . ./conf$$subs.sh || 17268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17269 17270 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17271 if test $ac_delim_n = $ac_delim_num; then 17272 break 17273 elif $ac_last_try; then 17274 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17275 else 17276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17277 fi 17278done 17279rm -f conf$$subs.sh 17280 17281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17282cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17283_ACEOF 17284sed -n ' 17285h 17286s/^/S["/; s/!.*/"]=/ 17287p 17288g 17289s/^[^!]*!// 17290:repl 17291t repl 17292s/'"$ac_delim"'$// 17293t delim 17294:nl 17295h 17296s/\(.\{148\}\)..*/\1/ 17297t more1 17298s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17299p 17300n 17301b repl 17302:more1 17303s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17304p 17305g 17306s/.\{148\}// 17307t nl 17308:delim 17309h 17310s/\(.\{148\}\)..*/\1/ 17311t more2 17312s/["\\]/\\&/g; s/^/"/; s/$/"/ 17313p 17314b 17315:more2 17316s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17317p 17318g 17319s/.\{148\}// 17320t delim 17321' <conf$$subs.awk | sed ' 17322/^[^""]/{ 17323 N 17324 s/\n// 17325} 17326' >>$CONFIG_STATUS || ac_write_fail=1 17327rm -f conf$$subs.awk 17328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17329_ACAWK 17330cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17331 for (key in S) S_is_set[key] = 1 17332 FS = "" 17333 17334} 17335{ 17336 line = $ 0 17337 nfields = split(line, field, "@") 17338 substed = 0 17339 len = length(field[1]) 17340 for (i = 2; i < nfields; i++) { 17341 key = field[i] 17342 keylen = length(key) 17343 if (S_is_set[key]) { 17344 value = S[key] 17345 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17346 len += length(value) + length(field[++i]) 17347 substed = 1 17348 } else 17349 len += 1 + keylen 17350 } 17351 17352 print line 17353} 17354 17355_ACAWK 17356_ACEOF 17357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17358if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17359 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17360else 17361 cat 17362fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17363 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17364_ACEOF 17365 17366# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17367# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17368# trailing colons and then remove the whole line if VPATH becomes empty 17369# (actually we leave an empty line to preserve line numbers). 17370if test "x$srcdir" = x.; then 17371 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17372h 17373s/// 17374s/^/:/ 17375s/[ ]*$/:/ 17376s/:\$(srcdir):/:/g 17377s/:\${srcdir}:/:/g 17378s/:@srcdir@:/:/g 17379s/^:*// 17380s/:*$// 17381x 17382s/\(=[ ]*\).*/\1/ 17383G 17384s/\n// 17385s/^[^=]*=[ ]*$// 17386}' 17387fi 17388 17389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17390fi # test -n "$CONFIG_FILES" 17391 17392# Set up the scripts for CONFIG_HEADERS section. 17393# No need to generate them if there are no CONFIG_HEADERS. 17394# This happens for instance with `./config.status Makefile'. 17395if test -n "$CONFIG_HEADERS"; then 17396cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17397BEGIN { 17398_ACEOF 17399 17400# Transform confdefs.h into an awk script `defines.awk', embedded as 17401# here-document in config.status, that substitutes the proper values into 17402# config.h.in to produce config.h. 17403 17404# Create a delimiter string that does not exist in confdefs.h, to ease 17405# handling of long lines. 17406ac_delim='%!_!# ' 17407for ac_last_try in false false :; do 17408 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17409 if test -z "$ac_tt"; then 17410 break 17411 elif $ac_last_try; then 17412 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17413 else 17414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17415 fi 17416done 17417 17418# For the awk script, D is an array of macro values keyed by name, 17419# likewise P contains macro parameters if any. Preserve backslash 17420# newline sequences. 17421 17422ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17423sed -n ' 17424s/.\{148\}/&'"$ac_delim"'/g 17425t rset 17426:rset 17427s/^[ ]*#[ ]*define[ ][ ]*/ / 17428t def 17429d 17430:def 17431s/\\$// 17432t bsnl 17433s/["\\]/\\&/g 17434s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17435D["\1"]=" \3"/p 17436s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17437d 17438:bsnl 17439s/["\\]/\\&/g 17440s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17441D["\1"]=" \3\\\\\\n"\\/p 17442t cont 17443s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17444t cont 17445d 17446:cont 17447n 17448s/.\{148\}/&'"$ac_delim"'/g 17449t clear 17450:clear 17451s/\\$// 17452t bsnlc 17453s/["\\]/\\&/g; s/^/"/; s/$/"/p 17454d 17455:bsnlc 17456s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17457b cont 17458' <confdefs.h | sed ' 17459s/'"$ac_delim"'/"\\\ 17460"/g' >>$CONFIG_STATUS || ac_write_fail=1 17461 17462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17463 for (key in D) D_is_set[key] = 1 17464 FS = "" 17465} 17466/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17467 line = \$ 0 17468 split(line, arg, " ") 17469 if (arg[1] == "#") { 17470 defundef = arg[2] 17471 mac1 = arg[3] 17472 } else { 17473 defundef = substr(arg[1], 2) 17474 mac1 = arg[2] 17475 } 17476 split(mac1, mac2, "(") #) 17477 macro = mac2[1] 17478 prefix = substr(line, 1, index(line, defundef) - 1) 17479 if (D_is_set[macro]) { 17480 # Preserve the white space surrounding the "#". 17481 print prefix "define", macro P[macro] D[macro] 17482 next 17483 } else { 17484 # Replace #undef with comments. This is necessary, for example, 17485 # in the case of _POSIX_SOURCE, which is predefined and required 17486 # on some systems where configure will not decide to define it. 17487 if (defundef == "undef") { 17488 print "/*", prefix defundef, macro, "*/" 17489 next 17490 } 17491 } 17492} 17493{ print } 17494_ACAWK 17495_ACEOF 17496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17497 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17498fi # test -n "$CONFIG_HEADERS" 17499 17500 17501eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17502shift 17503for ac_tag 17504do 17505 case $ac_tag in 17506 :[FHLC]) ac_mode=$ac_tag; continue;; 17507 esac 17508 case $ac_mode$ac_tag in 17509 :[FHL]*:*);; 17510 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17511 :[FH]-) ac_tag=-:-;; 17512 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17513 esac 17514 ac_save_IFS=$IFS 17515 IFS=: 17516 set x $ac_tag 17517 IFS=$ac_save_IFS 17518 shift 17519 ac_file=$1 17520 shift 17521 17522 case $ac_mode in 17523 :L) ac_source=$1;; 17524 :[FH]) 17525 ac_file_inputs= 17526 for ac_f 17527 do 17528 case $ac_f in 17529 -) ac_f="$ac_tmp/stdin";; 17530 *) # Look for the file first in the build tree, then in the source tree 17531 # (if the path is not absolute). The absolute path cannot be DOS-style, 17532 # because $ac_f cannot contain `:'. 17533 test -f "$ac_f" || 17534 case $ac_f in 17535 [\\/$]*) false;; 17536 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17537 esac || 17538 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17539 esac 17540 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17541 as_fn_append ac_file_inputs " '$ac_f'" 17542 done 17543 17544 # Let's still pretend it is `configure' which instantiates (i.e., don't 17545 # use $as_me), people would be surprised to read: 17546 # /* config.h. Generated by config.status. */ 17547 configure_input='Generated from '` 17548 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17549 `' by configure.' 17550 if test x"$ac_file" != x-; then 17551 configure_input="$ac_file. $configure_input" 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17553$as_echo "$as_me: creating $ac_file" >&6;} 17554 fi 17555 # Neutralize special characters interpreted by sed in replacement strings. 17556 case $configure_input in #( 17557 *\&* | *\|* | *\\* ) 17558 ac_sed_conf_input=`$as_echo "$configure_input" | 17559 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17560 *) ac_sed_conf_input=$configure_input;; 17561 esac 17562 17563 case $ac_tag in 17564 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17566 esac 17567 ;; 17568 esac 17569 17570 ac_dir=`$as_dirname -- "$ac_file" || 17571$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17572 X"$ac_file" : 'X\(//\)[^/]' \| \ 17573 X"$ac_file" : 'X\(//\)$' \| \ 17574 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17575$as_echo X"$ac_file" | 17576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17577 s//\1/ 17578 q 17579 } 17580 /^X\(\/\/\)[^/].*/{ 17581 s//\1/ 17582 q 17583 } 17584 /^X\(\/\/\)$/{ 17585 s//\1/ 17586 q 17587 } 17588 /^X\(\/\).*/{ 17589 s//\1/ 17590 q 17591 } 17592 s/.*/./; q'` 17593 as_dir="$ac_dir"; as_fn_mkdir_p 17594 ac_builddir=. 17595 17596case "$ac_dir" in 17597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17598*) 17599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17600 # A ".." for each directory in $ac_dir_suffix. 17601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17602 case $ac_top_builddir_sub in 17603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17605 esac ;; 17606esac 17607ac_abs_top_builddir=$ac_pwd 17608ac_abs_builddir=$ac_pwd$ac_dir_suffix 17609# for backward compatibility: 17610ac_top_builddir=$ac_top_build_prefix 17611 17612case $srcdir in 17613 .) # We are building in place. 17614 ac_srcdir=. 17615 ac_top_srcdir=$ac_top_builddir_sub 17616 ac_abs_top_srcdir=$ac_pwd ;; 17617 [\\/]* | ?:[\\/]* ) # Absolute name. 17618 ac_srcdir=$srcdir$ac_dir_suffix; 17619 ac_top_srcdir=$srcdir 17620 ac_abs_top_srcdir=$srcdir ;; 17621 *) # Relative name. 17622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17623 ac_top_srcdir=$ac_top_build_prefix$srcdir 17624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17625esac 17626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17627 17628 17629 case $ac_mode in 17630 :F) 17631 # 17632 # CONFIG_FILE 17633 # 17634 17635 case $INSTALL in 17636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17637 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17638 esac 17639 ac_MKDIR_P=$MKDIR_P 17640 case $MKDIR_P in 17641 [\\/$]* | ?:[\\/]* ) ;; 17642 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17643 esac 17644_ACEOF 17645 17646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17647# If the template does not know about datarootdir, expand it. 17648# FIXME: This hack should be removed a few years after 2.60. 17649ac_datarootdir_hack=; ac_datarootdir_seen= 17650ac_sed_dataroot=' 17651/datarootdir/ { 17652 p 17653 q 17654} 17655/@datadir@/p 17656/@docdir@/p 17657/@infodir@/p 17658/@localedir@/p 17659/@mandir@/p' 17660case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17661*datarootdir*) ac_datarootdir_seen=yes;; 17662*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17664$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17665_ACEOF 17666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17667 ac_datarootdir_hack=' 17668 s&@datadir@&$datadir&g 17669 s&@docdir@&$docdir&g 17670 s&@infodir@&$infodir&g 17671 s&@localedir@&$localedir&g 17672 s&@mandir@&$mandir&g 17673 s&\\\${datarootdir}&$datarootdir&g' ;; 17674esac 17675_ACEOF 17676 17677# Neutralize VPATH when `$srcdir' = `.'. 17678# Shell code in configure.ac might set extrasub. 17679# FIXME: do we really want to maintain this feature? 17680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17681ac_sed_extra="$ac_vpsub 17682$extrasub 17683_ACEOF 17684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17685:t 17686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17687s|@configure_input@|$ac_sed_conf_input|;t t 17688s&@top_builddir@&$ac_top_builddir_sub&;t t 17689s&@top_build_prefix@&$ac_top_build_prefix&;t t 17690s&@srcdir@&$ac_srcdir&;t t 17691s&@abs_srcdir@&$ac_abs_srcdir&;t t 17692s&@top_srcdir@&$ac_top_srcdir&;t t 17693s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17694s&@builddir@&$ac_builddir&;t t 17695s&@abs_builddir@&$ac_abs_builddir&;t t 17696s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17697s&@INSTALL@&$ac_INSTALL&;t t 17698s&@MKDIR_P@&$ac_MKDIR_P&;t t 17699$ac_datarootdir_hack 17700" 17701eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17702 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17703 17704test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17705 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17706 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17707 "$ac_tmp/out"`; test -z "$ac_out"; } && 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17709which seems to be undefined. Please make sure it is defined" >&5 17710$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17711which seems to be undefined. Please make sure it is defined" >&2;} 17712 17713 rm -f "$ac_tmp/stdin" 17714 case $ac_file in 17715 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17716 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17717 esac \ 17718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17719 ;; 17720 :H) 17721 # 17722 # CONFIG_HEADER 17723 # 17724 if test x"$ac_file" != x-; then 17725 { 17726 $as_echo "/* $configure_input */" \ 17727 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17728 } >"$ac_tmp/config.h" \ 17729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17730 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17731 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17732$as_echo "$as_me: $ac_file is unchanged" >&6;} 17733 else 17734 rm -f "$ac_file" 17735 mv "$ac_tmp/config.h" "$ac_file" \ 17736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17737 fi 17738 else 17739 $as_echo "/* $configure_input */" \ 17740 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17741 || as_fn_error $? "could not create -" "$LINENO" 5 17742 fi 17743# Compute "$ac_file"'s index in $config_headers. 17744_am_arg="$ac_file" 17745_am_stamp_count=1 17746for _am_header in $config_headers :; do 17747 case $_am_header in 17748 $_am_arg | $_am_arg:* ) 17749 break ;; 17750 * ) 17751 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17752 esac 17753done 17754echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17755$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17756 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17757 X"$_am_arg" : 'X\(//\)$' \| \ 17758 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17759$as_echo X"$_am_arg" | 17760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17761 s//\1/ 17762 q 17763 } 17764 /^X\(\/\/\)[^/].*/{ 17765 s//\1/ 17766 q 17767 } 17768 /^X\(\/\/\)$/{ 17769 s//\1/ 17770 q 17771 } 17772 /^X\(\/\).*/{ 17773 s//\1/ 17774 q 17775 } 17776 s/.*/./; q'`/stamp-h$_am_stamp_count 17777 ;; 17778 17779 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17780$as_echo "$as_me: executing $ac_file commands" >&6;} 17781 ;; 17782 esac 17783 17784 17785 case $ac_file$ac_mode in 17786 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17787 # Older Autoconf quotes --file arguments for eval, but not when files 17788 # are listed without --file. Let's play safe and only enable the eval 17789 # if we detect the quoting. 17790 # TODO: see whether this extra hack can be removed once we start 17791 # requiring Autoconf 2.70 or later. 17792 case $CONFIG_FILES in #( 17793 *\'*) : 17794 eval set x "$CONFIG_FILES" ;; #( 17795 *) : 17796 set x $CONFIG_FILES ;; #( 17797 *) : 17798 ;; 17799esac 17800 shift 17801 # Used to flag and report bootstrapping failures. 17802 am_rc=0 17803 for am_mf 17804 do 17805 # Strip MF so we end up with the name of the file. 17806 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 17807 # Check whether this is an Automake generated Makefile which includes 17808 # dependency-tracking related rules and includes. 17809 # Grep'ing the whole file directly is not great: AIX grep has a line 17810 # limit of 2048, but all sed's we know have understand at least 4000. 17811 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17812 || continue 17813 am_dirpart=`$as_dirname -- "$am_mf" || 17814$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17815 X"$am_mf" : 'X\(//\)[^/]' \| \ 17816 X"$am_mf" : 'X\(//\)$' \| \ 17817 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17818$as_echo X"$am_mf" | 17819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17820 s//\1/ 17821 q 17822 } 17823 /^X\(\/\/\)[^/].*/{ 17824 s//\1/ 17825 q 17826 } 17827 /^X\(\/\/\)$/{ 17828 s//\1/ 17829 q 17830 } 17831 /^X\(\/\).*/{ 17832 s//\1/ 17833 q 17834 } 17835 s/.*/./; q'` 17836 am_filepart=`$as_basename -- "$am_mf" || 17837$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17838 X"$am_mf" : 'X\(//\)$' \| \ 17839 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17840$as_echo X/"$am_mf" | 17841 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17842 s//\1/ 17843 q 17844 } 17845 /^X\/\(\/\/\)$/{ 17846 s//\1/ 17847 q 17848 } 17849 /^X\/\(\/\).*/{ 17850 s//\1/ 17851 q 17852 } 17853 s/.*/./; q'` 17854 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17855 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17856 | $MAKE -f - am--depfiles" >&5 17857 (cd "$am_dirpart" \ 17858 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17859 | $MAKE -f - am--depfiles) >&5 2>&5 17860 ac_status=$? 17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17862 (exit $ac_status); } || am_rc=$? 17863 done 17864 if test $am_rc -ne 0; then 17865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17867as_fn_error $? "Something went wrong bootstrapping makefile fragments 17868 for automatic dependency tracking. Try re-running configure with the 17869 '--disable-dependency-tracking' option to at least be able to build 17870 the package (albeit without support for automatic dependency tracking). 17871See \`config.log' for more details" "$LINENO" 5; } 17872 fi 17873 { am_dirpart=; unset am_dirpart;} 17874 { am_filepart=; unset am_filepart;} 17875 { am_mf=; unset am_mf;} 17876 { am_rc=; unset am_rc;} 17877 rm -f conftest-deps.mk 17878} 17879 ;; 17880 "libtool":C) 17881 17882 # See if we are running on zsh, and set the options that allow our 17883 # commands through without removal of \ escapes. 17884 if test -n "${ZSH_VERSION+set}"; then 17885 setopt NO_GLOB_SUBST 17886 fi 17887 17888 cfgfile=${ofile}T 17889 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17890 $RM "$cfgfile" 17891 17892 cat <<_LT_EOF >> "$cfgfile" 17893#! $SHELL 17894# Generated automatically by $as_me ($PACKAGE) $VERSION 17895# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17896 17897# Provide generalized library-building support services. 17898# Written by Gordon Matzigkeit, 1996 17899 17900# Copyright (C) 2014 Free Software Foundation, Inc. 17901# This is free software; see the source for copying conditions. There is NO 17902# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17903 17904# GNU Libtool is free software; you can redistribute it and/or modify 17905# it under the terms of the GNU General Public License as published by 17906# the Free Software Foundation; either version 2 of of the License, or 17907# (at your option) any later version. 17908# 17909# As a special exception to the GNU General Public License, if you 17910# distribute this file as part of a program or library that is built 17911# using GNU Libtool, you may include this file under the same 17912# distribution terms that you use for the rest of that program. 17913# 17914# GNU Libtool is distributed in the hope that it will be useful, but 17915# WITHOUT ANY WARRANTY; without even the implied warranty of 17916# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17917# GNU General Public License for more details. 17918# 17919# You should have received a copy of the GNU General Public License 17920# along with this program. If not, see <http://www.gnu.org/licenses/>. 17921 17922 17923# The names of the tagged configurations supported by this script. 17924available_tags='CXX ' 17925 17926# Configured defaults for sys_lib_dlsearch_path munging. 17927: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17928 17929# ### BEGIN LIBTOOL CONFIG 17930 17931# Which release of libtool.m4 was used? 17932macro_version=$macro_version 17933macro_revision=$macro_revision 17934 17935# Whether or not to build shared libraries. 17936build_libtool_libs=$enable_shared 17937 17938# Whether or not to build static libraries. 17939build_old_libs=$enable_static 17940 17941# What type of objects to build. 17942pic_mode=$pic_mode 17943 17944# Whether or not to optimize for fast installation. 17945fast_install=$enable_fast_install 17946 17947# Shared archive member basename,for filename based shared library versioning on AIX. 17948shared_archive_member_spec=$shared_archive_member_spec 17949 17950# Shell to use when invoking shell scripts. 17951SHELL=$lt_SHELL 17952 17953# An echo program that protects backslashes. 17954ECHO=$lt_ECHO 17955 17956# The PATH separator for the build system. 17957PATH_SEPARATOR=$lt_PATH_SEPARATOR 17958 17959# The host system. 17960host_alias=$host_alias 17961host=$host 17962host_os=$host_os 17963 17964# The build system. 17965build_alias=$build_alias 17966build=$build 17967build_os=$build_os 17968 17969# A sed program that does not truncate output. 17970SED=$lt_SED 17971 17972# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17973Xsed="\$SED -e 1s/^X//" 17974 17975# A grep program that handles long lines. 17976GREP=$lt_GREP 17977 17978# An ERE matcher. 17979EGREP=$lt_EGREP 17980 17981# A literal string matcher. 17982FGREP=$lt_FGREP 17983 17984# A BSD- or MS-compatible name lister. 17985NM=$lt_NM 17986 17987# Whether we need soft or hard links. 17988LN_S=$lt_LN_S 17989 17990# What is the maximum length of a command? 17991max_cmd_len=$max_cmd_len 17992 17993# Object file suffix (normally "o"). 17994objext=$ac_objext 17995 17996# Executable file suffix (normally ""). 17997exeext=$exeext 17998 17999# whether the shell understands "unset". 18000lt_unset=$lt_unset 18001 18002# turn spaces into newlines. 18003SP2NL=$lt_lt_SP2NL 18004 18005# turn newlines into spaces. 18006NL2SP=$lt_lt_NL2SP 18007 18008# convert \$build file names to \$host format. 18009to_host_file_cmd=$lt_cv_to_host_file_cmd 18010 18011# convert \$build files to toolchain format. 18012to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18013 18014# An object symbol dumper. 18015OBJDUMP=$lt_OBJDUMP 18016 18017# Method to check whether dependent libraries are shared objects. 18018deplibs_check_method=$lt_deplibs_check_method 18019 18020# Command to use when deplibs_check_method = "file_magic". 18021file_magic_cmd=$lt_file_magic_cmd 18022 18023# How to find potential files when deplibs_check_method = "file_magic". 18024file_magic_glob=$lt_file_magic_glob 18025 18026# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18027want_nocaseglob=$lt_want_nocaseglob 18028 18029# DLL creation program. 18030DLLTOOL=$lt_DLLTOOL 18031 18032# Command to associate shared and link libraries. 18033sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18034 18035# The archiver. 18036AR=$lt_AR 18037 18038# Flags to create an archive. 18039AR_FLAGS=$lt_AR_FLAGS 18040 18041# How to feed a file listing to the archiver. 18042archiver_list_spec=$lt_archiver_list_spec 18043 18044# A symbol stripping program. 18045STRIP=$lt_STRIP 18046 18047# Commands used to install an old-style archive. 18048RANLIB=$lt_RANLIB 18049old_postinstall_cmds=$lt_old_postinstall_cmds 18050old_postuninstall_cmds=$lt_old_postuninstall_cmds 18051 18052# Whether to use a lock for old archive extraction. 18053lock_old_archive_extraction=$lock_old_archive_extraction 18054 18055# A C compiler. 18056LTCC=$lt_CC 18057 18058# LTCC compiler flags. 18059LTCFLAGS=$lt_CFLAGS 18060 18061# Take the output of nm and produce a listing of raw symbols and C names. 18062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18063 18064# Transform the output of nm in a proper C declaration. 18065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18066 18067# Transform the output of nm into a list of symbols to manually relocate. 18068global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18069 18070# Transform the output of nm in a C name address pair. 18071global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18072 18073# Transform the output of nm in a C name address pair when lib prefix is needed. 18074global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18075 18076# The name lister interface. 18077nm_interface=$lt_lt_cv_nm_interface 18078 18079# Specify filename containing input files for \$NM. 18080nm_file_list_spec=$lt_nm_file_list_spec 18081 18082# The root where to search for dependent libraries,and where our libraries should be installed. 18083lt_sysroot=$lt_sysroot 18084 18085# Command to truncate a binary pipe. 18086lt_truncate_bin=$lt_lt_cv_truncate_bin 18087 18088# The name of the directory that contains temporary libtool files. 18089objdir=$objdir 18090 18091# Used to examine libraries when file_magic_cmd begins with "file". 18092MAGIC_CMD=$MAGIC_CMD 18093 18094# Must we lock files when doing compilation? 18095need_locks=$lt_need_locks 18096 18097# Manifest tool. 18098MANIFEST_TOOL=$lt_MANIFEST_TOOL 18099 18100# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18101DSYMUTIL=$lt_DSYMUTIL 18102 18103# Tool to change global to local symbols on Mac OS X. 18104NMEDIT=$lt_NMEDIT 18105 18106# Tool to manipulate fat objects and archives on Mac OS X. 18107LIPO=$lt_LIPO 18108 18109# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18110OTOOL=$lt_OTOOL 18111 18112# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18113OTOOL64=$lt_OTOOL64 18114 18115# Old archive suffix (normally "a"). 18116libext=$libext 18117 18118# Shared library suffix (normally ".so"). 18119shrext_cmds=$lt_shrext_cmds 18120 18121# The commands to extract the exported symbol list from a shared archive. 18122extract_expsyms_cmds=$lt_extract_expsyms_cmds 18123 18124# Variables whose values should be saved in libtool wrapper scripts and 18125# restored at link time. 18126variables_saved_for_relink=$lt_variables_saved_for_relink 18127 18128# Do we need the "lib" prefix for modules? 18129need_lib_prefix=$need_lib_prefix 18130 18131# Do we need a version for libraries? 18132need_version=$need_version 18133 18134# Library versioning type. 18135version_type=$version_type 18136 18137# Shared library runtime path variable. 18138runpath_var=$runpath_var 18139 18140# Shared library path variable. 18141shlibpath_var=$shlibpath_var 18142 18143# Is shlibpath searched before the hard-coded library search path? 18144shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18145 18146# Format of library name prefix. 18147libname_spec=$lt_libname_spec 18148 18149# List of archive names. First name is the real one, the rest are links. 18150# The last name is the one that the linker finds with -lNAME 18151library_names_spec=$lt_library_names_spec 18152 18153# The coded name of the library, if different from the real name. 18154soname_spec=$lt_soname_spec 18155 18156# Permission mode override for installation of shared libraries. 18157install_override_mode=$lt_install_override_mode 18158 18159# Command to use after installation of a shared archive. 18160postinstall_cmds=$lt_postinstall_cmds 18161 18162# Command to use after uninstallation of a shared archive. 18163postuninstall_cmds=$lt_postuninstall_cmds 18164 18165# Commands used to finish a libtool library installation in a directory. 18166finish_cmds=$lt_finish_cmds 18167 18168# As "finish_cmds", except a single script fragment to be evaled but 18169# not shown. 18170finish_eval=$lt_finish_eval 18171 18172# Whether we should hardcode library paths into libraries. 18173hardcode_into_libs=$hardcode_into_libs 18174 18175# Compile-time system search path for libraries. 18176sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18177 18178# Detected run-time system search path for libraries. 18179sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18180 18181# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18182configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18183 18184# Whether dlopen is supported. 18185dlopen_support=$enable_dlopen 18186 18187# Whether dlopen of programs is supported. 18188dlopen_self=$enable_dlopen_self 18189 18190# Whether dlopen of statically linked programs is supported. 18191dlopen_self_static=$enable_dlopen_self_static 18192 18193# Commands to strip libraries. 18194old_striplib=$lt_old_striplib 18195striplib=$lt_striplib 18196 18197 18198# The linker used to build libraries. 18199LD=$lt_LD 18200 18201# How to create reloadable object files. 18202reload_flag=$lt_reload_flag 18203reload_cmds=$lt_reload_cmds 18204 18205# Commands used to build an old-style archive. 18206old_archive_cmds=$lt_old_archive_cmds 18207 18208# A language specific compiler. 18209CC=$lt_compiler 18210 18211# Is the compiler the GNU compiler? 18212with_gcc=$GCC 18213 18214# Compiler flag to turn off builtin functions. 18215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18216 18217# Additional compiler flags for building library objects. 18218pic_flag=$lt_lt_prog_compiler_pic 18219 18220# How to pass a linker flag through the compiler. 18221wl=$lt_lt_prog_compiler_wl 18222 18223# Compiler flag to prevent dynamic linking. 18224link_static_flag=$lt_lt_prog_compiler_static 18225 18226# Does compiler simultaneously support -c and -o options? 18227compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18228 18229# Whether or not to add -lc for building shared libraries. 18230build_libtool_need_lc=$archive_cmds_need_lc 18231 18232# Whether or not to disallow shared libs when runtime libs are static. 18233allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18234 18235# Compiler flag to allow reflexive dlopens. 18236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18237 18238# Compiler flag to generate shared objects directly from archives. 18239whole_archive_flag_spec=$lt_whole_archive_flag_spec 18240 18241# Whether the compiler copes with passing no objects directly. 18242compiler_needs_object=$lt_compiler_needs_object 18243 18244# Create an old-style archive from a shared archive. 18245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18246 18247# Create a temporary old-style archive to link instead of a shared archive. 18248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18249 18250# Commands used to build a shared archive. 18251archive_cmds=$lt_archive_cmds 18252archive_expsym_cmds=$lt_archive_expsym_cmds 18253 18254# Commands used to build a loadable module if different from building 18255# a shared archive. 18256module_cmds=$lt_module_cmds 18257module_expsym_cmds=$lt_module_expsym_cmds 18258 18259# Whether we are building with GNU ld or not. 18260with_gnu_ld=$lt_with_gnu_ld 18261 18262# Flag that allows shared libraries with undefined symbols to be built. 18263allow_undefined_flag=$lt_allow_undefined_flag 18264 18265# Flag that enforces no undefined symbols. 18266no_undefined_flag=$lt_no_undefined_flag 18267 18268# Flag to hardcode \$libdir into a binary during linking. 18269# This must work even if \$libdir does not exist 18270hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18271 18272# Whether we need a single "-rpath" flag with a separated argument. 18273hardcode_libdir_separator=$lt_hardcode_libdir_separator 18274 18275# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18276# DIR into the resulting binary. 18277hardcode_direct=$hardcode_direct 18278 18279# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18280# DIR into the resulting binary and the resulting library dependency is 18281# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18282# library is relocated. 18283hardcode_direct_absolute=$hardcode_direct_absolute 18284 18285# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18286# into the resulting binary. 18287hardcode_minus_L=$hardcode_minus_L 18288 18289# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18290# into the resulting binary. 18291hardcode_shlibpath_var=$hardcode_shlibpath_var 18292 18293# Set to "yes" if building a shared library automatically hardcodes DIR 18294# into the library and all subsequent libraries and executables linked 18295# against it. 18296hardcode_automatic=$hardcode_automatic 18297 18298# Set to yes if linker adds runtime paths of dependent libraries 18299# to runtime path list. 18300inherit_rpath=$inherit_rpath 18301 18302# Whether libtool must link a program against all its dependency libraries. 18303link_all_deplibs=$link_all_deplibs 18304 18305# Set to "yes" if exported symbols are required. 18306always_export_symbols=$always_export_symbols 18307 18308# The commands to list exported symbols. 18309export_symbols_cmds=$lt_export_symbols_cmds 18310 18311# Symbols that should not be listed in the preloaded symbols. 18312exclude_expsyms=$lt_exclude_expsyms 18313 18314# Symbols that must always be exported. 18315include_expsyms=$lt_include_expsyms 18316 18317# Commands necessary for linking programs (against libraries) with templates. 18318prelink_cmds=$lt_prelink_cmds 18319 18320# Commands necessary for finishing linking programs. 18321postlink_cmds=$lt_postlink_cmds 18322 18323# Specify filename containing input files. 18324file_list_spec=$lt_file_list_spec 18325 18326# How to hardcode a shared library path into an executable. 18327hardcode_action=$hardcode_action 18328 18329# The directories searched by this compiler when creating a shared library. 18330compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18331 18332# Dependencies to place before and after the objects being linked to 18333# create a shared library. 18334predep_objects=$lt_predep_objects 18335postdep_objects=$lt_postdep_objects 18336predeps=$lt_predeps 18337postdeps=$lt_postdeps 18338 18339# The library search path used internally by the compiler when linking 18340# a shared library. 18341compiler_lib_search_path=$lt_compiler_lib_search_path 18342 18343# ### END LIBTOOL CONFIG 18344 18345_LT_EOF 18346 18347 cat <<'_LT_EOF' >> "$cfgfile" 18348 18349# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18350 18351# func_munge_path_list VARIABLE PATH 18352# ----------------------------------- 18353# VARIABLE is name of variable containing _space_ separated list of 18354# directories to be munged by the contents of PATH, which is string 18355# having a format: 18356# "DIR[:DIR]:" 18357# string "DIR[ DIR]" will be prepended to VARIABLE 18358# ":DIR[:DIR]" 18359# string "DIR[ DIR]" will be appended to VARIABLE 18360# "DIRP[:DIRP]::[DIRA:]DIRA" 18361# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18362# "DIRA[ DIRA]" will be appended to VARIABLE 18363# "DIR[:DIR]" 18364# VARIABLE will be replaced by "DIR[ DIR]" 18365func_munge_path_list () 18366{ 18367 case x$2 in 18368 x) 18369 ;; 18370 *:) 18371 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18372 ;; 18373 x:*) 18374 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18375 ;; 18376 *::*) 18377 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18378 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18379 ;; 18380 *) 18381 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18382 ;; 18383 esac 18384} 18385 18386 18387# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18388func_cc_basename () 18389{ 18390 for cc_temp in $*""; do 18391 case $cc_temp in 18392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18394 \-*) ;; 18395 *) break;; 18396 esac 18397 done 18398 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18399} 18400 18401 18402# ### END FUNCTIONS SHARED WITH CONFIGURE 18403 18404_LT_EOF 18405 18406 case $host_os in 18407 aix3*) 18408 cat <<\_LT_EOF >> "$cfgfile" 18409# AIX sometimes has problems with the GCC collect2 program. For some 18410# reason, if we set the COLLECT_NAMES environment variable, the problems 18411# vanish in a puff of smoke. 18412if test set != "${COLLECT_NAMES+set}"; then 18413 COLLECT_NAMES= 18414 export COLLECT_NAMES 18415fi 18416_LT_EOF 18417 ;; 18418 esac 18419 18420 18421ltmain=$ac_aux_dir/ltmain.sh 18422 18423 18424 # We use sed instead of cat because bash on DJGPP gets confused if 18425 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18426 # text mode, it properly converts lines to CR/LF. This bash problem 18427 # is reportedly fixed, but why not run on old versions too? 18428 sed '$q' "$ltmain" >> "$cfgfile" \ 18429 || (rm -f "$cfgfile"; exit 1) 18430 18431 mv -f "$cfgfile" "$ofile" || 18432 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18433 chmod +x "$ofile" 18434 18435 18436 cat <<_LT_EOF >> "$ofile" 18437 18438# ### BEGIN LIBTOOL TAG CONFIG: CXX 18439 18440# The linker used to build libraries. 18441LD=$lt_LD_CXX 18442 18443# How to create reloadable object files. 18444reload_flag=$lt_reload_flag_CXX 18445reload_cmds=$lt_reload_cmds_CXX 18446 18447# Commands used to build an old-style archive. 18448old_archive_cmds=$lt_old_archive_cmds_CXX 18449 18450# A language specific compiler. 18451CC=$lt_compiler_CXX 18452 18453# Is the compiler the GNU compiler? 18454with_gcc=$GCC_CXX 18455 18456# Compiler flag to turn off builtin functions. 18457no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18458 18459# Additional compiler flags for building library objects. 18460pic_flag=$lt_lt_prog_compiler_pic_CXX 18461 18462# How to pass a linker flag through the compiler. 18463wl=$lt_lt_prog_compiler_wl_CXX 18464 18465# Compiler flag to prevent dynamic linking. 18466link_static_flag=$lt_lt_prog_compiler_static_CXX 18467 18468# Does compiler simultaneously support -c and -o options? 18469compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18470 18471# Whether or not to add -lc for building shared libraries. 18472build_libtool_need_lc=$archive_cmds_need_lc_CXX 18473 18474# Whether or not to disallow shared libs when runtime libs are static. 18475allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18476 18477# Compiler flag to allow reflexive dlopens. 18478export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18479 18480# Compiler flag to generate shared objects directly from archives. 18481whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18482 18483# Whether the compiler copes with passing no objects directly. 18484compiler_needs_object=$lt_compiler_needs_object_CXX 18485 18486# Create an old-style archive from a shared archive. 18487old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18488 18489# Create a temporary old-style archive to link instead of a shared archive. 18490old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18491 18492# Commands used to build a shared archive. 18493archive_cmds=$lt_archive_cmds_CXX 18494archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18495 18496# Commands used to build a loadable module if different from building 18497# a shared archive. 18498module_cmds=$lt_module_cmds_CXX 18499module_expsym_cmds=$lt_module_expsym_cmds_CXX 18500 18501# Whether we are building with GNU ld or not. 18502with_gnu_ld=$lt_with_gnu_ld_CXX 18503 18504# Flag that allows shared libraries with undefined symbols to be built. 18505allow_undefined_flag=$lt_allow_undefined_flag_CXX 18506 18507# Flag that enforces no undefined symbols. 18508no_undefined_flag=$lt_no_undefined_flag_CXX 18509 18510# Flag to hardcode \$libdir into a binary during linking. 18511# This must work even if \$libdir does not exist 18512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18513 18514# Whether we need a single "-rpath" flag with a separated argument. 18515hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18516 18517# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18518# DIR into the resulting binary. 18519hardcode_direct=$hardcode_direct_CXX 18520 18521# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18522# DIR into the resulting binary and the resulting library dependency is 18523# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18524# library is relocated. 18525hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18526 18527# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18528# into the resulting binary. 18529hardcode_minus_L=$hardcode_minus_L_CXX 18530 18531# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18532# into the resulting binary. 18533hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18534 18535# Set to "yes" if building a shared library automatically hardcodes DIR 18536# into the library and all subsequent libraries and executables linked 18537# against it. 18538hardcode_automatic=$hardcode_automatic_CXX 18539 18540# Set to yes if linker adds runtime paths of dependent libraries 18541# to runtime path list. 18542inherit_rpath=$inherit_rpath_CXX 18543 18544# Whether libtool must link a program against all its dependency libraries. 18545link_all_deplibs=$link_all_deplibs_CXX 18546 18547# Set to "yes" if exported symbols are required. 18548always_export_symbols=$always_export_symbols_CXX 18549 18550# The commands to list exported symbols. 18551export_symbols_cmds=$lt_export_symbols_cmds_CXX 18552 18553# Symbols that should not be listed in the preloaded symbols. 18554exclude_expsyms=$lt_exclude_expsyms_CXX 18555 18556# Symbols that must always be exported. 18557include_expsyms=$lt_include_expsyms_CXX 18558 18559# Commands necessary for linking programs (against libraries) with templates. 18560prelink_cmds=$lt_prelink_cmds_CXX 18561 18562# Commands necessary for finishing linking programs. 18563postlink_cmds=$lt_postlink_cmds_CXX 18564 18565# Specify filename containing input files. 18566file_list_spec=$lt_file_list_spec_CXX 18567 18568# How to hardcode a shared library path into an executable. 18569hardcode_action=$hardcode_action_CXX 18570 18571# The directories searched by this compiler when creating a shared library. 18572compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18573 18574# Dependencies to place before and after the objects being linked to 18575# create a shared library. 18576predep_objects=$lt_predep_objects_CXX 18577postdep_objects=$lt_postdep_objects_CXX 18578predeps=$lt_predeps_CXX 18579postdeps=$lt_postdeps_CXX 18580 18581# The library search path used internally by the compiler when linking 18582# a shared library. 18583compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18584 18585# ### END LIBTOOL TAG CONFIG: CXX 18586_LT_EOF 18587 18588 ;; 18589 18590 esac 18591done # for ac_tag 18592 18593 18594as_fn_exit 0 18595_ACEOF 18596ac_clean_files=$ac_clean_files_save 18597 18598test $ac_write_fail = 0 || 18599 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18600 18601 18602# configure is writing to config.log, and then calls config.status. 18603# config.status does its own redirection, appending to config.log. 18604# Unfortunately, on DOS this fails, as config.log is still kept open 18605# by configure, so config.status won't be able to write to it; its 18606# output is simply discarded. So we exec the FD to /dev/null, 18607# effectively closing config.log, so it can be properly (re)opened and 18608# appended to by config.status. When coming back to configure, we 18609# need to make the FD available again. 18610if test "$no_create" != yes; then 18611 ac_cs_success=: 18612 ac_config_status_args= 18613 test "$silent" = yes && 18614 ac_config_status_args="$ac_config_status_args --quiet" 18615 exec 5>/dev/null 18616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18617 exec 5>>config.log 18618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18619 # would make configure fail if this is the last instruction. 18620 $ac_cs_success || as_fn_exit 1 18621fi 18622if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18624$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18625fi 18626 18627