1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for OpenPAM 20250531. 4# 5# Report bugs to <des@des.dev>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and des@des.dev about 282$0: your system, including any error possibly output before 283$0: this message. Then install a modern shell, or manually 284$0: run the script under such a shell if you do have one." 285 fi 286 exit 1 287fi ;; 288esac 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 310# as_fn_set_status STATUS 311# ----------------------- 312# Set $? to STATUS, without forking. 313as_fn_set_status () 314{ 315 return $1 316} # as_fn_set_status 317 318# as_fn_exit STATUS 319# ----------------- 320# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 321as_fn_exit () 322{ 323 set +e 324 as_fn_set_status $1 325 exit $1 326} # as_fn_exit 327 328# as_fn_mkdir_p 329# ------------- 330# Create "$as_dir" as a directory, including parents if necessary. 331as_fn_mkdir_p () 332{ 333 334 case $as_dir in #( 335 -*) as_dir=./$as_dir;; 336 esac 337 test -d "$as_dir" || eval $as_mkdir_p || { 338 as_dirs= 339 while :; do 340 case $as_dir in #( 341 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 342 *) as_qdir=$as_dir;; 343 esac 344 as_dirs="'$as_qdir' $as_dirs" 345 as_dir=`$as_dirname -- "$as_dir" || 346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 347 X"$as_dir" : 'X\(//\)[^/]' \| \ 348 X"$as_dir" : 'X\(//\)$' \| \ 349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 350printf "%s\n" X"$as_dir" | 351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)[^/].*/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\/\)$/{ 360 s//\1/ 361 q 362 } 363 /^X\(\/\).*/{ 364 s//\1/ 365 q 366 } 367 s/.*/./; q'` 368 test -d "$as_dir" && break 369 done 370 test -z "$as_dirs" || eval "mkdir $as_dirs" 371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 372 373 374} # as_fn_mkdir_p 375 376# as_fn_executable_p FILE 377# ----------------------- 378# Test if FILE is an executable regular file. 379as_fn_executable_p () 380{ 381 test -f "$1" && test -x "$1" 382} # as_fn_executable_p 383# as_fn_append VAR VALUE 384# ---------------------- 385# Append the text in VALUE to the end of the definition contained in VAR. Take 386# advantage of any shell optimizations that allow amortized linear growth over 387# repeated appends, instead of the typical quadratic growth present in naive 388# implementations. 389if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 390then : 391 eval 'as_fn_append () 392 { 393 eval $1+=\$2 394 }' 395else case e in #( 396 e) as_fn_append () 397 { 398 eval $1=\$$1\$2 399 } ;; 400esac 401fi # as_fn_append 402 403# as_fn_arith ARG... 404# ------------------ 405# Perform arithmetic evaluation on the ARGs, and store the result in the 406# global $as_val. Take advantage of shells that can avoid forks. The arguments 407# must be portable across $(()) and expr. 408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 409then : 410 eval 'as_fn_arith () 411 { 412 as_val=$(( $* )) 413 }' 414else case e in #( 415 e) as_fn_arith () 416 { 417 as_val=`expr "$@" || test $? -eq 1` 418 } ;; 419esac 420fi # as_fn_arith 421 422 423# as_fn_error STATUS ERROR [LINENO LOG_FD] 424# ---------------------------------------- 425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427# script with STATUS, using 1 if that was 0. 428as_fn_error () 429{ 430 as_status=$1; test $as_status -eq 0 && as_status=1 431 if test "$4"; then 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434 fi 435 printf "%s\n" "$as_me: error: $2" >&2 436 as_fn_exit $as_status 437} # as_fn_error 438 439if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442else 443 as_expr=false 444fi 445 446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448else 449 as_basename=false 450fi 451 452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454else 455 as_dirname=false 456fi 457 458as_me=`$as_basename -- "$0" || 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462printf "%s\n" X/"$0" | 463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 464 s//\1/ 465 q 466 } 467 /^X\/\(\/\/\)$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\).*/{ 472 s//\1/ 473 q 474 } 475 s/.*/./; q'` 476 477# Avoid depending upon Character Ranges. 478as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481as_cr_digits='0123456789' 482as_cr_alnum=$as_cr_Letters$as_cr_digits 483 484 485 as_lineno_1=$LINENO as_lineno_1a=$LINENO 486 as_lineno_2=$LINENO as_lineno_2a=$LINENO 487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490 sed -n ' 491 p 492 /[$]LINENO/= 493 ' <$as_myself | 494 sed ' 495 t clear 496 :clear 497 s/[$]LINENO.*/&-/ 498 t lineno 499 b 500 :lineno 501 N 502 :loop 503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 t loop 505 s/-\n.*// 506 ' >$as_me.lineno && 507 chmod +x "$as_me.lineno" || 508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # already done that, so ensure we don't try to do so again and fall 512 # in an infinite loop. This has already happened in practice. 513 _as_can_reexec=no; export _as_can_reexec 514 # Don't try to exec as it changes $[0], causing all sort of problems 515 # (the dirname of $[0] is not the place where we might find the 516 # original and so on. Autoconf is especially sensitive to this). 517 . "./$as_me.lineno" 518 # Exit status is that of the last command. 519 exit 520} 521 522 523# Determine whether it's possible to make 'echo' print without a newline. 524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 525# for compatibility with existing Makefiles. 526ECHO_C= ECHO_N= ECHO_T= 527case `echo -n x` in #((((( 528-n*) 529 case `echo 'xy\c'` in 530 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 531 xy) ECHO_C='\c';; 532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 533 ECHO_T=' ';; 534 esac;; 535*) 536 ECHO_N='-n';; 537esac 538 539# For backward compatibility with old third-party macros, we provide 540# the shell variables $as_echo and $as_echo_n. New code should use 541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 542as_echo='printf %s\n' 543as_echo_n='printf %s' 544 545rm -f conf$$ conf$$.exe conf$$.file 546if test -d conf$$.dir; then 547 rm -f conf$$.dir/conf$$.file 548else 549 rm -f conf$$.dir 550 mkdir conf$$.dir 2>/dev/null 551fi 552if (echo >conf$$.file) 2>/dev/null; then 553 if ln -s conf$$.file conf$$ 2>/dev/null; then 554 as_ln_s='ln -s' 555 # ... but there are two gotchas: 556 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 557 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 558 # In both cases, we have to default to 'cp -pR'. 559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 560 as_ln_s='cp -pR' 561 elif ln conf$$.file conf$$ 2>/dev/null; then 562 as_ln_s=ln 563 else 564 as_ln_s='cp -pR' 565 fi 566else 567 as_ln_s='cp -pR' 568fi 569rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 570rmdir conf$$.dir 2>/dev/null 571 572if mkdir -p . 2>/dev/null; then 573 as_mkdir_p='mkdir -p "$as_dir"' 574else 575 test -d ./-p && rmdir ./-p 576 as_mkdir_p=false 577fi 578 579as_test_x='test -x' 580as_executable_p=as_fn_executable_p 581 582# Sed expression to map a string onto a valid CPP name. 583as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 584as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 585 586# Sed expression to map a string onto a valid variable name. 587as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 588as_tr_sh="eval sed '$as_sed_sh'" # deprecated 589 590SHELL=${CONFIG_SHELL-/bin/sh} 591 592 593test -n "$DJDIR" || exec 7<&0 </dev/null 594exec 6>&1 595 596# Name of the host. 597# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 598# so uname gets run too. 599ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 600 601# 602# Initializations. 603# 604ac_default_prefix=/usr/local 605ac_clean_files= 606ac_config_libobj_dir=. 607LIBOBJS= 608cross_compiling=no 609subdirs= 610MFLAGS= 611MAKEFLAGS= 612 613# Identity of this package. 614PACKAGE_NAME='OpenPAM' 615PACKAGE_TARNAME='openpam' 616PACKAGE_VERSION='20250531' 617PACKAGE_STRING='OpenPAM 20250531' 618PACKAGE_BUGREPORT='des@des.dev' 619PACKAGE_URL='https://openpam.org/' 620 621ac_unique_file="lib/libpam/pam_start.c" 622# Factoring default headers for most tests. 623ac_includes_default="\ 624#include <stddef.h> 625#ifdef HAVE_STDIO_H 626# include <stdio.h> 627#endif 628#ifdef HAVE_STDLIB_H 629# include <stdlib.h> 630#endif 631#ifdef HAVE_STRING_H 632# include <string.h> 633#endif 634#ifdef HAVE_INTTYPES_H 635# include <inttypes.h> 636#endif 637#ifdef HAVE_STDINT_H 638# include <stdint.h> 639#endif 640#ifdef HAVE_STRINGS_H 641# include <strings.h> 642#endif 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef HAVE_UNISTD_H 650# include <unistd.h> 651#endif" 652 653ac_header_c_list= 654ac_subst_vars='am__EXEEXT_FALSE 655am__EXEEXT_TRUE 656LTLIBOBJS 657LIBOBJS 658CLANG_CODE_COVERAGE_FALSE 659CLANG_CODE_COVERAGE_TRUE 660WITH_CODE_COVERAGE_FALSE 661WITH_CODE_COVERAGE_TRUE 662clang_ver 663WITH_TEST_FALSE 664WITH_TEST_TRUE 665HAVE_CRYB_TEST_FALSE 666HAVE_CRYB_TEST_TRUE 667CRYB_TEST_VERSION 668CRYB_TEST_LIBS 669CRYB_TEST_CFLAGS 670SYSTEM_LIBPAM 671DL_LIBS 672WITH_SYSTEM_LIBPAM_FALSE 673WITH_SYSTEM_LIBPAM_TRUE 674WITH_SU_FALSE 675WITH_SU_TRUE 676WITH_PAMTEST_FALSE 677WITH_PAMTEST_TRUE 678WITH_PAM_UNIX_FALSE 679WITH_PAM_UNIX_TRUE 680WITH_DOC_FALSE 681WITH_DOC_TRUE 682CUSTOM_MODULES_DIR_FALSE 683CUSTOM_MODULES_DIR_TRUE 684OPENPAM_MODULES_DIR 685LIB_MAJ 686pkgconfigdir 687PKG_CONFIG_LIBDIR 688PKG_CONFIG_PATH 689PKG_CONFIG 690CXXCPP 691LT_SYS_LIBRARY_PATH 692OTOOL64 693OTOOL 694LIPO 695NMEDIT 696DSYMUTIL 697MANIFEST_TOOL 698RANLIB 699ac_ct_AR 700AR 701DLLTOOL 702OBJDUMP 703FILECMD 704LN_S 705NM 706ac_ct_DUMPBIN 707DUMPBIN 708LD 709FGREP 710EGREP 711GREP 712SED 713host_os 714host_vendor 715host_cpu 716host 717build_os 718build_vendor 719build_cpu 720build 721LIBTOOL 722am__fastdepCXX_FALSE 723am__fastdepCXX_TRUE 724CXXDEPMODE 725ac_ct_CXX 726CXXFLAGS 727CXX 728CPP 729am__fastdepCC_FALSE 730am__fastdepCC_TRUE 731CCDEPMODE 732am__nodep 733AMDEPBACKSLASH 734AMDEP_FALSE 735AMDEP_TRUE 736am__include 737DEPDIR 738OBJEXT 739EXEEXT 740ac_ct_CC 741CPPFLAGS 742LDFLAGS 743CFLAGS 744CC 745am__xargs_n 746am__rm_f_notfound 747AM_BACKSLASH 748AM_DEFAULT_VERBOSITY 749AM_DEFAULT_V 750AM_V 751CSCOPE 752ETAGS 753CTAGS 754am__untar 755am__tar 756AMTAR 757am__leading_dot 758SET_MAKE 759AWK 760mkdir_p 761MKDIR_P 762INSTALL_STRIP_PROGRAM 763STRIP 764install_sh 765MAKEINFO 766AUTOHEADER 767AUTOMAKE 768AUTOCONF 769ACLOCAL 770VERSION 771PACKAGE 772CYGPATH_W 773am__isrc 774INSTALL_DATA 775INSTALL_SCRIPT 776INSTALL_PROGRAM 777target_alias 778host_alias 779build_alias 780LIBS 781ECHO_T 782ECHO_N 783ECHO_C 784DEFS 785mandir 786localedir 787libdir 788psdir 789pdfdir 790dvidir 791htmldir 792infodir 793docdir 794oldincludedir 795includedir 796runstatedir 797localstatedir 798sharedstatedir 799sysconfdir 800datadir 801datarootdir 802libexecdir 803sbindir 804bindir 805program_transform_name 806prefix 807exec_prefix 808PACKAGE_URL 809PACKAGE_BUGREPORT 810PACKAGE_STRING 811PACKAGE_VERSION 812PACKAGE_TARNAME 813PACKAGE_NAME 814PATH_SEPARATOR 815SHELL 816am__quote' 817ac_subst_files='' 818ac_user_opts=' 819enable_option_checking 820enable_silent_rules 821enable_dependency_tracking 822enable_static 823enable_shared 824enable_pic 825with_pic 826enable_fast_install 827enable_aix_soname 828with_aix_soname 829with_gnu_ld 830with_sysroot 831enable_libtool_lock 832with_pkgconfigdir 833enable_debug 834enable_unversioned_modules 835with_modules_dir 836with_localbase 837with_doc 838with_pam_unix 839with_pamtest 840with_su 841with_system_libpam 842enable_developer_warnings 843enable_debugging_symbols 844enable_werror 845enable_code_coverage 846' 847 ac_precious_vars='build_alias 848host_alias 849target_alias 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856CXX 857CXXFLAGS 858CCC 859LT_SYS_LIBRARY_PATH 860CXXCPP 861PKG_CONFIG 862PKG_CONFIG_PATH 863PKG_CONFIG_LIBDIR 864CRYB_TEST_CFLAGS 865CRYB_TEST_LIBS' 866 867 868# Initialize some variables set by options. 869ac_init_help= 870ac_init_version=false 871ac_unrecognized_opts= 872ac_unrecognized_sep= 873# The variables have the same names as the options, with 874# dashes changed to underlines. 875cache_file=/dev/null 876exec_prefix=NONE 877no_create= 878no_recursion= 879prefix=NONE 880program_prefix=NONE 881program_suffix=NONE 882program_transform_name=s,x,x, 883silent= 884site= 885srcdir= 886verbose= 887x_includes=NONE 888x_libraries=NONE 889 890# Installation directory options. 891# These are left unexpanded so users can "make install exec_prefix=/foo" 892# and all the variables that are supposed to be based on exec_prefix 893# by default will actually change. 894# Use braces instead of parens because sh, perl, etc. also accept them. 895# (The list follows the same order as the GNU Coding Standards.) 896bindir='${exec_prefix}/bin' 897sbindir='${exec_prefix}/sbin' 898libexecdir='${exec_prefix}/libexec' 899datarootdir='${prefix}/share' 900datadir='${datarootdir}' 901sysconfdir='${prefix}/etc' 902sharedstatedir='${prefix}/com' 903localstatedir='${prefix}/var' 904runstatedir='${localstatedir}/run' 905includedir='${prefix}/include' 906oldincludedir='/usr/include' 907docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 908infodir='${datarootdir}/info' 909htmldir='${docdir}' 910dvidir='${docdir}' 911pdfdir='${docdir}' 912psdir='${docdir}' 913libdir='${exec_prefix}/lib' 914localedir='${datarootdir}/locale' 915mandir='${datarootdir}/man' 916 917ac_prev= 918ac_dashdash= 919for ac_option 920do 921 # If the previous option needs an argument, assign it. 922 if test -n "$ac_prev"; then 923 eval $ac_prev=\$ac_option 924 ac_prev= 925 continue 926 fi 927 928 case $ac_option in 929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 930 *=) ac_optarg= ;; 931 *) ac_optarg=yes ;; 932 esac 933 934 case $ac_dashdash$ac_option in 935 --) 936 ac_dashdash=yes ;; 937 938 -bindir | --bindir | --bindi | --bind | --bin | --bi) 939 ac_prev=bindir ;; 940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 941 bindir=$ac_optarg ;; 942 943 -build | --build | --buil | --bui | --bu) 944 ac_prev=build_alias ;; 945 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 946 build_alias=$ac_optarg ;; 947 948 -cache-file | --cache-file | --cache-fil | --cache-fi \ 949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 950 ac_prev=cache_file ;; 951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 953 cache_file=$ac_optarg ;; 954 955 --config-cache | -C) 956 cache_file=config.cache ;; 957 958 -datadir | --datadir | --datadi | --datad) 959 ac_prev=datadir ;; 960 -datadir=* | --datadir=* | --datadi=* | --datad=*) 961 datadir=$ac_optarg ;; 962 963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 964 | --dataroo | --dataro | --datar) 965 ac_prev=datarootdir ;; 966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 968 datarootdir=$ac_optarg ;; 969 970 -disable-* | --disable-*) 971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 972 # Reject names that are not valid shell variable names. 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 974 as_fn_error $? "invalid feature name: '$ac_useropt'" 975 ac_useropt_orig=$ac_useropt 976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 977 case $ac_user_opts in 978 *" 979"enable_$ac_useropt" 980"*) ;; 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 982 ac_unrecognized_sep=', ';; 983 esac 984 eval enable_$ac_useropt=no ;; 985 986 -docdir | --docdir | --docdi | --doc | --do) 987 ac_prev=docdir ;; 988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 989 docdir=$ac_optarg ;; 990 991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 992 ac_prev=dvidir ;; 993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 994 dvidir=$ac_optarg ;; 995 996 -enable-* | --enable-*) 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 998 # Reject names that are not valid shell variable names. 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1000 as_fn_error $? "invalid feature name: '$ac_useropt'" 1001 ac_useropt_orig=$ac_useropt 1002 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1003 case $ac_user_opts in 1004 *" 1005"enable_$ac_useropt" 1006"*) ;; 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1008 ac_unrecognized_sep=', ';; 1009 esac 1010 eval enable_$ac_useropt=\$ac_optarg ;; 1011 1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1014 | --exec | --exe | --ex) 1015 ac_prev=exec_prefix ;; 1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1018 | --exec=* | --exe=* | --ex=*) 1019 exec_prefix=$ac_optarg ;; 1020 1021 -gas | --gas | --ga | --g) 1022 # Obsolete; use --with-gas. 1023 with_gas=yes ;; 1024 1025 -help | --help | --hel | --he | -h) 1026 ac_init_help=long ;; 1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1028 ac_init_help=recursive ;; 1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1030 ac_init_help=short ;; 1031 1032 -host | --host | --hos | --ho) 1033 ac_prev=host_alias ;; 1034 -host=* | --host=* | --hos=* | --ho=*) 1035 host_alias=$ac_optarg ;; 1036 1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1038 ac_prev=htmldir ;; 1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1040 | --ht=*) 1041 htmldir=$ac_optarg ;; 1042 1043 -includedir | --includedir | --includedi | --included | --include \ 1044 | --includ | --inclu | --incl | --inc) 1045 ac_prev=includedir ;; 1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1047 | --includ=* | --inclu=* | --incl=* | --inc=*) 1048 includedir=$ac_optarg ;; 1049 1050 -infodir | --infodir | --infodi | --infod | --info | --inf) 1051 ac_prev=infodir ;; 1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1053 infodir=$ac_optarg ;; 1054 1055 -libdir | --libdir | --libdi | --libd) 1056 ac_prev=libdir ;; 1057 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1058 libdir=$ac_optarg ;; 1059 1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1061 | --libexe | --libex | --libe) 1062 ac_prev=libexecdir ;; 1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1064 | --libexe=* | --libex=* | --libe=*) 1065 libexecdir=$ac_optarg ;; 1066 1067 -localedir | --localedir | --localedi | --localed | --locale) 1068 ac_prev=localedir ;; 1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1070 localedir=$ac_optarg ;; 1071 1072 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1073 | --localstate | --localstat | --localsta | --localst | --locals) 1074 ac_prev=localstatedir ;; 1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1077 localstatedir=$ac_optarg ;; 1078 1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1080 ac_prev=mandir ;; 1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1082 mandir=$ac_optarg ;; 1083 1084 -nfp | --nfp | --nf) 1085 # Obsolete; use --without-fp. 1086 with_fp=no ;; 1087 1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1089 | --no-cr | --no-c | -n) 1090 no_create=yes ;; 1091 1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1094 no_recursion=yes ;; 1095 1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1098 | --oldin | --oldi | --old | --ol | --o) 1099 ac_prev=oldincludedir ;; 1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1103 oldincludedir=$ac_optarg ;; 1104 1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1106 ac_prev=prefix ;; 1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1108 prefix=$ac_optarg ;; 1109 1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1111 | --program-pre | --program-pr | --program-p) 1112 ac_prev=program_prefix ;; 1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1115 program_prefix=$ac_optarg ;; 1116 1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1118 | --program-suf | --program-su | --program-s) 1119 ac_prev=program_suffix ;; 1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1122 program_suffix=$ac_optarg ;; 1123 1124 -program-transform-name | --program-transform-name \ 1125 | --program-transform-nam | --program-transform-na \ 1126 | --program-transform-n | --program-transform- \ 1127 | --program-transform | --program-transfor \ 1128 | --program-transfo | --program-transf \ 1129 | --program-trans | --program-tran \ 1130 | --progr-tra | --program-tr | --program-t) 1131 ac_prev=program_transform_name ;; 1132 -program-transform-name=* | --program-transform-name=* \ 1133 | --program-transform-nam=* | --program-transform-na=* \ 1134 | --program-transform-n=* | --program-transform-=* \ 1135 | --program-transform=* | --program-transfor=* \ 1136 | --program-transfo=* | --program-transf=* \ 1137 | --program-trans=* | --program-tran=* \ 1138 | --progr-tra=* | --program-tr=* | --program-t=*) 1139 program_transform_name=$ac_optarg ;; 1140 1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1142 ac_prev=pdfdir ;; 1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1144 pdfdir=$ac_optarg ;; 1145 1146 -psdir | --psdir | --psdi | --psd | --ps) 1147 ac_prev=psdir ;; 1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1149 psdir=$ac_optarg ;; 1150 1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1152 | -silent | --silent | --silen | --sile | --sil) 1153 silent=yes ;; 1154 1155 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1156 | --runstate | --runstat | --runsta | --runst | --runs \ 1157 | --run | --ru | --r) 1158 ac_prev=runstatedir ;; 1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1161 | --run=* | --ru=* | --r=*) 1162 runstatedir=$ac_optarg ;; 1163 1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1165 ac_prev=sbindir ;; 1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1167 | --sbi=* | --sb=*) 1168 sbindir=$ac_optarg ;; 1169 1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1172 | --sharedst | --shareds | --shared | --share | --shar \ 1173 | --sha | --sh) 1174 ac_prev=sharedstatedir ;; 1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1178 | --sha=* | --sh=*) 1179 sharedstatedir=$ac_optarg ;; 1180 1181 -site | --site | --sit) 1182 ac_prev=site ;; 1183 -site=* | --site=* | --sit=*) 1184 site=$ac_optarg ;; 1185 1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1187 ac_prev=srcdir ;; 1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1189 srcdir=$ac_optarg ;; 1190 1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1192 | --syscon | --sysco | --sysc | --sys | --sy) 1193 ac_prev=sysconfdir ;; 1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1196 sysconfdir=$ac_optarg ;; 1197 1198 -target | --target | --targe | --targ | --tar | --ta | --t) 1199 ac_prev=target_alias ;; 1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1201 target_alias=$ac_optarg ;; 1202 1203 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1204 verbose=yes ;; 1205 1206 -version | --version | --versio | --versi | --vers | -V) 1207 ac_init_version=: ;; 1208 1209 -with-* | --with-*) 1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1211 # Reject names that are not valid shell variable names. 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1213 as_fn_error $? "invalid package name: '$ac_useropt'" 1214 ac_useropt_orig=$ac_useropt 1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 case $ac_user_opts in 1217 *" 1218"with_$ac_useropt" 1219"*) ;; 1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1221 ac_unrecognized_sep=', ';; 1222 esac 1223 eval with_$ac_useropt=\$ac_optarg ;; 1224 1225 -without-* | --without-*) 1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1229 as_fn_error $? "invalid package name: '$ac_useropt'" 1230 ac_useropt_orig=$ac_useropt 1231 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1232 case $ac_user_opts in 1233 *" 1234"with_$ac_useropt" 1235"*) ;; 1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1237 ac_unrecognized_sep=', ';; 1238 esac 1239 eval with_$ac_useropt=no ;; 1240 1241 --x) 1242 # Obsolete; use --with-x. 1243 with_x=yes ;; 1244 1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1246 | --x-incl | --x-inc | --x-in | --x-i) 1247 ac_prev=x_includes ;; 1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1250 x_includes=$ac_optarg ;; 1251 1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1254 ac_prev=x_libraries ;; 1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1257 x_libraries=$ac_optarg ;; 1258 1259 -*) as_fn_error $? "unrecognized option: '$ac_option' 1260Try '$0 --help' for more information" 1261 ;; 1262 1263 *=*) 1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1265 # Reject names that are not valid shell variable names. 1266 case $ac_envvar in #( 1267 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1268 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1269 esac 1270 eval $ac_envvar=\$ac_optarg 1271 export $ac_envvar ;; 1272 1273 *) 1274 # FIXME: should be removed in autoconf 3.0. 1275 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1277 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1279 ;; 1280 1281 esac 1282done 1283 1284if test -n "$ac_prev"; then 1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1286 as_fn_error $? "missing argument to $ac_option" 1287fi 1288 1289if test -n "$ac_unrecognized_opts"; then 1290 case $enable_option_checking in 1291 no) ;; 1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1293 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1294 esac 1295fi 1296 1297# Check all directory arguments for consistency. 1298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1299 datadir sysconfdir sharedstatedir localstatedir includedir \ 1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1301 libdir localedir mandir runstatedir 1302do 1303 eval ac_val=\$$ac_var 1304 # Remove trailing slashes. 1305 case $ac_val in 1306 */ ) 1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1308 eval $ac_var=\$ac_val;; 1309 esac 1310 # Be sure to have absolute directory names. 1311 case $ac_val in 1312 [\\/$]* | ?:[\\/]* ) continue;; 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1314 esac 1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1316done 1317 1318# There might be people who depend on the old broken behavior: '$host' 1319# used to hold the argument of --host etc. 1320# FIXME: To remove some day. 1321build=$build_alias 1322host=$host_alias 1323target=$target_alias 1324 1325# FIXME: To remove some day. 1326if test "x$host_alias" != x; then 1327 if test "x$build_alias" = x; then 1328 cross_compiling=maybe 1329 elif test "x$build_alias" != "x$host_alias"; then 1330 cross_compiling=yes 1331 fi 1332fi 1333 1334ac_tool_prefix= 1335test -n "$host_alias" && ac_tool_prefix=$host_alias- 1336 1337test "$silent" = yes && exec 6>/dev/null 1338 1339 1340ac_pwd=`pwd` && test -n "$ac_pwd" && 1341ac_ls_di=`ls -di .` && 1342ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1343 as_fn_error $? "working directory cannot be determined" 1344test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1345 as_fn_error $? "pwd does not report name of working directory" 1346 1347 1348# Find the source files, if location was not specified. 1349if test -z "$srcdir"; then 1350 ac_srcdir_defaulted=yes 1351 # Try the directory containing this script, then the parent directory. 1352 ac_confdir=`$as_dirname -- "$as_myself" || 1353$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1354 X"$as_myself" : 'X\(//\)[^/]' \| \ 1355 X"$as_myself" : 'X\(//\)$' \| \ 1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1357printf "%s\n" X"$as_myself" | 1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)[^/].*/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\/\)$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\).*/{ 1371 s//\1/ 1372 q 1373 } 1374 s/.*/./; q'` 1375 srcdir=$ac_confdir 1376 if test ! -r "$srcdir/$ac_unique_file"; then 1377 srcdir=.. 1378 fi 1379else 1380 ac_srcdir_defaulted=no 1381fi 1382if test ! -r "$srcdir/$ac_unique_file"; then 1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1385fi 1386ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1387ac_abs_confdir=`( 1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1389 pwd)` 1390# When building in place, set srcdir=. 1391if test "$ac_abs_confdir" = "$ac_pwd"; then 1392 srcdir=. 1393fi 1394# Remove unnecessary trailing slashes from srcdir. 1395# Double slashes in file names in object file debugging info 1396# mess up M-x gdb in Emacs. 1397case $srcdir in 1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1399esac 1400for ac_var in $ac_precious_vars; do 1401 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_env_${ac_var}_value=\$${ac_var} 1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1405done 1406 1407# 1408# Report the --help message. 1409# 1410if test "$ac_init_help" = "long"; then 1411 # Omit some internal or obsolete options to make the list less imposing. 1412 # This message is too long to be a string in the A/UX 3.1 sh. 1413 cat <<_ACEOF 1414'configure' configures OpenPAM 20250531 to adapt to many kinds of systems. 1415 1416Usage: $0 [OPTION]... [VAR=VALUE]... 1417 1418To assign environment variables (e.g., CC, CFLAGS...), specify them as 1419VAR=VALUE. See below for descriptions of some of the useful variables. 1420 1421Defaults for the options are specified in brackets. 1422 1423Configuration: 1424 -h, --help display this help and exit 1425 --help=short display options specific to this package 1426 --help=recursive display the short help of all the included packages 1427 -V, --version display version information and exit 1428 -q, --quiet, --silent do not print 'checking ...' messages 1429 --cache-file=FILE cache test results in FILE [disabled] 1430 -C, --config-cache alias for '--cache-file=config.cache' 1431 -n, --no-create do not create output files 1432 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1433 1434Installation directories: 1435 --prefix=PREFIX install architecture-independent files in PREFIX 1436 [$ac_default_prefix] 1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1438 [PREFIX] 1439 1440By default, 'make install' will install all the files in 1441'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1442an installation prefix other than '$ac_default_prefix' using '--prefix', 1443for instance '--prefix=\$HOME'. 1444 1445For better control, use the options below. 1446 1447Fine tuning of the installation directories: 1448 --bindir=DIR user executables [EPREFIX/bin] 1449 --sbindir=DIR system admin executables [EPREFIX/sbin] 1450 --libexecdir=DIR program executables [EPREFIX/libexec] 1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1455 --libdir=DIR object code libraries [EPREFIX/lib] 1456 --includedir=DIR C header files [PREFIX/include] 1457 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1460 --infodir=DIR info documentation [DATAROOTDIR/info] 1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1462 --mandir=DIR man documentation [DATAROOTDIR/man] 1463 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam] 1464 --htmldir=DIR html documentation [DOCDIR] 1465 --dvidir=DIR dvi documentation [DOCDIR] 1466 --pdfdir=DIR pdf documentation [DOCDIR] 1467 --psdir=DIR ps documentation [DOCDIR] 1468_ACEOF 1469 1470 cat <<\_ACEOF 1471 1472Program names: 1473 --program-prefix=PREFIX prepend PREFIX to installed program names 1474 --program-suffix=SUFFIX append SUFFIX to installed program names 1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1476 1477System types: 1478 --build=BUILD configure for building on BUILD [guessed] 1479 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1480_ACEOF 1481fi 1482 1483if test -n "$ac_init_help"; then 1484 case $ac_init_help in 1485 short | recursive ) echo "Configuration of OpenPAM 20250531:";; 1486 esac 1487 cat <<\_ACEOF 1488 1489Optional Features: 1490 --disable-option-checking ignore unrecognized --enable/--with options 1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1493 --enable-silent-rules less verbose build output (undo: "make V=1") 1494 --disable-silent-rules verbose build output (undo: "make V=0") 1495 --enable-dependency-tracking 1496 do not reject slow dependency extractors 1497 --disable-dependency-tracking 1498 speeds up one-time build 1499 --enable-static[=PKGS] build static libraries [default=no] 1500 --enable-shared[=PKGS] build shared libraries [default=yes] 1501 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1502 both] 1503 --enable-fast-install[=PKGS] 1504 optimize for fast installation [default=yes] 1505 --enable-aix-soname=aix|svr4|both 1506 shared library versioning (aka "SONAME") variant to 1507 provide on AIX, [default=aix]. 1508 --disable-libtool-lock avoid locking (might break parallel builds) 1509 --enable-debug turn debugging macros on 1510 --disable-unversioned-modules 1511 support loading of unversioned modules 1512 --enable-developer-warnings 1513 enable strict warnings (default is NO) 1514 --enable-debugging-symbols 1515 enable debugging symbols (default is NO) 1516 --enable-werror use -Werror (default is NO) 1517 --enable-code-coverage enable code coverage 1518 1519Optional Packages: 1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1523 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1524 compiler's sysroot if not specified). 1525 --with-pkgconfigdir installation directory for .pc files 1526 [LIBDIR/pkgconfig] 1527 --with-modules-dir=DIR OpenPAM modules directory 1528 --with-localbase=DIR Base directory for local policies and modules 1529 --without-doc do not build documentation 1530 --with-pam-unix build sample pam_unix(8) module 1531 --with-pamtest build test application 1532 --with-su build sample su(1) implementation 1533 --with-system-libpam use system libpam 1534 1535Some influential environment variables: 1536 CC C compiler command 1537 CFLAGS C compiler flags 1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1539 nonstandard directory <lib dir> 1540 LIBS libraries to pass to the linker, e.g. -l<library> 1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1542 you have headers in a nonstandard directory <include dir> 1543 CPP C preprocessor 1544 CXX C++ compiler command 1545 CXXFLAGS C++ compiler flags 1546 LT_SYS_LIBRARY_PATH 1547 User-defined run-time library search path. 1548 CXXCPP C++ preprocessor 1549 PKG_CONFIG path to pkg-config binary 1550 PKG_CONFIG_PATH 1551 list of directories to prepend to default search path 1552 PKG_CONFIG_LIBDIR 1553 list of directories to search instead of default search path 1554 CRYB_TEST_CFLAGS 1555 C compiler flags for cryb-test 1556 CRYB_TEST_LIBS 1557 linker flags for cryb-test 1558 1559Use these variables to override the choices made by 'configure' or to help 1560it to find libraries and programs with nonstandard names/locations. 1561 1562Report bugs to <des@des.dev>. 1563OpenPAM home page: <https://openpam.org/>. 1564_ACEOF 1565ac_status=$? 1566fi 1567 1568if test "$ac_init_help" = "recursive"; then 1569 # If there are subdirs, report their specific --help. 1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1571 test -d "$ac_dir" || 1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1573 continue 1574 ac_builddir=. 1575 1576case "$ac_dir" in 1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578*) 1579 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1580 # A ".." for each directory in $ac_dir_suffix. 1581 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1582 case $ac_top_builddir_sub in 1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1585 esac ;; 1586esac 1587ac_abs_top_builddir=$ac_pwd 1588ac_abs_builddir=$ac_pwd$ac_dir_suffix 1589# for backward compatibility: 1590ac_top_builddir=$ac_top_build_prefix 1591 1592case $srcdir in 1593 .) # We are building in place. 1594 ac_srcdir=. 1595 ac_top_srcdir=$ac_top_builddir_sub 1596 ac_abs_top_srcdir=$ac_pwd ;; 1597 [\\/]* | ?:[\\/]* ) # Absolute name. 1598 ac_srcdir=$srcdir$ac_dir_suffix; 1599 ac_top_srcdir=$srcdir 1600 ac_abs_top_srcdir=$srcdir ;; 1601 *) # Relative name. 1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1603 ac_top_srcdir=$ac_top_build_prefix$srcdir 1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1605esac 1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1607 1608 cd "$ac_dir" || { ac_status=$?; continue; } 1609 # Check for configure.gnu first; this name is used for a wrapper for 1610 # Metaconfig's "Configure" on case-insensitive file systems. 1611 if test -f "$ac_srcdir/configure.gnu"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1614 elif test -f "$ac_srcdir/configure"; then 1615 echo && 1616 $SHELL "$ac_srcdir/configure" --help=recursive 1617 else 1618 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1619 fi || ac_status=$? 1620 cd "$ac_pwd" || { ac_status=$?; break; } 1621 done 1622fi 1623 1624test -n "$ac_init_help" && exit $ac_status 1625if $ac_init_version; then 1626 cat <<\_ACEOF 1627OpenPAM configure 20250531 1628generated by GNU Autoconf 2.72 1629 1630Copyright (C) 2023 Free Software Foundation, Inc. 1631This configure script is free software; the Free Software Foundation 1632gives unlimited permission to copy, distribute and modify it. 1633_ACEOF 1634 exit 1635fi 1636 1637## ------------------------ ## 1638## Autoconf initialization. ## 1639## ------------------------ ## 1640 1641# ac_fn_c_try_compile LINENO 1642# -------------------------- 1643# Try to compile conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_c_try_compile () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext conftest.beam 1648 if { { ac_try="$ac_compile" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654printf "%s\n" "$ac_try_echo"; } >&5 1655 (eval "$ac_compile") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest.$ac_objext 1667then : 1668 ac_retval=0 1669else case e in #( 1670 e) printf "%s\n" "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 ;; 1674esac 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_compile 1680 1681# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1682# ------------------------------------------------------- 1683# Tests whether HEADER exists and can be compiled using the include files in 1684# INCLUDES, setting the cache variable VAR accordingly. 1685ac_fn_c_check_header_compile () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1689printf %s "checking for $2... " >&6; } 1690if eval test \${$3+y} 1691then : 1692 printf %s "(cached) " >&6 1693else case e in #( 1694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1695/* end confdefs.h. */ 1696$4 1697#include <$2> 1698_ACEOF 1699if ac_fn_c_try_compile "$LINENO" 1700then : 1701 eval "$3=yes" 1702else case e in #( 1703 e) eval "$3=no" ;; 1704esac 1705fi 1706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1707esac 1708fi 1709eval ac_res=\$$3 1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1711printf "%s\n" "$ac_res" >&6; } 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 1714} # ac_fn_c_check_header_compile 1715 1716# ac_fn_c_try_cpp LINENO 1717# ---------------------- 1718# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1719ac_fn_c_try_cpp () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_cpp conftest.$ac_ext" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728printf "%s\n" "$ac_try_echo"; } >&5 1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } > conftest.i && { 1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } 1741then : 1742 ac_retval=0 1743else case e in #( 1744 e) printf "%s\n" "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=1 ;; 1748esac 1749fi 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_cpp 1754 1755# ac_fn_cxx_try_compile LINENO 1756# ---------------------------- 1757# Try to compile conftest.$ac_ext, and return whether this succeeded. 1758ac_fn_cxx_try_compile () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 rm -f conftest.$ac_objext conftest.beam 1762 if { { ac_try="$ac_compile" 1763case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768printf "%s\n" "$ac_try_echo"; } >&5 1769 (eval "$ac_compile") 2>conftest.err 1770 ac_status=$? 1771 if test -s conftest.err; then 1772 grep -v '^ *+' conftest.err >conftest.er1 1773 cat conftest.er1 >&5 1774 mv -f conftest.er1 conftest.err 1775 fi 1776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1777 test $ac_status = 0; } && { 1778 test -z "$ac_cxx_werror_flag" || 1779 test ! -s conftest.err 1780 } && test -s conftest.$ac_objext 1781then : 1782 ac_retval=0 1783else case e in #( 1784 e) printf "%s\n" "$as_me: failed program was:" >&5 1785sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=1 ;; 1788esac 1789fi 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 as_fn_set_status $ac_retval 1792 1793} # ac_fn_cxx_try_compile 1794 1795# ac_fn_c_try_link LINENO 1796# ----------------------- 1797# Try to link conftest.$ac_ext, and return whether this succeeded. 1798ac_fn_c_try_link () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1802 if { { ac_try="$ac_link" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808printf "%s\n" "$ac_try_echo"; } >&5 1809 (eval "$ac_link") 2>conftest.err 1810 ac_status=$? 1811 if test -s conftest.err; then 1812 grep -v '^ *+' conftest.err >conftest.er1 1813 cat conftest.er1 >&5 1814 mv -f conftest.er1 conftest.err 1815 fi 1816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } && { 1818 test -z "$ac_c_werror_flag" || 1819 test ! -s conftest.err 1820 } && test -s conftest$ac_exeext && { 1821 test "$cross_compiling" = yes || 1822 test -x conftest$ac_exeext 1823 } 1824then : 1825 ac_retval=0 1826else case e in #( 1827 e) printf "%s\n" "$as_me: failed program was:" >&5 1828sed 's/^/| /' conftest.$ac_ext >&5 1829 1830 ac_retval=1 ;; 1831esac 1832fi 1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1835 # interfere with the next link command; also delete a directory that is 1836 # left behind by Apple's compiler. We do this before executing the actions. 1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 as_fn_set_status $ac_retval 1840 1841} # ac_fn_c_try_link 1842 1843# ac_fn_c_check_func LINENO FUNC VAR 1844# ---------------------------------- 1845# Tests whether FUNC exists, setting the cache variable VAR accordingly 1846ac_fn_c_check_func () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850printf %s "checking for $2... " >&6; } 1851if eval test \${$3+y} 1852then : 1853 printf %s "(cached) " >&6 1854else case e in #( 1855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1859#define $2 innocuous_$2 1860 1861/* System header to define __stub macros and hopefully few prototypes, 1862 which can conflict with char $2 (void); below. */ 1863 1864#include <limits.h> 1865#undef $2 1866 1867/* Override any GCC internal prototype to avoid an error. 1868 Use char because int might match the return type of a GCC 1869 builtin and then its argument prototype would still apply. */ 1870#ifdef __cplusplus 1871extern "C" 1872#endif 1873char $2 (void); 1874/* The GNU C library defines this for functions which it implements 1875 to always fail with ENOSYS. Some functions are actually named 1876 something starting with __ and the normal name is an alias. */ 1877#if defined __stub_$2 || defined __stub___$2 1878choke me 1879#endif 1880 1881int 1882main (void) 1883{ 1884return $2 (); 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889if ac_fn_c_try_link "$LINENO" 1890then : 1891 eval "$3=yes" 1892else case e in #( 1893 e) eval "$3=no" ;; 1894esac 1895fi 1896rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1897 conftest$ac_exeext conftest.$ac_ext ;; 1898esac 1899fi 1900eval ac_res=\$$3 1901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1902printf "%s\n" "$ac_res" >&6; } 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1904 1905} # ac_fn_c_check_func 1906 1907# ac_fn_cxx_try_cpp LINENO 1908# ------------------------ 1909# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1910ac_fn_cxx_try_cpp () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 if { { ac_try="$ac_cpp conftest.$ac_ext" 1914case "(($ac_try" in 1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1916 *) ac_try_echo=$ac_try;; 1917esac 1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1919printf "%s\n" "$ac_try_echo"; } >&5 1920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1921 ac_status=$? 1922 if test -s conftest.err; then 1923 grep -v '^ *+' conftest.err >conftest.er1 1924 cat conftest.er1 >&5 1925 mv -f conftest.er1 conftest.err 1926 fi 1927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1928 test $ac_status = 0; } > conftest.i && { 1929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1930 test ! -s conftest.err 1931 } 1932then : 1933 ac_retval=0 1934else case e in #( 1935 e) printf "%s\n" "$as_me: failed program was:" >&5 1936sed 's/^/| /' conftest.$ac_ext >&5 1937 1938 ac_retval=1 ;; 1939esac 1940fi 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944} # ac_fn_cxx_try_cpp 1945 1946# ac_fn_cxx_try_link LINENO 1947# ------------------------- 1948# Try to link conftest.$ac_ext, and return whether this succeeded. 1949ac_fn_cxx_try_link () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1953 if { { ac_try="$ac_link" 1954case "(($ac_try" in 1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1956 *) ac_try_echo=$ac_try;; 1957esac 1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1959printf "%s\n" "$ac_try_echo"; } >&5 1960 (eval "$ac_link") 2>conftest.err 1961 ac_status=$? 1962 if test -s conftest.err; then 1963 grep -v '^ *+' conftest.err >conftest.er1 1964 cat conftest.er1 >&5 1965 mv -f conftest.er1 conftest.err 1966 fi 1967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1968 test $ac_status = 0; } && { 1969 test -z "$ac_cxx_werror_flag" || 1970 test ! -s conftest.err 1971 } && test -s conftest$ac_exeext && { 1972 test "$cross_compiling" = yes || 1973 test -x conftest$ac_exeext 1974 } 1975then : 1976 ac_retval=0 1977else case e in #( 1978 e) printf "%s\n" "$as_me: failed program was:" >&5 1979sed 's/^/| /' conftest.$ac_ext >&5 1980 1981 ac_retval=1 ;; 1982esac 1983fi 1984 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1985 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1986 # interfere with the next link command; also delete a directory that is 1987 # left behind by Apple's compiler. We do this before executing the actions. 1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 as_fn_set_status $ac_retval 1991 1992} # ac_fn_cxx_try_link 1993ac_configure_args_raw= 1994for ac_arg 1995do 1996 case $ac_arg in 1997 *\'*) 1998 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1999 esac 2000 as_fn_append ac_configure_args_raw " '$ac_arg'" 2001done 2002 2003case $ac_configure_args_raw in 2004 *$as_nl*) 2005 ac_safe_unquote= ;; 2006 *) 2007 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2008 ac_unsafe_a="$ac_unsafe_z#~" 2009 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2010 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2011esac 2012 2013cat >config.log <<_ACEOF 2014This file contains any messages produced by compilers while 2015running configure, to aid debugging if configure makes a mistake. 2016 2017It was created by OpenPAM $as_me 20250531, which was 2018generated by GNU Autoconf 2.72. Invocation command line was 2019 2020 $ $0$ac_configure_args_raw 2021 2022_ACEOF 2023exec 5>>config.log 2024{ 2025cat <<_ASUNAME 2026## --------- ## 2027## Platform. ## 2028## --------- ## 2029 2030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2031uname -m = `(uname -m) 2>/dev/null || echo unknown` 2032uname -r = `(uname -r) 2>/dev/null || echo unknown` 2033uname -s = `(uname -s) 2>/dev/null || echo unknown` 2034uname -v = `(uname -v) 2>/dev/null || echo unknown` 2035 2036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2037/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2038 2039/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2040/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2042/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2043/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2044/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2045/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2046 2047_ASUNAME 2048 2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2050for as_dir in $PATH 2051do 2052 IFS=$as_save_IFS 2053 case $as_dir in #((( 2054 '') as_dir=./ ;; 2055 */) ;; 2056 *) as_dir=$as_dir/ ;; 2057 esac 2058 printf "%s\n" "PATH: $as_dir" 2059 done 2060IFS=$as_save_IFS 2061 2062} >&5 2063 2064cat >&5 <<_ACEOF 2065 2066 2067## ----------- ## 2068## Core tests. ## 2069## ----------- ## 2070 2071_ACEOF 2072 2073 2074# Keep a trace of the command line. 2075# Strip out --no-create and --no-recursion so they do not pile up. 2076# Strip out --silent because we don't want to record it for future runs. 2077# Also quote any args containing shell meta-characters. 2078# Make two passes to allow for proper duplicate-argument suppression. 2079ac_configure_args= 2080ac_configure_args0= 2081ac_configure_args1= 2082ac_must_keep_next=false 2083for ac_pass in 1 2 2084do 2085 for ac_arg 2086 do 2087 case $ac_arg in 2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2090 | -silent | --silent | --silen | --sile | --sil) 2091 continue ;; 2092 *\'*) 2093 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2094 esac 2095 case $ac_pass in 2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2097 2) 2098 as_fn_append ac_configure_args1 " '$ac_arg'" 2099 if test $ac_must_keep_next = true; then 2100 ac_must_keep_next=false # Got value, back to normal. 2101 else 2102 case $ac_arg in 2103 *=* | --config-cache | -C | -disable-* | --disable-* \ 2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2106 | -with-* | --with-* | -without-* | --without-* | --x) 2107 case "$ac_configure_args0 " in 2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2109 esac 2110 ;; 2111 -* ) ac_must_keep_next=true ;; 2112 esac 2113 fi 2114 as_fn_append ac_configure_args " '$ac_arg'" 2115 ;; 2116 esac 2117 done 2118done 2119{ ac_configure_args0=; unset ac_configure_args0;} 2120{ ac_configure_args1=; unset ac_configure_args1;} 2121 2122# When interrupted or exit'd, cleanup temporary files, and complete 2123# config.log. We remove comments because anyway the quotes in there 2124# would cause problems or look ugly. 2125# WARNING: Use '\'' to represent an apostrophe within the trap. 2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2127trap 'exit_status=$? 2128 # Sanitize IFS. 2129 IFS=" "" $as_nl" 2130 # Save into config.log some information that might help in debugging. 2131 { 2132 echo 2133 2134 printf "%s\n" "## ---------------- ## 2135## Cache variables. ## 2136## ---------------- ##" 2137 echo 2138 # The following way of writing the cache mishandles newlines in values, 2139( 2140 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2141 eval ac_val=\$$ac_var 2142 case $ac_val in #( 2143 *${as_nl}*) 2144 case $ac_var in #( 2145 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2146printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2147 esac 2148 case $ac_var in #( 2149 _ | IFS | as_nl) ;; #( 2150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2151 *) { eval $ac_var=; unset $ac_var;} ;; 2152 esac ;; 2153 esac 2154 done 2155 (set) 2>&1 | 2156 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2157 *${as_nl}ac_space=\ *) 2158 sed -n \ 2159 "s/'\''/'\''\\\\'\'''\''/g; 2160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2161 ;; #( 2162 *) 2163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2164 ;; 2165 esac | 2166 sort 2167) 2168 echo 2169 2170 printf "%s\n" "## ----------------- ## 2171## Output variables. ## 2172## ----------------- ##" 2173 echo 2174 for ac_var in $ac_subst_vars 2175 do 2176 eval ac_val=\$$ac_var 2177 case $ac_val in 2178 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2179 esac 2180 printf "%s\n" "$ac_var='\''$ac_val'\''" 2181 done | sort 2182 echo 2183 2184 if test -n "$ac_subst_files"; then 2185 printf "%s\n" "## ------------------- ## 2186## File substitutions. ## 2187## ------------------- ##" 2188 echo 2189 for ac_var in $ac_subst_files 2190 do 2191 eval ac_val=\$$ac_var 2192 case $ac_val in 2193 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2194 esac 2195 printf "%s\n" "$ac_var='\''$ac_val'\''" 2196 done | sort 2197 echo 2198 fi 2199 2200 if test -s confdefs.h; then 2201 printf "%s\n" "## ----------- ## 2202## confdefs.h. ## 2203## ----------- ##" 2204 echo 2205 cat confdefs.h 2206 echo 2207 fi 2208 test "$ac_signal" != 0 && 2209 printf "%s\n" "$as_me: caught signal $ac_signal" 2210 printf "%s\n" "$as_me: exit $exit_status" 2211 } >&5 2212 rm -f core *.core core.conftest.* && 2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2214 exit $exit_status 2215' 0 2216for ac_signal in 1 2 13 15; do 2217 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2218done 2219ac_signal=0 2220 2221# confdefs.h avoids OS command line length limits that DEFS can exceed. 2222rm -f -r conftest* confdefs.h 2223 2224printf "%s\n" "/* confdefs.h */" > confdefs.h 2225 2226# Predefined preprocessor variables. 2227 2228printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2229 2230printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2231 2232printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2233 2234printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2235 2236printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2237 2238printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2239 2240 2241# Let the site file select an alternate cache file if it wants to. 2242# Prefer an explicitly selected file to automatically selected ones. 2243if test -n "$CONFIG_SITE"; then 2244 ac_site_files="$CONFIG_SITE" 2245elif test "x$prefix" != xNONE; then 2246 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2247else 2248 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2249fi 2250 2251for ac_site_file in $ac_site_files 2252do 2253 case $ac_site_file in #( 2254 */*) : 2255 ;; #( 2256 *) : 2257 ac_site_file=./$ac_site_file ;; 2258esac 2259 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2261printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2262 sed 's/^/| /' "$ac_site_file" >&5 2263 . "$ac_site_file" \ 2264 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2265printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2266as_fn_error $? "failed to load site script $ac_site_file 2267See 'config.log' for more details" "$LINENO" 5; } 2268 fi 2269done 2270 2271if test -r "$cache_file"; then 2272 # Some versions of bash will fail to source /dev/null (special files 2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2276printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2277 case $cache_file in 2278 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2279 *) . "./$cache_file";; 2280 esac 2281 fi 2282else 2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2284printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2285 >$cache_file 2286fi 2287 2288as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2289# Test code for whether the C compiler supports C89 (global declarations) 2290ac_c_conftest_c89_globals=' 2291/* Does the compiler advertise C89 conformance? 2292 Do not test the value of __STDC__, because some compilers set it to 0 2293 while being otherwise adequately conformant. */ 2294#if !defined __STDC__ 2295# error "Compiler does not advertise C89 conformance" 2296#endif 2297 2298#include <stddef.h> 2299#include <stdarg.h> 2300struct stat; 2301/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2302struct buf { int x; }; 2303struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2304static char *e (char **p, int i) 2305{ 2306 return p[i]; 2307} 2308static char *f (char * (*g) (char **, int), char **p, ...) 2309{ 2310 char *s; 2311 va_list v; 2312 va_start (v,p); 2313 s = g (p, va_arg (v,int)); 2314 va_end (v); 2315 return s; 2316} 2317 2318/* C89 style stringification. */ 2319#define noexpand_stringify(a) #a 2320const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2321 2322/* C89 style token pasting. Exercises some of the corner cases that 2323 e.g. old MSVC gets wrong, but not very hard. */ 2324#define noexpand_concat(a,b) a##b 2325#define expand_concat(a,b) noexpand_concat(a,b) 2326extern int vA; 2327extern int vbee; 2328#define aye A 2329#define bee B 2330int *pvA = &expand_concat(v,aye); 2331int *pvbee = &noexpand_concat(v,bee); 2332 2333/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2334 function prototypes and stuff, but not \xHH hex character constants. 2335 These do not provoke an error unfortunately, instead are silently treated 2336 as an "x". The following induces an error, until -std is added to get 2337 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2338 array size at least. It is necessary to write \x00 == 0 to get something 2339 that is true only with -std. */ 2340int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2341 2342/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2343 inside strings and character constants. */ 2344#define FOO(x) '\''x'\'' 2345int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2346 2347int test (int i, double x); 2348struct s1 {int (*f) (int a);}; 2349struct s2 {int (*f) (double a);}; 2350int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2351 int, int);' 2352 2353# Test code for whether the C compiler supports C89 (body of main). 2354ac_c_conftest_c89_main=' 2355ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2356' 2357 2358# Test code for whether the C compiler supports C99 (global declarations) 2359ac_c_conftest_c99_globals=' 2360/* Does the compiler advertise C99 conformance? */ 2361#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2362# error "Compiler does not advertise C99 conformance" 2363#endif 2364 2365// See if C++-style comments work. 2366 2367#include <stdbool.h> 2368extern int puts (const char *); 2369extern int printf (const char *, ...); 2370extern int dprintf (int, const char *, ...); 2371extern void *malloc (size_t); 2372extern void free (void *); 2373 2374// Check varargs macros. These examples are taken from C99 6.10.3.5. 2375// dprintf is used instead of fprintf to avoid needing to declare 2376// FILE and stderr. 2377#define debug(...) dprintf (2, __VA_ARGS__) 2378#define showlist(...) puts (#__VA_ARGS__) 2379#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2380static void 2381test_varargs_macros (void) 2382{ 2383 int x = 1234; 2384 int y = 5678; 2385 debug ("Flag"); 2386 debug ("X = %d\n", x); 2387 showlist (The first, second, and third items.); 2388 report (x>y, "x is %d but y is %d", x, y); 2389} 2390 2391// Check long long types. 2392#define BIG64 18446744073709551615ull 2393#define BIG32 4294967295ul 2394#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2395#if !BIG_OK 2396 #error "your preprocessor is broken" 2397#endif 2398#if BIG_OK 2399#else 2400 #error "your preprocessor is broken" 2401#endif 2402static long long int bignum = -9223372036854775807LL; 2403static unsigned long long int ubignum = BIG64; 2404 2405struct incomplete_array 2406{ 2407 int datasize; 2408 double data[]; 2409}; 2410 2411struct named_init { 2412 int number; 2413 const wchar_t *name; 2414 double average; 2415}; 2416 2417typedef const char *ccp; 2418 2419static inline int 2420test_restrict (ccp restrict text) 2421{ 2422 // Iterate through items via the restricted pointer. 2423 // Also check for declarations in for loops. 2424 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2425 continue; 2426 return 0; 2427} 2428 2429// Check varargs and va_copy. 2430static bool 2431test_varargs (const char *format, ...) 2432{ 2433 va_list args; 2434 va_start (args, format); 2435 va_list args_copy; 2436 va_copy (args_copy, args); 2437 2438 const char *str = ""; 2439 int number = 0; 2440 float fnumber = 0; 2441 2442 while (*format) 2443 { 2444 switch (*format++) 2445 { 2446 case '\''s'\'': // string 2447 str = va_arg (args_copy, const char *); 2448 break; 2449 case '\''d'\'': // int 2450 number = va_arg (args_copy, int); 2451 break; 2452 case '\''f'\'': // float 2453 fnumber = va_arg (args_copy, double); 2454 break; 2455 default: 2456 break; 2457 } 2458 } 2459 va_end (args_copy); 2460 va_end (args); 2461 2462 return *str && number && fnumber; 2463} 2464' 2465 2466# Test code for whether the C compiler supports C99 (body of main). 2467ac_c_conftest_c99_main=' 2468 // Check bool. 2469 _Bool success = false; 2470 success |= (argc != 0); 2471 2472 // Check restrict. 2473 if (test_restrict ("String literal") == 0) 2474 success = true; 2475 char *restrict newvar = "Another string"; 2476 2477 // Check varargs. 2478 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2479 test_varargs_macros (); 2480 2481 // Check flexible array members. 2482 struct incomplete_array *ia = 2483 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2484 ia->datasize = 10; 2485 for (int i = 0; i < ia->datasize; ++i) 2486 ia->data[i] = i * 1.234; 2487 // Work around memory leak warnings. 2488 free (ia); 2489 2490 // Check named initializers. 2491 struct named_init ni = { 2492 .number = 34, 2493 .name = L"Test wide string", 2494 .average = 543.34343, 2495 }; 2496 2497 ni.number = 58; 2498 2499 int dynamic_array[ni.number]; 2500 dynamic_array[0] = argv[0][0]; 2501 dynamic_array[ni.number - 1] = 543; 2502 2503 // work around unused variable warnings 2504 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2505 || dynamic_array[ni.number - 1] != 543); 2506' 2507 2508# Test code for whether the C compiler supports C11 (global declarations) 2509ac_c_conftest_c11_globals=' 2510/* Does the compiler advertise C11 conformance? */ 2511#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2512# error "Compiler does not advertise C11 conformance" 2513#endif 2514 2515// Check _Alignas. 2516char _Alignas (double) aligned_as_double; 2517char _Alignas (0) no_special_alignment; 2518extern char aligned_as_int; 2519char _Alignas (0) _Alignas (int) aligned_as_int; 2520 2521// Check _Alignof. 2522enum 2523{ 2524 int_alignment = _Alignof (int), 2525 int_array_alignment = _Alignof (int[100]), 2526 char_alignment = _Alignof (char) 2527}; 2528_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2529 2530// Check _Noreturn. 2531int _Noreturn does_not_return (void) { for (;;) continue; } 2532 2533// Check _Static_assert. 2534struct test_static_assert 2535{ 2536 int x; 2537 _Static_assert (sizeof (int) <= sizeof (long int), 2538 "_Static_assert does not work in struct"); 2539 long int y; 2540}; 2541 2542// Check UTF-8 literals. 2543#define u8 syntax error! 2544char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2545 2546// Check duplicate typedefs. 2547typedef long *long_ptr; 2548typedef long int *long_ptr; 2549typedef long_ptr long_ptr; 2550 2551// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2552struct anonymous 2553{ 2554 union { 2555 struct { int i; int j; }; 2556 struct { int k; long int l; } w; 2557 }; 2558 int m; 2559} v1; 2560' 2561 2562# Test code for whether the C compiler supports C11 (body of main). 2563ac_c_conftest_c11_main=' 2564 _Static_assert ((offsetof (struct anonymous, i) 2565 == offsetof (struct anonymous, w.k)), 2566 "Anonymous union alignment botch"); 2567 v1.i = 2; 2568 v1.w.k = 5; 2569 ok |= v1.i != 5; 2570' 2571 2572# Test code for whether the C compiler supports C11 (complete). 2573ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2574${ac_c_conftest_c99_globals} 2575${ac_c_conftest_c11_globals} 2576 2577int 2578main (int argc, char **argv) 2579{ 2580 int ok = 0; 2581 ${ac_c_conftest_c89_main} 2582 ${ac_c_conftest_c99_main} 2583 ${ac_c_conftest_c11_main} 2584 return ok; 2585} 2586" 2587 2588# Test code for whether the C compiler supports C99 (complete). 2589ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2590${ac_c_conftest_c99_globals} 2591 2592int 2593main (int argc, char **argv) 2594{ 2595 int ok = 0; 2596 ${ac_c_conftest_c89_main} 2597 ${ac_c_conftest_c99_main} 2598 return ok; 2599} 2600" 2601 2602# Test code for whether the C compiler supports C89 (complete). 2603ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2604 2605int 2606main (int argc, char **argv) 2607{ 2608 int ok = 0; 2609 ${ac_c_conftest_c89_main} 2610 return ok; 2611} 2612" 2613 2614as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2615as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2616as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2617as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2618as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2619as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2620as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2621as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2622as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2623as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2624# Test code for whether the C++ compiler supports C++98 (global declarations) 2625ac_cxx_conftest_cxx98_globals=' 2626// Does the compiler advertise C++98 conformance? 2627#if !defined __cplusplus || __cplusplus < 199711L 2628# error "Compiler does not advertise C++98 conformance" 2629#endif 2630 2631// These inclusions are to reject old compilers that 2632// lack the unsuffixed header files. 2633#include <cstdlib> 2634#include <exception> 2635 2636// <cassert> and <cstring> are *not* freestanding headers in C++98. 2637extern void assert (int); 2638namespace std { 2639 extern int strcmp (const char *, const char *); 2640} 2641 2642// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2643using std::exception; 2644using std::strcmp; 2645 2646namespace { 2647 2648void test_exception_syntax() 2649{ 2650 try { 2651 throw "test"; 2652 } catch (const char *s) { 2653 // Extra parentheses suppress a warning when building autoconf itself, 2654 // due to lint rules shared with more typical C programs. 2655 assert (!(strcmp) (s, "test")); 2656 } 2657} 2658 2659template <typename T> struct test_template 2660{ 2661 T const val; 2662 explicit test_template(T t) : val(t) {} 2663 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2664}; 2665 2666} // anonymous namespace 2667' 2668 2669# Test code for whether the C++ compiler supports C++98 (body of main) 2670ac_cxx_conftest_cxx98_main=' 2671 assert (argc); 2672 assert (! argv[0]); 2673{ 2674 test_exception_syntax (); 2675 test_template<double> tt (2.0); 2676 assert (tt.add (4) == 6.0); 2677 assert (true && !false); 2678} 2679' 2680 2681# Test code for whether the C++ compiler supports C++11 (global declarations) 2682ac_cxx_conftest_cxx11_globals=' 2683// Does the compiler advertise C++ 2011 conformance? 2684#if !defined __cplusplus || __cplusplus < 201103L 2685# error "Compiler does not advertise C++11 conformance" 2686#endif 2687 2688namespace cxx11test 2689{ 2690 constexpr int get_val() { return 20; } 2691 2692 struct testinit 2693 { 2694 int i; 2695 double d; 2696 }; 2697 2698 class delegate 2699 { 2700 public: 2701 delegate(int n) : n(n) {} 2702 delegate(): delegate(2354) {} 2703 2704 virtual int getval() { return this->n; }; 2705 protected: 2706 int n; 2707 }; 2708 2709 class overridden : public delegate 2710 { 2711 public: 2712 overridden(int n): delegate(n) {} 2713 virtual int getval() override final { return this->n * 2; } 2714 }; 2715 2716 class nocopy 2717 { 2718 public: 2719 nocopy(int i): i(i) {} 2720 nocopy() = default; 2721 nocopy(const nocopy&) = delete; 2722 nocopy & operator=(const nocopy&) = delete; 2723 private: 2724 int i; 2725 }; 2726 2727 // for testing lambda expressions 2728 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2729 { 2730 return f(v); 2731 } 2732 2733 // for testing variadic templates and trailing return types 2734 template <typename V> auto sum(V first) -> V 2735 { 2736 return first; 2737 } 2738 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2739 { 2740 return first + sum(rest...); 2741 } 2742} 2743' 2744 2745# Test code for whether the C++ compiler supports C++11 (body of main) 2746ac_cxx_conftest_cxx11_main=' 2747{ 2748 // Test auto and decltype 2749 auto a1 = 6538; 2750 auto a2 = 48573953.4; 2751 auto a3 = "String literal"; 2752 2753 int total = 0; 2754 for (auto i = a3; *i; ++i) { total += *i; } 2755 2756 decltype(a2) a4 = 34895.034; 2757} 2758{ 2759 // Test constexpr 2760 short sa[cxx11test::get_val()] = { 0 }; 2761} 2762{ 2763 // Test initializer lists 2764 cxx11test::testinit il = { 4323, 435234.23544 }; 2765} 2766{ 2767 // Test range-based for 2768 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2769 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2770 for (auto &x : array) { x += 23; } 2771} 2772{ 2773 // Test lambda expressions 2774 using cxx11test::eval; 2775 assert (eval ([](int x) { return x*2; }, 21) == 42); 2776 double d = 2.0; 2777 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2778 assert (d == 5.0); 2779 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2780 assert (d == 5.0); 2781} 2782{ 2783 // Test use of variadic templates 2784 using cxx11test::sum; 2785 auto a = sum(1); 2786 auto b = sum(1, 2); 2787 auto c = sum(1.0, 2.0, 3.0); 2788} 2789{ 2790 // Test constructor delegation 2791 cxx11test::delegate d1; 2792 cxx11test::delegate d2(); 2793 cxx11test::delegate d3(45); 2794} 2795{ 2796 // Test override and final 2797 cxx11test::overridden o1(55464); 2798} 2799{ 2800 // Test nullptr 2801 char *c = nullptr; 2802} 2803{ 2804 // Test template brackets 2805 test_template<::test_template<int>> v(test_template<int>(12)); 2806} 2807{ 2808 // Unicode literals 2809 char const *utf8 = u8"UTF-8 string \u2500"; 2810 char16_t const *utf16 = u"UTF-8 string \u2500"; 2811 char32_t const *utf32 = U"UTF-32 string \u2500"; 2812} 2813' 2814 2815# Test code for whether the C compiler supports C++11 (complete). 2816ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2817${ac_cxx_conftest_cxx11_globals} 2818 2819int 2820main (int argc, char **argv) 2821{ 2822 int ok = 0; 2823 ${ac_cxx_conftest_cxx98_main} 2824 ${ac_cxx_conftest_cxx11_main} 2825 return ok; 2826} 2827" 2828 2829# Test code for whether the C compiler supports C++98 (complete). 2830ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2831int 2832main (int argc, char **argv) 2833{ 2834 int ok = 0; 2835 ${ac_cxx_conftest_cxx98_main} 2836 return ok; 2837} 2838" 2839 2840 2841# Auxiliary files required by this configure script. 2842ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2843 2844# Locations in which to look for auxiliary files. 2845ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2846 2847# Search for a directory containing all of the required auxiliary files, 2848# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2849# If we don't find one directory that contains all the files we need, 2850# we report the set of missing files from the *first* directory in 2851# $ac_aux_dir_candidates and give up. 2852ac_missing_aux_files="" 2853ac_first_candidate=: 2854printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856as_found=false 2857for as_dir in $ac_aux_dir_candidates 2858do 2859 IFS=$as_save_IFS 2860 case $as_dir in #((( 2861 '') as_dir=./ ;; 2862 */) ;; 2863 *) as_dir=$as_dir/ ;; 2864 esac 2865 as_found=: 2866 2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2868 ac_aux_dir_found=yes 2869 ac_install_sh= 2870 for ac_aux in $ac_aux_files 2871 do 2872 # As a special case, if "install-sh" is required, that requirement 2873 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2874 # and $ac_install_sh is set appropriately for whichever one is found. 2875 if test x"$ac_aux" = x"install-sh" 2876 then 2877 if test -f "${as_dir}install-sh"; then 2878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2879 ac_install_sh="${as_dir}install-sh -c" 2880 elif test -f "${as_dir}install.sh"; then 2881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2882 ac_install_sh="${as_dir}install.sh -c" 2883 elif test -f "${as_dir}shtool"; then 2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2885 ac_install_sh="${as_dir}shtool install -c" 2886 else 2887 ac_aux_dir_found=no 2888 if $ac_first_candidate; then 2889 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2890 else 2891 break 2892 fi 2893 fi 2894 else 2895 if test -f "${as_dir}${ac_aux}"; then 2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2897 else 2898 ac_aux_dir_found=no 2899 if $ac_first_candidate; then 2900 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2901 else 2902 break 2903 fi 2904 fi 2905 fi 2906 done 2907 if test "$ac_aux_dir_found" = yes; then 2908 ac_aux_dir="$as_dir" 2909 break 2910 fi 2911 ac_first_candidate=false 2912 2913 as_found=false 2914done 2915IFS=$as_save_IFS 2916if $as_found 2917then : 2918 2919else case e in #( 2920 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2921esac 2922fi 2923 2924 2925# These three variables are undocumented and unsupported, 2926# and are intended to be withdrawn in a future Autoconf release. 2927# They can cause serious problems if a builder's source tree is in a directory 2928# whose full name contains unusual characters. 2929if test -f "${ac_aux_dir}config.guess"; then 2930 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2931fi 2932if test -f "${ac_aux_dir}config.sub"; then 2933 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2934fi 2935if test -f "$ac_aux_dir/configure"; then 2936 ac_configure="$SHELL ${ac_aux_dir}configure" 2937fi 2938 2939# Check that the precious variables saved in the cache have kept the same 2940# value. 2941ac_cache_corrupted=false 2942for ac_var in $ac_precious_vars; do 2943 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2944 eval ac_new_set=\$ac_env_${ac_var}_set 2945 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2946 eval ac_new_val=\$ac_env_${ac_var}_value 2947 case $ac_old_set,$ac_new_set in 2948 set,) 2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2950printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2951 ac_cache_corrupted=: ;; 2952 ,set) 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2954printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2955 ac_cache_corrupted=: ;; 2956 ,);; 2957 *) 2958 if test "x$ac_old_val" != "x$ac_new_val"; then 2959 # differences in whitespace do not lead to failure. 2960 ac_old_val_w=`echo x $ac_old_val` 2961 ac_new_val_w=`echo x $ac_new_val` 2962 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2964printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2965 ac_cache_corrupted=: 2966 else 2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2968printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2969 eval $ac_var=\$ac_old_val 2970 fi 2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2972printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2974printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2975 fi;; 2976 esac 2977 # Pass precious variables to config.status. 2978 if test "$ac_new_set" = set; then 2979 case $ac_new_val in 2980 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2981 *) ac_arg=$ac_var=$ac_new_val ;; 2982 esac 2983 case " $ac_configure_args " in 2984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2985 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2986 esac 2987 fi 2988done 2989if $ac_cache_corrupted; then 2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2991printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2993printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2994 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2995 and start over" "$LINENO" 5 2996fi 2997## -------------------- ## 2998## Main body of script. ## 2999## -------------------- ## 3000 3001ac_ext=c 3002ac_cpp='$CPP $CPPFLAGS' 3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3005ac_compiler_gnu=$ac_cv_c_compiler_gnu 3006 3007 3008 3009 3010am__api_version='1.17' 3011 3012 3013 3014 # Find a good install program. We prefer a C program (faster), 3015# so one script is as good as another. But avoid the broken or 3016# incompatible versions: 3017# SysV /etc/install, /usr/sbin/install 3018# SunOS /usr/etc/install 3019# IRIX /sbin/install 3020# AIX /bin/install 3021# AmigaOS /C/install, which installs bootblocks on floppy discs 3022# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3023# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3024# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3025# OS/2's system install, which has a completely different semantic 3026# ./install, which can be erroneously created by make from ./install.sh. 3027# Reject install programs that cannot install multiple files. 3028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3029printf %s "checking for a BSD-compatible install... " >&6; } 3030if test -z "$INSTALL"; then 3031if test ${ac_cv_path_install+y} 3032then : 3033 printf %s "(cached) " >&6 3034else case e in #( 3035 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036for as_dir in $PATH 3037do 3038 IFS=$as_save_IFS 3039 case $as_dir in #((( 3040 '') as_dir=./ ;; 3041 */) ;; 3042 *) as_dir=$as_dir/ ;; 3043 esac 3044 # Account for fact that we put trailing slashes in our PATH walk. 3045case $as_dir in #(( 3046 ./ | /[cC]/* | \ 3047 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3048 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3049 /usr/ucb/* ) ;; 3050 *) 3051 # OSF1 and SCO ODT 3.0 have their own names for install. 3052 # Don't use installbsd from OSF since it installs stuff as root 3053 # by default. 3054 for ac_prog in ginstall scoinst install; do 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3057 if test $ac_prog = install && 3058 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3059 # AIX install. It has an incompatible calling convention. 3060 : 3061 elif test $ac_prog = install && 3062 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3063 # program-specific install script used by HP pwplus--don't use. 3064 : 3065 else 3066 rm -rf conftest.one conftest.two conftest.dir 3067 echo one > conftest.one 3068 echo two > conftest.two 3069 mkdir conftest.dir 3070 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3071 test -s conftest.one && test -s conftest.two && 3072 test -s conftest.dir/conftest.one && 3073 test -s conftest.dir/conftest.two 3074 then 3075 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3076 break 3 3077 fi 3078 fi 3079 fi 3080 done 3081 done 3082 ;; 3083esac 3084 3085 done 3086IFS=$as_save_IFS 3087 3088rm -rf conftest.one conftest.two conftest.dir 3089 ;; 3090esac 3091fi 3092 if test ${ac_cv_path_install+y}; then 3093 INSTALL=$ac_cv_path_install 3094 else 3095 # As a last resort, use the slow shell script. Don't cache a 3096 # value for INSTALL within a source directory, because that will 3097 # break other packages using the cache if that directory is 3098 # removed, or if the value is a relative name. 3099 INSTALL=$ac_install_sh 3100 fi 3101fi 3102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3103printf "%s\n" "$INSTALL" >&6; } 3104 3105# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3106# It thinks the first close brace ends the variable substitution. 3107test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3108 3109test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3110 3111test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3112 3113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3114printf %s "checking whether sleep supports fractional seconds... " >&6; } 3115if test ${am_cv_sleep_fractional_seconds+y} 3116then : 3117 printf %s "(cached) " >&6 3118else case e in #( 3119 e) if sleep 0.001 2>/dev/null 3120then : 3121 am_cv_sleep_fractional_seconds=yes 3122else case e in #( 3123 e) am_cv_sleep_fractional_seconds=no ;; 3124esac 3125fi 3126 ;; 3127esac 3128fi 3129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3130printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3131 3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3133printf %s "checking filesystem timestamp resolution... " >&6; } 3134if test ${am_cv_filesystem_timestamp_resolution+y} 3135then : 3136 printf %s "(cached) " >&6 3137else case e in #( 3138 e) # Default to the worst case. 3139am_cv_filesystem_timestamp_resolution=2 3140 3141# Only try to go finer than 1 sec if sleep can do it. 3142# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3143# - 1 sec is not much of a win compared to 2 sec, and 3144# - it takes 2 seconds to perform the test whether 1 sec works. 3145# 3146# Instead, just use the default 2s on platforms that have 1s resolution, 3147# accept the extra 1s delay when using $sleep in the Automake tests, in 3148# exchange for not incurring the 2s delay for running the test for all 3149# packages. 3150# 3151am_try_resolutions= 3152if test "$am_cv_sleep_fractional_seconds" = yes; then 3153 # Even a millisecond often causes a bunch of false positives, 3154 # so just try a hundredth of a second. The time saved between .001 and 3155 # .01 is not terribly consequential. 3156 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3157fi 3158 3159# In order to catch current-generation FAT out, we must *modify* files 3160# that already exist; the *creation* timestamp is finer. Use names 3161# that make ls -t sort them differently when they have equal 3162# timestamps than when they have distinct timestamps, keeping 3163# in mind that ls -t prints the *newest* file first. 3164rm -f conftest.ts? 3165: > conftest.ts1 3166: > conftest.ts2 3167: > conftest.ts3 3168 3169# Make sure ls -t actually works. Do 'set' in a subshell so we don't 3170# clobber the current shell's arguments. (Outer-level square brackets 3171# are removed by m4; they're present so that m4 does not expand 3172# <dollar><star>; be careful, easy to get confused.) 3173if ( 3174 set X `ls -t conftest.ts[12]` && 3175 { 3176 test "$*" != "X conftest.ts1 conftest.ts2" || 3177 test "$*" != "X conftest.ts2 conftest.ts1"; 3178 } 3179); then :; else 3180 # If neither matched, then we have a broken ls. This can happen 3181 # if, for instance, CONFIG_SHELL is bash and it inherits a 3182 # broken ls alias from the environment. This has actually 3183 # happened. Such a system could not be considered "sane". 3184 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3186printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3187as_fn_error $? "ls -t produces unexpected output. 3188Make sure there is not a broken ls alias in your environment. 3189See 'config.log' for more details" "$LINENO" 5; } 3190fi 3191 3192for am_try_res in $am_try_resolutions; do 3193 # Any one fine-grained sleep might happen to cross the boundary 3194 # between two values of a coarser actual resolution, but if we do 3195 # two fine-grained sleeps in a row, at least one of them will fall 3196 # entirely within a coarse interval. 3197 echo alpha > conftest.ts1 3198 sleep $am_try_res 3199 echo beta > conftest.ts2 3200 sleep $am_try_res 3201 echo gamma > conftest.ts3 3202 3203 # We assume that 'ls -t' will make use of high-resolution 3204 # timestamps if the operating system supports them at all. 3205 if (set X `ls -t conftest.ts?` && 3206 test "$2" = conftest.ts3 && 3207 test "$3" = conftest.ts2 && 3208 test "$4" = conftest.ts1); then 3209 # 3210 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3211 # because we don't need to test make. 3212 make_ok=true 3213 if test $am_try_res != 1; then 3214 # But if we've succeeded so far with a subsecond resolution, we 3215 # have one more thing to check: make. It can happen that 3216 # everything else supports the subsecond mtimes, but make doesn't; 3217 # notably on macOS, which ships make 3.81 from 2006 (the last one 3218 # released under GPLv2). https://bugs.gnu.org/68808 3219 # 3220 # We test $MAKE if it is defined in the environment, else "make". 3221 # It might get overridden later, but our hope is that in practice 3222 # it does not matter: it is the system "make" which is (by far) 3223 # the most likely to be broken, whereas if the user overrides it, 3224 # probably they did so with a better, or at least not worse, make. 3225 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3226 # 3227 # Create a Makefile (real tab character here): 3228 rm -f conftest.mk 3229 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3230 echo ' touch conftest.ts2' >>conftest.mk 3231 # 3232 # Now, running 3233 # touch conftest.ts1; touch conftest.ts2; make 3234 # should touch ts1 because ts2 is newer. This could happen by luck, 3235 # but most often, it will fail if make's support is insufficient. So 3236 # test for several consecutive successes. 3237 # 3238 # (We reuse conftest.ts[12] because we still want to modify existing 3239 # files, not create new ones, per above.) 3240 n=0 3241 make=${MAKE-make} 3242 until test $n -eq 3; do 3243 echo one > conftest.ts1 3244 sleep $am_try_res 3245 echo two > conftest.ts2 # ts2 should now be newer than ts1 3246 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3247 make_ok=false 3248 break # out of $n loop 3249 fi 3250 n=`expr $n + 1` 3251 done 3252 fi 3253 # 3254 if $make_ok; then 3255 # Everything we know to check worked out, so call this resolution good. 3256 am_cv_filesystem_timestamp_resolution=$am_try_res 3257 break # out of $am_try_res loop 3258 fi 3259 # Otherwise, we'll go on to check the next resolution. 3260 fi 3261done 3262rm -f conftest.ts? 3263# (end _am_filesystem_timestamp_resolution) 3264 ;; 3265esac 3266fi 3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3268printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3269 3270# This check should not be cached, as it may vary across builds of 3271# different projects. 3272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3273printf %s "checking whether build environment is sane... " >&6; } 3274# Reject unsafe characters in $srcdir or the absolute working directory 3275# name. Accept space and tab only in the latter. 3276am_lf=' 3277' 3278case `pwd` in 3279 *[\\\"\#\$\&\'\`$am_lf]*) 3280 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3281esac 3282case $srcdir in 3283 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3284 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3285esac 3286 3287# Do 'set' in a subshell so we don't clobber the current shell's 3288# arguments. Must try -L first in case configure is actually a 3289# symlink; some systems play weird games with the mod time of symlinks 3290# (eg FreeBSD returns the mod time of the symlink's containing 3291# directory). 3292am_build_env_is_sane=no 3293am_has_slept=no 3294rm -f conftest.file 3295for am_try in 1 2; do 3296 echo "timestamp, slept: $am_has_slept" > conftest.file 3297 if ( 3298 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3299 if test "$*" = "X"; then 3300 # -L didn't work. 3301 set X `ls -t "$srcdir/configure" conftest.file` 3302 fi 3303 test "$2" = conftest.file 3304 ); then 3305 am_build_env_is_sane=yes 3306 break 3307 fi 3308 # Just in case. 3309 sleep "$am_cv_filesystem_timestamp_resolution" 3310 am_has_slept=yes 3311done 3312 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3314printf "%s\n" "$am_build_env_is_sane" >&6; } 3315if test "$am_build_env_is_sane" = no; then 3316 as_fn_error $? "newly created file is older than distributed files! 3317Check your system clock" "$LINENO" 5 3318fi 3319 3320# If we didn't sleep, we still need to ensure time stamps of config.status and 3321# generated files are strictly newer. 3322am_sleep_pid= 3323if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3324then : 3325 3326else case e in #( 3327 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3328 am_sleep_pid=$! 3329 ;; 3330esac 3331fi 3332 3333rm -f conftest.file 3334 3335test "$program_prefix" != NONE && 3336 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3337# Use a double $ so make ignores it. 3338test "$program_suffix" != NONE && 3339 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3340# Double any \ or $. 3341# By default was 's,x,x', remove it if useless. 3342ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3343program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3344 3345 3346# Expand $ac_aux_dir to an absolute path. 3347am_aux_dir=`cd "$ac_aux_dir" && pwd` 3348 3349 3350 if test x"${MISSING+set}" != xset; then 3351 MISSING="\${SHELL} '$am_aux_dir/missing'" 3352fi 3353# Use eval to expand $SHELL 3354if eval "$MISSING --is-lightweight"; then 3355 am_missing_run="$MISSING " 3356else 3357 am_missing_run= 3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3359printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3360fi 3361 3362if test x"${install_sh+set}" != xset; then 3363 case $am_aux_dir in 3364 *\ * | *\ *) 3365 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3366 *) 3367 install_sh="\${SHELL} $am_aux_dir/install-sh" 3368 esac 3369fi 3370 3371# Installed binaries are usually stripped using 'strip' when the user 3372# run "make install-strip". However 'strip' might not be the right 3373# tool to use in cross-compilation environments, therefore Automake 3374# will honor the 'STRIP' environment variable to overrule this program. 3375if test "$cross_compiling" != no; then 3376 if test -n "$ac_tool_prefix"; then 3377 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3378set dummy ${ac_tool_prefix}strip; ac_word=$2 3379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3380printf %s "checking for $ac_word... " >&6; } 3381if test ${ac_cv_prog_STRIP+y} 3382then : 3383 printf %s "(cached) " >&6 3384else case e in #( 3385 e) if test -n "$STRIP"; then 3386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3387else 3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3389for as_dir in $PATH 3390do 3391 IFS=$as_save_IFS 3392 case $as_dir in #((( 3393 '') as_dir=./ ;; 3394 */) ;; 3395 *) as_dir=$as_dir/ ;; 3396 esac 3397 for ac_exec_ext in '' $ac_executable_extensions; do 3398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3399 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3401 break 2 3402 fi 3403done 3404 done 3405IFS=$as_save_IFS 3406 3407fi ;; 3408esac 3409fi 3410STRIP=$ac_cv_prog_STRIP 3411if test -n "$STRIP"; then 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3413printf "%s\n" "$STRIP" >&6; } 3414else 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3416printf "%s\n" "no" >&6; } 3417fi 3418 3419 3420fi 3421if test -z "$ac_cv_prog_STRIP"; then 3422 ac_ct_STRIP=$STRIP 3423 # Extract the first word of "strip", so it can be a program name with args. 3424set dummy strip; ac_word=$2 3425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3426printf %s "checking for $ac_word... " >&6; } 3427if test ${ac_cv_prog_ac_ct_STRIP+y} 3428then : 3429 printf %s "(cached) " >&6 3430else case e in #( 3431 e) if test -n "$ac_ct_STRIP"; then 3432 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3433else 3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3435for as_dir in $PATH 3436do 3437 IFS=$as_save_IFS 3438 case $as_dir in #((( 3439 '') as_dir=./ ;; 3440 */) ;; 3441 *) as_dir=$as_dir/ ;; 3442 esac 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3445 ac_cv_prog_ac_ct_STRIP="strip" 3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449done 3450 done 3451IFS=$as_save_IFS 3452 3453fi ;; 3454esac 3455fi 3456ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3457if test -n "$ac_ct_STRIP"; then 3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3459printf "%s\n" "$ac_ct_STRIP" >&6; } 3460else 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3462printf "%s\n" "no" >&6; } 3463fi 3464 3465 if test "x$ac_ct_STRIP" = x; then 3466 STRIP=":" 3467 else 3468 case $cross_compiling:$ac_tool_warned in 3469yes:) 3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3471printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3472ac_tool_warned=yes ;; 3473esac 3474 STRIP=$ac_ct_STRIP 3475 fi 3476else 3477 STRIP="$ac_cv_prog_STRIP" 3478fi 3479 3480fi 3481INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3482 3483 3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3485printf %s "checking for a race-free mkdir -p... " >&6; } 3486if test -z "$MKDIR_P"; then 3487 if test ${ac_cv_path_mkdir+y} 3488then : 3489 printf %s "(cached) " >&6 3490else case e in #( 3491 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3492for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3493do 3494 IFS=$as_save_IFS 3495 case $as_dir in #((( 3496 '') as_dir=./ ;; 3497 */) ;; 3498 *) as_dir=$as_dir/ ;; 3499 esac 3500 for ac_prog in mkdir gmkdir; do 3501 for ac_exec_ext in '' $ac_executable_extensions; do 3502 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3503 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3504 'mkdir ('*'coreutils) '* | \ 3505 *'BusyBox '* | \ 3506 'mkdir (fileutils) '4.1*) 3507 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3508 break 3;; 3509 esac 3510 done 3511 done 3512 done 3513IFS=$as_save_IFS 3514 ;; 3515esac 3516fi 3517 3518 test -d ./--version && rmdir ./--version 3519 if test ${ac_cv_path_mkdir+y}; then 3520 MKDIR_P="$ac_cv_path_mkdir -p" 3521 else 3522 # As a last resort, use plain mkdir -p, 3523 # in the hope it doesn't have the bugs of ancient mkdir. 3524 MKDIR_P='mkdir -p' 3525 fi 3526fi 3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3528printf "%s\n" "$MKDIR_P" >&6; } 3529 3530for ac_prog in gawk mawk nawk awk 3531do 3532 # Extract the first word of "$ac_prog", so it can be a program name with args. 3533set dummy $ac_prog; ac_word=$2 3534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535printf %s "checking for $ac_word... " >&6; } 3536if test ${ac_cv_prog_AWK+y} 3537then : 3538 printf %s "(cached) " >&6 3539else case e in #( 3540 e) if test -n "$AWK"; then 3541 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3542else 3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3544for as_dir in $PATH 3545do 3546 IFS=$as_save_IFS 3547 case $as_dir in #((( 3548 '') as_dir=./ ;; 3549 */) ;; 3550 *) as_dir=$as_dir/ ;; 3551 esac 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3554 ac_cv_prog_AWK="$ac_prog" 3555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558done 3559 done 3560IFS=$as_save_IFS 3561 3562fi ;; 3563esac 3564fi 3565AWK=$ac_cv_prog_AWK 3566if test -n "$AWK"; then 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3568printf "%s\n" "$AWK" >&6; } 3569else 3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3571printf "%s\n" "no" >&6; } 3572fi 3573 3574 3575 test -n "$AWK" && break 3576done 3577 3578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3579printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3580set x ${MAKE-make} 3581ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3582if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3583then : 3584 printf %s "(cached) " >&6 3585else case e in #( 3586 e) cat >conftest.make <<\_ACEOF 3587SHELL = /bin/sh 3588all: 3589 @echo '@@@%%%=$(MAKE)=@@@%%%' 3590_ACEOF 3591# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3592case `${MAKE-make} -f conftest.make 2>/dev/null` in 3593 *@@@%%%=?*=@@@%%%*) 3594 eval ac_cv_prog_make_${ac_make}_set=yes;; 3595 *) 3596 eval ac_cv_prog_make_${ac_make}_set=no;; 3597esac 3598rm -f conftest.make ;; 3599esac 3600fi 3601if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3603printf "%s\n" "yes" >&6; } 3604 SET_MAKE= 3605else 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3607printf "%s\n" "no" >&6; } 3608 SET_MAKE="MAKE=${MAKE-make}" 3609fi 3610 3611rm -rf .tst 2>/dev/null 3612mkdir .tst 2>/dev/null 3613if test -d .tst; then 3614 am__leading_dot=. 3615else 3616 am__leading_dot=_ 3617fi 3618rmdir .tst 2>/dev/null 3619 3620AM_DEFAULT_VERBOSITY=1 3621# Check whether --enable-silent-rules was given. 3622if test ${enable_silent_rules+y} 3623then : 3624 enableval=$enable_silent_rules; 3625fi 3626 3627am_make=${MAKE-make} 3628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3629printf %s "checking whether $am_make supports nested variables... " >&6; } 3630if test ${am_cv_make_support_nested_variables+y} 3631then : 3632 printf %s "(cached) " >&6 3633else case e in #( 3634 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3635BAR0=false 3636BAR1=true 3637V=1 3638am__doit: 3639 @$(TRUE) 3640.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3641 am_cv_make_support_nested_variables=yes 3642else 3643 am_cv_make_support_nested_variables=no 3644fi ;; 3645esac 3646fi 3647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3648printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3649AM_BACKSLASH='\' 3650 3651am__rm_f_notfound= 3652if (rm -f && rm -fr && rm -rf) 2>/dev/null 3653then : 3654 3655else case e in #( 3656 e) am__rm_f_notfound='""' ;; 3657esac 3658fi 3659 3660 3661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3662printf %s "checking xargs -n works... " >&6; } 3663if test ${am_cv_xargs_n_works+y} 3664then : 3665 printf %s "(cached) " >&6 3666else case e in #( 3667 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 36683" 3669then : 3670 am_cv_xargs_n_works=yes 3671else case e in #( 3672 e) am_cv_xargs_n_works=no ;; 3673esac 3674fi ;; 3675esac 3676fi 3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3678printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3679if test "$am_cv_xargs_n_works" = yes 3680then : 3681 am__xargs_n='xargs -n' 3682else case e in #( 3683 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3684 ;; 3685esac 3686fi 3687 3688if test "`cd $srcdir && pwd`" != "`pwd`"; then 3689 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3690 # is not polluted with repeated "-I." 3691 am__isrc=' -I$(srcdir)' 3692 # test to see if srcdir already configured 3693 if test -f $srcdir/config.status; then 3694 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3695 fi 3696fi 3697 3698# test whether we have cygpath 3699if test -z "$CYGPATH_W"; then 3700 if (cygpath --version) >/dev/null 2>/dev/null; then 3701 CYGPATH_W='cygpath -w' 3702 else 3703 CYGPATH_W=echo 3704 fi 3705fi 3706 3707 3708# Define the identity of the package. 3709 PACKAGE='openpam' 3710 VERSION='20250531' 3711 3712 3713printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3714 3715 3716printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3717 3718# Some tools Automake needs. 3719 3720ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3721 3722 3723AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3724 3725 3726AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3727 3728 3729AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3730 3731 3732MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3733 3734# For better backward compatibility. To be removed once Automake 1.9.x 3735# dies out for good. For more background, see: 3736# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3737# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3738mkdir_p='$(MKDIR_P)' 3739 3740# We need awk for the "check" target (and possibly the TAP driver). The 3741# system "awk" is bad on some platforms. 3742# Always define AMTAR for backward compatibility. Yes, it's still used 3743# in the wild :-( We should find a proper way to deprecate it ... 3744AMTAR='$${TAR-tar}' 3745 3746 3747# We'll loop over all known methods to create a tar archive until one works. 3748_am_tools='gnutar pax cpio none' 3749 3750am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3751 3752 3753 3754 3755 3756# Variables for tags utilities; see am/tags.am 3757if test -z "$CTAGS"; then 3758 CTAGS=ctags 3759fi 3760 3761if test -z "$ETAGS"; then 3762 ETAGS=etags 3763fi 3764 3765if test -z "$CSCOPE"; then 3766 CSCOPE=cscope 3767fi 3768 3769 3770 3771 3772 3773 3774 3775ac_config_headers="$ac_config_headers config.h" 3776 3777 3778# C compiler and features 3779ac_ext=c 3780ac_cpp='$CPP $CPPFLAGS' 3781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3783ac_compiler_gnu=$ac_cv_c_compiler_gnu 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794DEPDIR="${am__leading_dot}deps" 3795 3796ac_config_commands="$ac_config_commands depfiles" 3797 3798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3799printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3800cat > confinc.mk << 'END' 3801am__doit: 3802 @echo this is the am__doit target >confinc.out 3803.PHONY: am__doit 3804END 3805am__include="#" 3806am__quote= 3807# BSD make does it like this. 3808echo '.include "confinc.mk" # ignored' > confmf.BSD 3809# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3810echo 'include confinc.mk # ignored' > confmf.GNU 3811_am_result=no 3812for s in GNU BSD; do 3813 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3814 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3815 ac_status=$? 3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3817 (exit $ac_status); } 3818 case $?:`cat confinc.out 2>/dev/null` in #( 3819 '0:this is the am__doit target') : 3820 case $s in #( 3821 BSD) : 3822 am__include='.include' am__quote='"' ;; #( 3823 *) : 3824 am__include='include' am__quote='' ;; 3825esac ;; #( 3826 *) : 3827 ;; 3828esac 3829 if test "$am__include" != "#"; then 3830 _am_result="yes ($s style)" 3831 break 3832 fi 3833done 3834rm -f confinc.* confmf.* 3835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3836printf "%s\n" "${_am_result}" >&6; } 3837 3838# Check whether --enable-dependency-tracking was given. 3839if test ${enable_dependency_tracking+y} 3840then : 3841 enableval=$enable_dependency_tracking; 3842fi 3843 3844if test "x$enable_dependency_tracking" != xno; then 3845 am_depcomp="$ac_aux_dir/depcomp" 3846 AMDEPBACKSLASH='\' 3847 am__nodep='_no' 3848fi 3849 if test "x$enable_dependency_tracking" != xno; then 3850 AMDEP_TRUE= 3851 AMDEP_FALSE='#' 3852else 3853 AMDEP_TRUE='#' 3854 AMDEP_FALSE= 3855fi 3856 3857 3858ac_ext=c 3859ac_cpp='$CPP $CPPFLAGS' 3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3862ac_compiler_gnu=$ac_cv_c_compiler_gnu 3863if test -n "$ac_tool_prefix"; then 3864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3865set dummy ${ac_tool_prefix}gcc; ac_word=$2 3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3867printf %s "checking for $ac_word... " >&6; } 3868if test ${ac_cv_prog_CC+y} 3869then : 3870 printf %s "(cached) " >&6 3871else case e in #( 3872 e) 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 case $as_dir in #((( 3880 '') as_dir=./ ;; 3881 */) ;; 3882 *) as_dir=$as_dir/ ;; 3883 esac 3884 for ac_exec_ext in '' $ac_executable_extensions; do 3885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3886 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3888 break 2 3889 fi 3890done 3891 done 3892IFS=$as_save_IFS 3893 3894fi ;; 3895esac 3896fi 3897CC=$ac_cv_prog_CC 3898if test -n "$CC"; then 3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3900printf "%s\n" "$CC" >&6; } 3901else 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903printf "%s\n" "no" >&6; } 3904fi 3905 3906 3907fi 3908if test -z "$ac_cv_prog_CC"; then 3909 ac_ct_CC=$CC 3910 # Extract the first word of "gcc", so it can be a program name with args. 3911set dummy gcc; ac_word=$2 3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3913printf %s "checking for $ac_word... " >&6; } 3914if test ${ac_cv_prog_ac_ct_CC+y} 3915then : 3916 printf %s "(cached) " >&6 3917else case e in #( 3918 e) if test -n "$ac_ct_CC"; then 3919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3920else 3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3922for as_dir in $PATH 3923do 3924 IFS=$as_save_IFS 3925 case $as_dir in #((( 3926 '') as_dir=./ ;; 3927 */) ;; 3928 *) as_dir=$as_dir/ ;; 3929 esac 3930 for ac_exec_ext in '' $ac_executable_extensions; do 3931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3932 ac_cv_prog_ac_ct_CC="gcc" 3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3934 break 2 3935 fi 3936done 3937 done 3938IFS=$as_save_IFS 3939 3940fi ;; 3941esac 3942fi 3943ac_ct_CC=$ac_cv_prog_ac_ct_CC 3944if test -n "$ac_ct_CC"; then 3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3946printf "%s\n" "$ac_ct_CC" >&6; } 3947else 3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3949printf "%s\n" "no" >&6; } 3950fi 3951 3952 if test "x$ac_ct_CC" = x; then 3953 CC="" 3954 else 3955 case $cross_compiling:$ac_tool_warned in 3956yes:) 3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3959ac_tool_warned=yes ;; 3960esac 3961 CC=$ac_ct_CC 3962 fi 3963else 3964 CC="$ac_cv_prog_CC" 3965fi 3966 3967if test -z "$CC"; then 3968 if test -n "$ac_tool_prefix"; then 3969 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3970set dummy ${ac_tool_prefix}cc; ac_word=$2 3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3972printf %s "checking for $ac_word... " >&6; } 3973if test ${ac_cv_prog_CC+y} 3974then : 3975 printf %s "(cached) " >&6 3976else case e in #( 3977 e) if test -n "$CC"; then 3978 ac_cv_prog_CC="$CC" # Let the user override the test. 3979else 3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3981for as_dir in $PATH 3982do 3983 IFS=$as_save_IFS 3984 case $as_dir in #((( 3985 '') as_dir=./ ;; 3986 */) ;; 3987 *) as_dir=$as_dir/ ;; 3988 esac 3989 for ac_exec_ext in '' $ac_executable_extensions; do 3990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3991 ac_cv_prog_CC="${ac_tool_prefix}cc" 3992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3993 break 2 3994 fi 3995done 3996 done 3997IFS=$as_save_IFS 3998 3999fi ;; 4000esac 4001fi 4002CC=$ac_cv_prog_CC 4003if test -n "$CC"; then 4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4005printf "%s\n" "$CC" >&6; } 4006else 4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4008printf "%s\n" "no" >&6; } 4009fi 4010 4011 4012 fi 4013fi 4014if test -z "$CC"; then 4015 # Extract the first word of "cc", so it can be a program name with args. 4016set dummy cc; ac_word=$2 4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4018printf %s "checking for $ac_word... " >&6; } 4019if test ${ac_cv_prog_CC+y} 4020then : 4021 printf %s "(cached) " >&6 4022else case e in #( 4023 e) if test -n "$CC"; then 4024 ac_cv_prog_CC="$CC" # Let the user override the test. 4025else 4026 ac_prog_rejected=no 4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028for as_dir in $PATH 4029do 4030 IFS=$as_save_IFS 4031 case $as_dir in #((( 4032 '') as_dir=./ ;; 4033 */) ;; 4034 *) as_dir=$as_dir/ ;; 4035 esac 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4038 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4039 ac_prog_rejected=yes 4040 continue 4041 fi 4042 ac_cv_prog_CC="cc" 4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4044 break 2 4045 fi 4046done 4047 done 4048IFS=$as_save_IFS 4049 4050if test $ac_prog_rejected = yes; then 4051 # We found a bogon in the path, so make sure we never use it. 4052 set dummy $ac_cv_prog_CC 4053 shift 4054 if test $# != 0; then 4055 # We chose a different compiler from the bogus one. 4056 # However, it has the same basename, so the bogon will be chosen 4057 # first if we set CC to just the basename; use the full file name. 4058 shift 4059 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4060 fi 4061fi 4062fi ;; 4063esac 4064fi 4065CC=$ac_cv_prog_CC 4066if test -n "$CC"; then 4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4068printf "%s\n" "$CC" >&6; } 4069else 4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4071printf "%s\n" "no" >&6; } 4072fi 4073 4074 4075fi 4076if test -z "$CC"; then 4077 if test -n "$ac_tool_prefix"; then 4078 for ac_prog in cl.exe 4079 do 4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4081set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4083printf %s "checking for $ac_word... " >&6; } 4084if test ${ac_cv_prog_CC+y} 4085then : 4086 printf %s "(cached) " >&6 4087else case e in #( 4088 e) if test -n "$CC"; then 4089 ac_cv_prog_CC="$CC" # Let the user override the test. 4090else 4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4092for as_dir in $PATH 4093do 4094 IFS=$as_save_IFS 4095 case $as_dir in #((( 4096 '') as_dir=./ ;; 4097 */) ;; 4098 *) as_dir=$as_dir/ ;; 4099 esac 4100 for ac_exec_ext in '' $ac_executable_extensions; do 4101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4102 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4104 break 2 4105 fi 4106done 4107 done 4108IFS=$as_save_IFS 4109 4110fi ;; 4111esac 4112fi 4113CC=$ac_cv_prog_CC 4114if test -n "$CC"; then 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4116printf "%s\n" "$CC" >&6; } 4117else 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4119printf "%s\n" "no" >&6; } 4120fi 4121 4122 4123 test -n "$CC" && break 4124 done 4125fi 4126if test -z "$CC"; then 4127 ac_ct_CC=$CC 4128 for ac_prog in cl.exe 4129do 4130 # Extract the first word of "$ac_prog", so it can be a program name with args. 4131set dummy $ac_prog; ac_word=$2 4132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4133printf %s "checking for $ac_word... " >&6; } 4134if test ${ac_cv_prog_ac_ct_CC+y} 4135then : 4136 printf %s "(cached) " >&6 4137else case e in #( 4138 e) if test -n "$ac_ct_CC"; then 4139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4140else 4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4142for as_dir in $PATH 4143do 4144 IFS=$as_save_IFS 4145 case $as_dir in #((( 4146 '') as_dir=./ ;; 4147 */) ;; 4148 *) as_dir=$as_dir/ ;; 4149 esac 4150 for ac_exec_ext in '' $ac_executable_extensions; do 4151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4152 ac_cv_prog_ac_ct_CC="$ac_prog" 4153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4154 break 2 4155 fi 4156done 4157 done 4158IFS=$as_save_IFS 4159 4160fi ;; 4161esac 4162fi 4163ac_ct_CC=$ac_cv_prog_ac_ct_CC 4164if test -n "$ac_ct_CC"; then 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4166printf "%s\n" "$ac_ct_CC" >&6; } 4167else 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4169printf "%s\n" "no" >&6; } 4170fi 4171 4172 4173 test -n "$ac_ct_CC" && break 4174done 4175 4176 if test "x$ac_ct_CC" = x; then 4177 CC="" 4178 else 4179 case $cross_compiling:$ac_tool_warned in 4180yes:) 4181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4182printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4183ac_tool_warned=yes ;; 4184esac 4185 CC=$ac_ct_CC 4186 fi 4187fi 4188 4189fi 4190if test -z "$CC"; then 4191 if test -n "$ac_tool_prefix"; then 4192 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4193set dummy ${ac_tool_prefix}clang; ac_word=$2 4194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4195printf %s "checking for $ac_word... " >&6; } 4196if test ${ac_cv_prog_CC+y} 4197then : 4198 printf %s "(cached) " >&6 4199else case e in #( 4200 e) if test -n "$CC"; then 4201 ac_cv_prog_CC="$CC" # Let the user override the test. 4202else 4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4204for as_dir in $PATH 4205do 4206 IFS=$as_save_IFS 4207 case $as_dir in #((( 4208 '') as_dir=./ ;; 4209 */) ;; 4210 *) as_dir=$as_dir/ ;; 4211 esac 4212 for ac_exec_ext in '' $ac_executable_extensions; do 4213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4214 ac_cv_prog_CC="${ac_tool_prefix}clang" 4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4216 break 2 4217 fi 4218done 4219 done 4220IFS=$as_save_IFS 4221 4222fi ;; 4223esac 4224fi 4225CC=$ac_cv_prog_CC 4226if test -n "$CC"; then 4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4228printf "%s\n" "$CC" >&6; } 4229else 4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4231printf "%s\n" "no" >&6; } 4232fi 4233 4234 4235fi 4236if test -z "$ac_cv_prog_CC"; then 4237 ac_ct_CC=$CC 4238 # Extract the first word of "clang", so it can be a program name with args. 4239set dummy clang; ac_word=$2 4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4241printf %s "checking for $ac_word... " >&6; } 4242if test ${ac_cv_prog_ac_ct_CC+y} 4243then : 4244 printf %s "(cached) " >&6 4245else case e in #( 4246 e) if test -n "$ac_ct_CC"; then 4247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4248else 4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4250for as_dir in $PATH 4251do 4252 IFS=$as_save_IFS 4253 case $as_dir in #((( 4254 '') as_dir=./ ;; 4255 */) ;; 4256 *) as_dir=$as_dir/ ;; 4257 esac 4258 for ac_exec_ext in '' $ac_executable_extensions; do 4259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4260 ac_cv_prog_ac_ct_CC="clang" 4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4262 break 2 4263 fi 4264done 4265 done 4266IFS=$as_save_IFS 4267 4268fi ;; 4269esac 4270fi 4271ac_ct_CC=$ac_cv_prog_ac_ct_CC 4272if test -n "$ac_ct_CC"; then 4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4274printf "%s\n" "$ac_ct_CC" >&6; } 4275else 4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4277printf "%s\n" "no" >&6; } 4278fi 4279 4280 if test "x$ac_ct_CC" = x; then 4281 CC="" 4282 else 4283 case $cross_compiling:$ac_tool_warned in 4284yes:) 4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4286printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4287ac_tool_warned=yes ;; 4288esac 4289 CC=$ac_ct_CC 4290 fi 4291else 4292 CC="$ac_cv_prog_CC" 4293fi 4294 4295fi 4296 4297 4298test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4299printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4300as_fn_error $? "no acceptable C compiler found in \$PATH 4301See 'config.log' for more details" "$LINENO" 5; } 4302 4303# Provide some information about the compiler. 4304printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4305set X $ac_compile 4306ac_compiler=$2 4307for ac_option in --version -v -V -qversion -version; do 4308 { { ac_try="$ac_compiler $ac_option >&5" 4309case "(($ac_try" in 4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4311 *) ac_try_echo=$ac_try;; 4312esac 4313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4314printf "%s\n" "$ac_try_echo"; } >&5 4315 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4316 ac_status=$? 4317 if test -s conftest.err; then 4318 sed '10a\ 4319... rest of stderr output deleted ... 4320 10q' conftest.err >conftest.er1 4321 cat conftest.er1 >&5 4322 fi 4323 rm -f conftest.er1 conftest.err 4324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4325 test $ac_status = 0; } 4326done 4327 4328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4329/* end confdefs.h. */ 4330 4331int 4332main (void) 4333{ 4334 4335 ; 4336 return 0; 4337} 4338_ACEOF 4339ac_clean_files_save=$ac_clean_files 4340ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4341# Try to create an executable without -o first, disregard a.out. 4342# It will help us diagnose broken compilers, and finding out an intuition 4343# of exeext. 4344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4345printf %s "checking whether the C compiler works... " >&6; } 4346ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4347 4348# The possible output files: 4349ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4350 4351ac_rmfiles= 4352for ac_file in $ac_files 4353do 4354 case $ac_file in 4355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4356 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4357 esac 4358done 4359rm -f $ac_rmfiles 4360 4361if { { ac_try="$ac_link_default" 4362case "(($ac_try" in 4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4364 *) ac_try_echo=$ac_try;; 4365esac 4366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4367printf "%s\n" "$ac_try_echo"; } >&5 4368 (eval "$ac_link_default") 2>&5 4369 ac_status=$? 4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4371 test $ac_status = 0; } 4372then : 4373 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4374# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4375# in a Makefile. We should not override ac_cv_exeext if it was cached, 4376# so that the user can short-circuit this test for compilers unknown to 4377# Autoconf. 4378for ac_file in $ac_files '' 4379do 4380 test -f "$ac_file" || continue 4381 case $ac_file in 4382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4383 ;; 4384 [ab].out ) 4385 # We found the default executable, but exeext='' is most 4386 # certainly right. 4387 break;; 4388 *.* ) 4389 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4390 then :; else 4391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4392 fi 4393 # We set ac_cv_exeext here because the later test for it is not 4394 # safe: cross compilers may not add the suffix if given an '-o' 4395 # argument, so we may need to know it at that point already. 4396 # Even if this section looks crufty: it has the advantage of 4397 # actually working. 4398 break;; 4399 * ) 4400 break;; 4401 esac 4402done 4403test "$ac_cv_exeext" = no && ac_cv_exeext= 4404 4405else case e in #( 4406 e) ac_file='' ;; 4407esac 4408fi 4409if test -z "$ac_file" 4410then : 4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4412printf "%s\n" "no" >&6; } 4413printf "%s\n" "$as_me: failed program was:" >&5 4414sed 's/^/| /' conftest.$ac_ext >&5 4415 4416{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4417printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4418as_fn_error 77 "C compiler cannot create executables 4419See 'config.log' for more details" "$LINENO" 5; } 4420else case e in #( 4421 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4422printf "%s\n" "yes" >&6; } ;; 4423esac 4424fi 4425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4426printf %s "checking for C compiler default output file name... " >&6; } 4427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4428printf "%s\n" "$ac_file" >&6; } 4429ac_exeext=$ac_cv_exeext 4430 4431rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4432ac_clean_files=$ac_clean_files_save 4433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4434printf %s "checking for suffix of executables... " >&6; } 4435if { { ac_try="$ac_link" 4436case "(($ac_try" in 4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4438 *) ac_try_echo=$ac_try;; 4439esac 4440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4441printf "%s\n" "$ac_try_echo"; } >&5 4442 (eval "$ac_link") 2>&5 4443 ac_status=$? 4444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4445 test $ac_status = 0; } 4446then : 4447 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4448# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4449# work properly (i.e., refer to 'conftest.exe'), while it won't with 4450# 'rm'. 4451for ac_file in conftest.exe conftest conftest.*; do 4452 test -f "$ac_file" || continue 4453 case $ac_file in 4454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4456 break;; 4457 * ) break;; 4458 esac 4459done 4460else case e in #( 4461 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4462printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4463as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4464See 'config.log' for more details" "$LINENO" 5; } ;; 4465esac 4466fi 4467rm -f conftest conftest$ac_cv_exeext 4468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4469printf "%s\n" "$ac_cv_exeext" >&6; } 4470 4471rm -f conftest.$ac_ext 4472EXEEXT=$ac_cv_exeext 4473ac_exeext=$EXEEXT 4474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475/* end confdefs.h. */ 4476#include <stdio.h> 4477int 4478main (void) 4479{ 4480FILE *f = fopen ("conftest.out", "w"); 4481 if (!f) 4482 return 1; 4483 return ferror (f) || fclose (f) != 0; 4484 4485 ; 4486 return 0; 4487} 4488_ACEOF 4489ac_clean_files="$ac_clean_files conftest.out" 4490# Check that the compiler produces executables we can run. If not, either 4491# the compiler is broken, or we cross compile. 4492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4493printf %s "checking whether we are cross compiling... " >&6; } 4494if test "$cross_compiling" != yes; then 4495 { { ac_try="$ac_link" 4496case "(($ac_try" in 4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4498 *) ac_try_echo=$ac_try;; 4499esac 4500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4501printf "%s\n" "$ac_try_echo"; } >&5 4502 (eval "$ac_link") 2>&5 4503 ac_status=$? 4504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4505 test $ac_status = 0; } 4506 if { ac_try='./conftest$ac_cv_exeext' 4507 { { case "(($ac_try" in 4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4509 *) ac_try_echo=$ac_try;; 4510esac 4511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4512printf "%s\n" "$ac_try_echo"; } >&5 4513 (eval "$ac_try") 2>&5 4514 ac_status=$? 4515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4516 test $ac_status = 0; }; }; then 4517 cross_compiling=no 4518 else 4519 if test "$cross_compiling" = maybe; then 4520 cross_compiling=yes 4521 else 4522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4523printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4524as_fn_error 77 "cannot run C compiled programs. 4525If you meant to cross compile, use '--host'. 4526See 'config.log' for more details" "$LINENO" 5; } 4527 fi 4528 fi 4529fi 4530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4531printf "%s\n" "$cross_compiling" >&6; } 4532 4533rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4534 conftest.o conftest.obj conftest.out 4535ac_clean_files=$ac_clean_files_save 4536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4537printf %s "checking for suffix of object files... " >&6; } 4538if test ${ac_cv_objext+y} 4539then : 4540 printf %s "(cached) " >&6 4541else case e in #( 4542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4543/* end confdefs.h. */ 4544 4545int 4546main (void) 4547{ 4548 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553rm -f conftest.o conftest.obj 4554if { { ac_try="$ac_compile" 4555case "(($ac_try" in 4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4557 *) ac_try_echo=$ac_try;; 4558esac 4559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4560printf "%s\n" "$ac_try_echo"; } >&5 4561 (eval "$ac_compile") 2>&5 4562 ac_status=$? 4563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4564 test $ac_status = 0; } 4565then : 4566 for ac_file in conftest.o conftest.obj conftest.*; do 4567 test -f "$ac_file" || continue; 4568 case $ac_file in 4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4571 break;; 4572 esac 4573done 4574else case e in #( 4575 e) printf "%s\n" "$as_me: failed program was:" >&5 4576sed 's/^/| /' conftest.$ac_ext >&5 4577 4578{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4579printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4580as_fn_error $? "cannot compute suffix of object files: cannot compile 4581See 'config.log' for more details" "$LINENO" 5; } ;; 4582esac 4583fi 4584rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4585esac 4586fi 4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4588printf "%s\n" "$ac_cv_objext" >&6; } 4589OBJEXT=$ac_cv_objext 4590ac_objext=$OBJEXT 4591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4592printf %s "checking whether the compiler supports GNU C... " >&6; } 4593if test ${ac_cv_c_compiler_gnu+y} 4594then : 4595 printf %s "(cached) " >&6 4596else case e in #( 4597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4598/* end confdefs.h. */ 4599 4600int 4601main (void) 4602{ 4603#ifndef __GNUC__ 4604 choke me 4605#endif 4606 4607 ; 4608 return 0; 4609} 4610_ACEOF 4611if ac_fn_c_try_compile "$LINENO" 4612then : 4613 ac_compiler_gnu=yes 4614else case e in #( 4615 e) ac_compiler_gnu=no ;; 4616esac 4617fi 4618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4619ac_cv_c_compiler_gnu=$ac_compiler_gnu 4620 ;; 4621esac 4622fi 4623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4624printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4625ac_compiler_gnu=$ac_cv_c_compiler_gnu 4626 4627if test $ac_compiler_gnu = yes; then 4628 GCC=yes 4629else 4630 GCC= 4631fi 4632ac_test_CFLAGS=${CFLAGS+y} 4633ac_save_CFLAGS=$CFLAGS 4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4635printf %s "checking whether $CC accepts -g... " >&6; } 4636if test ${ac_cv_prog_cc_g+y} 4637then : 4638 printf %s "(cached) " >&6 4639else case e in #( 4640 e) ac_save_c_werror_flag=$ac_c_werror_flag 4641 ac_c_werror_flag=yes 4642 ac_cv_prog_cc_g=no 4643 CFLAGS="-g" 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645/* end confdefs.h. */ 4646 4647int 4648main (void) 4649{ 4650 4651 ; 4652 return 0; 4653} 4654_ACEOF 4655if ac_fn_c_try_compile "$LINENO" 4656then : 4657 ac_cv_prog_cc_g=yes 4658else case e in #( 4659 e) CFLAGS="" 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662 4663int 4664main (void) 4665{ 4666 4667 ; 4668 return 0; 4669} 4670_ACEOF 4671if ac_fn_c_try_compile "$LINENO" 4672then : 4673 4674else case e in #( 4675 e) ac_c_werror_flag=$ac_save_c_werror_flag 4676 CFLAGS="-g" 4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4678/* end confdefs.h. */ 4679 4680int 4681main (void) 4682{ 4683 4684 ; 4685 return 0; 4686} 4687_ACEOF 4688if ac_fn_c_try_compile "$LINENO" 4689then : 4690 ac_cv_prog_cc_g=yes 4691fi 4692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4693esac 4694fi 4695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4696esac 4697fi 4698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4699 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4700esac 4701fi 4702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4703printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4704if test $ac_test_CFLAGS; then 4705 CFLAGS=$ac_save_CFLAGS 4706elif test $ac_cv_prog_cc_g = yes; then 4707 if test "$GCC" = yes; then 4708 CFLAGS="-g -O2" 4709 else 4710 CFLAGS="-g" 4711 fi 4712else 4713 if test "$GCC" = yes; then 4714 CFLAGS="-O2" 4715 else 4716 CFLAGS= 4717 fi 4718fi 4719ac_prog_cc_stdc=no 4720if test x$ac_prog_cc_stdc = xno 4721then : 4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4723printf %s "checking for $CC option to enable C11 features... " >&6; } 4724if test ${ac_cv_prog_cc_c11+y} 4725then : 4726 printf %s "(cached) " >&6 4727else case e in #( 4728 e) ac_cv_prog_cc_c11=no 4729ac_save_CC=$CC 4730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731/* end confdefs.h. */ 4732$ac_c_conftest_c11_program 4733_ACEOF 4734for ac_arg in '' -std=gnu11 4735do 4736 CC="$ac_save_CC $ac_arg" 4737 if ac_fn_c_try_compile "$LINENO" 4738then : 4739 ac_cv_prog_cc_c11=$ac_arg 4740fi 4741rm -f core conftest.err conftest.$ac_objext conftest.beam 4742 test "x$ac_cv_prog_cc_c11" != "xno" && break 4743done 4744rm -f conftest.$ac_ext 4745CC=$ac_save_CC ;; 4746esac 4747fi 4748 4749if test "x$ac_cv_prog_cc_c11" = xno 4750then : 4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4752printf "%s\n" "unsupported" >&6; } 4753else case e in #( 4754 e) if test "x$ac_cv_prog_cc_c11" = x 4755then : 4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4757printf "%s\n" "none needed" >&6; } 4758else case e in #( 4759 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4760printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4761 CC="$CC $ac_cv_prog_cc_c11" ;; 4762esac 4763fi 4764 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4765 ac_prog_cc_stdc=c11 ;; 4766esac 4767fi 4768fi 4769if test x$ac_prog_cc_stdc = xno 4770then : 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4772printf %s "checking for $CC option to enable C99 features... " >&6; } 4773if test ${ac_cv_prog_cc_c99+y} 4774then : 4775 printf %s "(cached) " >&6 4776else case e in #( 4777 e) ac_cv_prog_cc_c99=no 4778ac_save_CC=$CC 4779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781$ac_c_conftest_c99_program 4782_ACEOF 4783for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4784do 4785 CC="$ac_save_CC $ac_arg" 4786 if ac_fn_c_try_compile "$LINENO" 4787then : 4788 ac_cv_prog_cc_c99=$ac_arg 4789fi 4790rm -f core conftest.err conftest.$ac_objext conftest.beam 4791 test "x$ac_cv_prog_cc_c99" != "xno" && break 4792done 4793rm -f conftest.$ac_ext 4794CC=$ac_save_CC ;; 4795esac 4796fi 4797 4798if test "x$ac_cv_prog_cc_c99" = xno 4799then : 4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4801printf "%s\n" "unsupported" >&6; } 4802else case e in #( 4803 e) if test "x$ac_cv_prog_cc_c99" = x 4804then : 4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4806printf "%s\n" "none needed" >&6; } 4807else case e in #( 4808 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4809printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4810 CC="$CC $ac_cv_prog_cc_c99" ;; 4811esac 4812fi 4813 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4814 ac_prog_cc_stdc=c99 ;; 4815esac 4816fi 4817fi 4818if test x$ac_prog_cc_stdc = xno 4819then : 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4821printf %s "checking for $CC option to enable C89 features... " >&6; } 4822if test ${ac_cv_prog_cc_c89+y} 4823then : 4824 printf %s "(cached) " >&6 4825else case e in #( 4826 e) ac_cv_prog_cc_c89=no 4827ac_save_CC=$CC 4828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829/* end confdefs.h. */ 4830$ac_c_conftest_c89_program 4831_ACEOF 4832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4833do 4834 CC="$ac_save_CC $ac_arg" 4835 if ac_fn_c_try_compile "$LINENO" 4836then : 4837 ac_cv_prog_cc_c89=$ac_arg 4838fi 4839rm -f core conftest.err conftest.$ac_objext conftest.beam 4840 test "x$ac_cv_prog_cc_c89" != "xno" && break 4841done 4842rm -f conftest.$ac_ext 4843CC=$ac_save_CC ;; 4844esac 4845fi 4846 4847if test "x$ac_cv_prog_cc_c89" = xno 4848then : 4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4850printf "%s\n" "unsupported" >&6; } 4851else case e in #( 4852 e) if test "x$ac_cv_prog_cc_c89" = x 4853then : 4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4855printf "%s\n" "none needed" >&6; } 4856else case e in #( 4857 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4858printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4859 CC="$CC $ac_cv_prog_cc_c89" ;; 4860esac 4861fi 4862 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4863 ac_prog_cc_stdc=c89 ;; 4864esac 4865fi 4866fi 4867 4868ac_ext=c 4869ac_cpp='$CPP $CPPFLAGS' 4870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4872ac_compiler_gnu=$ac_cv_c_compiler_gnu 4873 4874 4875 ac_ext=c 4876ac_cpp='$CPP $CPPFLAGS' 4877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4879ac_compiler_gnu=$ac_cv_c_compiler_gnu 4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4881printf %s "checking whether $CC understands -c and -o together... " >&6; } 4882if test ${am_cv_prog_cc_c_o+y} 4883then : 4884 printf %s "(cached) " >&6 4885else case e in #( 4886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888 4889int 4890main (void) 4891{ 4892 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897 # Make sure it works both with $CC and with simple cc. 4898 # Following AC_PROG_CC_C_O, we do the test twice because some 4899 # compilers refuse to overwrite an existing .o file with -o, 4900 # though they will create one. 4901 am_cv_prog_cc_c_o=yes 4902 for am_i in 1 2; do 4903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4905 ac_status=$? 4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4907 (exit $ac_status); } \ 4908 && test -f conftest2.$ac_objext; then 4909 : OK 4910 else 4911 am_cv_prog_cc_c_o=no 4912 break 4913 fi 4914 done 4915 rm -f core conftest* 4916 unset am_i ;; 4917esac 4918fi 4919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4920printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4921if test "$am_cv_prog_cc_c_o" != yes; then 4922 # Losing compiler, so override with the script. 4923 # FIXME: It is wrong to rewrite CC. 4924 # But if we don't then we get into trouble of one sort or another. 4925 # A longer-term fix would be to have automake use am__CC in this case, 4926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4927 CC="$am_aux_dir/compile $CC" 4928fi 4929ac_ext=c 4930ac_cpp='$CPP $CPPFLAGS' 4931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4933ac_compiler_gnu=$ac_cv_c_compiler_gnu 4934 4935 4936depcc="$CC" am_compiler_list= 4937 4938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4939printf %s "checking dependency style of $depcc... " >&6; } 4940if test ${am_cv_CC_dependencies_compiler_type+y} 4941then : 4942 printf %s "(cached) " >&6 4943else case e in #( 4944 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4945 # We make a subdir and do the tests there. Otherwise we can end up 4946 # making bogus files that we don't know about and never remove. For 4947 # instance it was reported that on HP-UX the gcc test will end up 4948 # making a dummy file named 'D' -- because '-MD' means "put the output 4949 # in D". 4950 rm -rf conftest.dir 4951 mkdir conftest.dir 4952 # Copy depcomp to subdir because otherwise we won't find it if we're 4953 # using a relative directory. 4954 cp "$am_depcomp" conftest.dir 4955 cd conftest.dir 4956 # We will build objects and dependencies in a subdirectory because 4957 # it helps to detect inapplicable dependency modes. For instance 4958 # both Tru64's cc and ICC support -MD to output dependencies as a 4959 # side effect of compilation, but ICC will put the dependencies in 4960 # the current directory while Tru64 will put them in the object 4961 # directory. 4962 mkdir sub 4963 4964 am_cv_CC_dependencies_compiler_type=none 4965 if test "$am_compiler_list" = ""; then 4966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4967 fi 4968 am__universal=false 4969 case " $depcc " in #( 4970 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4971 esac 4972 4973 for depmode in $am_compiler_list; do 4974 # Setup a source with many dependencies, because some compilers 4975 # like to wrap large dependency lists on column 80 (with \), and 4976 # we should not choose a depcomp mode which is confused by this. 4977 # 4978 # We need to recreate these files for each test, as the compiler may 4979 # overwrite some of them when testing with obscure command lines. 4980 # This happens at least with the AIX C compiler. 4981 : > sub/conftest.c 4982 for i in 1 2 3 4 5 6; do 4983 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4984 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4985 # Solaris 10 /bin/sh. 4986 echo '/* dummy */' > sub/conftst$i.h 4987 done 4988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4989 4990 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4991 # mode. It turns out that the SunPro C++ compiler does not properly 4992 # handle '-M -o', and we need to detect this. Also, some Intel 4993 # versions had trouble with output in subdirs. 4994 am__obj=sub/conftest.${OBJEXT-o} 4995 am__minus_obj="-o $am__obj" 4996 case $depmode in 4997 gcc) 4998 # This depmode causes a compiler race in universal mode. 4999 test "$am__universal" = false || continue 5000 ;; 5001 nosideeffect) 5002 # After this tag, mechanisms are not by side-effect, so they'll 5003 # only be used when explicitly requested. 5004 if test "x$enable_dependency_tracking" = xyes; then 5005 continue 5006 else 5007 break 5008 fi 5009 ;; 5010 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5011 # This compiler won't grok '-c -o', but also, the minuso test has 5012 # not run yet. These depmodes are late enough in the game, and 5013 # so weak that their functioning should not be impacted. 5014 am__obj=conftest.${OBJEXT-o} 5015 am__minus_obj= 5016 ;; 5017 none) break ;; 5018 esac 5019 if depmode=$depmode \ 5020 source=sub/conftest.c object=$am__obj \ 5021 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5022 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5023 >/dev/null 2>conftest.err && 5024 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5026 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5028 # icc doesn't choke on unknown options, it will just issue warnings 5029 # or remarks (even with -Werror). So we grep stderr for any message 5030 # that says an option was ignored or not supported. 5031 # When given -MP, icc 7.0 and 7.1 complain thus: 5032 # icc: Command line warning: ignoring option '-M'; no argument required 5033 # The diagnosis changed in icc 8.0: 5034 # icc: Command line remark: option '-MP' not supported 5035 if (grep 'ignoring option' conftest.err || 5036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5037 am_cv_CC_dependencies_compiler_type=$depmode 5038 break 5039 fi 5040 fi 5041 done 5042 5043 cd .. 5044 rm -rf conftest.dir 5045else 5046 am_cv_CC_dependencies_compiler_type=none 5047fi 5048 ;; 5049esac 5050fi 5051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5052printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5053CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5054 5055 if 5056 test "x$enable_dependency_tracking" != xno \ 5057 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5058 am__fastdepCC_TRUE= 5059 am__fastdepCC_FALSE='#' 5060else 5061 am__fastdepCC_TRUE='#' 5062 am__fastdepCC_FALSE= 5063fi 5064 5065 5066 5067ac_header= ac_cache= 5068for ac_item in $ac_header_c_list 5069do 5070 if test $ac_cache; then 5071 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5072 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5073 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5074 fi 5075 ac_header= ac_cache= 5076 elif test $ac_header; then 5077 ac_cache=$ac_item 5078 else 5079 ac_header=$ac_item 5080 fi 5081done 5082 5083 5084 5085 5086 5087 5088 5089 5090if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5091then : 5092 5093printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5094 5095fi 5096 5097 5098 5099 5100 5101 5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5103printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5104if test ${ac_cv_safe_to_define___extensions__+y} 5105then : 5106 printf %s "(cached) " >&6 5107else case e in #( 5108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110 5111# define __EXTENSIONS__ 1 5112 $ac_includes_default 5113int 5114main (void) 5115{ 5116 5117 ; 5118 return 0; 5119} 5120_ACEOF 5121if ac_fn_c_try_compile "$LINENO" 5122then : 5123 ac_cv_safe_to_define___extensions__=yes 5124else case e in #( 5125 e) ac_cv_safe_to_define___extensions__=no ;; 5126esac 5127fi 5128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5129esac 5130fi 5131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5132printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5133 5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5135printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5136if test ${ac_cv_should_define__xopen_source+y} 5137then : 5138 printf %s "(cached) " >&6 5139else case e in #( 5140 e) ac_cv_should_define__xopen_source=no 5141 if test $ac_cv_header_wchar_h = yes 5142then : 5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5144/* end confdefs.h. */ 5145 5146 #include <wchar.h> 5147 mbstate_t x; 5148int 5149main (void) 5150{ 5151 5152 ; 5153 return 0; 5154} 5155_ACEOF 5156if ac_fn_c_try_compile "$LINENO" 5157then : 5158 5159else case e in #( 5160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5161/* end confdefs.h. */ 5162 5163 #define _XOPEN_SOURCE 500 5164 #include <wchar.h> 5165 mbstate_t x; 5166int 5167main (void) 5168{ 5169 5170 ; 5171 return 0; 5172} 5173_ACEOF 5174if ac_fn_c_try_compile "$LINENO" 5175then : 5176 ac_cv_should_define__xopen_source=yes 5177fi 5178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5179esac 5180fi 5181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5182fi ;; 5183esac 5184fi 5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5186printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5187 5188 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5189 5190 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5191 5192 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5193 5194 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5195 5196 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5197 5198 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5199 5200 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5201 5202 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5203 5204 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5205 5206 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5207 5208 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5209 5210 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5211 5212 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5213 5214 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5215 5216 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5217 5218 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5219 5220 if test $ac_cv_header_minix_config_h = yes 5221then : 5222 MINIX=yes 5223 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5224 5225 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5226 5227 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5228 5229else case e in #( 5230 e) MINIX= ;; 5231esac 5232fi 5233 if test $ac_cv_safe_to_define___extensions__ = yes 5234then : 5235 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5236 5237fi 5238 if test $ac_cv_should_define__xopen_source = yes 5239then : 5240 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5241 5242fi 5243 5244ac_ext=c 5245ac_cpp='$CPP $CPPFLAGS' 5246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5248ac_compiler_gnu=$ac_cv_c_compiler_gnu 5249if test -n "$ac_tool_prefix"; then 5250 for ac_prog in clang gcc cc 5251 do 5252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5253set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5255printf %s "checking for $ac_word... " >&6; } 5256if test ${ac_cv_prog_CC+y} 5257then : 5258 printf %s "(cached) " >&6 5259else case e in #( 5260 e) if test -n "$CC"; then 5261 ac_cv_prog_CC="$CC" # Let the user override the test. 5262else 5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5264for as_dir in $PATH 5265do 5266 IFS=$as_save_IFS 5267 case $as_dir in #((( 5268 '') as_dir=./ ;; 5269 */) ;; 5270 *) as_dir=$as_dir/ ;; 5271 esac 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5276 break 2 5277 fi 5278done 5279 done 5280IFS=$as_save_IFS 5281 5282fi ;; 5283esac 5284fi 5285CC=$ac_cv_prog_CC 5286if test -n "$CC"; then 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5288printf "%s\n" "$CC" >&6; } 5289else 5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291printf "%s\n" "no" >&6; } 5292fi 5293 5294 5295 test -n "$CC" && break 5296 done 5297fi 5298if test -z "$CC"; then 5299 ac_ct_CC=$CC 5300 for ac_prog in clang gcc cc 5301do 5302 # Extract the first word of "$ac_prog", so it can be a program name with args. 5303set dummy $ac_prog; ac_word=$2 5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305printf %s "checking for $ac_word... " >&6; } 5306if test ${ac_cv_prog_ac_ct_CC+y} 5307then : 5308 printf %s "(cached) " >&6 5309else case e in #( 5310 e) if test -n "$ac_ct_CC"; then 5311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5312else 5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314for as_dir in $PATH 5315do 5316 IFS=$as_save_IFS 5317 case $as_dir in #((( 5318 '') as_dir=./ ;; 5319 */) ;; 5320 *) as_dir=$as_dir/ ;; 5321 esac 5322 for ac_exec_ext in '' $ac_executable_extensions; do 5323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5324 ac_cv_prog_ac_ct_CC="$ac_prog" 5325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5326 break 2 5327 fi 5328done 5329 done 5330IFS=$as_save_IFS 5331 5332fi ;; 5333esac 5334fi 5335ac_ct_CC=$ac_cv_prog_ac_ct_CC 5336if test -n "$ac_ct_CC"; then 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5338printf "%s\n" "$ac_ct_CC" >&6; } 5339else 5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5341printf "%s\n" "no" >&6; } 5342fi 5343 5344 5345 test -n "$ac_ct_CC" && break 5346done 5347 5348 if test "x$ac_ct_CC" = x; then 5349 CC="" 5350 else 5351 case $cross_compiling:$ac_tool_warned in 5352yes:) 5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5354printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5355ac_tool_warned=yes ;; 5356esac 5357 CC=$ac_ct_CC 5358 fi 5359fi 5360 5361 5362test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5363printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5364as_fn_error $? "no acceptable C compiler found in \$PATH 5365See 'config.log' for more details" "$LINENO" 5; } 5366 5367# Provide some information about the compiler. 5368printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5369set X $ac_compile 5370ac_compiler=$2 5371for ac_option in --version -v -V -qversion -version; do 5372 { { ac_try="$ac_compiler $ac_option >&5" 5373case "(($ac_try" in 5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5375 *) ac_try_echo=$ac_try;; 5376esac 5377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5378printf "%s\n" "$ac_try_echo"; } >&5 5379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5380 ac_status=$? 5381 if test -s conftest.err; then 5382 sed '10a\ 5383... rest of stderr output deleted ... 5384 10q' conftest.err >conftest.er1 5385 cat conftest.er1 >&5 5386 fi 5387 rm -f conftest.er1 conftest.err 5388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5389 test $ac_status = 0; } 5390done 5391 5392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5393printf %s "checking whether the compiler supports GNU C... " >&6; } 5394if test ${ac_cv_c_compiler_gnu+y} 5395then : 5396 printf %s "(cached) " >&6 5397else case e in #( 5398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400 5401int 5402main (void) 5403{ 5404#ifndef __GNUC__ 5405 choke me 5406#endif 5407 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412if ac_fn_c_try_compile "$LINENO" 5413then : 5414 ac_compiler_gnu=yes 5415else case e in #( 5416 e) ac_compiler_gnu=no ;; 5417esac 5418fi 5419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5420ac_cv_c_compiler_gnu=$ac_compiler_gnu 5421 ;; 5422esac 5423fi 5424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5425printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5426ac_compiler_gnu=$ac_cv_c_compiler_gnu 5427 5428if test $ac_compiler_gnu = yes; then 5429 GCC=yes 5430else 5431 GCC= 5432fi 5433ac_test_CFLAGS=${CFLAGS+y} 5434ac_save_CFLAGS=$CFLAGS 5435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5436printf %s "checking whether $CC accepts -g... " >&6; } 5437if test ${ac_cv_prog_cc_g+y} 5438then : 5439 printf %s "(cached) " >&6 5440else case e in #( 5441 e) ac_save_c_werror_flag=$ac_c_werror_flag 5442 ac_c_werror_flag=yes 5443 ac_cv_prog_cc_g=no 5444 CFLAGS="-g" 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447 5448int 5449main (void) 5450{ 5451 5452 ; 5453 return 0; 5454} 5455_ACEOF 5456if ac_fn_c_try_compile "$LINENO" 5457then : 5458 ac_cv_prog_cc_g=yes 5459else case e in #( 5460 e) CFLAGS="" 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463 5464int 5465main (void) 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472if ac_fn_c_try_compile "$LINENO" 5473then : 5474 5475else case e in #( 5476 e) ac_c_werror_flag=$ac_save_c_werror_flag 5477 CFLAGS="-g" 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480 5481int 5482main (void) 5483{ 5484 5485 ; 5486 return 0; 5487} 5488_ACEOF 5489if ac_fn_c_try_compile "$LINENO" 5490then : 5491 ac_cv_prog_cc_g=yes 5492fi 5493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5494esac 5495fi 5496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5497esac 5498fi 5499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5500 ac_c_werror_flag=$ac_save_c_werror_flag ;; 5501esac 5502fi 5503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5504printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5505if test $ac_test_CFLAGS; then 5506 CFLAGS=$ac_save_CFLAGS 5507elif test $ac_cv_prog_cc_g = yes; then 5508 if test "$GCC" = yes; then 5509 CFLAGS="-g -O2" 5510 else 5511 CFLAGS="-g" 5512 fi 5513else 5514 if test "$GCC" = yes; then 5515 CFLAGS="-O2" 5516 else 5517 CFLAGS= 5518 fi 5519fi 5520ac_prog_cc_stdc=no 5521if test x$ac_prog_cc_stdc = xno 5522then : 5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5524printf %s "checking for $CC option to enable C11 features... " >&6; } 5525if test ${ac_cv_prog_cc_c11+y} 5526then : 5527 printf %s "(cached) " >&6 5528else case e in #( 5529 e) ac_cv_prog_cc_c11=no 5530ac_save_CC=$CC 5531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5532/* end confdefs.h. */ 5533$ac_c_conftest_c11_program 5534_ACEOF 5535for ac_arg in '' -std=gnu11 5536do 5537 CC="$ac_save_CC $ac_arg" 5538 if ac_fn_c_try_compile "$LINENO" 5539then : 5540 ac_cv_prog_cc_c11=$ac_arg 5541fi 5542rm -f core conftest.err conftest.$ac_objext conftest.beam 5543 test "x$ac_cv_prog_cc_c11" != "xno" && break 5544done 5545rm -f conftest.$ac_ext 5546CC=$ac_save_CC ;; 5547esac 5548fi 5549 5550if test "x$ac_cv_prog_cc_c11" = xno 5551then : 5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5553printf "%s\n" "unsupported" >&6; } 5554else case e in #( 5555 e) if test "x$ac_cv_prog_cc_c11" = x 5556then : 5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5558printf "%s\n" "none needed" >&6; } 5559else case e in #( 5560 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5561printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5562 CC="$CC $ac_cv_prog_cc_c11" ;; 5563esac 5564fi 5565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5566 ac_prog_cc_stdc=c11 ;; 5567esac 5568fi 5569fi 5570if test x$ac_prog_cc_stdc = xno 5571then : 5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5573printf %s "checking for $CC option to enable C99 features... " >&6; } 5574if test ${ac_cv_prog_cc_c99+y} 5575then : 5576 printf %s "(cached) " >&6 5577else case e in #( 5578 e) ac_cv_prog_cc_c99=no 5579ac_save_CC=$CC 5580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5581/* end confdefs.h. */ 5582$ac_c_conftest_c99_program 5583_ACEOF 5584for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5585do 5586 CC="$ac_save_CC $ac_arg" 5587 if ac_fn_c_try_compile "$LINENO" 5588then : 5589 ac_cv_prog_cc_c99=$ac_arg 5590fi 5591rm -f core conftest.err conftest.$ac_objext conftest.beam 5592 test "x$ac_cv_prog_cc_c99" != "xno" && break 5593done 5594rm -f conftest.$ac_ext 5595CC=$ac_save_CC ;; 5596esac 5597fi 5598 5599if test "x$ac_cv_prog_cc_c99" = xno 5600then : 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5602printf "%s\n" "unsupported" >&6; } 5603else case e in #( 5604 e) if test "x$ac_cv_prog_cc_c99" = x 5605then : 5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5607printf "%s\n" "none needed" >&6; } 5608else case e in #( 5609 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5610printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5611 CC="$CC $ac_cv_prog_cc_c99" ;; 5612esac 5613fi 5614 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5615 ac_prog_cc_stdc=c99 ;; 5616esac 5617fi 5618fi 5619if test x$ac_prog_cc_stdc = xno 5620then : 5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5622printf %s "checking for $CC option to enable C89 features... " >&6; } 5623if test ${ac_cv_prog_cc_c89+y} 5624then : 5625 printf %s "(cached) " >&6 5626else case e in #( 5627 e) ac_cv_prog_cc_c89=no 5628ac_save_CC=$CC 5629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5630/* end confdefs.h. */ 5631$ac_c_conftest_c89_program 5632_ACEOF 5633for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5634do 5635 CC="$ac_save_CC $ac_arg" 5636 if ac_fn_c_try_compile "$LINENO" 5637then : 5638 ac_cv_prog_cc_c89=$ac_arg 5639fi 5640rm -f core conftest.err conftest.$ac_objext conftest.beam 5641 test "x$ac_cv_prog_cc_c89" != "xno" && break 5642done 5643rm -f conftest.$ac_ext 5644CC=$ac_save_CC ;; 5645esac 5646fi 5647 5648if test "x$ac_cv_prog_cc_c89" = xno 5649then : 5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5651printf "%s\n" "unsupported" >&6; } 5652else case e in #( 5653 e) if test "x$ac_cv_prog_cc_c89" = x 5654then : 5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5656printf "%s\n" "none needed" >&6; } 5657else case e in #( 5658 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5659printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5660 CC="$CC $ac_cv_prog_cc_c89" ;; 5661esac 5662fi 5663 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5664 ac_prog_cc_stdc=c89 ;; 5665esac 5666fi 5667fi 5668 5669ac_ext=c 5670ac_cpp='$CPP $CPPFLAGS' 5671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5673ac_compiler_gnu=$ac_cv_c_compiler_gnu 5674 5675 5676 ac_ext=c 5677ac_cpp='$CPP $CPPFLAGS' 5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5680ac_compiler_gnu=$ac_cv_c_compiler_gnu 5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5682printf %s "checking whether $CC understands -c and -o together... " >&6; } 5683if test ${am_cv_prog_cc_c_o+y} 5684then : 5685 printf %s "(cached) " >&6 5686else case e in #( 5687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689 5690int 5691main (void) 5692{ 5693 5694 ; 5695 return 0; 5696} 5697_ACEOF 5698 # Make sure it works both with $CC and with simple cc. 5699 # Following AC_PROG_CC_C_O, we do the test twice because some 5700 # compilers refuse to overwrite an existing .o file with -o, 5701 # though they will create one. 5702 am_cv_prog_cc_c_o=yes 5703 for am_i in 1 2; do 5704 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5705 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5706 ac_status=$? 5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5708 (exit $ac_status); } \ 5709 && test -f conftest2.$ac_objext; then 5710 : OK 5711 else 5712 am_cv_prog_cc_c_o=no 5713 break 5714 fi 5715 done 5716 rm -f core conftest* 5717 unset am_i ;; 5718esac 5719fi 5720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5721printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5722if test "$am_cv_prog_cc_c_o" != yes; then 5723 # Losing compiler, so override with the script. 5724 # FIXME: It is wrong to rewrite CC. 5725 # But if we don't then we get into trouble of one sort or another. 5726 # A longer-term fix would be to have automake use am__CC in this case, 5727 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5728 CC="$am_aux_dir/compile $CC" 5729fi 5730ac_ext=c 5731ac_cpp='$CPP $CPPFLAGS' 5732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5734ac_compiler_gnu=$ac_cv_c_compiler_gnu 5735 5736 5737depcc="$CC" am_compiler_list= 5738 5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5740printf %s "checking dependency style of $depcc... " >&6; } 5741if test ${am_cv_CC_dependencies_compiler_type+y} 5742then : 5743 printf %s "(cached) " >&6 5744else case e in #( 5745 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5746 # We make a subdir and do the tests there. Otherwise we can end up 5747 # making bogus files that we don't know about and never remove. For 5748 # instance it was reported that on HP-UX the gcc test will end up 5749 # making a dummy file named 'D' -- because '-MD' means "put the output 5750 # in D". 5751 rm -rf conftest.dir 5752 mkdir conftest.dir 5753 # Copy depcomp to subdir because otherwise we won't find it if we're 5754 # using a relative directory. 5755 cp "$am_depcomp" conftest.dir 5756 cd conftest.dir 5757 # We will build objects and dependencies in a subdirectory because 5758 # it helps to detect inapplicable dependency modes. For instance 5759 # both Tru64's cc and ICC support -MD to output dependencies as a 5760 # side effect of compilation, but ICC will put the dependencies in 5761 # the current directory while Tru64 will put them in the object 5762 # directory. 5763 mkdir sub 5764 5765 am_cv_CC_dependencies_compiler_type=none 5766 if test "$am_compiler_list" = ""; then 5767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5768 fi 5769 am__universal=false 5770 case " $depcc " in #( 5771 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5772 esac 5773 5774 for depmode in $am_compiler_list; do 5775 # Setup a source with many dependencies, because some compilers 5776 # like to wrap large dependency lists on column 80 (with \), and 5777 # we should not choose a depcomp mode which is confused by this. 5778 # 5779 # We need to recreate these files for each test, as the compiler may 5780 # overwrite some of them when testing with obscure command lines. 5781 # This happens at least with the AIX C compiler. 5782 : > sub/conftest.c 5783 for i in 1 2 3 4 5 6; do 5784 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5785 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5786 # Solaris 10 /bin/sh. 5787 echo '/* dummy */' > sub/conftst$i.h 5788 done 5789 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5790 5791 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5792 # mode. It turns out that the SunPro C++ compiler does not properly 5793 # handle '-M -o', and we need to detect this. Also, some Intel 5794 # versions had trouble with output in subdirs. 5795 am__obj=sub/conftest.${OBJEXT-o} 5796 am__minus_obj="-o $am__obj" 5797 case $depmode in 5798 gcc) 5799 # This depmode causes a compiler race in universal mode. 5800 test "$am__universal" = false || continue 5801 ;; 5802 nosideeffect) 5803 # After this tag, mechanisms are not by side-effect, so they'll 5804 # only be used when explicitly requested. 5805 if test "x$enable_dependency_tracking" = xyes; then 5806 continue 5807 else 5808 break 5809 fi 5810 ;; 5811 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5812 # This compiler won't grok '-c -o', but also, the minuso test has 5813 # not run yet. These depmodes are late enough in the game, and 5814 # so weak that their functioning should not be impacted. 5815 am__obj=conftest.${OBJEXT-o} 5816 am__minus_obj= 5817 ;; 5818 none) break ;; 5819 esac 5820 if depmode=$depmode \ 5821 source=sub/conftest.c object=$am__obj \ 5822 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5823 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5824 >/dev/null 2>conftest.err && 5825 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5826 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5827 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5828 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5829 # icc doesn't choke on unknown options, it will just issue warnings 5830 # or remarks (even with -Werror). So we grep stderr for any message 5831 # that says an option was ignored or not supported. 5832 # When given -MP, icc 7.0 and 7.1 complain thus: 5833 # icc: Command line warning: ignoring option '-M'; no argument required 5834 # The diagnosis changed in icc 8.0: 5835 # icc: Command line remark: option '-MP' not supported 5836 if (grep 'ignoring option' conftest.err || 5837 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5838 am_cv_CC_dependencies_compiler_type=$depmode 5839 break 5840 fi 5841 fi 5842 done 5843 5844 cd .. 5845 rm -rf conftest.dir 5846else 5847 am_cv_CC_dependencies_compiler_type=none 5848fi 5849 ;; 5850esac 5851fi 5852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5853printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5854CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5855 5856 if 5857 test "x$enable_dependency_tracking" != xno \ 5858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5859 am__fastdepCC_TRUE= 5860 am__fastdepCC_FALSE='#' 5861else 5862 am__fastdepCC_TRUE='#' 5863 am__fastdepCC_FALSE= 5864fi 5865 5866 5867ac_ext=c 5868ac_cpp='$CPP $CPPFLAGS' 5869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5871ac_compiler_gnu=$ac_cv_c_compiler_gnu 5872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5873printf %s "checking how to run the C preprocessor... " >&6; } 5874# On Suns, sometimes $CPP names a directory. 5875if test -n "$CPP" && test -d "$CPP"; then 5876 CPP= 5877fi 5878if test -z "$CPP"; then 5879 if test ${ac_cv_prog_CPP+y} 5880then : 5881 printf %s "(cached) " >&6 5882else case e in #( 5883 e) # Double quotes because $CC needs to be expanded 5884 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5885 do 5886 ac_preproc_ok=false 5887for ac_c_preproc_warn_flag in '' yes 5888do 5889 # Use a header file that comes with gcc, so configuring glibc 5890 # with a fresh cross-compiler works. 5891 # On the NeXT, cc -E runs the code through the compiler's parser, 5892 # not just through cpp. "Syntax error" is here to catch this case. 5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5894/* end confdefs.h. */ 5895#include <limits.h> 5896 Syntax error 5897_ACEOF 5898if ac_fn_c_try_cpp "$LINENO" 5899then : 5900 5901else case e in #( 5902 e) # Broken: fails on valid input. 5903continue ;; 5904esac 5905fi 5906rm -f conftest.err conftest.i conftest.$ac_ext 5907 5908 # OK, works on sane cases. Now check whether nonexistent headers 5909 # can be detected and how. 5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911/* end confdefs.h. */ 5912#include <ac_nonexistent.h> 5913_ACEOF 5914if ac_fn_c_try_cpp "$LINENO" 5915then : 5916 # Broken: success on invalid input. 5917continue 5918else case e in #( 5919 e) # Passes both tests. 5920ac_preproc_ok=: 5921break ;; 5922esac 5923fi 5924rm -f conftest.err conftest.i conftest.$ac_ext 5925 5926done 5927# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5928rm -f conftest.i conftest.err conftest.$ac_ext 5929if $ac_preproc_ok 5930then : 5931 break 5932fi 5933 5934 done 5935 ac_cv_prog_CPP=$CPP 5936 ;; 5937esac 5938fi 5939 CPP=$ac_cv_prog_CPP 5940else 5941 ac_cv_prog_CPP=$CPP 5942fi 5943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5944printf "%s\n" "$CPP" >&6; } 5945ac_preproc_ok=false 5946for ac_c_preproc_warn_flag in '' yes 5947do 5948 # Use a header file that comes with gcc, so configuring glibc 5949 # with a fresh cross-compiler works. 5950 # On the NeXT, cc -E runs the code through the compiler's parser, 5951 # not just through cpp. "Syntax error" is here to catch this case. 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5953/* end confdefs.h. */ 5954#include <limits.h> 5955 Syntax error 5956_ACEOF 5957if ac_fn_c_try_cpp "$LINENO" 5958then : 5959 5960else case e in #( 5961 e) # Broken: fails on valid input. 5962continue ;; 5963esac 5964fi 5965rm -f conftest.err conftest.i conftest.$ac_ext 5966 5967 # OK, works on sane cases. Now check whether nonexistent headers 5968 # can be detected and how. 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971#include <ac_nonexistent.h> 5972_ACEOF 5973if ac_fn_c_try_cpp "$LINENO" 5974then : 5975 # Broken: success on invalid input. 5976continue 5977else case e in #( 5978 e) # Passes both tests. 5979ac_preproc_ok=: 5980break ;; 5981esac 5982fi 5983rm -f conftest.err conftest.i conftest.$ac_ext 5984 5985done 5986# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5987rm -f conftest.i conftest.err conftest.$ac_ext 5988if $ac_preproc_ok 5989then : 5990 5991else case e in #( 5992 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5993printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5994as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5995See 'config.log' for more details" "$LINENO" 5; } ;; 5996esac 5997fi 5998 5999ac_ext=c 6000ac_cpp='$CPP $CPPFLAGS' 6001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6003ac_compiler_gnu=$ac_cv_c_compiler_gnu 6004 6005 6006 6007 6008 6009 6010 6011ac_ext=cpp 6012ac_cpp='$CXXCPP $CPPFLAGS' 6013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6016if test -z "$CXX"; then 6017 if test -n "$CCC"; then 6018 CXX=$CCC 6019 else 6020 if test -n "$ac_tool_prefix"; then 6021 for ac_prog in clang++ g++ c++ 6022 do 6023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6024set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026printf %s "checking for $ac_word... " >&6; } 6027if test ${ac_cv_prog_CXX+y} 6028then : 6029 printf %s "(cached) " >&6 6030else case e in #( 6031 e) if test -n "$CXX"; then 6032 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6033else 6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6035for as_dir in $PATH 6036do 6037 IFS=$as_save_IFS 6038 case $as_dir in #((( 6039 '') as_dir=./ ;; 6040 */) ;; 6041 *) as_dir=$as_dir/ ;; 6042 esac 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi ;; 6054esac 6055fi 6056CXX=$ac_cv_prog_CXX 6057if test -n "$CXX"; then 6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6059printf "%s\n" "$CXX" >&6; } 6060else 6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6062printf "%s\n" "no" >&6; } 6063fi 6064 6065 6066 test -n "$CXX" && break 6067 done 6068fi 6069if test -z "$CXX"; then 6070 ac_ct_CXX=$CXX 6071 for ac_prog in clang++ g++ c++ 6072do 6073 # Extract the first word of "$ac_prog", so it can be a program name with args. 6074set dummy $ac_prog; ac_word=$2 6075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6076printf %s "checking for $ac_word... " >&6; } 6077if test ${ac_cv_prog_ac_ct_CXX+y} 6078then : 6079 printf %s "(cached) " >&6 6080else case e in #( 6081 e) if test -n "$ac_ct_CXX"; then 6082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6083else 6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085for as_dir in $PATH 6086do 6087 IFS=$as_save_IFS 6088 case $as_dir in #((( 6089 '') as_dir=./ ;; 6090 */) ;; 6091 *) as_dir=$as_dir/ ;; 6092 esac 6093 for ac_exec_ext in '' $ac_executable_extensions; do 6094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6095 ac_cv_prog_ac_ct_CXX="$ac_prog" 6096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6097 break 2 6098 fi 6099done 6100 done 6101IFS=$as_save_IFS 6102 6103fi ;; 6104esac 6105fi 6106ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6107if test -n "$ac_ct_CXX"; then 6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6109printf "%s\n" "$ac_ct_CXX" >&6; } 6110else 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6112printf "%s\n" "no" >&6; } 6113fi 6114 6115 6116 test -n "$ac_ct_CXX" && break 6117done 6118 6119 if test "x$ac_ct_CXX" = x; then 6120 CXX="g++" 6121 else 6122 case $cross_compiling:$ac_tool_warned in 6123yes:) 6124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6125printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6126ac_tool_warned=yes ;; 6127esac 6128 CXX=$ac_ct_CXX 6129 fi 6130fi 6131 6132 fi 6133fi 6134# Provide some information about the compiler. 6135printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6136set X $ac_compile 6137ac_compiler=$2 6138for ac_option in --version -v -V -qversion; do 6139 { { ac_try="$ac_compiler $ac_option >&5" 6140case "(($ac_try" in 6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6142 *) ac_try_echo=$ac_try;; 6143esac 6144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6145printf "%s\n" "$ac_try_echo"; } >&5 6146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6147 ac_status=$? 6148 if test -s conftest.err; then 6149 sed '10a\ 6150... rest of stderr output deleted ... 6151 10q' conftest.err >conftest.er1 6152 cat conftest.er1 >&5 6153 fi 6154 rm -f conftest.er1 conftest.err 6155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6156 test $ac_status = 0; } 6157done 6158 6159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 6160printf %s "checking whether the compiler supports GNU C++... " >&6; } 6161if test ${ac_cv_cxx_compiler_gnu+y} 6162then : 6163 printf %s "(cached) " >&6 6164else case e in #( 6165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6166/* end confdefs.h. */ 6167 6168int 6169main (void) 6170{ 6171#ifndef __GNUC__ 6172 choke me 6173#endif 6174 6175 ; 6176 return 0; 6177} 6178_ACEOF 6179if ac_fn_cxx_try_compile "$LINENO" 6180then : 6181 ac_compiler_gnu=yes 6182else case e in #( 6183 e) ac_compiler_gnu=no ;; 6184esac 6185fi 6186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6187ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6188 ;; 6189esac 6190fi 6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6192printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 6193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6194 6195if test $ac_compiler_gnu = yes; then 6196 GXX=yes 6197else 6198 GXX= 6199fi 6200ac_test_CXXFLAGS=${CXXFLAGS+y} 6201ac_save_CXXFLAGS=$CXXFLAGS 6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6203printf %s "checking whether $CXX accepts -g... " >&6; } 6204if test ${ac_cv_prog_cxx_g+y} 6205then : 6206 printf %s "(cached) " >&6 6207else case e in #( 6208 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6209 ac_cxx_werror_flag=yes 6210 ac_cv_prog_cxx_g=no 6211 CXXFLAGS="-g" 6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213/* end confdefs.h. */ 6214 6215int 6216main (void) 6217{ 6218 6219 ; 6220 return 0; 6221} 6222_ACEOF 6223if ac_fn_cxx_try_compile "$LINENO" 6224then : 6225 ac_cv_prog_cxx_g=yes 6226else case e in #( 6227 e) CXXFLAGS="" 6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230 6231int 6232main (void) 6233{ 6234 6235 ; 6236 return 0; 6237} 6238_ACEOF 6239if ac_fn_cxx_try_compile "$LINENO" 6240then : 6241 6242else case e in #( 6243 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6244 CXXFLAGS="-g" 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247 6248int 6249main (void) 6250{ 6251 6252 ; 6253 return 0; 6254} 6255_ACEOF 6256if ac_fn_cxx_try_compile "$LINENO" 6257then : 6258 ac_cv_prog_cxx_g=yes 6259fi 6260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6261esac 6262fi 6263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6264esac 6265fi 6266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; 6268esac 6269fi 6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6271printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 6272if test $ac_test_CXXFLAGS; then 6273 CXXFLAGS=$ac_save_CXXFLAGS 6274elif test $ac_cv_prog_cxx_g = yes; then 6275 if test "$GXX" = yes; then 6276 CXXFLAGS="-g -O2" 6277 else 6278 CXXFLAGS="-g" 6279 fi 6280else 6281 if test "$GXX" = yes; then 6282 CXXFLAGS="-O2" 6283 else 6284 CXXFLAGS= 6285 fi 6286fi 6287ac_prog_cxx_stdcxx=no 6288if test x$ac_prog_cxx_stdcxx = xno 6289then : 6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 6291printf %s "checking for $CXX option to enable C++11 features... " >&6; } 6292if test ${ac_cv_prog_cxx_cxx11+y} 6293then : 6294 printf %s "(cached) " >&6 6295else case e in #( 6296 e) ac_cv_prog_cxx_cxx11=no 6297ac_save_CXX=$CXX 6298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6299/* end confdefs.h. */ 6300$ac_cxx_conftest_cxx11_program 6301_ACEOF 6302for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 6303do 6304 CXX="$ac_save_CXX $ac_arg" 6305 if ac_fn_cxx_try_compile "$LINENO" 6306then : 6307 ac_cv_prog_cxx_cxx11=$ac_arg 6308fi 6309rm -f core conftest.err conftest.$ac_objext conftest.beam 6310 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 6311done 6312rm -f conftest.$ac_ext 6313CXX=$ac_save_CXX ;; 6314esac 6315fi 6316 6317if test "x$ac_cv_prog_cxx_cxx11" = xno 6318then : 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6320printf "%s\n" "unsupported" >&6; } 6321else case e in #( 6322 e) if test "x$ac_cv_prog_cxx_cxx11" = x 6323then : 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6325printf "%s\n" "none needed" >&6; } 6326else case e in #( 6327 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 6328printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 6329 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; 6330esac 6331fi 6332 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 6333 ac_prog_cxx_stdcxx=cxx11 ;; 6334esac 6335fi 6336fi 6337if test x$ac_prog_cxx_stdcxx = xno 6338then : 6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 6340printf %s "checking for $CXX option to enable C++98 features... " >&6; } 6341if test ${ac_cv_prog_cxx_cxx98+y} 6342then : 6343 printf %s "(cached) " >&6 6344else case e in #( 6345 e) ac_cv_prog_cxx_cxx98=no 6346ac_save_CXX=$CXX 6347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349$ac_cxx_conftest_cxx98_program 6350_ACEOF 6351for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 6352do 6353 CXX="$ac_save_CXX $ac_arg" 6354 if ac_fn_cxx_try_compile "$LINENO" 6355then : 6356 ac_cv_prog_cxx_cxx98=$ac_arg 6357fi 6358rm -f core conftest.err conftest.$ac_objext conftest.beam 6359 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 6360done 6361rm -f conftest.$ac_ext 6362CXX=$ac_save_CXX ;; 6363esac 6364fi 6365 6366if test "x$ac_cv_prog_cxx_cxx98" = xno 6367then : 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6369printf "%s\n" "unsupported" >&6; } 6370else case e in #( 6371 e) if test "x$ac_cv_prog_cxx_cxx98" = x 6372then : 6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6374printf "%s\n" "none needed" >&6; } 6375else case e in #( 6376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 6377printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 6378 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; 6379esac 6380fi 6381 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 6382 ac_prog_cxx_stdcxx=cxx98 ;; 6383esac 6384fi 6385fi 6386 6387ac_ext=c 6388ac_cpp='$CPP $CPPFLAGS' 6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6391ac_compiler_gnu=$ac_cv_c_compiler_gnu 6392 6393depcc="$CXX" am_compiler_list= 6394 6395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6396printf %s "checking dependency style of $depcc... " >&6; } 6397if test ${am_cv_CXX_dependencies_compiler_type+y} 6398then : 6399 printf %s "(cached) " >&6 6400else case e in #( 6401 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6402 # We make a subdir and do the tests there. Otherwise we can end up 6403 # making bogus files that we don't know about and never remove. For 6404 # instance it was reported that on HP-UX the gcc test will end up 6405 # making a dummy file named 'D' -- because '-MD' means "put the output 6406 # in D". 6407 rm -rf conftest.dir 6408 mkdir conftest.dir 6409 # Copy depcomp to subdir because otherwise we won't find it if we're 6410 # using a relative directory. 6411 cp "$am_depcomp" conftest.dir 6412 cd conftest.dir 6413 # We will build objects and dependencies in a subdirectory because 6414 # it helps to detect inapplicable dependency modes. For instance 6415 # both Tru64's cc and ICC support -MD to output dependencies as a 6416 # side effect of compilation, but ICC will put the dependencies in 6417 # the current directory while Tru64 will put them in the object 6418 # directory. 6419 mkdir sub 6420 6421 am_cv_CXX_dependencies_compiler_type=none 6422 if test "$am_compiler_list" = ""; then 6423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6424 fi 6425 am__universal=false 6426 case " $depcc " in #( 6427 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6428 esac 6429 6430 for depmode in $am_compiler_list; do 6431 # Setup a source with many dependencies, because some compilers 6432 # like to wrap large dependency lists on column 80 (with \), and 6433 # we should not choose a depcomp mode which is confused by this. 6434 # 6435 # We need to recreate these files for each test, as the compiler may 6436 # overwrite some of them when testing with obscure command lines. 6437 # This happens at least with the AIX C compiler. 6438 : > sub/conftest.c 6439 for i in 1 2 3 4 5 6; do 6440 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6441 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6442 # Solaris 10 /bin/sh. 6443 echo '/* dummy */' > sub/conftst$i.h 6444 done 6445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6446 6447 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6448 # mode. It turns out that the SunPro C++ compiler does not properly 6449 # handle '-M -o', and we need to detect this. Also, some Intel 6450 # versions had trouble with output in subdirs. 6451 am__obj=sub/conftest.${OBJEXT-o} 6452 am__minus_obj="-o $am__obj" 6453 case $depmode in 6454 gcc) 6455 # This depmode causes a compiler race in universal mode. 6456 test "$am__universal" = false || continue 6457 ;; 6458 nosideeffect) 6459 # After this tag, mechanisms are not by side-effect, so they'll 6460 # only be used when explicitly requested. 6461 if test "x$enable_dependency_tracking" = xyes; then 6462 continue 6463 else 6464 break 6465 fi 6466 ;; 6467 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6468 # This compiler won't grok '-c -o', but also, the minuso test has 6469 # not run yet. These depmodes are late enough in the game, and 6470 # so weak that their functioning should not be impacted. 6471 am__obj=conftest.${OBJEXT-o} 6472 am__minus_obj= 6473 ;; 6474 none) break ;; 6475 esac 6476 if depmode=$depmode \ 6477 source=sub/conftest.c object=$am__obj \ 6478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6480 >/dev/null 2>conftest.err && 6481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6485 # icc doesn't choke on unknown options, it will just issue warnings 6486 # or remarks (even with -Werror). So we grep stderr for any message 6487 # that says an option was ignored or not supported. 6488 # When given -MP, icc 7.0 and 7.1 complain thus: 6489 # icc: Command line warning: ignoring option '-M'; no argument required 6490 # The diagnosis changed in icc 8.0: 6491 # icc: Command line remark: option '-MP' not supported 6492 if (grep 'ignoring option' conftest.err || 6493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6494 am_cv_CXX_dependencies_compiler_type=$depmode 6495 break 6496 fi 6497 fi 6498 done 6499 6500 cd .. 6501 rm -rf conftest.dir 6502else 6503 am_cv_CXX_dependencies_compiler_type=none 6504fi 6505 ;; 6506esac 6507fi 6508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6509printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 6510CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6511 6512 if 6513 test "x$enable_dependency_tracking" != xno \ 6514 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6515 am__fastdepCXX_TRUE= 6516 am__fastdepCXX_FALSE='#' 6517else 6518 am__fastdepCXX_TRUE='#' 6519 am__fastdepCXX_FALSE= 6520fi 6521 6522 6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6524printf %s "checking for an ANSI C-conforming const... " >&6; } 6525if test ${ac_cv_c_const+y} 6526then : 6527 printf %s "(cached) " >&6 6528else case e in #( 6529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6530/* end confdefs.h. */ 6531 6532int 6533main (void) 6534{ 6535 6536#ifndef __cplusplus 6537 /* Ultrix mips cc rejects this sort of thing. */ 6538 typedef int charset[2]; 6539 const charset cs = { 0, 0 }; 6540 /* SunOS 4.1.1 cc rejects this. */ 6541 char const *const *pcpcc; 6542 char **ppc; 6543 /* NEC SVR4.0.2 mips cc rejects this. */ 6544 struct point {int x, y;}; 6545 static struct point const zero = {0,0}; 6546 /* IBM XL C 1.02.0.0 rejects this. 6547 It does not let you subtract one const X* pointer from another in 6548 an arm of an if-expression whose if-part is not a constant 6549 expression */ 6550 const char *g = "string"; 6551 pcpcc = &g + (g ? g-g : 0); 6552 /* HPUX 7.0 cc rejects these. */ 6553 ++pcpcc; 6554 ppc = (char**) pcpcc; 6555 pcpcc = (char const *const *) ppc; 6556 { /* SCO 3.2v4 cc rejects this sort of thing. */ 6557 char tx; 6558 char *t = &tx; 6559 char const *s = 0 ? (char *) 0 : (char const *) 0; 6560 6561 *t++ = 0; 6562 if (s) return 0; 6563 } 6564 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6565 int x[] = {25, 17}; 6566 const int *foo = &x[0]; 6567 ++foo; 6568 } 6569 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6570 typedef const int *iptr; 6571 iptr p = 0; 6572 ++p; 6573 } 6574 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 6575 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6576 struct s { int j; const int *ap[3]; } bx; 6577 struct s *b = &bx; b->j = 5; 6578 } 6579 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6580 const int foo = 10; 6581 if (!foo) return 0; 6582 } 6583 return !cs[0] && !zero.x; 6584#endif 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590if ac_fn_c_try_compile "$LINENO" 6591then : 6592 ac_cv_c_const=yes 6593else case e in #( 6594 e) ac_cv_c_const=no ;; 6595esac 6596fi 6597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6598esac 6599fi 6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6601printf "%s\n" "$ac_cv_c_const" >&6; } 6602if test $ac_cv_c_const = no; then 6603 6604printf "%s\n" "#define const /**/" >>confdefs.h 6605 6606fi 6607 6608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 6609printf %s "checking for C/C++ restrict keyword... " >&6; } 6610if test ${ac_cv_c_restrict+y} 6611then : 6612 printf %s "(cached) " >&6 6613else case e in #( 6614 e) ac_cv_c_restrict=no 6615 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 6616 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 6617 # Put 'restrict' last, because C++ lacks it. 6618 for ac_kw in __restrict__ __restrict _Restrict restrict; do 6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620/* end confdefs.h. */ 6621typedef int *int_ptr; 6622 int foo (int_ptr $ac_kw ip) { return ip[0]; } 6623 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 6624 int bar (int ip[$ac_kw]) { return ip[0]; } 6625 6626int 6627main (void) 6628{ 6629int s[1]; 6630 int *$ac_kw t = s; 6631 t[0] = 0; 6632 return foo (t) + bar (t); 6633 6634 ; 6635 return 0; 6636} 6637_ACEOF 6638if ac_fn_c_try_compile "$LINENO" 6639then : 6640 ac_cv_c_restrict=$ac_kw 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6643 test "$ac_cv_c_restrict" != no && break 6644 done 6645 ;; 6646esac 6647fi 6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 6649printf "%s\n" "$ac_cv_c_restrict" >&6; } 6650 6651 case $ac_cv_c_restrict in 6652 restrict) ;; 6653 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 6654 ;; 6655 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 6656 ;; 6657 esac 6658 6659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 6660printf %s "checking for working volatile... " >&6; } 6661if test ${ac_cv_c_volatile+y} 6662then : 6663 printf %s "(cached) " >&6 6664else case e in #( 6665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6666/* end confdefs.h. */ 6667 6668int 6669main (void) 6670{ 6671 6672volatile int x; 6673int * volatile y = (int *) 0; 6674return !x && !y; 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_c_try_compile "$LINENO" 6680then : 6681 ac_cv_c_volatile=yes 6682else case e in #( 6683 e) ac_cv_c_volatile=no ;; 6684esac 6685fi 6686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6687esac 6688fi 6689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 6690printf "%s\n" "$ac_cv_c_volatile" >&6; } 6691if test $ac_cv_c_volatile = no; then 6692 6693printf "%s\n" "#define volatile /**/" >>confdefs.h 6694 6695fi 6696 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 6698printf %s "checking for C compiler vendor... " >&6; } 6699if test ${ax_cv_c_compiler_vendor+y} 6700then : 6701 printf %s "(cached) " >&6 6702else case e in #( 6703 e) 6704 vendors=" 6705 intel: __ICC,__ECC,__INTEL_COMPILER 6706 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ 6707 pathscale: __PATHCC__,__PATHSCALE__ 6708 clang: __clang__ 6709 cray: _CRAYC 6710 fujitsu: __FUJITSU 6711 sdcc: SDCC,__SDCC 6712 sx: _SX 6713 portland: __PGI 6714 gnu: __GNUC__ 6715 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95 6716 hp: __HP_cc,__HP_aCC 6717 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 6718 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 6719 comeau: __COMO__ 6720 kai: __KCC 6721 lcc: __LCC__ 6722 sgi: __sgi,sgi 6723 microsoft: _MSC_VER 6724 metrowerks: __MWERKS__ 6725 watcom: __WATCOMC__ 6726 tcc: __TINYC__ 6727 unknown: UNKNOWN 6728 " 6729 for ventest in $vendors; do 6730 case $ventest in 6731 *:) 6732 vendor=$ventest 6733 continue 6734 ;; 6735 *) 6736 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" 6737 ;; 6738 esac 6739 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741/* end confdefs.h. */ 6742 6743int 6744main (void) 6745{ 6746 6747#if !($vencpp) 6748 thisisanerror; 6749#endif 6750 6751 ; 6752 return 0; 6753} 6754_ACEOF 6755if ac_fn_c_try_compile "$LINENO" 6756then : 6757 break 6758fi 6759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6760 done 6761 6762 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 6763 ;; 6764esac 6765fi 6766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 6767printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; } 6768 6769 6770# libtool 6771 6772case `pwd` in 6773 *\ * | *\ *) 6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6775printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6776esac 6777 6778 6779 6780macro_version='2.5.4' 6781macro_revision='2.5.4' 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796ltmain=$ac_aux_dir/ltmain.sh 6797 6798 6799 6800 # Make sure we can run config.sub. 6801$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6802 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6803 6804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6805printf %s "checking build system type... " >&6; } 6806if test ${ac_cv_build+y} 6807then : 6808 printf %s "(cached) " >&6 6809else case e in #( 6810 e) ac_build_alias=$build_alias 6811test "x$ac_build_alias" = x && 6812 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6813test "x$ac_build_alias" = x && 6814 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6815ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6816 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6817 ;; 6818esac 6819fi 6820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6821printf "%s\n" "$ac_cv_build" >&6; } 6822case $ac_cv_build in 6823*-*-*) ;; 6824*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6825esac 6826build=$ac_cv_build 6827ac_save_IFS=$IFS; IFS='-' 6828set x $ac_cv_build 6829shift 6830build_cpu=$1 6831build_vendor=$2 6832shift; shift 6833# Remember, the first character of IFS is used to create $*, 6834# except with old shells: 6835build_os=$* 6836IFS=$ac_save_IFS 6837case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6838 6839 6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6841printf %s "checking host system type... " >&6; } 6842if test ${ac_cv_host+y} 6843then : 6844 printf %s "(cached) " >&6 6845else case e in #( 6846 e) if test "x$host_alias" = x; then 6847 ac_cv_host=$ac_cv_build 6848else 6849 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6850 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6851fi 6852 ;; 6853esac 6854fi 6855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6856printf "%s\n" "$ac_cv_host" >&6; } 6857case $ac_cv_host in 6858*-*-*) ;; 6859*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6860esac 6861host=$ac_cv_host 6862ac_save_IFS=$IFS; IFS='-' 6863set x $ac_cv_host 6864shift 6865host_cpu=$1 6866host_vendor=$2 6867shift; shift 6868# Remember, the first character of IFS is used to create $*, 6869# except with old shells: 6870host_os=$* 6871IFS=$ac_save_IFS 6872case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6873 6874 6875# Backslashify metacharacters that are still active within 6876# double-quoted strings. 6877sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6878 6879# Same as above, but do not quote variable references. 6880double_quote_subst='s/\(["`\\]\)/\\\1/g' 6881 6882# Sed substitution to delay expansion of an escaped shell variable in a 6883# double_quote_subst'ed string. 6884delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6885 6886# Sed substitution to delay expansion of an escaped single quote. 6887delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6888 6889# Sed substitution to avoid accidental globbing in evaled expressions 6890no_glob_subst='s/\*/\\\*/g' 6891 6892ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6893ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6894ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6895 6896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6897printf %s "checking how to print strings... " >&6; } 6898# Test print first, because it will be a builtin if present. 6899if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6900 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6901 ECHO='print -r --' 6902elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6903 ECHO='printf %s\n' 6904else 6905 # Use this function as a fallback that always works. 6906 func_fallback_echo () 6907 { 6908 eval 'cat <<_LTECHO_EOF 6909$1 6910_LTECHO_EOF' 6911 } 6912 ECHO='func_fallback_echo' 6913fi 6914 6915# func_echo_all arg... 6916# Invoke $ECHO with all args, space-separated. 6917func_echo_all () 6918{ 6919 $ECHO "" 6920} 6921 6922case $ECHO in 6923 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6924printf "%s\n" "printf" >&6; } ;; 6925 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6926printf "%s\n" "print -r" >&6; } ;; 6927 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6928printf "%s\n" "cat" >&6; } ;; 6929esac 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6945printf %s "checking for a sed that does not truncate output... " >&6; } 6946if test ${ac_cv_path_SED+y} 6947then : 6948 printf %s "(cached) " >&6 6949else case e in #( 6950 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6951 for ac_i in 1 2 3 4 5 6 7; do 6952 ac_script="$ac_script$as_nl$ac_script" 6953 done 6954 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6955 { ac_script=; unset ac_script;} 6956 if test -z "$SED"; then 6957 ac_path_SED_found=false 6958 # Loop through the user's path and test for each of PROGNAME-LIST 6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 case $as_dir in #((( 6964 '') as_dir=./ ;; 6965 */) ;; 6966 *) as_dir=$as_dir/ ;; 6967 esac 6968 for ac_prog in sed gsed 6969 do 6970 for ac_exec_ext in '' $ac_executable_extensions; do 6971 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6972 as_fn_executable_p "$ac_path_SED" || continue 6973# Check for GNU ac_path_SED and select it if it is found. 6974 # Check for GNU $ac_path_SED 6975case `"$ac_path_SED" --version 2>&1` in #( 6976*GNU*) 6977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6978#( 6979*) 6980 ac_count=0 6981 printf %s 0123456789 >"conftest.in" 6982 while : 6983 do 6984 cat "conftest.in" "conftest.in" >"conftest.tmp" 6985 mv "conftest.tmp" "conftest.in" 6986 cp "conftest.in" "conftest.nl" 6987 printf "%s\n" '' >> "conftest.nl" 6988 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6990 as_fn_arith $ac_count + 1 && ac_count=$as_val 6991 if test $ac_count -gt ${ac_path_SED_max-0}; then 6992 # Best one so far, save it but keep looking for a better one 6993 ac_cv_path_SED="$ac_path_SED" 6994 ac_path_SED_max=$ac_count 6995 fi 6996 # 10*(2^10) chars as input seems more than enough 6997 test $ac_count -gt 10 && break 6998 done 6999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7000esac 7001 7002 $ac_path_SED_found && break 3 7003 done 7004 done 7005 done 7006IFS=$as_save_IFS 7007 if test -z "$ac_cv_path_SED"; then 7008 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7009 fi 7010else 7011 ac_cv_path_SED=$SED 7012fi 7013 ;; 7014esac 7015fi 7016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7017printf "%s\n" "$ac_cv_path_SED" >&6; } 7018 SED="$ac_cv_path_SED" 7019 rm -f conftest.sed 7020 7021test -z "$SED" && SED=sed 7022Xsed="$SED -e 1s/^X//" 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7035printf %s "checking for grep that handles long lines and -e... " >&6; } 7036if test ${ac_cv_path_GREP+y} 7037then : 7038 printf %s "(cached) " >&6 7039else case e in #( 7040 e) if test -z "$GREP"; then 7041 ac_path_GREP_found=false 7042 # Loop through the user's path and test for each of PROGNAME-LIST 7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7045do 7046 IFS=$as_save_IFS 7047 case $as_dir in #((( 7048 '') as_dir=./ ;; 7049 */) ;; 7050 *) as_dir=$as_dir/ ;; 7051 esac 7052 for ac_prog in grep ggrep 7053 do 7054 for ac_exec_ext in '' $ac_executable_extensions; do 7055 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 7056 as_fn_executable_p "$ac_path_GREP" || continue 7057# Check for GNU ac_path_GREP and select it if it is found. 7058 # Check for GNU $ac_path_GREP 7059case `"$ac_path_GREP" --version 2>&1` in #( 7060*GNU*) 7061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7062#( 7063*) 7064 ac_count=0 7065 printf %s 0123456789 >"conftest.in" 7066 while : 7067 do 7068 cat "conftest.in" "conftest.in" >"conftest.tmp" 7069 mv "conftest.tmp" "conftest.in" 7070 cp "conftest.in" "conftest.nl" 7071 printf "%s\n" 'GREP' >> "conftest.nl" 7072 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7074 as_fn_arith $ac_count + 1 && ac_count=$as_val 7075 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7076 # Best one so far, save it but keep looking for a better one 7077 ac_cv_path_GREP="$ac_path_GREP" 7078 ac_path_GREP_max=$ac_count 7079 fi 7080 # 10*(2^10) chars as input seems more than enough 7081 test $ac_count -gt 10 && break 7082 done 7083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7084esac 7085 7086 $ac_path_GREP_found && break 3 7087 done 7088 done 7089 done 7090IFS=$as_save_IFS 7091 if test -z "$ac_cv_path_GREP"; then 7092 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7093 fi 7094else 7095 ac_cv_path_GREP=$GREP 7096fi 7097 ;; 7098esac 7099fi 7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7101printf "%s\n" "$ac_cv_path_GREP" >&6; } 7102 GREP="$ac_cv_path_GREP" 7103 7104 7105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7106printf %s "checking for egrep... " >&6; } 7107if test ${ac_cv_path_EGREP+y} 7108then : 7109 printf %s "(cached) " >&6 7110else case e in #( 7111 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7112 then ac_cv_path_EGREP="$GREP -E" 7113 else 7114 if test -z "$EGREP"; then 7115 ac_path_EGREP_found=false 7116 # Loop through the user's path and test for each of PROGNAME-LIST 7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7118for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7119do 7120 IFS=$as_save_IFS 7121 case $as_dir in #((( 7122 '') as_dir=./ ;; 7123 */) ;; 7124 *) as_dir=$as_dir/ ;; 7125 esac 7126 for ac_prog in egrep 7127 do 7128 for ac_exec_ext in '' $ac_executable_extensions; do 7129 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7130 as_fn_executable_p "$ac_path_EGREP" || continue 7131# Check for GNU ac_path_EGREP and select it if it is found. 7132 # Check for GNU $ac_path_EGREP 7133case `"$ac_path_EGREP" --version 2>&1` in #( 7134*GNU*) 7135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7136#( 7137*) 7138 ac_count=0 7139 printf %s 0123456789 >"conftest.in" 7140 while : 7141 do 7142 cat "conftest.in" "conftest.in" >"conftest.tmp" 7143 mv "conftest.tmp" "conftest.in" 7144 cp "conftest.in" "conftest.nl" 7145 printf "%s\n" 'EGREP' >> "conftest.nl" 7146 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7148 as_fn_arith $ac_count + 1 && ac_count=$as_val 7149 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7150 # Best one so far, save it but keep looking for a better one 7151 ac_cv_path_EGREP="$ac_path_EGREP" 7152 ac_path_EGREP_max=$ac_count 7153 fi 7154 # 10*(2^10) chars as input seems more than enough 7155 test $ac_count -gt 10 && break 7156 done 7157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7158esac 7159 7160 $ac_path_EGREP_found && break 3 7161 done 7162 done 7163 done 7164IFS=$as_save_IFS 7165 if test -z "$ac_cv_path_EGREP"; then 7166 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7167 fi 7168else 7169 ac_cv_path_EGREP=$EGREP 7170fi 7171 7172 fi ;; 7173esac 7174fi 7175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7176printf "%s\n" "$ac_cv_path_EGREP" >&6; } 7177 EGREP="$ac_cv_path_EGREP" 7178 7179 EGREP_TRADITIONAL=$EGREP 7180 ac_cv_path_EGREP_TRADITIONAL=$EGREP 7181 7182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7183printf %s "checking for fgrep... " >&6; } 7184if test ${ac_cv_path_FGREP+y} 7185then : 7186 printf %s "(cached) " >&6 7187else case e in #( 7188 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7189 then ac_cv_path_FGREP="$GREP -F" 7190 else 7191 if test -z "$FGREP"; then 7192 ac_path_FGREP_found=false 7193 # Loop through the user's path and test for each of PROGNAME-LIST 7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7196do 7197 IFS=$as_save_IFS 7198 case $as_dir in #((( 7199 '') as_dir=./ ;; 7200 */) ;; 7201 *) as_dir=$as_dir/ ;; 7202 esac 7203 for ac_prog in fgrep 7204 do 7205 for ac_exec_ext in '' $ac_executable_extensions; do 7206 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 7207 as_fn_executable_p "$ac_path_FGREP" || continue 7208# Check for GNU ac_path_FGREP and select it if it is found. 7209 # Check for GNU $ac_path_FGREP 7210case `"$ac_path_FGREP" --version 2>&1` in #( 7211*GNU*) 7212 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7213#( 7214*) 7215 ac_count=0 7216 printf %s 0123456789 >"conftest.in" 7217 while : 7218 do 7219 cat "conftest.in" "conftest.in" >"conftest.tmp" 7220 mv "conftest.tmp" "conftest.in" 7221 cp "conftest.in" "conftest.nl" 7222 printf "%s\n" 'FGREP' >> "conftest.nl" 7223 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7225 as_fn_arith $ac_count + 1 && ac_count=$as_val 7226 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7227 # Best one so far, save it but keep looking for a better one 7228 ac_cv_path_FGREP="$ac_path_FGREP" 7229 ac_path_FGREP_max=$ac_count 7230 fi 7231 # 10*(2^10) chars as input seems more than enough 7232 test $ac_count -gt 10 && break 7233 done 7234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7235esac 7236 7237 $ac_path_FGREP_found && break 3 7238 done 7239 done 7240 done 7241IFS=$as_save_IFS 7242 if test -z "$ac_cv_path_FGREP"; then 7243 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7244 fi 7245else 7246 ac_cv_path_FGREP=$FGREP 7247fi 7248 7249 fi ;; 7250esac 7251fi 7252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7253printf "%s\n" "$ac_cv_path_FGREP" >&6; } 7254 FGREP="$ac_cv_path_FGREP" 7255 7256 7257test -z "$GREP" && GREP=grep 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277# Check whether --with-gnu-ld was given. 7278if test ${with_gnu_ld+y} 7279then : 7280 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7281else case e in #( 7282 e) with_gnu_ld=no ;; 7283esac 7284fi 7285 7286ac_prog=ld 7287if test yes = "$GCC"; then 7288 # Check if gcc -print-prog-name=ld gives a path. 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7290printf %s "checking for ld used by $CC... " >&6; } 7291 case $host in 7292 *-*-mingw* | *-*-windows*) 7293 # gcc leaves a trailing carriage return, which upsets mingw 7294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7295 *) 7296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7297 esac 7298 case $ac_prog in 7299 # Accept absolute paths. 7300 [\\/]* | ?:[\\/]*) 7301 re_direlt='/[^/][^/]*/\.\./' 7302 # Canonicalize the pathname of ld 7303 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7304 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7305 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7306 done 7307 test -z "$LD" && LD=$ac_prog 7308 ;; 7309 "") 7310 # If it fails, then pretend we aren't using GCC. 7311 ac_prog=ld 7312 ;; 7313 *) 7314 # If it is relative, then search for the first ld in PATH. 7315 with_gnu_ld=unknown 7316 ;; 7317 esac 7318elif test yes = "$with_gnu_ld"; then 7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7320printf %s "checking for GNU ld... " >&6; } 7321else 7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7323printf %s "checking for non-GNU ld... " >&6; } 7324fi 7325if test ${lt_cv_path_LD+y} 7326then : 7327 printf %s "(cached) " >&6 7328else case e in #( 7329 e) if test -z "$LD"; then 7330 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7331 for ac_dir in $PATH; do 7332 IFS=$lt_save_ifs 7333 test -z "$ac_dir" && ac_dir=. 7334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7335 lt_cv_path_LD=$ac_dir/$ac_prog 7336 # Check to see if the program is GNU ld. I'd rather use --version, 7337 # but apparently some variants of GNU ld only accept -v. 7338 # Break only if it was the GNU/non-GNU ld that we prefer. 7339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7340 *GNU* | *'with BFD'*) 7341 test no != "$with_gnu_ld" && break 7342 ;; 7343 *) 7344 test yes != "$with_gnu_ld" && break 7345 ;; 7346 esac 7347 fi 7348 done 7349 IFS=$lt_save_ifs 7350else 7351 lt_cv_path_LD=$LD # Let the user override the test with a path. 7352fi ;; 7353esac 7354fi 7355 7356LD=$lt_cv_path_LD 7357if test -n "$LD"; then 7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7359printf "%s\n" "$LD" >&6; } 7360else 7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7362printf "%s\n" "no" >&6; } 7363fi 7364test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7366printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 7367if test ${lt_cv_prog_gnu_ld+y} 7368then : 7369 printf %s "(cached) " >&6 7370else case e in #( 7371 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 7372case `$LD -v 2>&1 </dev/null` in 7373*GNU* | *'with BFD'*) 7374 lt_cv_prog_gnu_ld=yes 7375 ;; 7376*) 7377 lt_cv_prog_gnu_ld=no 7378 ;; 7379esac ;; 7380esac 7381fi 7382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7383printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 7384with_gnu_ld=$lt_cv_prog_gnu_ld 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7395printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7396if test ${lt_cv_path_NM+y} 7397then : 7398 printf %s "(cached) " >&6 7399else case e in #( 7400 e) if test -n "$NM"; then 7401 # Let the user override the test. 7402 lt_cv_path_NM=$NM 7403else 7404 lt_nm_to_check=${ac_tool_prefix}nm 7405 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7406 lt_nm_to_check="$lt_nm_to_check nm" 7407 fi 7408 for lt_tmp_nm in $lt_nm_to_check; do 7409 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7410 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7411 IFS=$lt_save_ifs 7412 test -z "$ac_dir" && ac_dir=. 7413 tmp_nm=$ac_dir/$lt_tmp_nm 7414 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7415 # Check to see if the nm accepts a BSD-compat flag. 7416 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7417 # nm: unknown option "B" ignored 7418 # Tru64's nm complains that /dev/null is an invalid object file 7419 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7420 case $build_os in 7421 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 7422 *) lt_bad_file=/dev/null ;; 7423 esac 7424 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 7425 *$lt_bad_file* | *'Invalid file or object type'*) 7426 lt_cv_path_NM="$tmp_nm -B" 7427 break 2 7428 ;; 7429 *) 7430 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 7431 */dev/null*) 7432 lt_cv_path_NM="$tmp_nm -p" 7433 break 2 7434 ;; 7435 *) 7436 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7437 continue # so that we can try to find one that supports BSD flags 7438 ;; 7439 esac 7440 ;; 7441 esac 7442 fi 7443 done 7444 IFS=$lt_save_ifs 7445 done 7446 : ${lt_cv_path_NM=no} 7447fi ;; 7448esac 7449fi 7450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7451printf "%s\n" "$lt_cv_path_NM" >&6; } 7452if test no != "$lt_cv_path_NM"; then 7453 NM=$lt_cv_path_NM 7454else 7455 # Didn't find any BSD compatible name lister, look for dumpbin. 7456 if test -n "$DUMPBIN"; then : 7457 # Let the user override the test. 7458 else 7459 if test -n "$ac_tool_prefix"; then 7460 for ac_prog in dumpbin "link -dump" 7461 do 7462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7463set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7465printf %s "checking for $ac_word... " >&6; } 7466if test ${ac_cv_prog_DUMPBIN+y} 7467then : 7468 printf %s "(cached) " >&6 7469else case e in #( 7470 e) if test -n "$DUMPBIN"; then 7471 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7472else 7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7474for as_dir in $PATH 7475do 7476 IFS=$as_save_IFS 7477 case $as_dir in #((( 7478 '') as_dir=./ ;; 7479 */) ;; 7480 *) as_dir=$as_dir/ ;; 7481 esac 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7484 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7486 break 2 7487 fi 7488done 7489 done 7490IFS=$as_save_IFS 7491 7492fi ;; 7493esac 7494fi 7495DUMPBIN=$ac_cv_prog_DUMPBIN 7496if test -n "$DUMPBIN"; then 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7498printf "%s\n" "$DUMPBIN" >&6; } 7499else 7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7501printf "%s\n" "no" >&6; } 7502fi 7503 7504 7505 test -n "$DUMPBIN" && break 7506 done 7507fi 7508if test -z "$DUMPBIN"; then 7509 ac_ct_DUMPBIN=$DUMPBIN 7510 for ac_prog in dumpbin "link -dump" 7511do 7512 # Extract the first word of "$ac_prog", so it can be a program name with args. 7513set dummy $ac_prog; ac_word=$2 7514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7515printf %s "checking for $ac_word... " >&6; } 7516if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 7517then : 7518 printf %s "(cached) " >&6 7519else case e in #( 7520 e) if test -n "$ac_ct_DUMPBIN"; then 7521 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7522else 7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524for as_dir in $PATH 7525do 7526 IFS=$as_save_IFS 7527 case $as_dir in #((( 7528 '') as_dir=./ ;; 7529 */) ;; 7530 *) as_dir=$as_dir/ ;; 7531 esac 7532 for ac_exec_ext in '' $ac_executable_extensions; do 7533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7536 break 2 7537 fi 7538done 7539 done 7540IFS=$as_save_IFS 7541 7542fi ;; 7543esac 7544fi 7545ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7546if test -n "$ac_ct_DUMPBIN"; then 7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7548printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 7549else 7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7551printf "%s\n" "no" >&6; } 7552fi 7553 7554 7555 test -n "$ac_ct_DUMPBIN" && break 7556done 7557 7558 if test "x$ac_ct_DUMPBIN" = x; then 7559 DUMPBIN=":" 7560 else 7561 case $cross_compiling:$ac_tool_warned in 7562yes:) 7563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7564printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7565ac_tool_warned=yes ;; 7566esac 7567 DUMPBIN=$ac_ct_DUMPBIN 7568 fi 7569fi 7570 7571 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 7572 *COFF*) 7573 DUMPBIN="$DUMPBIN -symbols -headers" 7574 ;; 7575 *) 7576 DUMPBIN=: 7577 ;; 7578 esac 7579 fi 7580 7581 if test : != "$DUMPBIN"; then 7582 NM=$DUMPBIN 7583 fi 7584fi 7585test -z "$NM" && NM=nm 7586 7587 7588 7589 7590 7591 7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7593printf %s "checking the name lister ($NM) interface... " >&6; } 7594if test ${lt_cv_nm_interface+y} 7595then : 7596 printf %s "(cached) " >&6 7597else case e in #( 7598 e) lt_cv_nm_interface="BSD nm" 7599 echo "int some_variable = 0;" > conftest.$ac_ext 7600 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7601 (eval "$ac_compile" 2>conftest.err) 7602 cat conftest.err >&5 7603 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7604 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7605 cat conftest.err >&5 7606 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7607 cat conftest.out >&5 7608 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7609 lt_cv_nm_interface="MS dumpbin" 7610 fi 7611 rm -f conftest* ;; 7612esac 7613fi 7614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7615printf "%s\n" "$lt_cv_nm_interface" >&6; } 7616 7617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7618printf %s "checking whether ln -s works... " >&6; } 7619LN_S=$as_ln_s 7620if test "$LN_S" = "ln -s"; then 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7622printf "%s\n" "yes" >&6; } 7623else 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7625printf "%s\n" "no, using $LN_S" >&6; } 7626fi 7627 7628# find the maximum length of command line arguments 7629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7630printf %s "checking the maximum length of command line arguments... " >&6; } 7631if test ${lt_cv_sys_max_cmd_len+y} 7632then : 7633 printf %s "(cached) " >&6 7634else case e in #( 7635 e) i=0 7636 teststring=ABCD 7637 7638 case $build_os in 7639 msdosdjgpp*) 7640 # On DJGPP, this test can blow up pretty badly due to problems in libc 7641 # (any single argument exceeding 2000 bytes causes a buffer overrun 7642 # during glob expansion). Even if it were fixed, the result of this 7643 # check would be larger than it should be. 7644 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7645 ;; 7646 7647 gnu* | ironclad*) 7648 # Under GNU Hurd and Ironclad, this test is not required because there 7649 # is no limit to the length of command line arguments. 7650 # Libtool will interpret -1 as no limit whatsoever 7651 lt_cv_sys_max_cmd_len=-1; 7652 ;; 7653 7654 cygwin* | mingw* | windows* | cegcc*) 7655 # On Win9x/ME, this test blows up -- it succeeds, but takes 7656 # about 5 minutes as the teststring grows exponentially. 7657 # Worse, since 9x/ME are not pre-emptively multitasking, 7658 # you end up with a "frozen" computer, even though with patience 7659 # the test eventually succeeds (with a max line length of 256k). 7660 # Instead, let's just punt: use the minimum linelength reported by 7661 # all of the supported platforms: 8192 (on NT/2K/XP). 7662 lt_cv_sys_max_cmd_len=8192; 7663 ;; 7664 7665 mint*) 7666 # On MiNT this can take a long time and run out of memory. 7667 lt_cv_sys_max_cmd_len=8192; 7668 ;; 7669 7670 amigaos*) 7671 # On AmigaOS with pdksh, this test takes hours, literally. 7672 # So we just punt and use a minimum line length of 8192. 7673 lt_cv_sys_max_cmd_len=8192; 7674 ;; 7675 7676 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 7677 # This has been around since 386BSD, at least. Likely further. 7678 if test -x /sbin/sysctl; then 7679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7680 elif test -x /usr/sbin/sysctl; then 7681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7682 else 7683 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7684 fi 7685 # And add a safety zone 7686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7688 ;; 7689 7690 interix*) 7691 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7692 lt_cv_sys_max_cmd_len=196608 7693 ;; 7694 7695 os2*) 7696 # The test takes a long time on OS/2. 7697 lt_cv_sys_max_cmd_len=8192 7698 ;; 7699 7700 osf*) 7701 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7702 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7703 # nice to cause kernel panics so lets avoid the loop below. 7704 # First set a reasonable default. 7705 lt_cv_sys_max_cmd_len=16384 7706 # 7707 if test -x /sbin/sysconfig; then 7708 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7709 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7710 esac 7711 fi 7712 ;; 7713 sco3.2v5*) 7714 lt_cv_sys_max_cmd_len=102400 7715 ;; 7716 sysv5* | sco5v6* | sysv4.2uw2*) 7717 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7718 if test -n "$kargmax"; then 7719 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 7720 else 7721 lt_cv_sys_max_cmd_len=32768 7722 fi 7723 ;; 7724 *) 7725 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7726 if test -n "$lt_cv_sys_max_cmd_len" && \ 7727 test undefined != "$lt_cv_sys_max_cmd_len"; then 7728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7730 else 7731 # Make teststring a little bigger before we do anything with it. 7732 # a 1K string should be a reasonable start. 7733 for i in 1 2 3 4 5 6 7 8; do 7734 teststring=$teststring$teststring 7735 done 7736 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7737 # If test is not a shell built-in, we'll probably end up computing a 7738 # maximum length that is only half of the actual maximum length, but 7739 # we can't tell. 7740 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7741 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7742 test 17 != "$i" # 1/2 MB should be enough 7743 do 7744 i=`expr $i + 1` 7745 teststring=$teststring$teststring 7746 done 7747 # Only check the string length outside the loop. 7748 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7749 teststring= 7750 # Add a significant safety factor because C++ compilers can tack on 7751 # massive amounts of additional arguments before passing them to the 7752 # linker. It appears as though 1/2 is a usable value. 7753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7754 fi 7755 ;; 7756 esac 7757 ;; 7758esac 7759fi 7760 7761if test -n "$lt_cv_sys_max_cmd_len"; then 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7763printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 7764else 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 7766printf "%s\n" "none" >&6; } 7767fi 7768max_cmd_len=$lt_cv_sys_max_cmd_len 7769 7770 7771 7772 7773 7774 7775: ${CP="cp -f"} 7776: ${MV="mv -f"} 7777: ${RM="rm -f"} 7778 7779if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7780 lt_unset=unset 7781else 7782 lt_unset=false 7783fi 7784 7785 7786 7787 7788 7789# test EBCDIC or ASCII 7790case `echo X|tr X '\101'` in 7791 A) # ASCII based system 7792 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7793 lt_SP2NL='tr \040 \012' 7794 lt_NL2SP='tr \015\012 \040\040' 7795 ;; 7796 *) # EBCDIC based system 7797 lt_SP2NL='tr \100 \n' 7798 lt_NL2SP='tr \r\n \100\100' 7799 ;; 7800esac 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7811printf %s "checking how to convert $build file names to $host format... " >&6; } 7812if test ${lt_cv_to_host_file_cmd+y} 7813then : 7814 printf %s "(cached) " >&6 7815else case e in #( 7816 e) case $host in 7817 *-*-mingw* ) 7818 case $build in 7819 *-*-mingw* | *-*-windows* ) # actually msys 7820 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7821 ;; 7822 *-*-cygwin* ) 7823 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7824 ;; 7825 * ) # otherwise, assume *nix 7826 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7827 ;; 7828 esac 7829 ;; 7830 *-*-cygwin* ) 7831 case $build in 7832 *-*-mingw* | *-*-windows* ) # actually msys 7833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7834 ;; 7835 *-*-cygwin* ) 7836 lt_cv_to_host_file_cmd=func_convert_file_noop 7837 ;; 7838 * ) # otherwise, assume *nix 7839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7840 ;; 7841 esac 7842 ;; 7843 * ) # unhandled hosts (and "normal" native builds) 7844 lt_cv_to_host_file_cmd=func_convert_file_noop 7845 ;; 7846esac 7847 ;; 7848esac 7849fi 7850 7851to_host_file_cmd=$lt_cv_to_host_file_cmd 7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7853printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 7854 7855 7856 7857 7858 7859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7860printf %s "checking how to convert $build file names to toolchain format... " >&6; } 7861if test ${lt_cv_to_tool_file_cmd+y} 7862then : 7863 printf %s "(cached) " >&6 7864else case e in #( 7865 e) #assume ordinary cross tools, or native build. 7866lt_cv_to_tool_file_cmd=func_convert_file_noop 7867case $host in 7868 *-*-mingw* | *-*-windows* ) 7869 case $build in 7870 *-*-mingw* | *-*-windows* ) # actually msys 7871 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7872 ;; 7873 esac 7874 ;; 7875esac 7876 ;; 7877esac 7878fi 7879 7880to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7882printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 7883 7884 7885 7886 7887 7888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7889printf %s "checking for $LD option to reload object files... " >&6; } 7890if test ${lt_cv_ld_reload_flag+y} 7891then : 7892 printf %s "(cached) " >&6 7893else case e in #( 7894 e) lt_cv_ld_reload_flag='-r' ;; 7895esac 7896fi 7897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7898printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 7899reload_flag=$lt_cv_ld_reload_flag 7900case $reload_flag in 7901"" | " "*) ;; 7902*) reload_flag=" $reload_flag" ;; 7903esac 7904reload_cmds='$LD$reload_flag -o $output$reload_objs' 7905case $host_os in 7906 cygwin* | mingw* | windows* | pw32* | cegcc*) 7907 if test yes != "$GCC"; then 7908 reload_cmds=false 7909 fi 7910 ;; 7911 darwin*) 7912 if test yes = "$GCC"; then 7913 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7914 else 7915 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7916 fi 7917 ;; 7918esac 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928# Extract the first word of "file", so it can be a program name with args. 7929set dummy file; ac_word=$2 7930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7931printf %s "checking for $ac_word... " >&6; } 7932if test ${ac_cv_prog_FILECMD+y} 7933then : 7934 printf %s "(cached) " >&6 7935else case e in #( 7936 e) if test -n "$FILECMD"; then 7937 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 7938else 7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7940for as_dir in $PATH 7941do 7942 IFS=$as_save_IFS 7943 case $as_dir in #((( 7944 '') as_dir=./ ;; 7945 */) ;; 7946 *) as_dir=$as_dir/ ;; 7947 esac 7948 for ac_exec_ext in '' $ac_executable_extensions; do 7949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7950 ac_cv_prog_FILECMD="file" 7951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7952 break 2 7953 fi 7954done 7955 done 7956IFS=$as_save_IFS 7957 7958 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 7959fi ;; 7960esac 7961fi 7962FILECMD=$ac_cv_prog_FILECMD 7963if test -n "$FILECMD"; then 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 7965printf "%s\n" "$FILECMD" >&6; } 7966else 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7968printf "%s\n" "no" >&6; } 7969fi 7970 7971 7972 7973 7974 7975 7976 7977 7978if test -n "$ac_tool_prefix"; then 7979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7980set dummy ${ac_tool_prefix}objdump; ac_word=$2 7981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7982printf %s "checking for $ac_word... " >&6; } 7983if test ${ac_cv_prog_OBJDUMP+y} 7984then : 7985 printf %s "(cached) " >&6 7986else case e in #( 7987 e) if test -n "$OBJDUMP"; then 7988 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7989else 7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7991for as_dir in $PATH 7992do 7993 IFS=$as_save_IFS 7994 case $as_dir in #((( 7995 '') as_dir=./ ;; 7996 */) ;; 7997 *) as_dir=$as_dir/ ;; 7998 esac 7999 for ac_exec_ext in '' $ac_executable_extensions; do 8000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8001 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8003 break 2 8004 fi 8005done 8006 done 8007IFS=$as_save_IFS 8008 8009fi ;; 8010esac 8011fi 8012OBJDUMP=$ac_cv_prog_OBJDUMP 8013if test -n "$OBJDUMP"; then 8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8015printf "%s\n" "$OBJDUMP" >&6; } 8016else 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018printf "%s\n" "no" >&6; } 8019fi 8020 8021 8022fi 8023if test -z "$ac_cv_prog_OBJDUMP"; then 8024 ac_ct_OBJDUMP=$OBJDUMP 8025 # Extract the first word of "objdump", so it can be a program name with args. 8026set dummy objdump; ac_word=$2 8027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8028printf %s "checking for $ac_word... " >&6; } 8029if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 8030then : 8031 printf %s "(cached) " >&6 8032else case e in #( 8033 e) if test -n "$ac_ct_OBJDUMP"; then 8034 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8035else 8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8037for as_dir in $PATH 8038do 8039 IFS=$as_save_IFS 8040 case $as_dir in #((( 8041 '') as_dir=./ ;; 8042 */) ;; 8043 *) as_dir=$as_dir/ ;; 8044 esac 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8047 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051done 8052 done 8053IFS=$as_save_IFS 8054 8055fi ;; 8056esac 8057fi 8058ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8059if test -n "$ac_ct_OBJDUMP"; then 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8061printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 8062else 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064printf "%s\n" "no" >&6; } 8065fi 8066 8067 if test "x$ac_ct_OBJDUMP" = x; then 8068 OBJDUMP="false" 8069 else 8070 case $cross_compiling:$ac_tool_warned in 8071yes:) 8072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8073printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8074ac_tool_warned=yes ;; 8075esac 8076 OBJDUMP=$ac_ct_OBJDUMP 8077 fi 8078else 8079 OBJDUMP="$ac_cv_prog_OBJDUMP" 8080fi 8081 8082test -z "$OBJDUMP" && OBJDUMP=objdump 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8093printf %s "checking how to recognize dependent libraries... " >&6; } 8094if test ${lt_cv_deplibs_check_method+y} 8095then : 8096 printf %s "(cached) " >&6 8097else case e in #( 8098 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 8099lt_cv_file_magic_test_file= 8100lt_cv_deplibs_check_method='unknown' 8101# Need to set the preceding variable on all platforms that support 8102# interlibrary dependencies. 8103# 'none' -- dependencies not supported. 8104# 'unknown' -- same as none, but documents that we really don't know. 8105# 'pass_all' -- all dependencies passed with no checks. 8106# 'file_magic [[regex]]' -- check by looking for files in library path 8107# that responds to the $file_magic_cmd with a given extended regex. 8108# If you have 'file' or equivalent on your system and you're not sure 8109# whether 'pass_all' will *always* work, you probably want this one. 8110 8111case $host_os in 8112aix[4-9]*) 8113 lt_cv_deplibs_check_method=pass_all 8114 ;; 8115 8116beos*) 8117 lt_cv_deplibs_check_method=pass_all 8118 ;; 8119 8120bsdi[45]*) 8121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8122 lt_cv_file_magic_cmd='$FILECMD -L' 8123 lt_cv_file_magic_test_file=/shlib/libc.so 8124 ;; 8125 8126cygwin*) 8127 # func_win32_libid is a shell function defined in ltmain.sh 8128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8129 lt_cv_file_magic_cmd='func_win32_libid' 8130 ;; 8131 8132mingw* | windows* | pw32*) 8133 # Base MSYS/MinGW do not provide the 'file' command needed by 8134 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8135 # unless we find 'file', for example because we are cross-compiling. 8136 if ( file / ) >/dev/null 2>&1; then 8137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8138 lt_cv_file_magic_cmd='func_win32_libid' 8139 else 8140 # Keep this pattern in sync with the one in func_win32_libid. 8141 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 8142 lt_cv_file_magic_cmd='$OBJDUMP -f' 8143 fi 8144 ;; 8145 8146cegcc*) 8147 # use the weaker test based on 'objdump'. See mingw*. 8148 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8149 lt_cv_file_magic_cmd='$OBJDUMP -f' 8150 ;; 8151 8152darwin* | rhapsody*) 8153 lt_cv_deplibs_check_method=pass_all 8154 ;; 8155 8156freebsd* | dragonfly* | midnightbsd*) 8157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8158 case $host_cpu in 8159 i*86 ) 8160 # Not sure whether the presence of OpenBSD here was a mistake. 8161 # Let's accept both of them until this is cleared up. 8162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8163 lt_cv_file_magic_cmd=$FILECMD 8164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8165 ;; 8166 esac 8167 else 8168 lt_cv_deplibs_check_method=pass_all 8169 fi 8170 ;; 8171 8172haiku*) 8173 lt_cv_deplibs_check_method=pass_all 8174 ;; 8175 8176hpux10.20* | hpux11*) 8177 lt_cv_file_magic_cmd=$FILECMD 8178 case $host_cpu in 8179 ia64*) 8180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8181 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8182 ;; 8183 hppa*64*) 8184 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]' 8185 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8186 ;; 8187 *) 8188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8189 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8190 ;; 8191 esac 8192 ;; 8193 8194interix[3-9]*) 8195 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8197 ;; 8198 8199irix5* | irix6* | nonstopux*) 8200 case $LD in 8201 *-32|*"-32 ") libmagic=32-bit;; 8202 *-n32|*"-n32 ") libmagic=N32;; 8203 *-64|*"-64 ") libmagic=64-bit;; 8204 *) libmagic=never-match;; 8205 esac 8206 lt_cv_deplibs_check_method=pass_all 8207 ;; 8208 8209# This must be glibc/ELF. 8210linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8211 lt_cv_deplibs_check_method=pass_all 8212 ;; 8213 8214*-mlibc) 8215 lt_cv_deplibs_check_method=pass_all 8216 ;; 8217 8218netbsd* | netbsdelf*-gnu) 8219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8221 else 8222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8223 fi 8224 ;; 8225 8226newos6*) 8227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8228 lt_cv_file_magic_cmd=$FILECMD 8229 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8230 ;; 8231 8232*nto* | *qnx*) 8233 lt_cv_deplibs_check_method=pass_all 8234 ;; 8235 8236openbsd*) 8237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8239 else 8240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8241 fi 8242 ;; 8243 8244osf3* | osf4* | osf5*) 8245 lt_cv_deplibs_check_method=pass_all 8246 ;; 8247 8248rdos*) 8249 lt_cv_deplibs_check_method=pass_all 8250 ;; 8251 8252serenity*) 8253 lt_cv_deplibs_check_method=pass_all 8254 ;; 8255 8256solaris*) 8257 lt_cv_deplibs_check_method=pass_all 8258 ;; 8259 8260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8261 lt_cv_deplibs_check_method=pass_all 8262 ;; 8263 8264sysv4 | sysv4.3*) 8265 case $host_vendor in 8266 motorola) 8267 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]' 8268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8269 ;; 8270 ncr) 8271 lt_cv_deplibs_check_method=pass_all 8272 ;; 8273 sequent) 8274 lt_cv_file_magic_cmd='/bin/file' 8275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8276 ;; 8277 sni) 8278 lt_cv_file_magic_cmd='/bin/file' 8279 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8280 lt_cv_file_magic_test_file=/lib/libc.so 8281 ;; 8282 siemens) 8283 lt_cv_deplibs_check_method=pass_all 8284 ;; 8285 pc) 8286 lt_cv_deplibs_check_method=pass_all 8287 ;; 8288 esac 8289 ;; 8290 8291tpf*) 8292 lt_cv_deplibs_check_method=pass_all 8293 ;; 8294os2*) 8295 lt_cv_deplibs_check_method=pass_all 8296 ;; 8297esac 8298 ;; 8299esac 8300fi 8301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8302printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 8303 8304file_magic_glob= 8305want_nocaseglob=no 8306if test "$build" = "$host"; then 8307 case $host_os in 8308 mingw* | windows* | pw32*) 8309 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8310 want_nocaseglob=yes 8311 else 8312 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8313 fi 8314 ;; 8315 esac 8316fi 8317 8318file_magic_cmd=$lt_cv_file_magic_cmd 8319deplibs_check_method=$lt_cv_deplibs_check_method 8320test -z "$deplibs_check_method" && deplibs_check_method=unknown 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343if test -n "$ac_tool_prefix"; then 8344 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8345set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8347printf %s "checking for $ac_word... " >&6; } 8348if test ${ac_cv_prog_DLLTOOL+y} 8349then : 8350 printf %s "(cached) " >&6 8351else case e in #( 8352 e) if test -n "$DLLTOOL"; then 8353 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8354else 8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8356for as_dir in $PATH 8357do 8358 IFS=$as_save_IFS 8359 case $as_dir in #((( 8360 '') as_dir=./ ;; 8361 */) ;; 8362 *) as_dir=$as_dir/ ;; 8363 esac 8364 for ac_exec_ext in '' $ac_executable_extensions; do 8365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8366 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8368 break 2 8369 fi 8370done 8371 done 8372IFS=$as_save_IFS 8373 8374fi ;; 8375esac 8376fi 8377DLLTOOL=$ac_cv_prog_DLLTOOL 8378if test -n "$DLLTOOL"; then 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8380printf "%s\n" "$DLLTOOL" >&6; } 8381else 8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8383printf "%s\n" "no" >&6; } 8384fi 8385 8386 8387fi 8388if test -z "$ac_cv_prog_DLLTOOL"; then 8389 ac_ct_DLLTOOL=$DLLTOOL 8390 # Extract the first word of "dlltool", so it can be a program name with args. 8391set dummy dlltool; ac_word=$2 8392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8393printf %s "checking for $ac_word... " >&6; } 8394if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 8395then : 8396 printf %s "(cached) " >&6 8397else case e in #( 8398 e) if test -n "$ac_ct_DLLTOOL"; then 8399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8400else 8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8402for as_dir in $PATH 8403do 8404 IFS=$as_save_IFS 8405 case $as_dir in #((( 8406 '') as_dir=./ ;; 8407 */) ;; 8408 *) as_dir=$as_dir/ ;; 8409 esac 8410 for ac_exec_ext in '' $ac_executable_extensions; do 8411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8412 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8414 break 2 8415 fi 8416done 8417 done 8418IFS=$as_save_IFS 8419 8420fi ;; 8421esac 8422fi 8423ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8424if test -n "$ac_ct_DLLTOOL"; then 8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8426printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 8427else 8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8429printf "%s\n" "no" >&6; } 8430fi 8431 8432 if test "x$ac_ct_DLLTOOL" = x; then 8433 DLLTOOL="false" 8434 else 8435 case $cross_compiling:$ac_tool_warned in 8436yes:) 8437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8439ac_tool_warned=yes ;; 8440esac 8441 DLLTOOL=$ac_ct_DLLTOOL 8442 fi 8443else 8444 DLLTOOL="$ac_cv_prog_DLLTOOL" 8445fi 8446 8447test -z "$DLLTOOL" && DLLTOOL=dlltool 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8459printf %s "checking how to associate runtime and link libraries... " >&6; } 8460if test ${lt_cv_sharedlib_from_linklib_cmd+y} 8461then : 8462 printf %s "(cached) " >&6 8463else case e in #( 8464 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 8465 8466case $host_os in 8467cygwin* | mingw* | windows* | pw32* | cegcc*) 8468 # two different shell functions defined in ltmain.sh; 8469 # decide which one to use based on capabilities of $DLLTOOL 8470 case `$DLLTOOL --help 2>&1` in 8471 *--identify-strict*) 8472 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8473 ;; 8474 *) 8475 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8476 ;; 8477 esac 8478 ;; 8479*) 8480 # fallback: assume linklib IS sharedlib 8481 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8482 ;; 8483esac 8484 ;; 8485esac 8486fi 8487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8488printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8489sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8490test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8491 8492 8493 8494 8495 8496 8497 8498if test -n "$ac_tool_prefix"; then 8499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8500set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8502printf %s "checking for $ac_word... " >&6; } 8503if test ${ac_cv_prog_RANLIB+y} 8504then : 8505 printf %s "(cached) " >&6 8506else case e in #( 8507 e) if test -n "$RANLIB"; then 8508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8509else 8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8511for as_dir in $PATH 8512do 8513 IFS=$as_save_IFS 8514 case $as_dir in #((( 8515 '') as_dir=./ ;; 8516 */) ;; 8517 *) as_dir=$as_dir/ ;; 8518 esac 8519 for ac_exec_ext in '' $ac_executable_extensions; do 8520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8521 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8523 break 2 8524 fi 8525done 8526 done 8527IFS=$as_save_IFS 8528 8529fi ;; 8530esac 8531fi 8532RANLIB=$ac_cv_prog_RANLIB 8533if test -n "$RANLIB"; then 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8535printf "%s\n" "$RANLIB" >&6; } 8536else 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538printf "%s\n" "no" >&6; } 8539fi 8540 8541 8542fi 8543if test -z "$ac_cv_prog_RANLIB"; then 8544 ac_ct_RANLIB=$RANLIB 8545 # Extract the first word of "ranlib", so it can be a program name with args. 8546set dummy ranlib; ac_word=$2 8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8548printf %s "checking for $ac_word... " >&6; } 8549if test ${ac_cv_prog_ac_ct_RANLIB+y} 8550then : 8551 printf %s "(cached) " >&6 8552else case e in #( 8553 e) if test -n "$ac_ct_RANLIB"; then 8554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8555else 8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8557for as_dir in $PATH 8558do 8559 IFS=$as_save_IFS 8560 case $as_dir in #((( 8561 '') as_dir=./ ;; 8562 */) ;; 8563 *) as_dir=$as_dir/ ;; 8564 esac 8565 for ac_exec_ext in '' $ac_executable_extensions; do 8566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8567 ac_cv_prog_ac_ct_RANLIB="ranlib" 8568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8569 break 2 8570 fi 8571done 8572 done 8573IFS=$as_save_IFS 8574 8575fi ;; 8576esac 8577fi 8578ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8579if test -n "$ac_ct_RANLIB"; then 8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8581printf "%s\n" "$ac_ct_RANLIB" >&6; } 8582else 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8584printf "%s\n" "no" >&6; } 8585fi 8586 8587 if test "x$ac_ct_RANLIB" = x; then 8588 RANLIB=":" 8589 else 8590 case $cross_compiling:$ac_tool_warned in 8591yes:) 8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8593printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8594ac_tool_warned=yes ;; 8595esac 8596 RANLIB=$ac_ct_RANLIB 8597 fi 8598else 8599 RANLIB="$ac_cv_prog_RANLIB" 8600fi 8601 8602if test -n "$ac_tool_prefix"; then 8603 for ac_prog in ar 8604 do 8605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8606set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8608printf %s "checking for $ac_word... " >&6; } 8609if test ${ac_cv_prog_AR+y} 8610then : 8611 printf %s "(cached) " >&6 8612else case e in #( 8613 e) if test -n "$AR"; then 8614 ac_cv_prog_AR="$AR" # Let the user override the test. 8615else 8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8617for as_dir in $PATH 8618do 8619 IFS=$as_save_IFS 8620 case $as_dir in #((( 8621 '') as_dir=./ ;; 8622 */) ;; 8623 *) as_dir=$as_dir/ ;; 8624 esac 8625 for ac_exec_ext in '' $ac_executable_extensions; do 8626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8627 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8629 break 2 8630 fi 8631done 8632 done 8633IFS=$as_save_IFS 8634 8635fi ;; 8636esac 8637fi 8638AR=$ac_cv_prog_AR 8639if test -n "$AR"; then 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8641printf "%s\n" "$AR" >&6; } 8642else 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644printf "%s\n" "no" >&6; } 8645fi 8646 8647 8648 test -n "$AR" && break 8649 done 8650fi 8651if test -z "$AR"; then 8652 ac_ct_AR=$AR 8653 for ac_prog in ar 8654do 8655 # Extract the first word of "$ac_prog", so it can be a program name with args. 8656set dummy $ac_prog; ac_word=$2 8657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8658printf %s "checking for $ac_word... " >&6; } 8659if test ${ac_cv_prog_ac_ct_AR+y} 8660then : 8661 printf %s "(cached) " >&6 8662else case e in #( 8663 e) if test -n "$ac_ct_AR"; then 8664 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8665else 8666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8667for as_dir in $PATH 8668do 8669 IFS=$as_save_IFS 8670 case $as_dir in #((( 8671 '') as_dir=./ ;; 8672 */) ;; 8673 *) as_dir=$as_dir/ ;; 8674 esac 8675 for ac_exec_ext in '' $ac_executable_extensions; do 8676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8677 ac_cv_prog_ac_ct_AR="$ac_prog" 8678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8679 break 2 8680 fi 8681done 8682 done 8683IFS=$as_save_IFS 8684 8685fi ;; 8686esac 8687fi 8688ac_ct_AR=$ac_cv_prog_ac_ct_AR 8689if test -n "$ac_ct_AR"; then 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8691printf "%s\n" "$ac_ct_AR" >&6; } 8692else 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694printf "%s\n" "no" >&6; } 8695fi 8696 8697 8698 test -n "$ac_ct_AR" && break 8699done 8700 8701 if test "x$ac_ct_AR" = x; then 8702 AR="false" 8703 else 8704 case $cross_compiling:$ac_tool_warned in 8705yes:) 8706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8707printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8708ac_tool_warned=yes ;; 8709esac 8710 AR=$ac_ct_AR 8711 fi 8712fi 8713 8714: ${AR=ar} 8715 8716 8717 8718 8719 8720 8721# Use ARFLAGS variable as AR's operation code to sync the variable naming with 8722# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 8723# higher priority because that's what people were doing historically (setting 8724# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 8725# variable obsoleted/removed. 8726 8727test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 8728lt_ar_flags=$AR_FLAGS 8729 8730 8731 8732 8733 8734 8735# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 8736# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 8737 8738 8739 8740 8741 8742 8743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8744printf %s "checking for archiver @FILE support... " >&6; } 8745if test ${lt_cv_ar_at_file+y} 8746then : 8747 printf %s "(cached) " >&6 8748else case e in #( 8749 e) lt_cv_ar_at_file=no 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752 8753int 8754main (void) 8755{ 8756 8757 ; 8758 return 0; 8759} 8760_ACEOF 8761if ac_fn_c_try_compile "$LINENO" 8762then : 8763 echo conftest.$ac_objext > conftest.lst 8764 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8766 (eval $lt_ar_try) 2>&5 8767 ac_status=$? 8768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8769 test $ac_status = 0; } 8770 if test 0 -eq "$ac_status"; then 8771 # Ensure the archiver fails upon bogus file names. 8772 rm -f conftest.$ac_objext libconftest.a 8773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8774 (eval $lt_ar_try) 2>&5 8775 ac_status=$? 8776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8777 test $ac_status = 0; } 8778 if test 0 -ne "$ac_status"; then 8779 lt_cv_ar_at_file=@ 8780 fi 8781 fi 8782 rm -f conftest.* libconftest.a 8783 8784fi 8785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8786 ;; 8787esac 8788fi 8789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8790printf "%s\n" "$lt_cv_ar_at_file" >&6; } 8791 8792if test no = "$lt_cv_ar_at_file"; then 8793 archiver_list_spec= 8794else 8795 archiver_list_spec=$lt_cv_ar_at_file 8796fi 8797 8798 8799 8800 8801 8802 8803 8804if test -n "$ac_tool_prefix"; then 8805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8806set dummy ${ac_tool_prefix}strip; ac_word=$2 8807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8808printf %s "checking for $ac_word... " >&6; } 8809if test ${ac_cv_prog_STRIP+y} 8810then : 8811 printf %s "(cached) " >&6 8812else case e in #( 8813 e) if test -n "$STRIP"; then 8814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8815else 8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8817for as_dir in $PATH 8818do 8819 IFS=$as_save_IFS 8820 case $as_dir in #((( 8821 '') as_dir=./ ;; 8822 */) ;; 8823 *) as_dir=$as_dir/ ;; 8824 esac 8825 for ac_exec_ext in '' $ac_executable_extensions; do 8826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8827 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8829 break 2 8830 fi 8831done 8832 done 8833IFS=$as_save_IFS 8834 8835fi ;; 8836esac 8837fi 8838STRIP=$ac_cv_prog_STRIP 8839if test -n "$STRIP"; then 8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8841printf "%s\n" "$STRIP" >&6; } 8842else 8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8844printf "%s\n" "no" >&6; } 8845fi 8846 8847 8848fi 8849if test -z "$ac_cv_prog_STRIP"; then 8850 ac_ct_STRIP=$STRIP 8851 # Extract the first word of "strip", so it can be a program name with args. 8852set dummy strip; ac_word=$2 8853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8854printf %s "checking for $ac_word... " >&6; } 8855if test ${ac_cv_prog_ac_ct_STRIP+y} 8856then : 8857 printf %s "(cached) " >&6 8858else case e in #( 8859 e) if test -n "$ac_ct_STRIP"; then 8860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8861else 8862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8863for as_dir in $PATH 8864do 8865 IFS=$as_save_IFS 8866 case $as_dir in #((( 8867 '') as_dir=./ ;; 8868 */) ;; 8869 *) as_dir=$as_dir/ ;; 8870 esac 8871 for ac_exec_ext in '' $ac_executable_extensions; do 8872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8873 ac_cv_prog_ac_ct_STRIP="strip" 8874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8875 break 2 8876 fi 8877done 8878 done 8879IFS=$as_save_IFS 8880 8881fi ;; 8882esac 8883fi 8884ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8885if test -n "$ac_ct_STRIP"; then 8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8887printf "%s\n" "$ac_ct_STRIP" >&6; } 8888else 8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8890printf "%s\n" "no" >&6; } 8891fi 8892 8893 if test "x$ac_ct_STRIP" = x; then 8894 STRIP=":" 8895 else 8896 case $cross_compiling:$ac_tool_warned in 8897yes:) 8898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8899printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8900ac_tool_warned=yes ;; 8901esac 8902 STRIP=$ac_ct_STRIP 8903 fi 8904else 8905 STRIP="$ac_cv_prog_STRIP" 8906fi 8907 8908test -z "$STRIP" && STRIP=: 8909 8910 8911 8912 8913 8914 8915 8916test -z "$RANLIB" && RANLIB=: 8917 8918 8919 8920 8921 8922 8923# Determine commands to create old-style static archives. 8924old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8925old_postinstall_cmds='chmod 644 $oldlib' 8926old_postuninstall_cmds= 8927 8928if test -n "$RANLIB"; then 8929 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8931fi 8932 8933case $host_os in 8934 darwin*) 8935 lock_old_archive_extraction=yes ;; 8936 *) 8937 lock_old_archive_extraction=no ;; 8938esac 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978# If no C compiler was specified, use CC. 8979LTCC=${LTCC-"$CC"} 8980 8981# If no C compiler flags were specified, use CFLAGS. 8982LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8983 8984# Allow CC to be a program name with arguments. 8985compiler=$CC 8986 8987 8988# Check for command to grab the raw symbol name followed by C symbol from nm. 8989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8990printf %s "checking command to parse $NM output from $compiler object... " >&6; } 8991if test ${lt_cv_sys_global_symbol_pipe+y} 8992then : 8993 printf %s "(cached) " >&6 8994else case e in #( 8995 e) 8996# These are sane defaults that work on at least a few old systems. 8997# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8998 8999# Character class describing NM global symbol codes. 9000symcode='[BCDEGRST]' 9001 9002# Regexp to match symbols that can be accessed directly from C. 9003sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9004 9005# Define system-specific variables. 9006case $host_os in 9007aix*) 9008 symcode='[BCDT]' 9009 ;; 9010cygwin* | mingw* | windows* | pw32* | cegcc*) 9011 symcode='[ABCDGISTW]' 9012 ;; 9013hpux*) 9014 if test ia64 = "$host_cpu"; then 9015 symcode='[ABCDEGRST]' 9016 fi 9017 ;; 9018irix* | nonstopux*) 9019 symcode='[BCDEGRST]' 9020 ;; 9021osf*) 9022 symcode='[BCDEGQRST]' 9023 ;; 9024solaris*) 9025 symcode='[BCDRT]' 9026 ;; 9027sco3.2v5*) 9028 symcode='[DT]' 9029 ;; 9030sysv4.2uw2*) 9031 symcode='[DT]' 9032 ;; 9033sysv5* | sco5v6* | unixware* | OpenUNIX*) 9034 symcode='[ABDT]' 9035 ;; 9036sysv4) 9037 symcode='[DFNSTU]' 9038 ;; 9039esac 9040 9041# If we're using GNU nm, then use its standard symbol codes. 9042case `$NM -V 2>&1` in 9043*GNU* | *'with BFD'*) 9044 symcode='[ABCDGIRSTW]' ;; 9045esac 9046 9047if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9048 # Gets list of data symbols to import. 9049 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 9050 # Adjust the below global symbol transforms to fixup imported variables. 9051 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9052 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9053 lt_c_name_lib_hook="\ 9054 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9055 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9056else 9057 # Disable hooks by default. 9058 lt_cv_sys_global_symbol_to_import= 9059 lt_cdecl_hook= 9060 lt_c_name_hook= 9061 lt_c_name_lib_hook= 9062fi 9063 9064# Transform an extracted symbol line into a proper C declaration. 9065# Some systems (esp. on ia64) link data and code symbols differently, 9066# so use this general approach. 9067lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 9068$lt_cdecl_hook\ 9069" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9070" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9071 9072# Transform an extracted symbol line into symbol name and symbol address 9073lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 9074$lt_c_name_hook\ 9075" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9076" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9077 9078# Transform an extracted symbol line into symbol name with lib prefix and 9079# symbol address. 9080lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 9081$lt_c_name_lib_hook\ 9082" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9083" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9084" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9085 9086# Handle CRLF in mingw tool chain 9087opt_cr= 9088case $build_os in 9089mingw* | windows*) 9090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9091 ;; 9092esac 9093 9094# Try without a prefix underscore, then with it. 9095for ac_symprfx in "" "_"; do 9096 9097 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9098 symxfrm="\\1 $ac_symprfx\\2 \\2" 9099 9100 # Write the raw and C identifiers. 9101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9102 # Fake it for dumpbin and say T for any non-static function, 9103 # D for any global variable and I for any imported variable. 9104 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 9105 # which start with @ or ?. 9106 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9107" {last_section=section; section=\$ 3};"\ 9108" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9109" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9110" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9111" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9112" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9113" \$ 0!~/External *\|/{next};"\ 9114" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9115" {if(hide[section]) next};"\ 9116" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9117" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9118" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9119" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9120" ' prfx=^$ac_symprfx" 9121 else 9122 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9123 fi 9124 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 9125 9126 # Check to see that the pipe works correctly. 9127 pipe_works=no 9128 9129 rm -f conftest* 9130 cat > conftest.$ac_ext <<_LT_EOF 9131#ifdef __cplusplus 9132extern "C" { 9133#endif 9134char nm_test_var; 9135void nm_test_func(void); 9136void nm_test_func(void){} 9137#ifdef __cplusplus 9138} 9139#endif 9140int main(void){nm_test_var='a';nm_test_func();return(0);} 9141_LT_EOF 9142 9143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9144 (eval $ac_compile) 2>&5 9145 ac_status=$? 9146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9147 test $ac_status = 0; }; then 9148 # Now try to grab the symbols. 9149 nlist=conftest.nm 9150 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 9151 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 9152 # Try sorting and uniquifying the output. 9153 if sort "$nlist" | uniq > "$nlist"T; then 9154 mv -f "$nlist"T "$nlist" 9155 else 9156 rm -f "$nlist"T 9157 fi 9158 9159 # Make sure that we snagged all the symbols we need. 9160 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9161 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9162 cat <<_LT_EOF > conftest.$ac_ext 9163/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9164#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9165/* DATA imports from DLLs on WIN32 can't be const, because runtime 9166 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9167# define LT_DLSYM_CONST 9168#elif defined __osf__ 9169/* This system does not cope well with relocations in const data. */ 9170# define LT_DLSYM_CONST 9171#else 9172# define LT_DLSYM_CONST const 9173#endif 9174 9175#ifdef __cplusplus 9176extern "C" { 9177#endif 9178 9179_LT_EOF 9180 # Now generate the symbol file. 9181 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9182 9183 cat <<_LT_EOF >> conftest.$ac_ext 9184 9185/* The mapping between symbol names and symbols. */ 9186LT_DLSYM_CONST struct { 9187 const char *name; 9188 void *address; 9189} 9190lt__PROGRAM__LTX_preloaded_symbols[] = 9191{ 9192 { "@PROGRAM@", (void *) 0 }, 9193_LT_EOF 9194 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9195 cat <<\_LT_EOF >> conftest.$ac_ext 9196 {0, (void *) 0} 9197}; 9198 9199/* This works around a problem in FreeBSD linker */ 9200#ifdef FREEBSD_WORKAROUND 9201static const void *lt_preloaded_setup() { 9202 return lt__PROGRAM__LTX_preloaded_symbols; 9203} 9204#endif 9205 9206#ifdef __cplusplus 9207} 9208#endif 9209_LT_EOF 9210 # Now try linking the two files. 9211 mv conftest.$ac_objext conftstm.$ac_objext 9212 lt_globsym_save_LIBS=$LIBS 9213 lt_globsym_save_CFLAGS=$CFLAGS 9214 LIBS=conftstm.$ac_objext 9215 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9217 (eval $ac_link) 2>&5 9218 ac_status=$? 9219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9220 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9221 pipe_works=yes 9222 fi 9223 LIBS=$lt_globsym_save_LIBS 9224 CFLAGS=$lt_globsym_save_CFLAGS 9225 else 9226 echo "cannot find nm_test_func in $nlist" >&5 9227 fi 9228 else 9229 echo "cannot find nm_test_var in $nlist" >&5 9230 fi 9231 else 9232 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9233 fi 9234 else 9235 echo "$progname: failed program was:" >&5 9236 cat conftest.$ac_ext >&5 9237 fi 9238 rm -rf conftest* conftst* 9239 9240 # Do not use the global_symbol_pipe unless it works. 9241 if test yes = "$pipe_works"; then 9242 break 9243 else 9244 lt_cv_sys_global_symbol_pipe= 9245 fi 9246done 9247 ;; 9248esac 9249fi 9250 9251if test -z "$lt_cv_sys_global_symbol_pipe"; then 9252 lt_cv_sys_global_symbol_to_cdecl= 9253fi 9254if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9256printf "%s\n" "failed" >&6; } 9257else 9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9259printf "%s\n" "ok" >&6; } 9260fi 9261 9262# Response file support. 9263if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9264 nm_file_list_spec='@' 9265elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9266 nm_file_list_spec='@' 9267fi 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9306printf %s "checking for sysroot... " >&6; } 9307 9308# Check whether --with-sysroot was given. 9309if test ${with_sysroot+y} 9310then : 9311 withval=$with_sysroot; 9312else case e in #( 9313 e) with_sysroot=no ;; 9314esac 9315fi 9316 9317 9318lt_sysroot= 9319case $with_sysroot in #( 9320 yes) 9321 if test yes = "$GCC"; then 9322 # Trim trailing / since we'll always append absolute paths and we want 9323 # to avoid //, if only for less confusing output for the user. 9324 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 9325 fi 9326 ;; #( 9327 /*) 9328 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 9329 ;; #( 9330 no|'') 9331 ;; #( 9332 *) 9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9334printf "%s\n" "$with_sysroot" >&6; } 9335 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9336 ;; 9337esac 9338 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9340printf "%s\n" "${lt_sysroot:-no}" >&6; } 9341 9342 9343 9344 9345 9346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9347printf %s "checking for a working dd... " >&6; } 9348if test ${ac_cv_path_lt_DD+y} 9349then : 9350 printf %s "(cached) " >&6 9351else case e in #( 9352 e) printf 0123456789abcdef0123456789abcdef >conftest.i 9353cat conftest.i conftest.i >conftest2.i 9354: ${lt_DD:=$DD} 9355if test -z "$lt_DD"; then 9356 ac_path_lt_DD_found=false 9357 # Loop through the user's path and test for each of PROGNAME-LIST 9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9359for as_dir in $PATH 9360do 9361 IFS=$as_save_IFS 9362 case $as_dir in #((( 9363 '') as_dir=./ ;; 9364 */) ;; 9365 *) as_dir=$as_dir/ ;; 9366 esac 9367 for ac_prog in dd 9368 do 9369 for ac_exec_ext in '' $ac_executable_extensions; do 9370 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 9371 as_fn_executable_p "$ac_path_lt_DD" || continue 9372if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9373 cmp -s conftest.i conftest.out \ 9374 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9375fi 9376 $ac_path_lt_DD_found && break 3 9377 done 9378 done 9379 done 9380IFS=$as_save_IFS 9381 if test -z "$ac_cv_path_lt_DD"; then 9382 : 9383 fi 9384else 9385 ac_cv_path_lt_DD=$lt_DD 9386fi 9387 9388rm -f conftest.i conftest2.i conftest.out ;; 9389esac 9390fi 9391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9392printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 9393 9394 9395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9396printf %s "checking how to truncate binary pipes... " >&6; } 9397if test ${lt_cv_truncate_bin+y} 9398then : 9399 printf %s "(cached) " >&6 9400else case e in #( 9401 e) printf 0123456789abcdef0123456789abcdef >conftest.i 9402cat conftest.i conftest.i >conftest2.i 9403lt_cv_truncate_bin= 9404if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9405 cmp -s conftest.i conftest.out \ 9406 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9407fi 9408rm -f conftest.i conftest2.i conftest.out 9409test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 9410esac 9411fi 9412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9413printf "%s\n" "$lt_cv_truncate_bin" >&6; } 9414 9415 9416 9417 9418 9419 9420 9421# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9422func_cc_basename () 9423{ 9424 for cc_temp in $*""; do 9425 case $cc_temp in 9426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9428 \-*) ;; 9429 *) break;; 9430 esac 9431 done 9432 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9433} 9434 9435# Check whether --enable-libtool-lock was given. 9436if test ${enable_libtool_lock+y} 9437then : 9438 enableval=$enable_libtool_lock; 9439fi 9440 9441test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9442 9443# Some flags need to be propagated to the compiler or linker for good 9444# libtool support. 9445case $host in 9446ia64-*-hpux*) 9447 # Find out what ABI is being produced by ac_compile, and set mode 9448 # options accordingly. 9449 echo 'int i;' > conftest.$ac_ext 9450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9451 (eval $ac_compile) 2>&5 9452 ac_status=$? 9453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9454 test $ac_status = 0; }; then 9455 case `$FILECMD conftest.$ac_objext` in 9456 *ELF-32*) 9457 HPUX_IA64_MODE=32 9458 ;; 9459 *ELF-64*) 9460 HPUX_IA64_MODE=64 9461 ;; 9462 esac 9463 fi 9464 rm -rf conftest* 9465 ;; 9466*-*-irix6*) 9467 # Find out what ABI is being produced by ac_compile, and set linker 9468 # options accordingly. 9469 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9471 (eval $ac_compile) 2>&5 9472 ac_status=$? 9473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9474 test $ac_status = 0; }; then 9475 if test yes = "$lt_cv_prog_gnu_ld"; then 9476 case `$FILECMD conftest.$ac_objext` in 9477 *32-bit*) 9478 LD="${LD-ld} -melf32bsmip" 9479 ;; 9480 *N32*) 9481 LD="${LD-ld} -melf32bmipn32" 9482 ;; 9483 *64-bit*) 9484 LD="${LD-ld} -melf64bmip" 9485 ;; 9486 esac 9487 else 9488 case `$FILECMD conftest.$ac_objext` in 9489 *32-bit*) 9490 LD="${LD-ld} -32" 9491 ;; 9492 *N32*) 9493 LD="${LD-ld} -n32" 9494 ;; 9495 *64-bit*) 9496 LD="${LD-ld} -64" 9497 ;; 9498 esac 9499 fi 9500 fi 9501 rm -rf conftest* 9502 ;; 9503 9504mips64*-*linux*) 9505 # Find out what ABI is being produced by ac_compile, and set linker 9506 # options accordingly. 9507 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9509 (eval $ac_compile) 2>&5 9510 ac_status=$? 9511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9512 test $ac_status = 0; }; then 9513 emul=elf 9514 case `$FILECMD conftest.$ac_objext` in 9515 *32-bit*) 9516 emul="${emul}32" 9517 ;; 9518 *64-bit*) 9519 emul="${emul}64" 9520 ;; 9521 esac 9522 case `$FILECMD conftest.$ac_objext` in 9523 *MSB*) 9524 emul="${emul}btsmip" 9525 ;; 9526 *LSB*) 9527 emul="${emul}ltsmip" 9528 ;; 9529 esac 9530 case `$FILECMD conftest.$ac_objext` in 9531 *N32*) 9532 emul="${emul}n32" 9533 ;; 9534 esac 9535 LD="${LD-ld} -m $emul" 9536 fi 9537 rm -rf conftest* 9538 ;; 9539 9540x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9541s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 9542 # Find out what ABI is being produced by ac_compile, and set linker 9543 # options accordingly. Note that the listed cases only cover the 9544 # situations where additional linker options are needed (such as when 9545 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9546 # vice versa); the common cases where no linker options are needed do 9547 # not appear in the list. 9548 echo 'int i;' > conftest.$ac_ext 9549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9550 (eval $ac_compile) 2>&5 9551 ac_status=$? 9552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9553 test $ac_status = 0; }; then 9554 case `$FILECMD conftest.o` in 9555 *32-bit*) 9556 case $host in 9557 x86_64-*kfreebsd*-gnu) 9558 LD="${LD-ld} -m elf_i386_fbsd" 9559 ;; 9560 x86_64-*linux*|x86_64-gnu*) 9561 case `$FILECMD conftest.o` in 9562 *x86-64*) 9563 LD="${LD-ld} -m elf32_x86_64" 9564 ;; 9565 *) 9566 LD="${LD-ld} -m elf_i386" 9567 ;; 9568 esac 9569 ;; 9570 powerpc64le-*linux*) 9571 LD="${LD-ld} -m elf32lppclinux" 9572 ;; 9573 powerpc64-*linux*) 9574 LD="${LD-ld} -m elf32ppclinux" 9575 ;; 9576 s390x-*linux*) 9577 LD="${LD-ld} -m elf_s390" 9578 ;; 9579 sparc64-*linux*) 9580 LD="${LD-ld} -m elf32_sparc" 9581 ;; 9582 esac 9583 ;; 9584 *64-bit*) 9585 case $host in 9586 x86_64-*kfreebsd*-gnu) 9587 LD="${LD-ld} -m elf_x86_64_fbsd" 9588 ;; 9589 x86_64-*linux*|x86_64-gnu*) 9590 LD="${LD-ld} -m elf_x86_64" 9591 ;; 9592 powerpcle-*linux*) 9593 LD="${LD-ld} -m elf64lppc" 9594 ;; 9595 powerpc-*linux*) 9596 LD="${LD-ld} -m elf64ppc" 9597 ;; 9598 s390*-*linux*|s390*-*tpf*) 9599 LD="${LD-ld} -m elf64_s390" 9600 ;; 9601 sparc*-*linux*) 9602 LD="${LD-ld} -m elf64_sparc" 9603 ;; 9604 esac 9605 ;; 9606 esac 9607 fi 9608 rm -rf conftest* 9609 ;; 9610 9611*-*-sco3.2v5*) 9612 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9613 SAVE_CFLAGS=$CFLAGS 9614 CFLAGS="$CFLAGS -belf" 9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9616printf %s "checking whether the C compiler needs -belf... " >&6; } 9617if test ${lt_cv_cc_needs_belf+y} 9618then : 9619 printf %s "(cached) " >&6 9620else case e in #( 9621 e) ac_ext=c 9622ac_cpp='$CPP $CPPFLAGS' 9623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9625ac_compiler_gnu=$ac_cv_c_compiler_gnu 9626 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629 9630int 9631main (void) 9632{ 9633 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638if ac_fn_c_try_link "$LINENO" 9639then : 9640 lt_cv_cc_needs_belf=yes 9641else case e in #( 9642 e) lt_cv_cc_needs_belf=no ;; 9643esac 9644fi 9645rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9646 conftest$ac_exeext conftest.$ac_ext 9647 ac_ext=c 9648ac_cpp='$CPP $CPPFLAGS' 9649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9651ac_compiler_gnu=$ac_cv_c_compiler_gnu 9652 ;; 9653esac 9654fi 9655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9656printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 9657 if test yes != "$lt_cv_cc_needs_belf"; then 9658 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9659 CFLAGS=$SAVE_CFLAGS 9660 fi 9661 ;; 9662*-*solaris*) 9663 # Find out what ABI is being produced by ac_compile, and set linker 9664 # options accordingly. 9665 echo 'int i;' > conftest.$ac_ext 9666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9667 (eval $ac_compile) 2>&5 9668 ac_status=$? 9669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9670 test $ac_status = 0; }; then 9671 case `$FILECMD conftest.o` in 9672 *64-bit*) 9673 case $lt_cv_prog_gnu_ld in 9674 yes*) 9675 case $host in 9676 i?86-*-solaris*|x86_64-*-solaris*) 9677 LD="${LD-ld} -m elf_x86_64" 9678 ;; 9679 sparc*-*-solaris*) 9680 LD="${LD-ld} -m elf64_sparc" 9681 ;; 9682 esac 9683 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9684 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9685 LD=${LD-ld}_sol2 9686 fi 9687 ;; 9688 *) 9689 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9690 LD="${LD-ld} -64" 9691 fi 9692 ;; 9693 esac 9694 ;; 9695 esac 9696 fi 9697 rm -rf conftest* 9698 ;; 9699esac 9700 9701need_locks=$enable_libtool_lock 9702 9703if test -n "$ac_tool_prefix"; then 9704 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9705set dummy ${ac_tool_prefix}mt; ac_word=$2 9706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9707printf %s "checking for $ac_word... " >&6; } 9708if test ${ac_cv_prog_MANIFEST_TOOL+y} 9709then : 9710 printf %s "(cached) " >&6 9711else case e in #( 9712 e) if test -n "$MANIFEST_TOOL"; then 9713 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9714else 9715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9716for as_dir in $PATH 9717do 9718 IFS=$as_save_IFS 9719 case $as_dir in #((( 9720 '') as_dir=./ ;; 9721 */) ;; 9722 *) as_dir=$as_dir/ ;; 9723 esac 9724 for ac_exec_ext in '' $ac_executable_extensions; do 9725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9726 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9728 break 2 9729 fi 9730done 9731 done 9732IFS=$as_save_IFS 9733 9734fi ;; 9735esac 9736fi 9737MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9738if test -n "$MANIFEST_TOOL"; then 9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9740printf "%s\n" "$MANIFEST_TOOL" >&6; } 9741else 9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9743printf "%s\n" "no" >&6; } 9744fi 9745 9746 9747fi 9748if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9749 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9750 # Extract the first word of "mt", so it can be a program name with args. 9751set dummy mt; ac_word=$2 9752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9753printf %s "checking for $ac_word... " >&6; } 9754if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 9755then : 9756 printf %s "(cached) " >&6 9757else case e in #( 9758 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 9759 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9760else 9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9762for as_dir in $PATH 9763do 9764 IFS=$as_save_IFS 9765 case $as_dir in #((( 9766 '') as_dir=./ ;; 9767 */) ;; 9768 *) as_dir=$as_dir/ ;; 9769 esac 9770 for ac_exec_ext in '' $ac_executable_extensions; do 9771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9772 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9774 break 2 9775 fi 9776done 9777 done 9778IFS=$as_save_IFS 9779 9780fi ;; 9781esac 9782fi 9783ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9784if test -n "$ac_ct_MANIFEST_TOOL"; then 9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9786printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 9787else 9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9789printf "%s\n" "no" >&6; } 9790fi 9791 9792 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9793 MANIFEST_TOOL=":" 9794 else 9795 case $cross_compiling:$ac_tool_warned in 9796yes:) 9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9799ac_tool_warned=yes ;; 9800esac 9801 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9802 fi 9803else 9804 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9805fi 9806 9807test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9809printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9810if test ${lt_cv_path_manifest_tool+y} 9811then : 9812 printf %s "(cached) " >&6 9813else case e in #( 9814 e) lt_cv_path_manifest_tool=no 9815 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9816 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9817 cat conftest.err >&5 9818 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9819 lt_cv_path_manifest_tool=yes 9820 fi 9821 rm -f conftest* ;; 9822esac 9823fi 9824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 9825printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 9826if test yes != "$lt_cv_path_manifest_tool"; then 9827 MANIFEST_TOOL=: 9828fi 9829 9830 9831 9832 9833 9834 9835 case $host_os in 9836 rhapsody* | darwin*) 9837 if test -n "$ac_tool_prefix"; then 9838 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9839set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9841printf %s "checking for $ac_word... " >&6; } 9842if test ${ac_cv_prog_DSYMUTIL+y} 9843then : 9844 printf %s "(cached) " >&6 9845else case e in #( 9846 e) if test -n "$DSYMUTIL"; then 9847 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9848else 9849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9850for as_dir in $PATH 9851do 9852 IFS=$as_save_IFS 9853 case $as_dir in #((( 9854 '') as_dir=./ ;; 9855 */) ;; 9856 *) as_dir=$as_dir/ ;; 9857 esac 9858 for ac_exec_ext in '' $ac_executable_extensions; do 9859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9860 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9862 break 2 9863 fi 9864done 9865 done 9866IFS=$as_save_IFS 9867 9868fi ;; 9869esac 9870fi 9871DSYMUTIL=$ac_cv_prog_DSYMUTIL 9872if test -n "$DSYMUTIL"; then 9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9874printf "%s\n" "$DSYMUTIL" >&6; } 9875else 9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9877printf "%s\n" "no" >&6; } 9878fi 9879 9880 9881fi 9882if test -z "$ac_cv_prog_DSYMUTIL"; then 9883 ac_ct_DSYMUTIL=$DSYMUTIL 9884 # Extract the first word of "dsymutil", so it can be a program name with args. 9885set dummy dsymutil; ac_word=$2 9886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9887printf %s "checking for $ac_word... " >&6; } 9888if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 9889then : 9890 printf %s "(cached) " >&6 9891else case e in #( 9892 e) if test -n "$ac_ct_DSYMUTIL"; then 9893 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9894else 9895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9896for as_dir in $PATH 9897do 9898 IFS=$as_save_IFS 9899 case $as_dir in #((( 9900 '') as_dir=./ ;; 9901 */) ;; 9902 *) as_dir=$as_dir/ ;; 9903 esac 9904 for ac_exec_ext in '' $ac_executable_extensions; do 9905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9906 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9908 break 2 9909 fi 9910done 9911 done 9912IFS=$as_save_IFS 9913 9914fi ;; 9915esac 9916fi 9917ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9918if test -n "$ac_ct_DSYMUTIL"; then 9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9920printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 9921else 9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9923printf "%s\n" "no" >&6; } 9924fi 9925 9926 if test "x$ac_ct_DSYMUTIL" = x; then 9927 DSYMUTIL=":" 9928 else 9929 case $cross_compiling:$ac_tool_warned in 9930yes:) 9931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9932printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9933ac_tool_warned=yes ;; 9934esac 9935 DSYMUTIL=$ac_ct_DSYMUTIL 9936 fi 9937else 9938 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9939fi 9940 9941 if test -n "$ac_tool_prefix"; then 9942 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9943set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9945printf %s "checking for $ac_word... " >&6; } 9946if test ${ac_cv_prog_NMEDIT+y} 9947then : 9948 printf %s "(cached) " >&6 9949else case e in #( 9950 e) if test -n "$NMEDIT"; then 9951 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9952else 9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9954for as_dir in $PATH 9955do 9956 IFS=$as_save_IFS 9957 case $as_dir in #((( 9958 '') as_dir=./ ;; 9959 */) ;; 9960 *) as_dir=$as_dir/ ;; 9961 esac 9962 for ac_exec_ext in '' $ac_executable_extensions; do 9963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9964 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9966 break 2 9967 fi 9968done 9969 done 9970IFS=$as_save_IFS 9971 9972fi ;; 9973esac 9974fi 9975NMEDIT=$ac_cv_prog_NMEDIT 9976if test -n "$NMEDIT"; then 9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9978printf "%s\n" "$NMEDIT" >&6; } 9979else 9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9981printf "%s\n" "no" >&6; } 9982fi 9983 9984 9985fi 9986if test -z "$ac_cv_prog_NMEDIT"; then 9987 ac_ct_NMEDIT=$NMEDIT 9988 # Extract the first word of "nmedit", so it can be a program name with args. 9989set dummy nmedit; ac_word=$2 9990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9991printf %s "checking for $ac_word... " >&6; } 9992if test ${ac_cv_prog_ac_ct_NMEDIT+y} 9993then : 9994 printf %s "(cached) " >&6 9995else case e in #( 9996 e) if test -n "$ac_ct_NMEDIT"; then 9997 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9998else 9999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10000for as_dir in $PATH 10001do 10002 IFS=$as_save_IFS 10003 case $as_dir in #((( 10004 '') as_dir=./ ;; 10005 */) ;; 10006 *) as_dir=$as_dir/ ;; 10007 esac 10008 for ac_exec_ext in '' $ac_executable_extensions; do 10009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10010 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10012 break 2 10013 fi 10014done 10015 done 10016IFS=$as_save_IFS 10017 10018fi ;; 10019esac 10020fi 10021ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10022if test -n "$ac_ct_NMEDIT"; then 10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10024printf "%s\n" "$ac_ct_NMEDIT" >&6; } 10025else 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10027printf "%s\n" "no" >&6; } 10028fi 10029 10030 if test "x$ac_ct_NMEDIT" = x; then 10031 NMEDIT=":" 10032 else 10033 case $cross_compiling:$ac_tool_warned in 10034yes:) 10035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10037ac_tool_warned=yes ;; 10038esac 10039 NMEDIT=$ac_ct_NMEDIT 10040 fi 10041else 10042 NMEDIT="$ac_cv_prog_NMEDIT" 10043fi 10044 10045 if test -n "$ac_tool_prefix"; then 10046 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10047set dummy ${ac_tool_prefix}lipo; ac_word=$2 10048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10049printf %s "checking for $ac_word... " >&6; } 10050if test ${ac_cv_prog_LIPO+y} 10051then : 10052 printf %s "(cached) " >&6 10053else case e in #( 10054 e) if test -n "$LIPO"; then 10055 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10056else 10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10058for as_dir in $PATH 10059do 10060 IFS=$as_save_IFS 10061 case $as_dir in #((( 10062 '') as_dir=./ ;; 10063 */) ;; 10064 *) as_dir=$as_dir/ ;; 10065 esac 10066 for ac_exec_ext in '' $ac_executable_extensions; do 10067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10068 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10070 break 2 10071 fi 10072done 10073 done 10074IFS=$as_save_IFS 10075 10076fi ;; 10077esac 10078fi 10079LIPO=$ac_cv_prog_LIPO 10080if test -n "$LIPO"; then 10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10082printf "%s\n" "$LIPO" >&6; } 10083else 10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10085printf "%s\n" "no" >&6; } 10086fi 10087 10088 10089fi 10090if test -z "$ac_cv_prog_LIPO"; then 10091 ac_ct_LIPO=$LIPO 10092 # Extract the first word of "lipo", so it can be a program name with args. 10093set dummy lipo; ac_word=$2 10094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10095printf %s "checking for $ac_word... " >&6; } 10096if test ${ac_cv_prog_ac_ct_LIPO+y} 10097then : 10098 printf %s "(cached) " >&6 10099else case e in #( 10100 e) if test -n "$ac_ct_LIPO"; then 10101 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10102else 10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10104for as_dir in $PATH 10105do 10106 IFS=$as_save_IFS 10107 case $as_dir in #((( 10108 '') as_dir=./ ;; 10109 */) ;; 10110 *) as_dir=$as_dir/ ;; 10111 esac 10112 for ac_exec_ext in '' $ac_executable_extensions; do 10113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10114 ac_cv_prog_ac_ct_LIPO="lipo" 10115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10116 break 2 10117 fi 10118done 10119 done 10120IFS=$as_save_IFS 10121 10122fi ;; 10123esac 10124fi 10125ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10126if test -n "$ac_ct_LIPO"; then 10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10128printf "%s\n" "$ac_ct_LIPO" >&6; } 10129else 10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10131printf "%s\n" "no" >&6; } 10132fi 10133 10134 if test "x$ac_ct_LIPO" = x; then 10135 LIPO=":" 10136 else 10137 case $cross_compiling:$ac_tool_warned in 10138yes:) 10139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10140printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10141ac_tool_warned=yes ;; 10142esac 10143 LIPO=$ac_ct_LIPO 10144 fi 10145else 10146 LIPO="$ac_cv_prog_LIPO" 10147fi 10148 10149 if test -n "$ac_tool_prefix"; then 10150 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10151set dummy ${ac_tool_prefix}otool; ac_word=$2 10152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10153printf %s "checking for $ac_word... " >&6; } 10154if test ${ac_cv_prog_OTOOL+y} 10155then : 10156 printf %s "(cached) " >&6 10157else case e in #( 10158 e) if test -n "$OTOOL"; then 10159 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10160else 10161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10162for as_dir in $PATH 10163do 10164 IFS=$as_save_IFS 10165 case $as_dir in #((( 10166 '') as_dir=./ ;; 10167 */) ;; 10168 *) as_dir=$as_dir/ ;; 10169 esac 10170 for ac_exec_ext in '' $ac_executable_extensions; do 10171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10172 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10174 break 2 10175 fi 10176done 10177 done 10178IFS=$as_save_IFS 10179 10180fi ;; 10181esac 10182fi 10183OTOOL=$ac_cv_prog_OTOOL 10184if test -n "$OTOOL"; then 10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10186printf "%s\n" "$OTOOL" >&6; } 10187else 10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10189printf "%s\n" "no" >&6; } 10190fi 10191 10192 10193fi 10194if test -z "$ac_cv_prog_OTOOL"; then 10195 ac_ct_OTOOL=$OTOOL 10196 # Extract the first word of "otool", so it can be a program name with args. 10197set dummy otool; ac_word=$2 10198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10199printf %s "checking for $ac_word... " >&6; } 10200if test ${ac_cv_prog_ac_ct_OTOOL+y} 10201then : 10202 printf %s "(cached) " >&6 10203else case e in #( 10204 e) if test -n "$ac_ct_OTOOL"; then 10205 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10206else 10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10208for as_dir in $PATH 10209do 10210 IFS=$as_save_IFS 10211 case $as_dir in #((( 10212 '') as_dir=./ ;; 10213 */) ;; 10214 *) as_dir=$as_dir/ ;; 10215 esac 10216 for ac_exec_ext in '' $ac_executable_extensions; do 10217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10218 ac_cv_prog_ac_ct_OTOOL="otool" 10219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10220 break 2 10221 fi 10222done 10223 done 10224IFS=$as_save_IFS 10225 10226fi ;; 10227esac 10228fi 10229ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10230if test -n "$ac_ct_OTOOL"; then 10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10232printf "%s\n" "$ac_ct_OTOOL" >&6; } 10233else 10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10235printf "%s\n" "no" >&6; } 10236fi 10237 10238 if test "x$ac_ct_OTOOL" = x; then 10239 OTOOL=":" 10240 else 10241 case $cross_compiling:$ac_tool_warned in 10242yes:) 10243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10244printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10245ac_tool_warned=yes ;; 10246esac 10247 OTOOL=$ac_ct_OTOOL 10248 fi 10249else 10250 OTOOL="$ac_cv_prog_OTOOL" 10251fi 10252 10253 if test -n "$ac_tool_prefix"; then 10254 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10255set dummy ${ac_tool_prefix}otool64; ac_word=$2 10256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10257printf %s "checking for $ac_word... " >&6; } 10258if test ${ac_cv_prog_OTOOL64+y} 10259then : 10260 printf %s "(cached) " >&6 10261else case e in #( 10262 e) if test -n "$OTOOL64"; then 10263 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10264else 10265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10266for as_dir in $PATH 10267do 10268 IFS=$as_save_IFS 10269 case $as_dir in #((( 10270 '') as_dir=./ ;; 10271 */) ;; 10272 *) as_dir=$as_dir/ ;; 10273 esac 10274 for ac_exec_ext in '' $ac_executable_extensions; do 10275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10276 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10278 break 2 10279 fi 10280done 10281 done 10282IFS=$as_save_IFS 10283 10284fi ;; 10285esac 10286fi 10287OTOOL64=$ac_cv_prog_OTOOL64 10288if test -n "$OTOOL64"; then 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10290printf "%s\n" "$OTOOL64" >&6; } 10291else 10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10293printf "%s\n" "no" >&6; } 10294fi 10295 10296 10297fi 10298if test -z "$ac_cv_prog_OTOOL64"; then 10299 ac_ct_OTOOL64=$OTOOL64 10300 # Extract the first word of "otool64", so it can be a program name with args. 10301set dummy otool64; ac_word=$2 10302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10303printf %s "checking for $ac_word... " >&6; } 10304if test ${ac_cv_prog_ac_ct_OTOOL64+y} 10305then : 10306 printf %s "(cached) " >&6 10307else case e in #( 10308 e) if test -n "$ac_ct_OTOOL64"; then 10309 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10310else 10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10312for as_dir in $PATH 10313do 10314 IFS=$as_save_IFS 10315 case $as_dir in #((( 10316 '') as_dir=./ ;; 10317 */) ;; 10318 *) as_dir=$as_dir/ ;; 10319 esac 10320 for ac_exec_ext in '' $ac_executable_extensions; do 10321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10322 ac_cv_prog_ac_ct_OTOOL64="otool64" 10323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10324 break 2 10325 fi 10326done 10327 done 10328IFS=$as_save_IFS 10329 10330fi ;; 10331esac 10332fi 10333ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10334if test -n "$ac_ct_OTOOL64"; then 10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10336printf "%s\n" "$ac_ct_OTOOL64" >&6; } 10337else 10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10339printf "%s\n" "no" >&6; } 10340fi 10341 10342 if test "x$ac_ct_OTOOL64" = x; then 10343 OTOOL64=":" 10344 else 10345 case $cross_compiling:$ac_tool_warned in 10346yes:) 10347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10348printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10349ac_tool_warned=yes ;; 10350esac 10351 OTOOL64=$ac_ct_OTOOL64 10352 fi 10353else 10354 OTOOL64="$ac_cv_prog_OTOOL64" 10355fi 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10384printf %s "checking for -single_module linker flag... " >&6; } 10385if test ${lt_cv_apple_cc_single_mod+y} 10386then : 10387 printf %s "(cached) " >&6 10388else case e in #( 10389 e) lt_cv_apple_cc_single_mod=no 10390 if test -z "$LT_MULTI_MODULE"; then 10391 # By default we will add the -single_module flag. You can override 10392 # by either setting the environment variable LT_MULTI_MODULE 10393 # non-empty at configure time, or by adding -multi_module to the 10394 # link flags. 10395 rm -rf libconftest.dylib* 10396 echo "int foo(void){return 1;}" > conftest.c 10397 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10398-dynamiclib -Wl,-single_module conftest.c" >&5 10399 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10400 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10401 _lt_result=$? 10402 # If there is a non-empty error log, and "single_module" 10403 # appears in it, assume the flag caused a linker warning 10404 if test -s conftest.err && $GREP single_module conftest.err; then 10405 cat conftest.err >&5 10406 # Otherwise, if the output was created with a 0 exit code from 10407 # the compiler, it worked. 10408 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10409 lt_cv_apple_cc_single_mod=yes 10410 else 10411 cat conftest.err >&5 10412 fi 10413 rm -rf libconftest.dylib* 10414 rm -f conftest.* 10415 fi ;; 10416esac 10417fi 10418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10419printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 10420 10421 # Feature test to disable chained fixups since it is not 10422 # compatible with '-undefined dynamic_lookup' 10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 10424printf %s "checking for -no_fixup_chains linker flag... " >&6; } 10425if test ${lt_cv_support_no_fixup_chains+y} 10426then : 10427 printf %s "(cached) " >&6 10428else case e in #( 10429 e) save_LDFLAGS=$LDFLAGS 10430 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10432/* end confdefs.h. */ 10433 10434int 10435main (void) 10436{ 10437 10438 ; 10439 return 0; 10440} 10441_ACEOF 10442if ac_fn_c_try_link "$LINENO" 10443then : 10444 lt_cv_support_no_fixup_chains=yes 10445else case e in #( 10446 e) lt_cv_support_no_fixup_chains=no 10447 ;; 10448esac 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10451 conftest$ac_exeext conftest.$ac_ext 10452 LDFLAGS=$save_LDFLAGS 10453 10454 ;; 10455esac 10456fi 10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 10458printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 10459 10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10461printf %s "checking for -exported_symbols_list linker flag... " >&6; } 10462if test ${lt_cv_ld_exported_symbols_list+y} 10463then : 10464 printf %s "(cached) " >&6 10465else case e in #( 10466 e) lt_cv_ld_exported_symbols_list=no 10467 save_LDFLAGS=$LDFLAGS 10468 echo "_main" > conftest.sym 10469 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10471/* end confdefs.h. */ 10472 10473int 10474main (void) 10475{ 10476 10477 ; 10478 return 0; 10479} 10480_ACEOF 10481if ac_fn_c_try_link "$LINENO" 10482then : 10483 lt_cv_ld_exported_symbols_list=yes 10484else case e in #( 10485 e) lt_cv_ld_exported_symbols_list=no ;; 10486esac 10487fi 10488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10489 conftest$ac_exeext conftest.$ac_ext 10490 LDFLAGS=$save_LDFLAGS 10491 ;; 10492esac 10493fi 10494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10495printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 10496 10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10498printf %s "checking for -force_load linker flag... " >&6; } 10499if test ${lt_cv_ld_force_load+y} 10500then : 10501 printf %s "(cached) " >&6 10502else case e in #( 10503 e) lt_cv_ld_force_load=no 10504 cat > conftest.c << _LT_EOF 10505int forced_loaded() { return 2;} 10506_LT_EOF 10507 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10508 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10509 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 10510 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 10511 echo "$RANLIB libconftest.a" >&5 10512 $RANLIB libconftest.a 2>&5 10513 cat > conftest.c << _LT_EOF 10514int main(void) { return 0;} 10515_LT_EOF 10516 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10517 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10518 _lt_result=$? 10519 if test -s conftest.err && $GREP force_load conftest.err; then 10520 cat conftest.err >&5 10521 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10522 lt_cv_ld_force_load=yes 10523 else 10524 cat conftest.err >&5 10525 fi 10526 rm -f conftest.err libconftest.a conftest conftest.c 10527 rm -rf conftest.dSYM 10528 ;; 10529esac 10530fi 10531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10532printf "%s\n" "$lt_cv_ld_force_load" >&6; } 10533 case $host_os in 10534 rhapsody* | darwin1.[012]) 10535 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10536 darwin1.*) 10537 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10538 darwin*) 10539 case $MACOSX_DEPLOYMENT_TARGET,$host in 10540 10.[012],*|,*powerpc*-darwin[5-8]*) 10541 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10542 *) 10543 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 10544 if test yes = "$lt_cv_support_no_fixup_chains"; then 10545 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 10546 fi 10547 ;; 10548 esac 10549 ;; 10550 esac 10551 if test yes = "$lt_cv_apple_cc_single_mod"; then 10552 _lt_dar_single_mod='$single_module' 10553 fi 10554 _lt_dar_needs_single_mod=no 10555 case $host_os in 10556 rhapsody* | darwin1.*) 10557 _lt_dar_needs_single_mod=yes ;; 10558 darwin*) 10559 # When targeting Mac OS X 10.4 (darwin 8) or later, 10560 # -single_module is the default and -multi_module is unsupported. 10561 # The toolchain on macOS 10.14 (darwin 18) and later cannot 10562 # target any OS version that needs -single_module. 10563 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10564 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 10565 _lt_dar_needs_single_mod=yes ;; 10566 esac 10567 ;; 10568 esac 10569 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10570 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10571 else 10572 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10573 fi 10574 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10575 _lt_dsymutil='~$DSYMUTIL $lib || :' 10576 else 10577 _lt_dsymutil= 10578 fi 10579 ;; 10580 esac 10581 10582# func_munge_path_list VARIABLE PATH 10583# ----------------------------------- 10584# VARIABLE is name of variable containing _space_ separated list of 10585# directories to be munged by the contents of PATH, which is string 10586# having a format: 10587# "DIR[:DIR]:" 10588# string "DIR[ DIR]" will be prepended to VARIABLE 10589# ":DIR[:DIR]" 10590# string "DIR[ DIR]" will be appended to VARIABLE 10591# "DIRP[:DIRP]::[DIRA:]DIRA" 10592# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10593# "DIRA[ DIRA]" will be appended to VARIABLE 10594# "DIR[:DIR]" 10595# VARIABLE will be replaced by "DIR[ DIR]" 10596func_munge_path_list () 10597{ 10598 case x$2 in 10599 x) 10600 ;; 10601 *:) 10602 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10603 ;; 10604 x:*) 10605 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10606 ;; 10607 *::*) 10608 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10609 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10610 ;; 10611 *) 10612 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10613 ;; 10614 esac 10615} 10616 10617ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10618" 10619if test "x$ac_cv_header_dlfcn_h" = xyes 10620then : 10621 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 10622 10623fi 10624 10625 10626 10627 10628func_stripname_cnf () 10629{ 10630 case $2 in 10631 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10632 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10633 esac 10634} # func_stripname_cnf 10635 10636 10637 10638 10639 10640# Set options 10641# Check whether --enable-static was given. 10642if test ${enable_static+y} 10643then : 10644 enableval=$enable_static; p=${PACKAGE-default} 10645 case $enableval in 10646 yes) enable_static=yes ;; 10647 no) enable_static=no ;; 10648 *) 10649 enable_static=no 10650 # Look at the argument we got. We use all the common list separators. 10651 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10652 for pkg in $enableval; do 10653 IFS=$lt_save_ifs 10654 if test "X$pkg" = "X$p"; then 10655 enable_static=yes 10656 fi 10657 done 10658 IFS=$lt_save_ifs 10659 ;; 10660 esac 10661else case e in #( 10662 e) enable_static=no ;; 10663esac 10664fi 10665 10666 10667 10668 10669 10670 10671 10672enable_dlopen=yes 10673 10674 10675 10676 10677 enable_win32_dll=no 10678 10679 10680 # Check whether --enable-shared was given. 10681if test ${enable_shared+y} 10682then : 10683 enableval=$enable_shared; p=${PACKAGE-default} 10684 case $enableval in 10685 yes) enable_shared=yes ;; 10686 no) enable_shared=no ;; 10687 *) 10688 enable_shared=no 10689 # Look at the argument we got. We use all the common list separators. 10690 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10691 for pkg in $enableval; do 10692 IFS=$lt_save_ifs 10693 if test "X$pkg" = "X$p"; then 10694 enable_shared=yes 10695 fi 10696 done 10697 IFS=$lt_save_ifs 10698 ;; 10699 esac 10700else case e in #( 10701 e) enable_shared=yes ;; 10702esac 10703fi 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 # Check whether --enable-pic was given. 10715if test ${enable_pic+y} 10716then : 10717 enableval=$enable_pic; lt_p=${PACKAGE-default} 10718 case $enableval in 10719 yes|no) pic_mode=$enableval ;; 10720 *) 10721 pic_mode=default 10722 # Look at the argument we got. We use all the common list separators. 10723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10724 for lt_pkg in $enableval; do 10725 IFS=$lt_save_ifs 10726 if test "X$lt_pkg" = "X$lt_p"; then 10727 pic_mode=yes 10728 fi 10729 done 10730 IFS=$lt_save_ifs 10731 ;; 10732 esac 10733else case e in #( 10734 e) # Check whether --with-pic was given. 10735if test ${with_pic+y} 10736then : 10737 withval=$with_pic; lt_p=${PACKAGE-default} 10738 case $withval in 10739 yes|no) pic_mode=$withval ;; 10740 *) 10741 pic_mode=default 10742 # Look at the argument we got. We use all the common list separators. 10743 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10744 for lt_pkg in $withval; do 10745 IFS=$lt_save_ifs 10746 if test "X$lt_pkg" = "X$lt_p"; then 10747 pic_mode=yes 10748 fi 10749 done 10750 IFS=$lt_save_ifs 10751 ;; 10752 esac 10753else case e in #( 10754 e) pic_mode=default ;; 10755esac 10756fi 10757 10758 ;; 10759esac 10760fi 10761 10762 10763 10764 10765 10766 10767 10768 10769 # Check whether --enable-fast-install was given. 10770if test ${enable_fast_install+y} 10771then : 10772 enableval=$enable_fast_install; p=${PACKAGE-default} 10773 case $enableval in 10774 yes) enable_fast_install=yes ;; 10775 no) enable_fast_install=no ;; 10776 *) 10777 enable_fast_install=no 10778 # Look at the argument we got. We use all the common list separators. 10779 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10780 for pkg in $enableval; do 10781 IFS=$lt_save_ifs 10782 if test "X$pkg" = "X$p"; then 10783 enable_fast_install=yes 10784 fi 10785 done 10786 IFS=$lt_save_ifs 10787 ;; 10788 esac 10789else case e in #( 10790 e) enable_fast_install=yes ;; 10791esac 10792fi 10793 10794 10795 10796 10797 10798 10799 10800 10801 shared_archive_member_spec= 10802case $host,$enable_shared in 10803power*-*-aix[5-9]*,yes) 10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10805printf %s "checking which variant of shared library versioning to provide... " >&6; } 10806 # Check whether --enable-aix-soname was given. 10807if test ${enable_aix_soname+y} 10808then : 10809 enableval=$enable_aix_soname; case $enableval in 10810 aix|svr4|both) 10811 ;; 10812 *) 10813 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 10814 ;; 10815 esac 10816 lt_cv_with_aix_soname=$enable_aix_soname 10817else case e in #( 10818 e) # Check whether --with-aix-soname was given. 10819if test ${with_aix_soname+y} 10820then : 10821 withval=$with_aix_soname; case $withval in 10822 aix|svr4|both) 10823 ;; 10824 *) 10825 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10826 ;; 10827 esac 10828 lt_cv_with_aix_soname=$with_aix_soname 10829else case e in #( 10830 e) if test ${lt_cv_with_aix_soname+y} 10831then : 10832 printf %s "(cached) " >&6 10833else case e in #( 10834 e) lt_cv_with_aix_soname=aix ;; 10835esac 10836fi 10837 ;; 10838esac 10839fi 10840 10841 enable_aix_soname=$lt_cv_with_aix_soname ;; 10842esac 10843fi 10844 10845 with_aix_soname=$enable_aix_soname 10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10847printf "%s\n" "$with_aix_soname" >&6; } 10848 if test aix != "$with_aix_soname"; then 10849 # For the AIX way of multilib, we name the shared archive member 10850 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10851 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10852 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10853 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10854 if test 64 = "${OBJECT_MODE-32}"; then 10855 shared_archive_member_spec=shr_64 10856 else 10857 shared_archive_member_spec=shr 10858 fi 10859 fi 10860 ;; 10861*) 10862 with_aix_soname=aix 10863 ;; 10864esac 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875# This can be used to rebuild libtool when needed 10876LIBTOOL_DEPS=$ltmain 10877 10878# Always use our own libtool. 10879LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910test -z "$LN_S" && LN_S="ln -s" 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925if test -n "${ZSH_VERSION+set}"; then 10926 setopt NO_GLOB_SUBST 10927fi 10928 10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10930printf %s "checking for objdir... " >&6; } 10931if test ${lt_cv_objdir+y} 10932then : 10933 printf %s "(cached) " >&6 10934else case e in #( 10935 e) rm -f .libs 2>/dev/null 10936mkdir .libs 2>/dev/null 10937if test -d .libs; then 10938 lt_cv_objdir=.libs 10939else 10940 # MS-DOS does not allow filenames that begin with a dot. 10941 lt_cv_objdir=_libs 10942fi 10943rmdir .libs 2>/dev/null ;; 10944esac 10945fi 10946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10947printf "%s\n" "$lt_cv_objdir" >&6; } 10948objdir=$lt_cv_objdir 10949 10950 10951 10952 10953 10954printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 10955 10956 10957 10958 10959case $host_os in 10960aix3*) 10961 # AIX sometimes has problems with the GCC collect2 program. For some 10962 # reason, if we set the COLLECT_NAMES environment variable, the problems 10963 # vanish in a puff of smoke. 10964 if test set != "${COLLECT_NAMES+set}"; then 10965 COLLECT_NAMES= 10966 export COLLECT_NAMES 10967 fi 10968 ;; 10969esac 10970 10971# Global variables: 10972ofile=libtool 10973can_build_shared=yes 10974 10975# All known linkers require a '.a' archive for static linking (except MSVC and 10976# ICC, which need '.lib'). 10977libext=a 10978 10979with_gnu_ld=$lt_cv_prog_gnu_ld 10980 10981old_CC=$CC 10982old_CFLAGS=$CFLAGS 10983 10984# Set sane defaults for various variables 10985test -z "$CC" && CC=cc 10986test -z "$LTCC" && LTCC=$CC 10987test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10988test -z "$LD" && LD=ld 10989test -z "$ac_objext" && ac_objext=o 10990 10991func_cc_basename $compiler 10992cc_basename=$func_cc_basename_result 10993 10994 10995# Only perform the check for file, if the check method requires it 10996test -z "$MAGIC_CMD" && MAGIC_CMD=file 10997case $deplibs_check_method in 10998file_magic*) 10999 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11001printf %s "checking for ${ac_tool_prefix}file... " >&6; } 11002if test ${lt_cv_path_MAGIC_CMD+y} 11003then : 11004 printf %s "(cached) " >&6 11005else case e in #( 11006 e) case $MAGIC_CMD in 11007[\\/*] | ?:[\\/]*) 11008 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11009 ;; 11010*) 11011 lt_save_MAGIC_CMD=$MAGIC_CMD 11012 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11014 for ac_dir in $ac_dummy; do 11015 IFS=$lt_save_ifs 11016 test -z "$ac_dir" && ac_dir=. 11017 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11018 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11019 if test -n "$file_magic_test_file"; then 11020 case $deplibs_check_method in 11021 "file_magic "*) 11022 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11023 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11025 $EGREP "$file_magic_regex" > /dev/null; then 11026 : 11027 else 11028 cat <<_LT_EOF 1>&2 11029 11030*** Warning: the command libtool uses to detect shared libraries, 11031*** $file_magic_cmd, produces output that libtool cannot recognize. 11032*** The result is that libtool may fail to recognize shared libraries 11033*** as such. This will affect the creation of libtool libraries that 11034*** depend on shared libraries, but programs linked with such libtool 11035*** libraries will work regardless of this problem. Nevertheless, you 11036*** may want to report the problem to your system manager and/or to 11037*** bug-libtool@gnu.org 11038 11039_LT_EOF 11040 fi ;; 11041 esac 11042 fi 11043 break 11044 fi 11045 done 11046 IFS=$lt_save_ifs 11047 MAGIC_CMD=$lt_save_MAGIC_CMD 11048 ;; 11049esac ;; 11050esac 11051fi 11052 11053MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11054if test -n "$MAGIC_CMD"; then 11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11056printf "%s\n" "$MAGIC_CMD" >&6; } 11057else 11058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11059printf "%s\n" "no" >&6; } 11060fi 11061 11062 11063 11064 11065 11066if test -z "$lt_cv_path_MAGIC_CMD"; then 11067 if test -n "$ac_tool_prefix"; then 11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11069printf %s "checking for file... " >&6; } 11070if test ${lt_cv_path_MAGIC_CMD+y} 11071then : 11072 printf %s "(cached) " >&6 11073else case e in #( 11074 e) case $MAGIC_CMD in 11075[\\/*] | ?:[\\/]*) 11076 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11077 ;; 11078*) 11079 lt_save_MAGIC_CMD=$MAGIC_CMD 11080 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11081 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11082 for ac_dir in $ac_dummy; do 11083 IFS=$lt_save_ifs 11084 test -z "$ac_dir" && ac_dir=. 11085 if test -f "$ac_dir/file"; then 11086 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11087 if test -n "$file_magic_test_file"; then 11088 case $deplibs_check_method in 11089 "file_magic "*) 11090 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11091 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11093 $EGREP "$file_magic_regex" > /dev/null; then 11094 : 11095 else 11096 cat <<_LT_EOF 1>&2 11097 11098*** Warning: the command libtool uses to detect shared libraries, 11099*** $file_magic_cmd, produces output that libtool cannot recognize. 11100*** The result is that libtool may fail to recognize shared libraries 11101*** as such. This will affect the creation of libtool libraries that 11102*** depend on shared libraries, but programs linked with such libtool 11103*** libraries will work regardless of this problem. Nevertheless, you 11104*** may want to report the problem to your system manager and/or to 11105*** bug-libtool@gnu.org 11106 11107_LT_EOF 11108 fi ;; 11109 esac 11110 fi 11111 break 11112 fi 11113 done 11114 IFS=$lt_save_ifs 11115 MAGIC_CMD=$lt_save_MAGIC_CMD 11116 ;; 11117esac ;; 11118esac 11119fi 11120 11121MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11122if test -n "$MAGIC_CMD"; then 11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11124printf "%s\n" "$MAGIC_CMD" >&6; } 11125else 11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11127printf "%s\n" "no" >&6; } 11128fi 11129 11130 11131 else 11132 MAGIC_CMD=: 11133 fi 11134fi 11135 11136 fi 11137 ;; 11138esac 11139 11140# Use C for the default configuration in the libtool script 11141 11142lt_save_CC=$CC 11143ac_ext=c 11144ac_cpp='$CPP $CPPFLAGS' 11145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11147ac_compiler_gnu=$ac_cv_c_compiler_gnu 11148 11149 11150# Source file extension for C test sources. 11151ac_ext=c 11152 11153# Object file extension for compiled C test sources. 11154objext=o 11155objext=$objext 11156 11157# Code to be used in simple compile tests 11158lt_simple_compile_test_code="int some_variable = 0;" 11159 11160# Code to be used in simple link tests 11161lt_simple_link_test_code='int main(void){return(0);}' 11162 11163 11164 11165 11166 11167 11168 11169# If no C compiler was specified, use CC. 11170LTCC=${LTCC-"$CC"} 11171 11172# If no C compiler flags were specified, use CFLAGS. 11173LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11174 11175# Allow CC to be a program name with arguments. 11176compiler=$CC 11177 11178# Save the default compiler, since it gets overwritten when the other 11179# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11180compiler_DEFAULT=$CC 11181 11182# save warnings/boilerplate of simple test code 11183ac_outfile=conftest.$ac_objext 11184echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11186_lt_compiler_boilerplate=`cat conftest.err` 11187$RM conftest* 11188 11189ac_outfile=conftest.$ac_objext 11190echo "$lt_simple_link_test_code" >conftest.$ac_ext 11191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11192_lt_linker_boilerplate=`cat conftest.err` 11193$RM -r conftest* 11194 11195 11196## CAVEAT EMPTOR: 11197## There is no encapsulation within the following macros, do not change 11198## the running order or otherwise move them around unless you know exactly 11199## what you are doing... 11200if test -n "$compiler"; then 11201 11202lt_prog_compiler_no_builtin_flag= 11203 11204if test yes = "$GCC"; then 11205 case $cc_basename in 11206 nvcc*) 11207 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11208 *) 11209 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11210 esac 11211 11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11213printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11214if test ${lt_cv_prog_compiler_rtti_exceptions+y} 11215then : 11216 printf %s "(cached) " >&6 11217else case e in #( 11218 e) lt_cv_prog_compiler_rtti_exceptions=no 11219 ac_outfile=conftest.$ac_objext 11220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11221 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11222 # Insert the option either (1) after the last *FLAGS variable, or 11223 # (2) before a word containing "conftest.", or (3) at the end. 11224 # Note that $ac_compile itself does not contain backslashes and begins 11225 # with a dollar sign (not a hyphen), so the echo should work correctly. 11226 # The option is referenced via a variable to avoid confusing sed. 11227 lt_compile=`echo "$ac_compile" | $SED \ 11228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11230 -e 's:$: $lt_compiler_flag:'` 11231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11232 (eval "$lt_compile" 2>conftest.err) 11233 ac_status=$? 11234 cat conftest.err >&5 11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11236 if (exit $ac_status) && test -s "$ac_outfile"; then 11237 # The compiler can only warn and ignore the option if not recognized 11238 # So say no if there are warnings other than the usual output. 11239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11242 lt_cv_prog_compiler_rtti_exceptions=yes 11243 fi 11244 fi 11245 $RM conftest* 11246 ;; 11247esac 11248fi 11249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11250printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11251 11252if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11253 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11254else 11255 : 11256fi 11257 11258fi 11259 11260 11261 11262 11263 11264 11265 lt_prog_compiler_wl= 11266lt_prog_compiler_pic= 11267lt_prog_compiler_static= 11268 11269 11270 if test yes = "$GCC"; then 11271 lt_prog_compiler_wl='-Wl,' 11272 lt_prog_compiler_static='-static' 11273 11274 case $host_os in 11275 aix*) 11276 # All AIX code is PIC. 11277 if test ia64 = "$host_cpu"; then 11278 # AIX 5 now supports IA64 processor 11279 lt_prog_compiler_static='-Bstatic' 11280 fi 11281 lt_prog_compiler_pic='-fPIC' 11282 ;; 11283 11284 amigaos*) 11285 case $host_cpu in 11286 powerpc) 11287 # see comment about AmigaOS4 .so support 11288 lt_prog_compiler_pic='-fPIC' 11289 ;; 11290 m68k) 11291 # FIXME: we need at least 68020 code to build shared libraries, but 11292 # adding the '-m68020' flag to GCC prevents building anything better, 11293 # like '-m68040'. 11294 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11295 ;; 11296 esac 11297 ;; 11298 11299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11300 # PIC is the default for these OSes. 11301 ;; 11302 11303 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 11304 # This hack is so that the source file can tell whether it is being 11305 # built for inclusion in a dll (and should export symbols for example). 11306 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11307 # (--disable-auto-import) libraries 11308 lt_prog_compiler_pic='-DDLL_EXPORT' 11309 case $host_os in 11310 os2*) 11311 lt_prog_compiler_static='$wl-static' 11312 ;; 11313 esac 11314 ;; 11315 11316 darwin* | rhapsody*) 11317 # PIC is the default on this platform 11318 # Common symbols not allowed in MH_DYLIB files 11319 lt_prog_compiler_pic='-fno-common' 11320 ;; 11321 11322 haiku*) 11323 # PIC is the default for Haiku. 11324 # The "-static" flag exists, but is broken. 11325 lt_prog_compiler_static= 11326 ;; 11327 11328 hpux*) 11329 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11330 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11331 # sets the default TLS model and affects inlining. 11332 case $host_cpu in 11333 hppa*64*) 11334 # +Z the default 11335 ;; 11336 *) 11337 lt_prog_compiler_pic='-fPIC' 11338 ;; 11339 esac 11340 ;; 11341 11342 interix[3-9]*) 11343 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11344 # Instead, we relocate shared libraries at runtime. 11345 ;; 11346 11347 msdosdjgpp*) 11348 # Just because we use GCC doesn't mean we suddenly get shared libraries 11349 # on systems that don't support them. 11350 lt_prog_compiler_can_build_shared=no 11351 enable_shared=no 11352 ;; 11353 11354 *nto* | *qnx*) 11355 # QNX uses GNU C++, but need to define -shared option too, otherwise 11356 # it will coredump. 11357 lt_prog_compiler_pic='-fPIC -shared' 11358 ;; 11359 11360 sysv4*MP*) 11361 if test -d /usr/nec; then 11362 lt_prog_compiler_pic=-Kconform_pic 11363 fi 11364 ;; 11365 11366 *) 11367 lt_prog_compiler_pic='-fPIC' 11368 ;; 11369 esac 11370 11371 case $cc_basename in 11372 nvcc*) # Cuda Compiler Driver 2.2 11373 lt_prog_compiler_wl='-Xlinker ' 11374 if test -n "$lt_prog_compiler_pic"; then 11375 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11376 fi 11377 ;; 11378 esac 11379 else 11380 # PORTME Check for flag to pass linker flags through the system compiler. 11381 case $host_os in 11382 aix*) 11383 lt_prog_compiler_wl='-Wl,' 11384 if test ia64 = "$host_cpu"; then 11385 # AIX 5 now supports IA64 processor 11386 lt_prog_compiler_static='-Bstatic' 11387 else 11388 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11389 fi 11390 ;; 11391 11392 darwin* | rhapsody*) 11393 # PIC is the default on this platform 11394 # Common symbols not allowed in MH_DYLIB files 11395 lt_prog_compiler_pic='-fno-common' 11396 case $cc_basename in 11397 nagfor*) 11398 # NAG Fortran compiler 11399 lt_prog_compiler_wl='-Wl,-Wl,,' 11400 lt_prog_compiler_pic='-PIC' 11401 lt_prog_compiler_static='-Bstatic' 11402 ;; 11403 esac 11404 ;; 11405 11406 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 11407 # This hack is so that the source file can tell whether it is being 11408 # built for inclusion in a dll (and should export symbols for example). 11409 lt_prog_compiler_pic='-DDLL_EXPORT' 11410 case $host_os in 11411 os2*) 11412 lt_prog_compiler_static='$wl-static' 11413 ;; 11414 esac 11415 ;; 11416 11417 hpux9* | hpux10* | hpux11*) 11418 lt_prog_compiler_wl='-Wl,' 11419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11420 # not for PA HP-UX. 11421 case $host_cpu in 11422 hppa*64*|ia64*) 11423 # +Z the default 11424 ;; 11425 *) 11426 lt_prog_compiler_pic='+Z' 11427 ;; 11428 esac 11429 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11430 lt_prog_compiler_static='$wl-a ${wl}archive' 11431 ;; 11432 11433 irix5* | irix6* | nonstopux*) 11434 lt_prog_compiler_wl='-Wl,' 11435 # PIC (with -KPIC) is the default. 11436 lt_prog_compiler_static='-non_shared' 11437 ;; 11438 11439 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11440 case $cc_basename in 11441 # old Intel for x86_64, which still supported -KPIC. 11442 ecc*) 11443 lt_prog_compiler_wl='-Wl,' 11444 lt_prog_compiler_pic='-KPIC' 11445 lt_prog_compiler_static='-static' 11446 ;; 11447 *flang* | ftn | f18* | f95*) 11448 # Flang compiler. 11449 lt_prog_compiler_wl='-Wl,' 11450 lt_prog_compiler_pic='-fPIC' 11451 lt_prog_compiler_static='-static' 11452 ;; 11453 # icc used to be incompatible with GCC. 11454 # ICC 10 doesn't accept -KPIC any more. 11455 icc* | ifort*) 11456 lt_prog_compiler_wl='-Wl,' 11457 lt_prog_compiler_pic='-fPIC' 11458 lt_prog_compiler_static='-static' 11459 ;; 11460 # Lahey Fortran 8.1. 11461 lf95*) 11462 lt_prog_compiler_wl='-Wl,' 11463 lt_prog_compiler_pic='--shared' 11464 lt_prog_compiler_static='--static' 11465 ;; 11466 nagfor*) 11467 # NAG Fortran compiler 11468 lt_prog_compiler_wl='-Wl,-Wl,,' 11469 lt_prog_compiler_pic='-PIC' 11470 lt_prog_compiler_static='-Bstatic' 11471 ;; 11472 tcc*) 11473 # Fabrice Bellard et al's Tiny C Compiler 11474 lt_prog_compiler_wl='-Wl,' 11475 lt_prog_compiler_pic='-fPIC' 11476 lt_prog_compiler_static='-static' 11477 ;; 11478 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11479 # Portland Group compilers (*not* the Pentium gcc compiler, 11480 # which looks to be a dead project) 11481 lt_prog_compiler_wl='-Wl,' 11482 lt_prog_compiler_pic='-fpic' 11483 lt_prog_compiler_static='-Bstatic' 11484 ;; 11485 ccc*) 11486 lt_prog_compiler_wl='-Wl,' 11487 # All Alpha code is PIC. 11488 lt_prog_compiler_static='-non_shared' 11489 ;; 11490 xl* | bgxl* | bgf* | mpixl*) 11491 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11492 lt_prog_compiler_wl='-Wl,' 11493 lt_prog_compiler_pic='-qpic' 11494 lt_prog_compiler_static='-qstaticlink' 11495 ;; 11496 *) 11497 case `$CC -V 2>&1 | $SED 5q` in 11498 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11499 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11500 lt_prog_compiler_pic='-KPIC' 11501 lt_prog_compiler_static='-Bstatic' 11502 lt_prog_compiler_wl='' 11503 ;; 11504 *Sun\ F* | *Sun*Fortran*) 11505 lt_prog_compiler_pic='-KPIC' 11506 lt_prog_compiler_static='-Bstatic' 11507 lt_prog_compiler_wl='-Qoption ld ' 11508 ;; 11509 *Sun\ C*) 11510 # Sun C 5.9 11511 lt_prog_compiler_pic='-KPIC' 11512 lt_prog_compiler_static='-Bstatic' 11513 lt_prog_compiler_wl='-Wl,' 11514 ;; 11515 *Intel*\ [CF]*Compiler*) 11516 lt_prog_compiler_wl='-Wl,' 11517 lt_prog_compiler_pic='-fPIC' 11518 lt_prog_compiler_static='-static' 11519 ;; 11520 *Portland\ Group*) 11521 lt_prog_compiler_wl='-Wl,' 11522 lt_prog_compiler_pic='-fpic' 11523 lt_prog_compiler_static='-Bstatic' 11524 ;; 11525 esac 11526 ;; 11527 esac 11528 ;; 11529 11530 newsos6) 11531 lt_prog_compiler_pic='-KPIC' 11532 lt_prog_compiler_static='-Bstatic' 11533 ;; 11534 11535 *-mlibc) 11536 lt_prog_compiler_wl='-Wl,' 11537 lt_prog_compiler_pic='-fPIC' 11538 lt_prog_compiler_static='-static' 11539 ;; 11540 11541 *nto* | *qnx*) 11542 # QNX uses GNU C++, but need to define -shared option too, otherwise 11543 # it will coredump. 11544 lt_prog_compiler_pic='-fPIC -shared' 11545 ;; 11546 11547 osf3* | osf4* | osf5*) 11548 lt_prog_compiler_wl='-Wl,' 11549 # All OSF/1 code is PIC. 11550 lt_prog_compiler_static='-non_shared' 11551 ;; 11552 11553 rdos*) 11554 lt_prog_compiler_static='-non_shared' 11555 ;; 11556 11557 serenity*) 11558 ;; 11559 11560 solaris*) 11561 lt_prog_compiler_pic='-KPIC' 11562 lt_prog_compiler_static='-Bstatic' 11563 case $cc_basename in 11564 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11565 lt_prog_compiler_wl='-Qoption ld ';; 11566 *) 11567 lt_prog_compiler_wl='-Wl,';; 11568 esac 11569 ;; 11570 11571 sunos4*) 11572 lt_prog_compiler_wl='-Qoption ld ' 11573 lt_prog_compiler_pic='-PIC' 11574 lt_prog_compiler_static='-Bstatic' 11575 ;; 11576 11577 sysv4 | sysv4.2uw2* | sysv4.3*) 11578 lt_prog_compiler_wl='-Wl,' 11579 lt_prog_compiler_pic='-KPIC' 11580 lt_prog_compiler_static='-Bstatic' 11581 ;; 11582 11583 sysv4*MP*) 11584 if test -d /usr/nec; then 11585 lt_prog_compiler_pic='-Kconform_pic' 11586 lt_prog_compiler_static='-Bstatic' 11587 fi 11588 ;; 11589 11590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11591 lt_prog_compiler_wl='-Wl,' 11592 lt_prog_compiler_pic='-KPIC' 11593 lt_prog_compiler_static='-Bstatic' 11594 ;; 11595 11596 unicos*) 11597 lt_prog_compiler_wl='-Wl,' 11598 lt_prog_compiler_can_build_shared=no 11599 ;; 11600 11601 uts4*) 11602 lt_prog_compiler_pic='-pic' 11603 lt_prog_compiler_static='-Bstatic' 11604 ;; 11605 11606 *) 11607 lt_prog_compiler_can_build_shared=no 11608 ;; 11609 esac 11610 fi 11611 11612case $host_os in 11613 # For platforms that do not support PIC, -DPIC is meaningless: 11614 *djgpp*) 11615 lt_prog_compiler_pic= 11616 ;; 11617 *) 11618 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11619 ;; 11620esac 11621 11622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11623printf %s "checking for $compiler option to produce PIC... " >&6; } 11624if test ${lt_cv_prog_compiler_pic+y} 11625then : 11626 printf %s "(cached) " >&6 11627else case e in #( 11628 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 11629esac 11630fi 11631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11632printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 11633lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11634 11635# 11636# Check to make sure the PIC flag actually works. 11637# 11638if test -n "$lt_prog_compiler_pic"; then 11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11640printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11641if test ${lt_cv_prog_compiler_pic_works+y} 11642then : 11643 printf %s "(cached) " >&6 11644else case e in #( 11645 e) lt_cv_prog_compiler_pic_works=no 11646 ac_outfile=conftest.$ac_objext 11647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11649 # Insert the option either (1) after the last *FLAGS variable, or 11650 # (2) before a word containing "conftest.", or (3) at the end. 11651 # Note that $ac_compile itself does not contain backslashes and begins 11652 # with a dollar sign (not a hyphen), so the echo should work correctly. 11653 # The option is referenced via a variable to avoid confusing sed. 11654 lt_compile=`echo "$ac_compile" | $SED \ 11655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11657 -e 's:$: $lt_compiler_flag:'` 11658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11659 (eval "$lt_compile" 2>conftest.err) 11660 ac_status=$? 11661 cat conftest.err >&5 11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11663 if (exit $ac_status) && test -s "$ac_outfile"; then 11664 # The compiler can only warn and ignore the option if not recognized 11665 # So say no if there are warnings other than the usual output. 11666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11669 lt_cv_prog_compiler_pic_works=yes 11670 fi 11671 fi 11672 $RM conftest* 11673 ;; 11674esac 11675fi 11676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11677printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 11678 11679if test yes = "$lt_cv_prog_compiler_pic_works"; then 11680 case $lt_prog_compiler_pic in 11681 "" | " "*) ;; 11682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11683 esac 11684else 11685 lt_prog_compiler_pic= 11686 lt_prog_compiler_can_build_shared=no 11687fi 11688 11689fi 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701# 11702# Check to make sure the static flag actually works. 11703# 11704wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11706printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11707if test ${lt_cv_prog_compiler_static_works+y} 11708then : 11709 printf %s "(cached) " >&6 11710else case e in #( 11711 e) lt_cv_prog_compiler_static_works=no 11712 save_LDFLAGS=$LDFLAGS 11713 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11714 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11716 # The linker can only warn and ignore the option if not recognized 11717 # So say no if there are warnings 11718 if test -s conftest.err; then 11719 # Append any errors to the config.log. 11720 cat conftest.err 1>&5 11721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11723 if diff conftest.exp conftest.er2 >/dev/null; then 11724 lt_cv_prog_compiler_static_works=yes 11725 fi 11726 else 11727 lt_cv_prog_compiler_static_works=yes 11728 fi 11729 fi 11730 $RM -r conftest* 11731 LDFLAGS=$save_LDFLAGS 11732 ;; 11733esac 11734fi 11735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11736printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 11737 11738if test yes = "$lt_cv_prog_compiler_static_works"; then 11739 : 11740else 11741 lt_prog_compiler_static= 11742fi 11743 11744 11745 11746 11747 11748 11749 11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11751printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11752if test ${lt_cv_prog_compiler_c_o+y} 11753then : 11754 printf %s "(cached) " >&6 11755else case e in #( 11756 e) lt_cv_prog_compiler_c_o=no 11757 $RM -r conftest 2>/dev/null 11758 mkdir conftest 11759 cd conftest 11760 mkdir out 11761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11762 11763 lt_compiler_flag="-o out/conftest2.$ac_objext" 11764 # Insert the option either (1) after the last *FLAGS variable, or 11765 # (2) before a word containing "conftest.", or (3) at the end. 11766 # Note that $ac_compile itself does not contain backslashes and begins 11767 # with a dollar sign (not a hyphen), so the echo should work correctly. 11768 lt_compile=`echo "$ac_compile" | $SED \ 11769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11771 -e 's:$: $lt_compiler_flag:'` 11772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11773 (eval "$lt_compile" 2>out/conftest.err) 11774 ac_status=$? 11775 cat out/conftest.err >&5 11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11777 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11778 then 11779 # The compiler can only warn and ignore the option if not recognized 11780 # So say no if there are warnings 11781 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11784 lt_cv_prog_compiler_c_o=yes 11785 fi 11786 fi 11787 chmod u+w . 2>&5 11788 $RM conftest* 11789 # SGI C++ compiler will create directory out/ii_files/ for 11790 # template instantiation 11791 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11792 $RM out/* && rmdir out 11793 cd .. 11794 $RM -r conftest 11795 $RM conftest* 11796 ;; 11797esac 11798fi 11799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11800printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11801 11802 11803 11804 11805 11806 11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11808printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11809if test ${lt_cv_prog_compiler_c_o+y} 11810then : 11811 printf %s "(cached) " >&6 11812else case e in #( 11813 e) lt_cv_prog_compiler_c_o=no 11814 $RM -r conftest 2>/dev/null 11815 mkdir conftest 11816 cd conftest 11817 mkdir out 11818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11819 11820 lt_compiler_flag="-o out/conftest2.$ac_objext" 11821 # Insert the option either (1) after the last *FLAGS variable, or 11822 # (2) before a word containing "conftest.", or (3) at the end. 11823 # Note that $ac_compile itself does not contain backslashes and begins 11824 # with a dollar sign (not a hyphen), so the echo should work correctly. 11825 lt_compile=`echo "$ac_compile" | $SED \ 11826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11828 -e 's:$: $lt_compiler_flag:'` 11829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11830 (eval "$lt_compile" 2>out/conftest.err) 11831 ac_status=$? 11832 cat out/conftest.err >&5 11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11834 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11835 then 11836 # The compiler can only warn and ignore the option if not recognized 11837 # So say no if there are warnings 11838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11841 lt_cv_prog_compiler_c_o=yes 11842 fi 11843 fi 11844 chmod u+w . 2>&5 11845 $RM conftest* 11846 # SGI C++ compiler will create directory out/ii_files/ for 11847 # template instantiation 11848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11849 $RM out/* && rmdir out 11850 cd .. 11851 $RM -r conftest 11852 $RM conftest* 11853 ;; 11854esac 11855fi 11856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11857printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11858 11859 11860 11861 11862hard_links=nottested 11863if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11864 # do not overwrite the value of need_locks provided by the user 11865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11866printf %s "checking if we can lock with hard links... " >&6; } 11867 hard_links=yes 11868 $RM conftest* 11869 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11870 touch conftest.a 11871 ln conftest.a conftest.b 2>&5 || hard_links=no 11872 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11874printf "%s\n" "$hard_links" >&6; } 11875 if test no = "$hard_links"; then 11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11877printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11878 need_locks=warn 11879 fi 11880else 11881 need_locks=no 11882fi 11883 11884 11885 11886 11887 11888 11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11890printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11891 11892 runpath_var= 11893 allow_undefined_flag= 11894 always_export_symbols=no 11895 archive_cmds= 11896 archive_expsym_cmds= 11897 compiler_needs_object=no 11898 enable_shared_with_static_runtimes=no 11899 export_dynamic_flag_spec= 11900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11901 hardcode_automatic=no 11902 hardcode_direct=no 11903 hardcode_direct_absolute=no 11904 hardcode_libdir_flag_spec= 11905 hardcode_libdir_separator= 11906 hardcode_minus_L=no 11907 hardcode_shlibpath_var=unsupported 11908 inherit_rpath=no 11909 link_all_deplibs=unknown 11910 module_cmds= 11911 module_expsym_cmds= 11912 old_archive_from_new_cmds= 11913 old_archive_from_expsyms_cmds= 11914 thread_safe_flag_spec= 11915 whole_archive_flag_spec= 11916 # include_expsyms should be a list of space-separated symbols to be *always* 11917 # included in the symbol list 11918 include_expsyms= 11919 # exclude_expsyms can be an extended regexp of symbols to exclude 11920 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11921 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11922 # as well as any symbol that contains 'd'. 11923 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11925 # platforms (ab)use it in PIC code, but their linkers get confused if 11926 # the symbol is explicitly referenced. Since portable code cannot 11927 # rely on this symbol name, it's probably fine to never include it in 11928 # preloaded symbol tables. 11929 # Exclude shared library initialization/finalization symbols. 11930 extract_expsyms_cmds= 11931 11932 case $host_os in 11933 cygwin* | mingw* | windows* | pw32* | cegcc*) 11934 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 11935 # When not using gcc, we currently assume that we are using 11936 # Microsoft Visual C++ or Intel C++ Compiler. 11937 if test yes != "$GCC"; then 11938 with_gnu_ld=no 11939 fi 11940 ;; 11941 interix*) 11942 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 11943 with_gnu_ld=yes 11944 ;; 11945 esac 11946 11947 ld_shlibs=yes 11948 11949 # On some targets, GNU ld is compatible enough with the native linker 11950 # that we're better off using the native interface for both. 11951 lt_use_gnu_ld_interface=no 11952 if test yes = "$with_gnu_ld"; then 11953 case $host_os in 11954 aix*) 11955 # The AIX port of GNU ld has always aspired to compatibility 11956 # with the native linker. However, as the warning in the GNU ld 11957 # block says, versions before 2.19.5* couldn't really create working 11958 # shared libraries, regardless of the interface used. 11959 case `$LD -v 2>&1` in 11960 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11961 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11962 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11963 *) 11964 lt_use_gnu_ld_interface=yes 11965 ;; 11966 esac 11967 ;; 11968 *) 11969 lt_use_gnu_ld_interface=yes 11970 ;; 11971 esac 11972 fi 11973 11974 if test yes = "$lt_use_gnu_ld_interface"; then 11975 # If archive_cmds runs LD, not CC, wlarc should be empty 11976 wlarc='$wl' 11977 11978 # Set some defaults for GNU ld with shared library support. These 11979 # are reset later if shared libraries are not supported. Putting them 11980 # here allows them to be overridden if necessary. 11981 runpath_var=LD_RUN_PATH 11982 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11983 export_dynamic_flag_spec='$wl--export-dynamic' 11984 # ancient GNU ld didn't support --whole-archive et. al. 11985 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11986 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11987 else 11988 whole_archive_flag_spec= 11989 fi 11990 supports_anon_versioning=no 11991 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 11992 *GNU\ gold*) supports_anon_versioning=yes ;; 11993 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11996 *\ 2.11.*) ;; # other 2.11 versions 11997 *) supports_anon_versioning=yes ;; 11998 esac 11999 12000 # See if GNU ld supports shared libraries. 12001 case $host_os in 12002 aix[3-9]*) 12003 # On AIX/PPC, the GNU linker is very broken 12004 if test ia64 != "$host_cpu"; then 12005 ld_shlibs=no 12006 cat <<_LT_EOF 1>&2 12007 12008*** Warning: the GNU linker, at least up to release 2.19, is reported 12009*** to be unable to reliably create shared libraries on AIX. 12010*** Therefore, libtool is disabling shared libraries support. If you 12011*** really care for shared libraries, you may want to install binutils 12012*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12013*** You will then need to restart the configuration process. 12014 12015_LT_EOF 12016 fi 12017 ;; 12018 12019 amigaos*) 12020 case $host_cpu in 12021 powerpc) 12022 # see comment about AmigaOS4 .so support 12023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12024 archive_expsym_cmds='' 12025 ;; 12026 m68k) 12027 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)' 12028 hardcode_libdir_flag_spec='-L$libdir' 12029 hardcode_minus_L=yes 12030 ;; 12031 esac 12032 ;; 12033 12034 beos*) 12035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12036 allow_undefined_flag=unsupported 12037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12038 # support --undefined. This deserves some investigation. FIXME 12039 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12040 else 12041 ld_shlibs=no 12042 fi 12043 ;; 12044 12045 cygwin* | mingw* | windows* | pw32* | cegcc*) 12046 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12047 # as there is no search path for DLLs. 12048 hardcode_libdir_flag_spec='-L$libdir' 12049 export_dynamic_flag_spec='$wl--export-all-symbols' 12050 allow_undefined_flag=unsupported 12051 always_export_symbols=no 12052 enable_shared_with_static_runtimes=yes 12053 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' 12054 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12055 file_list_spec='@' 12056 12057 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12059 # If the export-symbols file already is a .def file, use it as 12060 # is; otherwise, prepend EXPORTS... 12061 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12062 cp $export_symbols $output_objdir/$soname.def; 12063 else 12064 echo EXPORTS > $output_objdir/$soname.def; 12065 cat $export_symbols >> $output_objdir/$soname.def; 12066 fi~ 12067 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12068 else 12069 ld_shlibs=no 12070 fi 12071 ;; 12072 12073 haiku*) 12074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12075 link_all_deplibs=no 12076 ;; 12077 12078 os2*) 12079 hardcode_libdir_flag_spec='-L$libdir' 12080 hardcode_minus_L=yes 12081 allow_undefined_flag=unsupported 12082 shrext_cmds=.dll 12083 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12084 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12085 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12086 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12087 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12088 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12089 emximp -o $lib $output_objdir/$libname.def' 12090 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12091 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12092 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12093 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12094 prefix_cmds="$SED"~ 12095 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12096 prefix_cmds="$prefix_cmds -e 1d"; 12097 fi~ 12098 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12099 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12100 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12101 emximp -o $lib $output_objdir/$libname.def' 12102 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12103 enable_shared_with_static_runtimes=yes 12104 file_list_spec='@' 12105 ;; 12106 12107 interix[3-9]*) 12108 hardcode_direct=no 12109 hardcode_shlibpath_var=no 12110 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12111 export_dynamic_flag_spec='$wl-E' 12112 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12113 # Instead, shared libraries are loaded at an image base (0x10000000 by 12114 # default) and relocated if they conflict, which is a slow very memory 12115 # consuming and fragmenting process. To avoid this, we pick a random, 12116 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12117 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12119 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' 12120 ;; 12121 12122 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12123 tmp_diet=no 12124 if test linux-dietlibc = "$host_os"; then 12125 case $cc_basename in 12126 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12127 esac 12128 fi 12129 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12130 && test no = "$tmp_diet" 12131 then 12132 tmp_addflag=' $pic_flag' 12133 tmp_sharedflag='-shared' 12134 case $cc_basename,$host_cpu in 12135 pgcc*) # Portland Group C compiler 12136 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' 12137 tmp_addflag=' $pic_flag' 12138 ;; 12139 pgf77* | pgf90* | pgf95* | pgfortran*) 12140 # Portland Group f77 and f90 compilers 12141 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' 12142 tmp_addflag=' $pic_flag -Mnomain' ;; 12143 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12144 tmp_addflag=' -i_dynamic' ;; 12145 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12146 tmp_addflag=' -i_dynamic -nofor_main' ;; 12147 ifc* | ifort*) # Intel Fortran compiler 12148 tmp_addflag=' -nofor_main' ;; 12149 lf95*) # Lahey Fortran 8.1 12150 whole_archive_flag_spec= 12151 tmp_sharedflag='--shared' ;; 12152 nagfor*) # NAGFOR 5.3 12153 tmp_sharedflag='-Wl,-shared' ;; 12154 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12155 tmp_sharedflag='-qmkshrobj' 12156 tmp_addflag= ;; 12157 nvcc*) # Cuda Compiler Driver 2.2 12158 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' 12159 compiler_needs_object=yes 12160 ;; 12161 esac 12162 case `$CC -V 2>&1 | $SED 5q` in 12163 *Sun\ C*) # Sun C 5.9 12164 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' 12165 compiler_needs_object=yes 12166 tmp_sharedflag='-G' ;; 12167 *Sun\ F*) # Sun Fortran 8.3 12168 tmp_sharedflag='-G' ;; 12169 esac 12170 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12171 12172 if test yes = "$supports_anon_versioning"; then 12173 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12174 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12175 echo "local: *; };" >> $output_objdir/$libname.ver~ 12176 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12177 fi 12178 12179 case $cc_basename in 12180 tcc*) 12181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12182 export_dynamic_flag_spec='-rdynamic' 12183 ;; 12184 xlf* | bgf* | bgxlf* | mpixlf*) 12185 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12186 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12188 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12189 if test yes = "$supports_anon_versioning"; then 12190 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12191 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12192 echo "local: *; };" >> $output_objdir/$libname.ver~ 12193 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12194 fi 12195 ;; 12196 esac 12197 else 12198 ld_shlibs=no 12199 fi 12200 ;; 12201 12202 *-mlibc) 12203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12204 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12205 ;; 12206 12207 netbsd* | netbsdelf*-gnu) 12208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12209 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12210 wlarc= 12211 else 12212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12214 fi 12215 ;; 12216 12217 solaris*) 12218 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12219 ld_shlibs=no 12220 cat <<_LT_EOF 1>&2 12221 12222*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12223*** create shared libraries on Solaris systems. Therefore, libtool 12224*** is disabling shared libraries support. We urge you to upgrade GNU 12225*** binutils to release 2.9.1 or newer. Another option is to modify 12226*** your PATH or compiler configuration so that the native linker is 12227*** used, and then restart. 12228 12229_LT_EOF 12230 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12233 else 12234 ld_shlibs=no 12235 fi 12236 ;; 12237 12238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12239 case `$LD -v 2>&1` in 12240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12241 ld_shlibs=no 12242 cat <<_LT_EOF 1>&2 12243 12244*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12245*** reliably create shared libraries on SCO systems. Therefore, libtool 12246*** is disabling shared libraries support. We urge you to upgrade GNU 12247*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12248*** your PATH or compiler configuration so that the native linker is 12249*** used, and then restart. 12250 12251_LT_EOF 12252 ;; 12253 *) 12254 # For security reasons, it is highly recommended that you always 12255 # use absolute paths for naming shared libraries, and exclude the 12256 # DT_RUNPATH tag from executables and libraries. But doing so 12257 # requires that you compile everything twice, which is a pain. 12258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12262 else 12263 ld_shlibs=no 12264 fi 12265 ;; 12266 esac 12267 ;; 12268 12269 sunos4*) 12270 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12271 wlarc= 12272 hardcode_direct=yes 12273 hardcode_shlibpath_var=no 12274 ;; 12275 12276 *) 12277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12279 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12280 else 12281 ld_shlibs=no 12282 fi 12283 ;; 12284 esac 12285 12286 if test no = "$ld_shlibs"; then 12287 runpath_var= 12288 hardcode_libdir_flag_spec= 12289 export_dynamic_flag_spec= 12290 whole_archive_flag_spec= 12291 fi 12292 else 12293 # PORTME fill in a description of your system's linker (not GNU ld) 12294 case $host_os in 12295 aix3*) 12296 allow_undefined_flag=unsupported 12297 always_export_symbols=yes 12298 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' 12299 # Note: this linker hardcodes the directories in LIBPATH if there 12300 # are no directories specified by -L. 12301 hardcode_minus_L=yes 12302 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12303 # Neither direct hardcoding nor static linking is supported with a 12304 # broken collect2. 12305 hardcode_direct=unsupported 12306 fi 12307 ;; 12308 12309 aix[4-9]*) 12310 if test ia64 = "$host_cpu"; then 12311 # On IA64, the linker does run time linking by default, so we don't 12312 # have to do anything special. 12313 aix_use_runtimelinking=no 12314 exp_sym_flag='-Bexport' 12315 no_entry_flag= 12316 else 12317 # If we're using GNU nm, then we don't want the "-C" option. 12318 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12319 # Without the "-l" option, or with the "-B" option, AIX nm treats 12320 # weak defined symbols like other global defined symbols, whereas 12321 # GNU nm marks them as "W". 12322 # While the 'weak' keyword is ignored in the Export File, we need 12323 # it in the Import File for the 'aix-soname' feature, so we have 12324 # to replace the "-B" option with "-P" for AIX nm. 12325 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12326 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' 12327 else 12328 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 == "L") || (\$ 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' 12329 fi 12330 aix_use_runtimelinking=no 12331 12332 # Test if we are trying to use run time linking or normal 12333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12334 # have runtime linking enabled, and use it for executables. 12335 # For shared libraries, we enable/disable runtime linking 12336 # depending on the kind of the shared library created - 12337 # when "with_aix_soname,aix_use_runtimelinking" is: 12338 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12339 # "aix,yes" lib.so shared, rtl:yes, for executables 12340 # lib.a static archive 12341 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12342 # lib.a(lib.so.V) shared, rtl:no, for executables 12343 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12344 # lib.a(lib.so.V) shared, rtl:no 12345 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12346 # lib.a static archive 12347 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12348 for ld_flag in $LDFLAGS; do 12349 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12350 aix_use_runtimelinking=yes 12351 break 12352 fi 12353 done 12354 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12355 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12356 # so we don't have lib.a shared libs to link our executables. 12357 # We have to force runtime linking in this case. 12358 aix_use_runtimelinking=yes 12359 LDFLAGS="$LDFLAGS -Wl,-brtl" 12360 fi 12361 ;; 12362 esac 12363 12364 exp_sym_flag='-bexport' 12365 no_entry_flag='-bnoentry' 12366 fi 12367 12368 # When large executables or shared objects are built, AIX ld can 12369 # have problems creating the table of contents. If linking a library 12370 # or program results in "error TOC overflow" add -mminimal-toc to 12371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12373 12374 archive_cmds='' 12375 hardcode_direct=yes 12376 hardcode_direct_absolute=yes 12377 hardcode_libdir_separator=':' 12378 link_all_deplibs=yes 12379 file_list_spec='$wl-f,' 12380 case $with_aix_soname,$aix_use_runtimelinking in 12381 aix,*) ;; # traditional, no import file 12382 svr4,* | *,yes) # use import file 12383 # The Import File defines what to hardcode. 12384 hardcode_direct=no 12385 hardcode_direct_absolute=no 12386 ;; 12387 esac 12388 12389 if test yes = "$GCC"; then 12390 case $host_os in aix4.[012]|aix4.[012].*) 12391 # We only want to do this on AIX 4.2 and lower, the check 12392 # below for broken collect2 doesn't work under 4.3+ 12393 collect2name=`$CC -print-prog-name=collect2` 12394 if test -f "$collect2name" && 12395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12396 then 12397 # We have reworked collect2 12398 : 12399 else 12400 # We have old collect2 12401 hardcode_direct=unsupported 12402 # It fails to find uninstalled libraries when the uninstalled 12403 # path is not listed in the libpath. Setting hardcode_minus_L 12404 # to unsupported forces relinking 12405 hardcode_minus_L=yes 12406 hardcode_libdir_flag_spec='-L$libdir' 12407 hardcode_libdir_separator= 12408 fi 12409 ;; 12410 esac 12411 shared_flag='-shared' 12412 if test yes = "$aix_use_runtimelinking"; then 12413 shared_flag="$shared_flag "'$wl-G' 12414 fi 12415 # Need to ensure runtime linking is disabled for the traditional 12416 # shared library, or the linker may eventually find shared libraries 12417 # /with/ Import File - we do not want to mix them. 12418 shared_flag_aix='-shared' 12419 shared_flag_svr4='-shared $wl-G' 12420 else 12421 # not using gcc 12422 if test ia64 = "$host_cpu"; then 12423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12424 # chokes on -Wl,-G. The following line is correct: 12425 shared_flag='-G' 12426 else 12427 if test yes = "$aix_use_runtimelinking"; then 12428 shared_flag='$wl-G' 12429 else 12430 shared_flag='$wl-bM:SRE' 12431 fi 12432 shared_flag_aix='$wl-bM:SRE' 12433 shared_flag_svr4='$wl-G' 12434 fi 12435 fi 12436 12437 export_dynamic_flag_spec='$wl-bexpall' 12438 # It seems that -bexpall does not export symbols beginning with 12439 # underscore (_), so it is better to generate a list of symbols to export. 12440 always_export_symbols=yes 12441 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12442 # Warning - without using the other runtime loading flags (-brtl), 12443 # -berok will link without error, but may produce a broken library. 12444 allow_undefined_flag='-berok' 12445 # Determine the default libpath from the value encoded in an 12446 # empty executable. 12447 if test set = "${lt_cv_aix_libpath+set}"; then 12448 aix_libpath=$lt_cv_aix_libpath 12449else 12450 if test ${lt_cv_aix_libpath_+y} 12451then : 12452 printf %s "(cached) " >&6 12453else case e in #( 12454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12455/* end confdefs.h. */ 12456 12457int 12458main (void) 12459{ 12460 12461 ; 12462 return 0; 12463} 12464_ACEOF 12465if ac_fn_c_try_link "$LINENO" 12466then : 12467 12468 lt_aix_libpath_sed=' 12469 /Import File Strings/,/^$/ { 12470 /^0/ { 12471 s/^0 *\([^ ]*\) *$/\1/ 12472 p 12473 } 12474 }' 12475 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12476 # Check for a 64-bit object if we didn't find anything. 12477 if test -z "$lt_cv_aix_libpath_"; then 12478 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12479 fi 12480fi 12481rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12482 conftest$ac_exeext conftest.$ac_ext 12483 if test -z "$lt_cv_aix_libpath_"; then 12484 lt_cv_aix_libpath_=/usr/lib:/lib 12485 fi 12486 ;; 12487esac 12488fi 12489 12490 aix_libpath=$lt_cv_aix_libpath_ 12491fi 12492 12493 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12494 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 12495 else 12496 if test ia64 = "$host_cpu"; then 12497 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12498 allow_undefined_flag="-z nodefs" 12499 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" 12500 else 12501 # Determine the default libpath from the value encoded in an 12502 # empty executable. 12503 if test set = "${lt_cv_aix_libpath+set}"; then 12504 aix_libpath=$lt_cv_aix_libpath 12505else 12506 if test ${lt_cv_aix_libpath_+y} 12507then : 12508 printf %s "(cached) " >&6 12509else case e in #( 12510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12511/* end confdefs.h. */ 12512 12513int 12514main (void) 12515{ 12516 12517 ; 12518 return 0; 12519} 12520_ACEOF 12521if ac_fn_c_try_link "$LINENO" 12522then : 12523 12524 lt_aix_libpath_sed=' 12525 /Import File Strings/,/^$/ { 12526 /^0/ { 12527 s/^0 *\([^ ]*\) *$/\1/ 12528 p 12529 } 12530 }' 12531 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12532 # Check for a 64-bit object if we didn't find anything. 12533 if test -z "$lt_cv_aix_libpath_"; then 12534 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12535 fi 12536fi 12537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12538 conftest$ac_exeext conftest.$ac_ext 12539 if test -z "$lt_cv_aix_libpath_"; then 12540 lt_cv_aix_libpath_=/usr/lib:/lib 12541 fi 12542 ;; 12543esac 12544fi 12545 12546 aix_libpath=$lt_cv_aix_libpath_ 12547fi 12548 12549 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12550 # Warning - without using the other run time loading flags, 12551 # -berok will link without error, but may produce a broken library. 12552 no_undefined_flag=' $wl-bernotok' 12553 allow_undefined_flag=' $wl-berok' 12554 if test yes = "$with_gnu_ld"; then 12555 # We only use this code for GNU lds that support --whole-archive. 12556 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12557 else 12558 # Exported symbols can be pulled into shared objects from archives 12559 whole_archive_flag_spec='$convenience' 12560 fi 12561 archive_cmds_need_lc=yes 12562 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12563 # -brtl affects multiple linker settings, -berok does not and is overridden later 12564 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12565 if test svr4 != "$with_aix_soname"; then 12566 # This is similar to how AIX traditionally builds its shared libraries. 12567 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' 12568 fi 12569 if test aix != "$with_aix_soname"; then 12570 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' 12571 else 12572 # used by -dlpreopen to get the symbols 12573 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12574 fi 12575 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12576 fi 12577 fi 12578 ;; 12579 12580 amigaos*) 12581 case $host_cpu in 12582 powerpc) 12583 # see comment about AmigaOS4 .so support 12584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12585 archive_expsym_cmds='' 12586 ;; 12587 m68k) 12588 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)' 12589 hardcode_libdir_flag_spec='-L$libdir' 12590 hardcode_minus_L=yes 12591 ;; 12592 esac 12593 ;; 12594 12595 bsdi[45]*) 12596 export_dynamic_flag_spec=-rdynamic 12597 ;; 12598 12599 cygwin* | mingw* | windows* | pw32* | cegcc*) 12600 # When not using gcc, we currently assume that we are using 12601 # Microsoft Visual C++ or Intel C++ Compiler. 12602 # hardcode_libdir_flag_spec is actually meaningless, as there is 12603 # no search path for DLLs. 12604 case $cc_basename in 12605 cl* | icl*) 12606 # Native MSVC or ICC 12607 hardcode_libdir_flag_spec=' ' 12608 allow_undefined_flag=unsupported 12609 always_export_symbols=yes 12610 file_list_spec='@' 12611 # Tell ltmain to make .lib files, not .a files. 12612 libext=lib 12613 # Tell ltmain to make .dll files, not .so files. 12614 shrext_cmds=.dll 12615 # FIXME: Setting linknames here is a bad hack. 12616 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12617 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12618 cp "$export_symbols" "$output_objdir/$soname.def"; 12619 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12620 else 12621 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12622 fi~ 12623 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12624 linknames=' 12625 # The linker will not automatically build a static lib if we build a DLL. 12626 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12627 enable_shared_with_static_runtimes=yes 12628 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12630 # Don't use ranlib 12631 old_postinstall_cmds='chmod 644 $oldlib' 12632 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12633 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12634 case $lt_outputfile in 12635 *.exe|*.EXE) ;; 12636 *) 12637 lt_outputfile=$lt_outputfile.exe 12638 lt_tool_outputfile=$lt_tool_outputfile.exe 12639 ;; 12640 esac~ 12641 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12642 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12643 $RM "$lt_outputfile.manifest"; 12644 fi' 12645 ;; 12646 *) 12647 # Assume MSVC and ICC wrapper 12648 hardcode_libdir_flag_spec=' ' 12649 allow_undefined_flag=unsupported 12650 # Tell ltmain to make .lib files, not .a files. 12651 libext=lib 12652 # Tell ltmain to make .dll files, not .so files. 12653 shrext_cmds=.dll 12654 # FIXME: Setting linknames here is a bad hack. 12655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12656 # The linker will automatically build a .lib file if we build a DLL. 12657 old_archive_from_new_cmds='true' 12658 # FIXME: Should let the user specify the lib program. 12659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12660 enable_shared_with_static_runtimes=yes 12661 ;; 12662 esac 12663 ;; 12664 12665 darwin* | rhapsody*) 12666 12667 12668 archive_cmds_need_lc=no 12669 hardcode_direct=no 12670 hardcode_automatic=yes 12671 hardcode_shlibpath_var=unsupported 12672 if test yes = "$lt_cv_ld_force_load"; then 12673 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\"`' 12674 12675 else 12676 whole_archive_flag_spec='' 12677 fi 12678 link_all_deplibs=yes 12679 allow_undefined_flag=$_lt_dar_allow_undefined 12680 case $cc_basename in 12681 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12682 *) _lt_dar_can_shared=$GCC ;; 12683 esac 12684 if test yes = "$_lt_dar_can_shared"; then 12685 output_verbose_link_cmd=func_echo_all 12686 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12687 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12688 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" 12689 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" 12690 12691 else 12692 ld_shlibs=no 12693 fi 12694 12695 ;; 12696 12697 dgux*) 12698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12699 hardcode_libdir_flag_spec='-L$libdir' 12700 hardcode_shlibpath_var=no 12701 ;; 12702 12703 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12704 # support. Future versions do this automatically, but an explicit c++rt0.o 12705 # does not break anything, and helps significantly (at the cost of a little 12706 # extra space). 12707 freebsd2.2*) 12708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12709 hardcode_libdir_flag_spec='-R$libdir' 12710 hardcode_direct=yes 12711 hardcode_shlibpath_var=no 12712 ;; 12713 12714 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12715 freebsd2.*) 12716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12717 hardcode_direct=yes 12718 hardcode_minus_L=yes 12719 hardcode_shlibpath_var=no 12720 ;; 12721 12722 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12723 freebsd* | dragonfly* | midnightbsd*) 12724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12725 hardcode_libdir_flag_spec='-R$libdir' 12726 hardcode_direct=yes 12727 hardcode_shlibpath_var=no 12728 ;; 12729 12730 hpux9*) 12731 if test yes = "$GCC"; then 12732 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' 12733 else 12734 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' 12735 fi 12736 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12737 hardcode_libdir_separator=: 12738 hardcode_direct=yes 12739 12740 # hardcode_minus_L: Not really in the search PATH, 12741 # but as the default location of the library. 12742 hardcode_minus_L=yes 12743 export_dynamic_flag_spec='$wl-E' 12744 ;; 12745 12746 hpux10*) 12747 if test yes,no = "$GCC,$with_gnu_ld"; then 12748 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12749 else 12750 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12751 fi 12752 if test no = "$with_gnu_ld"; then 12753 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12754 hardcode_libdir_separator=: 12755 hardcode_direct=yes 12756 hardcode_direct_absolute=yes 12757 export_dynamic_flag_spec='$wl-E' 12758 # hardcode_minus_L: Not really in the search PATH, 12759 # but as the default location of the library. 12760 hardcode_minus_L=yes 12761 fi 12762 ;; 12763 12764 hpux11*) 12765 if test yes,no = "$GCC,$with_gnu_ld"; then 12766 case $host_cpu in 12767 hppa*64*) 12768 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12769 ;; 12770 ia64*) 12771 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12772 ;; 12773 *) 12774 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12775 ;; 12776 esac 12777 else 12778 case $host_cpu in 12779 hppa*64*) 12780 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12781 ;; 12782 ia64*) 12783 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12784 ;; 12785 *) 12786 12787 # Older versions of the 11.00 compiler do not understand -b yet 12788 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12790printf %s "checking if $CC understands -b... " >&6; } 12791if test ${lt_cv_prog_compiler__b+y} 12792then : 12793 printf %s "(cached) " >&6 12794else case e in #( 12795 e) lt_cv_prog_compiler__b=no 12796 save_LDFLAGS=$LDFLAGS 12797 LDFLAGS="$LDFLAGS -b" 12798 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12799 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12800 # The linker can only warn and ignore the option if not recognized 12801 # So say no if there are warnings 12802 if test -s conftest.err; then 12803 # Append any errors to the config.log. 12804 cat conftest.err 1>&5 12805 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12807 if diff conftest.exp conftest.er2 >/dev/null; then 12808 lt_cv_prog_compiler__b=yes 12809 fi 12810 else 12811 lt_cv_prog_compiler__b=yes 12812 fi 12813 fi 12814 $RM -r conftest* 12815 LDFLAGS=$save_LDFLAGS 12816 ;; 12817esac 12818fi 12819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12820printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 12821 12822if test yes = "$lt_cv_prog_compiler__b"; then 12823 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12824else 12825 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12826fi 12827 12828 ;; 12829 esac 12830 fi 12831 if test no = "$with_gnu_ld"; then 12832 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12833 hardcode_libdir_separator=: 12834 12835 case $host_cpu in 12836 hppa*64*|ia64*) 12837 hardcode_direct=no 12838 hardcode_shlibpath_var=no 12839 ;; 12840 *) 12841 hardcode_direct=yes 12842 hardcode_direct_absolute=yes 12843 export_dynamic_flag_spec='$wl-E' 12844 12845 # hardcode_minus_L: Not really in the search PATH, 12846 # but as the default location of the library. 12847 hardcode_minus_L=yes 12848 ;; 12849 esac 12850 fi 12851 ;; 12852 12853 irix5* | irix6* | nonstopux*) 12854 if test yes = "$GCC"; then 12855 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' 12856 # Try to use the -exported_symbol ld option, if it does not 12857 # work, assume that -exports_file does not work either and 12858 # implicitly export all symbols. 12859 # This should be the same for all languages, so no per-tag cache variable. 12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12861printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12862if test ${lt_cv_irix_exported_symbol+y} 12863then : 12864 printf %s "(cached) " >&6 12865else case e in #( 12866 e) save_LDFLAGS=$LDFLAGS 12867 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12869/* end confdefs.h. */ 12870int foo (void) { return 0; } 12871_ACEOF 12872if ac_fn_c_try_link "$LINENO" 12873then : 12874 lt_cv_irix_exported_symbol=yes 12875else case e in #( 12876 e) lt_cv_irix_exported_symbol=no ;; 12877esac 12878fi 12879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12880 conftest$ac_exeext conftest.$ac_ext 12881 LDFLAGS=$save_LDFLAGS ;; 12882esac 12883fi 12884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12885printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 12886 if test yes = "$lt_cv_irix_exported_symbol"; then 12887 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' 12888 fi 12889 else 12890 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' 12891 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' 12892 fi 12893 archive_cmds_need_lc='no' 12894 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12895 hardcode_libdir_separator=: 12896 inherit_rpath=yes 12897 link_all_deplibs=yes 12898 ;; 12899 12900 linux*) 12901 case $cc_basename in 12902 tcc*) 12903 # Fabrice Bellard et al's Tiny C Compiler 12904 ld_shlibs=yes 12905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12907 ;; 12908 esac 12909 ;; 12910 12911 *-mlibc) 12912 ;; 12913 12914 netbsd* | netbsdelf*-gnu) 12915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12917 else 12918 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12919 fi 12920 hardcode_libdir_flag_spec='-R$libdir' 12921 hardcode_direct=yes 12922 hardcode_shlibpath_var=no 12923 ;; 12924 12925 newsos6) 12926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12927 hardcode_direct=yes 12928 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12929 hardcode_libdir_separator=: 12930 hardcode_shlibpath_var=no 12931 ;; 12932 12933 *nto* | *qnx*) 12934 ;; 12935 12936 openbsd*) 12937 if test -f /usr/libexec/ld.so; then 12938 hardcode_direct=yes 12939 hardcode_shlibpath_var=no 12940 hardcode_direct_absolute=yes 12941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12943 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12944 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12945 export_dynamic_flag_spec='$wl-E' 12946 else 12947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12948 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12949 fi 12950 else 12951 ld_shlibs=no 12952 fi 12953 ;; 12954 12955 os2*) 12956 hardcode_libdir_flag_spec='-L$libdir' 12957 hardcode_minus_L=yes 12958 allow_undefined_flag=unsupported 12959 shrext_cmds=.dll 12960 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12961 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12962 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12963 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12964 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12965 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12966 emximp -o $lib $output_objdir/$libname.def' 12967 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12968 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12969 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12970 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12971 prefix_cmds="$SED"~ 12972 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12973 prefix_cmds="$prefix_cmds -e 1d"; 12974 fi~ 12975 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12976 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12977 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12978 emximp -o $lib $output_objdir/$libname.def' 12979 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12980 enable_shared_with_static_runtimes=yes 12981 file_list_spec='@' 12982 ;; 12983 12984 osf3*) 12985 if test yes = "$GCC"; then 12986 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12987 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' 12988 else 12989 allow_undefined_flag=' -expect_unresolved \*' 12990 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' 12991 fi 12992 archive_cmds_need_lc='no' 12993 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12994 hardcode_libdir_separator=: 12995 ;; 12996 12997 osf4* | osf5*) # as osf3* with the addition of -msym flag 12998 if test yes = "$GCC"; then 12999 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13000 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' 13001 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13002 else 13003 allow_undefined_flag=' -expect_unresolved \*' 13004 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' 13005 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~ 13006 $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' 13007 13008 # Both c and cxx compiler support -rpath directly 13009 hardcode_libdir_flag_spec='-rpath $libdir' 13010 fi 13011 archive_cmds_need_lc='no' 13012 hardcode_libdir_separator=: 13013 ;; 13014 13015 serenity*) 13016 ;; 13017 13018 solaris*) 13019 no_undefined_flag=' -z defs' 13020 if test yes = "$GCC"; then 13021 wlarc='$wl' 13022 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13024 $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' 13025 else 13026 case `$CC -V 2>&1` in 13027 *"Compilers 5.0"*) 13028 wlarc='' 13029 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13031 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13032 ;; 13033 *) 13034 wlarc='$wl' 13035 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13037 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13038 ;; 13039 esac 13040 fi 13041 hardcode_libdir_flag_spec='-R$libdir' 13042 hardcode_shlibpath_var=no 13043 case $host_os in 13044 solaris2.[0-5] | solaris2.[0-5].*) ;; 13045 *) 13046 # The compiler driver will combine and reorder linker options, 13047 # but understands '-z linker_flag'. GCC discards it without '$wl', 13048 # but is careful enough not to reorder. 13049 # Supported since Solaris 2.6 (maybe 2.5.1?) 13050 if test yes = "$GCC"; then 13051 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13052 else 13053 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13054 fi 13055 ;; 13056 esac 13057 link_all_deplibs=yes 13058 ;; 13059 13060 sunos4*) 13061 if test sequent = "$host_vendor"; then 13062 # Use $CC to link under sequent, because it throws in some extra .o 13063 # files that make .init and .fini sections work. 13064 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13065 else 13066 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13067 fi 13068 hardcode_libdir_flag_spec='-L$libdir' 13069 hardcode_direct=yes 13070 hardcode_minus_L=yes 13071 hardcode_shlibpath_var=no 13072 ;; 13073 13074 sysv4) 13075 case $host_vendor in 13076 sni) 13077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13078 hardcode_direct=yes # is this really true??? 13079 ;; 13080 siemens) 13081 ## LD is ld it makes a PLAMLIB 13082 ## CC just makes a GrossModule. 13083 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13084 reload_cmds='$CC -r -o $output$reload_objs' 13085 hardcode_direct=no 13086 ;; 13087 motorola) 13088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13089 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13090 ;; 13091 esac 13092 runpath_var='LD_RUN_PATH' 13093 hardcode_shlibpath_var=no 13094 ;; 13095 13096 sysv4.3*) 13097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13098 hardcode_shlibpath_var=no 13099 export_dynamic_flag_spec='-Bexport' 13100 ;; 13101 13102 sysv4*MP*) 13103 if test -d /usr/nec; then 13104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13105 hardcode_shlibpath_var=no 13106 runpath_var=LD_RUN_PATH 13107 hardcode_runpath_var=yes 13108 ld_shlibs=yes 13109 fi 13110 ;; 13111 13112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13113 no_undefined_flag='$wl-z,text' 13114 archive_cmds_need_lc=no 13115 hardcode_shlibpath_var=no 13116 runpath_var='LD_RUN_PATH' 13117 13118 if test yes = "$GCC"; then 13119 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13120 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13121 else 13122 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13123 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13124 fi 13125 ;; 13126 13127 sysv5* | sco3.2v5* | sco5v6*) 13128 # Note: We CANNOT use -z defs as we might desire, because we do not 13129 # link with -lc, and that would cause any symbols used from libc to 13130 # always be unresolved, which means just about no library would 13131 # ever link correctly. If we're not using GNU ld we use -z text 13132 # though, which does catch some bad symbols but isn't as heavy-handed 13133 # as -z defs. 13134 no_undefined_flag='$wl-z,text' 13135 allow_undefined_flag='$wl-z,nodefs' 13136 archive_cmds_need_lc=no 13137 hardcode_shlibpath_var=no 13138 hardcode_libdir_flag_spec='$wl-R,$libdir' 13139 hardcode_libdir_separator=':' 13140 link_all_deplibs=yes 13141 export_dynamic_flag_spec='$wl-Bexport' 13142 runpath_var='LD_RUN_PATH' 13143 13144 if test yes = "$GCC"; then 13145 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13146 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13147 else 13148 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13149 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13150 fi 13151 ;; 13152 13153 uts4*) 13154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13155 hardcode_libdir_flag_spec='-L$libdir' 13156 hardcode_shlibpath_var=no 13157 ;; 13158 13159 *) 13160 ld_shlibs=no 13161 ;; 13162 esac 13163 13164 if test sni = "$host_vendor"; then 13165 case $host in 13166 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13167 export_dynamic_flag_spec='$wl-Blargedynsym' 13168 ;; 13169 esac 13170 fi 13171 fi 13172 13173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13174printf "%s\n" "$ld_shlibs" >&6; } 13175test no = "$ld_shlibs" && can_build_shared=no 13176 13177with_gnu_ld=$with_gnu_ld 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193# 13194# Do we need to explicitly link libc? 13195# 13196case "x$archive_cmds_need_lc" in 13197x|xyes) 13198 # Assume -lc should be added 13199 archive_cmds_need_lc=yes 13200 13201 if test yes,yes = "$GCC,$enable_shared"; then 13202 case $archive_cmds in 13203 *'~'*) 13204 # FIXME: we may have to deal with multi-command sequences. 13205 ;; 13206 '$CC '*) 13207 # Test whether the compiler implicitly links with -lc since on some 13208 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13209 # to ld, don't add -lc before -lgcc. 13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13211printf %s "checking whether -lc should be explicitly linked in... " >&6; } 13212if test ${lt_cv_archive_cmds_need_lc+y} 13213then : 13214 printf %s "(cached) " >&6 13215else case e in #( 13216 e) $RM conftest* 13217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13218 13219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13220 (eval $ac_compile) 2>&5 13221 ac_status=$? 13222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13223 test $ac_status = 0; } 2>conftest.err; then 13224 soname=conftest 13225 lib=conftest 13226 libobjs=conftest.$ac_objext 13227 deplibs= 13228 wl=$lt_prog_compiler_wl 13229 pic_flag=$lt_prog_compiler_pic 13230 compiler_flags=-v 13231 linker_flags=-v 13232 verstring= 13233 output_objdir=. 13234 libname=conftest 13235 lt_save_allow_undefined_flag=$allow_undefined_flag 13236 allow_undefined_flag= 13237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13238 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13239 ac_status=$? 13240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13241 test $ac_status = 0; } 13242 then 13243 lt_cv_archive_cmds_need_lc=no 13244 else 13245 lt_cv_archive_cmds_need_lc=yes 13246 fi 13247 allow_undefined_flag=$lt_save_allow_undefined_flag 13248 else 13249 cat conftest.err 1>&5 13250 fi 13251 $RM conftest* 13252 ;; 13253esac 13254fi 13255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13256printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 13257 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13258 ;; 13259 esac 13260 fi 13261 ;; 13262esac 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13416printf %s "checking dynamic linker characteristics... " >&6; } 13417 13418if test yes = "$GCC"; then 13419 case $host_os in 13420 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13421 *) lt_awk_arg='/^libraries:/' ;; 13422 esac 13423 case $host_os in 13424 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13425 *) lt_sed_strip_eq='s|=/|/|g' ;; 13426 esac 13427 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13428 case $lt_search_path_spec in 13429 *\;*) 13430 # if the path contains ";" then we assume it to be the separator 13431 # otherwise default to the standard path separator (i.e. ":") - it is 13432 # assumed that no part of a normal pathname contains ";" but that should 13433 # okay in the real world where ";" in dirpaths is itself problematic. 13434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13435 ;; 13436 *) 13437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13438 ;; 13439 esac 13440 # Ok, now we have the path, separated by spaces, we can step through it 13441 # and add multilib dir if necessary... 13442 lt_tmp_lt_search_path_spec= 13443 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13444 # ...but if some path component already ends with the multilib dir we assume 13445 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13446 case "$lt_multi_os_dir; $lt_search_path_spec " in 13447 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13448 lt_multi_os_dir= 13449 ;; 13450 esac 13451 for lt_sys_path in $lt_search_path_spec; do 13452 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13453 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13454 elif test -n "$lt_multi_os_dir"; then 13455 test -d "$lt_sys_path" && \ 13456 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13457 fi 13458 done 13459 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13460BEGIN {RS = " "; FS = "/|\n";} { 13461 lt_foo = ""; 13462 lt_count = 0; 13463 for (lt_i = NF; lt_i > 0; lt_i--) { 13464 if ($lt_i != "" && $lt_i != ".") { 13465 if ($lt_i == "..") { 13466 lt_count++; 13467 } else { 13468 if (lt_count == 0) { 13469 lt_foo = "/" $lt_i lt_foo; 13470 } else { 13471 lt_count--; 13472 } 13473 } 13474 } 13475 } 13476 if (lt_foo != "") { lt_freq[lt_foo]++; } 13477 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13478}'` 13479 # AWK program above erroneously prepends '/' to C:/dos/paths 13480 # for these hosts. 13481 case $host_os in 13482 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13483 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13484 esac 13485 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13486else 13487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13488fi 13489library_names_spec= 13490libname_spec='lib$name' 13491soname_spec= 13492shrext_cmds=.so 13493postinstall_cmds= 13494postuninstall_cmds= 13495finish_cmds= 13496finish_eval= 13497shlibpath_var= 13498shlibpath_overrides_runpath=unknown 13499version_type=none 13500dynamic_linker="$host_os ld.so" 13501sys_lib_dlsearch_path_spec="/lib /usr/lib" 13502need_lib_prefix=unknown 13503hardcode_into_libs=no 13504 13505# when you set need_version to no, make sure it does not cause -set_version 13506# flags to be left without arguments 13507need_version=unknown 13508 13509 13510 13511case $host_os in 13512aix3*) 13513 version_type=linux # correct to gnu/linux during the next big refactor 13514 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13515 shlibpath_var=LIBPATH 13516 13517 # AIX 3 has no versioning support, so we append a major version to the name. 13518 soname_spec='$libname$release$shared_ext$major' 13519 ;; 13520 13521aix[4-9]*) 13522 version_type=linux # correct to gnu/linux during the next big refactor 13523 need_lib_prefix=no 13524 need_version=no 13525 hardcode_into_libs=yes 13526 if test ia64 = "$host_cpu"; then 13527 # AIX 5 supports IA64 13528 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13529 shlibpath_var=LD_LIBRARY_PATH 13530 else 13531 # With GCC up to 2.95.x, collect2 would create an import file 13532 # for dependence libraries. The import file would start with 13533 # the line '#! .'. This would cause the generated library to 13534 # depend on '.', always an invalid library. This was fixed in 13535 # development snapshots of GCC prior to 3.0. 13536 case $host_os in 13537 aix4 | aix4.[01] | aix4.[01].*) 13538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13539 echo ' yes ' 13540 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13541 : 13542 else 13543 can_build_shared=no 13544 fi 13545 ;; 13546 esac 13547 # Using Import Files as archive members, it is possible to support 13548 # filename-based versioning of shared library archives on AIX. While 13549 # this would work for both with and without runtime linking, it will 13550 # prevent static linking of such archives. So we do filename-based 13551 # shared library versioning with .so extension only, which is used 13552 # when both runtime linking and shared linking is enabled. 13553 # Unfortunately, runtime linking may impact performance, so we do 13554 # not want this to be the default eventually. Also, we use the 13555 # versioned .so libs for executables only if there is the -brtl 13556 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 13557 # To allow for filename-based versioning support, we need to create 13558 # libNAME.so.V as an archive file, containing: 13559 # *) an Import File, referring to the versioned filename of the 13560 # archive as well as the shared archive member, telling the 13561 # bitwidth (32 or 64) of that shared object, and providing the 13562 # list of exported symbols of that shared object, eventually 13563 # decorated with the 'weak' keyword 13564 # *) the shared object with the F_LOADONLY flag set, to really avoid 13565 # it being seen by the linker. 13566 # At run time we better use the real file rather than another symlink, 13567 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13568 13569 case $with_aix_soname,$aix_use_runtimelinking in 13570 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13571 # soname into executable. Probably we can add versioning support to 13572 # collect2, so additional links can be useful in future. 13573 aix,yes) # traditional libtool 13574 dynamic_linker='AIX unversionable lib.so' 13575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13576 # instead of lib<name>.a to let people know that these are not 13577 # typical AIX shared libraries. 13578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13579 ;; 13580 aix,no) # traditional AIX only 13581 dynamic_linker='AIX lib.a(lib.so.V)' 13582 # We preserve .a as extension for shared libraries through AIX4.2 13583 # and later when we are not doing run time linking. 13584 library_names_spec='$libname$release.a $libname.a' 13585 soname_spec='$libname$release$shared_ext$major' 13586 ;; 13587 svr4,*) # full svr4 only 13588 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13589 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13590 # We do not specify a path in Import Files, so LIBPATH fires. 13591 shlibpath_overrides_runpath=yes 13592 ;; 13593 *,yes) # both, prefer svr4 13594 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13595 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13596 # unpreferred sharedlib libNAME.a needs extra handling 13597 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"' 13598 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"' 13599 # We do not specify a path in Import Files, so LIBPATH fires. 13600 shlibpath_overrides_runpath=yes 13601 ;; 13602 *,no) # both, prefer aix 13603 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13604 library_names_spec='$libname$release.a $libname.a' 13605 soname_spec='$libname$release$shared_ext$major' 13606 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13607 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)' 13608 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"' 13609 ;; 13610 esac 13611 shlibpath_var=LIBPATH 13612 fi 13613 ;; 13614 13615amigaos*) 13616 case $host_cpu in 13617 powerpc) 13618 # Since July 2007 AmigaOS4 officially supports .so libraries. 13619 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13621 ;; 13622 m68k) 13623 library_names_spec='$libname.ixlibrary $libname.a' 13624 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13625 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' 13626 ;; 13627 esac 13628 ;; 13629 13630beos*) 13631 library_names_spec='$libname$shared_ext' 13632 dynamic_linker="$host_os ld.so" 13633 shlibpath_var=LIBRARY_PATH 13634 ;; 13635 13636bsdi[45]*) 13637 version_type=linux # correct to gnu/linux during the next big refactor 13638 need_version=no 13639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13640 soname_spec='$libname$release$shared_ext$major' 13641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13642 shlibpath_var=LD_LIBRARY_PATH 13643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13645 # the default ld.so.conf also contains /usr/contrib/lib and 13646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13647 # libtool to hard-code these into programs 13648 ;; 13649 13650cygwin* | mingw* | windows* | pw32* | cegcc*) 13651 version_type=windows 13652 shrext_cmds=.dll 13653 need_version=no 13654 need_lib_prefix=no 13655 13656 case $GCC,$cc_basename in 13657 yes,*) 13658 # gcc 13659 library_names_spec='$libname.dll.a' 13660 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13661 # If user builds GCC with multilib enabled, 13662 # it should just install on $(libdir) 13663 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 13664 if test xyes = x"$multilib"; then 13665 postinstall_cmds='base_file=`basename \$file`~ 13666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13667 dldir=$destdir/`dirname \$dlpath`~ 13668 $install_prog $dir/$dlname $destdir/$dlname~ 13669 chmod a+x $destdir/$dlname~ 13670 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13671 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 13672 fi' 13673 else 13674 postinstall_cmds='base_file=`basename \$file`~ 13675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13676 dldir=$destdir/`dirname \$dlpath`~ 13677 test -d \$dldir || mkdir -p \$dldir~ 13678 $install_prog $dir/$dlname \$dldir/$dlname~ 13679 chmod a+x \$dldir/$dlname~ 13680 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13681 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13682 fi' 13683 fi 13684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13685 dlpath=$dir/\$dldll~ 13686 $RM \$dlpath' 13687 shlibpath_overrides_runpath=yes 13688 13689 case $host_os in 13690 cygwin*) 13691 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13692 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13693 13694 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13695 ;; 13696 mingw* | windows* | cegcc*) 13697 # MinGW DLLs use traditional 'lib' prefix 13698 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13699 ;; 13700 pw32*) 13701 # pw32 DLLs use 'pw' prefix rather than 'lib' 13702 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13703 ;; 13704 esac 13705 dynamic_linker='Win32 ld.exe' 13706 ;; 13707 13708 *,cl* | *,icl*) 13709 # Native MSVC or ICC 13710 libname_spec='$name' 13711 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13712 library_names_spec='$libname.dll.lib' 13713 13714 case $build_os in 13715 mingw* | windows*) 13716 sys_lib_search_path_spec= 13717 lt_save_ifs=$IFS 13718 IFS=';' 13719 for lt_path in $LIB 13720 do 13721 IFS=$lt_save_ifs 13722 # Let DOS variable expansion print the short 8.3 style file name. 13723 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13724 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13725 done 13726 IFS=$lt_save_ifs 13727 # Convert to MSYS style. 13728 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13729 ;; 13730 cygwin*) 13731 # Convert to unix form, then to dos form, then back to unix form 13732 # but this time dos style (no spaces!) so that the unix form looks 13733 # like /cygdrive/c/PROGRA~1:/cygdr... 13734 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13735 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13736 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13737 ;; 13738 *) 13739 sys_lib_search_path_spec=$LIB 13740 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13741 # It is most probably a Windows format PATH. 13742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13743 else 13744 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13745 fi 13746 # FIXME: find the short name or the path components, as spaces are 13747 # common. (e.g. "Program Files" -> "PROGRA~1") 13748 ;; 13749 esac 13750 13751 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13752 postinstall_cmds='base_file=`basename \$file`~ 13753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13754 dldir=$destdir/`dirname \$dlpath`~ 13755 test -d \$dldir || mkdir -p \$dldir~ 13756 $install_prog $dir/$dlname \$dldir/$dlname' 13757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13758 dlpath=$dir/\$dldll~ 13759 $RM \$dlpath' 13760 shlibpath_overrides_runpath=yes 13761 dynamic_linker='Win32 link.exe' 13762 ;; 13763 13764 *) 13765 # Assume MSVC and ICC wrapper 13766 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13767 dynamic_linker='Win32 ld.exe' 13768 ;; 13769 esac 13770 # FIXME: first we should search . and the directory the executable is in 13771 shlibpath_var=PATH 13772 ;; 13773 13774darwin* | rhapsody*) 13775 dynamic_linker="$host_os dyld" 13776 version_type=darwin 13777 need_lib_prefix=no 13778 need_version=no 13779 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13780 soname_spec='$libname$release$major$shared_ext' 13781 shlibpath_overrides_runpath=yes 13782 shlibpath_var=DYLD_LIBRARY_PATH 13783 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13784 13785 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13787 ;; 13788 13789dgux*) 13790 version_type=linux # correct to gnu/linux during the next big refactor 13791 need_lib_prefix=no 13792 need_version=no 13793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13794 soname_spec='$libname$release$shared_ext$major' 13795 shlibpath_var=LD_LIBRARY_PATH 13796 ;; 13797 13798freebsd* | dragonfly* | midnightbsd*) 13799 # DragonFly does not have aout. When/if they implement a new 13800 # versioning mechanism, adjust this. 13801 if test -x /usr/bin/objformat; then 13802 objformat=`/usr/bin/objformat` 13803 else 13804 case $host_os in 13805 freebsd[23].*) objformat=aout ;; 13806 *) objformat=elf ;; 13807 esac 13808 fi 13809 version_type=freebsd-$objformat 13810 case $version_type in 13811 freebsd-elf*) 13812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13813 soname_spec='$libname$release$shared_ext$major' 13814 need_version=no 13815 need_lib_prefix=no 13816 ;; 13817 freebsd-*) 13818 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13819 need_version=yes 13820 ;; 13821 esac 13822 case $host_cpu in 13823 powerpc64) 13824 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 13825 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13827/* end confdefs.h. */ 13828int test_pointer_size[sizeof (void *) - 5]; 13829 13830_ACEOF 13831if ac_fn_c_try_compile "$LINENO" 13832then : 13833 shlibpath_var=LD_LIBRARY_PATH 13834else case e in #( 13835 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 13836esac 13837fi 13838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13839 ;; 13840 *) 13841 shlibpath_var=LD_LIBRARY_PATH 13842 ;; 13843 esac 13844 case $host_os in 13845 freebsd2.*) 13846 shlibpath_overrides_runpath=yes 13847 ;; 13848 freebsd3.[01]* | freebsdelf3.[01]*) 13849 shlibpath_overrides_runpath=yes 13850 hardcode_into_libs=yes 13851 ;; 13852 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13853 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13854 shlibpath_overrides_runpath=no 13855 hardcode_into_libs=yes 13856 ;; 13857 *) # from 4.6 on, and DragonFly 13858 shlibpath_overrides_runpath=yes 13859 hardcode_into_libs=yes 13860 ;; 13861 esac 13862 ;; 13863 13864haiku*) 13865 version_type=linux # correct to gnu/linux during the next big refactor 13866 need_lib_prefix=no 13867 need_version=no 13868 dynamic_linker="$host_os runtime_loader" 13869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13870 soname_spec='$libname$release$shared_ext$major' 13871 shlibpath_var=LIBRARY_PATH 13872 shlibpath_overrides_runpath=no 13873 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 13874 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 13875 hardcode_into_libs=no 13876 ;; 13877 13878hpux9* | hpux10* | hpux11*) 13879 # Give a soname corresponding to the major version so that dld.sl refuses to 13880 # link against other versions. 13881 version_type=sunos 13882 need_lib_prefix=no 13883 need_version=no 13884 case $host_cpu in 13885 ia64*) 13886 shrext_cmds='.so' 13887 hardcode_into_libs=yes 13888 dynamic_linker="$host_os dld.so" 13889 shlibpath_var=LD_LIBRARY_PATH 13890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13892 soname_spec='$libname$release$shared_ext$major' 13893 if test 32 = "$HPUX_IA64_MODE"; then 13894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13895 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13896 else 13897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13898 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13899 fi 13900 ;; 13901 hppa*64*) 13902 shrext_cmds='.sl' 13903 hardcode_into_libs=yes 13904 dynamic_linker="$host_os dld.sl" 13905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13908 soname_spec='$libname$release$shared_ext$major' 13909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13911 ;; 13912 *) 13913 shrext_cmds='.sl' 13914 dynamic_linker="$host_os dld.sl" 13915 shlibpath_var=SHLIB_PATH 13916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13918 soname_spec='$libname$release$shared_ext$major' 13919 ;; 13920 esac 13921 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13922 postinstall_cmds='chmod 555 $lib' 13923 # or fails outright, so override atomically: 13924 install_override_mode=555 13925 ;; 13926 13927interix[3-9]*) 13928 version_type=linux # correct to gnu/linux during the next big refactor 13929 need_lib_prefix=no 13930 need_version=no 13931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13932 soname_spec='$libname$release$shared_ext$major' 13933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13934 shlibpath_var=LD_LIBRARY_PATH 13935 shlibpath_overrides_runpath=no 13936 hardcode_into_libs=yes 13937 ;; 13938 13939irix5* | irix6* | nonstopux*) 13940 case $host_os in 13941 nonstopux*) version_type=nonstopux ;; 13942 *) 13943 if test yes = "$lt_cv_prog_gnu_ld"; then 13944 version_type=linux # correct to gnu/linux during the next big refactor 13945 else 13946 version_type=irix 13947 fi ;; 13948 esac 13949 need_lib_prefix=no 13950 need_version=no 13951 soname_spec='$libname$release$shared_ext$major' 13952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13953 case $host_os in 13954 irix5* | nonstopux*) 13955 libsuff= shlibsuff= 13956 ;; 13957 *) 13958 case $LD in # libtool.m4 will add one of these switches to LD 13959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13960 libsuff= shlibsuff= libmagic=32-bit;; 13961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13962 libsuff=32 shlibsuff=N32 libmagic=N32;; 13963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13964 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13965 *) libsuff= shlibsuff= libmagic=never-match;; 13966 esac 13967 ;; 13968 esac 13969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13970 shlibpath_overrides_runpath=no 13971 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13972 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13973 hardcode_into_libs=yes 13974 ;; 13975 13976# No shared lib support for Linux oldld, aout, or coff. 13977linux*oldld* | linux*aout* | linux*coff*) 13978 dynamic_linker=no 13979 ;; 13980 13981linux*android*) 13982 version_type=none # Android doesn't support versioned libraries. 13983 need_lib_prefix=no 13984 need_version=no 13985 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 13986 soname_spec='$libname$release$shared_ext' 13987 finish_cmds= 13988 shlibpath_var=LD_LIBRARY_PATH 13989 shlibpath_overrides_runpath=yes 13990 13991 # This implies no fast_install, which is unacceptable. 13992 # Some rework will be needed to allow for fast_install 13993 # before this can be enabled. 13994 hardcode_into_libs=yes 13995 13996 dynamic_linker='Android linker' 13997 # -rpath works at least for libraries that are not overridden by 13998 # libraries installed in system locations. 13999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14000 ;; 14001 14002# This must be glibc/ELF. 14003linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14004 version_type=linux # correct to gnu/linux during the next big refactor 14005 need_lib_prefix=no 14006 need_version=no 14007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14008 soname_spec='$libname$release$shared_ext$major' 14009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14010 shlibpath_var=LD_LIBRARY_PATH 14011 shlibpath_overrides_runpath=no 14012 14013 # Some binutils ld are patched to set DT_RUNPATH 14014 if test ${lt_cv_shlibpath_overrides_runpath+y} 14015then : 14016 printf %s "(cached) " >&6 14017else case e in #( 14018 e) lt_cv_shlibpath_overrides_runpath=no 14019 save_LDFLAGS=$LDFLAGS 14020 save_libdir=$libdir 14021 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14022 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14024/* end confdefs.h. */ 14025 14026int 14027main (void) 14028{ 14029 14030 ; 14031 return 0; 14032} 14033_ACEOF 14034if ac_fn_c_try_link "$LINENO" 14035then : 14036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 14037then : 14038 lt_cv_shlibpath_overrides_runpath=yes 14039fi 14040fi 14041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14042 conftest$ac_exeext conftest.$ac_ext 14043 LDFLAGS=$save_LDFLAGS 14044 libdir=$save_libdir 14045 ;; 14046esac 14047fi 14048 14049 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14050 14051 # This implies no fast_install, which is unacceptable. 14052 # Some rework will be needed to allow for fast_install 14053 # before this can be enabled. 14054 hardcode_into_libs=yes 14055 14056 # Ideally, we could use ldconfig to report *all* directories which are 14057 # searched for libraries, however this is still not possible. Aside from not 14058 # being certain /sbin/ldconfig is available, command 14059 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14060 # even though it is searched at run-time. Try to do the best guess by 14061 # appending ld.so.conf contents (and includes) to the search path. 14062 if test -f /etc/ld.so.conf; then 14063 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' ' '` 14064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14065 fi 14066 14067 # We used to test for /lib/ld.so.1 and disable shared libraries on 14068 # powerpc, because MkLinux only supported shared libraries with the 14069 # GNU dynamic linker. Since this was broken with cross compilers, 14070 # most powerpc-linux boxes support dynamic linking these days and 14071 # people can always --disable-shared, the test was removed, and we 14072 # assume the GNU/Linux dynamic linker is in use. 14073 dynamic_linker='GNU/Linux ld.so' 14074 ;; 14075 14076netbsdelf*-gnu) 14077 version_type=linux 14078 need_lib_prefix=no 14079 need_version=no 14080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14081 soname_spec='$libname$release$shared_ext$major' 14082 shlibpath_var=LD_LIBRARY_PATH 14083 shlibpath_overrides_runpath=no 14084 hardcode_into_libs=yes 14085 dynamic_linker='NetBSD ld.elf_so' 14086 ;; 14087 14088netbsd*) 14089 version_type=sunos 14090 need_lib_prefix=no 14091 need_version=no 14092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14093 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14095 dynamic_linker='NetBSD (a.out) ld.so' 14096 else 14097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14098 soname_spec='$libname$release$shared_ext$major' 14099 dynamic_linker='NetBSD ld.elf_so' 14100 fi 14101 shlibpath_var=LD_LIBRARY_PATH 14102 shlibpath_overrides_runpath=yes 14103 hardcode_into_libs=yes 14104 ;; 14105 14106*-mlibc) 14107 version_type=linux # correct to gnu/linux during the next big refactor 14108 need_lib_prefix=no 14109 need_version=no 14110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14111 soname_spec='$libname$release$shared_ext$major' 14112 dynamic_linker='mlibc ld.so' 14113 shlibpath_var=LD_LIBRARY_PATH 14114 shlibpath_overrides_runpath=no 14115 hardcode_into_libs=yes 14116 ;; 14117 14118newsos6) 14119 version_type=linux # correct to gnu/linux during the next big refactor 14120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14121 shlibpath_var=LD_LIBRARY_PATH 14122 shlibpath_overrides_runpath=yes 14123 ;; 14124 14125*nto* | *qnx*) 14126 version_type=qnx 14127 need_lib_prefix=no 14128 need_version=no 14129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14130 soname_spec='$libname$release$shared_ext$major' 14131 shlibpath_var=LD_LIBRARY_PATH 14132 shlibpath_overrides_runpath=no 14133 hardcode_into_libs=yes 14134 dynamic_linker='ldqnx.so' 14135 ;; 14136 14137openbsd*) 14138 version_type=sunos 14139 sys_lib_dlsearch_path_spec=/usr/lib 14140 need_lib_prefix=no 14141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14142 need_version=no 14143 else 14144 need_version=yes 14145 fi 14146 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14148 shlibpath_var=LD_LIBRARY_PATH 14149 shlibpath_overrides_runpath=yes 14150 ;; 14151 14152os2*) 14153 libname_spec='$name' 14154 version_type=windows 14155 shrext_cmds=.dll 14156 need_version=no 14157 need_lib_prefix=no 14158 # OS/2 can only load a DLL with a base name of 8 characters or less. 14159 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14160 v=$($ECHO $release$versuffix | tr -d .-); 14161 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14162 $ECHO $n$v`$shared_ext' 14163 library_names_spec='${libname}_dll.$libext' 14164 dynamic_linker='OS/2 ld.exe' 14165 shlibpath_var=BEGINLIBPATH 14166 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14168 postinstall_cmds='base_file=`basename \$file`~ 14169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14170 dldir=$destdir/`dirname \$dlpath`~ 14171 test -d \$dldir || mkdir -p \$dldir~ 14172 $install_prog $dir/$dlname \$dldir/$dlname~ 14173 chmod a+x \$dldir/$dlname~ 14174 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14175 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14176 fi' 14177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14178 dlpath=$dir/\$dldll~ 14179 $RM \$dlpath' 14180 ;; 14181 14182osf3* | osf4* | osf5*) 14183 version_type=osf 14184 need_lib_prefix=no 14185 need_version=no 14186 soname_spec='$libname$release$shared_ext$major' 14187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14188 shlibpath_var=LD_LIBRARY_PATH 14189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14191 ;; 14192 14193rdos*) 14194 dynamic_linker=no 14195 ;; 14196 14197serenity*) 14198 version_type=linux # correct to gnu/linux during the next big refactor 14199 need_lib_prefix=no 14200 need_version=no 14201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14202 soname_spec='$libname$release$shared_ext$major' 14203 shlibpath_var=LD_LIBRARY_PATH 14204 shlibpath_overrides_runpath=no 14205 dynamic_linker='SerenityOS LibELF' 14206 ;; 14207 14208solaris*) 14209 version_type=linux # correct to gnu/linux during the next big refactor 14210 need_lib_prefix=no 14211 need_version=no 14212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14213 soname_spec='$libname$release$shared_ext$major' 14214 shlibpath_var=LD_LIBRARY_PATH 14215 shlibpath_overrides_runpath=yes 14216 hardcode_into_libs=yes 14217 # ldd complains unless libraries are executable 14218 postinstall_cmds='chmod +x $lib' 14219 ;; 14220 14221sunos4*) 14222 version_type=sunos 14223 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14224 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14225 shlibpath_var=LD_LIBRARY_PATH 14226 shlibpath_overrides_runpath=yes 14227 if test yes = "$with_gnu_ld"; then 14228 need_lib_prefix=no 14229 fi 14230 need_version=yes 14231 ;; 14232 14233sysv4 | sysv4.3*) 14234 version_type=linux # correct to gnu/linux during the next big refactor 14235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14236 soname_spec='$libname$release$shared_ext$major' 14237 shlibpath_var=LD_LIBRARY_PATH 14238 case $host_vendor in 14239 sni) 14240 shlibpath_overrides_runpath=no 14241 need_lib_prefix=no 14242 runpath_var=LD_RUN_PATH 14243 ;; 14244 siemens) 14245 need_lib_prefix=no 14246 ;; 14247 motorola) 14248 need_lib_prefix=no 14249 need_version=no 14250 shlibpath_overrides_runpath=no 14251 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14252 ;; 14253 esac 14254 ;; 14255 14256sysv4*MP*) 14257 if test -d /usr/nec; then 14258 version_type=linux # correct to gnu/linux during the next big refactor 14259 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14260 soname_spec='$libname$shared_ext.$major' 14261 shlibpath_var=LD_LIBRARY_PATH 14262 fi 14263 ;; 14264 14265sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14266 version_type=sco 14267 need_lib_prefix=no 14268 need_version=no 14269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14270 soname_spec='$libname$release$shared_ext$major' 14271 shlibpath_var=LD_LIBRARY_PATH 14272 shlibpath_overrides_runpath=yes 14273 hardcode_into_libs=yes 14274 if test yes = "$with_gnu_ld"; then 14275 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14276 else 14277 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14278 case $host_os in 14279 sco3.2v5*) 14280 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14281 ;; 14282 esac 14283 fi 14284 sys_lib_dlsearch_path_spec='/usr/lib' 14285 ;; 14286 14287tpf*) 14288 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14289 version_type=linux # correct to gnu/linux during the next big refactor 14290 need_lib_prefix=no 14291 need_version=no 14292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14293 shlibpath_var=LD_LIBRARY_PATH 14294 shlibpath_overrides_runpath=no 14295 hardcode_into_libs=yes 14296 ;; 14297 14298uts4*) 14299 version_type=linux # correct to gnu/linux during the next big refactor 14300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14301 soname_spec='$libname$release$shared_ext$major' 14302 shlibpath_var=LD_LIBRARY_PATH 14303 ;; 14304 14305emscripten*) 14306 version_type=none 14307 need_lib_prefix=no 14308 need_version=no 14309 library_names_spec='$libname$release$shared_ext' 14310 soname_spec='$libname$release$shared_ext' 14311 finish_cmds= 14312 dynamic_linker="Emscripten linker" 14313 lt_prog_compiler_wl= 14314lt_prog_compiler_pic= 14315lt_prog_compiler_static= 14316 14317 14318 if test yes = "$GCC"; then 14319 lt_prog_compiler_wl='-Wl,' 14320 lt_prog_compiler_static='-static' 14321 14322 case $host_os in 14323 aix*) 14324 # All AIX code is PIC. 14325 if test ia64 = "$host_cpu"; then 14326 # AIX 5 now supports IA64 processor 14327 lt_prog_compiler_static='-Bstatic' 14328 fi 14329 lt_prog_compiler_pic='-fPIC' 14330 ;; 14331 14332 amigaos*) 14333 case $host_cpu in 14334 powerpc) 14335 # see comment about AmigaOS4 .so support 14336 lt_prog_compiler_pic='-fPIC' 14337 ;; 14338 m68k) 14339 # FIXME: we need at least 68020 code to build shared libraries, but 14340 # adding the '-m68020' flag to GCC prevents building anything better, 14341 # like '-m68040'. 14342 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14343 ;; 14344 esac 14345 ;; 14346 14347 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14348 # PIC is the default for these OSes. 14349 ;; 14350 14351 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 14352 # This hack is so that the source file can tell whether it is being 14353 # built for inclusion in a dll (and should export symbols for example). 14354 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14355 # (--disable-auto-import) libraries 14356 lt_prog_compiler_pic='-DDLL_EXPORT' 14357 case $host_os in 14358 os2*) 14359 lt_prog_compiler_static='$wl-static' 14360 ;; 14361 esac 14362 ;; 14363 14364 darwin* | rhapsody*) 14365 # PIC is the default on this platform 14366 # Common symbols not allowed in MH_DYLIB files 14367 lt_prog_compiler_pic='-fno-common' 14368 ;; 14369 14370 haiku*) 14371 # PIC is the default for Haiku. 14372 # The "-static" flag exists, but is broken. 14373 lt_prog_compiler_static= 14374 ;; 14375 14376 hpux*) 14377 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14378 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14379 # sets the default TLS model and affects inlining. 14380 case $host_cpu in 14381 hppa*64*) 14382 # +Z the default 14383 ;; 14384 *) 14385 lt_prog_compiler_pic='-fPIC' 14386 ;; 14387 esac 14388 ;; 14389 14390 interix[3-9]*) 14391 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14392 # Instead, we relocate shared libraries at runtime. 14393 ;; 14394 14395 msdosdjgpp*) 14396 # Just because we use GCC doesn't mean we suddenly get shared libraries 14397 # on systems that don't support them. 14398 lt_prog_compiler_can_build_shared=no 14399 enable_shared=no 14400 ;; 14401 14402 *nto* | *qnx*) 14403 # QNX uses GNU C++, but need to define -shared option too, otherwise 14404 # it will coredump. 14405 lt_prog_compiler_pic='-fPIC -shared' 14406 ;; 14407 14408 sysv4*MP*) 14409 if test -d /usr/nec; then 14410 lt_prog_compiler_pic=-Kconform_pic 14411 fi 14412 ;; 14413 14414 *) 14415 lt_prog_compiler_pic='-fPIC' 14416 ;; 14417 esac 14418 14419 case $cc_basename in 14420 nvcc*) # Cuda Compiler Driver 2.2 14421 lt_prog_compiler_wl='-Xlinker ' 14422 if test -n "$lt_prog_compiler_pic"; then 14423 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14424 fi 14425 ;; 14426 esac 14427 else 14428 # PORTME Check for flag to pass linker flags through the system compiler. 14429 case $host_os in 14430 aix*) 14431 lt_prog_compiler_wl='-Wl,' 14432 if test ia64 = "$host_cpu"; then 14433 # AIX 5 now supports IA64 processor 14434 lt_prog_compiler_static='-Bstatic' 14435 else 14436 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14437 fi 14438 ;; 14439 14440 darwin* | rhapsody*) 14441 # PIC is the default on this platform 14442 # Common symbols not allowed in MH_DYLIB files 14443 lt_prog_compiler_pic='-fno-common' 14444 case $cc_basename in 14445 nagfor*) 14446 # NAG Fortran compiler 14447 lt_prog_compiler_wl='-Wl,-Wl,,' 14448 lt_prog_compiler_pic='-PIC' 14449 lt_prog_compiler_static='-Bstatic' 14450 ;; 14451 esac 14452 ;; 14453 14454 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 14455 # This hack is so that the source file can tell whether it is being 14456 # built for inclusion in a dll (and should export symbols for example). 14457 lt_prog_compiler_pic='-DDLL_EXPORT' 14458 case $host_os in 14459 os2*) 14460 lt_prog_compiler_static='$wl-static' 14461 ;; 14462 esac 14463 ;; 14464 14465 hpux9* | hpux10* | hpux11*) 14466 lt_prog_compiler_wl='-Wl,' 14467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14468 # not for PA HP-UX. 14469 case $host_cpu in 14470 hppa*64*|ia64*) 14471 # +Z the default 14472 ;; 14473 *) 14474 lt_prog_compiler_pic='+Z' 14475 ;; 14476 esac 14477 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14478 lt_prog_compiler_static='$wl-a ${wl}archive' 14479 ;; 14480 14481 irix5* | irix6* | nonstopux*) 14482 lt_prog_compiler_wl='-Wl,' 14483 # PIC (with -KPIC) is the default. 14484 lt_prog_compiler_static='-non_shared' 14485 ;; 14486 14487 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14488 case $cc_basename in 14489 # old Intel for x86_64, which still supported -KPIC. 14490 ecc*) 14491 lt_prog_compiler_wl='-Wl,' 14492 lt_prog_compiler_pic='-KPIC' 14493 lt_prog_compiler_static='-static' 14494 ;; 14495 *flang* | ftn | f18* | f95*) 14496 # Flang compiler. 14497 lt_prog_compiler_wl='-Wl,' 14498 lt_prog_compiler_pic='-fPIC' 14499 lt_prog_compiler_static='-static' 14500 ;; 14501 # icc used to be incompatible with GCC. 14502 # ICC 10 doesn't accept -KPIC any more. 14503 icc* | ifort*) 14504 lt_prog_compiler_wl='-Wl,' 14505 lt_prog_compiler_pic='-fPIC' 14506 lt_prog_compiler_static='-static' 14507 ;; 14508 # Lahey Fortran 8.1. 14509 lf95*) 14510 lt_prog_compiler_wl='-Wl,' 14511 lt_prog_compiler_pic='--shared' 14512 lt_prog_compiler_static='--static' 14513 ;; 14514 nagfor*) 14515 # NAG Fortran compiler 14516 lt_prog_compiler_wl='-Wl,-Wl,,' 14517 lt_prog_compiler_pic='-PIC' 14518 lt_prog_compiler_static='-Bstatic' 14519 ;; 14520 tcc*) 14521 # Fabrice Bellard et al's Tiny C Compiler 14522 lt_prog_compiler_wl='-Wl,' 14523 lt_prog_compiler_pic='-fPIC' 14524 lt_prog_compiler_static='-static' 14525 ;; 14526 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14527 # Portland Group compilers (*not* the Pentium gcc compiler, 14528 # which looks to be a dead project) 14529 lt_prog_compiler_wl='-Wl,' 14530 lt_prog_compiler_pic='-fpic' 14531 lt_prog_compiler_static='-Bstatic' 14532 ;; 14533 ccc*) 14534 lt_prog_compiler_wl='-Wl,' 14535 # All Alpha code is PIC. 14536 lt_prog_compiler_static='-non_shared' 14537 ;; 14538 xl* | bgxl* | bgf* | mpixl*) 14539 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14540 lt_prog_compiler_wl='-Wl,' 14541 lt_prog_compiler_pic='-qpic' 14542 lt_prog_compiler_static='-qstaticlink' 14543 ;; 14544 *) 14545 case `$CC -V 2>&1 | $SED 5q` in 14546 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14547 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14548 lt_prog_compiler_pic='-KPIC' 14549 lt_prog_compiler_static='-Bstatic' 14550 lt_prog_compiler_wl='' 14551 ;; 14552 *Sun\ F* | *Sun*Fortran*) 14553 lt_prog_compiler_pic='-KPIC' 14554 lt_prog_compiler_static='-Bstatic' 14555 lt_prog_compiler_wl='-Qoption ld ' 14556 ;; 14557 *Sun\ C*) 14558 # Sun C 5.9 14559 lt_prog_compiler_pic='-KPIC' 14560 lt_prog_compiler_static='-Bstatic' 14561 lt_prog_compiler_wl='-Wl,' 14562 ;; 14563 *Intel*\ [CF]*Compiler*) 14564 lt_prog_compiler_wl='-Wl,' 14565 lt_prog_compiler_pic='-fPIC' 14566 lt_prog_compiler_static='-static' 14567 ;; 14568 *Portland\ Group*) 14569 lt_prog_compiler_wl='-Wl,' 14570 lt_prog_compiler_pic='-fpic' 14571 lt_prog_compiler_static='-Bstatic' 14572 ;; 14573 esac 14574 ;; 14575 esac 14576 ;; 14577 14578 newsos6) 14579 lt_prog_compiler_pic='-KPIC' 14580 lt_prog_compiler_static='-Bstatic' 14581 ;; 14582 14583 *-mlibc) 14584 lt_prog_compiler_wl='-Wl,' 14585 lt_prog_compiler_pic='-fPIC' 14586 lt_prog_compiler_static='-static' 14587 ;; 14588 14589 *nto* | *qnx*) 14590 # QNX uses GNU C++, but need to define -shared option too, otherwise 14591 # it will coredump. 14592 lt_prog_compiler_pic='-fPIC -shared' 14593 ;; 14594 14595 osf3* | osf4* | osf5*) 14596 lt_prog_compiler_wl='-Wl,' 14597 # All OSF/1 code is PIC. 14598 lt_prog_compiler_static='-non_shared' 14599 ;; 14600 14601 rdos*) 14602 lt_prog_compiler_static='-non_shared' 14603 ;; 14604 14605 serenity*) 14606 ;; 14607 14608 solaris*) 14609 lt_prog_compiler_pic='-KPIC' 14610 lt_prog_compiler_static='-Bstatic' 14611 case $cc_basename in 14612 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14613 lt_prog_compiler_wl='-Qoption ld ';; 14614 *) 14615 lt_prog_compiler_wl='-Wl,';; 14616 esac 14617 ;; 14618 14619 sunos4*) 14620 lt_prog_compiler_wl='-Qoption ld ' 14621 lt_prog_compiler_pic='-PIC' 14622 lt_prog_compiler_static='-Bstatic' 14623 ;; 14624 14625 sysv4 | sysv4.2uw2* | sysv4.3*) 14626 lt_prog_compiler_wl='-Wl,' 14627 lt_prog_compiler_pic='-KPIC' 14628 lt_prog_compiler_static='-Bstatic' 14629 ;; 14630 14631 sysv4*MP*) 14632 if test -d /usr/nec; then 14633 lt_prog_compiler_pic='-Kconform_pic' 14634 lt_prog_compiler_static='-Bstatic' 14635 fi 14636 ;; 14637 14638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14639 lt_prog_compiler_wl='-Wl,' 14640 lt_prog_compiler_pic='-KPIC' 14641 lt_prog_compiler_static='-Bstatic' 14642 ;; 14643 14644 unicos*) 14645 lt_prog_compiler_wl='-Wl,' 14646 lt_prog_compiler_can_build_shared=no 14647 ;; 14648 14649 uts4*) 14650 lt_prog_compiler_pic='-pic' 14651 lt_prog_compiler_static='-Bstatic' 14652 ;; 14653 14654 *) 14655 lt_prog_compiler_can_build_shared=no 14656 ;; 14657 esac 14658 fi 14659 14660case $host_os in 14661 # For platforms that do not support PIC, -DPIC is meaningless: 14662 *djgpp*) 14663 lt_prog_compiler_pic= 14664 ;; 14665 *) 14666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14667 ;; 14668esac 14669 14670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14671printf %s "checking for $compiler option to produce PIC... " >&6; } 14672if test ${lt_cv_prog_compiler_pic+y} 14673then : 14674 printf %s "(cached) " >&6 14675else case e in #( 14676 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 14677esac 14678fi 14679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14680printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 14681lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14682 14683# 14684# Check to make sure the PIC flag actually works. 14685# 14686if test -n "$lt_prog_compiler_pic"; then 14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14688printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14689if test ${lt_cv_prog_compiler_pic_works+y} 14690then : 14691 printf %s "(cached) " >&6 14692else case e in #( 14693 e) lt_cv_prog_compiler_pic_works=no 14694 ac_outfile=conftest.$ac_objext 14695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14696 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 14697 # Insert the option either (1) after the last *FLAGS variable, or 14698 # (2) before a word containing "conftest.", or (3) at the end. 14699 # Note that $ac_compile itself does not contain backslashes and begins 14700 # with a dollar sign (not a hyphen), so the echo should work correctly. 14701 # The option is referenced via a variable to avoid confusing sed. 14702 lt_compile=`echo "$ac_compile" | $SED \ 14703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14705 -e 's:$: $lt_compiler_flag:'` 14706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14707 (eval "$lt_compile" 2>conftest.err) 14708 ac_status=$? 14709 cat conftest.err >&5 14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14711 if (exit $ac_status) && test -s "$ac_outfile"; then 14712 # The compiler can only warn and ignore the option if not recognized 14713 # So say no if there are warnings other than the usual output. 14714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14717 lt_cv_prog_compiler_pic_works=yes 14718 fi 14719 fi 14720 $RM conftest* 14721 ;; 14722esac 14723fi 14724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14725printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 14726 14727if test yes = "$lt_cv_prog_compiler_pic_works"; then 14728 case $lt_prog_compiler_pic in 14729 "" | " "*) ;; 14730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14731 esac 14732else 14733 lt_prog_compiler_pic= 14734 lt_prog_compiler_can_build_shared=no 14735fi 14736 14737fi 14738 14739 14740 14741 14742 14743# 14744# Check to make sure the static flag actually works. 14745# 14746wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14748printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14749if test ${lt_cv_prog_compiler_static_works+y} 14750then : 14751 printf %s "(cached) " >&6 14752else case e in #( 14753 e) lt_cv_prog_compiler_static_works=no 14754 save_LDFLAGS=$LDFLAGS 14755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14756 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14758 # The linker can only warn and ignore the option if not recognized 14759 # So say no if there are warnings 14760 if test -s conftest.err; then 14761 # Append any errors to the config.log. 14762 cat conftest.err 1>&5 14763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14765 if diff conftest.exp conftest.er2 >/dev/null; then 14766 lt_cv_prog_compiler_static_works=yes 14767 fi 14768 else 14769 lt_cv_prog_compiler_static_works=yes 14770 fi 14771 fi 14772 $RM -r conftest* 14773 LDFLAGS=$save_LDFLAGS 14774 ;; 14775esac 14776fi 14777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14778printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 14779 14780if test yes = "$lt_cv_prog_compiler_static_works"; then 14781 : 14782else 14783 lt_prog_compiler_static= 14784fi 14785 14786 14787 14788='-fPIC' 14789 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 14790 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 14791 archive_cmds_need_lc=no 14792 no_undefined_flag= 14793 ;; 14794 14795*) 14796 dynamic_linker=no 14797 ;; 14798esac 14799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14800printf "%s\n" "$dynamic_linker" >&6; } 14801test no = "$dynamic_linker" && can_build_shared=no 14802 14803variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14804if test yes = "$GCC"; then 14805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14806fi 14807 14808if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14809 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14810fi 14811 14812if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14813 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14814fi 14815 14816# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14817configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14818 14819# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14820func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14821 14822# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14823configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14922printf %s "checking how to hardcode library paths into programs... " >&6; } 14923hardcode_action= 14924if test -n "$hardcode_libdir_flag_spec" || 14925 test -n "$runpath_var" || 14926 test yes = "$hardcode_automatic"; then 14927 14928 # We can hardcode non-existent directories. 14929 if test no != "$hardcode_direct" && 14930 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14931 # have to relink, otherwise we might link with an installed library 14932 # when we should be linking with a yet-to-be-installed one 14933 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14934 test no != "$hardcode_minus_L"; then 14935 # Linking always hardcodes the temporary library directory. 14936 hardcode_action=relink 14937 else 14938 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14939 hardcode_action=immediate 14940 fi 14941else 14942 # We cannot hardcode anything, or else we can only hardcode existing 14943 # directories. 14944 hardcode_action=unsupported 14945fi 14946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14947printf "%s\n" "$hardcode_action" >&6; } 14948 14949if test relink = "$hardcode_action" || 14950 test yes = "$inherit_rpath"; then 14951 # Fast installation is not supported 14952 enable_fast_install=no 14953elif test yes = "$shlibpath_overrides_runpath" || 14954 test no = "$enable_shared"; then 14955 # Fast installation is not necessary 14956 enable_fast_install=needless 14957fi 14958 14959 14960 14961 14962 14963 14964 if test yes != "$enable_dlopen"; then 14965 enable_dlopen=unknown 14966 enable_dlopen_self=unknown 14967 enable_dlopen_self_static=unknown 14968else 14969 lt_cv_dlopen=no 14970 lt_cv_dlopen_libs= 14971 14972 case $host_os in 14973 beos*) 14974 lt_cv_dlopen=load_add_on 14975 lt_cv_dlopen_libs= 14976 lt_cv_dlopen_self=yes 14977 ;; 14978 14979 mingw* | windows* | pw32* | cegcc*) 14980 lt_cv_dlopen=LoadLibrary 14981 lt_cv_dlopen_libs= 14982 ;; 14983 14984 cygwin*) 14985 lt_cv_dlopen=dlopen 14986 lt_cv_dlopen_libs= 14987 ;; 14988 14989 darwin*) 14990 # if libdl is installed we need to link against it 14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14992printf %s "checking for dlopen in -ldl... " >&6; } 14993if test ${ac_cv_lib_dl_dlopen+y} 14994then : 14995 printf %s "(cached) " >&6 14996else case e in #( 14997 e) ac_check_lib_save_LIBS=$LIBS 14998LIBS="-ldl $LIBS" 14999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15000/* end confdefs.h. */ 15001 15002/* Override any GCC internal prototype to avoid an error. 15003 Use char because int might match the return type of a GCC 15004 builtin and then its argument prototype would still apply. 15005 The 'extern "C"' is for builds by C++ compilers; 15006 although this is not generally supported in C code supporting it here 15007 has little cost and some practical benefit (sr 110532). */ 15008#ifdef __cplusplus 15009extern "C" 15010#endif 15011char dlopen (void); 15012int 15013main (void) 15014{ 15015return dlopen (); 15016 ; 15017 return 0; 15018} 15019_ACEOF 15020if ac_fn_c_try_link "$LINENO" 15021then : 15022 ac_cv_lib_dl_dlopen=yes 15023else case e in #( 15024 e) ac_cv_lib_dl_dlopen=no ;; 15025esac 15026fi 15027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15028 conftest$ac_exeext conftest.$ac_ext 15029LIBS=$ac_check_lib_save_LIBS ;; 15030esac 15031fi 15032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15033printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15034if test "x$ac_cv_lib_dl_dlopen" = xyes 15035then : 15036 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15037else case e in #( 15038 e) 15039 lt_cv_dlopen=dyld 15040 lt_cv_dlopen_libs= 15041 lt_cv_dlopen_self=yes 15042 ;; 15043esac 15044fi 15045 15046 ;; 15047 15048 tpf*) 15049 # Don't try to run any link tests for TPF. We know it's impossible 15050 # because TPF is a cross-compiler, and we know how we open DSOs. 15051 lt_cv_dlopen=dlopen 15052 lt_cv_dlopen_libs= 15053 lt_cv_dlopen_self=no 15054 ;; 15055 15056 *) 15057 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15058if test "x$ac_cv_func_shl_load" = xyes 15059then : 15060 lt_cv_dlopen=shl_load 15061else case e in #( 15062 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15063printf %s "checking for shl_load in -ldld... " >&6; } 15064if test ${ac_cv_lib_dld_shl_load+y} 15065then : 15066 printf %s "(cached) " >&6 15067else case e in #( 15068 e) ac_check_lib_save_LIBS=$LIBS 15069LIBS="-ldld $LIBS" 15070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15071/* end confdefs.h. */ 15072 15073/* Override any GCC internal prototype to avoid an error. 15074 Use char because int might match the return type of a GCC 15075 builtin and then its argument prototype would still apply. 15076 The 'extern "C"' is for builds by C++ compilers; 15077 although this is not generally supported in C code supporting it here 15078 has little cost and some practical benefit (sr 110532). */ 15079#ifdef __cplusplus 15080extern "C" 15081#endif 15082char shl_load (void); 15083int 15084main (void) 15085{ 15086return shl_load (); 15087 ; 15088 return 0; 15089} 15090_ACEOF 15091if ac_fn_c_try_link "$LINENO" 15092then : 15093 ac_cv_lib_dld_shl_load=yes 15094else case e in #( 15095 e) ac_cv_lib_dld_shl_load=no ;; 15096esac 15097fi 15098rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15099 conftest$ac_exeext conftest.$ac_ext 15100LIBS=$ac_check_lib_save_LIBS ;; 15101esac 15102fi 15103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15104printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 15105if test "x$ac_cv_lib_dld_shl_load" = xyes 15106then : 15107 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15108else case e in #( 15109 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15110if test "x$ac_cv_func_dlopen" = xyes 15111then : 15112 lt_cv_dlopen=dlopen 15113else case e in #( 15114 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15115printf %s "checking for dlopen in -ldl... " >&6; } 15116if test ${ac_cv_lib_dl_dlopen+y} 15117then : 15118 printf %s "(cached) " >&6 15119else case e in #( 15120 e) ac_check_lib_save_LIBS=$LIBS 15121LIBS="-ldl $LIBS" 15122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15123/* end confdefs.h. */ 15124 15125/* Override any GCC internal prototype to avoid an error. 15126 Use char because int might match the return type of a GCC 15127 builtin and then its argument prototype would still apply. 15128 The 'extern "C"' is for builds by C++ compilers; 15129 although this is not generally supported in C code supporting it here 15130 has little cost and some practical benefit (sr 110532). */ 15131#ifdef __cplusplus 15132extern "C" 15133#endif 15134char dlopen (void); 15135int 15136main (void) 15137{ 15138return dlopen (); 15139 ; 15140 return 0; 15141} 15142_ACEOF 15143if ac_fn_c_try_link "$LINENO" 15144then : 15145 ac_cv_lib_dl_dlopen=yes 15146else case e in #( 15147 e) ac_cv_lib_dl_dlopen=no ;; 15148esac 15149fi 15150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15151 conftest$ac_exeext conftest.$ac_ext 15152LIBS=$ac_check_lib_save_LIBS ;; 15153esac 15154fi 15155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15156printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15157if test "x$ac_cv_lib_dl_dlopen" = xyes 15158then : 15159 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15160else case e in #( 15161 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15162printf %s "checking for dlopen in -lsvld... " >&6; } 15163if test ${ac_cv_lib_svld_dlopen+y} 15164then : 15165 printf %s "(cached) " >&6 15166else case e in #( 15167 e) ac_check_lib_save_LIBS=$LIBS 15168LIBS="-lsvld $LIBS" 15169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15170/* end confdefs.h. */ 15171 15172/* Override any GCC internal prototype to avoid an error. 15173 Use char because int might match the return type of a GCC 15174 builtin and then its argument prototype would still apply. 15175 The 'extern "C"' is for builds by C++ compilers; 15176 although this is not generally supported in C code supporting it here 15177 has little cost and some practical benefit (sr 110532). */ 15178#ifdef __cplusplus 15179extern "C" 15180#endif 15181char dlopen (void); 15182int 15183main (void) 15184{ 15185return dlopen (); 15186 ; 15187 return 0; 15188} 15189_ACEOF 15190if ac_fn_c_try_link "$LINENO" 15191then : 15192 ac_cv_lib_svld_dlopen=yes 15193else case e in #( 15194 e) ac_cv_lib_svld_dlopen=no ;; 15195esac 15196fi 15197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15198 conftest$ac_exeext conftest.$ac_ext 15199LIBS=$ac_check_lib_save_LIBS ;; 15200esac 15201fi 15202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15203printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 15204if test "x$ac_cv_lib_svld_dlopen" = xyes 15205then : 15206 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15207else case e in #( 15208 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15209printf %s "checking for dld_link in -ldld... " >&6; } 15210if test ${ac_cv_lib_dld_dld_link+y} 15211then : 15212 printf %s "(cached) " >&6 15213else case e in #( 15214 e) ac_check_lib_save_LIBS=$LIBS 15215LIBS="-ldld $LIBS" 15216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15217/* end confdefs.h. */ 15218 15219/* Override any GCC internal prototype to avoid an error. 15220 Use char because int might match the return type of a GCC 15221 builtin and then its argument prototype would still apply. 15222 The 'extern "C"' is for builds by C++ compilers; 15223 although this is not generally supported in C code supporting it here 15224 has little cost and some practical benefit (sr 110532). */ 15225#ifdef __cplusplus 15226extern "C" 15227#endif 15228char dld_link (void); 15229int 15230main (void) 15231{ 15232return dld_link (); 15233 ; 15234 return 0; 15235} 15236_ACEOF 15237if ac_fn_c_try_link "$LINENO" 15238then : 15239 ac_cv_lib_dld_dld_link=yes 15240else case e in #( 15241 e) ac_cv_lib_dld_dld_link=no ;; 15242esac 15243fi 15244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15245 conftest$ac_exeext conftest.$ac_ext 15246LIBS=$ac_check_lib_save_LIBS ;; 15247esac 15248fi 15249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15250printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 15251if test "x$ac_cv_lib_dld_dld_link" = xyes 15252then : 15253 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15254fi 15255 15256 ;; 15257esac 15258fi 15259 15260 ;; 15261esac 15262fi 15263 15264 ;; 15265esac 15266fi 15267 15268 ;; 15269esac 15270fi 15271 15272 ;; 15273esac 15274fi 15275 15276 ;; 15277 esac 15278 15279 if test no = "$lt_cv_dlopen"; then 15280 enable_dlopen=no 15281 else 15282 enable_dlopen=yes 15283 fi 15284 15285 case $lt_cv_dlopen in 15286 dlopen) 15287 save_CPPFLAGS=$CPPFLAGS 15288 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15289 15290 save_LDFLAGS=$LDFLAGS 15291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15292 15293 save_LIBS=$LIBS 15294 LIBS="$lt_cv_dlopen_libs $LIBS" 15295 15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15297printf %s "checking whether a program can dlopen itself... " >&6; } 15298if test ${lt_cv_dlopen_self+y} 15299then : 15300 printf %s "(cached) " >&6 15301else case e in #( 15302 e) if test yes = "$cross_compiling"; then : 15303 lt_cv_dlopen_self=cross 15304else 15305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15306 lt_status=$lt_dlunknown 15307 cat > conftest.$ac_ext <<_LT_EOF 15308#line $LINENO "configure" 15309#include "confdefs.h" 15310 15311#if HAVE_DLFCN_H 15312#include <dlfcn.h> 15313#endif 15314 15315#include <stdio.h> 15316 15317#ifdef RTLD_GLOBAL 15318# define LT_DLGLOBAL RTLD_GLOBAL 15319#else 15320# ifdef DL_GLOBAL 15321# define LT_DLGLOBAL DL_GLOBAL 15322# else 15323# define LT_DLGLOBAL 0 15324# endif 15325#endif 15326 15327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15328 find out it does not work in some platform. */ 15329#ifndef LT_DLLAZY_OR_NOW 15330# ifdef RTLD_LAZY 15331# define LT_DLLAZY_OR_NOW RTLD_LAZY 15332# else 15333# ifdef DL_LAZY 15334# define LT_DLLAZY_OR_NOW DL_LAZY 15335# else 15336# ifdef RTLD_NOW 15337# define LT_DLLAZY_OR_NOW RTLD_NOW 15338# else 15339# ifdef DL_NOW 15340# define LT_DLLAZY_OR_NOW DL_NOW 15341# else 15342# define LT_DLLAZY_OR_NOW 0 15343# endif 15344# endif 15345# endif 15346# endif 15347#endif 15348 15349/* When -fvisibility=hidden is used, assume the code has been annotated 15350 correspondingly for the symbols needed. */ 15351#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15352int fnord (void) __attribute__((visibility("default"))); 15353#endif 15354 15355int fnord (void) { return 42; } 15356int main (void) 15357{ 15358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15359 int status = $lt_dlunknown; 15360 15361 if (self) 15362 { 15363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15364 else 15365 { 15366 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15367 else puts (dlerror ()); 15368 } 15369 /* dlclose (self); */ 15370 } 15371 else 15372 puts (dlerror ()); 15373 15374 return status; 15375} 15376_LT_EOF 15377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15378 (eval $ac_link) 2>&5 15379 ac_status=$? 15380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15381 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15382 (./conftest; exit; ) >&5 2>/dev/null 15383 lt_status=$? 15384 case x$lt_status in 15385 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15386 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15387 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15388 esac 15389 else : 15390 # compilation failed 15391 lt_cv_dlopen_self=no 15392 fi 15393fi 15394rm -fr conftest* 15395 15396 ;; 15397esac 15398fi 15399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15400printf "%s\n" "$lt_cv_dlopen_self" >&6; } 15401 15402 if test yes = "$lt_cv_dlopen_self"; then 15403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15405printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 15406if test ${lt_cv_dlopen_self_static+y} 15407then : 15408 printf %s "(cached) " >&6 15409else case e in #( 15410 e) if test yes = "$cross_compiling"; then : 15411 lt_cv_dlopen_self_static=cross 15412else 15413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15414 lt_status=$lt_dlunknown 15415 cat > conftest.$ac_ext <<_LT_EOF 15416#line $LINENO "configure" 15417#include "confdefs.h" 15418 15419#if HAVE_DLFCN_H 15420#include <dlfcn.h> 15421#endif 15422 15423#include <stdio.h> 15424 15425#ifdef RTLD_GLOBAL 15426# define LT_DLGLOBAL RTLD_GLOBAL 15427#else 15428# ifdef DL_GLOBAL 15429# define LT_DLGLOBAL DL_GLOBAL 15430# else 15431# define LT_DLGLOBAL 0 15432# endif 15433#endif 15434 15435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15436 find out it does not work in some platform. */ 15437#ifndef LT_DLLAZY_OR_NOW 15438# ifdef RTLD_LAZY 15439# define LT_DLLAZY_OR_NOW RTLD_LAZY 15440# else 15441# ifdef DL_LAZY 15442# define LT_DLLAZY_OR_NOW DL_LAZY 15443# else 15444# ifdef RTLD_NOW 15445# define LT_DLLAZY_OR_NOW RTLD_NOW 15446# else 15447# ifdef DL_NOW 15448# define LT_DLLAZY_OR_NOW DL_NOW 15449# else 15450# define LT_DLLAZY_OR_NOW 0 15451# endif 15452# endif 15453# endif 15454# endif 15455#endif 15456 15457/* When -fvisibility=hidden is used, assume the code has been annotated 15458 correspondingly for the symbols needed. */ 15459#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15460int fnord (void) __attribute__((visibility("default"))); 15461#endif 15462 15463int fnord (void) { return 42; } 15464int main (void) 15465{ 15466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15467 int status = $lt_dlunknown; 15468 15469 if (self) 15470 { 15471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15472 else 15473 { 15474 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15475 else puts (dlerror ()); 15476 } 15477 /* dlclose (self); */ 15478 } 15479 else 15480 puts (dlerror ()); 15481 15482 return status; 15483} 15484_LT_EOF 15485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15486 (eval $ac_link) 2>&5 15487 ac_status=$? 15488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15489 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15490 (./conftest; exit; ) >&5 2>/dev/null 15491 lt_status=$? 15492 case x$lt_status in 15493 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15494 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15495 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15496 esac 15497 else : 15498 # compilation failed 15499 lt_cv_dlopen_self_static=no 15500 fi 15501fi 15502rm -fr conftest* 15503 15504 ;; 15505esac 15506fi 15507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15508printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 15509 fi 15510 15511 CPPFLAGS=$save_CPPFLAGS 15512 LDFLAGS=$save_LDFLAGS 15513 LIBS=$save_LIBS 15514 ;; 15515 esac 15516 15517 case $lt_cv_dlopen_self in 15518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15519 *) enable_dlopen_self=unknown ;; 15520 esac 15521 15522 case $lt_cv_dlopen_self_static in 15523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15524 *) enable_dlopen_self_static=unknown ;; 15525 esac 15526fi 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544striplib= 15545old_striplib= 15546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15547printf %s "checking whether stripping libraries is possible... " >&6; } 15548if test -z "$STRIP"; then 15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15550printf "%s\n" "no" >&6; } 15551else 15552 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15553 old_striplib="$STRIP --strip-debug" 15554 striplib="$STRIP --strip-unneeded" 15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15556printf "%s\n" "yes" >&6; } 15557 else 15558 case $host_os in 15559 darwin*) 15560 # FIXME - insert some real tests, host_os isn't really good enough 15561 striplib="$STRIP -x" 15562 old_striplib="$STRIP -S" 15563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15564printf "%s\n" "yes" >&6; } 15565 ;; 15566 freebsd*) 15567 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 15568 old_striplib="$STRIP --strip-debug" 15569 striplib="$STRIP --strip-unneeded" 15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15571printf "%s\n" "yes" >&6; } 15572 else 15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15574printf "%s\n" "no" >&6; } 15575 fi 15576 ;; 15577 *) 15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15579printf "%s\n" "no" >&6; } 15580 ;; 15581 esac 15582 fi 15583fi 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 # Report what library types will actually be built 15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15598printf %s "checking if libtool supports shared libraries... " >&6; } 15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15600printf "%s\n" "$can_build_shared" >&6; } 15601 15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15603printf %s "checking whether to build shared libraries... " >&6; } 15604 test no = "$can_build_shared" && enable_shared=no 15605 15606 # On AIX, shared libraries and static libraries use the same namespace, and 15607 # are all built from PIC. 15608 case $host_os in 15609 aix3*) 15610 test yes = "$enable_shared" && enable_static=no 15611 if test -n "$RANLIB"; then 15612 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15613 postinstall_cmds='$RANLIB $lib' 15614 fi 15615 ;; 15616 15617 aix[4-9]*) 15618 if test ia64 != "$host_cpu"; then 15619 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15620 yes,aix,yes) ;; # shared object as lib.so file only 15621 yes,svr4,*) ;; # shared object as lib.so archive member only 15622 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15623 esac 15624 fi 15625 ;; 15626 esac 15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15628printf "%s\n" "$enable_shared" >&6; } 15629 15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15631printf %s "checking whether to build static libraries... " >&6; } 15632 # Make sure either enable_shared or enable_static is yes. 15633 test yes = "$enable_shared" || enable_static=yes 15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15635printf "%s\n" "$enable_static" >&6; } 15636 15637 15638 15639 15640fi 15641ac_ext=c 15642ac_cpp='$CPP $CPPFLAGS' 15643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15645ac_compiler_gnu=$ac_cv_c_compiler_gnu 15646 15647CC=$lt_save_CC 15648 15649 if test -n "$CXX" && ( test no != "$CXX" && 15650 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15651 (test g++ != "$CXX"))); then 15652 ac_ext=cpp 15653ac_cpp='$CXXCPP $CPPFLAGS' 15654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15658printf %s "checking how to run the C++ preprocessor... " >&6; } 15659if test -z "$CXXCPP"; then 15660 if test ${ac_cv_prog_CXXCPP+y} 15661then : 15662 printf %s "(cached) " >&6 15663else case e in #( 15664 e) # Double quotes because $CXX needs to be expanded 15665 for CXXCPP in "$CXX -E" cpp /lib/cpp 15666 do 15667 ac_preproc_ok=false 15668for ac_cxx_preproc_warn_flag in '' yes 15669do 15670 # Use a header file that comes with gcc, so configuring glibc 15671 # with a fresh cross-compiler works. 15672 # On the NeXT, cc -E runs the code through the compiler's parser, 15673 # not just through cpp. "Syntax error" is here to catch this case. 15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15675/* end confdefs.h. */ 15676#include <limits.h> 15677 Syntax error 15678_ACEOF 15679if ac_fn_cxx_try_cpp "$LINENO" 15680then : 15681 15682else case e in #( 15683 e) # Broken: fails on valid input. 15684continue ;; 15685esac 15686fi 15687rm -f conftest.err conftest.i conftest.$ac_ext 15688 15689 # OK, works on sane cases. Now check whether nonexistent headers 15690 # can be detected and how. 15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15692/* end confdefs.h. */ 15693#include <ac_nonexistent.h> 15694_ACEOF 15695if ac_fn_cxx_try_cpp "$LINENO" 15696then : 15697 # Broken: success on invalid input. 15698continue 15699else case e in #( 15700 e) # Passes both tests. 15701ac_preproc_ok=: 15702break ;; 15703esac 15704fi 15705rm -f conftest.err conftest.i conftest.$ac_ext 15706 15707done 15708# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15709rm -f conftest.i conftest.err conftest.$ac_ext 15710if $ac_preproc_ok 15711then : 15712 break 15713fi 15714 15715 done 15716 ac_cv_prog_CXXCPP=$CXXCPP 15717 ;; 15718esac 15719fi 15720 CXXCPP=$ac_cv_prog_CXXCPP 15721else 15722 ac_cv_prog_CXXCPP=$CXXCPP 15723fi 15724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15725printf "%s\n" "$CXXCPP" >&6; } 15726ac_preproc_ok=false 15727for ac_cxx_preproc_warn_flag in '' yes 15728do 15729 # Use a header file that comes with gcc, so configuring glibc 15730 # with a fresh cross-compiler works. 15731 # On the NeXT, cc -E runs the code through the compiler's parser, 15732 # not just through cpp. "Syntax error" is here to catch this case. 15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735#include <limits.h> 15736 Syntax error 15737_ACEOF 15738if ac_fn_cxx_try_cpp "$LINENO" 15739then : 15740 15741else case e in #( 15742 e) # Broken: fails on valid input. 15743continue ;; 15744esac 15745fi 15746rm -f conftest.err conftest.i conftest.$ac_ext 15747 15748 # OK, works on sane cases. Now check whether nonexistent headers 15749 # can be detected and how. 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752#include <ac_nonexistent.h> 15753_ACEOF 15754if ac_fn_cxx_try_cpp "$LINENO" 15755then : 15756 # Broken: success on invalid input. 15757continue 15758else case e in #( 15759 e) # Passes both tests. 15760ac_preproc_ok=: 15761break ;; 15762esac 15763fi 15764rm -f conftest.err conftest.i conftest.$ac_ext 15765 15766done 15767# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15768rm -f conftest.i conftest.err conftest.$ac_ext 15769if $ac_preproc_ok 15770then : 15771 15772else case e in #( 15773 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 15774printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 15775as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15776See 'config.log' for more details" "$LINENO" 5; } ;; 15777esac 15778fi 15779 15780ac_ext=c 15781ac_cpp='$CPP $CPPFLAGS' 15782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15784ac_compiler_gnu=$ac_cv_c_compiler_gnu 15785 15786else 15787 _lt_caught_CXX_error=yes 15788fi 15789 15790ac_ext=cpp 15791ac_cpp='$CXXCPP $CPPFLAGS' 15792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15795 15796archive_cmds_need_lc_CXX=no 15797allow_undefined_flag_CXX= 15798always_export_symbols_CXX=no 15799archive_expsym_cmds_CXX= 15800compiler_needs_object_CXX=no 15801export_dynamic_flag_spec_CXX= 15802hardcode_direct_CXX=no 15803hardcode_direct_absolute_CXX=no 15804hardcode_libdir_flag_spec_CXX= 15805hardcode_libdir_separator_CXX= 15806hardcode_minus_L_CXX=no 15807hardcode_shlibpath_var_CXX=unsupported 15808hardcode_automatic_CXX=no 15809inherit_rpath_CXX=no 15810module_cmds_CXX= 15811module_expsym_cmds_CXX= 15812link_all_deplibs_CXX=unknown 15813old_archive_cmds_CXX=$old_archive_cmds 15814reload_flag_CXX=$reload_flag 15815reload_cmds_CXX=$reload_cmds 15816no_undefined_flag_CXX= 15817whole_archive_flag_spec_CXX= 15818enable_shared_with_static_runtimes_CXX=no 15819 15820# Source file extension for C++ test sources. 15821ac_ext=cpp 15822 15823# Object file extension for compiled C++ test sources. 15824objext=o 15825objext_CXX=$objext 15826 15827# No sense in running all these tests if we already determined that 15828# the CXX compiler isn't working. Some variables (like enable_shared) 15829# are currently assumed to apply to all compilers on this platform, 15830# and will be corrupted by setting them based on a non-working compiler. 15831if test yes != "$_lt_caught_CXX_error"; then 15832 # Code to be used in simple compile tests 15833 lt_simple_compile_test_code="int some_variable = 0;" 15834 15835 # Code to be used in simple link tests 15836 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15837 15838 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15839 15840 15841 15842 15843 15844 15845# If no C compiler was specified, use CC. 15846LTCC=${LTCC-"$CC"} 15847 15848# If no C compiler flags were specified, use CFLAGS. 15849LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15850 15851# Allow CC to be a program name with arguments. 15852compiler=$CC 15853 15854 15855 # save warnings/boilerplate of simple test code 15856 ac_outfile=conftest.$ac_objext 15857echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15858eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15859_lt_compiler_boilerplate=`cat conftest.err` 15860$RM conftest* 15861 15862 ac_outfile=conftest.$ac_objext 15863echo "$lt_simple_link_test_code" >conftest.$ac_ext 15864eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15865_lt_linker_boilerplate=`cat conftest.err` 15866$RM -r conftest* 15867 15868 15869 # Allow CC to be a program name with arguments. 15870 lt_save_CC=$CC 15871 lt_save_CFLAGS=$CFLAGS 15872 lt_save_LD=$LD 15873 lt_save_GCC=$GCC 15874 GCC=$GXX 15875 lt_save_with_gnu_ld=$with_gnu_ld 15876 lt_save_path_LD=$lt_cv_path_LD 15877 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15878 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15879 else 15880 $as_unset lt_cv_prog_gnu_ld 15881 fi 15882 if test -n "${lt_cv_path_LDCXX+set}"; then 15883 lt_cv_path_LD=$lt_cv_path_LDCXX 15884 else 15885 $as_unset lt_cv_path_LD 15886 fi 15887 test -z "${LDCXX+set}" || LD=$LDCXX 15888 CC=${CXX-"c++"} 15889 CFLAGS=$CXXFLAGS 15890 compiler=$CC 15891 compiler_CXX=$CC 15892 func_cc_basename $compiler 15893cc_basename=$func_cc_basename_result 15894 15895 15896 if test -n "$compiler"; then 15897 # We don't want -fno-exception when compiling C++ code, so set the 15898 # no_builtin_flag separately 15899 if test yes = "$GXX"; then 15900 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15901 else 15902 lt_prog_compiler_no_builtin_flag_CXX= 15903 fi 15904 15905 if test yes = "$GXX"; then 15906 # Set up default GNU C++ configuration 15907 15908 15909 15910# Check whether --with-gnu-ld was given. 15911if test ${with_gnu_ld+y} 15912then : 15913 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15914else case e in #( 15915 e) with_gnu_ld=no ;; 15916esac 15917fi 15918 15919ac_prog=ld 15920if test yes = "$GCC"; then 15921 # Check if gcc -print-prog-name=ld gives a path. 15922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15923printf %s "checking for ld used by $CC... " >&6; } 15924 case $host in 15925 *-*-mingw* | *-*-windows*) 15926 # gcc leaves a trailing carriage return, which upsets mingw 15927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15928 *) 15929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15930 esac 15931 case $ac_prog in 15932 # Accept absolute paths. 15933 [\\/]* | ?:[\\/]*) 15934 re_direlt='/[^/][^/]*/\.\./' 15935 # Canonicalize the pathname of ld 15936 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15937 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15938 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15939 done 15940 test -z "$LD" && LD=$ac_prog 15941 ;; 15942 "") 15943 # If it fails, then pretend we aren't using GCC. 15944 ac_prog=ld 15945 ;; 15946 *) 15947 # If it is relative, then search for the first ld in PATH. 15948 with_gnu_ld=unknown 15949 ;; 15950 esac 15951elif test yes = "$with_gnu_ld"; then 15952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15953printf %s "checking for GNU ld... " >&6; } 15954else 15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15956printf %s "checking for non-GNU ld... " >&6; } 15957fi 15958if test ${lt_cv_path_LD+y} 15959then : 15960 printf %s "(cached) " >&6 15961else case e in #( 15962 e) if test -z "$LD"; then 15963 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15964 for ac_dir in $PATH; do 15965 IFS=$lt_save_ifs 15966 test -z "$ac_dir" && ac_dir=. 15967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15968 lt_cv_path_LD=$ac_dir/$ac_prog 15969 # Check to see if the program is GNU ld. I'd rather use --version, 15970 # but apparently some variants of GNU ld only accept -v. 15971 # Break only if it was the GNU/non-GNU ld that we prefer. 15972 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15973 *GNU* | *'with BFD'*) 15974 test no != "$with_gnu_ld" && break 15975 ;; 15976 *) 15977 test yes != "$with_gnu_ld" && break 15978 ;; 15979 esac 15980 fi 15981 done 15982 IFS=$lt_save_ifs 15983else 15984 lt_cv_path_LD=$LD # Let the user override the test with a path. 15985fi ;; 15986esac 15987fi 15988 15989LD=$lt_cv_path_LD 15990if test -n "$LD"; then 15991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15992printf "%s\n" "$LD" >&6; } 15993else 15994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15995printf "%s\n" "no" >&6; } 15996fi 15997test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15999printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 16000if test ${lt_cv_prog_gnu_ld+y} 16001then : 16002 printf %s "(cached) " >&6 16003else case e in #( 16004 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 16005case `$LD -v 2>&1 </dev/null` in 16006*GNU* | *'with BFD'*) 16007 lt_cv_prog_gnu_ld=yes 16008 ;; 16009*) 16010 lt_cv_prog_gnu_ld=no 16011 ;; 16012esac ;; 16013esac 16014fi 16015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16016printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 16017with_gnu_ld=$lt_cv_prog_gnu_ld 16018 16019 16020 16021 16022 16023 16024 16025 # Check if GNU C++ uses GNU ld as the underlying linker, since the 16026 # archiving commands below assume that GNU ld is being used. 16027 if test yes = "$with_gnu_ld"; then 16028 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16029 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' 16030 16031 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16032 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16033 16034 # If archive_cmds runs LD, not CC, wlarc should be empty 16035 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 16036 # investigate it a little bit more. (MM) 16037 wlarc='$wl' 16038 16039 # ancient GNU ld didn't support --whole-archive et. al. 16040 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16041 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16042 else 16043 whole_archive_flag_spec_CXX= 16044 fi 16045 else 16046 with_gnu_ld=no 16047 wlarc= 16048 16049 # A generic and very simple default shared library creation 16050 # command for GNU C++ for the case where it uses the native 16051 # linker, instead of GNU ld. If possible, this setting should 16052 # overridden to take advantage of the native linker features on 16053 # the platform it is being used on. 16054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16055 fi 16056 16057 # Commands to make compiler produce verbose output that lists 16058 # what "hidden" libraries, object files and flags are used when 16059 # linking a shared library. 16060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' 16061 16062 else 16063 GXX=no 16064 with_gnu_ld=no 16065 wlarc= 16066 fi 16067 16068 # PORTME: fill in a description of your system's C++ link characteristics 16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16070printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16071 ld_shlibs_CXX=yes 16072 case $host_os in 16073 aix3*) 16074 # FIXME: insert proper C++ library support 16075 ld_shlibs_CXX=no 16076 ;; 16077 aix[4-9]*) 16078 if test ia64 = "$host_cpu"; then 16079 # On IA64, the linker does run time linking by default, so we don't 16080 # have to do anything special. 16081 aix_use_runtimelinking=no 16082 exp_sym_flag='-Bexport' 16083 no_entry_flag= 16084 else 16085 aix_use_runtimelinking=no 16086 16087 # Test if we are trying to use run time linking or normal 16088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16089 # have runtime linking enabled, and use it for executables. 16090 # For shared libraries, we enable/disable runtime linking 16091 # depending on the kind of the shared library created - 16092 # when "with_aix_soname,aix_use_runtimelinking" is: 16093 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16094 # "aix,yes" lib.so shared, rtl:yes, for executables 16095 # lib.a static archive 16096 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16097 # lib.a(lib.so.V) shared, rtl:no, for executables 16098 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16099 # lib.a(lib.so.V) shared, rtl:no 16100 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16101 # lib.a static archive 16102 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16103 for ld_flag in $LDFLAGS; do 16104 case $ld_flag in 16105 *-brtl*) 16106 aix_use_runtimelinking=yes 16107 break 16108 ;; 16109 esac 16110 done 16111 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16112 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16113 # so we don't have lib.a shared libs to link our executables. 16114 # We have to force runtime linking in this case. 16115 aix_use_runtimelinking=yes 16116 LDFLAGS="$LDFLAGS -Wl,-brtl" 16117 fi 16118 ;; 16119 esac 16120 16121 exp_sym_flag='-bexport' 16122 no_entry_flag='-bnoentry' 16123 fi 16124 16125 # When large executables or shared objects are built, AIX ld can 16126 # have problems creating the table of contents. If linking a library 16127 # or program results in "error TOC overflow" add -mminimal-toc to 16128 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16129 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16130 16131 archive_cmds_CXX='' 16132 hardcode_direct_CXX=yes 16133 hardcode_direct_absolute_CXX=yes 16134 hardcode_libdir_separator_CXX=':' 16135 link_all_deplibs_CXX=yes 16136 file_list_spec_CXX='$wl-f,' 16137 case $with_aix_soname,$aix_use_runtimelinking in 16138 aix,*) ;; # no import file 16139 svr4,* | *,yes) # use import file 16140 # The Import File defines what to hardcode. 16141 hardcode_direct_CXX=no 16142 hardcode_direct_absolute_CXX=no 16143 ;; 16144 esac 16145 16146 if test yes = "$GXX"; then 16147 case $host_os in aix4.[012]|aix4.[012].*) 16148 # We only want to do this on AIX 4.2 and lower, the check 16149 # below for broken collect2 doesn't work under 4.3+ 16150 collect2name=`$CC -print-prog-name=collect2` 16151 if test -f "$collect2name" && 16152 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16153 then 16154 # We have reworked collect2 16155 : 16156 else 16157 # We have old collect2 16158 hardcode_direct_CXX=unsupported 16159 # It fails to find uninstalled libraries when the uninstalled 16160 # path is not listed in the libpath. Setting hardcode_minus_L 16161 # to unsupported forces relinking 16162 hardcode_minus_L_CXX=yes 16163 hardcode_libdir_flag_spec_CXX='-L$libdir' 16164 hardcode_libdir_separator_CXX= 16165 fi 16166 esac 16167 shared_flag='-shared' 16168 if test yes = "$aix_use_runtimelinking"; then 16169 shared_flag=$shared_flag' $wl-G' 16170 fi 16171 # Need to ensure runtime linking is disabled for the traditional 16172 # shared library, or the linker may eventually find shared libraries 16173 # /with/ Import File - we do not want to mix them. 16174 shared_flag_aix='-shared' 16175 shared_flag_svr4='-shared $wl-G' 16176 else 16177 # not using gcc 16178 if test ia64 = "$host_cpu"; then 16179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16180 # chokes on -Wl,-G. The following line is correct: 16181 shared_flag='-G' 16182 else 16183 if test yes = "$aix_use_runtimelinking"; then 16184 shared_flag='$wl-G' 16185 else 16186 shared_flag='$wl-bM:SRE' 16187 fi 16188 shared_flag_aix='$wl-bM:SRE' 16189 shared_flag_svr4='$wl-G' 16190 fi 16191 fi 16192 16193 export_dynamic_flag_spec_CXX='$wl-bexpall' 16194 # It seems that -bexpall does not export symbols beginning with 16195 # underscore (_), so it is better to generate a list of symbols to 16196 # export. 16197 always_export_symbols_CXX=yes 16198 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16199 # Warning - without using the other runtime loading flags (-brtl), 16200 # -berok will link without error, but may produce a broken library. 16201 # The "-G" linker flag allows undefined symbols. 16202 no_undefined_flag_CXX='-bernotok' 16203 # Determine the default libpath from the value encoded in an empty 16204 # executable. 16205 if test set = "${lt_cv_aix_libpath+set}"; then 16206 aix_libpath=$lt_cv_aix_libpath 16207else 16208 if test ${lt_cv_aix_libpath__CXX+y} 16209then : 16210 printf %s "(cached) " >&6 16211else case e in #( 16212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16213/* end confdefs.h. */ 16214 16215int 16216main (void) 16217{ 16218 16219 ; 16220 return 0; 16221} 16222_ACEOF 16223if ac_fn_cxx_try_link "$LINENO" 16224then : 16225 16226 lt_aix_libpath_sed=' 16227 /Import File Strings/,/^$/ { 16228 /^0/ { 16229 s/^0 *\([^ ]*\) *$/\1/ 16230 p 16231 } 16232 }' 16233 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16234 # Check for a 64-bit object if we didn't find anything. 16235 if test -z "$lt_cv_aix_libpath__CXX"; then 16236 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16237 fi 16238fi 16239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16240 conftest$ac_exeext conftest.$ac_ext 16241 if test -z "$lt_cv_aix_libpath__CXX"; then 16242 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16243 fi 16244 ;; 16245esac 16246fi 16247 16248 aix_libpath=$lt_cv_aix_libpath__CXX 16249fi 16250 16251 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16252 16253 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 16254 else 16255 if test ia64 = "$host_cpu"; then 16256 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 16257 allow_undefined_flag_CXX="-z nodefs" 16258 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" 16259 else 16260 # Determine the default libpath from the value encoded in an 16261 # empty executable. 16262 if test set = "${lt_cv_aix_libpath+set}"; then 16263 aix_libpath=$lt_cv_aix_libpath 16264else 16265 if test ${lt_cv_aix_libpath__CXX+y} 16266then : 16267 printf %s "(cached) " >&6 16268else case e in #( 16269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16270/* end confdefs.h. */ 16271 16272int 16273main (void) 16274{ 16275 16276 ; 16277 return 0; 16278} 16279_ACEOF 16280if ac_fn_cxx_try_link "$LINENO" 16281then : 16282 16283 lt_aix_libpath_sed=' 16284 /Import File Strings/,/^$/ { 16285 /^0/ { 16286 s/^0 *\([^ ]*\) *$/\1/ 16287 p 16288 } 16289 }' 16290 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16291 # Check for a 64-bit object if we didn't find anything. 16292 if test -z "$lt_cv_aix_libpath__CXX"; then 16293 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16294 fi 16295fi 16296rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16297 conftest$ac_exeext conftest.$ac_ext 16298 if test -z "$lt_cv_aix_libpath__CXX"; then 16299 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16300 fi 16301 ;; 16302esac 16303fi 16304 16305 aix_libpath=$lt_cv_aix_libpath__CXX 16306fi 16307 16308 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16309 # Warning - without using the other run time loading flags, 16310 # -berok will link without error, but may produce a broken library. 16311 no_undefined_flag_CXX=' $wl-bernotok' 16312 allow_undefined_flag_CXX=' $wl-berok' 16313 if test yes = "$with_gnu_ld"; then 16314 # We only use this code for GNU lds that support --whole-archive. 16315 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16316 else 16317 # Exported symbols can be pulled into shared objects from archives 16318 whole_archive_flag_spec_CXX='$convenience' 16319 fi 16320 archive_cmds_need_lc_CXX=yes 16321 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16322 # -brtl affects multiple linker settings, -berok does not and is overridden later 16323 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16324 if test svr4 != "$with_aix_soname"; then 16325 # This is similar to how AIX traditionally builds its shared 16326 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 16327 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' 16328 fi 16329 if test aix != "$with_aix_soname"; then 16330 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' 16331 else 16332 # used by -dlpreopen to get the symbols 16333 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16334 fi 16335 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 16336 fi 16337 fi 16338 ;; 16339 16340 beos*) 16341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16342 allow_undefined_flag_CXX=unsupported 16343 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16344 # support --undefined. This deserves some investigation. FIXME 16345 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16346 else 16347 ld_shlibs_CXX=no 16348 fi 16349 ;; 16350 16351 chorus*) 16352 case $cc_basename in 16353 *) 16354 # FIXME: insert proper C++ library support 16355 ld_shlibs_CXX=no 16356 ;; 16357 esac 16358 ;; 16359 16360 cygwin* | mingw* | windows* | pw32* | cegcc*) 16361 case $GXX,$cc_basename in 16362 ,cl* | no,cl* | ,icl* | no,icl*) 16363 # Native MSVC or ICC 16364 # hardcode_libdir_flag_spec is actually meaningless, as there is 16365 # no search path for DLLs. 16366 hardcode_libdir_flag_spec_CXX=' ' 16367 allow_undefined_flag_CXX=unsupported 16368 always_export_symbols_CXX=yes 16369 file_list_spec_CXX='@' 16370 # Tell ltmain to make .lib files, not .a files. 16371 libext=lib 16372 # Tell ltmain to make .dll files, not .so files. 16373 shrext_cmds=.dll 16374 # FIXME: Setting linknames here is a bad hack. 16375 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16376 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16377 cp "$export_symbols" "$output_objdir/$soname.def"; 16378 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16379 else 16380 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16381 fi~ 16382 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16383 linknames=' 16384 # The linker will not automatically build a static lib if we build a DLL. 16385 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16386 enable_shared_with_static_runtimes_CXX=yes 16387 # Don't use ranlib 16388 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16389 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16390 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16391 case $lt_outputfile in 16392 *.exe|*.EXE) ;; 16393 *) 16394 lt_outputfile=$lt_outputfile.exe 16395 lt_tool_outputfile=$lt_tool_outputfile.exe 16396 ;; 16397 esac~ 16398 func_to_tool_file "$lt_outputfile"~ 16399 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16401 $RM "$lt_outputfile.manifest"; 16402 fi' 16403 ;; 16404 *) 16405 # g++ 16406 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16407 # as there is no search path for DLLs. 16408 hardcode_libdir_flag_spec_CXX='-L$libdir' 16409 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 16410 allow_undefined_flag_CXX=unsupported 16411 always_export_symbols_CXX=no 16412 enable_shared_with_static_runtimes_CXX=yes 16413 file_list_spec_CXX='@' 16414 16415 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16416 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' 16417 # If the export-symbols file already is a .def file, use it as 16418 # is; otherwise, prepend EXPORTS... 16419 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16420 cp $export_symbols $output_objdir/$soname.def; 16421 else 16422 echo EXPORTS > $output_objdir/$soname.def; 16423 cat $export_symbols >> $output_objdir/$soname.def; 16424 fi~ 16425 $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' 16426 else 16427 ld_shlibs_CXX=no 16428 fi 16429 ;; 16430 esac 16431 ;; 16432 darwin* | rhapsody*) 16433 16434 16435 archive_cmds_need_lc_CXX=no 16436 hardcode_direct_CXX=no 16437 hardcode_automatic_CXX=yes 16438 hardcode_shlibpath_var_CXX=unsupported 16439 if test yes = "$lt_cv_ld_force_load"; then 16440 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\"`' 16441 16442 else 16443 whole_archive_flag_spec_CXX='' 16444 fi 16445 link_all_deplibs_CXX=yes 16446 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 16447 case $cc_basename in 16448 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16449 *) _lt_dar_can_shared=$GCC ;; 16450 esac 16451 if test yes = "$_lt_dar_can_shared"; then 16452 output_verbose_link_cmd=func_echo_all 16453 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" 16454 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16455 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" 16456 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" 16457 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then 16458 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" 16459 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" 16460 fi 16461 16462 else 16463 ld_shlibs_CXX=no 16464 fi 16465 16466 ;; 16467 16468 os2*) 16469 hardcode_libdir_flag_spec_CXX='-L$libdir' 16470 hardcode_minus_L_CXX=yes 16471 allow_undefined_flag_CXX=unsupported 16472 shrext_cmds=.dll 16473 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16474 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16475 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16476 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16477 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16478 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16479 emximp -o $lib $output_objdir/$libname.def' 16480 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16481 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16482 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16483 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16484 prefix_cmds="$SED"~ 16485 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16486 prefix_cmds="$prefix_cmds -e 1d"; 16487 fi~ 16488 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16489 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16490 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16491 emximp -o $lib $output_objdir/$libname.def' 16492 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16493 enable_shared_with_static_runtimes_CXX=yes 16494 file_list_spec_CXX='@' 16495 ;; 16496 16497 dgux*) 16498 case $cc_basename in 16499 ec++*) 16500 # FIXME: insert proper C++ library support 16501 ld_shlibs_CXX=no 16502 ;; 16503 ghcx*) 16504 # Green Hills C++ Compiler 16505 # FIXME: insert proper C++ library support 16506 ld_shlibs_CXX=no 16507 ;; 16508 *) 16509 # FIXME: insert proper C++ library support 16510 ld_shlibs_CXX=no 16511 ;; 16512 esac 16513 ;; 16514 16515 freebsd2.*) 16516 # C++ shared libraries reported to be fairly broken before 16517 # switch to ELF 16518 ld_shlibs_CXX=no 16519 ;; 16520 16521 freebsd-elf*) 16522 archive_cmds_need_lc_CXX=no 16523 ;; 16524 16525 freebsd* | dragonfly* | midnightbsd*) 16526 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16527 # conventions 16528 ld_shlibs_CXX=yes 16529 ;; 16530 16531 haiku*) 16532 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16533 link_all_deplibs_CXX=no 16534 ;; 16535 16536 hpux9*) 16537 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16538 hardcode_libdir_separator_CXX=: 16539 export_dynamic_flag_spec_CXX='$wl-E' 16540 hardcode_direct_CXX=yes 16541 hardcode_minus_L_CXX=yes # Not in the search PATH, 16542 # but as the default 16543 # location of the library. 16544 16545 case $cc_basename in 16546 CC*) 16547 # FIXME: insert proper C++ library support 16548 ld_shlibs_CXX=no 16549 ;; 16550 aCC*) 16551 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' 16552 # Commands to make compiler produce verbose output that lists 16553 # what "hidden" libraries, object files and flags are used when 16554 # linking a shared library. 16555 # 16556 # There doesn't appear to be a way to prevent this compiler from 16557 # explicitly linking system object files so we need to strip them 16558 # from the output so that they don't get included in the library 16559 # dependencies. 16560 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"' 16561 ;; 16562 *) 16563 if test yes = "$GXX"; then 16564 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' 16565 else 16566 # FIXME: insert proper C++ library support 16567 ld_shlibs_CXX=no 16568 fi 16569 ;; 16570 esac 16571 ;; 16572 16573 hpux10*|hpux11*) 16574 if test no = "$with_gnu_ld"; then 16575 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16576 hardcode_libdir_separator_CXX=: 16577 16578 case $host_cpu in 16579 hppa*64*|ia64*) 16580 ;; 16581 *) 16582 export_dynamic_flag_spec_CXX='$wl-E' 16583 ;; 16584 esac 16585 fi 16586 case $host_cpu in 16587 hppa*64*|ia64*) 16588 hardcode_direct_CXX=no 16589 hardcode_shlibpath_var_CXX=no 16590 ;; 16591 *) 16592 hardcode_direct_CXX=yes 16593 hardcode_direct_absolute_CXX=yes 16594 hardcode_minus_L_CXX=yes # Not in the search PATH, 16595 # but as the default 16596 # location of the library. 16597 ;; 16598 esac 16599 16600 case $cc_basename in 16601 CC*) 16602 # FIXME: insert proper C++ library support 16603 ld_shlibs_CXX=no 16604 ;; 16605 aCC*) 16606 case $host_cpu in 16607 hppa*64*) 16608 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16609 ;; 16610 ia64*) 16611 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16612 ;; 16613 *) 16614 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16615 ;; 16616 esac 16617 # Commands to make compiler produce verbose output that lists 16618 # what "hidden" libraries, object files and flags are used when 16619 # linking a shared library. 16620 # 16621 # There doesn't appear to be a way to prevent this compiler from 16622 # explicitly linking system object files so we need to strip them 16623 # from the output so that they don't get included in the library 16624 # dependencies. 16625 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"' 16626 ;; 16627 *) 16628 if test yes = "$GXX"; then 16629 if test no = "$with_gnu_ld"; then 16630 case $host_cpu in 16631 hppa*64*) 16632 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16633 ;; 16634 ia64*) 16635 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16636 ;; 16637 *) 16638 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' 16639 ;; 16640 esac 16641 fi 16642 else 16643 # FIXME: insert proper C++ library support 16644 ld_shlibs_CXX=no 16645 fi 16646 ;; 16647 esac 16648 ;; 16649 16650 interix[3-9]*) 16651 hardcode_direct_CXX=no 16652 hardcode_shlibpath_var_CXX=no 16653 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16654 export_dynamic_flag_spec_CXX='$wl-E' 16655 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16656 # Instead, shared libraries are loaded at an image base (0x10000000 by 16657 # default) and relocated if they conflict, which is a slow very memory 16658 # consuming and fragmenting process. To avoid this, we pick a random, 16659 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16660 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16661 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' 16662 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' 16663 ;; 16664 irix5* | irix6*) 16665 case $cc_basename in 16666 CC*) 16667 # SGI C++ 16668 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' 16669 16670 # Archives containing C++ object files must be created using 16671 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16672 # necessary to make sure instantiated templates are included 16673 # in the archive. 16674 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16675 ;; 16676 *) 16677 if test yes = "$GXX"; then 16678 if test no = "$with_gnu_ld"; then 16679 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' 16680 else 16681 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' 16682 fi 16683 fi 16684 link_all_deplibs_CXX=yes 16685 ;; 16686 esac 16687 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16688 hardcode_libdir_separator_CXX=: 16689 inherit_rpath_CXX=yes 16690 ;; 16691 16692 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16693 case $cc_basename in 16694 KCC*) 16695 # Kuck and Associates, Inc. (KAI) C++ Compiler 16696 16697 # KCC will only create a shared library if the output file 16698 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16699 # to its proper name (with version) after linking. 16700 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' 16701 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' 16702 # Commands to make compiler produce verbose output that lists 16703 # what "hidden" libraries, object files and flags are used when 16704 # linking a shared library. 16705 # 16706 # There doesn't appear to be a way to prevent this compiler from 16707 # explicitly linking system object files so we need to strip them 16708 # from the output so that they don't get included in the library 16709 # dependencies. 16710 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"' 16711 16712 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16713 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16714 16715 # Archives containing C++ object files must be created using 16716 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16717 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16718 ;; 16719 icpc* | ecpc* ) 16720 # Intel C++ 16721 with_gnu_ld=yes 16722 # version 8.0 and above of icpc choke on multiply defined symbols 16723 # if we add $predep_objects and $postdep_objects, however 7.1 and 16724 # earlier do not add the objects themselves. 16725 case `$CC -V 2>&1` in 16726 *"Version 7."*) 16727 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16728 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' 16729 ;; 16730 *) # Version 8.0 or newer 16731 tmp_idyn= 16732 case $host_cpu in 16733 ia64*) tmp_idyn=' -i_dynamic';; 16734 esac 16735 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16736 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' 16737 ;; 16738 esac 16739 archive_cmds_need_lc_CXX=no 16740 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16741 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16742 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16743 ;; 16744 pgCC* | pgcpp*) 16745 # Portland Group C++ compiler 16746 case `$CC -V` in 16747 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16748 prelink_cmds_CXX='tpldir=Template.dir~ 16749 rm -rf $tpldir~ 16750 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16751 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16752 old_archive_cmds_CXX='tpldir=Template.dir~ 16753 rm -rf $tpldir~ 16754 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16755 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16756 $RANLIB $oldlib' 16757 archive_cmds_CXX='tpldir=Template.dir~ 16758 rm -rf $tpldir~ 16759 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16760 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16761 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16762 rm -rf $tpldir~ 16763 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16764 $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' 16765 ;; 16766 *) # Version 6 and above use weak symbols 16767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16768 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' 16769 ;; 16770 esac 16771 16772 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16773 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16774 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' 16775 ;; 16776 cxx*) 16777 # Compaq C++ 16778 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16779 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' 16780 16781 runpath_var=LD_RUN_PATH 16782 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16783 hardcode_libdir_separator_CXX=: 16784 16785 # Commands to make compiler produce verbose output that lists 16786 # what "hidden" libraries, object files and flags are used when 16787 # linking a shared library. 16788 # 16789 # There doesn't appear to be a way to prevent this compiler from 16790 # explicitly linking system object files so we need to strip them 16791 # from the output so that they don't get included in the library 16792 # dependencies. 16793 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' 16794 ;; 16795 xl* | mpixl* | bgxl*) 16796 # IBM XL 8.0 on PPC, with GNU ld 16797 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16798 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16799 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16800 if test yes = "$supports_anon_versioning"; then 16801 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16802 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16803 echo "local: *; };" >> $output_objdir/$libname.ver~ 16804 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16805 fi 16806 ;; 16807 *) 16808 case `$CC -V 2>&1 | $SED 5q` in 16809 *Sun\ C*) 16810 # Sun C++ 5.9 16811 no_undefined_flag_CXX=' -zdefs' 16812 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16813 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' 16814 hardcode_libdir_flag_spec_CXX='-R$libdir' 16815 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' 16816 compiler_needs_object_CXX=yes 16817 16818 # Not sure whether something based on 16819 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16820 # would be better. 16821 output_verbose_link_cmd='func_echo_all' 16822 16823 # Archives containing C++ object files must be created using 16824 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16825 # necessary to make sure instantiated templates are included 16826 # in the archive. 16827 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16828 ;; 16829 esac 16830 ;; 16831 esac 16832 ;; 16833 16834 lynxos*) 16835 # FIXME: insert proper C++ library support 16836 ld_shlibs_CXX=no 16837 ;; 16838 16839 m88k*) 16840 # FIXME: insert proper C++ library support 16841 ld_shlibs_CXX=no 16842 ;; 16843 16844 mvs*) 16845 case $cc_basename in 16846 cxx*) 16847 # FIXME: insert proper C++ library support 16848 ld_shlibs_CXX=no 16849 ;; 16850 *) 16851 # FIXME: insert proper C++ library support 16852 ld_shlibs_CXX=no 16853 ;; 16854 esac 16855 ;; 16856 16857 *-mlibc) 16858 ld_shlibs_CXX=yes 16859 ;; 16860 16861 netbsd*) 16862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16863 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16864 wlarc= 16865 hardcode_libdir_flag_spec_CXX='-R$libdir' 16866 hardcode_direct_CXX=yes 16867 hardcode_shlibpath_var_CXX=no 16868 fi 16869 # Workaround some broken pre-1.5 toolchains 16870 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16871 ;; 16872 16873 *nto* | *qnx*) 16874 ld_shlibs_CXX=yes 16875 ;; 16876 16877 openbsd*) 16878 if test -f /usr/libexec/ld.so; then 16879 hardcode_direct_CXX=yes 16880 hardcode_shlibpath_var_CXX=no 16881 hardcode_direct_absolute_CXX=yes 16882 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16883 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 16885 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 16886 export_dynamic_flag_spec_CXX='$wl-E' 16887 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16888 fi 16889 output_verbose_link_cmd=func_echo_all 16890 else 16891 ld_shlibs_CXX=no 16892 fi 16893 ;; 16894 16895 osf3* | osf4* | osf5*) 16896 case $cc_basename in 16897 KCC*) 16898 # Kuck and Associates, Inc. (KAI) C++ Compiler 16899 16900 # KCC will only create a shared library if the output file 16901 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16902 # to its proper name (with version) after linking. 16903 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' 16904 16905 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16906 hardcode_libdir_separator_CXX=: 16907 16908 # Archives containing C++ object files must be created using 16909 # the KAI C++ compiler. 16910 case $host in 16911 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16912 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16913 esac 16914 ;; 16915 RCC*) 16916 # Rational C++ 2.4.1 16917 # FIXME: insert proper C++ library support 16918 ld_shlibs_CXX=no 16919 ;; 16920 cxx*) 16921 case $host in 16922 osf3*) 16923 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16924 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' 16925 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16926 ;; 16927 *) 16928 allow_undefined_flag_CXX=' -expect_unresolved \*' 16929 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' 16930 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16931 echo "-hidden">> $lib.exp~ 16932 $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~ 16933 $RM $lib.exp' 16934 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16935 ;; 16936 esac 16937 16938 hardcode_libdir_separator_CXX=: 16939 16940 # Commands to make compiler produce verbose output that lists 16941 # what "hidden" libraries, object files and flags are used when 16942 # linking a shared library. 16943 # 16944 # There doesn't appear to be a way to prevent this compiler from 16945 # explicitly linking system object files so we need to strip them 16946 # from the output so that they don't get included in the library 16947 # dependencies. 16948 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"' 16949 ;; 16950 *) 16951 if test yes,no = "$GXX,$with_gnu_ld"; then 16952 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16953 case $host in 16954 osf3*) 16955 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' 16956 ;; 16957 *) 16958 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' 16959 ;; 16960 esac 16961 16962 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16963 hardcode_libdir_separator_CXX=: 16964 16965 # Commands to make compiler produce verbose output that lists 16966 # what "hidden" libraries, object files and flags are used when 16967 # linking a shared library. 16968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' 16969 16970 else 16971 # FIXME: insert proper C++ library support 16972 ld_shlibs_CXX=no 16973 fi 16974 ;; 16975 esac 16976 ;; 16977 16978 psos*) 16979 # FIXME: insert proper C++ library support 16980 ld_shlibs_CXX=no 16981 ;; 16982 16983 serenity*) 16984 ;; 16985 16986 sunos4*) 16987 case $cc_basename in 16988 CC*) 16989 # Sun C++ 4.x 16990 # FIXME: insert proper C++ library support 16991 ld_shlibs_CXX=no 16992 ;; 16993 lcc*) 16994 # Lucid 16995 # FIXME: insert proper C++ library support 16996 ld_shlibs_CXX=no 16997 ;; 16998 *) 16999 # FIXME: insert proper C++ library support 17000 ld_shlibs_CXX=no 17001 ;; 17002 esac 17003 ;; 17004 17005 solaris*) 17006 case $cc_basename in 17007 CC* | sunCC*) 17008 # Sun C++ 4.2, 5.x and Centerline C++ 17009 archive_cmds_need_lc_CXX=yes 17010 no_undefined_flag_CXX=' -zdefs' 17011 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17012 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17013 $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' 17014 17015 hardcode_libdir_flag_spec_CXX='-R$libdir' 17016 hardcode_shlibpath_var_CXX=no 17017 case $host_os in 17018 solaris2.[0-5] | solaris2.[0-5].*) ;; 17019 *) 17020 # The compiler driver will combine and reorder linker options, 17021 # but understands '-z linker_flag'. 17022 # Supported since Solaris 2.6 (maybe 2.5.1?) 17023 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 17024 ;; 17025 esac 17026 link_all_deplibs_CXX=yes 17027 17028 output_verbose_link_cmd='func_echo_all' 17029 17030 # Archives containing C++ object files must be created using 17031 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17032 # necessary to make sure instantiated templates are included 17033 # in the archive. 17034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17035 ;; 17036 gcx*) 17037 # Green Hills C++ Compiler 17038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17039 17040 # The C++ compiler must be used to create the archive. 17041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 17042 ;; 17043 *) 17044 # GNU C++ compiler with Solaris linker 17045 if test yes,no = "$GXX,$with_gnu_ld"; then 17046 no_undefined_flag_CXX=' $wl-z ${wl}defs' 17047 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 17048 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17049 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17050 $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' 17051 17052 # Commands to make compiler produce verbose output that lists 17053 # what "hidden" libraries, object files and flags are used when 17054 # linking a shared library. 17055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' 17056 else 17057 # g++ 2.7 appears to require '-G' NOT '-shared' on this 17058 # platform. 17059 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17060 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17061 $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' 17062 17063 # Commands to make compiler produce verbose output that lists 17064 # what "hidden" libraries, object files and flags are used when 17065 # linking a shared library. 17066 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' 17067 fi 17068 17069 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 17070 case $host_os in 17071 solaris2.[0-5] | solaris2.[0-5].*) ;; 17072 *) 17073 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17074 ;; 17075 esac 17076 fi 17077 ;; 17078 esac 17079 ;; 17080 17081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17082 no_undefined_flag_CXX='$wl-z,text' 17083 archive_cmds_need_lc_CXX=no 17084 hardcode_shlibpath_var_CXX=no 17085 runpath_var='LD_RUN_PATH' 17086 17087 case $cc_basename in 17088 CC*) 17089 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17090 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17091 ;; 17092 *) 17093 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17094 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17095 ;; 17096 esac 17097 ;; 17098 17099 sysv5* | sco3.2v5* | sco5v6*) 17100 # Note: We CANNOT use -z defs as we might desire, because we do not 17101 # link with -lc, and that would cause any symbols used from libc to 17102 # always be unresolved, which means just about no library would 17103 # ever link correctly. If we're not using GNU ld we use -z text 17104 # though, which does catch some bad symbols but isn't as heavy-handed 17105 # as -z defs. 17106 no_undefined_flag_CXX='$wl-z,text' 17107 allow_undefined_flag_CXX='$wl-z,nodefs' 17108 archive_cmds_need_lc_CXX=no 17109 hardcode_shlibpath_var_CXX=no 17110 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 17111 hardcode_libdir_separator_CXX=':' 17112 link_all_deplibs_CXX=yes 17113 export_dynamic_flag_spec_CXX='$wl-Bexport' 17114 runpath_var='LD_RUN_PATH' 17115 17116 case $cc_basename in 17117 CC*) 17118 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17119 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17120 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 17121 '"$old_archive_cmds_CXX" 17122 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 17123 '"$reload_cmds_CXX" 17124 ;; 17125 *) 17126 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17127 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17128 ;; 17129 esac 17130 ;; 17131 17132 tandem*) 17133 case $cc_basename in 17134 NCC*) 17135 # NonStop-UX NCC 3.20 17136 # FIXME: insert proper C++ library support 17137 ld_shlibs_CXX=no 17138 ;; 17139 *) 17140 # FIXME: insert proper C++ library support 17141 ld_shlibs_CXX=no 17142 ;; 17143 esac 17144 ;; 17145 17146 vxworks*) 17147 # FIXME: insert proper C++ library support 17148 ld_shlibs_CXX=no 17149 ;; 17150 17151 *) 17152 # FIXME: insert proper C++ library support 17153 ld_shlibs_CXX=no 17154 ;; 17155 esac 17156 17157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17158printf "%s\n" "$ld_shlibs_CXX" >&6; } 17159 test no = "$ld_shlibs_CXX" && can_build_shared=no 17160 17161 GCC_CXX=$GXX 17162 LD_CXX=$LD 17163 17164 ## CAVEAT EMPTOR: 17165 ## There is no encapsulation within the following macros, do not change 17166 ## the running order or otherwise move them around unless you know exactly 17167 ## what you are doing... 17168 # Dependencies to place before and after the object being linked: 17169predep_objects_CXX= 17170postdep_objects_CXX= 17171predeps_CXX= 17172postdeps_CXX= 17173compiler_lib_search_path_CXX= 17174 17175cat > conftest.$ac_ext <<_LT_EOF 17176class Foo 17177{ 17178public: 17179 Foo (void) { a = 0; } 17180private: 17181 int a; 17182}; 17183_LT_EOF 17184 17185 17186_lt_libdeps_save_CFLAGS=$CFLAGS 17187case "$CC $CFLAGS " in #( 17188*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 17189*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 17190*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 17191esac 17192 17193if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17194 (eval $ac_compile) 2>&5 17195 ac_status=$? 17196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17197 test $ac_status = 0; }; then 17198 # Parse the compiler output and extract the necessary 17199 # objects, libraries and library flags. 17200 17201 # Sentinel used to keep track of whether or not we are before 17202 # the conftest object file. 17203 pre_test_object_deps_done=no 17204 17205 for p in `eval "$output_verbose_link_cmd"`; do 17206 case $prev$p in 17207 17208 -L* | -R* | -l*) 17209 # Some compilers place space between "-{L,R,l}" and the path. 17210 # Remove the space. 17211 if test x-L = x"$p" || 17212 test x-R = x"$p" || 17213 test x-l = x"$p"; then 17214 prev=$p 17215 continue 17216 fi 17217 17218 # Expand the sysroot to ease extracting the directories later. 17219 if test -z "$prev"; then 17220 case $p in 17221 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 17222 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 17223 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 17224 esac 17225 fi 17226 case $p in 17227 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 17228 esac 17229 if test no = "$pre_test_object_deps_done"; then 17230 case $prev in 17231 -L | -R) 17232 # Internal compiler library paths should come after those 17233 # provided the user. The postdeps already come after the 17234 # user supplied libs so there is no need to process them. 17235 if test -z "$compiler_lib_search_path_CXX"; then 17236 compiler_lib_search_path_CXX=$prev$p 17237 else 17238 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 17239 fi 17240 ;; 17241 # The "-l" case would never come before the object being 17242 # linked, so don't bother handling this case. 17243 esac 17244 else 17245 if test -z "$postdeps_CXX"; then 17246 postdeps_CXX=$prev$p 17247 else 17248 postdeps_CXX="${postdeps_CXX} $prev$p" 17249 fi 17250 fi 17251 prev= 17252 ;; 17253 17254 *.lto.$objext) ;; # Ignore GCC LTO objects 17255 *.$objext) 17256 # This assumes that the test object file only shows up 17257 # once in the compiler output. 17258 if test "$p" = "conftest.$objext"; then 17259 pre_test_object_deps_done=yes 17260 continue 17261 fi 17262 17263 if test no = "$pre_test_object_deps_done"; then 17264 if test -z "$predep_objects_CXX"; then 17265 predep_objects_CXX=$p 17266 else 17267 predep_objects_CXX="$predep_objects_CXX $p" 17268 fi 17269 else 17270 if test -z "$postdep_objects_CXX"; then 17271 postdep_objects_CXX=$p 17272 else 17273 postdep_objects_CXX="$postdep_objects_CXX $p" 17274 fi 17275 fi 17276 ;; 17277 17278 *) ;; # Ignore the rest. 17279 17280 esac 17281 done 17282 17283 # Clean up. 17284 rm -f a.out a.exe 17285else 17286 echo "libtool.m4: error: problem compiling CXX test program" 17287fi 17288 17289$RM -f confest.$objext 17290CFLAGS=$_lt_libdeps_save_CFLAGS 17291 17292# PORTME: override above test on systems where it is broken 17293case $host_os in 17294interix[3-9]*) 17295 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17296 # hack all around it, let's just trust "g++" to DTRT. 17297 predep_objects_CXX= 17298 postdep_objects_CXX= 17299 postdeps_CXX= 17300 ;; 17301esac 17302 17303 17304case " $postdeps_CXX " in 17305*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17306esac 17307 compiler_lib_search_dirs_CXX= 17308if test -n "${compiler_lib_search_path_CXX}"; then 17309 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 17310fi 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 lt_prog_compiler_wl_CXX= 17343lt_prog_compiler_pic_CXX= 17344lt_prog_compiler_static_CXX= 17345 17346 17347 # C++ specific cases for pic, static, wl, etc. 17348 if test yes = "$GXX"; then 17349 lt_prog_compiler_wl_CXX='-Wl,' 17350 lt_prog_compiler_static_CXX='-static' 17351 17352 case $host_os in 17353 aix*) 17354 # All AIX code is PIC. 17355 if test ia64 = "$host_cpu"; then 17356 # AIX 5 now supports IA64 processor 17357 lt_prog_compiler_static_CXX='-Bstatic' 17358 fi 17359 lt_prog_compiler_pic_CXX='-fPIC' 17360 ;; 17361 17362 amigaos*) 17363 case $host_cpu in 17364 powerpc) 17365 # see comment about AmigaOS4 .so support 17366 lt_prog_compiler_pic_CXX='-fPIC' 17367 ;; 17368 m68k) 17369 # FIXME: we need at least 68020 code to build shared libraries, but 17370 # adding the '-m68020' flag to GCC prevents building anything better, 17371 # like '-m68040'. 17372 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17373 ;; 17374 esac 17375 ;; 17376 17377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17378 # PIC is the default for these OSes. 17379 ;; 17380 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) 17381 # This hack is so that the source file can tell whether it is being 17382 # built for inclusion in a dll (and should export symbols for example). 17383 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17384 # (--disable-auto-import) libraries 17385 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17386 case $host_os in 17387 os2*) 17388 lt_prog_compiler_static_CXX='$wl-static' 17389 ;; 17390 esac 17391 ;; 17392 darwin* | rhapsody*) 17393 # PIC is the default on this platform 17394 # Common symbols not allowed in MH_DYLIB files 17395 lt_prog_compiler_pic_CXX='-fno-common' 17396 ;; 17397 *djgpp*) 17398 # DJGPP does not support shared libraries at all 17399 lt_prog_compiler_pic_CXX= 17400 ;; 17401 haiku*) 17402 # PIC is the default for Haiku. 17403 # The "-static" flag exists, but is broken. 17404 lt_prog_compiler_static_CXX= 17405 ;; 17406 interix[3-9]*) 17407 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17408 # Instead, we relocate shared libraries at runtime. 17409 ;; 17410 sysv4*MP*) 17411 if test -d /usr/nec; then 17412 lt_prog_compiler_pic_CXX=-Kconform_pic 17413 fi 17414 ;; 17415 hpux*) 17416 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17417 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17418 # sets the default TLS model and affects inlining. 17419 case $host_cpu in 17420 hppa*64*) 17421 ;; 17422 *) 17423 lt_prog_compiler_pic_CXX='-fPIC' 17424 ;; 17425 esac 17426 ;; 17427 *qnx* | *nto*) 17428 # QNX uses GNU C++, but need to define -shared option too, otherwise 17429 # it will coredump. 17430 lt_prog_compiler_pic_CXX='-fPIC -shared' 17431 ;; 17432 *) 17433 lt_prog_compiler_pic_CXX='-fPIC' 17434 ;; 17435 esac 17436 else 17437 case $host_os in 17438 aix[4-9]*) 17439 # All AIX code is PIC. 17440 if test ia64 = "$host_cpu"; then 17441 # AIX 5 now supports IA64 processor 17442 lt_prog_compiler_static_CXX='-Bstatic' 17443 else 17444 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17445 fi 17446 ;; 17447 chorus*) 17448 case $cc_basename in 17449 cxch68*) 17450 # Green Hills C++ Compiler 17451 # _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" 17452 ;; 17453 esac 17454 ;; 17455 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) 17456 # This hack is so that the source file can tell whether it is being 17457 # built for inclusion in a dll (and should export symbols for example). 17458 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17459 ;; 17460 dgux*) 17461 case $cc_basename in 17462 ec++*) 17463 lt_prog_compiler_pic_CXX='-KPIC' 17464 ;; 17465 ghcx*) 17466 # Green Hills C++ Compiler 17467 lt_prog_compiler_pic_CXX='-pic' 17468 ;; 17469 *) 17470 ;; 17471 esac 17472 ;; 17473 freebsd* | dragonfly* | midnightbsd*) 17474 # FreeBSD uses GNU C++ 17475 ;; 17476 hpux9* | hpux10* | hpux11*) 17477 case $cc_basename in 17478 CC*) 17479 lt_prog_compiler_wl_CXX='-Wl,' 17480 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17481 if test ia64 != "$host_cpu"; then 17482 lt_prog_compiler_pic_CXX='+Z' 17483 fi 17484 ;; 17485 aCC*) 17486 lt_prog_compiler_wl_CXX='-Wl,' 17487 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17488 case $host_cpu in 17489 hppa*64*|ia64*) 17490 # +Z the default 17491 ;; 17492 *) 17493 lt_prog_compiler_pic_CXX='+Z' 17494 ;; 17495 esac 17496 ;; 17497 *) 17498 ;; 17499 esac 17500 ;; 17501 interix*) 17502 # This is c89, which is MS Visual C++ (no shared libs) 17503 # Anyone wants to do a port? 17504 ;; 17505 irix5* | irix6* | nonstopux*) 17506 case $cc_basename in 17507 CC*) 17508 lt_prog_compiler_wl_CXX='-Wl,' 17509 lt_prog_compiler_static_CXX='-non_shared' 17510 # CC pic flag -KPIC is the default. 17511 ;; 17512 *) 17513 ;; 17514 esac 17515 ;; 17516 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17517 case $cc_basename in 17518 KCC*) 17519 # KAI C++ Compiler 17520 lt_prog_compiler_wl_CXX='--backend -Wl,' 17521 lt_prog_compiler_pic_CXX='-fPIC' 17522 ;; 17523 ecpc* ) 17524 # old Intel C++ for x86_64, which still supported -KPIC. 17525 lt_prog_compiler_wl_CXX='-Wl,' 17526 lt_prog_compiler_pic_CXX='-KPIC' 17527 lt_prog_compiler_static_CXX='-static' 17528 ;; 17529 icpc* ) 17530 # Intel C++, used to be incompatible with GCC. 17531 # ICC 10 doesn't accept -KPIC any more. 17532 lt_prog_compiler_wl_CXX='-Wl,' 17533 lt_prog_compiler_pic_CXX='-fPIC' 17534 lt_prog_compiler_static_CXX='-static' 17535 ;; 17536 pgCC* | pgcpp*) 17537 # Portland Group C++ compiler 17538 lt_prog_compiler_wl_CXX='-Wl,' 17539 lt_prog_compiler_pic_CXX='-fpic' 17540 lt_prog_compiler_static_CXX='-Bstatic' 17541 ;; 17542 cxx*) 17543 # Compaq C++ 17544 # Make sure the PIC flag is empty. It appears that all Alpha 17545 # Linux and Compaq Tru64 Unix objects are PIC. 17546 lt_prog_compiler_pic_CXX= 17547 lt_prog_compiler_static_CXX='-non_shared' 17548 ;; 17549 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17550 # IBM XL 8.0, 9.0 on PPC and BlueGene 17551 lt_prog_compiler_wl_CXX='-Wl,' 17552 lt_prog_compiler_pic_CXX='-qpic' 17553 lt_prog_compiler_static_CXX='-qstaticlink' 17554 ;; 17555 *) 17556 case `$CC -V 2>&1 | $SED 5q` in 17557 *Sun\ C*) 17558 # Sun C++ 5.9 17559 lt_prog_compiler_pic_CXX='-KPIC' 17560 lt_prog_compiler_static_CXX='-Bstatic' 17561 lt_prog_compiler_wl_CXX='-Qoption ld ' 17562 ;; 17563 esac 17564 ;; 17565 esac 17566 ;; 17567 lynxos*) 17568 ;; 17569 m88k*) 17570 ;; 17571 mvs*) 17572 case $cc_basename in 17573 cxx*) 17574 lt_prog_compiler_pic_CXX='-W c,exportall' 17575 ;; 17576 *) 17577 ;; 17578 esac 17579 ;; 17580 netbsd* | netbsdelf*-gnu) 17581 ;; 17582 *-mlibc) 17583 ;; 17584 *qnx* | *nto*) 17585 # QNX uses GNU C++, but need to define -shared option too, otherwise 17586 # it will coredump. 17587 lt_prog_compiler_pic_CXX='-fPIC -shared' 17588 ;; 17589 osf3* | osf4* | osf5*) 17590 case $cc_basename in 17591 KCC*) 17592 lt_prog_compiler_wl_CXX='--backend -Wl,' 17593 ;; 17594 RCC*) 17595 # Rational C++ 2.4.1 17596 lt_prog_compiler_pic_CXX='-pic' 17597 ;; 17598 cxx*) 17599 # Digital/Compaq C++ 17600 lt_prog_compiler_wl_CXX='-Wl,' 17601 # Make sure the PIC flag is empty. It appears that all Alpha 17602 # Linux and Compaq Tru64 Unix objects are PIC. 17603 lt_prog_compiler_pic_CXX= 17604 lt_prog_compiler_static_CXX='-non_shared' 17605 ;; 17606 *) 17607 ;; 17608 esac 17609 ;; 17610 psos*) 17611 ;; 17612 serenity*) 17613 ;; 17614 solaris*) 17615 case $cc_basename in 17616 CC* | sunCC*) 17617 # Sun C++ 4.2, 5.x and Centerline C++ 17618 lt_prog_compiler_pic_CXX='-KPIC' 17619 lt_prog_compiler_static_CXX='-Bstatic' 17620 lt_prog_compiler_wl_CXX='-Qoption ld ' 17621 ;; 17622 gcx*) 17623 # Green Hills C++ Compiler 17624 lt_prog_compiler_pic_CXX='-PIC' 17625 ;; 17626 *) 17627 ;; 17628 esac 17629 ;; 17630 sunos4*) 17631 case $cc_basename in 17632 CC*) 17633 # Sun C++ 4.x 17634 lt_prog_compiler_pic_CXX='-pic' 17635 lt_prog_compiler_static_CXX='-Bstatic' 17636 ;; 17637 lcc*) 17638 # Lucid 17639 lt_prog_compiler_pic_CXX='-pic' 17640 ;; 17641 *) 17642 ;; 17643 esac 17644 ;; 17645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17646 case $cc_basename in 17647 CC*) 17648 lt_prog_compiler_wl_CXX='-Wl,' 17649 lt_prog_compiler_pic_CXX='-KPIC' 17650 lt_prog_compiler_static_CXX='-Bstatic' 17651 ;; 17652 esac 17653 ;; 17654 tandem*) 17655 case $cc_basename in 17656 NCC*) 17657 # NonStop-UX NCC 3.20 17658 lt_prog_compiler_pic_CXX='-KPIC' 17659 ;; 17660 *) 17661 ;; 17662 esac 17663 ;; 17664 vxworks*) 17665 ;; 17666 *) 17667 lt_prog_compiler_can_build_shared_CXX=no 17668 ;; 17669 esac 17670 fi 17671 17672case $host_os in 17673 # For platforms that do not support PIC, -DPIC is meaningless: 17674 *djgpp*) 17675 lt_prog_compiler_pic_CXX= 17676 ;; 17677 *) 17678 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17679 ;; 17680esac 17681 17682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17683printf %s "checking for $compiler option to produce PIC... " >&6; } 17684if test ${lt_cv_prog_compiler_pic_CXX+y} 17685then : 17686 printf %s "(cached) " >&6 17687else case e in #( 17688 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; 17689esac 17690fi 17691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17692printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 17693lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17694 17695# 17696# Check to make sure the PIC flag actually works. 17697# 17698if test -n "$lt_prog_compiler_pic_CXX"; then 17699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17700printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17701if test ${lt_cv_prog_compiler_pic_works_CXX+y} 17702then : 17703 printf %s "(cached) " >&6 17704else case e in #( 17705 e) lt_cv_prog_compiler_pic_works_CXX=no 17706 ac_outfile=conftest.$ac_objext 17707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17708 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17709 # Insert the option either (1) after the last *FLAGS variable, or 17710 # (2) before a word containing "conftest.", or (3) at the end. 17711 # Note that $ac_compile itself does not contain backslashes and begins 17712 # with a dollar sign (not a hyphen), so the echo should work correctly. 17713 # The option is referenced via a variable to avoid confusing sed. 17714 lt_compile=`echo "$ac_compile" | $SED \ 17715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17717 -e 's:$: $lt_compiler_flag:'` 17718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17719 (eval "$lt_compile" 2>conftest.err) 17720 ac_status=$? 17721 cat conftest.err >&5 17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17723 if (exit $ac_status) && test -s "$ac_outfile"; then 17724 # The compiler can only warn and ignore the option if not recognized 17725 # So say no if there are warnings other than the usual output. 17726 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17729 lt_cv_prog_compiler_pic_works_CXX=yes 17730 fi 17731 fi 17732 $RM conftest* 17733 ;; 17734esac 17735fi 17736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17737printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17738 17739if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17740 case $lt_prog_compiler_pic_CXX in 17741 "" | " "*) ;; 17742 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17743 esac 17744else 17745 lt_prog_compiler_pic_CXX= 17746 lt_prog_compiler_can_build_shared_CXX=no 17747fi 17748 17749fi 17750 17751 17752 17753 17754 17755# 17756# Check to make sure the static flag actually works. 17757# 17758wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17760printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17761if test ${lt_cv_prog_compiler_static_works_CXX+y} 17762then : 17763 printf %s "(cached) " >&6 17764else case e in #( 17765 e) lt_cv_prog_compiler_static_works_CXX=no 17766 save_LDFLAGS=$LDFLAGS 17767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17768 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17770 # The linker can only warn and ignore the option if not recognized 17771 # So say no if there are warnings 17772 if test -s conftest.err; then 17773 # Append any errors to the config.log. 17774 cat conftest.err 1>&5 17775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17777 if diff conftest.exp conftest.er2 >/dev/null; then 17778 lt_cv_prog_compiler_static_works_CXX=yes 17779 fi 17780 else 17781 lt_cv_prog_compiler_static_works_CXX=yes 17782 fi 17783 fi 17784 $RM -r conftest* 17785 LDFLAGS=$save_LDFLAGS 17786 ;; 17787esac 17788fi 17789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17790printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17791 17792if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17793 : 17794else 17795 lt_prog_compiler_static_CXX= 17796fi 17797 17798 17799 17800 17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17802printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17803if test ${lt_cv_prog_compiler_c_o_CXX+y} 17804then : 17805 printf %s "(cached) " >&6 17806else case e in #( 17807 e) lt_cv_prog_compiler_c_o_CXX=no 17808 $RM -r conftest 2>/dev/null 17809 mkdir conftest 17810 cd conftest 17811 mkdir out 17812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17813 17814 lt_compiler_flag="-o out/conftest2.$ac_objext" 17815 # Insert the option either (1) after the last *FLAGS variable, or 17816 # (2) before a word containing "conftest.", or (3) at the end. 17817 # Note that $ac_compile itself does not contain backslashes and begins 17818 # with a dollar sign (not a hyphen), so the echo should work correctly. 17819 lt_compile=`echo "$ac_compile" | $SED \ 17820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17822 -e 's:$: $lt_compiler_flag:'` 17823 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17824 (eval "$lt_compile" 2>out/conftest.err) 17825 ac_status=$? 17826 cat out/conftest.err >&5 17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17828 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17829 then 17830 # The compiler can only warn and ignore the option if not recognized 17831 # So say no if there are warnings 17832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17835 lt_cv_prog_compiler_c_o_CXX=yes 17836 fi 17837 fi 17838 chmod u+w . 2>&5 17839 $RM conftest* 17840 # SGI C++ compiler will create directory out/ii_files/ for 17841 # template instantiation 17842 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17843 $RM out/* && rmdir out 17844 cd .. 17845 $RM -r conftest 17846 $RM conftest* 17847 ;; 17848esac 17849fi 17850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17851printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17852 17853 17854 17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17856printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17857if test ${lt_cv_prog_compiler_c_o_CXX+y} 17858then : 17859 printf %s "(cached) " >&6 17860else case e in #( 17861 e) lt_cv_prog_compiler_c_o_CXX=no 17862 $RM -r conftest 2>/dev/null 17863 mkdir conftest 17864 cd conftest 17865 mkdir out 17866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17867 17868 lt_compiler_flag="-o out/conftest2.$ac_objext" 17869 # Insert the option either (1) after the last *FLAGS variable, or 17870 # (2) before a word containing "conftest.", or (3) at the end. 17871 # Note that $ac_compile itself does not contain backslashes and begins 17872 # with a dollar sign (not a hyphen), so the echo should work correctly. 17873 lt_compile=`echo "$ac_compile" | $SED \ 17874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17876 -e 's:$: $lt_compiler_flag:'` 17877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17878 (eval "$lt_compile" 2>out/conftest.err) 17879 ac_status=$? 17880 cat out/conftest.err >&5 17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17882 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17883 then 17884 # The compiler can only warn and ignore the option if not recognized 17885 # So say no if there are warnings 17886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17889 lt_cv_prog_compiler_c_o_CXX=yes 17890 fi 17891 fi 17892 chmod u+w . 2>&5 17893 $RM conftest* 17894 # SGI C++ compiler will create directory out/ii_files/ for 17895 # template instantiation 17896 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17897 $RM out/* && rmdir out 17898 cd .. 17899 $RM -r conftest 17900 $RM conftest* 17901 ;; 17902esac 17903fi 17904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17905printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17906 17907 17908 17909 17910hard_links=nottested 17911if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 17912 # do not overwrite the value of need_locks provided by the user 17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17914printf %s "checking if we can lock with hard links... " >&6; } 17915 hard_links=yes 17916 $RM conftest* 17917 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17918 touch conftest.a 17919 ln conftest.a conftest.b 2>&5 || hard_links=no 17920 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17922printf "%s\n" "$hard_links" >&6; } 17923 if test no = "$hard_links"; then 17924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17925printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17926 need_locks=warn 17927 fi 17928else 17929 need_locks=no 17930fi 17931 17932 17933 17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17935printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17936 17937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17938 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17939 case $host_os in 17940 aix[4-9]*) 17941 # If we're using GNU nm, then we don't want the "-C" option. 17942 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17943 # Without the "-l" option, or with the "-B" option, AIX nm treats 17944 # weak defined symbols like other global defined symbols, whereas 17945 # GNU nm marks them as "W". 17946 # While the 'weak' keyword is ignored in the Export File, we need 17947 # it in the Import File for the 'aix-soname' feature, so we have 17948 # to replace the "-B" option with "-P" for AIX nm. 17949 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17950 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' 17951 else 17952 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 == "L") || (\$ 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' 17953 fi 17954 ;; 17955 pw32*) 17956 export_symbols_cmds_CXX=$ltdll_cmds 17957 ;; 17958 cygwin* | mingw* | windows* | cegcc*) 17959 case $cc_basename in 17960 cl* | icl*) 17961 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17962 ;; 17963 *) 17964 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' 17965 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17966 ;; 17967 esac 17968 ;; 17969 *) 17970 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17971 ;; 17972 esac 17973 17974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17975printf "%s\n" "$ld_shlibs_CXX" >&6; } 17976test no = "$ld_shlibs_CXX" && can_build_shared=no 17977 17978with_gnu_ld_CXX=$with_gnu_ld 17979 17980 17981 17982 17983 17984 17985# 17986# Do we need to explicitly link libc? 17987# 17988case "x$archive_cmds_need_lc_CXX" in 17989x|xyes) 17990 # Assume -lc should be added 17991 archive_cmds_need_lc_CXX=yes 17992 17993 if test yes,yes = "$GCC,$enable_shared"; then 17994 case $archive_cmds_CXX in 17995 *'~'*) 17996 # FIXME: we may have to deal with multi-command sequences. 17997 ;; 17998 '$CC '*) 17999 # Test whether the compiler implicitly links with -lc since on some 18000 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18001 # to ld, don't add -lc before -lgcc. 18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18003printf %s "checking whether -lc should be explicitly linked in... " >&6; } 18004if test ${lt_cv_archive_cmds_need_lc_CXX+y} 18005then : 18006 printf %s "(cached) " >&6 18007else case e in #( 18008 e) $RM conftest* 18009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18010 18011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18012 (eval $ac_compile) 2>&5 18013 ac_status=$? 18014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18015 test $ac_status = 0; } 2>conftest.err; then 18016 soname=conftest 18017 lib=conftest 18018 libobjs=conftest.$ac_objext 18019 deplibs= 18020 wl=$lt_prog_compiler_wl_CXX 18021 pic_flag=$lt_prog_compiler_pic_CXX 18022 compiler_flags=-v 18023 linker_flags=-v 18024 verstring= 18025 output_objdir=. 18026 libname=conftest 18027 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 18028 allow_undefined_flag_CXX= 18029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18030 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18031 ac_status=$? 18032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18033 test $ac_status = 0; } 18034 then 18035 lt_cv_archive_cmds_need_lc_CXX=no 18036 else 18037 lt_cv_archive_cmds_need_lc_CXX=yes 18038 fi 18039 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 18040 else 18041 cat conftest.err 1>&5 18042 fi 18043 $RM conftest* 18044 ;; 18045esac 18046fi 18047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 18048printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 18049 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 18050 ;; 18051 esac 18052 fi 18053 ;; 18054esac 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18118printf %s "checking dynamic linker characteristics... " >&6; } 18119 18120library_names_spec= 18121libname_spec='lib$name' 18122soname_spec= 18123shrext_cmds=.so 18124postinstall_cmds= 18125postuninstall_cmds= 18126finish_cmds= 18127finish_eval= 18128shlibpath_var= 18129shlibpath_overrides_runpath=unknown 18130version_type=none 18131dynamic_linker="$host_os ld.so" 18132sys_lib_dlsearch_path_spec="/lib /usr/lib" 18133need_lib_prefix=unknown 18134hardcode_into_libs=no 18135 18136# when you set need_version to no, make sure it does not cause -set_version 18137# flags to be left without arguments 18138need_version=unknown 18139 18140 18141 18142case $host_os in 18143aix3*) 18144 version_type=linux # correct to gnu/linux during the next big refactor 18145 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18146 shlibpath_var=LIBPATH 18147 18148 # AIX 3 has no versioning support, so we append a major version to the name. 18149 soname_spec='$libname$release$shared_ext$major' 18150 ;; 18151 18152aix[4-9]*) 18153 version_type=linux # correct to gnu/linux during the next big refactor 18154 need_lib_prefix=no 18155 need_version=no 18156 hardcode_into_libs=yes 18157 if test ia64 = "$host_cpu"; then 18158 # AIX 5 supports IA64 18159 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18160 shlibpath_var=LD_LIBRARY_PATH 18161 else 18162 # With GCC up to 2.95.x, collect2 would create an import file 18163 # for dependence libraries. The import file would start with 18164 # the line '#! .'. This would cause the generated library to 18165 # depend on '.', always an invalid library. This was fixed in 18166 # development snapshots of GCC prior to 3.0. 18167 case $host_os in 18168 aix4 | aix4.[01] | aix4.[01].*) 18169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18170 echo ' yes ' 18171 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18172 : 18173 else 18174 can_build_shared=no 18175 fi 18176 ;; 18177 esac 18178 # Using Import Files as archive members, it is possible to support 18179 # filename-based versioning of shared library archives on AIX. While 18180 # this would work for both with and without runtime linking, it will 18181 # prevent static linking of such archives. So we do filename-based 18182 # shared library versioning with .so extension only, which is used 18183 # when both runtime linking and shared linking is enabled. 18184 # Unfortunately, runtime linking may impact performance, so we do 18185 # not want this to be the default eventually. Also, we use the 18186 # versioned .so libs for executables only if there is the -brtl 18187 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 18188 # To allow for filename-based versioning support, we need to create 18189 # libNAME.so.V as an archive file, containing: 18190 # *) an Import File, referring to the versioned filename of the 18191 # archive as well as the shared archive member, telling the 18192 # bitwidth (32 or 64) of that shared object, and providing the 18193 # list of exported symbols of that shared object, eventually 18194 # decorated with the 'weak' keyword 18195 # *) the shared object with the F_LOADONLY flag set, to really avoid 18196 # it being seen by the linker. 18197 # At run time we better use the real file rather than another symlink, 18198 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18199 18200 case $with_aix_soname,$aix_use_runtimelinking in 18201 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18202 # soname into executable. Probably we can add versioning support to 18203 # collect2, so additional links can be useful in future. 18204 aix,yes) # traditional libtool 18205 dynamic_linker='AIX unversionable lib.so' 18206 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18207 # instead of lib<name>.a to let people know that these are not 18208 # typical AIX shared libraries. 18209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18210 ;; 18211 aix,no) # traditional AIX only 18212 dynamic_linker='AIX lib.a(lib.so.V)' 18213 # We preserve .a as extension for shared libraries through AIX4.2 18214 # and later when we are not doing run time linking. 18215 library_names_spec='$libname$release.a $libname.a' 18216 soname_spec='$libname$release$shared_ext$major' 18217 ;; 18218 svr4,*) # full svr4 only 18219 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18220 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18221 # We do not specify a path in Import Files, so LIBPATH fires. 18222 shlibpath_overrides_runpath=yes 18223 ;; 18224 *,yes) # both, prefer svr4 18225 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18226 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18227 # unpreferred sharedlib libNAME.a needs extra handling 18228 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"' 18229 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"' 18230 # We do not specify a path in Import Files, so LIBPATH fires. 18231 shlibpath_overrides_runpath=yes 18232 ;; 18233 *,no) # both, prefer aix 18234 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18235 library_names_spec='$libname$release.a $libname.a' 18236 soname_spec='$libname$release$shared_ext$major' 18237 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18238 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)' 18239 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"' 18240 ;; 18241 esac 18242 shlibpath_var=LIBPATH 18243 fi 18244 ;; 18245 18246amigaos*) 18247 case $host_cpu in 18248 powerpc) 18249 # Since July 2007 AmigaOS4 officially supports .so libraries. 18250 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18252 ;; 18253 m68k) 18254 library_names_spec='$libname.ixlibrary $libname.a' 18255 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18256 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' 18257 ;; 18258 esac 18259 ;; 18260 18261beos*) 18262 library_names_spec='$libname$shared_ext' 18263 dynamic_linker="$host_os ld.so" 18264 shlibpath_var=LIBRARY_PATH 18265 ;; 18266 18267bsdi[45]*) 18268 version_type=linux # correct to gnu/linux during the next big refactor 18269 need_version=no 18270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18271 soname_spec='$libname$release$shared_ext$major' 18272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18273 shlibpath_var=LD_LIBRARY_PATH 18274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18276 # the default ld.so.conf also contains /usr/contrib/lib and 18277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18278 # libtool to hard-code these into programs 18279 ;; 18280 18281cygwin* | mingw* | windows* | pw32* | cegcc*) 18282 version_type=windows 18283 shrext_cmds=.dll 18284 need_version=no 18285 need_lib_prefix=no 18286 18287 case $GCC,$cc_basename in 18288 yes,*) 18289 # gcc 18290 library_names_spec='$libname.dll.a' 18291 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18292 # If user builds GCC with multilib enabled, 18293 # it should just install on $(libdir) 18294 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 18295 if test xyes = x"$multilib"; then 18296 postinstall_cmds='base_file=`basename \$file`~ 18297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18298 dldir=$destdir/`dirname \$dlpath`~ 18299 $install_prog $dir/$dlname $destdir/$dlname~ 18300 chmod a+x $destdir/$dlname~ 18301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18302 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 18303 fi' 18304 else 18305 postinstall_cmds='base_file=`basename \$file`~ 18306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18307 dldir=$destdir/`dirname \$dlpath`~ 18308 test -d \$dldir || mkdir -p \$dldir~ 18309 $install_prog $dir/$dlname \$dldir/$dlname~ 18310 chmod a+x \$dldir/$dlname~ 18311 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18312 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18313 fi' 18314 fi 18315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18316 dlpath=$dir/\$dldll~ 18317 $RM \$dlpath' 18318 shlibpath_overrides_runpath=yes 18319 18320 case $host_os in 18321 cygwin*) 18322 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18323 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18324 18325 ;; 18326 mingw* | windows* | cegcc*) 18327 # MinGW DLLs use traditional 'lib' prefix 18328 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18329 ;; 18330 pw32*) 18331 # pw32 DLLs use 'pw' prefix rather than 'lib' 18332 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18333 ;; 18334 esac 18335 dynamic_linker='Win32 ld.exe' 18336 ;; 18337 18338 *,cl* | *,icl*) 18339 # Native MSVC or ICC 18340 libname_spec='$name' 18341 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18342 library_names_spec='$libname.dll.lib' 18343 18344 case $build_os in 18345 mingw* | windows*) 18346 sys_lib_search_path_spec= 18347 lt_save_ifs=$IFS 18348 IFS=';' 18349 for lt_path in $LIB 18350 do 18351 IFS=$lt_save_ifs 18352 # Let DOS variable expansion print the short 8.3 style file name. 18353 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18354 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18355 done 18356 IFS=$lt_save_ifs 18357 # Convert to MSYS style. 18358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18359 ;; 18360 cygwin*) 18361 # Convert to unix form, then to dos form, then back to unix form 18362 # but this time dos style (no spaces!) so that the unix form looks 18363 # like /cygdrive/c/PROGRA~1:/cygdr... 18364 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18365 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18366 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18367 ;; 18368 *) 18369 sys_lib_search_path_spec=$LIB 18370 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18371 # It is most probably a Windows format PATH. 18372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18373 else 18374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18375 fi 18376 # FIXME: find the short name or the path components, as spaces are 18377 # common. (e.g. "Program Files" -> "PROGRA~1") 18378 ;; 18379 esac 18380 18381 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18382 postinstall_cmds='base_file=`basename \$file`~ 18383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18384 dldir=$destdir/`dirname \$dlpath`~ 18385 test -d \$dldir || mkdir -p \$dldir~ 18386 $install_prog $dir/$dlname \$dldir/$dlname' 18387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18388 dlpath=$dir/\$dldll~ 18389 $RM \$dlpath' 18390 shlibpath_overrides_runpath=yes 18391 dynamic_linker='Win32 link.exe' 18392 ;; 18393 18394 *) 18395 # Assume MSVC and ICC wrapper 18396 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18397 dynamic_linker='Win32 ld.exe' 18398 ;; 18399 esac 18400 # FIXME: first we should search . and the directory the executable is in 18401 shlibpath_var=PATH 18402 ;; 18403 18404darwin* | rhapsody*) 18405 dynamic_linker="$host_os dyld" 18406 version_type=darwin 18407 need_lib_prefix=no 18408 need_version=no 18409 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18410 soname_spec='$libname$release$major$shared_ext' 18411 shlibpath_overrides_runpath=yes 18412 shlibpath_var=DYLD_LIBRARY_PATH 18413 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18414 18415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18416 ;; 18417 18418dgux*) 18419 version_type=linux # correct to gnu/linux during the next big refactor 18420 need_lib_prefix=no 18421 need_version=no 18422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18423 soname_spec='$libname$release$shared_ext$major' 18424 shlibpath_var=LD_LIBRARY_PATH 18425 ;; 18426 18427freebsd* | dragonfly* | midnightbsd*) 18428 # DragonFly does not have aout. When/if they implement a new 18429 # versioning mechanism, adjust this. 18430 if test -x /usr/bin/objformat; then 18431 objformat=`/usr/bin/objformat` 18432 else 18433 case $host_os in 18434 freebsd[23].*) objformat=aout ;; 18435 *) objformat=elf ;; 18436 esac 18437 fi 18438 version_type=freebsd-$objformat 18439 case $version_type in 18440 freebsd-elf*) 18441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18442 soname_spec='$libname$release$shared_ext$major' 18443 need_version=no 18444 need_lib_prefix=no 18445 ;; 18446 freebsd-*) 18447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18448 need_version=yes 18449 ;; 18450 esac 18451 case $host_cpu in 18452 powerpc64) 18453 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 18454 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18456/* end confdefs.h. */ 18457int test_pointer_size[sizeof (void *) - 5]; 18458 18459_ACEOF 18460if ac_fn_cxx_try_compile "$LINENO" 18461then : 18462 shlibpath_var=LD_LIBRARY_PATH 18463else case e in #( 18464 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 18465esac 18466fi 18467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18468 ;; 18469 *) 18470 shlibpath_var=LD_LIBRARY_PATH 18471 ;; 18472 esac 18473 case $host_os in 18474 freebsd2.*) 18475 shlibpath_overrides_runpath=yes 18476 ;; 18477 freebsd3.[01]* | freebsdelf3.[01]*) 18478 shlibpath_overrides_runpath=yes 18479 hardcode_into_libs=yes 18480 ;; 18481 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18482 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18483 shlibpath_overrides_runpath=no 18484 hardcode_into_libs=yes 18485 ;; 18486 *) # from 4.6 on, and DragonFly 18487 shlibpath_overrides_runpath=yes 18488 hardcode_into_libs=yes 18489 ;; 18490 esac 18491 ;; 18492 18493haiku*) 18494 version_type=linux # correct to gnu/linux during the next big refactor 18495 need_lib_prefix=no 18496 need_version=no 18497 dynamic_linker="$host_os runtime_loader" 18498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18499 soname_spec='$libname$release$shared_ext$major' 18500 shlibpath_var=LIBRARY_PATH 18501 shlibpath_overrides_runpath=no 18502 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 18503 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 18504 hardcode_into_libs=no 18505 ;; 18506 18507hpux9* | hpux10* | hpux11*) 18508 # Give a soname corresponding to the major version so that dld.sl refuses to 18509 # link against other versions. 18510 version_type=sunos 18511 need_lib_prefix=no 18512 need_version=no 18513 case $host_cpu in 18514 ia64*) 18515 shrext_cmds='.so' 18516 hardcode_into_libs=yes 18517 dynamic_linker="$host_os dld.so" 18518 shlibpath_var=LD_LIBRARY_PATH 18519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18521 soname_spec='$libname$release$shared_ext$major' 18522 if test 32 = "$HPUX_IA64_MODE"; then 18523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18524 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18525 else 18526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18527 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18528 fi 18529 ;; 18530 hppa*64*) 18531 shrext_cmds='.sl' 18532 hardcode_into_libs=yes 18533 dynamic_linker="$host_os dld.sl" 18534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18537 soname_spec='$libname$release$shared_ext$major' 18538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18540 ;; 18541 *) 18542 shrext_cmds='.sl' 18543 dynamic_linker="$host_os dld.sl" 18544 shlibpath_var=SHLIB_PATH 18545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18547 soname_spec='$libname$release$shared_ext$major' 18548 ;; 18549 esac 18550 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18551 postinstall_cmds='chmod 555 $lib' 18552 # or fails outright, so override atomically: 18553 install_override_mode=555 18554 ;; 18555 18556interix[3-9]*) 18557 version_type=linux # correct to gnu/linux during the next big refactor 18558 need_lib_prefix=no 18559 need_version=no 18560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18561 soname_spec='$libname$release$shared_ext$major' 18562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18563 shlibpath_var=LD_LIBRARY_PATH 18564 shlibpath_overrides_runpath=no 18565 hardcode_into_libs=yes 18566 ;; 18567 18568irix5* | irix6* | nonstopux*) 18569 case $host_os in 18570 nonstopux*) version_type=nonstopux ;; 18571 *) 18572 if test yes = "$lt_cv_prog_gnu_ld"; then 18573 version_type=linux # correct to gnu/linux during the next big refactor 18574 else 18575 version_type=irix 18576 fi ;; 18577 esac 18578 need_lib_prefix=no 18579 need_version=no 18580 soname_spec='$libname$release$shared_ext$major' 18581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18582 case $host_os in 18583 irix5* | nonstopux*) 18584 libsuff= shlibsuff= 18585 ;; 18586 *) 18587 case $LD in # libtool.m4 will add one of these switches to LD 18588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18589 libsuff= shlibsuff= libmagic=32-bit;; 18590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18591 libsuff=32 shlibsuff=N32 libmagic=N32;; 18592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18593 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18594 *) libsuff= shlibsuff= libmagic=never-match;; 18595 esac 18596 ;; 18597 esac 18598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18599 shlibpath_overrides_runpath=no 18600 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18601 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18602 hardcode_into_libs=yes 18603 ;; 18604 18605# No shared lib support for Linux oldld, aout, or coff. 18606linux*oldld* | linux*aout* | linux*coff*) 18607 dynamic_linker=no 18608 ;; 18609 18610linux*android*) 18611 version_type=none # Android doesn't support versioned libraries. 18612 need_lib_prefix=no 18613 need_version=no 18614 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 18615 soname_spec='$libname$release$shared_ext' 18616 finish_cmds= 18617 shlibpath_var=LD_LIBRARY_PATH 18618 shlibpath_overrides_runpath=yes 18619 18620 # This implies no fast_install, which is unacceptable. 18621 # Some rework will be needed to allow for fast_install 18622 # before this can be enabled. 18623 hardcode_into_libs=yes 18624 18625 dynamic_linker='Android linker' 18626 # -rpath works at least for libraries that are not overridden by 18627 # libraries installed in system locations. 18628 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18629 ;; 18630 18631# This must be glibc/ELF. 18632linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18633 version_type=linux # correct to gnu/linux during the next big refactor 18634 need_lib_prefix=no 18635 need_version=no 18636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18637 soname_spec='$libname$release$shared_ext$major' 18638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18639 shlibpath_var=LD_LIBRARY_PATH 18640 shlibpath_overrides_runpath=no 18641 18642 # Some binutils ld are patched to set DT_RUNPATH 18643 if test ${lt_cv_shlibpath_overrides_runpath+y} 18644then : 18645 printf %s "(cached) " >&6 18646else case e in #( 18647 e) lt_cv_shlibpath_overrides_runpath=no 18648 save_LDFLAGS=$LDFLAGS 18649 save_libdir=$libdir 18650 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18651 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18653/* end confdefs.h. */ 18654 18655int 18656main (void) 18657{ 18658 18659 ; 18660 return 0; 18661} 18662_ACEOF 18663if ac_fn_cxx_try_link "$LINENO" 18664then : 18665 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18666then : 18667 lt_cv_shlibpath_overrides_runpath=yes 18668fi 18669fi 18670rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18671 conftest$ac_exeext conftest.$ac_ext 18672 LDFLAGS=$save_LDFLAGS 18673 libdir=$save_libdir 18674 ;; 18675esac 18676fi 18677 18678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18679 18680 # This implies no fast_install, which is unacceptable. 18681 # Some rework will be needed to allow for fast_install 18682 # before this can be enabled. 18683 hardcode_into_libs=yes 18684 18685 # Ideally, we could use ldconfig to report *all* directories which are 18686 # searched for libraries, however this is still not possible. Aside from not 18687 # being certain /sbin/ldconfig is available, command 18688 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18689 # even though it is searched at run-time. Try to do the best guess by 18690 # appending ld.so.conf contents (and includes) to the search path. 18691 if test -f /etc/ld.so.conf; then 18692 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' ' '` 18693 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18694 fi 18695 18696 # We used to test for /lib/ld.so.1 and disable shared libraries on 18697 # powerpc, because MkLinux only supported shared libraries with the 18698 # GNU dynamic linker. Since this was broken with cross compilers, 18699 # most powerpc-linux boxes support dynamic linking these days and 18700 # people can always --disable-shared, the test was removed, and we 18701 # assume the GNU/Linux dynamic linker is in use. 18702 dynamic_linker='GNU/Linux ld.so' 18703 ;; 18704 18705netbsdelf*-gnu) 18706 version_type=linux 18707 need_lib_prefix=no 18708 need_version=no 18709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18710 soname_spec='$libname$release$shared_ext$major' 18711 shlibpath_var=LD_LIBRARY_PATH 18712 shlibpath_overrides_runpath=no 18713 hardcode_into_libs=yes 18714 dynamic_linker='NetBSD ld.elf_so' 18715 ;; 18716 18717netbsd*) 18718 version_type=sunos 18719 need_lib_prefix=no 18720 need_version=no 18721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18724 dynamic_linker='NetBSD (a.out) ld.so' 18725 else 18726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18727 soname_spec='$libname$release$shared_ext$major' 18728 dynamic_linker='NetBSD ld.elf_so' 18729 fi 18730 shlibpath_var=LD_LIBRARY_PATH 18731 shlibpath_overrides_runpath=yes 18732 hardcode_into_libs=yes 18733 ;; 18734 18735*-mlibc) 18736 version_type=linux # correct to gnu/linux during the next big refactor 18737 need_lib_prefix=no 18738 need_version=no 18739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18740 soname_spec='$libname$release$shared_ext$major' 18741 dynamic_linker='mlibc ld.so' 18742 shlibpath_var=LD_LIBRARY_PATH 18743 shlibpath_overrides_runpath=no 18744 hardcode_into_libs=yes 18745 ;; 18746 18747newsos6) 18748 version_type=linux # correct to gnu/linux during the next big refactor 18749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18750 shlibpath_var=LD_LIBRARY_PATH 18751 shlibpath_overrides_runpath=yes 18752 ;; 18753 18754*nto* | *qnx*) 18755 version_type=qnx 18756 need_lib_prefix=no 18757 need_version=no 18758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18759 soname_spec='$libname$release$shared_ext$major' 18760 shlibpath_var=LD_LIBRARY_PATH 18761 shlibpath_overrides_runpath=no 18762 hardcode_into_libs=yes 18763 dynamic_linker='ldqnx.so' 18764 ;; 18765 18766openbsd*) 18767 version_type=sunos 18768 sys_lib_dlsearch_path_spec=/usr/lib 18769 need_lib_prefix=no 18770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18771 need_version=no 18772 else 18773 need_version=yes 18774 fi 18775 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18777 shlibpath_var=LD_LIBRARY_PATH 18778 shlibpath_overrides_runpath=yes 18779 ;; 18780 18781os2*) 18782 libname_spec='$name' 18783 version_type=windows 18784 shrext_cmds=.dll 18785 need_version=no 18786 need_lib_prefix=no 18787 # OS/2 can only load a DLL with a base name of 8 characters or less. 18788 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18789 v=$($ECHO $release$versuffix | tr -d .-); 18790 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18791 $ECHO $n$v`$shared_ext' 18792 library_names_spec='${libname}_dll.$libext' 18793 dynamic_linker='OS/2 ld.exe' 18794 shlibpath_var=BEGINLIBPATH 18795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18797 postinstall_cmds='base_file=`basename \$file`~ 18798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18799 dldir=$destdir/`dirname \$dlpath`~ 18800 test -d \$dldir || mkdir -p \$dldir~ 18801 $install_prog $dir/$dlname \$dldir/$dlname~ 18802 chmod a+x \$dldir/$dlname~ 18803 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18804 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18805 fi' 18806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18807 dlpath=$dir/\$dldll~ 18808 $RM \$dlpath' 18809 ;; 18810 18811osf3* | osf4* | osf5*) 18812 version_type=osf 18813 need_lib_prefix=no 18814 need_version=no 18815 soname_spec='$libname$release$shared_ext$major' 18816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18817 shlibpath_var=LD_LIBRARY_PATH 18818 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18820 ;; 18821 18822rdos*) 18823 dynamic_linker=no 18824 ;; 18825 18826serenity*) 18827 version_type=linux # correct to gnu/linux during the next big refactor 18828 need_lib_prefix=no 18829 need_version=no 18830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18831 soname_spec='$libname$release$shared_ext$major' 18832 shlibpath_var=LD_LIBRARY_PATH 18833 shlibpath_overrides_runpath=no 18834 dynamic_linker='SerenityOS LibELF' 18835 ;; 18836 18837solaris*) 18838 version_type=linux # correct to gnu/linux during the next big refactor 18839 need_lib_prefix=no 18840 need_version=no 18841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18842 soname_spec='$libname$release$shared_ext$major' 18843 shlibpath_var=LD_LIBRARY_PATH 18844 shlibpath_overrides_runpath=yes 18845 hardcode_into_libs=yes 18846 # ldd complains unless libraries are executable 18847 postinstall_cmds='chmod +x $lib' 18848 ;; 18849 18850sunos4*) 18851 version_type=sunos 18852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18854 shlibpath_var=LD_LIBRARY_PATH 18855 shlibpath_overrides_runpath=yes 18856 if test yes = "$with_gnu_ld"; then 18857 need_lib_prefix=no 18858 fi 18859 need_version=yes 18860 ;; 18861 18862sysv4 | sysv4.3*) 18863 version_type=linux # correct to gnu/linux during the next big refactor 18864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18865 soname_spec='$libname$release$shared_ext$major' 18866 shlibpath_var=LD_LIBRARY_PATH 18867 case $host_vendor in 18868 sni) 18869 shlibpath_overrides_runpath=no 18870 need_lib_prefix=no 18871 runpath_var=LD_RUN_PATH 18872 ;; 18873 siemens) 18874 need_lib_prefix=no 18875 ;; 18876 motorola) 18877 need_lib_prefix=no 18878 need_version=no 18879 shlibpath_overrides_runpath=no 18880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18881 ;; 18882 esac 18883 ;; 18884 18885sysv4*MP*) 18886 if test -d /usr/nec; then 18887 version_type=linux # correct to gnu/linux during the next big refactor 18888 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18889 soname_spec='$libname$shared_ext.$major' 18890 shlibpath_var=LD_LIBRARY_PATH 18891 fi 18892 ;; 18893 18894sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18895 version_type=sco 18896 need_lib_prefix=no 18897 need_version=no 18898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18899 soname_spec='$libname$release$shared_ext$major' 18900 shlibpath_var=LD_LIBRARY_PATH 18901 shlibpath_overrides_runpath=yes 18902 hardcode_into_libs=yes 18903 if test yes = "$with_gnu_ld"; then 18904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18905 else 18906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18907 case $host_os in 18908 sco3.2v5*) 18909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18910 ;; 18911 esac 18912 fi 18913 sys_lib_dlsearch_path_spec='/usr/lib' 18914 ;; 18915 18916tpf*) 18917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18918 version_type=linux # correct to gnu/linux during the next big refactor 18919 need_lib_prefix=no 18920 need_version=no 18921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18922 shlibpath_var=LD_LIBRARY_PATH 18923 shlibpath_overrides_runpath=no 18924 hardcode_into_libs=yes 18925 ;; 18926 18927uts4*) 18928 version_type=linux # correct to gnu/linux during the next big refactor 18929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18930 soname_spec='$libname$release$shared_ext$major' 18931 shlibpath_var=LD_LIBRARY_PATH 18932 ;; 18933 18934emscripten*) 18935 version_type=none 18936 need_lib_prefix=no 18937 need_version=no 18938 library_names_spec='$libname$release$shared_ext' 18939 soname_spec='$libname$release$shared_ext' 18940 finish_cmds= 18941 dynamic_linker="Emscripten linker" 18942 lt_prog_compiler_wl_CXX= 18943lt_prog_compiler_pic_CXX= 18944lt_prog_compiler_static_CXX= 18945 18946 18947 # C++ specific cases for pic, static, wl, etc. 18948 if test yes = "$GXX"; then 18949 lt_prog_compiler_wl_CXX='-Wl,' 18950 lt_prog_compiler_static_CXX='-static' 18951 18952 case $host_os in 18953 aix*) 18954 # All AIX code is PIC. 18955 if test ia64 = "$host_cpu"; then 18956 # AIX 5 now supports IA64 processor 18957 lt_prog_compiler_static_CXX='-Bstatic' 18958 fi 18959 lt_prog_compiler_pic_CXX='-fPIC' 18960 ;; 18961 18962 amigaos*) 18963 case $host_cpu in 18964 powerpc) 18965 # see comment about AmigaOS4 .so support 18966 lt_prog_compiler_pic_CXX='-fPIC' 18967 ;; 18968 m68k) 18969 # FIXME: we need at least 68020 code to build shared libraries, but 18970 # adding the '-m68020' flag to GCC prevents building anything better, 18971 # like '-m68040'. 18972 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 18973 ;; 18974 esac 18975 ;; 18976 18977 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18978 # PIC is the default for these OSes. 18979 ;; 18980 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) 18981 # This hack is so that the source file can tell whether it is being 18982 # built for inclusion in a dll (and should export symbols for example). 18983 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18984 # (--disable-auto-import) libraries 18985 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 18986 case $host_os in 18987 os2*) 18988 lt_prog_compiler_static_CXX='$wl-static' 18989 ;; 18990 esac 18991 ;; 18992 darwin* | rhapsody*) 18993 # PIC is the default on this platform 18994 # Common symbols not allowed in MH_DYLIB files 18995 lt_prog_compiler_pic_CXX='-fno-common' 18996 ;; 18997 *djgpp*) 18998 # DJGPP does not support shared libraries at all 18999 lt_prog_compiler_pic_CXX= 19000 ;; 19001 haiku*) 19002 # PIC is the default for Haiku. 19003 # The "-static" flag exists, but is broken. 19004 lt_prog_compiler_static_CXX= 19005 ;; 19006 interix[3-9]*) 19007 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19008 # Instead, we relocate shared libraries at runtime. 19009 ;; 19010 sysv4*MP*) 19011 if test -d /usr/nec; then 19012 lt_prog_compiler_pic_CXX=-Kconform_pic 19013 fi 19014 ;; 19015 hpux*) 19016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19018 # sets the default TLS model and affects inlining. 19019 case $host_cpu in 19020 hppa*64*) 19021 ;; 19022 *) 19023 lt_prog_compiler_pic_CXX='-fPIC' 19024 ;; 19025 esac 19026 ;; 19027 *qnx* | *nto*) 19028 # QNX uses GNU C++, but need to define -shared option too, otherwise 19029 # it will coredump. 19030 lt_prog_compiler_pic_CXX='-fPIC -shared' 19031 ;; 19032 *) 19033 lt_prog_compiler_pic_CXX='-fPIC' 19034 ;; 19035 esac 19036 else 19037 case $host_os in 19038 aix[4-9]*) 19039 # All AIX code is PIC. 19040 if test ia64 = "$host_cpu"; then 19041 # AIX 5 now supports IA64 processor 19042 lt_prog_compiler_static_CXX='-Bstatic' 19043 else 19044 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 19045 fi 19046 ;; 19047 chorus*) 19048 case $cc_basename in 19049 cxch68*) 19050 # Green Hills C++ Compiler 19051 # _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" 19052 ;; 19053 esac 19054 ;; 19055 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) 19056 # This hack is so that the source file can tell whether it is being 19057 # built for inclusion in a dll (and should export symbols for example). 19058 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19059 ;; 19060 dgux*) 19061 case $cc_basename in 19062 ec++*) 19063 lt_prog_compiler_pic_CXX='-KPIC' 19064 ;; 19065 ghcx*) 19066 # Green Hills C++ Compiler 19067 lt_prog_compiler_pic_CXX='-pic' 19068 ;; 19069 *) 19070 ;; 19071 esac 19072 ;; 19073 freebsd* | dragonfly* | midnightbsd*) 19074 # FreeBSD uses GNU C++ 19075 ;; 19076 hpux9* | hpux10* | hpux11*) 19077 case $cc_basename in 19078 CC*) 19079 lt_prog_compiler_wl_CXX='-Wl,' 19080 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 19081 if test ia64 != "$host_cpu"; then 19082 lt_prog_compiler_pic_CXX='+Z' 19083 fi 19084 ;; 19085 aCC*) 19086 lt_prog_compiler_wl_CXX='-Wl,' 19087 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 19088 case $host_cpu in 19089 hppa*64*|ia64*) 19090 # +Z the default 19091 ;; 19092 *) 19093 lt_prog_compiler_pic_CXX='+Z' 19094 ;; 19095 esac 19096 ;; 19097 *) 19098 ;; 19099 esac 19100 ;; 19101 interix*) 19102 # This is c89, which is MS Visual C++ (no shared libs) 19103 # Anyone wants to do a port? 19104 ;; 19105 irix5* | irix6* | nonstopux*) 19106 case $cc_basename in 19107 CC*) 19108 lt_prog_compiler_wl_CXX='-Wl,' 19109 lt_prog_compiler_static_CXX='-non_shared' 19110 # CC pic flag -KPIC is the default. 19111 ;; 19112 *) 19113 ;; 19114 esac 19115 ;; 19116 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19117 case $cc_basename in 19118 KCC*) 19119 # KAI C++ Compiler 19120 lt_prog_compiler_wl_CXX='--backend -Wl,' 19121 lt_prog_compiler_pic_CXX='-fPIC' 19122 ;; 19123 ecpc* ) 19124 # old Intel C++ for x86_64, which still supported -KPIC. 19125 lt_prog_compiler_wl_CXX='-Wl,' 19126 lt_prog_compiler_pic_CXX='-KPIC' 19127 lt_prog_compiler_static_CXX='-static' 19128 ;; 19129 icpc* ) 19130 # Intel C++, used to be incompatible with GCC. 19131 # ICC 10 doesn't accept -KPIC any more. 19132 lt_prog_compiler_wl_CXX='-Wl,' 19133 lt_prog_compiler_pic_CXX='-fPIC' 19134 lt_prog_compiler_static_CXX='-static' 19135 ;; 19136 pgCC* | pgcpp*) 19137 # Portland Group C++ compiler 19138 lt_prog_compiler_wl_CXX='-Wl,' 19139 lt_prog_compiler_pic_CXX='-fpic' 19140 lt_prog_compiler_static_CXX='-Bstatic' 19141 ;; 19142 cxx*) 19143 # Compaq C++ 19144 # Make sure the PIC flag is empty. It appears that all Alpha 19145 # Linux and Compaq Tru64 Unix objects are PIC. 19146 lt_prog_compiler_pic_CXX= 19147 lt_prog_compiler_static_CXX='-non_shared' 19148 ;; 19149 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 19150 # IBM XL 8.0, 9.0 on PPC and BlueGene 19151 lt_prog_compiler_wl_CXX='-Wl,' 19152 lt_prog_compiler_pic_CXX='-qpic' 19153 lt_prog_compiler_static_CXX='-qstaticlink' 19154 ;; 19155 *) 19156 case `$CC -V 2>&1 | $SED 5q` in 19157 *Sun\ C*) 19158 # Sun C++ 5.9 19159 lt_prog_compiler_pic_CXX='-KPIC' 19160 lt_prog_compiler_static_CXX='-Bstatic' 19161 lt_prog_compiler_wl_CXX='-Qoption ld ' 19162 ;; 19163 esac 19164 ;; 19165 esac 19166 ;; 19167 lynxos*) 19168 ;; 19169 m88k*) 19170 ;; 19171 mvs*) 19172 case $cc_basename in 19173 cxx*) 19174 lt_prog_compiler_pic_CXX='-W c,exportall' 19175 ;; 19176 *) 19177 ;; 19178 esac 19179 ;; 19180 netbsd* | netbsdelf*-gnu) 19181 ;; 19182 *-mlibc) 19183 ;; 19184 *qnx* | *nto*) 19185 # QNX uses GNU C++, but need to define -shared option too, otherwise 19186 # it will coredump. 19187 lt_prog_compiler_pic_CXX='-fPIC -shared' 19188 ;; 19189 osf3* | osf4* | osf5*) 19190 case $cc_basename in 19191 KCC*) 19192 lt_prog_compiler_wl_CXX='--backend -Wl,' 19193 ;; 19194 RCC*) 19195 # Rational C++ 2.4.1 19196 lt_prog_compiler_pic_CXX='-pic' 19197 ;; 19198 cxx*) 19199 # Digital/Compaq C++ 19200 lt_prog_compiler_wl_CXX='-Wl,' 19201 # Make sure the PIC flag is empty. It appears that all Alpha 19202 # Linux and Compaq Tru64 Unix objects are PIC. 19203 lt_prog_compiler_pic_CXX= 19204 lt_prog_compiler_static_CXX='-non_shared' 19205 ;; 19206 *) 19207 ;; 19208 esac 19209 ;; 19210 psos*) 19211 ;; 19212 serenity*) 19213 ;; 19214 solaris*) 19215 case $cc_basename in 19216 CC* | sunCC*) 19217 # Sun C++ 4.2, 5.x and Centerline C++ 19218 lt_prog_compiler_pic_CXX='-KPIC' 19219 lt_prog_compiler_static_CXX='-Bstatic' 19220 lt_prog_compiler_wl_CXX='-Qoption ld ' 19221 ;; 19222 gcx*) 19223 # Green Hills C++ Compiler 19224 lt_prog_compiler_pic_CXX='-PIC' 19225 ;; 19226 *) 19227 ;; 19228 esac 19229 ;; 19230 sunos4*) 19231 case $cc_basename in 19232 CC*) 19233 # Sun C++ 4.x 19234 lt_prog_compiler_pic_CXX='-pic' 19235 lt_prog_compiler_static_CXX='-Bstatic' 19236 ;; 19237 lcc*) 19238 # Lucid 19239 lt_prog_compiler_pic_CXX='-pic' 19240 ;; 19241 *) 19242 ;; 19243 esac 19244 ;; 19245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19246 case $cc_basename in 19247 CC*) 19248 lt_prog_compiler_wl_CXX='-Wl,' 19249 lt_prog_compiler_pic_CXX='-KPIC' 19250 lt_prog_compiler_static_CXX='-Bstatic' 19251 ;; 19252 esac 19253 ;; 19254 tandem*) 19255 case $cc_basename in 19256 NCC*) 19257 # NonStop-UX NCC 3.20 19258 lt_prog_compiler_pic_CXX='-KPIC' 19259 ;; 19260 *) 19261 ;; 19262 esac 19263 ;; 19264 vxworks*) 19265 ;; 19266 *) 19267 lt_prog_compiler_can_build_shared_CXX=no 19268 ;; 19269 esac 19270 fi 19271 19272case $host_os in 19273 # For platforms that do not support PIC, -DPIC is meaningless: 19274 *djgpp*) 19275 lt_prog_compiler_pic_CXX= 19276 ;; 19277 *) 19278 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 19279 ;; 19280esac 19281 19282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19283printf %s "checking for $compiler option to produce PIC... " >&6; } 19284if test ${lt_cv_prog_compiler_pic_CXX+y} 19285then : 19286 printf %s "(cached) " >&6 19287else case e in #( 19288 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; 19289esac 19290fi 19291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 19292printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 19293lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 19294 19295# 19296# Check to make sure the PIC flag actually works. 19297# 19298if test -n "$lt_prog_compiler_pic_CXX"; then 19299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 19300printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 19301if test ${lt_cv_prog_compiler_pic_works_CXX+y} 19302then : 19303 printf %s "(cached) " >&6 19304else case e in #( 19305 e) lt_cv_prog_compiler_pic_works_CXX=no 19306 ac_outfile=conftest.$ac_objext 19307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19308 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 19309 # Insert the option either (1) after the last *FLAGS variable, or 19310 # (2) before a word containing "conftest.", or (3) at the end. 19311 # Note that $ac_compile itself does not contain backslashes and begins 19312 # with a dollar sign (not a hyphen), so the echo should work correctly. 19313 # The option is referenced via a variable to avoid confusing sed. 19314 lt_compile=`echo "$ac_compile" | $SED \ 19315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19317 -e 's:$: $lt_compiler_flag:'` 19318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19319 (eval "$lt_compile" 2>conftest.err) 19320 ac_status=$? 19321 cat conftest.err >&5 19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19323 if (exit $ac_status) && test -s "$ac_outfile"; then 19324 # The compiler can only warn and ignore the option if not recognized 19325 # So say no if there are warnings other than the usual output. 19326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19329 lt_cv_prog_compiler_pic_works_CXX=yes 19330 fi 19331 fi 19332 $RM conftest* 19333 ;; 19334esac 19335fi 19336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19337printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19338 19339if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 19340 case $lt_prog_compiler_pic_CXX in 19341 "" | " "*) ;; 19342 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19343 esac 19344else 19345 lt_prog_compiler_pic_CXX= 19346 lt_prog_compiler_can_build_shared_CXX=no 19347fi 19348 19349fi 19350 19351 19352 19353 19354 19355# 19356# Check to make sure the static flag actually works. 19357# 19358wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19360printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19361if test ${lt_cv_prog_compiler_static_works_CXX+y} 19362then : 19363 printf %s "(cached) " >&6 19364else case e in #( 19365 e) lt_cv_prog_compiler_static_works_CXX=no 19366 save_LDFLAGS=$LDFLAGS 19367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19368 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19370 # The linker can only warn and ignore the option if not recognized 19371 # So say no if there are warnings 19372 if test -s conftest.err; then 19373 # Append any errors to the config.log. 19374 cat conftest.err 1>&5 19375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19377 if diff conftest.exp conftest.er2 >/dev/null; then 19378 lt_cv_prog_compiler_static_works_CXX=yes 19379 fi 19380 else 19381 lt_cv_prog_compiler_static_works_CXX=yes 19382 fi 19383 fi 19384 $RM -r conftest* 19385 LDFLAGS=$save_LDFLAGS 19386 ;; 19387esac 19388fi 19389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19390printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 19391 19392if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 19393 : 19394else 19395 lt_prog_compiler_static_CXX= 19396fi 19397 19398 19399 19400='-fPIC' 19401 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 19402 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 19403 archive_cmds_need_lc_CXX=no 19404 no_undefined_flag_CXX= 19405 ;; 19406 19407*) 19408 dynamic_linker=no 19409 ;; 19410esac 19411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19412printf "%s\n" "$dynamic_linker" >&6; } 19413test no = "$dynamic_linker" && can_build_shared=no 19414 19415variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19416if test yes = "$GCC"; then 19417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19418fi 19419 19420if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19421 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19422fi 19423 19424if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19425 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19426fi 19427 19428# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19429configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19430 19431# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19432func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19433 19434# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19435configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19477printf %s "checking how to hardcode library paths into programs... " >&6; } 19478hardcode_action_CXX= 19479if test -n "$hardcode_libdir_flag_spec_CXX" || 19480 test -n "$runpath_var_CXX" || 19481 test yes = "$hardcode_automatic_CXX"; then 19482 19483 # We can hardcode non-existent directories. 19484 if test no != "$hardcode_direct_CXX" && 19485 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19486 # have to relink, otherwise we might link with an installed library 19487 # when we should be linking with a yet-to-be-installed one 19488 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 19489 test no != "$hardcode_minus_L_CXX"; then 19490 # Linking always hardcodes the temporary library directory. 19491 hardcode_action_CXX=relink 19492 else 19493 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19494 hardcode_action_CXX=immediate 19495 fi 19496else 19497 # We cannot hardcode anything, or else we can only hardcode existing 19498 # directories. 19499 hardcode_action_CXX=unsupported 19500fi 19501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 19502printf "%s\n" "$hardcode_action_CXX" >&6; } 19503 19504if test relink = "$hardcode_action_CXX" || 19505 test yes = "$inherit_rpath_CXX"; then 19506 # Fast installation is not supported 19507 enable_fast_install=no 19508elif test yes = "$shlibpath_overrides_runpath" || 19509 test no = "$enable_shared"; then 19510 # Fast installation is not necessary 19511 enable_fast_install=needless 19512fi 19513 19514 19515 19516 19517 19518 19519 19520 fi # test -n "$compiler" 19521 19522 CC=$lt_save_CC 19523 CFLAGS=$lt_save_CFLAGS 19524 LDCXX=$LD 19525 LD=$lt_save_LD 19526 GCC=$lt_save_GCC 19527 with_gnu_ld=$lt_save_with_gnu_ld 19528 lt_cv_path_LDCXX=$lt_cv_path_LD 19529 lt_cv_path_LD=$lt_save_path_LD 19530 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 19531 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 19532fi # test yes != "$_lt_caught_CXX_error" 19533 19534ac_ext=c 19535ac_cpp='$CPP $CPPFLAGS' 19536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19538ac_compiler_gnu=$ac_cv_c_compiler_gnu 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 ac_config_commands="$ac_config_commands libtool" 19555 19556 19557 19558 19559# Only expand once: 19560 19561 19562 19563# pkg-config 19564 19565 19566 19567 19568 19569 if test x"${PKG_CONFIG}" = x"" ; then 19570 for ac_prog in pkgconf pkg-config 19571do 19572 # Extract the first word of "$ac_prog", so it can be a program name with args. 19573set dummy $ac_prog; ac_word=$2 19574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19575printf %s "checking for $ac_word... " >&6; } 19576if test ${ac_cv_path_PKG_CONFIG+y} 19577then : 19578 printf %s "(cached) " >&6 19579else case e in #( 19580 e) case $PKG_CONFIG in 19581 [\\/]* | ?:[\\/]*) 19582 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19583 ;; 19584 *) 19585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19586for as_dir in $PATH 19587do 19588 IFS=$as_save_IFS 19589 case $as_dir in #((( 19590 '') as_dir=./ ;; 19591 */) ;; 19592 *) as_dir=$as_dir/ ;; 19593 esac 19594 for ac_exec_ext in '' $ac_executable_extensions; do 19595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19596 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 19597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19598 break 2 19599 fi 19600done 19601 done 19602IFS=$as_save_IFS 19603 19604 ;; 19605esac ;; 19606esac 19607fi 19608PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19609if test -n "$PKG_CONFIG"; then 19610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19611printf "%s\n" "$PKG_CONFIG" >&6; } 19612else 19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19614printf "%s\n" "no" >&6; } 19615fi 19616 19617 19618 test -n "$PKG_CONFIG" && break 19619done 19620 >/dev/null 19621 else 19622 # Extract the first word of "${PKG_CONFIG}", so it can be a program name with args. 19623set dummy ${PKG_CONFIG}; ac_word=$2 19624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19625printf %s "checking for $ac_word... " >&6; } 19626if test ${ac_cv_path_PKG_CONFIG+y} 19627then : 19628 printf %s "(cached) " >&6 19629else case e in #( 19630 e) case $PKG_CONFIG in 19631 [\\/]* | ?:[\\/]*) 19632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19633 ;; 19634 *) 19635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19636for as_dir in $PATH 19637do 19638 IFS=$as_save_IFS 19639 case $as_dir in #((( 19640 '') as_dir=./ ;; 19641 */) ;; 19642 *) as_dir=$as_dir/ ;; 19643 esac 19644 for ac_exec_ext in '' $ac_executable_extensions; do 19645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19646 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 19647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19648 break 2 19649 fi 19650done 19651 done 19652IFS=$as_save_IFS 19653 19654 ;; 19655esac ;; 19656esac 19657fi 19658PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19659if test -n "$PKG_CONFIG"; then 19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19661printf "%s\n" "$PKG_CONFIG" >&6; } 19662else 19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19664printf "%s\n" "no" >&6; } 19665fi 19666 19667 19668 fi 19669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config or pkgconf" >&5 19670printf %s "checking for pkg-config or pkgconf... " >&6; } 19671 if test -x "${PKG_CONFIG}" ; then 19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG}" >&5 19673printf "%s\n" "${PKG_CONFIG}" >&6; } 19674 case "${PKG_CONFIG}" in 19675 *pkgconf) 19676 _min_version="1.3.0" 19677 ;; 19678 *pkg-config) 19679 _min_version="0.23" 19680 ;; 19681 *) 19682 _min_version="9.9.error" 19683 ;; 19684 esac 19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that ${PKG_CONFIG} is at least version ${_min_version}" >&5 19686printf %s "checking that ${PKG_CONFIG} is at least version ${_min_version}... " >&6; } 19687 _act_version=`"${PKG_CONFIG}" --version` 19688 if ! "${PKG_CONFIG}" --atleast-pkgconfig-version="${_min_version}" ; then 19689 PKG_CONFIG="" 19690 fi 19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_act_version}" >&5 19692printf "%s\n" "${_act_version}" >&6; } 19693 else 19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19695printf "%s\n" "no" >&6; } 19696 PKG_CONFIG="" 19697 fi 19698 if test x"${PKG_CONFIG}" = x"" ; then 19699 as_fn_error $? "pkg-config was not found or is too old" "$LINENO" 5 19700 fi 19701 19702# Check whether --with-pkgconfigdir was given. 19703if test ${with_pkgconfigdir+y} 19704then : 19705 withval=$with_pkgconfigdir; pkgconfigdir=$withval 19706else case e in #( 19707 e) pkgconfigdir='${libdir}/pkgconfig' ;; 19708esac 19709fi 19710 19711 pkgconfigdir=$pkgconfigdir 19712 19713 19714 19715# other programs 19716 19717 19718LIB_MAJ=2 19719 19720 19721printf "%s\n" "#define LIB_MAJ $LIB_MAJ" >>confdefs.h 19722 19723 19724# Check whether --enable-debug was given. 19725if test ${enable_debug+y} 19726then : 19727 enableval=$enable_debug; 19728printf "%s\n" "#define OPENPAM_DEBUG 1" >>confdefs.h 19729 19730fi 19731 19732 19733# Check whether --enable-unversioned-modules was given. 19734if test ${enable_unversioned_modules+y} 19735then : 19736 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no" 19737then : 19738 19739 19740printf "%s\n" "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h 19741 19742 19743fi 19744fi 19745 19746 19747 19748# Check whether --with-modules-dir was given. 19749if test ${with_modules_dir+y} 19750then : 19751 withval=$with_modules_dir; if test x"$withval" != x"no" 19752then : 19753 19754 OPENPAM_MODULES_DIR="$withval" 19755 19756printf "%s\n" "#define OPENPAM_MODULES_DIR \"${OPENPAM_MODULES_DIR%/}\"" >>confdefs.h 19757 19758 19759fi 19760fi 19761 19762 19763 if test x"$OPENPAM_MODULES_DIR" != x""; then 19764 CUSTOM_MODULES_DIR_TRUE= 19765 CUSTOM_MODULES_DIR_FALSE='#' 19766else 19767 CUSTOM_MODULES_DIR_TRUE='#' 19768 CUSTOM_MODULES_DIR_FALSE= 19769fi 19770 19771 19772if test x"$LOCALBASE" = x"" 19773then : 19774 19775 if test x"$prefix" = x"NONE" 19776then : 19777 LOCALBASE=/usr/local 19778else case e in #( 19779 e) LOCALBASE=$prefix ;; 19780esac 19781fi 19782fi 19783 19784# Check whether --with-localbase was given. 19785if test ${with_localbase+y} 19786then : 19787 withval=$with_localbase; case $withval in #( 19788 no) : 19789 LOCALBASE= ;; #( 19790 yes) : 19791 LOCALBASE=$ac_default_prefix ;; #( 19792 *) : 19793 LOCALBASE="$withval" ;; #( 19794 *) : 19795 ;; 19796esac 19797fi 19798 19799if test x"$LOCALBASE" != x"" 19800then : 19801 19802 19803printf "%s\n" "#define LOCALBASE \"${LOCALBASE%/}\"" >>confdefs.h 19804 19805fi 19806 19807 19808# Check whether --with-doc was given. 19809if test ${with_doc+y} 19810then : 19811 withval=$with_doc; 19812else case e in #( 19813 e) with_doc=yes ;; 19814esac 19815fi 19816 19817 if test x"$with_doc" = x"yes"; then 19818 WITH_DOC_TRUE= 19819 WITH_DOC_FALSE='#' 19820else 19821 WITH_DOC_TRUE='#' 19822 WITH_DOC_FALSE= 19823fi 19824 19825 19826 19827# Check whether --with-pam-unix was given. 19828if test ${with_pam_unix+y} 19829then : 19830 withval=$with_pam_unix; 19831else case e in #( 19832 e) with_pam_unix=no ;; 19833esac 19834fi 19835 19836 if test x"$with_pam_unix" = x"yes"; then 19837 WITH_PAM_UNIX_TRUE= 19838 WITH_PAM_UNIX_FALSE='#' 19839else 19840 WITH_PAM_UNIX_TRUE='#' 19841 WITH_PAM_UNIX_FALSE= 19842fi 19843 19844 19845 19846# Check whether --with-pamtest was given. 19847if test ${with_pamtest+y} 19848then : 19849 withval=$with_pamtest; 19850else case e in #( 19851 e) with_pamtest=no ;; 19852esac 19853fi 19854 19855 if test x"$with_pamtest" = x"yes"; then 19856 WITH_PAMTEST_TRUE= 19857 WITH_PAMTEST_FALSE='#' 19858else 19859 WITH_PAMTEST_TRUE='#' 19860 WITH_PAMTEST_FALSE= 19861fi 19862 19863 19864 19865# Check whether --with-su was given. 19866if test ${with_su+y} 19867then : 19868 withval=$with_su; 19869else case e in #( 19870 e) with_su=no ;; 19871esac 19872fi 19873 19874 if test x"$with_su" = x"yes"; then 19875 WITH_SU_TRUE= 19876 WITH_SU_FALSE='#' 19877else 19878 WITH_SU_TRUE='#' 19879 WITH_SU_FALSE= 19880fi 19881 19882 19883 19884# Check whether --with-system-libpam was given. 19885if test ${with_system_libpam+y} 19886then : 19887 withval=$with_system_libpam; 19888else case e in #( 19889 e) with_system_libpam=no ;; 19890esac 19891fi 19892 19893 if test x"$with_system_libpam" = x"yes"; then 19894 WITH_SYSTEM_LIBPAM_TRUE= 19895 WITH_SYSTEM_LIBPAM_FALSE='#' 19896else 19897 WITH_SYSTEM_LIBPAM_TRUE='#' 19898 WITH_SYSTEM_LIBPAM_FALSE= 19899fi 19900 19901 19902ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 19903if test "x$ac_cv_header_crypt_h" = xyes 19904then : 19905 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h 19906 19907fi 19908 19909 19910ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 19911if test "x$ac_cv_func_asprintf" = xyes 19912then : 19913 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 19914 19915fi 19916ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 19917if test "x$ac_cv_func_vasprintf" = xyes 19918then : 19919 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 19920 19921fi 19922 19923ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" 19924if test "x$ac_cv_func_dlfunc" = xyes 19925then : 19926 printf "%s\n" "#define HAVE_DLFUNC 1" >>confdefs.h 19927 19928fi 19929ac_fn_c_check_func "$LINENO" "fdlopen" "ac_cv_func_fdlopen" 19930if test "x$ac_cv_func_fdlopen" = xyes 19931then : 19932 printf "%s\n" "#define HAVE_FDLOPEN 1" >>confdefs.h 19933 19934fi 19935 19936ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge" 19937if test "x$ac_cv_func_fpurge" = xyes 19938then : 19939 printf "%s\n" "#define HAVE_FPURGE 1" >>confdefs.h 19940 19941fi 19942 19943ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask" 19944if test "x$ac_cv_func_setlogmask" = xyes 19945then : 19946 printf "%s\n" "#define HAVE_SETLOGMASK 1" >>confdefs.h 19947 19948fi 19949 19950ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 19951if test "x$ac_cv_func_strlcat" = xyes 19952then : 19953 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 19954 19955fi 19956ac_fn_c_check_func "$LINENO" "strlcmp" "ac_cv_func_strlcmp" 19957if test "x$ac_cv_func_strlcmp" = xyes 19958then : 19959 printf "%s\n" "#define HAVE_STRLCMP 1" >>confdefs.h 19960 19961fi 19962ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 19963if test "x$ac_cv_func_strlcpy" = xyes 19964then : 19965 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 19966 19967fi 19968ac_fn_c_check_func "$LINENO" "strlset" "ac_cv_func_strlset" 19969if test "x$ac_cv_func_strlset" = xyes 19970then : 19971 printf "%s\n" "#define HAVE_STRLSET 1" >>confdefs.h 19972 19973fi 19974 19975 19976saved_LIBS="${LIBS}" 19977LIBS="" 19978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19979printf %s "checking for dlopen in -ldl... " >&6; } 19980if test ${ac_cv_lib_dl_dlopen+y} 19981then : 19982 printf %s "(cached) " >&6 19983else case e in #( 19984 e) ac_check_lib_save_LIBS=$LIBS 19985LIBS="-ldl $LIBS" 19986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19987/* end confdefs.h. */ 19988 19989/* Override any GCC internal prototype to avoid an error. 19990 Use char because int might match the return type of a GCC 19991 builtin and then its argument prototype would still apply. 19992 The 'extern "C"' is for builds by C++ compilers; 19993 although this is not generally supported in C code supporting it here 19994 has little cost and some practical benefit (sr 110532). */ 19995#ifdef __cplusplus 19996extern "C" 19997#endif 19998char dlopen (void); 19999int 20000main (void) 20001{ 20002return dlopen (); 20003 ; 20004 return 0; 20005} 20006_ACEOF 20007if ac_fn_c_try_link "$LINENO" 20008then : 20009 ac_cv_lib_dl_dlopen=yes 20010else case e in #( 20011 e) ac_cv_lib_dl_dlopen=no ;; 20012esac 20013fi 20014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20015 conftest$ac_exeext conftest.$ac_ext 20016LIBS=$ac_check_lib_save_LIBS ;; 20017esac 20018fi 20019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20020printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 20021if test "x$ac_cv_lib_dl_dlopen" = xyes 20022then : 20023 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h 20024 20025 LIBS="-ldl $LIBS" 20026 20027fi 20028 20029DL_LIBS="${LIBS}" 20030LIBS="${saved_LIBS}" 20031 20032 20033saved_LIBS="${LIBS}" 20034LIBS="" 20035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 20036printf %s "checking for pam_start in -lpam... " >&6; } 20037if test ${ac_cv_lib_pam_pam_start+y} 20038then : 20039 printf %s "(cached) " >&6 20040else case e in #( 20041 e) ac_check_lib_save_LIBS=$LIBS 20042LIBS="-lpam $LIBS" 20043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20044/* end confdefs.h. */ 20045 20046/* Override any GCC internal prototype to avoid an error. 20047 Use char because int might match the return type of a GCC 20048 builtin and then its argument prototype would still apply. 20049 The 'extern "C"' is for builds by C++ compilers; 20050 although this is not generally supported in C code supporting it here 20051 has little cost and some practical benefit (sr 110532). */ 20052#ifdef __cplusplus 20053extern "C" 20054#endif 20055char pam_start (void); 20056int 20057main (void) 20058{ 20059return pam_start (); 20060 ; 20061 return 0; 20062} 20063_ACEOF 20064if ac_fn_c_try_link "$LINENO" 20065then : 20066 ac_cv_lib_pam_pam_start=yes 20067else case e in #( 20068 e) ac_cv_lib_pam_pam_start=no ;; 20069esac 20070fi 20071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20072 conftest$ac_exeext conftest.$ac_ext 20073LIBS=$ac_check_lib_save_LIBS ;; 20074esac 20075fi 20076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 20077printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; } 20078if test "x$ac_cv_lib_pam_pam_start" = xyes 20079then : 20080 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h 20081 20082 LIBS="-lpam $LIBS" 20083 20084fi 20085 20086SYSTEM_LIBPAM="${LIBS}" 20087LIBS="${saved_LIBS}" 20088 20089 20090 20091 20092 20093 20094 20095 20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cryb-test is installed" >&5 20097printf %s "checking if cryb-test is installed... " >&6; } 20098 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \"\${PKG_CONFIG}\" --exists --print-errors \"cryb-test\""; } >&5 20099 ("${PKG_CONFIG}" --exists --print-errors "cryb-test") 2>&5 20100 ac_status=$? 20101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20102 test $ac_status = 0; } ; then 20103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20104printf "%s\n" "yes" >&6; } 20105 ax_pc_cv_have_cryb_test=yes 20106 20107printf "%s\n" "#define HAVE_CRYB_TEST 1" >>confdefs.h 20108 20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test version" >&5 20110printf %s "checking cryb-test version... " >&6; } 20111 20112 20113 20114 ax_pc_cv_cryb_test_version=`"${PKG_CONFIG}" --modversion cryb-test` 20115 20116 CRYB_TEST_VERSION=$ax_pc_cv_cryb_test_version 20117 20118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_version:-unknown}" >&5 20119printf "%s\n" "${ax_pc_cv_cryb_test_version:-unknown}" >&6; } 20120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test compiler flags" >&5 20121printf %s "checking cryb-test compiler flags... " >&6; } 20122 20123 20124 20125 ax_pc_cv_cryb_test_cflags=`"${PKG_CONFIG}" --cflags cryb-test` 20126 20127 CRYB_TEST_CFLAGS=$ax_pc_cv_cryb_test_cflags 20128 20129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_cflags:-none}" >&5 20130printf "%s\n" "${ax_pc_cv_cryb_test_cflags:-none}" >&6; } 20131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test linker flags" >&5 20132printf %s "checking cryb-test linker flags... " >&6; } 20133 20134 20135 20136 ax_pc_cv_cryb_test_libs=`"${PKG_CONFIG}" --libs cryb-test` 20137 20138 CRYB_TEST_LIBS=$ax_pc_cv_cryb_test_libs 20139 20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_libs:-none}" >&5 20141printf "%s\n" "${ax_pc_cv_cryb_test_libs:-none}" >&6; } 20142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cryb test framework found, unit tests enabled." >&5 20143printf "%s\n" "$as_me: Cryb test framework found, unit tests enabled." >&6;} 20144 else 20145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20146printf "%s\n" "no" >&6; } 20147 ax_pc_cv_have_cryb_test=no 20148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cryb test framework not found, unit tests disabled." >&5 20149printf "%s\n" "$as_me: WARNING: Cryb test framework not found, unit tests disabled." >&2;} 20150 fi 20151 20152 if test x"$ax_pc_cv_have_cryb_test" = x"yes"; then 20153 HAVE_CRYB_TEST_TRUE= 20154 HAVE_CRYB_TEST_FALSE='#' 20155else 20156 HAVE_CRYB_TEST_TRUE='#' 20157 HAVE_CRYB_TEST_FALSE= 20158fi 20159 20160 20161 20162 if test x"$CRYB_TEST_LIBS" != x""; then 20163 WITH_TEST_TRUE= 20164 WITH_TEST_FALSE='#' 20165else 20166 WITH_TEST_TRUE='#' 20167 WITH_TEST_FALSE= 20168fi 20169 20170 20171# Check whether --enable-developer-warnings was given. 20172if test ${enable_developer_warnings+y} 20173then : 20174 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual" 20175fi 20176 20177# Check whether --enable-debugging-symbols was given. 20178if test ${enable_debugging_symbols+y} 20179then : 20180 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline" 20181fi 20182 20183# Check whether --enable-werror was given. 20184if test ${enable_werror+y} 20185then : 20186 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror" 20187fi 20188 20189 20190# Check whether --enable-code-coverage was given. 20191if test ${enable_code_coverage+y} 20192then : 20193 enableval=$enable_code_coverage; 20194fi 20195 20196if test x"$enable_code_coverage" = x"yes" 20197then : 20198 20199 if test -z "$WITH_TEST_TRUE"; then : 20200 20201 if test x"$ax_cv_c_compiler_vendor" = x"clang" 20202then : 20203 20204 CFLAGS="${CFLAGS} -fprofile-instr-generate -fcoverage-mapping" 20205 clang_code_coverage="yes" 20206 clang_ver=${CC#clang} 20207 20208 20209else case e in #( 20210 e) 20211 as_fn_error $? "code coverage is only supported with clang" "$LINENO" 5 20212 ;; 20213esac 20214fi 20215 20216printf "%s\n" "#define WITH_CODE_COVERAGE 1" >>confdefs.h 20217 20218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: code coverage enabled" >&5 20219printf "%s\n" "$as_me: code coverage enabled" >&6;} 20220 20221else 20222 20223 as_fn_error $? "code coverage requires unit tests" "$LINENO" 5 20224 20225fi 20226 20227fi 20228 if test x"$enable_code_coverage" = x"yes"; then 20229 WITH_CODE_COVERAGE_TRUE= 20230 WITH_CODE_COVERAGE_FALSE='#' 20231else 20232 WITH_CODE_COVERAGE_TRUE='#' 20233 WITH_CODE_COVERAGE_FALSE= 20234fi 20235 20236 if test x"$clang_code_coverage" = x"yes"; then 20237 CLANG_CODE_COVERAGE_TRUE= 20238 CLANG_CODE_COVERAGE_FALSE='#' 20239else 20240 CLANG_CODE_COVERAGE_TRUE='#' 20241 CLANG_CODE_COVERAGE_FALSE= 20242fi 20243 20244 20245ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile freebsd/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile misc/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_return/Makefile modules/pam_unix/Makefile t/Makefile" 20246 20247ac_config_files="$ac_config_files misc/coverity.sh" 20248 20249cat >confcache <<\_ACEOF 20250# This file is a shell script that caches the results of configure 20251# tests run on this system so they can be shared between configure 20252# scripts and configure runs, see configure's option --config-cache. 20253# It is not useful on other systems. If it contains results you don't 20254# want to keep, you may remove or edit it. 20255# 20256# config.status only pays attention to the cache file if you give it 20257# the --recheck option to rerun configure. 20258# 20259# 'ac_cv_env_foo' variables (set or unset) will be overridden when 20260# loading this file, other *unset* 'ac_cv_foo' will be assigned the 20261# following values. 20262 20263_ACEOF 20264 20265# The following way of writing the cache mishandles newlines in values, 20266# but we know of no workaround that is simple, portable, and efficient. 20267# So, we kill variables containing newlines. 20268# Ultrix sh set writes to stderr and can't be redirected directly, 20269# and sets the high bit in the cache file unless we assign to the vars. 20270( 20271 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20272 eval ac_val=\$$ac_var 20273 case $ac_val in #( 20274 *${as_nl}*) 20275 case $ac_var in #( 20276 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20277printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20278 esac 20279 case $ac_var in #( 20280 _ | IFS | as_nl) ;; #( 20281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20282 *) { eval $ac_var=; unset $ac_var;} ;; 20283 esac ;; 20284 esac 20285 done 20286 20287 (set) 2>&1 | 20288 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20289 *${as_nl}ac_space=\ *) 20290 # 'set' does not quote correctly, so add quotes: double-quote 20291 # substitution turns \\\\ into \\, and sed turns \\ into \. 20292 sed -n \ 20293 "s/'/'\\\\''/g; 20294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20295 ;; #( 20296 *) 20297 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20299 ;; 20300 esac | 20301 sort 20302) | 20303 sed ' 20304 /^ac_cv_env_/b end 20305 t clear 20306 :clear 20307 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20308 t end 20309 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20310 :end' >>confcache 20311if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20312 if test -w "$cache_file"; then 20313 if test "x$cache_file" != "x/dev/null"; then 20314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20315printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20316 if test ! -f "$cache_file" || test -h "$cache_file"; then 20317 cat confcache >"$cache_file" 20318 else 20319 case $cache_file in #( 20320 */* | ?:*) 20321 mv -f confcache "$cache_file"$$ && 20322 mv -f "$cache_file"$$ "$cache_file" ;; #( 20323 *) 20324 mv -f confcache "$cache_file" ;; 20325 esac 20326 fi 20327 fi 20328 else 20329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20330printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20331 fi 20332fi 20333rm -f confcache 20334 20335test "x$prefix" = xNONE && prefix=$ac_default_prefix 20336# Let make expand exec_prefix. 20337test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20338 20339DEFS=-DHAVE_CONFIG_H 20340 20341ac_libobjs= 20342ac_ltlibobjs= 20343U= 20344for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20345 # 1. Remove the extension, and $U if already installed. 20346 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20347 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20348 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20349 # will be set to the directory where LIBOBJS objects are built. 20350 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20351 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20352done 20353LIBOBJS=$ac_libobjs 20354 20355LTLIBOBJS=$ac_ltlibobjs 20356 20357 20358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20359printf %s "checking that generated files are newer than configure... " >&6; } 20360 if test -n "$am_sleep_pid"; then 20361 # Hide warnings about reused PIDs. 20362 wait $am_sleep_pid 2>/dev/null 20363 fi 20364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20365printf "%s\n" "done" >&6; } 20366case $enable_silent_rules in # ((( 20367 yes) AM_DEFAULT_VERBOSITY=0;; 20368 no) AM_DEFAULT_VERBOSITY=1;; 20369esac 20370if test $am_cv_make_support_nested_variables = yes; then 20371 AM_V='$(V)' 20372 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20373else 20374 AM_V=$AM_DEFAULT_VERBOSITY 20375 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20376fi 20377 20378 if test -n "$EXEEXT"; then 20379 am__EXEEXT_TRUE= 20380 am__EXEEXT_FALSE='#' 20381else 20382 am__EXEEXT_TRUE='#' 20383 am__EXEEXT_FALSE= 20384fi 20385 20386if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20387 as_fn_error $? "conditional \"AMDEP\" was never defined. 20388Usually this means the macro was only invoked conditionally." "$LINENO" 5 20389fi 20390if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20391 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20392Usually this means the macro was only invoked conditionally." "$LINENO" 5 20393fi 20394if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20395 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20396Usually this means the macro was only invoked conditionally." "$LINENO" 5 20397fi 20398if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20399 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20400Usually this means the macro was only invoked conditionally." "$LINENO" 5 20401fi 20402if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then 20403 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined. 20404Usually this means the macro was only invoked conditionally." "$LINENO" 5 20405fi 20406if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then 20407 as_fn_error $? "conditional \"WITH_DOC\" was never defined. 20408Usually this means the macro was only invoked conditionally." "$LINENO" 5 20409fi 20410if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then 20411 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined. 20412Usually this means the macro was only invoked conditionally." "$LINENO" 5 20413fi 20414if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then 20415 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined. 20416Usually this means the macro was only invoked conditionally." "$LINENO" 5 20417fi 20418if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then 20419 as_fn_error $? "conditional \"WITH_SU\" was never defined. 20420Usually this means the macro was only invoked conditionally." "$LINENO" 5 20421fi 20422if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then 20423 as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined. 20424Usually this means the macro was only invoked conditionally." "$LINENO" 5 20425fi 20426if test -z "${HAVE_CRYB_TEST_TRUE}" && test -z "${HAVE_CRYB_TEST_FALSE}"; then 20427 as_fn_error $? "conditional \"HAVE_CRYB_TEST\" was never defined. 20428Usually this means the macro was only invoked conditionally." "$LINENO" 5 20429fi 20430if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then 20431 as_fn_error $? "conditional \"WITH_TEST\" was never defined. 20432Usually this means the macro was only invoked conditionally." "$LINENO" 5 20433fi 20434if test -z "${WITH_CODE_COVERAGE_TRUE}" && test -z "${WITH_CODE_COVERAGE_FALSE}"; then 20435 as_fn_error $? "conditional \"WITH_CODE_COVERAGE\" was never defined. 20436Usually this means the macro was only invoked conditionally." "$LINENO" 5 20437fi 20438if test -z "${CLANG_CODE_COVERAGE_TRUE}" && test -z "${CLANG_CODE_COVERAGE_FALSE}"; then 20439 as_fn_error $? "conditional \"CLANG_CODE_COVERAGE\" was never defined. 20440Usually this means the macro was only invoked conditionally." "$LINENO" 5 20441fi 20442 20443: "${CONFIG_STATUS=./config.status}" 20444ac_write_fail=0 20445ac_clean_files_save=$ac_clean_files 20446ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20448printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20449as_write_fail=0 20450cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20451#! $SHELL 20452# Generated by $as_me. 20453# Run this file to recreate the current configuration. 20454# Compiler output produced by configure, useful for debugging 20455# configure, is in config.log if it exists. 20456 20457debug=false 20458ac_cs_recheck=false 20459ac_cs_silent=false 20460 20461SHELL=\${CONFIG_SHELL-$SHELL} 20462export SHELL 20463_ASEOF 20464cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20465## -------------------- ## 20466## M4sh Initialization. ## 20467## -------------------- ## 20468 20469# Be more Bourne compatible 20470DUALCASE=1; export DUALCASE # for MKS sh 20471if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20472then : 20473 emulate sh 20474 NULLCMD=: 20475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20476 # is contrary to our usage. Disable this feature. 20477 alias -g '${1+"$@"}'='"$@"' 20478 setopt NO_GLOB_SUBST 20479else case e in #( 20480 e) case `(set -o) 2>/dev/null` in #( 20481 *posix*) : 20482 set -o posix ;; #( 20483 *) : 20484 ;; 20485esac ;; 20486esac 20487fi 20488 20489 20490 20491# Reset variables that may have inherited troublesome values from 20492# the environment. 20493 20494# IFS needs to be set, to space, tab, and newline, in precisely that order. 20495# (If _AS_PATH_WALK were called with IFS unset, it would have the 20496# side effect of setting IFS to empty, thus disabling word splitting.) 20497# Quoting is to prevent editors from complaining about space-tab. 20498as_nl=' 20499' 20500export as_nl 20501IFS=" "" $as_nl" 20502 20503PS1='$ ' 20504PS2='> ' 20505PS4='+ ' 20506 20507# Ensure predictable behavior from utilities with locale-dependent output. 20508LC_ALL=C 20509export LC_ALL 20510LANGUAGE=C 20511export LANGUAGE 20512 20513# We cannot yet rely on "unset" to work, but we need these variables 20514# to be unset--not just set to an empty or harmless value--now, to 20515# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20516# also avoids known problems related to "unset" and subshell syntax 20517# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20518for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20519do eval test \${$as_var+y} \ 20520 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20521done 20522 20523# Ensure that fds 0, 1, and 2 are open. 20524if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20525if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20526if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20527 20528# The user is always right. 20529if ${PATH_SEPARATOR+false} :; then 20530 PATH_SEPARATOR=: 20531 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20532 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20533 PATH_SEPARATOR=';' 20534 } 20535fi 20536 20537 20538# Find who we are. Look in the path if we contain no directory separator. 20539as_myself= 20540case $0 in #(( 20541 *[\\/]* ) as_myself=$0 ;; 20542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20543for as_dir in $PATH 20544do 20545 IFS=$as_save_IFS 20546 case $as_dir in #((( 20547 '') as_dir=./ ;; 20548 */) ;; 20549 *) as_dir=$as_dir/ ;; 20550 esac 20551 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20552 done 20553IFS=$as_save_IFS 20554 20555 ;; 20556esac 20557# We did not find ourselves, most probably we were run as 'sh COMMAND' 20558# in which case we are not to be found in the path. 20559if test "x$as_myself" = x; then 20560 as_myself=$0 20561fi 20562if test ! -f "$as_myself"; then 20563 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20564 exit 1 20565fi 20566 20567 20568 20569# as_fn_error STATUS ERROR [LINENO LOG_FD] 20570# ---------------------------------------- 20571# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20572# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20573# script with STATUS, using 1 if that was 0. 20574as_fn_error () 20575{ 20576 as_status=$1; test $as_status -eq 0 && as_status=1 20577 if test "$4"; then 20578 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20580 fi 20581 printf "%s\n" "$as_me: error: $2" >&2 20582 as_fn_exit $as_status 20583} # as_fn_error 20584 20585 20586# as_fn_set_status STATUS 20587# ----------------------- 20588# Set $? to STATUS, without forking. 20589as_fn_set_status () 20590{ 20591 return $1 20592} # as_fn_set_status 20593 20594# as_fn_exit STATUS 20595# ----------------- 20596# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20597as_fn_exit () 20598{ 20599 set +e 20600 as_fn_set_status $1 20601 exit $1 20602} # as_fn_exit 20603 20604# as_fn_unset VAR 20605# --------------- 20606# Portably unset VAR. 20607as_fn_unset () 20608{ 20609 { eval $1=; unset $1;} 20610} 20611as_unset=as_fn_unset 20612 20613# as_fn_append VAR VALUE 20614# ---------------------- 20615# Append the text in VALUE to the end of the definition contained in VAR. Take 20616# advantage of any shell optimizations that allow amortized linear growth over 20617# repeated appends, instead of the typical quadratic growth present in naive 20618# implementations. 20619if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20620then : 20621 eval 'as_fn_append () 20622 { 20623 eval $1+=\$2 20624 }' 20625else case e in #( 20626 e) as_fn_append () 20627 { 20628 eval $1=\$$1\$2 20629 } ;; 20630esac 20631fi # as_fn_append 20632 20633# as_fn_arith ARG... 20634# ------------------ 20635# Perform arithmetic evaluation on the ARGs, and store the result in the 20636# global $as_val. Take advantage of shells that can avoid forks. The arguments 20637# must be portable across $(()) and expr. 20638if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20639then : 20640 eval 'as_fn_arith () 20641 { 20642 as_val=$(( $* )) 20643 }' 20644else case e in #( 20645 e) as_fn_arith () 20646 { 20647 as_val=`expr "$@" || test $? -eq 1` 20648 } ;; 20649esac 20650fi # as_fn_arith 20651 20652 20653if expr a : '\(a\)' >/dev/null 2>&1 && 20654 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20655 as_expr=expr 20656else 20657 as_expr=false 20658fi 20659 20660if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20661 as_basename=basename 20662else 20663 as_basename=false 20664fi 20665 20666if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20667 as_dirname=dirname 20668else 20669 as_dirname=false 20670fi 20671 20672as_me=`$as_basename -- "$0" || 20673$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20674 X"$0" : 'X\(//\)$' \| \ 20675 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20676printf "%s\n" X/"$0" | 20677 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20678 s//\1/ 20679 q 20680 } 20681 /^X\/\(\/\/\)$/{ 20682 s//\1/ 20683 q 20684 } 20685 /^X\/\(\/\).*/{ 20686 s//\1/ 20687 q 20688 } 20689 s/.*/./; q'` 20690 20691# Avoid depending upon Character Ranges. 20692as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20693as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20694as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20695as_cr_digits='0123456789' 20696as_cr_alnum=$as_cr_Letters$as_cr_digits 20697 20698 20699# Determine whether it's possible to make 'echo' print without a newline. 20700# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20701# for compatibility with existing Makefiles. 20702ECHO_C= ECHO_N= ECHO_T= 20703case `echo -n x` in #((((( 20704-n*) 20705 case `echo 'xy\c'` in 20706 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20707 xy) ECHO_C='\c';; 20708 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20709 ECHO_T=' ';; 20710 esac;; 20711*) 20712 ECHO_N='-n';; 20713esac 20714 20715# For backward compatibility with old third-party macros, we provide 20716# the shell variables $as_echo and $as_echo_n. New code should use 20717# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20718as_echo='printf %s\n' 20719as_echo_n='printf %s' 20720 20721rm -f conf$$ conf$$.exe conf$$.file 20722if test -d conf$$.dir; then 20723 rm -f conf$$.dir/conf$$.file 20724else 20725 rm -f conf$$.dir 20726 mkdir conf$$.dir 2>/dev/null 20727fi 20728if (echo >conf$$.file) 2>/dev/null; then 20729 if ln -s conf$$.file conf$$ 2>/dev/null; then 20730 as_ln_s='ln -s' 20731 # ... but there are two gotchas: 20732 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20733 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20734 # In both cases, we have to default to 'cp -pR'. 20735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20736 as_ln_s='cp -pR' 20737 elif ln conf$$.file conf$$ 2>/dev/null; then 20738 as_ln_s=ln 20739 else 20740 as_ln_s='cp -pR' 20741 fi 20742else 20743 as_ln_s='cp -pR' 20744fi 20745rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20746rmdir conf$$.dir 2>/dev/null 20747 20748 20749# as_fn_mkdir_p 20750# ------------- 20751# Create "$as_dir" as a directory, including parents if necessary. 20752as_fn_mkdir_p () 20753{ 20754 20755 case $as_dir in #( 20756 -*) as_dir=./$as_dir;; 20757 esac 20758 test -d "$as_dir" || eval $as_mkdir_p || { 20759 as_dirs= 20760 while :; do 20761 case $as_dir in #( 20762 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20763 *) as_qdir=$as_dir;; 20764 esac 20765 as_dirs="'$as_qdir' $as_dirs" 20766 as_dir=`$as_dirname -- "$as_dir" || 20767$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20768 X"$as_dir" : 'X\(//\)[^/]' \| \ 20769 X"$as_dir" : 'X\(//\)$' \| \ 20770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20771printf "%s\n" X"$as_dir" | 20772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20773 s//\1/ 20774 q 20775 } 20776 /^X\(\/\/\)[^/].*/{ 20777 s//\1/ 20778 q 20779 } 20780 /^X\(\/\/\)$/{ 20781 s//\1/ 20782 q 20783 } 20784 /^X\(\/\).*/{ 20785 s//\1/ 20786 q 20787 } 20788 s/.*/./; q'` 20789 test -d "$as_dir" && break 20790 done 20791 test -z "$as_dirs" || eval "mkdir $as_dirs" 20792 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20793 20794 20795} # as_fn_mkdir_p 20796if mkdir -p . 2>/dev/null; then 20797 as_mkdir_p='mkdir -p "$as_dir"' 20798else 20799 test -d ./-p && rmdir ./-p 20800 as_mkdir_p=false 20801fi 20802 20803 20804# as_fn_executable_p FILE 20805# ----------------------- 20806# Test if FILE is an executable regular file. 20807as_fn_executable_p () 20808{ 20809 test -f "$1" && test -x "$1" 20810} # as_fn_executable_p 20811as_test_x='test -x' 20812as_executable_p=as_fn_executable_p 20813 20814# Sed expression to map a string onto a valid CPP name. 20815as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20816as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 20817 20818# Sed expression to map a string onto a valid variable name. 20819as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20820as_tr_sh="eval sed '$as_sed_sh'" # deprecated 20821 20822 20823exec 6>&1 20824## ----------------------------------- ## 20825## Main body of $CONFIG_STATUS script. ## 20826## ----------------------------------- ## 20827_ASEOF 20828test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20829 20830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20831# Save the log message, to keep $0 and so on meaningful, and to 20832# report actual input values of CONFIG_FILES etc. instead of their 20833# values after options handling. 20834ac_log=" 20835This file was extended by OpenPAM $as_me 20250531, which was 20836generated by GNU Autoconf 2.72. Invocation command line was 20837 20838 CONFIG_FILES = $CONFIG_FILES 20839 CONFIG_HEADERS = $CONFIG_HEADERS 20840 CONFIG_LINKS = $CONFIG_LINKS 20841 CONFIG_COMMANDS = $CONFIG_COMMANDS 20842 $ $0 $@ 20843 20844on `(hostname || uname -n) 2>/dev/null | sed 1q` 20845" 20846 20847_ACEOF 20848 20849case $ac_config_files in *" 20850"*) set x $ac_config_files; shift; ac_config_files=$*;; 20851esac 20852 20853case $ac_config_headers in *" 20854"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20855esac 20856 20857 20858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20859# Files that config.status was made for. 20860config_files="$ac_config_files" 20861config_headers="$ac_config_headers" 20862config_commands="$ac_config_commands" 20863 20864_ACEOF 20865 20866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20867ac_cs_usage="\ 20868'$as_me' instantiates files and other configuration actions 20869from templates according to the current configuration. Unless the files 20870and actions are specified as TAGs, all are instantiated by default. 20871 20872Usage: $0 [OPTION]... [TAG]... 20873 20874 -h, --help print this help, then exit 20875 -V, --version print version number and configuration settings, then exit 20876 --config print configuration, then exit 20877 -q, --quiet, --silent 20878 do not print progress messages 20879 -d, --debug don't remove temporary files 20880 --recheck update $as_me by reconfiguring in the same conditions 20881 --file=FILE[:TEMPLATE] 20882 instantiate the configuration file FILE 20883 --header=FILE[:TEMPLATE] 20884 instantiate the configuration header FILE 20885 20886Configuration files: 20887$config_files 20888 20889Configuration headers: 20890$config_headers 20891 20892Configuration commands: 20893$config_commands 20894 20895Report bugs to <des@des.dev>. 20896OpenPAM home page: <https://openpam.org/>." 20897 20898_ACEOF 20899ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20900ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20902ac_cs_config='$ac_cs_config_escaped' 20903ac_cs_version="\\ 20904OpenPAM config.status 20250531 20905configured by $0, generated by GNU Autoconf 2.72, 20906 with options \\"\$ac_cs_config\\" 20907 20908Copyright (C) 2023 Free Software Foundation, Inc. 20909This config.status script is free software; the Free Software Foundation 20910gives unlimited permission to copy, distribute and modify it." 20911 20912ac_pwd='$ac_pwd' 20913srcdir='$srcdir' 20914INSTALL='$INSTALL' 20915MKDIR_P='$MKDIR_P' 20916AWK='$AWK' 20917test -n "\$AWK" || AWK=awk 20918_ACEOF 20919 20920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20921# The default lists apply if the user does not specify any file. 20922ac_need_defaults=: 20923while test $# != 0 20924do 20925 case $1 in 20926 --*=?*) 20927 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20929 ac_shift=: 20930 ;; 20931 --*=) 20932 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20933 ac_optarg= 20934 ac_shift=: 20935 ;; 20936 *) 20937 ac_option=$1 20938 ac_optarg=$2 20939 ac_shift=shift 20940 ;; 20941 esac 20942 20943 case $ac_option in 20944 # Handling of the options. 20945 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20946 ac_cs_recheck=: ;; 20947 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20948 printf "%s\n" "$ac_cs_version"; exit ;; 20949 --config | --confi | --conf | --con | --co | --c ) 20950 printf "%s\n" "$ac_cs_config"; exit ;; 20951 --debug | --debu | --deb | --de | --d | -d ) 20952 debug=: ;; 20953 --file | --fil | --fi | --f ) 20954 $ac_shift 20955 case $ac_optarg in 20956 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20957 '') as_fn_error $? "missing file argument" ;; 20958 esac 20959 as_fn_append CONFIG_FILES " '$ac_optarg'" 20960 ac_need_defaults=false;; 20961 --header | --heade | --head | --hea ) 20962 $ac_shift 20963 case $ac_optarg in 20964 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20965 esac 20966 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20967 ac_need_defaults=false;; 20968 --he | --h) 20969 # Conflict between --help and --header 20970 as_fn_error $? "ambiguous option: '$1' 20971Try '$0 --help' for more information.";; 20972 --help | --hel | -h ) 20973 printf "%s\n" "$ac_cs_usage"; exit ;; 20974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20975 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20976 ac_cs_silent=: ;; 20977 20978 # This is an error. 20979 -*) as_fn_error $? "unrecognized option: '$1' 20980Try '$0 --help' for more information." ;; 20981 20982 *) as_fn_append ac_config_targets " $1" 20983 ac_need_defaults=false ;; 20984 20985 esac 20986 shift 20987done 20988 20989ac_configure_extra_args= 20990 20991if $ac_cs_silent; then 20992 exec 6>/dev/null 20993 ac_configure_extra_args="$ac_configure_extra_args --silent" 20994fi 20995 20996_ACEOF 20997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20998if \$ac_cs_recheck; then 20999 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21000 shift 21001 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21002 CONFIG_SHELL='$SHELL' 21003 export CONFIG_SHELL 21004 exec "\$@" 21005fi 21006 21007_ACEOF 21008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21009exec 5>>config.log 21010{ 21011 echo 21012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21013## Running $as_me. ## 21014_ASBOX 21015 printf "%s\n" "$ac_log" 21016} >&5 21017 21018_ACEOF 21019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21020# 21021# INIT-COMMANDS 21022# 21023AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21024 21025 21026# The HP-UX ksh and POSIX shell print the target directory to stdout 21027# if CDPATH is set. 21028(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21029 21030sed_quote_subst='$sed_quote_subst' 21031double_quote_subst='$double_quote_subst' 21032delay_variable_subst='$delay_variable_subst' 21033macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21034macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21035enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21036enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21037pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21038enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21039shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21040SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21041ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21042PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21043host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21044host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21045host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21046build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21047build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21048build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21049SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21050Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21051GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21052EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21053FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21054LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21055NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21056LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21057max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21058ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21059exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21060lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21061lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21062lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21063lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21064lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21065reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21066reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21067FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21068OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21069deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21070file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21071file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21072want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21073DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21074sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21075AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21076lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21077AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21078archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21079STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21080RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21081old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21082old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21083old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21084lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21085CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21086CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21087compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21088GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21089lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21090lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21091lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21092lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21093lt_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"`' 21094lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21095nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21096lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21097lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21098objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21099MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21100lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21101lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21102lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21103lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21104lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21105need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21106MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21107DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21108NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21109LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21110OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21111OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21112libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21113shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21114extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21115archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21116enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21117export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21118whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21119compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21120old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21121old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21122archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21123archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21124module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21125module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21126with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21127allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21128no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21129hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21130hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21131hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21132hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21133hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21134hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21135hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21136inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21137link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21138always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21139export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21140exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21141include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21142prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21143postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21144file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21145variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21146need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21147need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21148version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21149runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21150shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21151shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21152libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21153library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21154soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21155install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21156postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21157postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21158finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21159finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21160hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21161sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21162configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21163configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21164hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21165enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21166enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21167enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21168old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21169striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21170compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21171predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21172postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21173predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21174postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21175compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21176LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21177reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21178reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21179old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21180compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21181GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21182lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21183lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21184lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21185lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21186lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21187archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21188enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21189export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21190whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21191compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21192old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21193old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21194archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21195archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21196module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21197module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21198with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21199allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21200no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21201hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21202hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21203hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21204hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21205hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21206hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21207hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21208inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21209link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21210always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21211export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21212exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21213include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21214prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21215postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21216file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21217hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21218compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21219predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21220postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21221predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21222postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21223compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21224 21225LTCC='$LTCC' 21226LTCFLAGS='$LTCFLAGS' 21227compiler='$compiler_DEFAULT' 21228 21229# A function that is used when there is no print builtin or printf. 21230func_fallback_echo () 21231{ 21232 eval 'cat <<_LTECHO_EOF 21233\$1 21234_LTECHO_EOF' 21235} 21236 21237# Quote evaled strings. 21238for var in SHELL \ 21239ECHO \ 21240PATH_SEPARATOR \ 21241SED \ 21242GREP \ 21243EGREP \ 21244FGREP \ 21245LD \ 21246NM \ 21247LN_S \ 21248lt_SP2NL \ 21249lt_NL2SP \ 21250reload_flag \ 21251FILECMD \ 21252OBJDUMP \ 21253deplibs_check_method \ 21254file_magic_cmd \ 21255file_magic_glob \ 21256want_nocaseglob \ 21257DLLTOOL \ 21258sharedlib_from_linklib_cmd \ 21259AR \ 21260archiver_list_spec \ 21261STRIP \ 21262RANLIB \ 21263CC \ 21264CFLAGS \ 21265compiler \ 21266lt_cv_sys_global_symbol_pipe \ 21267lt_cv_sys_global_symbol_to_cdecl \ 21268lt_cv_sys_global_symbol_to_import \ 21269lt_cv_sys_global_symbol_to_c_name_address \ 21270lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21271lt_cv_nm_interface \ 21272nm_file_list_spec \ 21273lt_cv_truncate_bin \ 21274lt_prog_compiler_no_builtin_flag \ 21275lt_prog_compiler_pic \ 21276lt_prog_compiler_wl \ 21277lt_prog_compiler_static \ 21278lt_cv_prog_compiler_c_o \ 21279need_locks \ 21280MANIFEST_TOOL \ 21281DSYMUTIL \ 21282NMEDIT \ 21283LIPO \ 21284OTOOL \ 21285OTOOL64 \ 21286shrext_cmds \ 21287export_dynamic_flag_spec \ 21288whole_archive_flag_spec \ 21289compiler_needs_object \ 21290with_gnu_ld \ 21291allow_undefined_flag \ 21292no_undefined_flag \ 21293hardcode_libdir_flag_spec \ 21294hardcode_libdir_separator \ 21295exclude_expsyms \ 21296include_expsyms \ 21297file_list_spec \ 21298variables_saved_for_relink \ 21299libname_spec \ 21300library_names_spec \ 21301soname_spec \ 21302install_override_mode \ 21303finish_eval \ 21304old_striplib \ 21305striplib \ 21306compiler_lib_search_dirs \ 21307predep_objects \ 21308postdep_objects \ 21309predeps \ 21310postdeps \ 21311compiler_lib_search_path \ 21312LD_CXX \ 21313reload_flag_CXX \ 21314compiler_CXX \ 21315lt_prog_compiler_no_builtin_flag_CXX \ 21316lt_prog_compiler_pic_CXX \ 21317lt_prog_compiler_wl_CXX \ 21318lt_prog_compiler_static_CXX \ 21319lt_cv_prog_compiler_c_o_CXX \ 21320export_dynamic_flag_spec_CXX \ 21321whole_archive_flag_spec_CXX \ 21322compiler_needs_object_CXX \ 21323with_gnu_ld_CXX \ 21324allow_undefined_flag_CXX \ 21325no_undefined_flag_CXX \ 21326hardcode_libdir_flag_spec_CXX \ 21327hardcode_libdir_separator_CXX \ 21328exclude_expsyms_CXX \ 21329include_expsyms_CXX \ 21330file_list_spec_CXX \ 21331compiler_lib_search_dirs_CXX \ 21332predep_objects_CXX \ 21333postdep_objects_CXX \ 21334predeps_CXX \ 21335postdeps_CXX \ 21336compiler_lib_search_path_CXX; do 21337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21338 *[\\\\\\\`\\"\\\$]*) 21339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21340 ;; 21341 *) 21342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21343 ;; 21344 esac 21345done 21346 21347# Double-quote double-evaled strings. 21348for var in reload_cmds \ 21349old_postinstall_cmds \ 21350old_postuninstall_cmds \ 21351old_archive_cmds \ 21352extract_expsyms_cmds \ 21353old_archive_from_new_cmds \ 21354old_archive_from_expsyms_cmds \ 21355archive_cmds \ 21356archive_expsym_cmds \ 21357module_cmds \ 21358module_expsym_cmds \ 21359export_symbols_cmds \ 21360prelink_cmds \ 21361postlink_cmds \ 21362postinstall_cmds \ 21363postuninstall_cmds \ 21364finish_cmds \ 21365sys_lib_search_path_spec \ 21366configure_time_dlsearch_path \ 21367configure_time_lt_sys_library_path \ 21368reload_cmds_CXX \ 21369old_archive_cmds_CXX \ 21370old_archive_from_new_cmds_CXX \ 21371old_archive_from_expsyms_cmds_CXX \ 21372archive_cmds_CXX \ 21373archive_expsym_cmds_CXX \ 21374module_cmds_CXX \ 21375module_expsym_cmds_CXX \ 21376export_symbols_cmds_CXX \ 21377prelink_cmds_CXX \ 21378postlink_cmds_CXX; do 21379 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21380 *[\\\\\\\`\\"\\\$]*) 21381 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21382 ;; 21383 *) 21384 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21385 ;; 21386 esac 21387done 21388 21389ac_aux_dir='$ac_aux_dir' 21390 21391# See if we are running on zsh, and set the options that allow our 21392# commands through without removal of \ escapes INIT. 21393if test -n "\${ZSH_VERSION+set}"; then 21394 setopt NO_GLOB_SUBST 21395fi 21396 21397 21398 PACKAGE='$PACKAGE' 21399 VERSION='$VERSION' 21400 RM='$RM' 21401 ofile='$ofile' 21402 21403 21404 21405 21406 21407 21408_ACEOF 21409 21410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21411 21412# Handling of arguments. 21413for ac_config_target in $ac_config_targets 21414do 21415 case $ac_config_target in 21416 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21417 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21418 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21419 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21420 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 21421 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;; 21422 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;; 21423 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;; 21424 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21425 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 21426 "freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES freebsd/Makefile" ;; 21427 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21428 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;; 21429 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 21430 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;; 21431 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; 21432 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 21433 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;; 21434 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;; 21435 "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;; 21436 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;; 21437 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; 21438 "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;; 21439 21440 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21441 esac 21442done 21443 21444 21445# If the user did not use the arguments to specify the items to instantiate, 21446# then the envvar interface is used. Set only those that are not. 21447# We use the long form for the default assignment because of an extremely 21448# bizarre bug on SunOS 4.1.3. 21449if $ac_need_defaults; then 21450 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21451 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21452 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21453fi 21454 21455# Have a temporary directory for convenience. Make it in the build tree 21456# simply because there is no reason against having it here, and in addition, 21457# creating and moving files from /tmp can sometimes cause problems. 21458# Hook for its removal unless debugging. 21459# Note that there is a small window in which the directory will not be cleaned: 21460# after its creation but before its name has been assigned to '$tmp'. 21461$debug || 21462{ 21463 tmp= ac_tmp= 21464 trap 'exit_status=$? 21465 : "${ac_tmp:=$tmp}" 21466 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21467' 0 21468 trap 'as_fn_exit 1' 1 2 13 15 21469} 21470# Create a (secure) tmp directory for tmp files. 21471 21472{ 21473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21474 test -d "$tmp" 21475} || 21476{ 21477 tmp=./conf$$-$RANDOM 21478 (umask 077 && mkdir "$tmp") 21479} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21480ac_tmp=$tmp 21481 21482# Set up the scripts for CONFIG_FILES section. 21483# No need to generate them if there are no CONFIG_FILES. 21484# This happens for instance with './config.status config.h'. 21485if test -n "$CONFIG_FILES"; then 21486 21487 21488ac_cr=`echo X | tr X '\015'` 21489# On cygwin, bash can eat \r inside `` if the user requested igncr. 21490# But we know of no other shell where ac_cr would be empty at this 21491# point, so we can use a bashism as a fallback. 21492if test "x$ac_cr" = x; then 21493 eval ac_cr=\$\'\\r\' 21494fi 21495ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21496if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21497 ac_cs_awk_cr='\\r' 21498else 21499 ac_cs_awk_cr=$ac_cr 21500fi 21501 21502echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21503_ACEOF 21504 21505 21506{ 21507 echo "cat >conf$$subs.awk <<_ACEOF" && 21508 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21509 echo "_ACEOF" 21510} >conf$$subs.sh || 21511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21512ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21513ac_delim='%!_!# ' 21514for ac_last_try in false false false false false :; do 21515 . ./conf$$subs.sh || 21516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21517 21518 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21519 if test $ac_delim_n = $ac_delim_num; then 21520 break 21521 elif $ac_last_try; then 21522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21523 else 21524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21525 fi 21526done 21527rm -f conf$$subs.sh 21528 21529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21530cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21531_ACEOF 21532sed -n ' 21533h 21534s/^/S["/; s/!.*/"]=/ 21535p 21536g 21537s/^[^!]*!// 21538:repl 21539t repl 21540s/'"$ac_delim"'$// 21541t delim 21542:nl 21543h 21544s/\(.\{148\}\)..*/\1/ 21545t more1 21546s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21547p 21548n 21549b repl 21550:more1 21551s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21552p 21553g 21554s/.\{148\}// 21555t nl 21556:delim 21557h 21558s/\(.\{148\}\)..*/\1/ 21559t more2 21560s/["\\]/\\&/g; s/^/"/; s/$/"/ 21561p 21562b 21563:more2 21564s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21565p 21566g 21567s/.\{148\}// 21568t delim 21569' <conf$$subs.awk | sed ' 21570/^[^""]/{ 21571 N 21572 s/\n// 21573} 21574' >>$CONFIG_STATUS || ac_write_fail=1 21575rm -f conf$$subs.awk 21576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21577_ACAWK 21578cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21579 for (key in S) S_is_set[key] = 1 21580 FS = "" 21581 21582} 21583{ 21584 line = $ 0 21585 nfields = split(line, field, "@") 21586 substed = 0 21587 len = length(field[1]) 21588 for (i = 2; i < nfields; i++) { 21589 key = field[i] 21590 keylen = length(key) 21591 if (S_is_set[key]) { 21592 value = S[key] 21593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21594 len += length(value) + length(field[++i]) 21595 substed = 1 21596 } else 21597 len += 1 + keylen 21598 } 21599 21600 print line 21601} 21602 21603_ACAWK 21604_ACEOF 21605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21606if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21608else 21609 cat 21610fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21611 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21612_ACEOF 21613 21614# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21615# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21616# trailing colons and then remove the whole line if VPATH becomes empty 21617# (actually we leave an empty line to preserve line numbers). 21618if test "x$srcdir" = x.; then 21619 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21620h 21621s/// 21622s/^/:/ 21623s/[ ]*$/:/ 21624s/:\$(srcdir):/:/g 21625s/:\${srcdir}:/:/g 21626s/:@srcdir@:/:/g 21627s/^:*// 21628s/:*$// 21629x 21630s/\(=[ ]*\).*/\1/ 21631G 21632s/\n// 21633s/^[^=]*=[ ]*$// 21634}' 21635fi 21636 21637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21638fi # test -n "$CONFIG_FILES" 21639 21640# Set up the scripts for CONFIG_HEADERS section. 21641# No need to generate them if there are no CONFIG_HEADERS. 21642# This happens for instance with './config.status Makefile'. 21643if test -n "$CONFIG_HEADERS"; then 21644cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21645BEGIN { 21646_ACEOF 21647 21648# Transform confdefs.h into an awk script 'defines.awk', embedded as 21649# here-document in config.status, that substitutes the proper values into 21650# config.h.in to produce config.h. 21651 21652# Create a delimiter string that does not exist in confdefs.h, to ease 21653# handling of long lines. 21654ac_delim='%!_!# ' 21655for ac_last_try in false false :; do 21656 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21657 if test -z "$ac_tt"; then 21658 break 21659 elif $ac_last_try; then 21660 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21661 else 21662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21663 fi 21664done 21665 21666# For the awk script, D is an array of macro values keyed by name, 21667# likewise P contains macro parameters if any. Preserve backslash 21668# newline sequences. 21669 21670ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21671sed -n ' 21672s/.\{148\}/&'"$ac_delim"'/g 21673t rset 21674:rset 21675s/^[ ]*#[ ]*define[ ][ ]*/ / 21676t def 21677d 21678:def 21679s/\\$// 21680t bsnl 21681s/["\\]/\\&/g 21682s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21683D["\1"]=" \3"/p 21684s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21685d 21686:bsnl 21687s/["\\]/\\&/g 21688s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21689D["\1"]=" \3\\\\\\n"\\/p 21690t cont 21691s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21692t cont 21693d 21694:cont 21695n 21696s/.\{148\}/&'"$ac_delim"'/g 21697t clear 21698:clear 21699s/\\$// 21700t bsnlc 21701s/["\\]/\\&/g; s/^/"/; s/$/"/p 21702d 21703:bsnlc 21704s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21705b cont 21706' <confdefs.h | sed ' 21707s/'"$ac_delim"'/"\\\ 21708"/g' >>$CONFIG_STATUS || ac_write_fail=1 21709 21710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21711 for (key in D) D_is_set[key] = 1 21712 FS = "" 21713} 21714/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21715 line = \$ 0 21716 split(line, arg, " ") 21717 if (arg[1] == "#") { 21718 defundef = arg[2] 21719 mac1 = arg[3] 21720 } else { 21721 defundef = substr(arg[1], 2) 21722 mac1 = arg[2] 21723 } 21724 split(mac1, mac2, "(") #) 21725 macro = mac2[1] 21726 prefix = substr(line, 1, index(line, defundef) - 1) 21727 if (D_is_set[macro]) { 21728 # Preserve the white space surrounding the "#". 21729 print prefix "define", macro P[macro] D[macro] 21730 next 21731 } else { 21732 # Replace #undef with comments. This is necessary, for example, 21733 # in the case of _POSIX_SOURCE, which is predefined and required 21734 # on some systems where configure will not decide to define it. 21735 if (defundef == "undef") { 21736 print "/*", prefix defundef, macro, "*/" 21737 next 21738 } 21739 } 21740} 21741{ print } 21742_ACAWK 21743_ACEOF 21744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21745 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21746fi # test -n "$CONFIG_HEADERS" 21747 21748 21749eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21750shift 21751for ac_tag 21752do 21753 case $ac_tag in 21754 :[FHLC]) ac_mode=$ac_tag; continue;; 21755 esac 21756 case $ac_mode$ac_tag in 21757 :[FHL]*:*);; 21758 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21759 :[FH]-) ac_tag=-:-;; 21760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21761 esac 21762 ac_save_IFS=$IFS 21763 IFS=: 21764 set x $ac_tag 21765 IFS=$ac_save_IFS 21766 shift 21767 ac_file=$1 21768 shift 21769 21770 case $ac_mode in 21771 :L) ac_source=$1;; 21772 :[FH]) 21773 ac_file_inputs= 21774 for ac_f 21775 do 21776 case $ac_f in 21777 -) ac_f="$ac_tmp/stdin";; 21778 *) # Look for the file first in the build tree, then in the source tree 21779 # (if the path is not absolute). The absolute path cannot be DOS-style, 21780 # because $ac_f cannot contain ':'. 21781 test -f "$ac_f" || 21782 case $ac_f in 21783 [\\/$]*) false;; 21784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21785 esac || 21786 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21787 esac 21788 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21789 as_fn_append ac_file_inputs " '$ac_f'" 21790 done 21791 21792 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21793 # use $as_me), people would be surprised to read: 21794 # /* config.h. Generated by config.status. */ 21795 configure_input='Generated from '` 21796 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21797 `' by configure.' 21798 if test x"$ac_file" != x-; then 21799 configure_input="$ac_file. $configure_input" 21800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21801printf "%s\n" "$as_me: creating $ac_file" >&6;} 21802 fi 21803 # Neutralize special characters interpreted by sed in replacement strings. 21804 case $configure_input in #( 21805 *\&* | *\|* | *\\* ) 21806 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21807 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21808 *) ac_sed_conf_input=$configure_input;; 21809 esac 21810 21811 case $ac_tag in 21812 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21814 esac 21815 ;; 21816 esac 21817 21818 ac_dir=`$as_dirname -- "$ac_file" || 21819$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21820 X"$ac_file" : 'X\(//\)[^/]' \| \ 21821 X"$ac_file" : 'X\(//\)$' \| \ 21822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21823printf "%s\n" X"$ac_file" | 21824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21825 s//\1/ 21826 q 21827 } 21828 /^X\(\/\/\)[^/].*/{ 21829 s//\1/ 21830 q 21831 } 21832 /^X\(\/\/\)$/{ 21833 s//\1/ 21834 q 21835 } 21836 /^X\(\/\).*/{ 21837 s//\1/ 21838 q 21839 } 21840 s/.*/./; q'` 21841 as_dir="$ac_dir"; as_fn_mkdir_p 21842 ac_builddir=. 21843 21844case "$ac_dir" in 21845.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21846*) 21847 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21848 # A ".." for each directory in $ac_dir_suffix. 21849 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21850 case $ac_top_builddir_sub in 21851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21853 esac ;; 21854esac 21855ac_abs_top_builddir=$ac_pwd 21856ac_abs_builddir=$ac_pwd$ac_dir_suffix 21857# for backward compatibility: 21858ac_top_builddir=$ac_top_build_prefix 21859 21860case $srcdir in 21861 .) # We are building in place. 21862 ac_srcdir=. 21863 ac_top_srcdir=$ac_top_builddir_sub 21864 ac_abs_top_srcdir=$ac_pwd ;; 21865 [\\/]* | ?:[\\/]* ) # Absolute name. 21866 ac_srcdir=$srcdir$ac_dir_suffix; 21867 ac_top_srcdir=$srcdir 21868 ac_abs_top_srcdir=$srcdir ;; 21869 *) # Relative name. 21870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21871 ac_top_srcdir=$ac_top_build_prefix$srcdir 21872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21873esac 21874ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21875 21876 21877 case $ac_mode in 21878 :F) 21879 # 21880 # CONFIG_FILE 21881 # 21882 21883 case $INSTALL in 21884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21885 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21886 esac 21887 ac_MKDIR_P=$MKDIR_P 21888 case $MKDIR_P in 21889 [\\/$]* | ?:[\\/]* ) ;; 21890 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21891 esac 21892_ACEOF 21893 21894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21895# If the template does not know about datarootdir, expand it. 21896# FIXME: This hack should be removed a few years after 2.60. 21897ac_datarootdir_hack=; ac_datarootdir_seen= 21898ac_sed_dataroot=' 21899/datarootdir/ { 21900 p 21901 q 21902} 21903/@datadir@/p 21904/@docdir@/p 21905/@infodir@/p 21906/@localedir@/p 21907/@mandir@/p' 21908case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21909*datarootdir*) ac_datarootdir_seen=yes;; 21910*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21912printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21913_ACEOF 21914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21915 ac_datarootdir_hack=' 21916 s&@datadir@&$datadir&g 21917 s&@docdir@&$docdir&g 21918 s&@infodir@&$infodir&g 21919 s&@localedir@&$localedir&g 21920 s&@mandir@&$mandir&g 21921 s&\\\${datarootdir}&$datarootdir&g' ;; 21922esac 21923_ACEOF 21924 21925# Neutralize VPATH when '$srcdir' = '.'. 21926# Shell code in configure.ac might set extrasub. 21927# FIXME: do we really want to maintain this feature? 21928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21929ac_sed_extra="$ac_vpsub 21930$extrasub 21931_ACEOF 21932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21933:t 21934/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21935s|@configure_input@|$ac_sed_conf_input|;t t 21936s&@top_builddir@&$ac_top_builddir_sub&;t t 21937s&@top_build_prefix@&$ac_top_build_prefix&;t t 21938s&@srcdir@&$ac_srcdir&;t t 21939s&@abs_srcdir@&$ac_abs_srcdir&;t t 21940s&@top_srcdir@&$ac_top_srcdir&;t t 21941s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21942s&@builddir@&$ac_builddir&;t t 21943s&@abs_builddir@&$ac_abs_builddir&;t t 21944s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21945s&@INSTALL@&$ac_INSTALL&;t t 21946s&@MKDIR_P@&$ac_MKDIR_P&;t t 21947$ac_datarootdir_hack 21948" 21949eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21951 21952test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21955 "$ac_tmp/out"`; test -z "$ac_out"; } && 21956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21957which seems to be undefined. Please make sure it is defined" >&5 21958printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21959which seems to be undefined. Please make sure it is defined" >&2;} 21960 21961 rm -f "$ac_tmp/stdin" 21962 case $ac_file in 21963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21965 esac \ 21966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21967 ;; 21968 :H) 21969 # 21970 # CONFIG_HEADER 21971 # 21972 if test x"$ac_file" != x-; then 21973 { 21974 printf "%s\n" "/* $configure_input */" >&1 \ 21975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21976 } >"$ac_tmp/config.h" \ 21977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21978 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21980printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21981 else 21982 rm -f "$ac_file" 21983 mv "$ac_tmp/config.h" "$ac_file" \ 21984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21985 fi 21986 else 21987 printf "%s\n" "/* $configure_input */" >&1 \ 21988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21989 || as_fn_error $? "could not create -" "$LINENO" 5 21990 fi 21991# Compute "$ac_file"'s index in $config_headers. 21992_am_arg="$ac_file" 21993_am_stamp_count=1 21994for _am_header in $config_headers :; do 21995 case $_am_header in 21996 $_am_arg | $_am_arg:* ) 21997 break ;; 21998 * ) 21999 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22000 esac 22001done 22002echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22003$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22004 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22005 X"$_am_arg" : 'X\(//\)$' \| \ 22006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22007printf "%s\n" X"$_am_arg" | 22008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22009 s//\1/ 22010 q 22011 } 22012 /^X\(\/\/\)[^/].*/{ 22013 s//\1/ 22014 q 22015 } 22016 /^X\(\/\/\)$/{ 22017 s//\1/ 22018 q 22019 } 22020 /^X\(\/\).*/{ 22021 s//\1/ 22022 q 22023 } 22024 s/.*/./; q'`/stamp-h$_am_stamp_count 22025 ;; 22026 22027 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22028printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22029 ;; 22030 esac 22031 22032 22033 case $ac_file$ac_mode in 22034 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22035 # Older Autoconf quotes --file arguments for eval, but not when files 22036 # are listed without --file. Let's play safe and only enable the eval 22037 # if we detect the quoting. 22038 # TODO: see whether this extra hack can be removed once we start 22039 # requiring Autoconf 2.70 or later. 22040 case $CONFIG_FILES in #( 22041 *\'*) : 22042 eval set x "$CONFIG_FILES" ;; #( 22043 *) : 22044 set x $CONFIG_FILES ;; #( 22045 *) : 22046 ;; 22047esac 22048 shift 22049 # Used to flag and report bootstrapping failures. 22050 am_rc=0 22051 for am_mf 22052 do 22053 # Strip MF so we end up with the name of the file. 22054 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22055 # Check whether this is an Automake generated Makefile which includes 22056 # dependency-tracking related rules and includes. 22057 # Grep'ing the whole file directly is not great: AIX grep has a line 22058 # limit of 2048, but all sed's we know have understand at least 4000. 22059 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22060 || continue 22061 am_dirpart=`$as_dirname -- "$am_mf" || 22062$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22063 X"$am_mf" : 'X\(//\)[^/]' \| \ 22064 X"$am_mf" : 'X\(//\)$' \| \ 22065 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22066printf "%s\n" X"$am_mf" | 22067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22068 s//\1/ 22069 q 22070 } 22071 /^X\(\/\/\)[^/].*/{ 22072 s//\1/ 22073 q 22074 } 22075 /^X\(\/\/\)$/{ 22076 s//\1/ 22077 q 22078 } 22079 /^X\(\/\).*/{ 22080 s//\1/ 22081 q 22082 } 22083 s/.*/./; q'` 22084 am_filepart=`$as_basename -- "$am_mf" || 22085$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22086 X"$am_mf" : 'X\(//\)$' \| \ 22087 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22088printf "%s\n" X/"$am_mf" | 22089 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22090 s//\1/ 22091 q 22092 } 22093 /^X\/\(\/\/\)$/{ 22094 s//\1/ 22095 q 22096 } 22097 /^X\/\(\/\).*/{ 22098 s//\1/ 22099 q 22100 } 22101 s/.*/./; q'` 22102 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22103 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22104 | $MAKE -f - am--depfiles" >&5 22105 (cd "$am_dirpart" \ 22106 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22107 | $MAKE -f - am--depfiles) >&5 2>&5 22108 ac_status=$? 22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22110 (exit $ac_status); } || am_rc=$? 22111 done 22112 if test $am_rc -ne 0; then 22113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22114printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22115as_fn_error $? "Something went wrong bootstrapping makefile fragments 22116 for automatic dependency tracking. If GNU make was not used, consider 22117 re-running the configure script with MAKE=\"gmake\" (or whatever is 22118 necessary). You can also try re-running configure with the 22119 '--disable-dependency-tracking' option to at least be able to build 22120 the package (albeit without support for automatic dependency tracking). 22121See 'config.log' for more details" "$LINENO" 5; } 22122 fi 22123 { am_dirpart=; unset am_dirpart;} 22124 { am_filepart=; unset am_filepart;} 22125 { am_mf=; unset am_mf;} 22126 { am_rc=; unset am_rc;} 22127 rm -f conftest-deps.mk 22128} 22129 ;; 22130 "libtool":C) 22131 22132 # See if we are running on zsh, and set the options that allow our 22133 # commands through without removal of \ escapes. 22134 if test -n "${ZSH_VERSION+set}"; then 22135 setopt NO_GLOB_SUBST 22136 fi 22137 22138 cfgfile=${ofile}T 22139 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22140 $RM "$cfgfile" 22141 22142 cat <<_LT_EOF >> "$cfgfile" 22143#! $SHELL 22144# Generated automatically by $as_me ($PACKAGE) $VERSION 22145# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22146 22147# Provide generalized library-building support services. 22148# Written by Gordon Matzigkeit, 1996 22149 22150# Copyright (C) 2024 Free Software Foundation, Inc. 22151# This is free software; see the source for copying conditions. There is NO 22152# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22153 22154# GNU Libtool is free software; you can redistribute it and/or modify 22155# it under the terms of the GNU General Public License as published by 22156# the Free Software Foundation; either version 2 of the License, or 22157# (at your option) any later version. 22158# 22159# As a special exception to the GNU General Public License, if you 22160# distribute this file as part of a program or library that is built 22161# using GNU Libtool, you may include this file under the same 22162# distribution terms that you use for the rest of that program. 22163# 22164# GNU Libtool is distributed in the hope that it will be useful, but 22165# WITHOUT ANY WARRANTY; without even the implied warranty of 22166# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22167# GNU General Public License for more details. 22168# 22169# You should have received a copy of the GNU General Public License 22170# along with this program. If not, see <http://www.gnu.org/licenses/>. 22171 22172 22173# The names of the tagged configurations supported by this script. 22174available_tags='CXX ' 22175 22176# Configured defaults for sys_lib_dlsearch_path munging. 22177: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22178 22179# ### BEGIN LIBTOOL CONFIG 22180 22181# Which release of libtool.m4 was used? 22182macro_version=$macro_version 22183macro_revision=$macro_revision 22184 22185# Whether or not to build static libraries. 22186build_old_libs=$enable_static 22187 22188# Whether or not to build shared libraries. 22189build_libtool_libs=$enable_shared 22190 22191# What type of objects to build. 22192pic_mode=$pic_mode 22193 22194# Whether or not to optimize for fast installation. 22195fast_install=$enable_fast_install 22196 22197# Shared archive member basename,for filename based shared library versioning on AIX. 22198shared_archive_member_spec=$shared_archive_member_spec 22199 22200# Shell to use when invoking shell scripts. 22201SHELL=$lt_SHELL 22202 22203# An echo program that protects backslashes. 22204ECHO=$lt_ECHO 22205 22206# The PATH separator for the build system. 22207PATH_SEPARATOR=$lt_PATH_SEPARATOR 22208 22209# The host system. 22210host_alias=$host_alias 22211host=$host 22212host_os=$host_os 22213 22214# The build system. 22215build_alias=$build_alias 22216build=$build 22217build_os=$build_os 22218 22219# A sed program that does not truncate output. 22220SED=$lt_SED 22221 22222# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22223Xsed="\$SED -e 1s/^X//" 22224 22225# A grep program that handles long lines. 22226GREP=$lt_GREP 22227 22228# An ERE matcher. 22229EGREP=$lt_EGREP 22230 22231# A literal string matcher. 22232FGREP=$lt_FGREP 22233 22234# A BSD- or MS-compatible name lister. 22235NM=$lt_NM 22236 22237# Whether we need soft or hard links. 22238LN_S=$lt_LN_S 22239 22240# What is the maximum length of a command? 22241max_cmd_len=$max_cmd_len 22242 22243# Object file suffix (normally "o"). 22244objext=$ac_objext 22245 22246# Executable file suffix (normally ""). 22247exeext=$exeext 22248 22249# whether the shell understands "unset". 22250lt_unset=$lt_unset 22251 22252# turn spaces into newlines. 22253SP2NL=$lt_lt_SP2NL 22254 22255# turn newlines into spaces. 22256NL2SP=$lt_lt_NL2SP 22257 22258# convert \$build file names to \$host format. 22259to_host_file_cmd=$lt_cv_to_host_file_cmd 22260 22261# convert \$build files to toolchain format. 22262to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22263 22264# A file(cmd) program that detects file types. 22265FILECMD=$lt_FILECMD 22266 22267# An object symbol dumper. 22268OBJDUMP=$lt_OBJDUMP 22269 22270# Method to check whether dependent libraries are shared objects. 22271deplibs_check_method=$lt_deplibs_check_method 22272 22273# Command to use when deplibs_check_method = "file_magic". 22274file_magic_cmd=$lt_file_magic_cmd 22275 22276# How to find potential files when deplibs_check_method = "file_magic". 22277file_magic_glob=$lt_file_magic_glob 22278 22279# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22280want_nocaseglob=$lt_want_nocaseglob 22281 22282# DLL creation program. 22283DLLTOOL=$lt_DLLTOOL 22284 22285# Command to associate shared and link libraries. 22286sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22287 22288# The archiver. 22289AR=$lt_AR 22290 22291# Flags to create an archive (by configure). 22292lt_ar_flags=$lt_ar_flags 22293 22294# Flags to create an archive. 22295AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22296 22297# How to feed a file listing to the archiver. 22298archiver_list_spec=$lt_archiver_list_spec 22299 22300# A symbol stripping program. 22301STRIP=$lt_STRIP 22302 22303# Commands used to install an old-style archive. 22304RANLIB=$lt_RANLIB 22305old_postinstall_cmds=$lt_old_postinstall_cmds 22306old_postuninstall_cmds=$lt_old_postuninstall_cmds 22307 22308# Whether to use a lock for old archive extraction. 22309lock_old_archive_extraction=$lock_old_archive_extraction 22310 22311# A C compiler. 22312LTCC=$lt_CC 22313 22314# LTCC compiler flags. 22315LTCFLAGS=$lt_CFLAGS 22316 22317# Take the output of nm and produce a listing of raw symbols and C names. 22318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22319 22320# Transform the output of nm in a proper C declaration. 22321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22322 22323# Transform the output of nm into a list of symbols to manually relocate. 22324global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22325 22326# Transform the output of nm in a C name address pair. 22327global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22328 22329# Transform the output of nm in a C name address pair when lib prefix is needed. 22330global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22331 22332# The name lister interface. 22333nm_interface=$lt_lt_cv_nm_interface 22334 22335# Specify filename containing input files for \$NM. 22336nm_file_list_spec=$lt_nm_file_list_spec 22337 22338# The root where to search for dependent libraries,and where our libraries should be installed. 22339lt_sysroot=$lt_sysroot 22340 22341# Command to truncate a binary pipe. 22342lt_truncate_bin=$lt_lt_cv_truncate_bin 22343 22344# The name of the directory that contains temporary libtool files. 22345objdir=$objdir 22346 22347# Used to examine libraries when file_magic_cmd begins with "file". 22348MAGIC_CMD=$MAGIC_CMD 22349 22350# Must we lock files when doing compilation? 22351need_locks=$lt_need_locks 22352 22353# Manifest tool. 22354MANIFEST_TOOL=$lt_MANIFEST_TOOL 22355 22356# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22357DSYMUTIL=$lt_DSYMUTIL 22358 22359# Tool to change global to local symbols on Mac OS X. 22360NMEDIT=$lt_NMEDIT 22361 22362# Tool to manipulate fat objects and archives on Mac OS X. 22363LIPO=$lt_LIPO 22364 22365# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22366OTOOL=$lt_OTOOL 22367 22368# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22369OTOOL64=$lt_OTOOL64 22370 22371# Old archive suffix (normally "a"). 22372libext=$libext 22373 22374# Shared library suffix (normally ".so"). 22375shrext_cmds=$lt_shrext_cmds 22376 22377# The commands to extract the exported symbol list from a shared archive. 22378extract_expsyms_cmds=$lt_extract_expsyms_cmds 22379 22380# Variables whose values should be saved in libtool wrapper scripts and 22381# restored at link time. 22382variables_saved_for_relink=$lt_variables_saved_for_relink 22383 22384# Do we need the "lib" prefix for modules? 22385need_lib_prefix=$need_lib_prefix 22386 22387# Do we need a version for libraries? 22388need_version=$need_version 22389 22390# Library versioning type. 22391version_type=$version_type 22392 22393# Shared library runtime path variable. 22394runpath_var=$runpath_var 22395 22396# Shared library path variable. 22397shlibpath_var=$shlibpath_var 22398 22399# Is shlibpath searched before the hard-coded library search path? 22400shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22401 22402# Format of library name prefix. 22403libname_spec=$lt_libname_spec 22404 22405# List of archive names. First name is the real one, the rest are links. 22406# The last name is the one that the linker finds with -lNAME 22407library_names_spec=$lt_library_names_spec 22408 22409# The coded name of the library, if different from the real name. 22410soname_spec=$lt_soname_spec 22411 22412# Permission mode override for installation of shared libraries. 22413install_override_mode=$lt_install_override_mode 22414 22415# Command to use after installation of a shared archive. 22416postinstall_cmds=$lt_postinstall_cmds 22417 22418# Command to use after uninstallation of a shared archive. 22419postuninstall_cmds=$lt_postuninstall_cmds 22420 22421# Commands used to finish a libtool library installation in a directory. 22422finish_cmds=$lt_finish_cmds 22423 22424# As "finish_cmds", except a single script fragment to be evaled but 22425# not shown. 22426finish_eval=$lt_finish_eval 22427 22428# Whether we should hardcode library paths into libraries. 22429hardcode_into_libs=$hardcode_into_libs 22430 22431# Compile-time system search path for libraries. 22432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22433 22434# Detected run-time system search path for libraries. 22435sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22436 22437# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22438configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22439 22440# Whether dlopen is supported. 22441dlopen_support=$enable_dlopen 22442 22443# Whether dlopen of programs is supported. 22444dlopen_self=$enable_dlopen_self 22445 22446# Whether dlopen of statically linked programs is supported. 22447dlopen_self_static=$enable_dlopen_self_static 22448 22449# Commands to strip libraries. 22450old_striplib=$lt_old_striplib 22451striplib=$lt_striplib 22452 22453 22454# The linker used to build libraries. 22455LD=$lt_LD 22456 22457# How to create reloadable object files. 22458reload_flag=$lt_reload_flag 22459reload_cmds=$lt_reload_cmds 22460 22461# Commands used to build an old-style archive. 22462old_archive_cmds=$lt_old_archive_cmds 22463 22464# A language specific compiler. 22465CC=$lt_compiler 22466 22467# Is the compiler the GNU compiler? 22468with_gcc=$GCC 22469 22470# Compiler flag to turn off builtin functions. 22471no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22472 22473# Additional compiler flags for building library objects. 22474pic_flag=$lt_lt_prog_compiler_pic 22475 22476# How to pass a linker flag through the compiler. 22477wl=$lt_lt_prog_compiler_wl 22478 22479# Compiler flag to prevent dynamic linking. 22480link_static_flag=$lt_lt_prog_compiler_static 22481 22482# Does compiler simultaneously support -c and -o options? 22483compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22484 22485# Whether or not to add -lc for building shared libraries. 22486build_libtool_need_lc=$archive_cmds_need_lc 22487 22488# Whether or not to disallow shared libs when runtime libs are static. 22489allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22490 22491# Compiler flag to allow reflexive dlopens. 22492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22493 22494# Compiler flag to generate shared objects directly from archives. 22495whole_archive_flag_spec=$lt_whole_archive_flag_spec 22496 22497# Whether the compiler copes with passing no objects directly. 22498compiler_needs_object=$lt_compiler_needs_object 22499 22500# Create an old-style archive from a shared archive. 22501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22502 22503# Create a temporary old-style archive to link instead of a shared archive. 22504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22505 22506# Commands used to build a shared archive. 22507archive_cmds=$lt_archive_cmds 22508archive_expsym_cmds=$lt_archive_expsym_cmds 22509 22510# Commands used to build a loadable module if different from building 22511# a shared archive. 22512module_cmds=$lt_module_cmds 22513module_expsym_cmds=$lt_module_expsym_cmds 22514 22515# Whether we are building with GNU ld or not. 22516with_gnu_ld=$lt_with_gnu_ld 22517 22518# Flag that allows shared libraries with undefined symbols to be built. 22519allow_undefined_flag=$lt_allow_undefined_flag 22520 22521# Flag that enforces no undefined symbols. 22522no_undefined_flag=$lt_no_undefined_flag 22523 22524# Flag to hardcode \$libdir into a binary during linking. 22525# This must work even if \$libdir does not exist 22526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22527 22528# Whether we need a single "-rpath" flag with a separated argument. 22529hardcode_libdir_separator=$lt_hardcode_libdir_separator 22530 22531# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22532# DIR into the resulting binary. 22533hardcode_direct=$hardcode_direct 22534 22535# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22536# DIR into the resulting binary and the resulting library dependency is 22537# "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22538# library is relocated. 22539hardcode_direct_absolute=$hardcode_direct_absolute 22540 22541# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22542# into the resulting binary. 22543hardcode_minus_L=$hardcode_minus_L 22544 22545# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22546# into the resulting binary. 22547hardcode_shlibpath_var=$hardcode_shlibpath_var 22548 22549# Set to "yes" if building a shared library automatically hardcodes DIR 22550# into the library and all subsequent libraries and executables linked 22551# against it. 22552hardcode_automatic=$hardcode_automatic 22553 22554# Set to yes if linker adds runtime paths of dependent libraries 22555# to runtime path list. 22556inherit_rpath=$inherit_rpath 22557 22558# Whether libtool must link a program against all its dependency libraries. 22559link_all_deplibs=$link_all_deplibs 22560 22561# Set to "yes" if exported symbols are required. 22562always_export_symbols=$always_export_symbols 22563 22564# The commands to list exported symbols. 22565export_symbols_cmds=$lt_export_symbols_cmds 22566 22567# Symbols that should not be listed in the preloaded symbols. 22568exclude_expsyms=$lt_exclude_expsyms 22569 22570# Symbols that must always be exported. 22571include_expsyms=$lt_include_expsyms 22572 22573# Commands necessary for linking programs (against libraries) with templates. 22574prelink_cmds=$lt_prelink_cmds 22575 22576# Commands necessary for finishing linking programs. 22577postlink_cmds=$lt_postlink_cmds 22578 22579# Specify filename containing input files. 22580file_list_spec=$lt_file_list_spec 22581 22582# How to hardcode a shared library path into an executable. 22583hardcode_action=$hardcode_action 22584 22585# The directories searched by this compiler when creating a shared library. 22586compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22587 22588# Dependencies to place before and after the objects being linked to 22589# create a shared library. 22590predep_objects=$lt_predep_objects 22591postdep_objects=$lt_postdep_objects 22592predeps=$lt_predeps 22593postdeps=$lt_postdeps 22594 22595# The library search path used internally by the compiler when linking 22596# a shared library. 22597compiler_lib_search_path=$lt_compiler_lib_search_path 22598 22599# ### END LIBTOOL CONFIG 22600 22601_LT_EOF 22602 22603 cat <<'_LT_EOF' >> "$cfgfile" 22604 22605# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22606 22607# func_munge_path_list VARIABLE PATH 22608# ----------------------------------- 22609# VARIABLE is name of variable containing _space_ separated list of 22610# directories to be munged by the contents of PATH, which is string 22611# having a format: 22612# "DIR[:DIR]:" 22613# string "DIR[ DIR]" will be prepended to VARIABLE 22614# ":DIR[:DIR]" 22615# string "DIR[ DIR]" will be appended to VARIABLE 22616# "DIRP[:DIRP]::[DIRA:]DIRA" 22617# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22618# "DIRA[ DIRA]" will be appended to VARIABLE 22619# "DIR[:DIR]" 22620# VARIABLE will be replaced by "DIR[ DIR]" 22621func_munge_path_list () 22622{ 22623 case x$2 in 22624 x) 22625 ;; 22626 *:) 22627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22628 ;; 22629 x:*) 22630 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22631 ;; 22632 *::*) 22633 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22634 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22635 ;; 22636 *) 22637 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22638 ;; 22639 esac 22640} 22641 22642 22643# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22644func_cc_basename () 22645{ 22646 for cc_temp in $*""; do 22647 case $cc_temp in 22648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22650 \-*) ;; 22651 *) break;; 22652 esac 22653 done 22654 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22655} 22656 22657 22658# ### END FUNCTIONS SHARED WITH CONFIGURE 22659 22660_LT_EOF 22661 22662 case $host_os in 22663 aix3*) 22664 cat <<\_LT_EOF >> "$cfgfile" 22665# AIX sometimes has problems with the GCC collect2 program. For some 22666# reason, if we set the COLLECT_NAMES environment variable, the problems 22667# vanish in a puff of smoke. 22668if test set != "${COLLECT_NAMES+set}"; then 22669 COLLECT_NAMES= 22670 export COLLECT_NAMES 22671fi 22672_LT_EOF 22673 ;; 22674 esac 22675 22676 22677 22678ltmain=$ac_aux_dir/ltmain.sh 22679 22680 22681 # We use sed instead of cat because bash on DJGPP gets confused if 22682 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22683 # text mode, it properly converts lines to CR/LF. This bash problem 22684 # is reportedly fixed, but why not run on old versions too? 22685 $SED '$q' "$ltmain" >> "$cfgfile" \ 22686 || (rm -f "$cfgfile"; exit 1) 22687 22688 mv -f "$cfgfile" "$ofile" || 22689 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22690 chmod +x "$ofile" 22691 22692 22693 cat <<_LT_EOF >> "$ofile" 22694 22695# ### BEGIN LIBTOOL TAG CONFIG: CXX 22696 22697# The linker used to build libraries. 22698LD=$lt_LD_CXX 22699 22700# How to create reloadable object files. 22701reload_flag=$lt_reload_flag_CXX 22702reload_cmds=$lt_reload_cmds_CXX 22703 22704# Commands used to build an old-style archive. 22705old_archive_cmds=$lt_old_archive_cmds_CXX 22706 22707# A language specific compiler. 22708CC=$lt_compiler_CXX 22709 22710# Is the compiler the GNU compiler? 22711with_gcc=$GCC_CXX 22712 22713# Compiler flag to turn off builtin functions. 22714no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22715 22716# Additional compiler flags for building library objects. 22717pic_flag=$lt_lt_prog_compiler_pic_CXX 22718 22719# How to pass a linker flag through the compiler. 22720wl=$lt_lt_prog_compiler_wl_CXX 22721 22722# Compiler flag to prevent dynamic linking. 22723link_static_flag=$lt_lt_prog_compiler_static_CXX 22724 22725# Does compiler simultaneously support -c and -o options? 22726compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22727 22728# Whether or not to add -lc for building shared libraries. 22729build_libtool_need_lc=$archive_cmds_need_lc_CXX 22730 22731# Whether or not to disallow shared libs when runtime libs are static. 22732allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22733 22734# Compiler flag to allow reflexive dlopens. 22735export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22736 22737# Compiler flag to generate shared objects directly from archives. 22738whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22739 22740# Whether the compiler copes with passing no objects directly. 22741compiler_needs_object=$lt_compiler_needs_object_CXX 22742 22743# Create an old-style archive from a shared archive. 22744old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22745 22746# Create a temporary old-style archive to link instead of a shared archive. 22747old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22748 22749# Commands used to build a shared archive. 22750archive_cmds=$lt_archive_cmds_CXX 22751archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22752 22753# Commands used to build a loadable module if different from building 22754# a shared archive. 22755module_cmds=$lt_module_cmds_CXX 22756module_expsym_cmds=$lt_module_expsym_cmds_CXX 22757 22758# Whether we are building with GNU ld or not. 22759with_gnu_ld=$lt_with_gnu_ld_CXX 22760 22761# Flag that allows shared libraries with undefined symbols to be built. 22762allow_undefined_flag=$lt_allow_undefined_flag_CXX 22763 22764# Flag that enforces no undefined symbols. 22765no_undefined_flag=$lt_no_undefined_flag_CXX 22766 22767# Flag to hardcode \$libdir into a binary during linking. 22768# This must work even if \$libdir does not exist 22769hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22770 22771# Whether we need a single "-rpath" flag with a separated argument. 22772hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22773 22774# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22775# DIR into the resulting binary. 22776hardcode_direct=$hardcode_direct_CXX 22777 22778# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22779# DIR into the resulting binary and the resulting library dependency is 22780# "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22781# library is relocated. 22782hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22783 22784# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22785# into the resulting binary. 22786hardcode_minus_L=$hardcode_minus_L_CXX 22787 22788# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22789# into the resulting binary. 22790hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22791 22792# Set to "yes" if building a shared library automatically hardcodes DIR 22793# into the library and all subsequent libraries and executables linked 22794# against it. 22795hardcode_automatic=$hardcode_automatic_CXX 22796 22797# Set to yes if linker adds runtime paths of dependent libraries 22798# to runtime path list. 22799inherit_rpath=$inherit_rpath_CXX 22800 22801# Whether libtool must link a program against all its dependency libraries. 22802link_all_deplibs=$link_all_deplibs_CXX 22803 22804# Set to "yes" if exported symbols are required. 22805always_export_symbols=$always_export_symbols_CXX 22806 22807# The commands to list exported symbols. 22808export_symbols_cmds=$lt_export_symbols_cmds_CXX 22809 22810# Symbols that should not be listed in the preloaded symbols. 22811exclude_expsyms=$lt_exclude_expsyms_CXX 22812 22813# Symbols that must always be exported. 22814include_expsyms=$lt_include_expsyms_CXX 22815 22816# Commands necessary for linking programs (against libraries) with templates. 22817prelink_cmds=$lt_prelink_cmds_CXX 22818 22819# Commands necessary for finishing linking programs. 22820postlink_cmds=$lt_postlink_cmds_CXX 22821 22822# Specify filename containing input files. 22823file_list_spec=$lt_file_list_spec_CXX 22824 22825# How to hardcode a shared library path into an executable. 22826hardcode_action=$hardcode_action_CXX 22827 22828# The directories searched by this compiler when creating a shared library. 22829compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22830 22831# Dependencies to place before and after the objects being linked to 22832# create a shared library. 22833predep_objects=$lt_predep_objects_CXX 22834postdep_objects=$lt_postdep_objects_CXX 22835predeps=$lt_predeps_CXX 22836postdeps=$lt_postdeps_CXX 22837 22838# The library search path used internally by the compiler when linking 22839# a shared library. 22840compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22841 22842# ### END LIBTOOL TAG CONFIG: CXX 22843_LT_EOF 22844 22845 ;; 22846 "misc/coverity.sh":F) chmod +x misc/coverity.sh ;; 22847 22848 esac 22849done # for ac_tag 22850 22851 22852as_fn_exit 0 22853_ACEOF 22854ac_clean_files=$ac_clean_files_save 22855 22856test $ac_write_fail = 0 || 22857 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22858 22859 22860# configure is writing to config.log, and then calls config.status. 22861# config.status does its own redirection, appending to config.log. 22862# Unfortunately, on DOS this fails, as config.log is still kept open 22863# by configure, so config.status won't be able to write to it; its 22864# output is simply discarded. So we exec the FD to /dev/null, 22865# effectively closing config.log, so it can be properly (re)opened and 22866# appended to by config.status. When coming back to configure, we 22867# need to make the FD available again. 22868if test "$no_create" != yes; then 22869 ac_cs_success=: 22870 ac_config_status_args= 22871 test "$silent" = yes && 22872 ac_config_status_args="$ac_config_status_args --quiet" 22873 exec 5>/dev/null 22874 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22875 exec 5>>config.log 22876 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22877 # would make configure fail if this is the last instruction. 22878 $ac_cs_success || as_fn_exit 1 22879fi 22880if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22882printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22883fi 22884 22885 22886