1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for OpenPAM 20230627. 4# 5# Report bugs to <des@des.no>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and des@des.no about 279$0: your system, including any error possibly output before 280$0: this message. Then install a modern shell, or manually 281$0: run the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323# as_fn_nop 324# --------- 325# Do nothing but, unlike ":", preserve the value of $?. 326as_fn_nop () 327{ 328 return $? 329} 330as_nop=as_fn_nop 331 332# as_fn_mkdir_p 333# ------------- 334# Create "$as_dir" as a directory, including parents if necessary. 335as_fn_mkdir_p () 336{ 337 338 case $as_dir in #( 339 -*) as_dir=./$as_dir;; 340 esac 341 test -d "$as_dir" || eval $as_mkdir_p || { 342 as_dirs= 343 while :; do 344 case $as_dir in #( 345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 346 *) as_qdir=$as_dir;; 347 esac 348 as_dirs="'$as_qdir' $as_dirs" 349 as_dir=`$as_dirname -- "$as_dir" || 350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 351 X"$as_dir" : 'X\(//\)[^/]' \| \ 352 X"$as_dir" : 'X\(//\)$' \| \ 353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 354printf "%s\n" X"$as_dir" | 355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\/\)[^/].*/{ 360 s//\1/ 361 q 362 } 363 /^X\(\/\/\)$/{ 364 s//\1/ 365 q 366 } 367 /^X\(\/\).*/{ 368 s//\1/ 369 q 370 } 371 s/.*/./; q'` 372 test -d "$as_dir" && break 373 done 374 test -z "$as_dirs" || eval "mkdir $as_dirs" 375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 376 377 378} # as_fn_mkdir_p 379 380# as_fn_executable_p FILE 381# ----------------------- 382# Test if FILE is an executable regular file. 383as_fn_executable_p () 384{ 385 test -f "$1" && test -x "$1" 386} # as_fn_executable_p 387# as_fn_append VAR VALUE 388# ---------------------- 389# Append the text in VALUE to the end of the definition contained in VAR. Take 390# advantage of any shell optimizations that allow amortized linear growth over 391# repeated appends, instead of the typical quadratic growth present in naive 392# implementations. 393if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 394then : 395 eval 'as_fn_append () 396 { 397 eval $1+=\$2 398 }' 399else $as_nop 400 as_fn_append () 401 { 402 eval $1=\$$1\$2 403 } 404fi # as_fn_append 405 406# as_fn_arith ARG... 407# ------------------ 408# Perform arithmetic evaluation on the ARGs, and store the result in the 409# global $as_val. Take advantage of shells that can avoid forks. The arguments 410# must be portable across $(()) and expr. 411if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 412then : 413 eval 'as_fn_arith () 414 { 415 as_val=$(( $* )) 416 }' 417else $as_nop 418 as_fn_arith () 419 { 420 as_val=`expr "$@" || test $? -eq 1` 421 } 422fi # as_fn_arith 423 424# as_fn_nop 425# --------- 426# Do nothing but, unlike ":", preserve the value of $?. 427as_fn_nop () 428{ 429 return $? 430} 431as_nop=as_fn_nop 432 433# as_fn_error STATUS ERROR [LINENO LOG_FD] 434# ---------------------------------------- 435# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 436# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 437# script with STATUS, using 1 if that was 0. 438as_fn_error () 439{ 440 as_status=$1; test $as_status -eq 0 && as_status=1 441 if test "$4"; then 442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 444 fi 445 printf "%s\n" "$as_me: error: $2" >&2 446 as_fn_exit $as_status 447} # as_fn_error 448 449if expr a : '\(a\)' >/dev/null 2>&1 && 450 test "X`expr 00001 : '.*\(...\)'`" = X001; then 451 as_expr=expr 452else 453 as_expr=false 454fi 455 456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 457 as_basename=basename 458else 459 as_basename=false 460fi 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468as_me=`$as_basename -- "$0" || 469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 470 X"$0" : 'X\(//\)$' \| \ 471 X"$0" : 'X\(/\)' \| . 2>/dev/null || 472printf "%s\n" X/"$0" | 473 sed '/^.*\/\([^/][^/]*\)\/*$/{ 474 s//\1/ 475 q 476 } 477 /^X\/\(\/\/\)$/{ 478 s//\1/ 479 q 480 } 481 /^X\/\(\/\).*/{ 482 s//\1/ 483 q 484 } 485 s/.*/./; q'` 486 487# Avoid depending upon Character Ranges. 488as_cr_letters='abcdefghijklmnopqrstuvwxyz' 489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 490as_cr_Letters=$as_cr_letters$as_cr_LETTERS 491as_cr_digits='0123456789' 492as_cr_alnum=$as_cr_Letters$as_cr_digits 493 494 495 as_lineno_1=$LINENO as_lineno_1a=$LINENO 496 as_lineno_2=$LINENO as_lineno_2a=$LINENO 497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 500 sed -n ' 501 p 502 /[$]LINENO/= 503 ' <$as_myself | 504 sed ' 505 s/[$]LINENO.*/&-/ 506 t lineno 507 b 508 :lineno 509 N 510 :loop 511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 512 t loop 513 s/-\n.*// 514 ' >$as_me.lineno && 515 chmod +x "$as_me.lineno" || 516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 517 518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 519 # already done that, so ensure we don't try to do so again and fall 520 # in an infinite loop. This has already happened in practice. 521 _as_can_reexec=no; export _as_can_reexec 522 # Don't try to exec as it changes $[0], causing all sort of problems 523 # (the dirname of $[0] is not the place where we might find the 524 # original and so on. Autoconf is especially sensitive to this). 525 . "./$as_me.lineno" 526 # Exit status is that of the last command. 527 exit 528} 529 530 531# Determine whether it's possible to make 'echo' print without a newline. 532# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 533# for compatibility with existing Makefiles. 534ECHO_C= ECHO_N= ECHO_T= 535case `echo -n x` in #((((( 536-n*) 537 case `echo 'xy\c'` in 538 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 539 xy) ECHO_C='\c';; 540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 541 ECHO_T=' ';; 542 esac;; 543*) 544 ECHO_N='-n';; 545esac 546 547# For backward compatibility with old third-party macros, we provide 548# the shell variables $as_echo and $as_echo_n. New code should use 549# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 550as_echo='printf %s\n' 551as_echo_n='printf %s' 552 553 554rm -f conf$$ conf$$.exe conf$$.file 555if test -d conf$$.dir; then 556 rm -f conf$$.dir/conf$$.file 557else 558 rm -f conf$$.dir 559 mkdir conf$$.dir 2>/dev/null 560fi 561if (echo >conf$$.file) 2>/dev/null; then 562 if ln -s conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s='ln -s' 564 # ... but there are two gotchas: 565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 567 # In both cases, we have to default to `cp -pR'. 568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 569 as_ln_s='cp -pR' 570 elif ln conf$$.file conf$$ 2>/dev/null; then 571 as_ln_s=ln 572 else 573 as_ln_s='cp -pR' 574 fi 575else 576 as_ln_s='cp -pR' 577fi 578rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 579rmdir conf$$.dir 2>/dev/null 580 581if mkdir -p . 2>/dev/null; then 582 as_mkdir_p='mkdir -p "$as_dir"' 583else 584 test -d ./-p && rmdir ./-p 585 as_mkdir_p=false 586fi 587 588as_test_x='test -x' 589as_executable_p=as_fn_executable_p 590 591# Sed expression to map a string onto a valid CPP name. 592as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 593 594# Sed expression to map a string onto a valid variable name. 595as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 596 597SHELL=${CONFIG_SHELL-/bin/sh} 598 599 600test -n "$DJDIR" || exec 7<&0 </dev/null 601exec 6>&1 602 603# Name of the host. 604# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 605# so uname gets run too. 606ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 607 608# 609# Initializations. 610# 611ac_default_prefix=/usr/local 612ac_clean_files= 613ac_config_libobj_dir=. 614LIBOBJS= 615cross_compiling=no 616subdirs= 617MFLAGS= 618MAKEFLAGS= 619 620# Identity of this package. 621PACKAGE_NAME='OpenPAM' 622PACKAGE_TARNAME='openpam' 623PACKAGE_VERSION='20230627' 624PACKAGE_STRING='OpenPAM 20230627' 625PACKAGE_BUGREPORT='des@des.no' 626PACKAGE_URL='https://openpam.org/' 627 628ac_unique_file="lib/libpam/pam_start.c" 629# Factoring default headers for most tests. 630ac_includes_default="\ 631#include <stddef.h> 632#ifdef HAVE_STDIO_H 633# include <stdio.h> 634#endif 635#ifdef HAVE_STDLIB_H 636# include <stdlib.h> 637#endif 638#ifdef HAVE_STRING_H 639# include <string.h> 640#endif 641#ifdef HAVE_INTTYPES_H 642# include <inttypes.h> 643#endif 644#ifdef HAVE_STDINT_H 645# include <stdint.h> 646#endif 647#ifdef HAVE_STRINGS_H 648# include <strings.h> 649#endif 650#ifdef HAVE_SYS_TYPES_H 651# include <sys/types.h> 652#endif 653#ifdef HAVE_SYS_STAT_H 654# include <sys/stat.h> 655#endif 656#ifdef HAVE_UNISTD_H 657# include <unistd.h> 658#endif" 659 660ac_header_c_list= 661ac_subst_vars='am__EXEEXT_FALSE 662am__EXEEXT_TRUE 663LTLIBOBJS 664LIBOBJS 665CLANG_CODE_COVERAGE_FALSE 666CLANG_CODE_COVERAGE_TRUE 667WITH_CODE_COVERAGE_FALSE 668WITH_CODE_COVERAGE_TRUE 669clang_ver 670WITH_TEST_FALSE 671WITH_TEST_TRUE 672HAVE_CRYB_TEST_FALSE 673HAVE_CRYB_TEST_TRUE 674CRYB_TEST_VERSION 675CRYB_TEST_LIBS 676CRYB_TEST_CFLAGS 677SYSTEM_LIBPAM 678DL_LIBS 679WITH_SYSTEM_LIBPAM_FALSE 680WITH_SYSTEM_LIBPAM_TRUE 681WITH_SU_FALSE 682WITH_SU_TRUE 683WITH_PAMTEST_FALSE 684WITH_PAMTEST_TRUE 685WITH_PAM_UNIX_FALSE 686WITH_PAM_UNIX_TRUE 687WITH_DOC_FALSE 688WITH_DOC_TRUE 689CUSTOM_MODULES_DIR_FALSE 690CUSTOM_MODULES_DIR_TRUE 691OPENPAM_MODULES_DIR 692LIB_MAJ 693pkgconfigdir 694PKG_CONFIG_LIBDIR 695PKG_CONFIG_PATH 696PKG_CONFIG 697CXXCPP 698LT_SYS_LIBRARY_PATH 699OTOOL64 700OTOOL 701LIPO 702NMEDIT 703DSYMUTIL 704MANIFEST_TOOL 705RANLIB 706ac_ct_AR 707AR 708DLLTOOL 709OBJDUMP 710FILECMD 711LN_S 712NM 713ac_ct_DUMPBIN 714DUMPBIN 715LD 716FGREP 717EGREP 718GREP 719SED 720host_os 721host_vendor 722host_cpu 723host 724build_os 725build_vendor 726build_cpu 727build 728LIBTOOL 729am__fastdepCXX_FALSE 730am__fastdepCXX_TRUE 731CXXDEPMODE 732ac_ct_CXX 733CXXFLAGS 734CXX 735CPP 736am__fastdepCC_FALSE 737am__fastdepCC_TRUE 738CCDEPMODE 739am__nodep 740AMDEPBACKSLASH 741AMDEP_FALSE 742AMDEP_TRUE 743am__include 744DEPDIR 745OBJEXT 746EXEEXT 747ac_ct_CC 748CPPFLAGS 749LDFLAGS 750CFLAGS 751CC 752AM_BACKSLASH 753AM_DEFAULT_VERBOSITY 754AM_DEFAULT_V 755AM_V 756CSCOPE 757ETAGS 758CTAGS 759am__untar 760am__tar 761AMTAR 762am__leading_dot 763SET_MAKE 764AWK 765mkdir_p 766MKDIR_P 767INSTALL_STRIP_PROGRAM 768STRIP 769install_sh 770MAKEINFO 771AUTOHEADER 772AUTOMAKE 773AUTOCONF 774ACLOCAL 775VERSION 776PACKAGE 777CYGPATH_W 778am__isrc 779INSTALL_DATA 780INSTALL_SCRIPT 781INSTALL_PROGRAM 782target_alias 783host_alias 784build_alias 785LIBS 786ECHO_T 787ECHO_N 788ECHO_C 789DEFS 790mandir 791localedir 792libdir 793psdir 794pdfdir 795dvidir 796htmldir 797infodir 798docdir 799oldincludedir 800includedir 801runstatedir 802localstatedir 803sharedstatedir 804sysconfdir 805datadir 806datarootdir 807libexecdir 808sbindir 809bindir 810program_transform_name 811prefix 812exec_prefix 813PACKAGE_URL 814PACKAGE_BUGREPORT 815PACKAGE_STRING 816PACKAGE_VERSION 817PACKAGE_TARNAME 818PACKAGE_NAME 819PATH_SEPARATOR 820SHELL 821am__quote' 822ac_subst_files='' 823ac_user_opts=' 824enable_option_checking 825enable_silent_rules 826enable_dependency_tracking 827enable_static 828enable_shared 829with_pic 830enable_fast_install 831with_aix_soname 832with_gnu_ld 833with_sysroot 834enable_libtool_lock 835with_pkgconfigdir 836enable_debug 837enable_unversioned_modules 838with_modules_dir 839with_doc 840with_pam_unix 841with_pamtest 842with_su 843with_system_libpam 844enable_developer_warnings 845enable_debugging_symbols 846enable_werror 847enable_code_coverage 848' 849 ac_precious_vars='build_alias 850host_alias 851target_alias 852CC 853CFLAGS 854LDFLAGS 855LIBS 856CPPFLAGS 857CPP 858CXX 859CXXFLAGS 860CCC 861LT_SYS_LIBRARY_PATH 862CXXCPP 863PKG_CONFIG 864PKG_CONFIG_PATH 865PKG_CONFIG_LIBDIR 866CRYB_TEST_CFLAGS 867CRYB_TEST_LIBS' 868 869 870# Initialize some variables set by options. 871ac_init_help= 872ac_init_version=false 873ac_unrecognized_opts= 874ac_unrecognized_sep= 875# The variables have the same names as the options, with 876# dashes changed to underlines. 877cache_file=/dev/null 878exec_prefix=NONE 879no_create= 880no_recursion= 881prefix=NONE 882program_prefix=NONE 883program_suffix=NONE 884program_transform_name=s,x,x, 885silent= 886site= 887srcdir= 888verbose= 889x_includes=NONE 890x_libraries=NONE 891 892# Installation directory options. 893# These are left unexpanded so users can "make install exec_prefix=/foo" 894# and all the variables that are supposed to be based on exec_prefix 895# by default will actually change. 896# Use braces instead of parens because sh, perl, etc. also accept them. 897# (The list follows the same order as the GNU Coding Standards.) 898bindir='${exec_prefix}/bin' 899sbindir='${exec_prefix}/sbin' 900libexecdir='${exec_prefix}/libexec' 901datarootdir='${prefix}/share' 902datadir='${datarootdir}' 903sysconfdir='${prefix}/etc' 904sharedstatedir='${prefix}/com' 905localstatedir='${prefix}/var' 906runstatedir='${localstatedir}/run' 907includedir='${prefix}/include' 908oldincludedir='/usr/include' 909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 910infodir='${datarootdir}/info' 911htmldir='${docdir}' 912dvidir='${docdir}' 913pdfdir='${docdir}' 914psdir='${docdir}' 915libdir='${exec_prefix}/lib' 916localedir='${datarootdir}/locale' 917mandir='${datarootdir}/man' 918 919ac_prev= 920ac_dashdash= 921for ac_option 922do 923 # If the previous option needs an argument, assign it. 924 if test -n "$ac_prev"; then 925 eval $ac_prev=\$ac_option 926 ac_prev= 927 continue 928 fi 929 930 case $ac_option in 931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 932 *=) ac_optarg= ;; 933 *) ac_optarg=yes ;; 934 esac 935 936 case $ac_dashdash$ac_option in 937 --) 938 ac_dashdash=yes ;; 939 940 -bindir | --bindir | --bindi | --bind | --bin | --bi) 941 ac_prev=bindir ;; 942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 943 bindir=$ac_optarg ;; 944 945 -build | --build | --buil | --bui | --bu) 946 ac_prev=build_alias ;; 947 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 948 build_alias=$ac_optarg ;; 949 950 -cache-file | --cache-file | --cache-fil | --cache-fi \ 951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 952 ac_prev=cache_file ;; 953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 955 cache_file=$ac_optarg ;; 956 957 --config-cache | -C) 958 cache_file=config.cache ;; 959 960 -datadir | --datadir | --datadi | --datad) 961 ac_prev=datadir ;; 962 -datadir=* | --datadir=* | --datadi=* | --datad=*) 963 datadir=$ac_optarg ;; 964 965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 966 | --dataroo | --dataro | --datar) 967 ac_prev=datarootdir ;; 968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 970 datarootdir=$ac_optarg ;; 971 972 -disable-* | --disable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: \`$ac_useropt'" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=no ;; 987 988 -docdir | --docdir | --docdi | --doc | --do) 989 ac_prev=docdir ;; 990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 991 docdir=$ac_optarg ;; 992 993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 994 ac_prev=dvidir ;; 995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 996 dvidir=$ac_optarg ;; 997 998 -enable-* | --enable-*) 999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1000 # Reject names that are not valid shell variable names. 1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1002 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1003 ac_useropt_orig=$ac_useropt 1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1005 case $ac_user_opts in 1006 *" 1007"enable_$ac_useropt" 1008"*) ;; 1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1010 ac_unrecognized_sep=', ';; 1011 esac 1012 eval enable_$ac_useropt=\$ac_optarg ;; 1013 1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1016 | --exec | --exe | --ex) 1017 ac_prev=exec_prefix ;; 1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1020 | --exec=* | --exe=* | --ex=*) 1021 exec_prefix=$ac_optarg ;; 1022 1023 -gas | --gas | --ga | --g) 1024 # Obsolete; use --with-gas. 1025 with_gas=yes ;; 1026 1027 -help | --help | --hel | --he | -h) 1028 ac_init_help=long ;; 1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1030 ac_init_help=recursive ;; 1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1032 ac_init_help=short ;; 1033 1034 -host | --host | --hos | --ho) 1035 ac_prev=host_alias ;; 1036 -host=* | --host=* | --hos=* | --ho=*) 1037 host_alias=$ac_optarg ;; 1038 1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1040 ac_prev=htmldir ;; 1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1042 | --ht=*) 1043 htmldir=$ac_optarg ;; 1044 1045 -includedir | --includedir | --includedi | --included | --include \ 1046 | --includ | --inclu | --incl | --inc) 1047 ac_prev=includedir ;; 1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1049 | --includ=* | --inclu=* | --incl=* | --inc=*) 1050 includedir=$ac_optarg ;; 1051 1052 -infodir | --infodir | --infodi | --infod | --info | --inf) 1053 ac_prev=infodir ;; 1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1055 infodir=$ac_optarg ;; 1056 1057 -libdir | --libdir | --libdi | --libd) 1058 ac_prev=libdir ;; 1059 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1060 libdir=$ac_optarg ;; 1061 1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1063 | --libexe | --libex | --libe) 1064 ac_prev=libexecdir ;; 1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1066 | --libexe=* | --libex=* | --libe=*) 1067 libexecdir=$ac_optarg ;; 1068 1069 -localedir | --localedir | --localedi | --localed | --locale) 1070 ac_prev=localedir ;; 1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1072 localedir=$ac_optarg ;; 1073 1074 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1075 | --localstate | --localstat | --localsta | --localst | --locals) 1076 ac_prev=localstatedir ;; 1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1079 localstatedir=$ac_optarg ;; 1080 1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1082 ac_prev=mandir ;; 1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1084 mandir=$ac_optarg ;; 1085 1086 -nfp | --nfp | --nf) 1087 # Obsolete; use --without-fp. 1088 with_fp=no ;; 1089 1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1091 | --no-cr | --no-c | -n) 1092 no_create=yes ;; 1093 1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1096 no_recursion=yes ;; 1097 1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1100 | --oldin | --oldi | --old | --ol | --o) 1101 ac_prev=oldincludedir ;; 1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1105 oldincludedir=$ac_optarg ;; 1106 1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1108 ac_prev=prefix ;; 1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1110 prefix=$ac_optarg ;; 1111 1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1113 | --program-pre | --program-pr | --program-p) 1114 ac_prev=program_prefix ;; 1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1117 program_prefix=$ac_optarg ;; 1118 1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1120 | --program-suf | --program-su | --program-s) 1121 ac_prev=program_suffix ;; 1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1124 program_suffix=$ac_optarg ;; 1125 1126 -program-transform-name | --program-transform-name \ 1127 | --program-transform-nam | --program-transform-na \ 1128 | --program-transform-n | --program-transform- \ 1129 | --program-transform | --program-transfor \ 1130 | --program-transfo | --program-transf \ 1131 | --program-trans | --program-tran \ 1132 | --progr-tra | --program-tr | --program-t) 1133 ac_prev=program_transform_name ;; 1134 -program-transform-name=* | --program-transform-name=* \ 1135 | --program-transform-nam=* | --program-transform-na=* \ 1136 | --program-transform-n=* | --program-transform-=* \ 1137 | --program-transform=* | --program-transfor=* \ 1138 | --program-transfo=* | --program-transf=* \ 1139 | --program-trans=* | --program-tran=* \ 1140 | --progr-tra=* | --program-tr=* | --program-t=*) 1141 program_transform_name=$ac_optarg ;; 1142 1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1144 ac_prev=pdfdir ;; 1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1146 pdfdir=$ac_optarg ;; 1147 1148 -psdir | --psdir | --psdi | --psd | --ps) 1149 ac_prev=psdir ;; 1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1151 psdir=$ac_optarg ;; 1152 1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1154 | -silent | --silent | --silen | --sile | --sil) 1155 silent=yes ;; 1156 1157 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1158 | --runstate | --runstat | --runsta | --runst | --runs \ 1159 | --run | --ru | --r) 1160 ac_prev=runstatedir ;; 1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1163 | --run=* | --ru=* | --r=*) 1164 runstatedir=$ac_optarg ;; 1165 1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1167 ac_prev=sbindir ;; 1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1169 | --sbi=* | --sb=*) 1170 sbindir=$ac_optarg ;; 1171 1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1174 | --sharedst | --shareds | --shared | --share | --shar \ 1175 | --sha | --sh) 1176 ac_prev=sharedstatedir ;; 1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1180 | --sha=* | --sh=*) 1181 sharedstatedir=$ac_optarg ;; 1182 1183 -site | --site | --sit) 1184 ac_prev=site ;; 1185 -site=* | --site=* | --sit=*) 1186 site=$ac_optarg ;; 1187 1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1189 ac_prev=srcdir ;; 1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1191 srcdir=$ac_optarg ;; 1192 1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1194 | --syscon | --sysco | --sysc | --sys | --sy) 1195 ac_prev=sysconfdir ;; 1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1198 sysconfdir=$ac_optarg ;; 1199 1200 -target | --target | --targe | --targ | --tar | --ta | --t) 1201 ac_prev=target_alias ;; 1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1203 target_alias=$ac_optarg ;; 1204 1205 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1206 verbose=yes ;; 1207 1208 -version | --version | --versio | --versi | --vers | -V) 1209 ac_init_version=: ;; 1210 1211 -with-* | --with-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: \`$ac_useropt'" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=\$ac_optarg ;; 1226 1227 -without-* | --without-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid package name: \`$ac_useropt'" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=no ;; 1242 1243 --x) 1244 # Obsolete; use --with-x. 1245 with_x=yes ;; 1246 1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1248 | --x-incl | --x-inc | --x-in | --x-i) 1249 ac_prev=x_includes ;; 1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1252 x_includes=$ac_optarg ;; 1253 1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1256 ac_prev=x_libraries ;; 1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1259 x_libraries=$ac_optarg ;; 1260 1261 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1262Try \`$0 --help' for more information" 1263 ;; 1264 1265 *=*) 1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1267 # Reject names that are not valid shell variable names. 1268 case $ac_envvar in #( 1269 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1271 esac 1272 eval $ac_envvar=\$ac_optarg 1273 export $ac_envvar ;; 1274 1275 *) 1276 # FIXME: should be removed in autoconf 3.0. 1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1281 ;; 1282 1283 esac 1284done 1285 1286if test -n "$ac_prev"; then 1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1288 as_fn_error $? "missing argument to $ac_option" 1289fi 1290 1291if test -n "$ac_unrecognized_opts"; then 1292 case $enable_option_checking in 1293 no) ;; 1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1296 esac 1297fi 1298 1299# Check all directory arguments for consistency. 1300for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1301 datadir sysconfdir sharedstatedir localstatedir includedir \ 1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1303 libdir localedir mandir runstatedir 1304do 1305 eval ac_val=\$$ac_var 1306 # Remove trailing slashes. 1307 case $ac_val in 1308 */ ) 1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1310 eval $ac_var=\$ac_val;; 1311 esac 1312 # Be sure to have absolute directory names. 1313 case $ac_val in 1314 [\\/$]* | ?:[\\/]* ) continue;; 1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1316 esac 1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1318done 1319 1320# There might be people who depend on the old broken behavior: `$host' 1321# used to hold the argument of --host etc. 1322# FIXME: To remove some day. 1323build=$build_alias 1324host=$host_alias 1325target=$target_alias 1326 1327# FIXME: To remove some day. 1328if test "x$host_alias" != x; then 1329 if test "x$build_alias" = x; then 1330 cross_compiling=maybe 1331 elif test "x$build_alias" != "x$host_alias"; then 1332 cross_compiling=yes 1333 fi 1334fi 1335 1336ac_tool_prefix= 1337test -n "$host_alias" && ac_tool_prefix=$host_alias- 1338 1339test "$silent" = yes && exec 6>/dev/null 1340 1341 1342ac_pwd=`pwd` && test -n "$ac_pwd" && 1343ac_ls_di=`ls -di .` && 1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1345 as_fn_error $? "working directory cannot be determined" 1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1347 as_fn_error $? "pwd does not report name of working directory" 1348 1349 1350# Find the source files, if location was not specified. 1351if test -z "$srcdir"; then 1352 ac_srcdir_defaulted=yes 1353 # Try the directory containing this script, then the parent directory. 1354 ac_confdir=`$as_dirname -- "$as_myself" || 1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1356 X"$as_myself" : 'X\(//\)[^/]' \| \ 1357 X"$as_myself" : 'X\(//\)$' \| \ 1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1359printf "%s\n" X"$as_myself" | 1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\/\)[^/].*/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)$/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\).*/{ 1373 s//\1/ 1374 q 1375 } 1376 s/.*/./; q'` 1377 srcdir=$ac_confdir 1378 if test ! -r "$srcdir/$ac_unique_file"; then 1379 srcdir=.. 1380 fi 1381else 1382 ac_srcdir_defaulted=no 1383fi 1384if test ! -r "$srcdir/$ac_unique_file"; then 1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1387fi 1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1389ac_abs_confdir=`( 1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1391 pwd)` 1392# When building in place, set srcdir=. 1393if test "$ac_abs_confdir" = "$ac_pwd"; then 1394 srcdir=. 1395fi 1396# Remove unnecessary trailing slashes from srcdir. 1397# Double slashes in file names in object file debugging info 1398# mess up M-x gdb in Emacs. 1399case $srcdir in 1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1401esac 1402for ac_var in $ac_precious_vars; do 1403 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_env_${ac_var}_value=\$${ac_var} 1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1406 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1407done 1408 1409# 1410# Report the --help message. 1411# 1412if test "$ac_init_help" = "long"; then 1413 # Omit some internal or obsolete options to make the list less imposing. 1414 # This message is too long to be a string in the A/UX 3.1 sh. 1415 cat <<_ACEOF 1416\`configure' configures OpenPAM 20230627 to adapt to many kinds of systems. 1417 1418Usage: $0 [OPTION]... [VAR=VALUE]... 1419 1420To assign environment variables (e.g., CC, CFLAGS...), specify them as 1421VAR=VALUE. See below for descriptions of some of the useful variables. 1422 1423Defaults for the options are specified in brackets. 1424 1425Configuration: 1426 -h, --help display this help and exit 1427 --help=short display options specific to this package 1428 --help=recursive display the short help of all the included packages 1429 -V, --version display version information and exit 1430 -q, --quiet, --silent do not print \`checking ...' messages 1431 --cache-file=FILE cache test results in FILE [disabled] 1432 -C, --config-cache alias for \`--cache-file=config.cache' 1433 -n, --no-create do not create output files 1434 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1435 1436Installation directories: 1437 --prefix=PREFIX install architecture-independent files in PREFIX 1438 [$ac_default_prefix] 1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1440 [PREFIX] 1441 1442By default, \`make install' will install all the files in 1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1444an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1445for instance \`--prefix=\$HOME'. 1446 1447For better control, use the options below. 1448 1449Fine tuning of the installation directories: 1450 --bindir=DIR user executables [EPREFIX/bin] 1451 --sbindir=DIR system admin executables [EPREFIX/sbin] 1452 --libexecdir=DIR program executables [EPREFIX/libexec] 1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1457 --libdir=DIR object code libraries [EPREFIX/lib] 1458 --includedir=DIR C header files [PREFIX/include] 1459 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1462 --infodir=DIR info documentation [DATAROOTDIR/info] 1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1464 --mandir=DIR man documentation [DATAROOTDIR/man] 1465 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam] 1466 --htmldir=DIR html documentation [DOCDIR] 1467 --dvidir=DIR dvi documentation [DOCDIR] 1468 --pdfdir=DIR pdf documentation [DOCDIR] 1469 --psdir=DIR ps documentation [DOCDIR] 1470_ACEOF 1471 1472 cat <<\_ACEOF 1473 1474Program names: 1475 --program-prefix=PREFIX prepend PREFIX to installed program names 1476 --program-suffix=SUFFIX append SUFFIX to installed program names 1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1478 1479System types: 1480 --build=BUILD configure for building on BUILD [guessed] 1481 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1482_ACEOF 1483fi 1484 1485if test -n "$ac_init_help"; then 1486 case $ac_init_help in 1487 short | recursive ) echo "Configuration of OpenPAM 20230627:";; 1488 esac 1489 cat <<\_ACEOF 1490 1491Optional Features: 1492 --disable-option-checking ignore unrecognized --enable/--with options 1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1495 --enable-silent-rules less verbose build output (undo: "make V=1") 1496 --disable-silent-rules verbose build output (undo: "make V=0") 1497 --enable-dependency-tracking 1498 do not reject slow dependency extractors 1499 --disable-dependency-tracking 1500 speeds up one-time build 1501 --enable-static[=PKGS] build static libraries [default=no] 1502 --enable-shared[=PKGS] build shared libraries [default=yes] 1503 --enable-fast-install[=PKGS] 1504 optimize for fast installation [default=yes] 1505 --disable-libtool-lock avoid locking (might break parallel builds) 1506 --enable-debug turn debugging macros on 1507 --disable-unversioned-modules 1508 support loading of unversioned modules 1509 --enable-developer-warnings 1510 enable strict warnings (default is NO) 1511 --enable-debugging-symbols 1512 enable debugging symbols (default is NO) 1513 --enable-werror use -Werror (default is NO) 1514 --enable-code-coverage enable code coverage 1515 1516Optional Packages: 1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1519 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1520 both] 1521 --with-aix-soname=aix|svr4|both 1522 shared library versioning (aka "SONAME") variant to 1523 provide on AIX, [default=aix]. 1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1525 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1526 compiler's sysroot if not specified). 1527 --with-pkgconfigdir installation directory for .pc files 1528 [LIBDIR/pkgconfig] 1529 --with-modules-dir=DIR OpenPAM modules directory 1530 --without-doc do not build documentation 1531 --with-pam-unix build sample pam_unix(8) module 1532 --with-pamtest build test application 1533 --with-su build sample su(1) implementation 1534 --with-system-libpam use system libpam 1535 1536Some influential environment variables: 1537 CC C compiler command 1538 CFLAGS C compiler flags 1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1540 nonstandard directory <lib dir> 1541 LIBS libraries to pass to the linker, e.g. -l<library> 1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1543 you have headers in a nonstandard directory <include dir> 1544 CPP C preprocessor 1545 CXX C++ compiler command 1546 CXXFLAGS C++ compiler flags 1547 LT_SYS_LIBRARY_PATH 1548 User-defined run-time library search path. 1549 CXXCPP C++ preprocessor 1550 PKG_CONFIG path to pkg-config binary 1551 PKG_CONFIG_PATH 1552 list of directories to prepend to default search path 1553 PKG_CONFIG_LIBDIR 1554 list of directories to search instead of default search path 1555 CRYB_TEST_CFLAGS 1556 C compiler flags for cryb-test 1557 CRYB_TEST_LIBS 1558 linker flags for cryb-test 1559 1560Use these variables to override the choices made by `configure' or to help 1561it to find libraries and programs with nonstandard names/locations. 1562 1563Report bugs to <des@des.no>. 1564OpenPAM home page: <https://openpam.org/>. 1565_ACEOF 1566ac_status=$? 1567fi 1568 1569if test "$ac_init_help" = "recursive"; then 1570 # If there are subdirs, report their specific --help. 1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1572 test -d "$ac_dir" || 1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1574 continue 1575 ac_builddir=. 1576 1577case "$ac_dir" in 1578.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1579*) 1580 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1581 # A ".." for each directory in $ac_dir_suffix. 1582 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1583 case $ac_top_builddir_sub in 1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1586 esac ;; 1587esac 1588ac_abs_top_builddir=$ac_pwd 1589ac_abs_builddir=$ac_pwd$ac_dir_suffix 1590# for backward compatibility: 1591ac_top_builddir=$ac_top_build_prefix 1592 1593case $srcdir in 1594 .) # We are building in place. 1595 ac_srcdir=. 1596 ac_top_srcdir=$ac_top_builddir_sub 1597 ac_abs_top_srcdir=$ac_pwd ;; 1598 [\\/]* | ?:[\\/]* ) # Absolute name. 1599 ac_srcdir=$srcdir$ac_dir_suffix; 1600 ac_top_srcdir=$srcdir 1601 ac_abs_top_srcdir=$srcdir ;; 1602 *) # Relative name. 1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1604 ac_top_srcdir=$ac_top_build_prefix$srcdir 1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1606esac 1607ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1608 1609 cd "$ac_dir" || { ac_status=$?; continue; } 1610 # Check for configure.gnu first; this name is used for a wrapper for 1611 # Metaconfig's "Configure" on case-insensitive file systems. 1612 if test -f "$ac_srcdir/configure.gnu"; then 1613 echo && 1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1615 elif test -f "$ac_srcdir/configure"; then 1616 echo && 1617 $SHELL "$ac_srcdir/configure" --help=recursive 1618 else 1619 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1620 fi || ac_status=$? 1621 cd "$ac_pwd" || { ac_status=$?; break; } 1622 done 1623fi 1624 1625test -n "$ac_init_help" && exit $ac_status 1626if $ac_init_version; then 1627 cat <<\_ACEOF 1628OpenPAM configure 20230627 1629generated by GNU Autoconf 2.71 1630 1631Copyright (C) 2021 Free Software Foundation, Inc. 1632This configure script is free software; the Free Software Foundation 1633gives unlimited permission to copy, distribute and modify it. 1634_ACEOF 1635 exit 1636fi 1637 1638## ------------------------ ## 1639## Autoconf initialization. ## 1640## ------------------------ ## 1641 1642# ac_fn_c_try_compile LINENO 1643# -------------------------- 1644# Try to compile conftest.$ac_ext, and return whether this succeeded. 1645ac_fn_c_try_compile () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 rm -f conftest.$ac_objext conftest.beam 1649 if { { ac_try="$ac_compile" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655printf "%s\n" "$ac_try_echo"; } >&5 1656 (eval "$ac_compile") 2>conftest.err 1657 ac_status=$? 1658 if test -s conftest.err; then 1659 grep -v '^ *+' conftest.err >conftest.er1 1660 cat conftest.er1 >&5 1661 mv -f conftest.er1 conftest.err 1662 fi 1663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } && { 1665 test -z "$ac_c_werror_flag" || 1666 test ! -s conftest.err 1667 } && test -s conftest.$ac_objext 1668then : 1669 ac_retval=0 1670else $as_nop 1671 printf "%s\n" "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 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_try_cpp LINENO 1682# ---------------------- 1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_cpp () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_cpp conftest.$ac_ext" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693printf "%s\n" "$ac_try_echo"; } >&5 1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } > conftest.i && { 1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 } 1706then : 1707 ac_retval=0 1708else $as_nop 1709 printf "%s\n" "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=1 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_cpp 1718 1719# ac_fn_cxx_try_compile LINENO 1720# ---------------------------- 1721# Try to compile conftest.$ac_ext, and return whether this succeeded. 1722ac_fn_cxx_try_compile () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 rm -f conftest.$ac_objext conftest.beam 1726 if { { ac_try="$ac_compile" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732printf "%s\n" "$ac_try_echo"; } >&5 1733 (eval "$ac_compile") 2>conftest.err 1734 ac_status=$? 1735 if test -s conftest.err; then 1736 grep -v '^ *+' conftest.err >conftest.er1 1737 cat conftest.er1 >&5 1738 mv -f conftest.er1 conftest.err 1739 fi 1740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } && { 1742 test -z "$ac_cxx_werror_flag" || 1743 test ! -s conftest.err 1744 } && test -s conftest.$ac_objext 1745then : 1746 ac_retval=0 1747else $as_nop 1748 printf "%s\n" "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=1 1752fi 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756} # ac_fn_cxx_try_compile 1757 1758# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1759# ------------------------------------------------------- 1760# Tests whether HEADER exists and can be compiled using the include files in 1761# INCLUDES, setting the cache variable VAR accordingly. 1762ac_fn_c_check_header_compile () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766printf %s "checking for $2... " >&6; } 1767if eval test \${$3+y} 1768then : 1769 printf %s "(cached) " >&6 1770else $as_nop 1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773$4 1774#include <$2> 1775_ACEOF 1776if ac_fn_c_try_compile "$LINENO" 1777then : 1778 eval "$3=yes" 1779else $as_nop 1780 eval "$3=no" 1781fi 1782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1783fi 1784eval ac_res=\$$3 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786printf "%s\n" "$ac_res" >&6; } 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 1789} # ac_fn_c_check_header_compile 1790 1791# ac_fn_c_try_link LINENO 1792# ----------------------- 1793# Try to link conftest.$ac_ext, and return whether this succeeded. 1794ac_fn_c_try_link () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1798 if { { ac_try="$ac_link" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804printf "%s\n" "$ac_try_echo"; } >&5 1805 (eval "$ac_link") 2>conftest.err 1806 ac_status=$? 1807 if test -s conftest.err; then 1808 grep -v '^ *+' conftest.err >conftest.er1 1809 cat conftest.er1 >&5 1810 mv -f conftest.er1 conftest.err 1811 fi 1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } && { 1814 test -z "$ac_c_werror_flag" || 1815 test ! -s conftest.err 1816 } && test -s conftest$ac_exeext && { 1817 test "$cross_compiling" = yes || 1818 test -x conftest$ac_exeext 1819 } 1820then : 1821 ac_retval=0 1822else $as_nop 1823 printf "%s\n" "$as_me: failed program was:" >&5 1824sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=1 1827fi 1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1830 # interfere with the next link command; also delete a directory that is 1831 # left behind by Apple's compiler. We do this before executing the actions. 1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_c_try_link 1837 1838# ac_fn_c_check_func LINENO FUNC VAR 1839# ---------------------------------- 1840# Tests whether FUNC exists, setting the cache variable VAR accordingly 1841ac_fn_c_check_func () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1845printf %s "checking for $2... " >&6; } 1846if eval test \${$3+y} 1847then : 1848 printf %s "(cached) " >&6 1849else $as_nop 1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1851/* end confdefs.h. */ 1852/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1854#define $2 innocuous_$2 1855 1856/* System header to define __stub macros and hopefully few prototypes, 1857 which can conflict with char $2 (); below. */ 1858 1859#include <limits.h> 1860#undef $2 1861 1862/* Override any GCC internal prototype to avoid an error. 1863 Use char because int might match the return type of a GCC 1864 builtin and then its argument prototype would still apply. */ 1865#ifdef __cplusplus 1866extern "C" 1867#endif 1868char $2 (); 1869/* The GNU C library defines this for functions which it implements 1870 to always fail with ENOSYS. Some functions are actually named 1871 something starting with __ and the normal name is an alias. */ 1872#if defined __stub_$2 || defined __stub___$2 1873choke me 1874#endif 1875 1876int 1877main (void) 1878{ 1879return $2 (); 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_link "$LINENO" 1885then : 1886 eval "$3=yes" 1887else $as_nop 1888 eval "$3=no" 1889fi 1890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1891 conftest$ac_exeext conftest.$ac_ext 1892fi 1893eval ac_res=\$$3 1894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895printf "%s\n" "$ac_res" >&6; } 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 1898} # ac_fn_c_check_func 1899 1900# ac_fn_cxx_try_cpp LINENO 1901# ------------------------ 1902# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1903ac_fn_cxx_try_cpp () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 if { { ac_try="$ac_cpp conftest.$ac_ext" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912printf "%s\n" "$ac_try_echo"; } >&5 1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } > conftest.i && { 1922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1923 test ! -s conftest.err 1924 } 1925then : 1926 ac_retval=0 1927else $as_nop 1928 printf "%s\n" "$as_me: failed program was:" >&5 1929sed 's/^/| /' conftest.$ac_ext >&5 1930 1931 ac_retval=1 1932fi 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 as_fn_set_status $ac_retval 1935 1936} # ac_fn_cxx_try_cpp 1937 1938# ac_fn_cxx_try_link LINENO 1939# ------------------------- 1940# Try to link conftest.$ac_ext, and return whether this succeeded. 1941ac_fn_cxx_try_link () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1945 if { { ac_try="$ac_link" 1946case "(($ac_try" in 1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1948 *) ac_try_echo=$ac_try;; 1949esac 1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1951printf "%s\n" "$ac_try_echo"; } >&5 1952 (eval "$ac_link") 2>conftest.err 1953 ac_status=$? 1954 if test -s conftest.err; then 1955 grep -v '^ *+' conftest.err >conftest.er1 1956 cat conftest.er1 >&5 1957 mv -f conftest.er1 conftest.err 1958 fi 1959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1960 test $ac_status = 0; } && { 1961 test -z "$ac_cxx_werror_flag" || 1962 test ! -s conftest.err 1963 } && test -s conftest$ac_exeext && { 1964 test "$cross_compiling" = yes || 1965 test -x conftest$ac_exeext 1966 } 1967then : 1968 ac_retval=0 1969else $as_nop 1970 printf "%s\n" "$as_me: failed program was:" >&5 1971sed 's/^/| /' conftest.$ac_ext >&5 1972 1973 ac_retval=1 1974fi 1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1977 # interfere with the next link command; also delete a directory that is 1978 # left behind by Apple's compiler. We do this before executing the actions. 1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 as_fn_set_status $ac_retval 1982 1983} # ac_fn_cxx_try_link 1984ac_configure_args_raw= 1985for ac_arg 1986do 1987 case $ac_arg in 1988 *\'*) 1989 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1990 esac 1991 as_fn_append ac_configure_args_raw " '$ac_arg'" 1992done 1993 1994case $ac_configure_args_raw in 1995 *$as_nl*) 1996 ac_safe_unquote= ;; 1997 *) 1998 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1999 ac_unsafe_a="$ac_unsafe_z#~" 2000 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2001 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2002esac 2003 2004cat >config.log <<_ACEOF 2005This file contains any messages produced by compilers while 2006running configure, to aid debugging if configure makes a mistake. 2007 2008It was created by OpenPAM $as_me 20230627, which was 2009generated by GNU Autoconf 2.71. Invocation command line was 2010 2011 $ $0$ac_configure_args_raw 2012 2013_ACEOF 2014exec 5>>config.log 2015{ 2016cat <<_ASUNAME 2017## --------- ## 2018## Platform. ## 2019## --------- ## 2020 2021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2022uname -m = `(uname -m) 2>/dev/null || echo unknown` 2023uname -r = `(uname -r) 2>/dev/null || echo unknown` 2024uname -s = `(uname -s) 2>/dev/null || echo unknown` 2025uname -v = `(uname -v) 2>/dev/null || echo unknown` 2026 2027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2028/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2029 2030/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2031/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2033/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2034/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2035/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2036/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2037 2038_ASUNAME 2039 2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2041for as_dir in $PATH 2042do 2043 IFS=$as_save_IFS 2044 case $as_dir in #((( 2045 '') as_dir=./ ;; 2046 */) ;; 2047 *) as_dir=$as_dir/ ;; 2048 esac 2049 printf "%s\n" "PATH: $as_dir" 2050 done 2051IFS=$as_save_IFS 2052 2053} >&5 2054 2055cat >&5 <<_ACEOF 2056 2057 2058## ----------- ## 2059## Core tests. ## 2060## ----------- ## 2061 2062_ACEOF 2063 2064 2065# Keep a trace of the command line. 2066# Strip out --no-create and --no-recursion so they do not pile up. 2067# Strip out --silent because we don't want to record it for future runs. 2068# Also quote any args containing shell meta-characters. 2069# Make two passes to allow for proper duplicate-argument suppression. 2070ac_configure_args= 2071ac_configure_args0= 2072ac_configure_args1= 2073ac_must_keep_next=false 2074for ac_pass in 1 2 2075do 2076 for ac_arg 2077 do 2078 case $ac_arg in 2079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2081 | -silent | --silent | --silen | --sile | --sil) 2082 continue ;; 2083 *\'*) 2084 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2085 esac 2086 case $ac_pass in 2087 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2088 2) 2089 as_fn_append ac_configure_args1 " '$ac_arg'" 2090 if test $ac_must_keep_next = true; then 2091 ac_must_keep_next=false # Got value, back to normal. 2092 else 2093 case $ac_arg in 2094 *=* | --config-cache | -C | -disable-* | --disable-* \ 2095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2097 | -with-* | --with-* | -without-* | --without-* | --x) 2098 case "$ac_configure_args0 " in 2099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2100 esac 2101 ;; 2102 -* ) ac_must_keep_next=true ;; 2103 esac 2104 fi 2105 as_fn_append ac_configure_args " '$ac_arg'" 2106 ;; 2107 esac 2108 done 2109done 2110{ ac_configure_args0=; unset ac_configure_args0;} 2111{ ac_configure_args1=; unset ac_configure_args1;} 2112 2113# When interrupted or exit'd, cleanup temporary files, and complete 2114# config.log. We remove comments because anyway the quotes in there 2115# would cause problems or look ugly. 2116# WARNING: Use '\'' to represent an apostrophe within the trap. 2117# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2118trap 'exit_status=$? 2119 # Sanitize IFS. 2120 IFS=" "" $as_nl" 2121 # Save into config.log some information that might help in debugging. 2122 { 2123 echo 2124 2125 printf "%s\n" "## ---------------- ## 2126## Cache variables. ## 2127## ---------------- ##" 2128 echo 2129 # The following way of writing the cache mishandles newlines in values, 2130( 2131 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2132 eval ac_val=\$$ac_var 2133 case $ac_val in #( 2134 *${as_nl}*) 2135 case $ac_var in #( 2136 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2137printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2138 esac 2139 case $ac_var in #( 2140 _ | IFS | as_nl) ;; #( 2141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2142 *) { eval $ac_var=; unset $ac_var;} ;; 2143 esac ;; 2144 esac 2145 done 2146 (set) 2>&1 | 2147 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2148 *${as_nl}ac_space=\ *) 2149 sed -n \ 2150 "s/'\''/'\''\\\\'\'''\''/g; 2151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2152 ;; #( 2153 *) 2154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2155 ;; 2156 esac | 2157 sort 2158) 2159 echo 2160 2161 printf "%s\n" "## ----------------- ## 2162## Output variables. ## 2163## ----------------- ##" 2164 echo 2165 for ac_var in $ac_subst_vars 2166 do 2167 eval ac_val=\$$ac_var 2168 case $ac_val in 2169 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2170 esac 2171 printf "%s\n" "$ac_var='\''$ac_val'\''" 2172 done | sort 2173 echo 2174 2175 if test -n "$ac_subst_files"; then 2176 printf "%s\n" "## ------------------- ## 2177## File substitutions. ## 2178## ------------------- ##" 2179 echo 2180 for ac_var in $ac_subst_files 2181 do 2182 eval ac_val=\$$ac_var 2183 case $ac_val in 2184 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2185 esac 2186 printf "%s\n" "$ac_var='\''$ac_val'\''" 2187 done | sort 2188 echo 2189 fi 2190 2191 if test -s confdefs.h; then 2192 printf "%s\n" "## ----------- ## 2193## confdefs.h. ## 2194## ----------- ##" 2195 echo 2196 cat confdefs.h 2197 echo 2198 fi 2199 test "$ac_signal" != 0 && 2200 printf "%s\n" "$as_me: caught signal $ac_signal" 2201 printf "%s\n" "$as_me: exit $exit_status" 2202 } >&5 2203 rm -f core *.core core.conftest.* && 2204 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2205 exit $exit_status 2206' 0 2207for ac_signal in 1 2 13 15; do 2208 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2209done 2210ac_signal=0 2211 2212# confdefs.h avoids OS command line length limits that DEFS can exceed. 2213rm -f -r conftest* confdefs.h 2214 2215printf "%s\n" "/* confdefs.h */" > confdefs.h 2216 2217# Predefined preprocessor variables. 2218 2219printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2220 2221printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2222 2223printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2224 2225printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2226 2227printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2228 2229printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2230 2231 2232# Let the site file select an alternate cache file if it wants to. 2233# Prefer an explicitly selected file to automatically selected ones. 2234if test -n "$CONFIG_SITE"; then 2235 ac_site_files="$CONFIG_SITE" 2236elif test "x$prefix" != xNONE; then 2237 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2238else 2239 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2240fi 2241 2242for ac_site_file in $ac_site_files 2243do 2244 case $ac_site_file in #( 2245 */*) : 2246 ;; #( 2247 *) : 2248 ac_site_file=./$ac_site_file ;; 2249esac 2250 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2252printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2253 sed 's/^/| /' "$ac_site_file" >&5 2254 . "$ac_site_file" \ 2255 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2256printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2257as_fn_error $? "failed to load site script $ac_site_file 2258See \`config.log' for more details" "$LINENO" 5; } 2259 fi 2260done 2261 2262if test -r "$cache_file"; then 2263 # Some versions of bash will fail to source /dev/null (special files 2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2267printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2268 case $cache_file in 2269 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2270 *) . "./$cache_file";; 2271 esac 2272 fi 2273else 2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2275printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2276 >$cache_file 2277fi 2278 2279# Test code for whether the C compiler supports C89 (global declarations) 2280ac_c_conftest_c89_globals=' 2281/* Does the compiler advertise C89 conformance? 2282 Do not test the value of __STDC__, because some compilers set it to 0 2283 while being otherwise adequately conformant. */ 2284#if !defined __STDC__ 2285# error "Compiler does not advertise C89 conformance" 2286#endif 2287 2288#include <stddef.h> 2289#include <stdarg.h> 2290struct stat; 2291/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2292struct buf { int x; }; 2293struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2294static char *e (p, i) 2295 char **p; 2296 int i; 2297{ 2298 return p[i]; 2299} 2300static char *f (char * (*g) (char **, int), char **p, ...) 2301{ 2302 char *s; 2303 va_list v; 2304 va_start (v,p); 2305 s = g (p, va_arg (v,int)); 2306 va_end (v); 2307 return s; 2308} 2309 2310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2311 function prototypes and stuff, but not \xHH hex character constants. 2312 These do not provoke an error unfortunately, instead are silently treated 2313 as an "x". The following induces an error, until -std is added to get 2314 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2315 array size at least. It is necessary to write \x00 == 0 to get something 2316 that is true only with -std. */ 2317int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2318 2319/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2320 inside strings and character constants. */ 2321#define FOO(x) '\''x'\'' 2322int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2323 2324int test (int i, double x); 2325struct s1 {int (*f) (int a);}; 2326struct s2 {int (*f) (double a);}; 2327int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2328 int, int);' 2329 2330# Test code for whether the C compiler supports C89 (body of main). 2331ac_c_conftest_c89_main=' 2332ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2333' 2334 2335# Test code for whether the C compiler supports C99 (global declarations) 2336ac_c_conftest_c99_globals=' 2337// Does the compiler advertise C99 conformance? 2338#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2339# error "Compiler does not advertise C99 conformance" 2340#endif 2341 2342#include <stdbool.h> 2343extern int puts (const char *); 2344extern int printf (const char *, ...); 2345extern int dprintf (int, const char *, ...); 2346extern void *malloc (size_t); 2347 2348// Check varargs macros. These examples are taken from C99 6.10.3.5. 2349// dprintf is used instead of fprintf to avoid needing to declare 2350// FILE and stderr. 2351#define debug(...) dprintf (2, __VA_ARGS__) 2352#define showlist(...) puts (#__VA_ARGS__) 2353#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2354static void 2355test_varargs_macros (void) 2356{ 2357 int x = 1234; 2358 int y = 5678; 2359 debug ("Flag"); 2360 debug ("X = %d\n", x); 2361 showlist (The first, second, and third items.); 2362 report (x>y, "x is %d but y is %d", x, y); 2363} 2364 2365// Check long long types. 2366#define BIG64 18446744073709551615ull 2367#define BIG32 4294967295ul 2368#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2369#if !BIG_OK 2370 #error "your preprocessor is broken" 2371#endif 2372#if BIG_OK 2373#else 2374 #error "your preprocessor is broken" 2375#endif 2376static long long int bignum = -9223372036854775807LL; 2377static unsigned long long int ubignum = BIG64; 2378 2379struct incomplete_array 2380{ 2381 int datasize; 2382 double data[]; 2383}; 2384 2385struct named_init { 2386 int number; 2387 const wchar_t *name; 2388 double average; 2389}; 2390 2391typedef const char *ccp; 2392 2393static inline int 2394test_restrict (ccp restrict text) 2395{ 2396 // See if C++-style comments work. 2397 // Iterate through items via the restricted pointer. 2398 // Also check for declarations in for loops. 2399 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2400 continue; 2401 return 0; 2402} 2403 2404// Check varargs and va_copy. 2405static bool 2406test_varargs (const char *format, ...) 2407{ 2408 va_list args; 2409 va_start (args, format); 2410 va_list args_copy; 2411 va_copy (args_copy, args); 2412 2413 const char *str = ""; 2414 int number = 0; 2415 float fnumber = 0; 2416 2417 while (*format) 2418 { 2419 switch (*format++) 2420 { 2421 case '\''s'\'': // string 2422 str = va_arg (args_copy, const char *); 2423 break; 2424 case '\''d'\'': // int 2425 number = va_arg (args_copy, int); 2426 break; 2427 case '\''f'\'': // float 2428 fnumber = va_arg (args_copy, double); 2429 break; 2430 default: 2431 break; 2432 } 2433 } 2434 va_end (args_copy); 2435 va_end (args); 2436 2437 return *str && number && fnumber; 2438} 2439' 2440 2441# Test code for whether the C compiler supports C99 (body of main). 2442ac_c_conftest_c99_main=' 2443 // Check bool. 2444 _Bool success = false; 2445 success |= (argc != 0); 2446 2447 // Check restrict. 2448 if (test_restrict ("String literal") == 0) 2449 success = true; 2450 char *restrict newvar = "Another string"; 2451 2452 // Check varargs. 2453 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2454 test_varargs_macros (); 2455 2456 // Check flexible array members. 2457 struct incomplete_array *ia = 2458 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2459 ia->datasize = 10; 2460 for (int i = 0; i < ia->datasize; ++i) 2461 ia->data[i] = i * 1.234; 2462 2463 // Check named initializers. 2464 struct named_init ni = { 2465 .number = 34, 2466 .name = L"Test wide string", 2467 .average = 543.34343, 2468 }; 2469 2470 ni.number = 58; 2471 2472 int dynamic_array[ni.number]; 2473 dynamic_array[0] = argv[0][0]; 2474 dynamic_array[ni.number - 1] = 543; 2475 2476 // work around unused variable warnings 2477 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2478 || dynamic_array[ni.number - 1] != 543); 2479' 2480 2481# Test code for whether the C compiler supports C11 (global declarations) 2482ac_c_conftest_c11_globals=' 2483// Does the compiler advertise C11 conformance? 2484#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2485# error "Compiler does not advertise C11 conformance" 2486#endif 2487 2488// Check _Alignas. 2489char _Alignas (double) aligned_as_double; 2490char _Alignas (0) no_special_alignment; 2491extern char aligned_as_int; 2492char _Alignas (0) _Alignas (int) aligned_as_int; 2493 2494// Check _Alignof. 2495enum 2496{ 2497 int_alignment = _Alignof (int), 2498 int_array_alignment = _Alignof (int[100]), 2499 char_alignment = _Alignof (char) 2500}; 2501_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2502 2503// Check _Noreturn. 2504int _Noreturn does_not_return (void) { for (;;) continue; } 2505 2506// Check _Static_assert. 2507struct test_static_assert 2508{ 2509 int x; 2510 _Static_assert (sizeof (int) <= sizeof (long int), 2511 "_Static_assert does not work in struct"); 2512 long int y; 2513}; 2514 2515// Check UTF-8 literals. 2516#define u8 syntax error! 2517char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2518 2519// Check duplicate typedefs. 2520typedef long *long_ptr; 2521typedef long int *long_ptr; 2522typedef long_ptr long_ptr; 2523 2524// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2525struct anonymous 2526{ 2527 union { 2528 struct { int i; int j; }; 2529 struct { int k; long int l; } w; 2530 }; 2531 int m; 2532} v1; 2533' 2534 2535# Test code for whether the C compiler supports C11 (body of main). 2536ac_c_conftest_c11_main=' 2537 _Static_assert ((offsetof (struct anonymous, i) 2538 == offsetof (struct anonymous, w.k)), 2539 "Anonymous union alignment botch"); 2540 v1.i = 2; 2541 v1.w.k = 5; 2542 ok |= v1.i != 5; 2543' 2544 2545# Test code for whether the C compiler supports C11 (complete). 2546ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2547${ac_c_conftest_c99_globals} 2548${ac_c_conftest_c11_globals} 2549 2550int 2551main (int argc, char **argv) 2552{ 2553 int ok = 0; 2554 ${ac_c_conftest_c89_main} 2555 ${ac_c_conftest_c99_main} 2556 ${ac_c_conftest_c11_main} 2557 return ok; 2558} 2559" 2560 2561# Test code for whether the C compiler supports C99 (complete). 2562ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2563${ac_c_conftest_c99_globals} 2564 2565int 2566main (int argc, char **argv) 2567{ 2568 int ok = 0; 2569 ${ac_c_conftest_c89_main} 2570 ${ac_c_conftest_c99_main} 2571 return ok; 2572} 2573" 2574 2575# Test code for whether the C compiler supports C89 (complete). 2576ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2577 2578int 2579main (int argc, char **argv) 2580{ 2581 int ok = 0; 2582 ${ac_c_conftest_c89_main} 2583 return ok; 2584} 2585" 2586 2587# Test code for whether the C++ compiler supports C++98 (global declarations) 2588ac_cxx_conftest_cxx98_globals=' 2589// Does the compiler advertise C++98 conformance? 2590#if !defined __cplusplus || __cplusplus < 199711L 2591# error "Compiler does not advertise C++98 conformance" 2592#endif 2593 2594// These inclusions are to reject old compilers that 2595// lack the unsuffixed header files. 2596#include <cstdlib> 2597#include <exception> 2598 2599// <cassert> and <cstring> are *not* freestanding headers in C++98. 2600extern void assert (int); 2601namespace std { 2602 extern int strcmp (const char *, const char *); 2603} 2604 2605// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2606using std::exception; 2607using std::strcmp; 2608 2609namespace { 2610 2611void test_exception_syntax() 2612{ 2613 try { 2614 throw "test"; 2615 } catch (const char *s) { 2616 // Extra parentheses suppress a warning when building autoconf itself, 2617 // due to lint rules shared with more typical C programs. 2618 assert (!(strcmp) (s, "test")); 2619 } 2620} 2621 2622template <typename T> struct test_template 2623{ 2624 T const val; 2625 explicit test_template(T t) : val(t) {} 2626 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2627}; 2628 2629} // anonymous namespace 2630' 2631 2632# Test code for whether the C++ compiler supports C++98 (body of main) 2633ac_cxx_conftest_cxx98_main=' 2634 assert (argc); 2635 assert (! argv[0]); 2636{ 2637 test_exception_syntax (); 2638 test_template<double> tt (2.0); 2639 assert (tt.add (4) == 6.0); 2640 assert (true && !false); 2641} 2642' 2643 2644# Test code for whether the C++ compiler supports C++11 (global declarations) 2645ac_cxx_conftest_cxx11_globals=' 2646// Does the compiler advertise C++ 2011 conformance? 2647#if !defined __cplusplus || __cplusplus < 201103L 2648# error "Compiler does not advertise C++11 conformance" 2649#endif 2650 2651namespace cxx11test 2652{ 2653 constexpr int get_val() { return 20; } 2654 2655 struct testinit 2656 { 2657 int i; 2658 double d; 2659 }; 2660 2661 class delegate 2662 { 2663 public: 2664 delegate(int n) : n(n) {} 2665 delegate(): delegate(2354) {} 2666 2667 virtual int getval() { return this->n; }; 2668 protected: 2669 int n; 2670 }; 2671 2672 class overridden : public delegate 2673 { 2674 public: 2675 overridden(int n): delegate(n) {} 2676 virtual int getval() override final { return this->n * 2; } 2677 }; 2678 2679 class nocopy 2680 { 2681 public: 2682 nocopy(int i): i(i) {} 2683 nocopy() = default; 2684 nocopy(const nocopy&) = delete; 2685 nocopy & operator=(const nocopy&) = delete; 2686 private: 2687 int i; 2688 }; 2689 2690 // for testing lambda expressions 2691 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2692 { 2693 return f(v); 2694 } 2695 2696 // for testing variadic templates and trailing return types 2697 template <typename V> auto sum(V first) -> V 2698 { 2699 return first; 2700 } 2701 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2702 { 2703 return first + sum(rest...); 2704 } 2705} 2706' 2707 2708# Test code for whether the C++ compiler supports C++11 (body of main) 2709ac_cxx_conftest_cxx11_main=' 2710{ 2711 // Test auto and decltype 2712 auto a1 = 6538; 2713 auto a2 = 48573953.4; 2714 auto a3 = "String literal"; 2715 2716 int total = 0; 2717 for (auto i = a3; *i; ++i) { total += *i; } 2718 2719 decltype(a2) a4 = 34895.034; 2720} 2721{ 2722 // Test constexpr 2723 short sa[cxx11test::get_val()] = { 0 }; 2724} 2725{ 2726 // Test initializer lists 2727 cxx11test::testinit il = { 4323, 435234.23544 }; 2728} 2729{ 2730 // Test range-based for 2731 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2732 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2733 for (auto &x : array) { x += 23; } 2734} 2735{ 2736 // Test lambda expressions 2737 using cxx11test::eval; 2738 assert (eval ([](int x) { return x*2; }, 21) == 42); 2739 double d = 2.0; 2740 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2741 assert (d == 5.0); 2742 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2743 assert (d == 5.0); 2744} 2745{ 2746 // Test use of variadic templates 2747 using cxx11test::sum; 2748 auto a = sum(1); 2749 auto b = sum(1, 2); 2750 auto c = sum(1.0, 2.0, 3.0); 2751} 2752{ 2753 // Test constructor delegation 2754 cxx11test::delegate d1; 2755 cxx11test::delegate d2(); 2756 cxx11test::delegate d3(45); 2757} 2758{ 2759 // Test override and final 2760 cxx11test::overridden o1(55464); 2761} 2762{ 2763 // Test nullptr 2764 char *c = nullptr; 2765} 2766{ 2767 // Test template brackets 2768 test_template<::test_template<int>> v(test_template<int>(12)); 2769} 2770{ 2771 // Unicode literals 2772 char const *utf8 = u8"UTF-8 string \u2500"; 2773 char16_t const *utf16 = u"UTF-8 string \u2500"; 2774 char32_t const *utf32 = U"UTF-32 string \u2500"; 2775} 2776' 2777 2778# Test code for whether the C compiler supports C++11 (complete). 2779ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2780${ac_cxx_conftest_cxx11_globals} 2781 2782int 2783main (int argc, char **argv) 2784{ 2785 int ok = 0; 2786 ${ac_cxx_conftest_cxx98_main} 2787 ${ac_cxx_conftest_cxx11_main} 2788 return ok; 2789} 2790" 2791 2792# Test code for whether the C compiler supports C++98 (complete). 2793ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2794int 2795main (int argc, char **argv) 2796{ 2797 int ok = 0; 2798 ${ac_cxx_conftest_cxx98_main} 2799 return ok; 2800} 2801" 2802 2803as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2804as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2805as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2806as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2807as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2808as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2809as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2810as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2811as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2812as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2813as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2814 2815# Auxiliary files required by this configure script. 2816ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2817 2818# Locations in which to look for auxiliary files. 2819ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2820 2821# Search for a directory containing all of the required auxiliary files, 2822# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2823# If we don't find one directory that contains all the files we need, 2824# we report the set of missing files from the *first* directory in 2825# $ac_aux_dir_candidates and give up. 2826ac_missing_aux_files="" 2827ac_first_candidate=: 2828printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830as_found=false 2831for as_dir in $ac_aux_dir_candidates 2832do 2833 IFS=$as_save_IFS 2834 case $as_dir in #((( 2835 '') as_dir=./ ;; 2836 */) ;; 2837 *) as_dir=$as_dir/ ;; 2838 esac 2839 as_found=: 2840 2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2842 ac_aux_dir_found=yes 2843 ac_install_sh= 2844 for ac_aux in $ac_aux_files 2845 do 2846 # As a special case, if "install-sh" is required, that requirement 2847 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2848 # and $ac_install_sh is set appropriately for whichever one is found. 2849 if test x"$ac_aux" = x"install-sh" 2850 then 2851 if test -f "${as_dir}install-sh"; then 2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2853 ac_install_sh="${as_dir}install-sh -c" 2854 elif test -f "${as_dir}install.sh"; then 2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2856 ac_install_sh="${as_dir}install.sh -c" 2857 elif test -f "${as_dir}shtool"; then 2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2859 ac_install_sh="${as_dir}shtool install -c" 2860 else 2861 ac_aux_dir_found=no 2862 if $ac_first_candidate; then 2863 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2864 else 2865 break 2866 fi 2867 fi 2868 else 2869 if test -f "${as_dir}${ac_aux}"; then 2870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2871 else 2872 ac_aux_dir_found=no 2873 if $ac_first_candidate; then 2874 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2875 else 2876 break 2877 fi 2878 fi 2879 fi 2880 done 2881 if test "$ac_aux_dir_found" = yes; then 2882 ac_aux_dir="$as_dir" 2883 break 2884 fi 2885 ac_first_candidate=false 2886 2887 as_found=false 2888done 2889IFS=$as_save_IFS 2890if $as_found 2891then : 2892 2893else $as_nop 2894 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2895fi 2896 2897 2898# These three variables are undocumented and unsupported, 2899# and are intended to be withdrawn in a future Autoconf release. 2900# They can cause serious problems if a builder's source tree is in a directory 2901# whose full name contains unusual characters. 2902if test -f "${ac_aux_dir}config.guess"; then 2903 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2904fi 2905if test -f "${ac_aux_dir}config.sub"; then 2906 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2907fi 2908if test -f "$ac_aux_dir/configure"; then 2909 ac_configure="$SHELL ${ac_aux_dir}configure" 2910fi 2911 2912# Check that the precious variables saved in the cache have kept the same 2913# value. 2914ac_cache_corrupted=false 2915for ac_var in $ac_precious_vars; do 2916 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2917 eval ac_new_set=\$ac_env_${ac_var}_set 2918 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2919 eval ac_new_val=\$ac_env_${ac_var}_value 2920 case $ac_old_set,$ac_new_set in 2921 set,) 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2923printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2924 ac_cache_corrupted=: ;; 2925 ,set) 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2927printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2928 ac_cache_corrupted=: ;; 2929 ,);; 2930 *) 2931 if test "x$ac_old_val" != "x$ac_new_val"; then 2932 # differences in whitespace do not lead to failure. 2933 ac_old_val_w=`echo x $ac_old_val` 2934 ac_new_val_w=`echo x $ac_new_val` 2935 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2937printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2938 ac_cache_corrupted=: 2939 else 2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2941printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2942 eval $ac_var=\$ac_old_val 2943 fi 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2945printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2947printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2948 fi;; 2949 esac 2950 # Pass precious variables to config.status. 2951 if test "$ac_new_set" = set; then 2952 case $ac_new_val in 2953 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2954 *) ac_arg=$ac_var=$ac_new_val ;; 2955 esac 2956 case " $ac_configure_args " in 2957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2958 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2959 esac 2960 fi 2961done 2962if $ac_cache_corrupted; then 2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2964printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2966printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2967 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2968 and start over" "$LINENO" 5 2969fi 2970## -------------------- ## 2971## Main body of script. ## 2972## -------------------- ## 2973 2974ac_ext=c 2975ac_cpp='$CPP $CPPFLAGS' 2976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2978ac_compiler_gnu=$ac_cv_c_compiler_gnu 2979 2980 2981 2982 2983am__api_version='1.16' 2984 2985 2986 2987 # Find a good install program. We prefer a C program (faster), 2988# so one script is as good as another. But avoid the broken or 2989# incompatible versions: 2990# SysV /etc/install, /usr/sbin/install 2991# SunOS /usr/etc/install 2992# IRIX /sbin/install 2993# AIX /bin/install 2994# AmigaOS /C/install, which installs bootblocks on floppy discs 2995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2996# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2998# OS/2's system install, which has a completely different semantic 2999# ./install, which can be erroneously created by make from ./install.sh. 3000# Reject install programs that cannot install multiple files. 3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3002printf %s "checking for a BSD-compatible install... " >&6; } 3003if test -z "$INSTALL"; then 3004if test ${ac_cv_path_install+y} 3005then : 3006 printf %s "(cached) " >&6 3007else $as_nop 3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3009for as_dir in $PATH 3010do 3011 IFS=$as_save_IFS 3012 case $as_dir in #((( 3013 '') as_dir=./ ;; 3014 */) ;; 3015 *) as_dir=$as_dir/ ;; 3016 esac 3017 # Account for fact that we put trailing slashes in our PATH walk. 3018case $as_dir in #(( 3019 ./ | /[cC]/* | \ 3020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3021 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3022 /usr/ucb/* ) ;; 3023 *) 3024 # OSF1 and SCO ODT 3.0 have their own names for install. 3025 # Don't use installbsd from OSF since it installs stuff as root 3026 # by default. 3027 for ac_prog in ginstall scoinst install; do 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3030 if test $ac_prog = install && 3031 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3032 # AIX install. It has an incompatible calling convention. 3033 : 3034 elif test $ac_prog = install && 3035 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3036 # program-specific install script used by HP pwplus--don't use. 3037 : 3038 else 3039 rm -rf conftest.one conftest.two conftest.dir 3040 echo one > conftest.one 3041 echo two > conftest.two 3042 mkdir conftest.dir 3043 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3044 test -s conftest.one && test -s conftest.two && 3045 test -s conftest.dir/conftest.one && 3046 test -s conftest.dir/conftest.two 3047 then 3048 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3049 break 3 3050 fi 3051 fi 3052 fi 3053 done 3054 done 3055 ;; 3056esac 3057 3058 done 3059IFS=$as_save_IFS 3060 3061rm -rf conftest.one conftest.two conftest.dir 3062 3063fi 3064 if test ${ac_cv_path_install+y}; then 3065 INSTALL=$ac_cv_path_install 3066 else 3067 # As a last resort, use the slow shell script. Don't cache a 3068 # value for INSTALL within a source directory, because that will 3069 # break other packages using the cache if that directory is 3070 # removed, or if the value is a relative name. 3071 INSTALL=$ac_install_sh 3072 fi 3073fi 3074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3075printf "%s\n" "$INSTALL" >&6; } 3076 3077# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3078# It thinks the first close brace ends the variable substitution. 3079test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3080 3081test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3082 3083test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3084 3085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3086printf %s "checking whether build environment is sane... " >&6; } 3087# Reject unsafe characters in $srcdir or the absolute working directory 3088# name. Accept space and tab only in the latter. 3089am_lf=' 3090' 3091case `pwd` in 3092 *[\\\"\#\$\&\'\`$am_lf]*) 3093 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3094esac 3095case $srcdir in 3096 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3097 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3098esac 3099 3100# Do 'set' in a subshell so we don't clobber the current shell's 3101# arguments. Must try -L first in case configure is actually a 3102# symlink; some systems play weird games with the mod time of symlinks 3103# (eg FreeBSD returns the mod time of the symlink's containing 3104# directory). 3105if ( 3106 am_has_slept=no 3107 for am_try in 1 2; do 3108 echo "timestamp, slept: $am_has_slept" > conftest.file 3109 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3110 if test "$*" = "X"; then 3111 # -L didn't work. 3112 set X `ls -t "$srcdir/configure" conftest.file` 3113 fi 3114 if test "$*" != "X $srcdir/configure conftest.file" \ 3115 && test "$*" != "X conftest.file $srcdir/configure"; then 3116 3117 # If neither matched, then we have a broken ls. This can happen 3118 # if, for instance, CONFIG_SHELL is bash and it inherits a 3119 # broken ls alias from the environment. This has actually 3120 # happened. Such a system could not be considered "sane". 3121 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3122 alias in your environment" "$LINENO" 5 3123 fi 3124 if test "$2" = conftest.file || test $am_try -eq 2; then 3125 break 3126 fi 3127 # Just in case. 3128 sleep 1 3129 am_has_slept=yes 3130 done 3131 test "$2" = conftest.file 3132 ) 3133then 3134 # Ok. 3135 : 3136else 3137 as_fn_error $? "newly created file is older than distributed files! 3138Check your system clock" "$LINENO" 5 3139fi 3140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3141printf "%s\n" "yes" >&6; } 3142# If we didn't sleep, we still need to ensure time stamps of config.status and 3143# generated files are strictly newer. 3144am_sleep_pid= 3145if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3146 ( sleep 1 ) & 3147 am_sleep_pid=$! 3148fi 3149 3150rm -f conftest.file 3151 3152test "$program_prefix" != NONE && 3153 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3154# Use a double $ so make ignores it. 3155test "$program_suffix" != NONE && 3156 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3157# Double any \ or $. 3158# By default was `s,x,x', remove it if useless. 3159ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3160program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3161 3162 3163# Expand $ac_aux_dir to an absolute path. 3164am_aux_dir=`cd "$ac_aux_dir" && pwd` 3165 3166 3167 if test x"${MISSING+set}" != xset; then 3168 MISSING="\${SHELL} '$am_aux_dir/missing'" 3169fi 3170# Use eval to expand $SHELL 3171if eval "$MISSING --is-lightweight"; then 3172 am_missing_run="$MISSING " 3173else 3174 am_missing_run= 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3176printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3177fi 3178 3179if test x"${install_sh+set}" != xset; then 3180 case $am_aux_dir in 3181 *\ * | *\ *) 3182 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3183 *) 3184 install_sh="\${SHELL} $am_aux_dir/install-sh" 3185 esac 3186fi 3187 3188# Installed binaries are usually stripped using 'strip' when the user 3189# run "make install-strip". However 'strip' might not be the right 3190# tool to use in cross-compilation environments, therefore Automake 3191# will honor the 'STRIP' environment variable to overrule this program. 3192if test "$cross_compiling" != no; then 3193 if test -n "$ac_tool_prefix"; then 3194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3195set dummy ${ac_tool_prefix}strip; ac_word=$2 3196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197printf %s "checking for $ac_word... " >&6; } 3198if test ${ac_cv_prog_STRIP+y} 3199then : 3200 printf %s "(cached) " >&6 3201else $as_nop 3202 if test -n "$STRIP"; then 3203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3204else 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 case $as_dir in #((( 3210 '') as_dir=./ ;; 3211 */) ;; 3212 *) as_dir=$as_dir/ ;; 3213 esac 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224fi 3225fi 3226STRIP=$ac_cv_prog_STRIP 3227if test -n "$STRIP"; then 3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3229printf "%s\n" "$STRIP" >&6; } 3230else 3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232printf "%s\n" "no" >&6; } 3233fi 3234 3235 3236fi 3237if test -z "$ac_cv_prog_STRIP"; then 3238 ac_ct_STRIP=$STRIP 3239 # Extract the first word of "strip", so it can be a program name with args. 3240set dummy strip; ac_word=$2 3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242printf %s "checking for $ac_word... " >&6; } 3243if test ${ac_cv_prog_ac_ct_STRIP+y} 3244then : 3245 printf %s "(cached) " >&6 3246else $as_nop 3247 if test -n "$ac_ct_STRIP"; then 3248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3249else 3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251for as_dir in $PATH 3252do 3253 IFS=$as_save_IFS 3254 case $as_dir in #((( 3255 '') as_dir=./ ;; 3256 */) ;; 3257 *) as_dir=$as_dir/ ;; 3258 esac 3259 for ac_exec_ext in '' $ac_executable_extensions; do 3260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3261 ac_cv_prog_ac_ct_STRIP="strip" 3262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3263 break 2 3264 fi 3265done 3266 done 3267IFS=$as_save_IFS 3268 3269fi 3270fi 3271ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3272if test -n "$ac_ct_STRIP"; then 3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3274printf "%s\n" "$ac_ct_STRIP" >&6; } 3275else 3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277printf "%s\n" "no" >&6; } 3278fi 3279 3280 if test "x$ac_ct_STRIP" = x; then 3281 STRIP=":" 3282 else 3283 case $cross_compiling:$ac_tool_warned in 3284yes:) 3285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3286printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3287ac_tool_warned=yes ;; 3288esac 3289 STRIP=$ac_ct_STRIP 3290 fi 3291else 3292 STRIP="$ac_cv_prog_STRIP" 3293fi 3294 3295fi 3296INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3297 3298 3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3300printf %s "checking for a race-free mkdir -p... " >&6; } 3301if test -z "$MKDIR_P"; then 3302 if test ${ac_cv_path_mkdir+y} 3303then : 3304 printf %s "(cached) " >&6 3305else $as_nop 3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3307for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3308do 3309 IFS=$as_save_IFS 3310 case $as_dir in #((( 3311 '') as_dir=./ ;; 3312 */) ;; 3313 *) as_dir=$as_dir/ ;; 3314 esac 3315 for ac_prog in mkdir gmkdir; do 3316 for ac_exec_ext in '' $ac_executable_extensions; do 3317 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3318 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3319 'mkdir ('*'coreutils) '* | \ 3320 'BusyBox '* | \ 3321 'mkdir (fileutils) '4.1*) 3322 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3323 break 3;; 3324 esac 3325 done 3326 done 3327 done 3328IFS=$as_save_IFS 3329 3330fi 3331 3332 test -d ./--version && rmdir ./--version 3333 if test ${ac_cv_path_mkdir+y}; then 3334 MKDIR_P="$ac_cv_path_mkdir -p" 3335 else 3336 # As a last resort, use the slow shell script. Don't cache a 3337 # value for MKDIR_P within a source directory, because that will 3338 # break other packages using the cache if that directory is 3339 # removed, or if the value is a relative name. 3340 MKDIR_P="$ac_install_sh -d" 3341 fi 3342fi 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3344printf "%s\n" "$MKDIR_P" >&6; } 3345 3346for ac_prog in gawk mawk nawk awk 3347do 3348 # Extract the first word of "$ac_prog", so it can be a program name with args. 3349set dummy $ac_prog; ac_word=$2 3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3351printf %s "checking for $ac_word... " >&6; } 3352if test ${ac_cv_prog_AWK+y} 3353then : 3354 printf %s "(cached) " >&6 3355else $as_nop 3356 if test -n "$AWK"; then 3357 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3358else 3359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3360for as_dir in $PATH 3361do 3362 IFS=$as_save_IFS 3363 case $as_dir in #((( 3364 '') as_dir=./ ;; 3365 */) ;; 3366 *) as_dir=$as_dir/ ;; 3367 esac 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3370 ac_cv_prog_AWK="$ac_prog" 3371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374done 3375 done 3376IFS=$as_save_IFS 3377 3378fi 3379fi 3380AWK=$ac_cv_prog_AWK 3381if test -n "$AWK"; then 3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3383printf "%s\n" "$AWK" >&6; } 3384else 3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3386printf "%s\n" "no" >&6; } 3387fi 3388 3389 3390 test -n "$AWK" && break 3391done 3392 3393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3394printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3395set x ${MAKE-make} 3396ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3397if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3398then : 3399 printf %s "(cached) " >&6 3400else $as_nop 3401 cat >conftest.make <<\_ACEOF 3402SHELL = /bin/sh 3403all: 3404 @echo '@@@%%%=$(MAKE)=@@@%%%' 3405_ACEOF 3406# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3407case `${MAKE-make} -f conftest.make 2>/dev/null` in 3408 *@@@%%%=?*=@@@%%%*) 3409 eval ac_cv_prog_make_${ac_make}_set=yes;; 3410 *) 3411 eval ac_cv_prog_make_${ac_make}_set=no;; 3412esac 3413rm -f conftest.make 3414fi 3415if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3417printf "%s\n" "yes" >&6; } 3418 SET_MAKE= 3419else 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3421printf "%s\n" "no" >&6; } 3422 SET_MAKE="MAKE=${MAKE-make}" 3423fi 3424 3425rm -rf .tst 2>/dev/null 3426mkdir .tst 2>/dev/null 3427if test -d .tst; then 3428 am__leading_dot=. 3429else 3430 am__leading_dot=_ 3431fi 3432rmdir .tst 2>/dev/null 3433 3434# Check whether --enable-silent-rules was given. 3435if test ${enable_silent_rules+y} 3436then : 3437 enableval=$enable_silent_rules; 3438fi 3439 3440case $enable_silent_rules in # ((( 3441 yes) AM_DEFAULT_VERBOSITY=0;; 3442 no) AM_DEFAULT_VERBOSITY=1;; 3443 *) AM_DEFAULT_VERBOSITY=1;; 3444esac 3445am_make=${MAKE-make} 3446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3447printf %s "checking whether $am_make supports nested variables... " >&6; } 3448if test ${am_cv_make_support_nested_variables+y} 3449then : 3450 printf %s "(cached) " >&6 3451else $as_nop 3452 if printf "%s\n" 'TRUE=$(BAR$(V)) 3453BAR0=false 3454BAR1=true 3455V=1 3456am__doit: 3457 @$(TRUE) 3458.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3459 am_cv_make_support_nested_variables=yes 3460else 3461 am_cv_make_support_nested_variables=no 3462fi 3463fi 3464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3465printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3466if test $am_cv_make_support_nested_variables = yes; then 3467 AM_V='$(V)' 3468 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3469else 3470 AM_V=$AM_DEFAULT_VERBOSITY 3471 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3472fi 3473AM_BACKSLASH='\' 3474 3475if test "`cd $srcdir && pwd`" != "`pwd`"; then 3476 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3477 # is not polluted with repeated "-I." 3478 am__isrc=' -I$(srcdir)' 3479 # test to see if srcdir already configured 3480 if test -f $srcdir/config.status; then 3481 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3482 fi 3483fi 3484 3485# test whether we have cygpath 3486if test -z "$CYGPATH_W"; then 3487 if (cygpath --version) >/dev/null 2>/dev/null; then 3488 CYGPATH_W='cygpath -w' 3489 else 3490 CYGPATH_W=echo 3491 fi 3492fi 3493 3494 3495# Define the identity of the package. 3496 PACKAGE='openpam' 3497 VERSION='20230627' 3498 3499 3500printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3501 3502 3503printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3504 3505# Some tools Automake needs. 3506 3507ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3508 3509 3510AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3511 3512 3513AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3514 3515 3516AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3517 3518 3519MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3520 3521# For better backward compatibility. To be removed once Automake 1.9.x 3522# dies out for good. For more background, see: 3523# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3524# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3525mkdir_p='$(MKDIR_P)' 3526 3527# We need awk for the "check" target (and possibly the TAP driver). The 3528# system "awk" is bad on some platforms. 3529# Always define AMTAR for backward compatibility. Yes, it's still used 3530# in the wild :-( We should find a proper way to deprecate it ... 3531AMTAR='$${TAR-tar}' 3532 3533 3534# We'll loop over all known methods to create a tar archive until one works. 3535_am_tools='gnutar pax cpio none' 3536 3537am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3538 3539 3540 3541 3542 3543# Variables for tags utilities; see am/tags.am 3544if test -z "$CTAGS"; then 3545 CTAGS=ctags 3546fi 3547 3548if test -z "$ETAGS"; then 3549 ETAGS=etags 3550fi 3551 3552if test -z "$CSCOPE"; then 3553 CSCOPE=cscope 3554fi 3555 3556 3557 3558# POSIX will say in a future version that running "rm -f" with no argument 3559# is OK; and we want to be able to make that assumption in our Makefile 3560# recipes. So use an aggressive probe to check that the usage we want is 3561# actually supported "in the wild" to an acceptable degree. 3562# See automake bug#10828. 3563# To make any issue more visible, cause the running configure to be aborted 3564# by default if the 'rm' program in use doesn't match our expectations; the 3565# user can still override this though. 3566if rm -f && rm -fr && rm -rf; then : OK; else 3567 cat >&2 <<'END' 3568Oops! 3569 3570Your 'rm' program seems unable to run without file operands specified 3571on the command line, even when the '-f' option is present. This is contrary 3572to the behaviour of most rm programs out there, and not conforming with 3573the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3574 3575Please tell bug-automake@gnu.org about your system, including the value 3576of your $PATH and any error possibly output before this message. This 3577can help us improve future automake versions. 3578 3579END 3580 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3581 echo 'Configuration will proceed anyway, since you have set the' >&2 3582 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3583 echo >&2 3584 else 3585 cat >&2 <<'END' 3586Aborting the configuration process, to ensure you take notice of the issue. 3587 3588You can download and install GNU coreutils to get an 'rm' implementation 3589that behaves properly: <https://www.gnu.org/software/coreutils/>. 3590 3591If you want to complete the configuration process using your problematic 3592'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3593to "yes", and re-run configure. 3594 3595END 3596 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3597 fi 3598fi 3599 3600ac_config_headers="$ac_config_headers config.h" 3601 3602 3603# C compiler and features 3604ac_ext=c 3605ac_cpp='$CPP $CPPFLAGS' 3606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3608ac_compiler_gnu=$ac_cv_c_compiler_gnu 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624if test -n "$ac_tool_prefix"; then 3625 for ac_prog in clang gcc cc 3626 do 3627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3628set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3630printf %s "checking for $ac_word... " >&6; } 3631if test ${ac_cv_prog_CC+y} 3632then : 3633 printf %s "(cached) " >&6 3634else $as_nop 3635 if test -n "$CC"; then 3636 ac_cv_prog_CC="$CC" # Let the user override the test. 3637else 3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3639for as_dir in $PATH 3640do 3641 IFS=$as_save_IFS 3642 case $as_dir in #((( 3643 '') as_dir=./ ;; 3644 */) ;; 3645 *) as_dir=$as_dir/ ;; 3646 esac 3647 for ac_exec_ext in '' $ac_executable_extensions; do 3648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3651 break 2 3652 fi 3653done 3654 done 3655IFS=$as_save_IFS 3656 3657fi 3658fi 3659CC=$ac_cv_prog_CC 3660if test -n "$CC"; then 3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3662printf "%s\n" "$CC" >&6; } 3663else 3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3665printf "%s\n" "no" >&6; } 3666fi 3667 3668 3669 test -n "$CC" && break 3670 done 3671fi 3672if test -z "$CC"; then 3673 ac_ct_CC=$CC 3674 for ac_prog in clang gcc cc 3675do 3676 # Extract the first word of "$ac_prog", so it can be a program name with args. 3677set dummy $ac_prog; ac_word=$2 3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3679printf %s "checking for $ac_word... " >&6; } 3680if test ${ac_cv_prog_ac_ct_CC+y} 3681then : 3682 printf %s "(cached) " >&6 3683else $as_nop 3684 if test -n "$ac_ct_CC"; then 3685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3686else 3687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3688for as_dir in $PATH 3689do 3690 IFS=$as_save_IFS 3691 case $as_dir in #((( 3692 '') as_dir=./ ;; 3693 */) ;; 3694 *) as_dir=$as_dir/ ;; 3695 esac 3696 for ac_exec_ext in '' $ac_executable_extensions; do 3697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3698 ac_cv_prog_ac_ct_CC="$ac_prog" 3699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3700 break 2 3701 fi 3702done 3703 done 3704IFS=$as_save_IFS 3705 3706fi 3707fi 3708ac_ct_CC=$ac_cv_prog_ac_ct_CC 3709if test -n "$ac_ct_CC"; then 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3711printf "%s\n" "$ac_ct_CC" >&6; } 3712else 3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3714printf "%s\n" "no" >&6; } 3715fi 3716 3717 3718 test -n "$ac_ct_CC" && break 3719done 3720 3721 if test "x$ac_ct_CC" = x; then 3722 CC="" 3723 else 3724 case $cross_compiling:$ac_tool_warned in 3725yes:) 3726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3728ac_tool_warned=yes ;; 3729esac 3730 CC=$ac_ct_CC 3731 fi 3732fi 3733 3734 3735test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3736printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3737as_fn_error $? "no acceptable C compiler found in \$PATH 3738See \`config.log' for more details" "$LINENO" 5; } 3739 3740# Provide some information about the compiler. 3741printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3742set X $ac_compile 3743ac_compiler=$2 3744for ac_option in --version -v -V -qversion -version; do 3745 { { ac_try="$ac_compiler $ac_option >&5" 3746case "(($ac_try" in 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3748 *) ac_try_echo=$ac_try;; 3749esac 3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3751printf "%s\n" "$ac_try_echo"; } >&5 3752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3753 ac_status=$? 3754 if test -s conftest.err; then 3755 sed '10a\ 3756... rest of stderr output deleted ... 3757 10q' conftest.err >conftest.er1 3758 cat conftest.er1 >&5 3759 fi 3760 rm -f conftest.er1 conftest.err 3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3762 test $ac_status = 0; } 3763done 3764 3765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767 3768int 3769main (void) 3770{ 3771 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776ac_clean_files_save=$ac_clean_files 3777ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3778# Try to create an executable without -o first, disregard a.out. 3779# It will help us diagnose broken compilers, and finding out an intuition 3780# of exeext. 3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3782printf %s "checking whether the C compiler works... " >&6; } 3783ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3784 3785# The possible output files: 3786ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3787 3788ac_rmfiles= 3789for ac_file in $ac_files 3790do 3791 case $ac_file in 3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3793 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3794 esac 3795done 3796rm -f $ac_rmfiles 3797 3798if { { ac_try="$ac_link_default" 3799case "(($ac_try" in 3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3801 *) ac_try_echo=$ac_try;; 3802esac 3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3804printf "%s\n" "$ac_try_echo"; } >&5 3805 (eval "$ac_link_default") 2>&5 3806 ac_status=$? 3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3808 test $ac_status = 0; } 3809then : 3810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3811# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3812# in a Makefile. We should not override ac_cv_exeext if it was cached, 3813# so that the user can short-circuit this test for compilers unknown to 3814# Autoconf. 3815for ac_file in $ac_files '' 3816do 3817 test -f "$ac_file" || continue 3818 case $ac_file in 3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3820 ;; 3821 [ab].out ) 3822 # We found the default executable, but exeext='' is most 3823 # certainly right. 3824 break;; 3825 *.* ) 3826 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3827 then :; else 3828 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3829 fi 3830 # We set ac_cv_exeext here because the later test for it is not 3831 # safe: cross compilers may not add the suffix if given an `-o' 3832 # argument, so we may need to know it at that point already. 3833 # Even if this section looks crufty: it has the advantage of 3834 # actually working. 3835 break;; 3836 * ) 3837 break;; 3838 esac 3839done 3840test "$ac_cv_exeext" = no && ac_cv_exeext= 3841 3842else $as_nop 3843 ac_file='' 3844fi 3845if test -z "$ac_file" 3846then : 3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3848printf "%s\n" "no" >&6; } 3849printf "%s\n" "$as_me: failed program was:" >&5 3850sed 's/^/| /' conftest.$ac_ext >&5 3851 3852{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3853printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3854as_fn_error 77 "C compiler cannot create executables 3855See \`config.log' for more details" "$LINENO" 5; } 3856else $as_nop 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3858printf "%s\n" "yes" >&6; } 3859fi 3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3861printf %s "checking for C compiler default output file name... " >&6; } 3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3863printf "%s\n" "$ac_file" >&6; } 3864ac_exeext=$ac_cv_exeext 3865 3866rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3867ac_clean_files=$ac_clean_files_save 3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3869printf %s "checking for suffix of executables... " >&6; } 3870if { { ac_try="$ac_link" 3871case "(($ac_try" in 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3873 *) ac_try_echo=$ac_try;; 3874esac 3875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3876printf "%s\n" "$ac_try_echo"; } >&5 3877 (eval "$ac_link") 2>&5 3878 ac_status=$? 3879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3880 test $ac_status = 0; } 3881then : 3882 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3883# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3884# work properly (i.e., refer to `conftest.exe'), while it won't with 3885# `rm'. 3886for ac_file in conftest.exe conftest conftest.*; do 3887 test -f "$ac_file" || continue 3888 case $ac_file in 3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3891 break;; 3892 * ) break;; 3893 esac 3894done 3895else $as_nop 3896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3897printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3898as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3899See \`config.log' for more details" "$LINENO" 5; } 3900fi 3901rm -f conftest conftest$ac_cv_exeext 3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3903printf "%s\n" "$ac_cv_exeext" >&6; } 3904 3905rm -f conftest.$ac_ext 3906EXEEXT=$ac_cv_exeext 3907ac_exeext=$EXEEXT 3908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909/* end confdefs.h. */ 3910#include <stdio.h> 3911int 3912main (void) 3913{ 3914FILE *f = fopen ("conftest.out", "w"); 3915 return ferror (f) || fclose (f) != 0; 3916 3917 ; 3918 return 0; 3919} 3920_ACEOF 3921ac_clean_files="$ac_clean_files conftest.out" 3922# Check that the compiler produces executables we can run. If not, either 3923# the compiler is broken, or we cross compile. 3924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3925printf %s "checking whether we are cross compiling... " >&6; } 3926if test "$cross_compiling" != yes; then 3927 { { ac_try="$ac_link" 3928case "(($ac_try" in 3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3930 *) ac_try_echo=$ac_try;; 3931esac 3932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3933printf "%s\n" "$ac_try_echo"; } >&5 3934 (eval "$ac_link") 2>&5 3935 ac_status=$? 3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3937 test $ac_status = 0; } 3938 if { ac_try='./conftest$ac_cv_exeext' 3939 { { case "(($ac_try" in 3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3941 *) ac_try_echo=$ac_try;; 3942esac 3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3944printf "%s\n" "$ac_try_echo"; } >&5 3945 (eval "$ac_try") 2>&5 3946 ac_status=$? 3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3948 test $ac_status = 0; }; }; then 3949 cross_compiling=no 3950 else 3951 if test "$cross_compiling" = maybe; then 3952 cross_compiling=yes 3953 else 3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3955printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3956as_fn_error 77 "cannot run C compiled programs. 3957If you meant to cross compile, use \`--host'. 3958See \`config.log' for more details" "$LINENO" 5; } 3959 fi 3960 fi 3961fi 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3963printf "%s\n" "$cross_compiling" >&6; } 3964 3965rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3966ac_clean_files=$ac_clean_files_save 3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3968printf %s "checking for suffix of object files... " >&6; } 3969if test ${ac_cv_objext+y} 3970then : 3971 printf %s "(cached) " >&6 3972else $as_nop 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975 3976int 3977main (void) 3978{ 3979 3980 ; 3981 return 0; 3982} 3983_ACEOF 3984rm -f conftest.o conftest.obj 3985if { { ac_try="$ac_compile" 3986case "(($ac_try" in 3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3988 *) ac_try_echo=$ac_try;; 3989esac 3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3991printf "%s\n" "$ac_try_echo"; } >&5 3992 (eval "$ac_compile") 2>&5 3993 ac_status=$? 3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3995 test $ac_status = 0; } 3996then : 3997 for ac_file in conftest.o conftest.obj conftest.*; do 3998 test -f "$ac_file" || continue; 3999 case $ac_file in 4000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4002 break;; 4003 esac 4004done 4005else $as_nop 4006 printf "%s\n" "$as_me: failed program was:" >&5 4007sed 's/^/| /' conftest.$ac_ext >&5 4008 4009{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4010printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4011as_fn_error $? "cannot compute suffix of object files: cannot compile 4012See \`config.log' for more details" "$LINENO" 5; } 4013fi 4014rm -f conftest.$ac_cv_objext conftest.$ac_ext 4015fi 4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4017printf "%s\n" "$ac_cv_objext" >&6; } 4018OBJEXT=$ac_cv_objext 4019ac_objext=$OBJEXT 4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4021printf %s "checking whether the compiler supports GNU C... " >&6; } 4022if test ${ac_cv_c_compiler_gnu+y} 4023then : 4024 printf %s "(cached) " >&6 4025else $as_nop 4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4027/* end confdefs.h. */ 4028 4029int 4030main (void) 4031{ 4032#ifndef __GNUC__ 4033 choke me 4034#endif 4035 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040if ac_fn_c_try_compile "$LINENO" 4041then : 4042 ac_compiler_gnu=yes 4043else $as_nop 4044 ac_compiler_gnu=no 4045fi 4046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4047ac_cv_c_compiler_gnu=$ac_compiler_gnu 4048 4049fi 4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4051printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4052ac_compiler_gnu=$ac_cv_c_compiler_gnu 4053 4054if test $ac_compiler_gnu = yes; then 4055 GCC=yes 4056else 4057 GCC= 4058fi 4059ac_test_CFLAGS=${CFLAGS+y} 4060ac_save_CFLAGS=$CFLAGS 4061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4062printf %s "checking whether $CC accepts -g... " >&6; } 4063if test ${ac_cv_prog_cc_g+y} 4064then : 4065 printf %s "(cached) " >&6 4066else $as_nop 4067 ac_save_c_werror_flag=$ac_c_werror_flag 4068 ac_c_werror_flag=yes 4069 ac_cv_prog_cc_g=no 4070 CFLAGS="-g" 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073 4074int 4075main (void) 4076{ 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082if ac_fn_c_try_compile "$LINENO" 4083then : 4084 ac_cv_prog_cc_g=yes 4085else $as_nop 4086 CFLAGS="" 4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4088/* end confdefs.h. */ 4089 4090int 4091main (void) 4092{ 4093 4094 ; 4095 return 0; 4096} 4097_ACEOF 4098if ac_fn_c_try_compile "$LINENO" 4099then : 4100 4101else $as_nop 4102 ac_c_werror_flag=$ac_save_c_werror_flag 4103 CFLAGS="-g" 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107int 4108main (void) 4109{ 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115if ac_fn_c_try_compile "$LINENO" 4116then : 4117 ac_cv_prog_cc_g=yes 4118fi 4119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4120fi 4121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4122fi 4123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4124 ac_c_werror_flag=$ac_save_c_werror_flag 4125fi 4126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4127printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4128if test $ac_test_CFLAGS; then 4129 CFLAGS=$ac_save_CFLAGS 4130elif test $ac_cv_prog_cc_g = yes; then 4131 if test "$GCC" = yes; then 4132 CFLAGS="-g -O2" 4133 else 4134 CFLAGS="-g" 4135 fi 4136else 4137 if test "$GCC" = yes; then 4138 CFLAGS="-O2" 4139 else 4140 CFLAGS= 4141 fi 4142fi 4143ac_prog_cc_stdc=no 4144if test x$ac_prog_cc_stdc = xno 4145then : 4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4147printf %s "checking for $CC option to enable C11 features... " >&6; } 4148if test ${ac_cv_prog_cc_c11+y} 4149then : 4150 printf %s "(cached) " >&6 4151else $as_nop 4152 ac_cv_prog_cc_c11=no 4153ac_save_CC=$CC 4154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156$ac_c_conftest_c11_program 4157_ACEOF 4158for ac_arg in '' -std=gnu11 4159do 4160 CC="$ac_save_CC $ac_arg" 4161 if ac_fn_c_try_compile "$LINENO" 4162then : 4163 ac_cv_prog_cc_c11=$ac_arg 4164fi 4165rm -f core conftest.err conftest.$ac_objext conftest.beam 4166 test "x$ac_cv_prog_cc_c11" != "xno" && break 4167done 4168rm -f conftest.$ac_ext 4169CC=$ac_save_CC 4170fi 4171 4172if test "x$ac_cv_prog_cc_c11" = xno 4173then : 4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4175printf "%s\n" "unsupported" >&6; } 4176else $as_nop 4177 if test "x$ac_cv_prog_cc_c11" = x 4178then : 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4180printf "%s\n" "none needed" >&6; } 4181else $as_nop 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4183printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4184 CC="$CC $ac_cv_prog_cc_c11" 4185fi 4186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4187 ac_prog_cc_stdc=c11 4188fi 4189fi 4190if test x$ac_prog_cc_stdc = xno 4191then : 4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4193printf %s "checking for $CC option to enable C99 features... " >&6; } 4194if test ${ac_cv_prog_cc_c99+y} 4195then : 4196 printf %s "(cached) " >&6 4197else $as_nop 4198 ac_cv_prog_cc_c99=no 4199ac_save_CC=$CC 4200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4201/* end confdefs.h. */ 4202$ac_c_conftest_c99_program 4203_ACEOF 4204for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4205do 4206 CC="$ac_save_CC $ac_arg" 4207 if ac_fn_c_try_compile "$LINENO" 4208then : 4209 ac_cv_prog_cc_c99=$ac_arg 4210fi 4211rm -f core conftest.err conftest.$ac_objext conftest.beam 4212 test "x$ac_cv_prog_cc_c99" != "xno" && break 4213done 4214rm -f conftest.$ac_ext 4215CC=$ac_save_CC 4216fi 4217 4218if test "x$ac_cv_prog_cc_c99" = xno 4219then : 4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4221printf "%s\n" "unsupported" >&6; } 4222else $as_nop 4223 if test "x$ac_cv_prog_cc_c99" = x 4224then : 4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4226printf "%s\n" "none needed" >&6; } 4227else $as_nop 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4229printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4230 CC="$CC $ac_cv_prog_cc_c99" 4231fi 4232 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4233 ac_prog_cc_stdc=c99 4234fi 4235fi 4236if test x$ac_prog_cc_stdc = xno 4237then : 4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4239printf %s "checking for $CC option to enable C89 features... " >&6; } 4240if test ${ac_cv_prog_cc_c89+y} 4241then : 4242 printf %s "(cached) " >&6 4243else $as_nop 4244 ac_cv_prog_cc_c89=no 4245ac_save_CC=$CC 4246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248$ac_c_conftest_c89_program 4249_ACEOF 4250for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4251do 4252 CC="$ac_save_CC $ac_arg" 4253 if ac_fn_c_try_compile "$LINENO" 4254then : 4255 ac_cv_prog_cc_c89=$ac_arg 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.beam 4258 test "x$ac_cv_prog_cc_c89" != "xno" && break 4259done 4260rm -f conftest.$ac_ext 4261CC=$ac_save_CC 4262fi 4263 4264if test "x$ac_cv_prog_cc_c89" = xno 4265then : 4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4267printf "%s\n" "unsupported" >&6; } 4268else $as_nop 4269 if test "x$ac_cv_prog_cc_c89" = x 4270then : 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4272printf "%s\n" "none needed" >&6; } 4273else $as_nop 4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4275printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4276 CC="$CC $ac_cv_prog_cc_c89" 4277fi 4278 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4279 ac_prog_cc_stdc=c89 4280fi 4281fi 4282 4283ac_ext=c 4284ac_cpp='$CPP $CPPFLAGS' 4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4287ac_compiler_gnu=$ac_cv_c_compiler_gnu 4288 4289 4290 ac_ext=c 4291ac_cpp='$CPP $CPPFLAGS' 4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4294ac_compiler_gnu=$ac_cv_c_compiler_gnu 4295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4296printf %s "checking whether $CC understands -c and -o together... " >&6; } 4297if test ${am_cv_prog_cc_c_o+y} 4298then : 4299 printf %s "(cached) " >&6 4300else $as_nop 4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4302/* end confdefs.h. */ 4303 4304int 4305main (void) 4306{ 4307 4308 ; 4309 return 0; 4310} 4311_ACEOF 4312 # Make sure it works both with $CC and with simple cc. 4313 # Following AC_PROG_CC_C_O, we do the test twice because some 4314 # compilers refuse to overwrite an existing .o file with -o, 4315 # though they will create one. 4316 am_cv_prog_cc_c_o=yes 4317 for am_i in 1 2; do 4318 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4319 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4320 ac_status=$? 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); } \ 4323 && test -f conftest2.$ac_objext; then 4324 : OK 4325 else 4326 am_cv_prog_cc_c_o=no 4327 break 4328 fi 4329 done 4330 rm -f core conftest* 4331 unset am_i 4332fi 4333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4334printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4335if test "$am_cv_prog_cc_c_o" != yes; then 4336 # Losing compiler, so override with the script. 4337 # FIXME: It is wrong to rewrite CC. 4338 # But if we don't then we get into trouble of one sort or another. 4339 # A longer-term fix would be to have automake use am__CC in this case, 4340 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4341 CC="$am_aux_dir/compile $CC" 4342fi 4343ac_ext=c 4344ac_cpp='$CPP $CPPFLAGS' 4345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4347ac_compiler_gnu=$ac_cv_c_compiler_gnu 4348 4349DEPDIR="${am__leading_dot}deps" 4350 4351ac_config_commands="$ac_config_commands depfiles" 4352 4353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4354printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4355cat > confinc.mk << 'END' 4356am__doit: 4357 @echo this is the am__doit target >confinc.out 4358.PHONY: am__doit 4359END 4360am__include="#" 4361am__quote= 4362# BSD make does it like this. 4363echo '.include "confinc.mk" # ignored' > confmf.BSD 4364# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4365echo 'include confinc.mk # ignored' > confmf.GNU 4366_am_result=no 4367for s in GNU BSD; do 4368 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4369 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4370 ac_status=$? 4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4372 (exit $ac_status); } 4373 case $?:`cat confinc.out 2>/dev/null` in #( 4374 '0:this is the am__doit target') : 4375 case $s in #( 4376 BSD) : 4377 am__include='.include' am__quote='"' ;; #( 4378 *) : 4379 am__include='include' am__quote='' ;; 4380esac ;; #( 4381 *) : 4382 ;; 4383esac 4384 if test "$am__include" != "#"; then 4385 _am_result="yes ($s style)" 4386 break 4387 fi 4388done 4389rm -f confinc.* confmf.* 4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4391printf "%s\n" "${_am_result}" >&6; } 4392 4393# Check whether --enable-dependency-tracking was given. 4394if test ${enable_dependency_tracking+y} 4395then : 4396 enableval=$enable_dependency_tracking; 4397fi 4398 4399if test "x$enable_dependency_tracking" != xno; then 4400 am_depcomp="$ac_aux_dir/depcomp" 4401 AMDEPBACKSLASH='\' 4402 am__nodep='_no' 4403fi 4404 if test "x$enable_dependency_tracking" != xno; then 4405 AMDEP_TRUE= 4406 AMDEP_FALSE='#' 4407else 4408 AMDEP_TRUE='#' 4409 AMDEP_FALSE= 4410fi 4411 4412 4413 4414depcc="$CC" am_compiler_list= 4415 4416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4417printf %s "checking dependency style of $depcc... " >&6; } 4418if test ${am_cv_CC_dependencies_compiler_type+y} 4419then : 4420 printf %s "(cached) " >&6 4421else $as_nop 4422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4423 # We make a subdir and do the tests there. Otherwise we can end up 4424 # making bogus files that we don't know about and never remove. For 4425 # instance it was reported that on HP-UX the gcc test will end up 4426 # making a dummy file named 'D' -- because '-MD' means "put the output 4427 # in D". 4428 rm -rf conftest.dir 4429 mkdir conftest.dir 4430 # Copy depcomp to subdir because otherwise we won't find it if we're 4431 # using a relative directory. 4432 cp "$am_depcomp" conftest.dir 4433 cd conftest.dir 4434 # We will build objects and dependencies in a subdirectory because 4435 # it helps to detect inapplicable dependency modes. For instance 4436 # both Tru64's cc and ICC support -MD to output dependencies as a 4437 # side effect of compilation, but ICC will put the dependencies in 4438 # the current directory while Tru64 will put them in the object 4439 # directory. 4440 mkdir sub 4441 4442 am_cv_CC_dependencies_compiler_type=none 4443 if test "$am_compiler_list" = ""; then 4444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4445 fi 4446 am__universal=false 4447 case " $depcc " in #( 4448 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4449 esac 4450 4451 for depmode in $am_compiler_list; do 4452 # Setup a source with many dependencies, because some compilers 4453 # like to wrap large dependency lists on column 80 (with \), and 4454 # we should not choose a depcomp mode which is confused by this. 4455 # 4456 # We need to recreate these files for each test, as the compiler may 4457 # overwrite some of them when testing with obscure command lines. 4458 # This happens at least with the AIX C compiler. 4459 : > sub/conftest.c 4460 for i in 1 2 3 4 5 6; do 4461 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4462 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4463 # Solaris 10 /bin/sh. 4464 echo '/* dummy */' > sub/conftst$i.h 4465 done 4466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4467 4468 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4469 # mode. It turns out that the SunPro C++ compiler does not properly 4470 # handle '-M -o', and we need to detect this. Also, some Intel 4471 # versions had trouble with output in subdirs. 4472 am__obj=sub/conftest.${OBJEXT-o} 4473 am__minus_obj="-o $am__obj" 4474 case $depmode in 4475 gcc) 4476 # This depmode causes a compiler race in universal mode. 4477 test "$am__universal" = false || continue 4478 ;; 4479 nosideeffect) 4480 # After this tag, mechanisms are not by side-effect, so they'll 4481 # only be used when explicitly requested. 4482 if test "x$enable_dependency_tracking" = xyes; then 4483 continue 4484 else 4485 break 4486 fi 4487 ;; 4488 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4489 # This compiler won't grok '-c -o', but also, the minuso test has 4490 # not run yet. These depmodes are late enough in the game, and 4491 # so weak that their functioning should not be impacted. 4492 am__obj=conftest.${OBJEXT-o} 4493 am__minus_obj= 4494 ;; 4495 none) break ;; 4496 esac 4497 if depmode=$depmode \ 4498 source=sub/conftest.c object=$am__obj \ 4499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4500 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4501 >/dev/null 2>conftest.err && 4502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4504 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4506 # icc doesn't choke on unknown options, it will just issue warnings 4507 # or remarks (even with -Werror). So we grep stderr for any message 4508 # that says an option was ignored or not supported. 4509 # When given -MP, icc 7.0 and 7.1 complain thusly: 4510 # icc: Command line warning: ignoring option '-M'; no argument required 4511 # The diagnosis changed in icc 8.0: 4512 # icc: Command line remark: option '-MP' not supported 4513 if (grep 'ignoring option' conftest.err || 4514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4515 am_cv_CC_dependencies_compiler_type=$depmode 4516 break 4517 fi 4518 fi 4519 done 4520 4521 cd .. 4522 rm -rf conftest.dir 4523else 4524 am_cv_CC_dependencies_compiler_type=none 4525fi 4526 4527fi 4528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4529printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4530CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4531 4532 if 4533 test "x$enable_dependency_tracking" != xno \ 4534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4535 am__fastdepCC_TRUE= 4536 am__fastdepCC_FALSE='#' 4537else 4538 am__fastdepCC_TRUE='#' 4539 am__fastdepCC_FALSE= 4540fi 4541 4542 4543 4544ac_ext=c 4545ac_cpp='$CPP $CPPFLAGS' 4546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4548ac_compiler_gnu=$ac_cv_c_compiler_gnu 4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4550printf %s "checking how to run the C preprocessor... " >&6; } 4551# On Suns, sometimes $CPP names a directory. 4552if test -n "$CPP" && test -d "$CPP"; then 4553 CPP= 4554fi 4555if test -z "$CPP"; then 4556 if test ${ac_cv_prog_CPP+y} 4557then : 4558 printf %s "(cached) " >&6 4559else $as_nop 4560 # Double quotes because $CC needs to be expanded 4561 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 4562 do 4563 ac_preproc_ok=false 4564for ac_c_preproc_warn_flag in '' yes 4565do 4566 # Use a header file that comes with gcc, so configuring glibc 4567 # with a fresh cross-compiler works. 4568 # On the NeXT, cc -E runs the code through the compiler's parser, 4569 # not just through cpp. "Syntax error" is here to catch this case. 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571/* end confdefs.h. */ 4572#include <limits.h> 4573 Syntax error 4574_ACEOF 4575if ac_fn_c_try_cpp "$LINENO" 4576then : 4577 4578else $as_nop 4579 # Broken: fails on valid input. 4580continue 4581fi 4582rm -f conftest.err conftest.i conftest.$ac_ext 4583 4584 # OK, works on sane cases. Now check whether nonexistent headers 4585 # can be detected and how. 4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4587/* end confdefs.h. */ 4588#include <ac_nonexistent.h> 4589_ACEOF 4590if ac_fn_c_try_cpp "$LINENO" 4591then : 4592 # Broken: success on invalid input. 4593continue 4594else $as_nop 4595 # Passes both tests. 4596ac_preproc_ok=: 4597break 4598fi 4599rm -f conftest.err conftest.i conftest.$ac_ext 4600 4601done 4602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4603rm -f conftest.i conftest.err conftest.$ac_ext 4604if $ac_preproc_ok 4605then : 4606 break 4607fi 4608 4609 done 4610 ac_cv_prog_CPP=$CPP 4611 4612fi 4613 CPP=$ac_cv_prog_CPP 4614else 4615 ac_cv_prog_CPP=$CPP 4616fi 4617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4618printf "%s\n" "$CPP" >&6; } 4619ac_preproc_ok=false 4620for ac_c_preproc_warn_flag in '' yes 4621do 4622 # Use a header file that comes with gcc, so configuring glibc 4623 # with a fresh cross-compiler works. 4624 # On the NeXT, cc -E runs the code through the compiler's parser, 4625 # not just through cpp. "Syntax error" is here to catch this case. 4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4627/* end confdefs.h. */ 4628#include <limits.h> 4629 Syntax error 4630_ACEOF 4631if ac_fn_c_try_cpp "$LINENO" 4632then : 4633 4634else $as_nop 4635 # Broken: fails on valid input. 4636continue 4637fi 4638rm -f conftest.err conftest.i conftest.$ac_ext 4639 4640 # OK, works on sane cases. Now check whether nonexistent headers 4641 # can be detected and how. 4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4643/* end confdefs.h. */ 4644#include <ac_nonexistent.h> 4645_ACEOF 4646if ac_fn_c_try_cpp "$LINENO" 4647then : 4648 # Broken: success on invalid input. 4649continue 4650else $as_nop 4651 # Passes both tests. 4652ac_preproc_ok=: 4653break 4654fi 4655rm -f conftest.err conftest.i conftest.$ac_ext 4656 4657done 4658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4659rm -f conftest.i conftest.err conftest.$ac_ext 4660if $ac_preproc_ok 4661then : 4662 4663else $as_nop 4664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4665printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4666as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4667See \`config.log' for more details" "$LINENO" 5; } 4668fi 4669 4670ac_ext=c 4671ac_cpp='$CPP $CPPFLAGS' 4672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4674ac_compiler_gnu=$ac_cv_c_compiler_gnu 4675 4676 4677 4678 4679 4680 4681 4682ac_ext=cpp 4683ac_cpp='$CXXCPP $CPPFLAGS' 4684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4687if test -z "$CXX"; then 4688 if test -n "$CCC"; then 4689 CXX=$CCC 4690 else 4691 if test -n "$ac_tool_prefix"; then 4692 for ac_prog in clang++ g++ c++ 4693 do 4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4695set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4697printf %s "checking for $ac_word... " >&6; } 4698if test ${ac_cv_prog_CXX+y} 4699then : 4700 printf %s "(cached) " >&6 4701else $as_nop 4702 if test -n "$CXX"; then 4703 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4704else 4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4706for as_dir in $PATH 4707do 4708 IFS=$as_save_IFS 4709 case $as_dir in #((( 4710 '') as_dir=./ ;; 4711 */) ;; 4712 *) as_dir=$as_dir/ ;; 4713 esac 4714 for ac_exec_ext in '' $ac_executable_extensions; do 4715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4718 break 2 4719 fi 4720done 4721 done 4722IFS=$as_save_IFS 4723 4724fi 4725fi 4726CXX=$ac_cv_prog_CXX 4727if test -n "$CXX"; then 4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4729printf "%s\n" "$CXX" >&6; } 4730else 4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4732printf "%s\n" "no" >&6; } 4733fi 4734 4735 4736 test -n "$CXX" && break 4737 done 4738fi 4739if test -z "$CXX"; then 4740 ac_ct_CXX=$CXX 4741 for ac_prog in clang++ g++ c++ 4742do 4743 # Extract the first word of "$ac_prog", so it can be a program name with args. 4744set dummy $ac_prog; ac_word=$2 4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4746printf %s "checking for $ac_word... " >&6; } 4747if test ${ac_cv_prog_ac_ct_CXX+y} 4748then : 4749 printf %s "(cached) " >&6 4750else $as_nop 4751 if test -n "$ac_ct_CXX"; then 4752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4753else 4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755for as_dir in $PATH 4756do 4757 IFS=$as_save_IFS 4758 case $as_dir in #((( 4759 '') as_dir=./ ;; 4760 */) ;; 4761 *) as_dir=$as_dir/ ;; 4762 esac 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4765 ac_cv_prog_ac_ct_CXX="$ac_prog" 4766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4776if test -n "$ac_ct_CXX"; then 4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4778printf "%s\n" "$ac_ct_CXX" >&6; } 4779else 4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781printf "%s\n" "no" >&6; } 4782fi 4783 4784 4785 test -n "$ac_ct_CXX" && break 4786done 4787 4788 if test "x$ac_ct_CXX" = x; then 4789 CXX="g++" 4790 else 4791 case $cross_compiling:$ac_tool_warned in 4792yes:) 4793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4794printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4795ac_tool_warned=yes ;; 4796esac 4797 CXX=$ac_ct_CXX 4798 fi 4799fi 4800 4801 fi 4802fi 4803# Provide some information about the compiler. 4804printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4805set X $ac_compile 4806ac_compiler=$2 4807for ac_option in --version -v -V -qversion; do 4808 { { ac_try="$ac_compiler $ac_option >&5" 4809case "(($ac_try" in 4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4811 *) ac_try_echo=$ac_try;; 4812esac 4813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4814printf "%s\n" "$ac_try_echo"; } >&5 4815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4816 ac_status=$? 4817 if test -s conftest.err; then 4818 sed '10a\ 4819... rest of stderr output deleted ... 4820 10q' conftest.err >conftest.er1 4821 cat conftest.er1 >&5 4822 fi 4823 rm -f conftest.er1 conftest.err 4824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4825 test $ac_status = 0; } 4826done 4827 4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 4829printf %s "checking whether the compiler supports GNU C++... " >&6; } 4830if test ${ac_cv_cxx_compiler_gnu+y} 4831then : 4832 printf %s "(cached) " >&6 4833else $as_nop 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836 4837int 4838main (void) 4839{ 4840#ifndef __GNUC__ 4841 choke me 4842#endif 4843 4844 ; 4845 return 0; 4846} 4847_ACEOF 4848if ac_fn_cxx_try_compile "$LINENO" 4849then : 4850 ac_compiler_gnu=yes 4851else $as_nop 4852 ac_compiler_gnu=no 4853fi 4854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4856 4857fi 4858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4859printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 4860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4861 4862if test $ac_compiler_gnu = yes; then 4863 GXX=yes 4864else 4865 GXX= 4866fi 4867ac_test_CXXFLAGS=${CXXFLAGS+y} 4868ac_save_CXXFLAGS=$CXXFLAGS 4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4870printf %s "checking whether $CXX accepts -g... " >&6; } 4871if test ${ac_cv_prog_cxx_g+y} 4872then : 4873 printf %s "(cached) " >&6 4874else $as_nop 4875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4876 ac_cxx_werror_flag=yes 4877 ac_cv_prog_cxx_g=no 4878 CXXFLAGS="-g" 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4880/* end confdefs.h. */ 4881 4882int 4883main (void) 4884{ 4885 4886 ; 4887 return 0; 4888} 4889_ACEOF 4890if ac_fn_cxx_try_compile "$LINENO" 4891then : 4892 ac_cv_prog_cxx_g=yes 4893else $as_nop 4894 CXXFLAGS="" 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896/* end confdefs.h. */ 4897 4898int 4899main (void) 4900{ 4901 4902 ; 4903 return 0; 4904} 4905_ACEOF 4906if ac_fn_cxx_try_compile "$LINENO" 4907then : 4908 4909else $as_nop 4910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4911 CXXFLAGS="-g" 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4913/* end confdefs.h. */ 4914 4915int 4916main (void) 4917{ 4918 4919 ; 4920 return 0; 4921} 4922_ACEOF 4923if ac_fn_cxx_try_compile "$LINENO" 4924then : 4925 ac_cv_prog_cxx_g=yes 4926fi 4927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4928fi 4929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4930fi 4931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4932 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4933fi 4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4935printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 4936if test $ac_test_CXXFLAGS; then 4937 CXXFLAGS=$ac_save_CXXFLAGS 4938elif test $ac_cv_prog_cxx_g = yes; then 4939 if test "$GXX" = yes; then 4940 CXXFLAGS="-g -O2" 4941 else 4942 CXXFLAGS="-g" 4943 fi 4944else 4945 if test "$GXX" = yes; then 4946 CXXFLAGS="-O2" 4947 else 4948 CXXFLAGS= 4949 fi 4950fi 4951ac_prog_cxx_stdcxx=no 4952if test x$ac_prog_cxx_stdcxx = xno 4953then : 4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 4955printf %s "checking for $CXX option to enable C++11 features... " >&6; } 4956if test ${ac_cv_prog_cxx_11+y} 4957then : 4958 printf %s "(cached) " >&6 4959else $as_nop 4960 ac_cv_prog_cxx_11=no 4961ac_save_CXX=$CXX 4962cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963/* end confdefs.h. */ 4964$ac_cxx_conftest_cxx11_program 4965_ACEOF 4966for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 4967do 4968 CXX="$ac_save_CXX $ac_arg" 4969 if ac_fn_cxx_try_compile "$LINENO" 4970then : 4971 ac_cv_prog_cxx_cxx11=$ac_arg 4972fi 4973rm -f core conftest.err conftest.$ac_objext conftest.beam 4974 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 4975done 4976rm -f conftest.$ac_ext 4977CXX=$ac_save_CXX 4978fi 4979 4980if test "x$ac_cv_prog_cxx_cxx11" = xno 4981then : 4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4983printf "%s\n" "unsupported" >&6; } 4984else $as_nop 4985 if test "x$ac_cv_prog_cxx_cxx11" = x 4986then : 4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4988printf "%s\n" "none needed" >&6; } 4989else $as_nop 4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 4991printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 4992 CXX="$CXX $ac_cv_prog_cxx_cxx11" 4993fi 4994 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 4995 ac_prog_cxx_stdcxx=cxx11 4996fi 4997fi 4998if test x$ac_prog_cxx_stdcxx = xno 4999then : 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 5001printf %s "checking for $CXX option to enable C++98 features... " >&6; } 5002if test ${ac_cv_prog_cxx_98+y} 5003then : 5004 printf %s "(cached) " >&6 5005else $as_nop 5006 ac_cv_prog_cxx_98=no 5007ac_save_CXX=$CXX 5008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5009/* end confdefs.h. */ 5010$ac_cxx_conftest_cxx98_program 5011_ACEOF 5012for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 5013do 5014 CXX="$ac_save_CXX $ac_arg" 5015 if ac_fn_cxx_try_compile "$LINENO" 5016then : 5017 ac_cv_prog_cxx_cxx98=$ac_arg 5018fi 5019rm -f core conftest.err conftest.$ac_objext conftest.beam 5020 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 5021done 5022rm -f conftest.$ac_ext 5023CXX=$ac_save_CXX 5024fi 5025 5026if test "x$ac_cv_prog_cxx_cxx98" = xno 5027then : 5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5029printf "%s\n" "unsupported" >&6; } 5030else $as_nop 5031 if test "x$ac_cv_prog_cxx_cxx98" = x 5032then : 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5034printf "%s\n" "none needed" >&6; } 5035else $as_nop 5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 5037printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 5038 CXX="$CXX $ac_cv_prog_cxx_cxx98" 5039fi 5040 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 5041 ac_prog_cxx_stdcxx=cxx98 5042fi 5043fi 5044 5045ac_ext=c 5046ac_cpp='$CPP $CPPFLAGS' 5047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5049ac_compiler_gnu=$ac_cv_c_compiler_gnu 5050 5051depcc="$CXX" am_compiler_list= 5052 5053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5054printf %s "checking dependency style of $depcc... " >&6; } 5055if test ${am_cv_CXX_dependencies_compiler_type+y} 5056then : 5057 printf %s "(cached) " >&6 5058else $as_nop 5059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5060 # We make a subdir and do the tests there. Otherwise we can end up 5061 # making bogus files that we don't know about and never remove. For 5062 # instance it was reported that on HP-UX the gcc test will end up 5063 # making a dummy file named 'D' -- because '-MD' means "put the output 5064 # in D". 5065 rm -rf conftest.dir 5066 mkdir conftest.dir 5067 # Copy depcomp to subdir because otherwise we won't find it if we're 5068 # using a relative directory. 5069 cp "$am_depcomp" conftest.dir 5070 cd conftest.dir 5071 # We will build objects and dependencies in a subdirectory because 5072 # it helps to detect inapplicable dependency modes. For instance 5073 # both Tru64's cc and ICC support -MD to output dependencies as a 5074 # side effect of compilation, but ICC will put the dependencies in 5075 # the current directory while Tru64 will put them in the object 5076 # directory. 5077 mkdir sub 5078 5079 am_cv_CXX_dependencies_compiler_type=none 5080 if test "$am_compiler_list" = ""; then 5081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5082 fi 5083 am__universal=false 5084 case " $depcc " in #( 5085 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5086 esac 5087 5088 for depmode in $am_compiler_list; do 5089 # Setup a source with many dependencies, because some compilers 5090 # like to wrap large dependency lists on column 80 (with \), and 5091 # we should not choose a depcomp mode which is confused by this. 5092 # 5093 # We need to recreate these files for each test, as the compiler may 5094 # overwrite some of them when testing with obscure command lines. 5095 # This happens at least with the AIX C compiler. 5096 : > sub/conftest.c 5097 for i in 1 2 3 4 5 6; do 5098 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5100 # Solaris 10 /bin/sh. 5101 echo '/* dummy */' > sub/conftst$i.h 5102 done 5103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5104 5105 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5106 # mode. It turns out that the SunPro C++ compiler does not properly 5107 # handle '-M -o', and we need to detect this. Also, some Intel 5108 # versions had trouble with output in subdirs. 5109 am__obj=sub/conftest.${OBJEXT-o} 5110 am__minus_obj="-o $am__obj" 5111 case $depmode in 5112 gcc) 5113 # This depmode causes a compiler race in universal mode. 5114 test "$am__universal" = false || continue 5115 ;; 5116 nosideeffect) 5117 # After this tag, mechanisms are not by side-effect, so they'll 5118 # only be used when explicitly requested. 5119 if test "x$enable_dependency_tracking" = xyes; then 5120 continue 5121 else 5122 break 5123 fi 5124 ;; 5125 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5126 # This compiler won't grok '-c -o', but also, the minuso test has 5127 # not run yet. These depmodes are late enough in the game, and 5128 # so weak that their functioning should not be impacted. 5129 am__obj=conftest.${OBJEXT-o} 5130 am__minus_obj= 5131 ;; 5132 none) break ;; 5133 esac 5134 if depmode=$depmode \ 5135 source=sub/conftest.c object=$am__obj \ 5136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5138 >/dev/null 2>conftest.err && 5139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5143 # icc doesn't choke on unknown options, it will just issue warnings 5144 # or remarks (even with -Werror). So we grep stderr for any message 5145 # that says an option was ignored or not supported. 5146 # When given -MP, icc 7.0 and 7.1 complain thusly: 5147 # icc: Command line warning: ignoring option '-M'; no argument required 5148 # The diagnosis changed in icc 8.0: 5149 # icc: Command line remark: option '-MP' not supported 5150 if (grep 'ignoring option' conftest.err || 5151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5152 am_cv_CXX_dependencies_compiler_type=$depmode 5153 break 5154 fi 5155 fi 5156 done 5157 5158 cd .. 5159 rm -rf conftest.dir 5160else 5161 am_cv_CXX_dependencies_compiler_type=none 5162fi 5163 5164fi 5165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5166printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 5167CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5168 5169 if 5170 test "x$enable_dependency_tracking" != xno \ 5171 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5172 am__fastdepCXX_TRUE= 5173 am__fastdepCXX_FALSE='#' 5174else 5175 am__fastdepCXX_TRUE='#' 5176 am__fastdepCXX_FALSE= 5177fi 5178 5179 5180 5181ac_header= ac_cache= 5182for ac_item in $ac_header_c_list 5183do 5184 if test $ac_cache; then 5185 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5186 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5187 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5188 fi 5189 ac_header= ac_cache= 5190 elif test $ac_header; then 5191 ac_cache=$ac_item 5192 else 5193 ac_header=$ac_item 5194 fi 5195done 5196 5197 5198 5199 5200 5201 5202 5203 5204if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5205then : 5206 5207printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5208 5209fi 5210 5211 5212 5213 5214 5215 5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5217printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5218if test ${ac_cv_safe_to_define___extensions__+y} 5219then : 5220 printf %s "(cached) " >&6 5221else $as_nop 5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5223/* end confdefs.h. */ 5224 5225# define __EXTENSIONS__ 1 5226 $ac_includes_default 5227int 5228main (void) 5229{ 5230 5231 ; 5232 return 0; 5233} 5234_ACEOF 5235if ac_fn_c_try_compile "$LINENO" 5236then : 5237 ac_cv_safe_to_define___extensions__=yes 5238else $as_nop 5239 ac_cv_safe_to_define___extensions__=no 5240fi 5241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5242fi 5243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5244printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5245 5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5247printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5248if test ${ac_cv_should_define__xopen_source+y} 5249then : 5250 printf %s "(cached) " >&6 5251else $as_nop 5252 ac_cv_should_define__xopen_source=no 5253 if test $ac_cv_header_wchar_h = yes 5254then : 5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256/* end confdefs.h. */ 5257 5258 #include <wchar.h> 5259 mbstate_t x; 5260int 5261main (void) 5262{ 5263 5264 ; 5265 return 0; 5266} 5267_ACEOF 5268if ac_fn_c_try_compile "$LINENO" 5269then : 5270 5271else $as_nop 5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274 5275 #define _XOPEN_SOURCE 500 5276 #include <wchar.h> 5277 mbstate_t x; 5278int 5279main (void) 5280{ 5281 5282 ; 5283 return 0; 5284} 5285_ACEOF 5286if ac_fn_c_try_compile "$LINENO" 5287then : 5288 ac_cv_should_define__xopen_source=yes 5289fi 5290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5291fi 5292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5293fi 5294fi 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5296printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5297 5298 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5299 5300 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5301 5302 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5303 5304 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5305 5306 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5307 5308 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5309 5310 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5311 5312 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5313 5314 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5315 5316 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5317 5318 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5319 5320 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5321 5322 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5323 5324 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5325 5326 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5327 5328 if test $ac_cv_header_minix_config_h = yes 5329then : 5330 MINIX=yes 5331 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5332 5333 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5334 5335 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5336 5337else $as_nop 5338 MINIX= 5339fi 5340 if test $ac_cv_safe_to_define___extensions__ = yes 5341then : 5342 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5343 5344fi 5345 if test $ac_cv_should_define__xopen_source = yes 5346then : 5347 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5348 5349fi 5350 5351 5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5353printf %s "checking for an ANSI C-conforming const... " >&6; } 5354if test ${ac_cv_c_const+y} 5355then : 5356 printf %s "(cached) " >&6 5357else $as_nop 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5359/* end confdefs.h. */ 5360 5361int 5362main (void) 5363{ 5364 5365#ifndef __cplusplus 5366 /* Ultrix mips cc rejects this sort of thing. */ 5367 typedef int charset[2]; 5368 const charset cs = { 0, 0 }; 5369 /* SunOS 4.1.1 cc rejects this. */ 5370 char const *const *pcpcc; 5371 char **ppc; 5372 /* NEC SVR4.0.2 mips cc rejects this. */ 5373 struct point {int x, y;}; 5374 static struct point const zero = {0,0}; 5375 /* IBM XL C 1.02.0.0 rejects this. 5376 It does not let you subtract one const X* pointer from another in 5377 an arm of an if-expression whose if-part is not a constant 5378 expression */ 5379 const char *g = "string"; 5380 pcpcc = &g + (g ? g-g : 0); 5381 /* HPUX 7.0 cc rejects these. */ 5382 ++pcpcc; 5383 ppc = (char**) pcpcc; 5384 pcpcc = (char const *const *) ppc; 5385 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5386 char tx; 5387 char *t = &tx; 5388 char const *s = 0 ? (char *) 0 : (char const *) 0; 5389 5390 *t++ = 0; 5391 if (s) return 0; 5392 } 5393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5394 int x[] = {25, 17}; 5395 const int *foo = &x[0]; 5396 ++foo; 5397 } 5398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5399 typedef const int *iptr; 5400 iptr p = 0; 5401 ++p; 5402 } 5403 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 5404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5405 struct s { int j; const int *ap[3]; } bx; 5406 struct s *b = &bx; b->j = 5; 5407 } 5408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5409 const int foo = 10; 5410 if (!foo) return 0; 5411 } 5412 return !cs[0] && !zero.x; 5413#endif 5414 5415 ; 5416 return 0; 5417} 5418_ACEOF 5419if ac_fn_c_try_compile "$LINENO" 5420then : 5421 ac_cv_c_const=yes 5422else $as_nop 5423 ac_cv_c_const=no 5424fi 5425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5426fi 5427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5428printf "%s\n" "$ac_cv_c_const" >&6; } 5429if test $ac_cv_c_const = no; then 5430 5431printf "%s\n" "#define const /**/" >>confdefs.h 5432 5433fi 5434 5435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 5436printf %s "checking for C/C++ restrict keyword... " >&6; } 5437if test ${ac_cv_c_restrict+y} 5438then : 5439 printf %s "(cached) " >&6 5440else $as_nop 5441 ac_cv_c_restrict=no 5442 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 5443 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 5444 # Put 'restrict' last, because C++ lacks it. 5445 for ac_kw in __restrict__ __restrict _Restrict restrict; do 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448typedef int *int_ptr; 5449 int foo (int_ptr $ac_kw ip) { return ip[0]; } 5450 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 5451 int bar (int ip[$ac_kw]) { return ip[0]; } 5452 5453int 5454main (void) 5455{ 5456int s[1]; 5457 int *$ac_kw t = s; 5458 t[0] = 0; 5459 return foo (t) + bar (t); 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465if ac_fn_c_try_compile "$LINENO" 5466then : 5467 ac_cv_c_restrict=$ac_kw 5468fi 5469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5470 test "$ac_cv_c_restrict" != no && break 5471 done 5472 5473fi 5474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 5475printf "%s\n" "$ac_cv_c_restrict" >&6; } 5476 5477 case $ac_cv_c_restrict in 5478 restrict) ;; 5479 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 5480 ;; 5481 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 5482 ;; 5483 esac 5484 5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 5486printf %s "checking for working volatile... " >&6; } 5487if test ${ac_cv_c_volatile+y} 5488then : 5489 printf %s "(cached) " >&6 5490else $as_nop 5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5492/* end confdefs.h. */ 5493 5494int 5495main (void) 5496{ 5497 5498volatile int x; 5499int * volatile y = (int *) 0; 5500return !x && !y; 5501 ; 5502 return 0; 5503} 5504_ACEOF 5505if ac_fn_c_try_compile "$LINENO" 5506then : 5507 ac_cv_c_volatile=yes 5508else $as_nop 5509 ac_cv_c_volatile=no 5510fi 5511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5512fi 5513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 5514printf "%s\n" "$ac_cv_c_volatile" >&6; } 5515if test $ac_cv_c_volatile = no; then 5516 5517printf "%s\n" "#define volatile /**/" >>confdefs.h 5518 5519fi 5520 5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 5522printf %s "checking for C compiler vendor... " >&6; } 5523if test ${ax_cv_c_compiler_vendor+y} 5524then : 5525 printf %s "(cached) " >&6 5526else $as_nop 5527 5528 vendors=" 5529 intel: __ICC,__ECC,__INTEL_COMPILER 5530 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ 5531 pathscale: __PATHCC__,__PATHSCALE__ 5532 clang: __clang__ 5533 cray: _CRAYC 5534 fujitsu: __FUJITSU 5535 sdcc: SDCC,__SDCC 5536 sx: _SX 5537 portland: __PGI 5538 gnu: __GNUC__ 5539 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95 5540 hp: __HP_cc,__HP_aCC 5541 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 5542 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 5543 comeau: __COMO__ 5544 kai: __KCC 5545 lcc: __LCC__ 5546 sgi: __sgi,sgi 5547 microsoft: _MSC_VER 5548 metrowerks: __MWERKS__ 5549 watcom: __WATCOMC__ 5550 tcc: __TINYC__ 5551 unknown: UNKNOWN 5552 " 5553 for ventest in $vendors; do 5554 case $ventest in 5555 *:) 5556 vendor=$ventest 5557 continue 5558 ;; 5559 *) 5560 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" 5561 ;; 5562 esac 5563 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566 5567int 5568main (void) 5569{ 5570 5571#if !($vencpp) 5572 thisisanerror; 5573#endif 5574 5575 ; 5576 return 0; 5577} 5578_ACEOF 5579if ac_fn_c_try_compile "$LINENO" 5580then : 5581 break 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5584 done 5585 5586 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 5587 5588fi 5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 5590printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; } 5591 5592 5593# libtool 5594 5595case `pwd` in 5596 *\ * | *\ *) 5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5598printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5599esac 5600 5601 5602 5603macro_version='2.4.7' 5604macro_revision='2.4.7' 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619ltmain=$ac_aux_dir/ltmain.sh 5620 5621 5622 5623 # Make sure we can run config.sub. 5624$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5625 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5626 5627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5628printf %s "checking build system type... " >&6; } 5629if test ${ac_cv_build+y} 5630then : 5631 printf %s "(cached) " >&6 5632else $as_nop 5633 ac_build_alias=$build_alias 5634test "x$ac_build_alias" = x && 5635 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5636test "x$ac_build_alias" = x && 5637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5638ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5639 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5640 5641fi 5642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5643printf "%s\n" "$ac_cv_build" >&6; } 5644case $ac_cv_build in 5645*-*-*) ;; 5646*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5647esac 5648build=$ac_cv_build 5649ac_save_IFS=$IFS; IFS='-' 5650set x $ac_cv_build 5651shift 5652build_cpu=$1 5653build_vendor=$2 5654shift; shift 5655# Remember, the first character of IFS is used to create $*, 5656# except with old shells: 5657build_os=$* 5658IFS=$ac_save_IFS 5659case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5660 5661 5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5663printf %s "checking host system type... " >&6; } 5664if test ${ac_cv_host+y} 5665then : 5666 printf %s "(cached) " >&6 5667else $as_nop 5668 if test "x$host_alias" = x; then 5669 ac_cv_host=$ac_cv_build 5670else 5671 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5672 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5673fi 5674 5675fi 5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5677printf "%s\n" "$ac_cv_host" >&6; } 5678case $ac_cv_host in 5679*-*-*) ;; 5680*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5681esac 5682host=$ac_cv_host 5683ac_save_IFS=$IFS; IFS='-' 5684set x $ac_cv_host 5685shift 5686host_cpu=$1 5687host_vendor=$2 5688shift; shift 5689# Remember, the first character of IFS is used to create $*, 5690# except with old shells: 5691host_os=$* 5692IFS=$ac_save_IFS 5693case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5694 5695 5696# Backslashify metacharacters that are still active within 5697# double-quoted strings. 5698sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5699 5700# Same as above, but do not quote variable references. 5701double_quote_subst='s/\(["`\\]\)/\\\1/g' 5702 5703# Sed substitution to delay expansion of an escaped shell variable in a 5704# double_quote_subst'ed string. 5705delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5706 5707# Sed substitution to delay expansion of an escaped single quote. 5708delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5709 5710# Sed substitution to avoid accidental globbing in evaled expressions 5711no_glob_subst='s/\*/\\\*/g' 5712 5713ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5714ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5715ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5716 5717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5718printf %s "checking how to print strings... " >&6; } 5719# Test print first, because it will be a builtin if present. 5720if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5721 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5722 ECHO='print -r --' 5723elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5724 ECHO='printf %s\n' 5725else 5726 # Use this function as a fallback that always works. 5727 func_fallback_echo () 5728 { 5729 eval 'cat <<_LTECHO_EOF 5730$1 5731_LTECHO_EOF' 5732 } 5733 ECHO='func_fallback_echo' 5734fi 5735 5736# func_echo_all arg... 5737# Invoke $ECHO with all args, space-separated. 5738func_echo_all () 5739{ 5740 $ECHO "" 5741} 5742 5743case $ECHO in 5744 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5745printf "%s\n" "printf" >&6; } ;; 5746 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5747printf "%s\n" "print -r" >&6; } ;; 5748 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5749printf "%s\n" "cat" >&6; } ;; 5750esac 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5766printf %s "checking for a sed that does not truncate output... " >&6; } 5767if test ${ac_cv_path_SED+y} 5768then : 5769 printf %s "(cached) " >&6 5770else $as_nop 5771 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5772 for ac_i in 1 2 3 4 5 6 7; do 5773 ac_script="$ac_script$as_nl$ac_script" 5774 done 5775 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5776 { ac_script=; unset ac_script;} 5777 if test -z "$SED"; then 5778 ac_path_SED_found=false 5779 # Loop through the user's path and test for each of PROGNAME-LIST 5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5781for as_dir in $PATH 5782do 5783 IFS=$as_save_IFS 5784 case $as_dir in #((( 5785 '') as_dir=./ ;; 5786 */) ;; 5787 *) as_dir=$as_dir/ ;; 5788 esac 5789 for ac_prog in sed gsed 5790 do 5791 for ac_exec_ext in '' $ac_executable_extensions; do 5792 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5793 as_fn_executable_p "$ac_path_SED" || continue 5794# Check for GNU ac_path_SED and select it if it is found. 5795 # Check for GNU $ac_path_SED 5796case `"$ac_path_SED" --version 2>&1` in 5797*GNU*) 5798 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5799*) 5800 ac_count=0 5801 printf %s 0123456789 >"conftest.in" 5802 while : 5803 do 5804 cat "conftest.in" "conftest.in" >"conftest.tmp" 5805 mv "conftest.tmp" "conftest.in" 5806 cp "conftest.in" "conftest.nl" 5807 printf "%s\n" '' >> "conftest.nl" 5808 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5810 as_fn_arith $ac_count + 1 && ac_count=$as_val 5811 if test $ac_count -gt ${ac_path_SED_max-0}; then 5812 # Best one so far, save it but keep looking for a better one 5813 ac_cv_path_SED="$ac_path_SED" 5814 ac_path_SED_max=$ac_count 5815 fi 5816 # 10*(2^10) chars as input seems more than enough 5817 test $ac_count -gt 10 && break 5818 done 5819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5820esac 5821 5822 $ac_path_SED_found && break 3 5823 done 5824 done 5825 done 5826IFS=$as_save_IFS 5827 if test -z "$ac_cv_path_SED"; then 5828 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5829 fi 5830else 5831 ac_cv_path_SED=$SED 5832fi 5833 5834fi 5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5836printf "%s\n" "$ac_cv_path_SED" >&6; } 5837 SED="$ac_cv_path_SED" 5838 rm -f conftest.sed 5839 5840test -z "$SED" && SED=sed 5841Xsed="$SED -e 1s/^X//" 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5854printf %s "checking for grep that handles long lines and -e... " >&6; } 5855if test ${ac_cv_path_GREP+y} 5856then : 5857 printf %s "(cached) " >&6 5858else $as_nop 5859 if test -z "$GREP"; then 5860 ac_path_GREP_found=false 5861 # Loop through the user's path and test for each of PROGNAME-LIST 5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5864do 5865 IFS=$as_save_IFS 5866 case $as_dir in #((( 5867 '') as_dir=./ ;; 5868 */) ;; 5869 *) as_dir=$as_dir/ ;; 5870 esac 5871 for ac_prog in grep ggrep 5872 do 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5875 as_fn_executable_p "$ac_path_GREP" || continue 5876# Check for GNU ac_path_GREP and select it if it is found. 5877 # Check for GNU $ac_path_GREP 5878case `"$ac_path_GREP" --version 2>&1` in 5879*GNU*) 5880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5881*) 5882 ac_count=0 5883 printf %s 0123456789 >"conftest.in" 5884 while : 5885 do 5886 cat "conftest.in" "conftest.in" >"conftest.tmp" 5887 mv "conftest.tmp" "conftest.in" 5888 cp "conftest.in" "conftest.nl" 5889 printf "%s\n" 'GREP' >> "conftest.nl" 5890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5892 as_fn_arith $ac_count + 1 && ac_count=$as_val 5893 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5894 # Best one so far, save it but keep looking for a better one 5895 ac_cv_path_GREP="$ac_path_GREP" 5896 ac_path_GREP_max=$ac_count 5897 fi 5898 # 10*(2^10) chars as input seems more than enough 5899 test $ac_count -gt 10 && break 5900 done 5901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5902esac 5903 5904 $ac_path_GREP_found && break 3 5905 done 5906 done 5907 done 5908IFS=$as_save_IFS 5909 if test -z "$ac_cv_path_GREP"; then 5910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5911 fi 5912else 5913 ac_cv_path_GREP=$GREP 5914fi 5915 5916fi 5917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5918printf "%s\n" "$ac_cv_path_GREP" >&6; } 5919 GREP="$ac_cv_path_GREP" 5920 5921 5922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5923printf %s "checking for egrep... " >&6; } 5924if test ${ac_cv_path_EGREP+y} 5925then : 5926 printf %s "(cached) " >&6 5927else $as_nop 5928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5929 then ac_cv_path_EGREP="$GREP -E" 5930 else 5931 if test -z "$EGREP"; then 5932 ac_path_EGREP_found=false 5933 # Loop through the user's path and test for each of PROGNAME-LIST 5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5936do 5937 IFS=$as_save_IFS 5938 case $as_dir in #((( 5939 '') as_dir=./ ;; 5940 */) ;; 5941 *) as_dir=$as_dir/ ;; 5942 esac 5943 for ac_prog in egrep 5944 do 5945 for ac_exec_ext in '' $ac_executable_extensions; do 5946 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5947 as_fn_executable_p "$ac_path_EGREP" || continue 5948# Check for GNU ac_path_EGREP and select it if it is found. 5949 # Check for GNU $ac_path_EGREP 5950case `"$ac_path_EGREP" --version 2>&1` in 5951*GNU*) 5952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5953*) 5954 ac_count=0 5955 printf %s 0123456789 >"conftest.in" 5956 while : 5957 do 5958 cat "conftest.in" "conftest.in" >"conftest.tmp" 5959 mv "conftest.tmp" "conftest.in" 5960 cp "conftest.in" "conftest.nl" 5961 printf "%s\n" 'EGREP' >> "conftest.nl" 5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5964 as_fn_arith $ac_count + 1 && ac_count=$as_val 5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5966 # Best one so far, save it but keep looking for a better one 5967 ac_cv_path_EGREP="$ac_path_EGREP" 5968 ac_path_EGREP_max=$ac_count 5969 fi 5970 # 10*(2^10) chars as input seems more than enough 5971 test $ac_count -gt 10 && break 5972 done 5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5974esac 5975 5976 $ac_path_EGREP_found && break 3 5977 done 5978 done 5979 done 5980IFS=$as_save_IFS 5981 if test -z "$ac_cv_path_EGREP"; then 5982 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5983 fi 5984else 5985 ac_cv_path_EGREP=$EGREP 5986fi 5987 5988 fi 5989fi 5990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5991printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5992 EGREP="$ac_cv_path_EGREP" 5993 5994 5995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5996printf %s "checking for fgrep... " >&6; } 5997if test ${ac_cv_path_FGREP+y} 5998then : 5999 printf %s "(cached) " >&6 6000else $as_nop 6001 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6002 then ac_cv_path_FGREP="$GREP -F" 6003 else 6004 if test -z "$FGREP"; then 6005 ac_path_FGREP_found=false 6006 # Loop through the user's path and test for each of PROGNAME-LIST 6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6009do 6010 IFS=$as_save_IFS 6011 case $as_dir in #((( 6012 '') as_dir=./ ;; 6013 */) ;; 6014 *) as_dir=$as_dir/ ;; 6015 esac 6016 for ac_prog in fgrep 6017 do 6018 for ac_exec_ext in '' $ac_executable_extensions; do 6019 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6020 as_fn_executable_p "$ac_path_FGREP" || continue 6021# Check for GNU ac_path_FGREP and select it if it is found. 6022 # Check for GNU $ac_path_FGREP 6023case `"$ac_path_FGREP" --version 2>&1` in 6024*GNU*) 6025 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6026*) 6027 ac_count=0 6028 printf %s 0123456789 >"conftest.in" 6029 while : 6030 do 6031 cat "conftest.in" "conftest.in" >"conftest.tmp" 6032 mv "conftest.tmp" "conftest.in" 6033 cp "conftest.in" "conftest.nl" 6034 printf "%s\n" 'FGREP' >> "conftest.nl" 6035 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6037 as_fn_arith $ac_count + 1 && ac_count=$as_val 6038 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6039 # Best one so far, save it but keep looking for a better one 6040 ac_cv_path_FGREP="$ac_path_FGREP" 6041 ac_path_FGREP_max=$ac_count 6042 fi 6043 # 10*(2^10) chars as input seems more than enough 6044 test $ac_count -gt 10 && break 6045 done 6046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6047esac 6048 6049 $ac_path_FGREP_found && break 3 6050 done 6051 done 6052 done 6053IFS=$as_save_IFS 6054 if test -z "$ac_cv_path_FGREP"; then 6055 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6056 fi 6057else 6058 ac_cv_path_FGREP=$FGREP 6059fi 6060 6061 fi 6062fi 6063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6064printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6065 FGREP="$ac_cv_path_FGREP" 6066 6067 6068test -z "$GREP" && GREP=grep 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088# Check whether --with-gnu-ld was given. 6089if test ${with_gnu_ld+y} 6090then : 6091 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6092else $as_nop 6093 with_gnu_ld=no 6094fi 6095 6096ac_prog=ld 6097if test yes = "$GCC"; then 6098 # Check if gcc -print-prog-name=ld gives a path. 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6100printf %s "checking for ld used by $CC... " >&6; } 6101 case $host in 6102 *-*-mingw*) 6103 # gcc leaves a trailing carriage return, which upsets mingw 6104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6105 *) 6106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6107 esac 6108 case $ac_prog in 6109 # Accept absolute paths. 6110 [\\/]* | ?:[\\/]*) 6111 re_direlt='/[^/][^/]*/\.\./' 6112 # Canonicalize the pathname of ld 6113 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6114 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6115 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6116 done 6117 test -z "$LD" && LD=$ac_prog 6118 ;; 6119 "") 6120 # If it fails, then pretend we aren't using GCC. 6121 ac_prog=ld 6122 ;; 6123 *) 6124 # If it is relative, then search for the first ld in PATH. 6125 with_gnu_ld=unknown 6126 ;; 6127 esac 6128elif test yes = "$with_gnu_ld"; then 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6130printf %s "checking for GNU ld... " >&6; } 6131else 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6133printf %s "checking for non-GNU ld... " >&6; } 6134fi 6135if test ${lt_cv_path_LD+y} 6136then : 6137 printf %s "(cached) " >&6 6138else $as_nop 6139 if test -z "$LD"; then 6140 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6141 for ac_dir in $PATH; do 6142 IFS=$lt_save_ifs 6143 test -z "$ac_dir" && ac_dir=. 6144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6145 lt_cv_path_LD=$ac_dir/$ac_prog 6146 # Check to see if the program is GNU ld. I'd rather use --version, 6147 # but apparently some variants of GNU ld only accept -v. 6148 # Break only if it was the GNU/non-GNU ld that we prefer. 6149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6150 *GNU* | *'with BFD'*) 6151 test no != "$with_gnu_ld" && break 6152 ;; 6153 *) 6154 test yes != "$with_gnu_ld" && break 6155 ;; 6156 esac 6157 fi 6158 done 6159 IFS=$lt_save_ifs 6160else 6161 lt_cv_path_LD=$LD # Let the user override the test with a path. 6162fi 6163fi 6164 6165LD=$lt_cv_path_LD 6166if test -n "$LD"; then 6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6168printf "%s\n" "$LD" >&6; } 6169else 6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6171printf "%s\n" "no" >&6; } 6172fi 6173test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6175printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6176if test ${lt_cv_prog_gnu_ld+y} 6177then : 6178 printf %s "(cached) " >&6 6179else $as_nop 6180 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6181case `$LD -v 2>&1 </dev/null` in 6182*GNU* | *'with BFD'*) 6183 lt_cv_prog_gnu_ld=yes 6184 ;; 6185*) 6186 lt_cv_prog_gnu_ld=no 6187 ;; 6188esac 6189fi 6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6191printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6192with_gnu_ld=$lt_cv_prog_gnu_ld 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6203printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6204if test ${lt_cv_path_NM+y} 6205then : 6206 printf %s "(cached) " >&6 6207else $as_nop 6208 if test -n "$NM"; then 6209 # Let the user override the test. 6210 lt_cv_path_NM=$NM 6211else 6212 lt_nm_to_check=${ac_tool_prefix}nm 6213 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6214 lt_nm_to_check="$lt_nm_to_check nm" 6215 fi 6216 for lt_tmp_nm in $lt_nm_to_check; do 6217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6218 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6219 IFS=$lt_save_ifs 6220 test -z "$ac_dir" && ac_dir=. 6221 tmp_nm=$ac_dir/$lt_tmp_nm 6222 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6223 # Check to see if the nm accepts a BSD-compat flag. 6224 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6225 # nm: unknown option "B" ignored 6226 # Tru64's nm complains that /dev/null is an invalid object file 6227 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6228 case $build_os in 6229 mingw*) lt_bad_file=conftest.nm/nofile ;; 6230 *) lt_bad_file=/dev/null ;; 6231 esac 6232 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6233 *$lt_bad_file* | *'Invalid file or object type'*) 6234 lt_cv_path_NM="$tmp_nm -B" 6235 break 2 6236 ;; 6237 *) 6238 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6239 */dev/null*) 6240 lt_cv_path_NM="$tmp_nm -p" 6241 break 2 6242 ;; 6243 *) 6244 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6245 continue # so that we can try to find one that supports BSD flags 6246 ;; 6247 esac 6248 ;; 6249 esac 6250 fi 6251 done 6252 IFS=$lt_save_ifs 6253 done 6254 : ${lt_cv_path_NM=no} 6255fi 6256fi 6257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6258printf "%s\n" "$lt_cv_path_NM" >&6; } 6259if test no != "$lt_cv_path_NM"; then 6260 NM=$lt_cv_path_NM 6261else 6262 # Didn't find any BSD compatible name lister, look for dumpbin. 6263 if test -n "$DUMPBIN"; then : 6264 # Let the user override the test. 6265 else 6266 if test -n "$ac_tool_prefix"; then 6267 for ac_prog in dumpbin "link -dump" 6268 do 6269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6270set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6272printf %s "checking for $ac_word... " >&6; } 6273if test ${ac_cv_prog_DUMPBIN+y} 6274then : 6275 printf %s "(cached) " >&6 6276else $as_nop 6277 if test -n "$DUMPBIN"; then 6278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6279else 6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6281for as_dir in $PATH 6282do 6283 IFS=$as_save_IFS 6284 case $as_dir in #((( 6285 '') as_dir=./ ;; 6286 */) ;; 6287 *) as_dir=$as_dir/ ;; 6288 esac 6289 for ac_exec_ext in '' $ac_executable_extensions; do 6290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6291 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6293 break 2 6294 fi 6295done 6296 done 6297IFS=$as_save_IFS 6298 6299fi 6300fi 6301DUMPBIN=$ac_cv_prog_DUMPBIN 6302if test -n "$DUMPBIN"; then 6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6304printf "%s\n" "$DUMPBIN" >&6; } 6305else 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6307printf "%s\n" "no" >&6; } 6308fi 6309 6310 6311 test -n "$DUMPBIN" && break 6312 done 6313fi 6314if test -z "$DUMPBIN"; then 6315 ac_ct_DUMPBIN=$DUMPBIN 6316 for ac_prog in dumpbin "link -dump" 6317do 6318 # Extract the first word of "$ac_prog", so it can be a program name with args. 6319set dummy $ac_prog; ac_word=$2 6320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6321printf %s "checking for $ac_word... " >&6; } 6322if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6323then : 6324 printf %s "(cached) " >&6 6325else $as_nop 6326 if test -n "$ac_ct_DUMPBIN"; then 6327 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6328else 6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6330for as_dir in $PATH 6331do 6332 IFS=$as_save_IFS 6333 case $as_dir in #((( 6334 '') as_dir=./ ;; 6335 */) ;; 6336 *) as_dir=$as_dir/ ;; 6337 esac 6338 for ac_exec_ext in '' $ac_executable_extensions; do 6339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6340 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6342 break 2 6343 fi 6344done 6345 done 6346IFS=$as_save_IFS 6347 6348fi 6349fi 6350ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6351if test -n "$ac_ct_DUMPBIN"; then 6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6353printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6354else 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6356printf "%s\n" "no" >&6; } 6357fi 6358 6359 6360 test -n "$ac_ct_DUMPBIN" && break 6361done 6362 6363 if test "x$ac_ct_DUMPBIN" = x; then 6364 DUMPBIN=":" 6365 else 6366 case $cross_compiling:$ac_tool_warned in 6367yes:) 6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6370ac_tool_warned=yes ;; 6371esac 6372 DUMPBIN=$ac_ct_DUMPBIN 6373 fi 6374fi 6375 6376 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6377 *COFF*) 6378 DUMPBIN="$DUMPBIN -symbols -headers" 6379 ;; 6380 *) 6381 DUMPBIN=: 6382 ;; 6383 esac 6384 fi 6385 6386 if test : != "$DUMPBIN"; then 6387 NM=$DUMPBIN 6388 fi 6389fi 6390test -z "$NM" && NM=nm 6391 6392 6393 6394 6395 6396 6397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6398printf %s "checking the name lister ($NM) interface... " >&6; } 6399if test ${lt_cv_nm_interface+y} 6400then : 6401 printf %s "(cached) " >&6 6402else $as_nop 6403 lt_cv_nm_interface="BSD nm" 6404 echo "int some_variable = 0;" > conftest.$ac_ext 6405 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6406 (eval "$ac_compile" 2>conftest.err) 6407 cat conftest.err >&5 6408 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6409 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6410 cat conftest.err >&5 6411 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6412 cat conftest.out >&5 6413 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6414 lt_cv_nm_interface="MS dumpbin" 6415 fi 6416 rm -f conftest* 6417fi 6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6419printf "%s\n" "$lt_cv_nm_interface" >&6; } 6420 6421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6422printf %s "checking whether ln -s works... " >&6; } 6423LN_S=$as_ln_s 6424if test "$LN_S" = "ln -s"; then 6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6426printf "%s\n" "yes" >&6; } 6427else 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6429printf "%s\n" "no, using $LN_S" >&6; } 6430fi 6431 6432# find the maximum length of command line arguments 6433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6434printf %s "checking the maximum length of command line arguments... " >&6; } 6435if test ${lt_cv_sys_max_cmd_len+y} 6436then : 6437 printf %s "(cached) " >&6 6438else $as_nop 6439 i=0 6440 teststring=ABCD 6441 6442 case $build_os in 6443 msdosdjgpp*) 6444 # On DJGPP, this test can blow up pretty badly due to problems in libc 6445 # (any single argument exceeding 2000 bytes causes a buffer overrun 6446 # during glob expansion). Even if it were fixed, the result of this 6447 # check would be larger than it should be. 6448 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6449 ;; 6450 6451 gnu*) 6452 # Under GNU Hurd, this test is not required because there is 6453 # no limit to the length of command line arguments. 6454 # Libtool will interpret -1 as no limit whatsoever 6455 lt_cv_sys_max_cmd_len=-1; 6456 ;; 6457 6458 cygwin* | mingw* | cegcc*) 6459 # On Win9x/ME, this test blows up -- it succeeds, but takes 6460 # about 5 minutes as the teststring grows exponentially. 6461 # Worse, since 9x/ME are not pre-emptively multitasking, 6462 # you end up with a "frozen" computer, even though with patience 6463 # the test eventually succeeds (with a max line length of 256k). 6464 # Instead, let's just punt: use the minimum linelength reported by 6465 # all of the supported platforms: 8192 (on NT/2K/XP). 6466 lt_cv_sys_max_cmd_len=8192; 6467 ;; 6468 6469 mint*) 6470 # On MiNT this can take a long time and run out of memory. 6471 lt_cv_sys_max_cmd_len=8192; 6472 ;; 6473 6474 amigaos*) 6475 # On AmigaOS with pdksh, this test takes hours, literally. 6476 # So we just punt and use a minimum line length of 8192. 6477 lt_cv_sys_max_cmd_len=8192; 6478 ;; 6479 6480 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6481 # This has been around since 386BSD, at least. Likely further. 6482 if test -x /sbin/sysctl; then 6483 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6484 elif test -x /usr/sbin/sysctl; then 6485 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6486 else 6487 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6488 fi 6489 # And add a safety zone 6490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6492 ;; 6493 6494 interix*) 6495 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6496 lt_cv_sys_max_cmd_len=196608 6497 ;; 6498 6499 os2*) 6500 # The test takes a long time on OS/2. 6501 lt_cv_sys_max_cmd_len=8192 6502 ;; 6503 6504 osf*) 6505 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6506 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6507 # nice to cause kernel panics so lets avoid the loop below. 6508 # First set a reasonable default. 6509 lt_cv_sys_max_cmd_len=16384 6510 # 6511 if test -x /sbin/sysconfig; then 6512 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6513 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6514 esac 6515 fi 6516 ;; 6517 sco3.2v5*) 6518 lt_cv_sys_max_cmd_len=102400 6519 ;; 6520 sysv5* | sco5v6* | sysv4.2uw2*) 6521 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6522 if test -n "$kargmax"; then 6523 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6524 else 6525 lt_cv_sys_max_cmd_len=32768 6526 fi 6527 ;; 6528 *) 6529 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6530 if test -n "$lt_cv_sys_max_cmd_len" && \ 6531 test undefined != "$lt_cv_sys_max_cmd_len"; then 6532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6534 else 6535 # Make teststring a little bigger before we do anything with it. 6536 # a 1K string should be a reasonable start. 6537 for i in 1 2 3 4 5 6 7 8; do 6538 teststring=$teststring$teststring 6539 done 6540 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6541 # If test is not a shell built-in, we'll probably end up computing a 6542 # maximum length that is only half of the actual maximum length, but 6543 # we can't tell. 6544 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6545 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6546 test 17 != "$i" # 1/2 MB should be enough 6547 do 6548 i=`expr $i + 1` 6549 teststring=$teststring$teststring 6550 done 6551 # Only check the string length outside the loop. 6552 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6553 teststring= 6554 # Add a significant safety factor because C++ compilers can tack on 6555 # massive amounts of additional arguments before passing them to the 6556 # linker. It appears as though 1/2 is a usable value. 6557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6558 fi 6559 ;; 6560 esac 6561 6562fi 6563 6564if test -n "$lt_cv_sys_max_cmd_len"; then 6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6566printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6567else 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6569printf "%s\n" "none" >&6; } 6570fi 6571max_cmd_len=$lt_cv_sys_max_cmd_len 6572 6573 6574 6575 6576 6577 6578: ${CP="cp -f"} 6579: ${MV="mv -f"} 6580: ${RM="rm -f"} 6581 6582if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6583 lt_unset=unset 6584else 6585 lt_unset=false 6586fi 6587 6588 6589 6590 6591 6592# test EBCDIC or ASCII 6593case `echo X|tr X '\101'` in 6594 A) # ASCII based system 6595 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6596 lt_SP2NL='tr \040 \012' 6597 lt_NL2SP='tr \015\012 \040\040' 6598 ;; 6599 *) # EBCDIC based system 6600 lt_SP2NL='tr \100 \n' 6601 lt_NL2SP='tr \r\n \100\100' 6602 ;; 6603esac 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6614printf %s "checking how to convert $build file names to $host format... " >&6; } 6615if test ${lt_cv_to_host_file_cmd+y} 6616then : 6617 printf %s "(cached) " >&6 6618else $as_nop 6619 case $host in 6620 *-*-mingw* ) 6621 case $build in 6622 *-*-mingw* ) # actually msys 6623 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6624 ;; 6625 *-*-cygwin* ) 6626 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6627 ;; 6628 * ) # otherwise, assume *nix 6629 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6630 ;; 6631 esac 6632 ;; 6633 *-*-cygwin* ) 6634 case $build in 6635 *-*-mingw* ) # actually msys 6636 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6637 ;; 6638 *-*-cygwin* ) 6639 lt_cv_to_host_file_cmd=func_convert_file_noop 6640 ;; 6641 * ) # otherwise, assume *nix 6642 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6643 ;; 6644 esac 6645 ;; 6646 * ) # unhandled hosts (and "normal" native builds) 6647 lt_cv_to_host_file_cmd=func_convert_file_noop 6648 ;; 6649esac 6650 6651fi 6652 6653to_host_file_cmd=$lt_cv_to_host_file_cmd 6654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6655printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6656 6657 6658 6659 6660 6661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6662printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6663if test ${lt_cv_to_tool_file_cmd+y} 6664then : 6665 printf %s "(cached) " >&6 6666else $as_nop 6667 #assume ordinary cross tools, or native build. 6668lt_cv_to_tool_file_cmd=func_convert_file_noop 6669case $host in 6670 *-*-mingw* ) 6671 case $build in 6672 *-*-mingw* ) # actually msys 6673 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6674 ;; 6675 esac 6676 ;; 6677esac 6678 6679fi 6680 6681to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6683printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6684 6685 6686 6687 6688 6689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6690printf %s "checking for $LD option to reload object files... " >&6; } 6691if test ${lt_cv_ld_reload_flag+y} 6692then : 6693 printf %s "(cached) " >&6 6694else $as_nop 6695 lt_cv_ld_reload_flag='-r' 6696fi 6697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6698printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6699reload_flag=$lt_cv_ld_reload_flag 6700case $reload_flag in 6701"" | " "*) ;; 6702*) reload_flag=" $reload_flag" ;; 6703esac 6704reload_cmds='$LD$reload_flag -o $output$reload_objs' 6705case $host_os in 6706 cygwin* | mingw* | pw32* | cegcc*) 6707 if test yes != "$GCC"; then 6708 reload_cmds=false 6709 fi 6710 ;; 6711 darwin*) 6712 if test yes = "$GCC"; then 6713 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6714 else 6715 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6716 fi 6717 ;; 6718esac 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728if test -n "$ac_tool_prefix"; then 6729 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6730set dummy ${ac_tool_prefix}file; ac_word=$2 6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6732printf %s "checking for $ac_word... " >&6; } 6733if test ${ac_cv_prog_FILECMD+y} 6734then : 6735 printf %s "(cached) " >&6 6736else $as_nop 6737 if test -n "$FILECMD"; then 6738 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6739else 6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741for as_dir in $PATH 6742do 6743 IFS=$as_save_IFS 6744 case $as_dir in #((( 6745 '') as_dir=./ ;; 6746 */) ;; 6747 *) as_dir=$as_dir/ ;; 6748 esac 6749 for ac_exec_ext in '' $ac_executable_extensions; do 6750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6751 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6753 break 2 6754 fi 6755done 6756 done 6757IFS=$as_save_IFS 6758 6759fi 6760fi 6761FILECMD=$ac_cv_prog_FILECMD 6762if test -n "$FILECMD"; then 6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6764printf "%s\n" "$FILECMD" >&6; } 6765else 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6767printf "%s\n" "no" >&6; } 6768fi 6769 6770 6771fi 6772if test -z "$ac_cv_prog_FILECMD"; then 6773 ac_ct_FILECMD=$FILECMD 6774 # Extract the first word of "file", so it can be a program name with args. 6775set dummy file; ac_word=$2 6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6777printf %s "checking for $ac_word... " >&6; } 6778if test ${ac_cv_prog_ac_ct_FILECMD+y} 6779then : 6780 printf %s "(cached) " >&6 6781else $as_nop 6782 if test -n "$ac_ct_FILECMD"; then 6783 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 case $as_dir in #((( 6790 '') as_dir=./ ;; 6791 */) ;; 6792 *) as_dir=$as_dir/ ;; 6793 esac 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6796 ac_cv_prog_ac_ct_FILECMD="file" 6797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800done 6801 done 6802IFS=$as_save_IFS 6803 6804fi 6805fi 6806ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6807if test -n "$ac_ct_FILECMD"; then 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6809printf "%s\n" "$ac_ct_FILECMD" >&6; } 6810else 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6812printf "%s\n" "no" >&6; } 6813fi 6814 6815 if test "x$ac_ct_FILECMD" = x; then 6816 FILECMD=":" 6817 else 6818 case $cross_compiling:$ac_tool_warned in 6819yes:) 6820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6822ac_tool_warned=yes ;; 6823esac 6824 FILECMD=$ac_ct_FILECMD 6825 fi 6826else 6827 FILECMD="$ac_cv_prog_FILECMD" 6828fi 6829 6830 6831 6832 6833 6834 6835 6836if test -n "$ac_tool_prefix"; then 6837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6838set dummy ${ac_tool_prefix}objdump; ac_word=$2 6839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6840printf %s "checking for $ac_word... " >&6; } 6841if test ${ac_cv_prog_OBJDUMP+y} 6842then : 6843 printf %s "(cached) " >&6 6844else $as_nop 6845 if test -n "$OBJDUMP"; then 6846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6847else 6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 case $as_dir in #((( 6853 '') as_dir=./ ;; 6854 */) ;; 6855 *) as_dir=$as_dir/ ;; 6856 esac 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6859 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864 done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869OBJDUMP=$ac_cv_prog_OBJDUMP 6870if test -n "$OBJDUMP"; then 6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6872printf "%s\n" "$OBJDUMP" >&6; } 6873else 6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875printf "%s\n" "no" >&6; } 6876fi 6877 6878 6879fi 6880if test -z "$ac_cv_prog_OBJDUMP"; then 6881 ac_ct_OBJDUMP=$OBJDUMP 6882 # Extract the first word of "objdump", so it can be a program name with args. 6883set dummy objdump; ac_word=$2 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885printf %s "checking for $ac_word... " >&6; } 6886if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6887then : 6888 printf %s "(cached) " >&6 6889else $as_nop 6890 if test -n "$ac_ct_OBJDUMP"; then 6891 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6892else 6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 case $as_dir in #((( 6898 '') as_dir=./ ;; 6899 */) ;; 6900 *) as_dir=$as_dir/ ;; 6901 esac 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909 done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6915if test -n "$ac_ct_OBJDUMP"; then 6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6917printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6918else 6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920printf "%s\n" "no" >&6; } 6921fi 6922 6923 if test "x$ac_ct_OBJDUMP" = x; then 6924 OBJDUMP="false" 6925 else 6926 case $cross_compiling:$ac_tool_warned in 6927yes:) 6928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6929printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6930ac_tool_warned=yes ;; 6931esac 6932 OBJDUMP=$ac_ct_OBJDUMP 6933 fi 6934else 6935 OBJDUMP="$ac_cv_prog_OBJDUMP" 6936fi 6937 6938test -z "$OBJDUMP" && OBJDUMP=objdump 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6949printf %s "checking how to recognize dependent libraries... " >&6; } 6950if test ${lt_cv_deplibs_check_method+y} 6951then : 6952 printf %s "(cached) " >&6 6953else $as_nop 6954 lt_cv_file_magic_cmd='$MAGIC_CMD' 6955lt_cv_file_magic_test_file= 6956lt_cv_deplibs_check_method='unknown' 6957# Need to set the preceding variable on all platforms that support 6958# interlibrary dependencies. 6959# 'none' -- dependencies not supported. 6960# 'unknown' -- same as none, but documents that we really don't know. 6961# 'pass_all' -- all dependencies passed with no checks. 6962# 'test_compile' -- check by making test program. 6963# 'file_magic [[regex]]' -- check by looking for files in library path 6964# that responds to the $file_magic_cmd with a given extended regex. 6965# If you have 'file' or equivalent on your system and you're not sure 6966# whether 'pass_all' will *always* work, you probably want this one. 6967 6968case $host_os in 6969aix[4-9]*) 6970 lt_cv_deplibs_check_method=pass_all 6971 ;; 6972 6973beos*) 6974 lt_cv_deplibs_check_method=pass_all 6975 ;; 6976 6977bsdi[45]*) 6978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6979 lt_cv_file_magic_cmd='$FILECMD -L' 6980 lt_cv_file_magic_test_file=/shlib/libc.so 6981 ;; 6982 6983cygwin*) 6984 # func_win32_libid is a shell function defined in ltmain.sh 6985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6986 lt_cv_file_magic_cmd='func_win32_libid' 6987 ;; 6988 6989mingw* | pw32*) 6990 # Base MSYS/MinGW do not provide the 'file' command needed by 6991 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6992 # unless we find 'file', for example because we are cross-compiling. 6993 if ( file / ) >/dev/null 2>&1; then 6994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6995 lt_cv_file_magic_cmd='func_win32_libid' 6996 else 6997 # Keep this pattern in sync with the one in func_win32_libid. 6998 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6999 lt_cv_file_magic_cmd='$OBJDUMP -f' 7000 fi 7001 ;; 7002 7003cegcc*) 7004 # use the weaker test based on 'objdump'. See mingw*. 7005 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7006 lt_cv_file_magic_cmd='$OBJDUMP -f' 7007 ;; 7008 7009darwin* | rhapsody*) 7010 lt_cv_deplibs_check_method=pass_all 7011 ;; 7012 7013freebsd* | dragonfly* | midnightbsd*) 7014 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7015 case $host_cpu in 7016 i*86 ) 7017 # Not sure whether the presence of OpenBSD here was a mistake. 7018 # Let's accept both of them until this is cleared up. 7019 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7020 lt_cv_file_magic_cmd=$FILECMD 7021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7022 ;; 7023 esac 7024 else 7025 lt_cv_deplibs_check_method=pass_all 7026 fi 7027 ;; 7028 7029haiku*) 7030 lt_cv_deplibs_check_method=pass_all 7031 ;; 7032 7033hpux10.20* | hpux11*) 7034 lt_cv_file_magic_cmd=$FILECMD 7035 case $host_cpu in 7036 ia64*) 7037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7039 ;; 7040 hppa*64*) 7041 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]' 7042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7043 ;; 7044 *) 7045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7046 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7047 ;; 7048 esac 7049 ;; 7050 7051interix[3-9]*) 7052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7054 ;; 7055 7056irix5* | irix6* | nonstopux*) 7057 case $LD in 7058 *-32|*"-32 ") libmagic=32-bit;; 7059 *-n32|*"-n32 ") libmagic=N32;; 7060 *-64|*"-64 ") libmagic=64-bit;; 7061 *) libmagic=never-match;; 7062 esac 7063 lt_cv_deplibs_check_method=pass_all 7064 ;; 7065 7066# This must be glibc/ELF. 7067linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7068 lt_cv_deplibs_check_method=pass_all 7069 ;; 7070 7071netbsd*) 7072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7074 else 7075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7076 fi 7077 ;; 7078 7079newos6*) 7080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7081 lt_cv_file_magic_cmd=$FILECMD 7082 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7083 ;; 7084 7085*nto* | *qnx*) 7086 lt_cv_deplibs_check_method=pass_all 7087 ;; 7088 7089openbsd* | bitrig*) 7090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7092 else 7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7094 fi 7095 ;; 7096 7097osf3* | osf4* | osf5*) 7098 lt_cv_deplibs_check_method=pass_all 7099 ;; 7100 7101rdos*) 7102 lt_cv_deplibs_check_method=pass_all 7103 ;; 7104 7105solaris*) 7106 lt_cv_deplibs_check_method=pass_all 7107 ;; 7108 7109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7110 lt_cv_deplibs_check_method=pass_all 7111 ;; 7112 7113sysv4 | sysv4.3*) 7114 case $host_vendor in 7115 motorola) 7116 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]' 7117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7118 ;; 7119 ncr) 7120 lt_cv_deplibs_check_method=pass_all 7121 ;; 7122 sequent) 7123 lt_cv_file_magic_cmd='/bin/file' 7124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7125 ;; 7126 sni) 7127 lt_cv_file_magic_cmd='/bin/file' 7128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7129 lt_cv_file_magic_test_file=/lib/libc.so 7130 ;; 7131 siemens) 7132 lt_cv_deplibs_check_method=pass_all 7133 ;; 7134 pc) 7135 lt_cv_deplibs_check_method=pass_all 7136 ;; 7137 esac 7138 ;; 7139 7140tpf*) 7141 lt_cv_deplibs_check_method=pass_all 7142 ;; 7143os2*) 7144 lt_cv_deplibs_check_method=pass_all 7145 ;; 7146esac 7147 7148fi 7149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7150printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7151 7152file_magic_glob= 7153want_nocaseglob=no 7154if test "$build" = "$host"; then 7155 case $host_os in 7156 mingw* | pw32*) 7157 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7158 want_nocaseglob=yes 7159 else 7160 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7161 fi 7162 ;; 7163 esac 7164fi 7165 7166file_magic_cmd=$lt_cv_file_magic_cmd 7167deplibs_check_method=$lt_cv_deplibs_check_method 7168test -z "$deplibs_check_method" && deplibs_check_method=unknown 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191if test -n "$ac_tool_prefix"; then 7192 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7193set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7195printf %s "checking for $ac_word... " >&6; } 7196if test ${ac_cv_prog_DLLTOOL+y} 7197then : 7198 printf %s "(cached) " >&6 7199else $as_nop 7200 if test -n "$DLLTOOL"; then 7201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7202else 7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204for as_dir in $PATH 7205do 7206 IFS=$as_save_IFS 7207 case $as_dir in #((( 7208 '') as_dir=./ ;; 7209 */) ;; 7210 *) as_dir=$as_dir/ ;; 7211 esac 7212 for ac_exec_ext in '' $ac_executable_extensions; do 7213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7214 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7216 break 2 7217 fi 7218done 7219 done 7220IFS=$as_save_IFS 7221 7222fi 7223fi 7224DLLTOOL=$ac_cv_prog_DLLTOOL 7225if test -n "$DLLTOOL"; then 7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7227printf "%s\n" "$DLLTOOL" >&6; } 7228else 7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7230printf "%s\n" "no" >&6; } 7231fi 7232 7233 7234fi 7235if test -z "$ac_cv_prog_DLLTOOL"; then 7236 ac_ct_DLLTOOL=$DLLTOOL 7237 # Extract the first word of "dlltool", so it can be a program name with args. 7238set dummy dlltool; ac_word=$2 7239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7240printf %s "checking for $ac_word... " >&6; } 7241if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7242then : 7243 printf %s "(cached) " >&6 7244else $as_nop 7245 if test -n "$ac_ct_DLLTOOL"; then 7246 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7247else 7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7249for as_dir in $PATH 7250do 7251 IFS=$as_save_IFS 7252 case $as_dir in #((( 7253 '') as_dir=./ ;; 7254 */) ;; 7255 *) as_dir=$as_dir/ ;; 7256 esac 7257 for ac_exec_ext in '' $ac_executable_extensions; do 7258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7259 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7261 break 2 7262 fi 7263done 7264 done 7265IFS=$as_save_IFS 7266 7267fi 7268fi 7269ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7270if test -n "$ac_ct_DLLTOOL"; then 7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7272printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7273else 7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7275printf "%s\n" "no" >&6; } 7276fi 7277 7278 if test "x$ac_ct_DLLTOOL" = x; then 7279 DLLTOOL="false" 7280 else 7281 case $cross_compiling:$ac_tool_warned in 7282yes:) 7283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7284printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7285ac_tool_warned=yes ;; 7286esac 7287 DLLTOOL=$ac_ct_DLLTOOL 7288 fi 7289else 7290 DLLTOOL="$ac_cv_prog_DLLTOOL" 7291fi 7292 7293test -z "$DLLTOOL" && DLLTOOL=dlltool 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7305printf %s "checking how to associate runtime and link libraries... " >&6; } 7306if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7307then : 7308 printf %s "(cached) " >&6 7309else $as_nop 7310 lt_cv_sharedlib_from_linklib_cmd='unknown' 7311 7312case $host_os in 7313cygwin* | mingw* | pw32* | cegcc*) 7314 # two different shell functions defined in ltmain.sh; 7315 # decide which one to use based on capabilities of $DLLTOOL 7316 case `$DLLTOOL --help 2>&1` in 7317 *--identify-strict*) 7318 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7319 ;; 7320 *) 7321 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7322 ;; 7323 esac 7324 ;; 7325*) 7326 # fallback: assume linklib IS sharedlib 7327 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7328 ;; 7329esac 7330 7331fi 7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7333printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7334sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7335test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7336 7337 7338 7339 7340 7341 7342 7343if test -n "$ac_tool_prefix"; then 7344 for ac_prog in ar 7345 do 7346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7347set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7349printf %s "checking for $ac_word... " >&6; } 7350if test ${ac_cv_prog_AR+y} 7351then : 7352 printf %s "(cached) " >&6 7353else $as_nop 7354 if test -n "$AR"; then 7355 ac_cv_prog_AR="$AR" # Let the user override the test. 7356else 7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7358for as_dir in $PATH 7359do 7360 IFS=$as_save_IFS 7361 case $as_dir in #((( 7362 '') as_dir=./ ;; 7363 */) ;; 7364 *) as_dir=$as_dir/ ;; 7365 esac 7366 for ac_exec_ext in '' $ac_executable_extensions; do 7367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7368 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7370 break 2 7371 fi 7372done 7373 done 7374IFS=$as_save_IFS 7375 7376fi 7377fi 7378AR=$ac_cv_prog_AR 7379if test -n "$AR"; then 7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7381printf "%s\n" "$AR" >&6; } 7382else 7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7384printf "%s\n" "no" >&6; } 7385fi 7386 7387 7388 test -n "$AR" && break 7389 done 7390fi 7391if test -z "$AR"; then 7392 ac_ct_AR=$AR 7393 for ac_prog in ar 7394do 7395 # Extract the first word of "$ac_prog", so it can be a program name with args. 7396set dummy $ac_prog; ac_word=$2 7397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7398printf %s "checking for $ac_word... " >&6; } 7399if test ${ac_cv_prog_ac_ct_AR+y} 7400then : 7401 printf %s "(cached) " >&6 7402else $as_nop 7403 if test -n "$ac_ct_AR"; then 7404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7405else 7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7407for as_dir in $PATH 7408do 7409 IFS=$as_save_IFS 7410 case $as_dir in #((( 7411 '') as_dir=./ ;; 7412 */) ;; 7413 *) as_dir=$as_dir/ ;; 7414 esac 7415 for ac_exec_ext in '' $ac_executable_extensions; do 7416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7417 ac_cv_prog_ac_ct_AR="$ac_prog" 7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7419 break 2 7420 fi 7421done 7422 done 7423IFS=$as_save_IFS 7424 7425fi 7426fi 7427ac_ct_AR=$ac_cv_prog_ac_ct_AR 7428if test -n "$ac_ct_AR"; then 7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7430printf "%s\n" "$ac_ct_AR" >&6; } 7431else 7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7433printf "%s\n" "no" >&6; } 7434fi 7435 7436 7437 test -n "$ac_ct_AR" && break 7438done 7439 7440 if test "x$ac_ct_AR" = x; then 7441 AR="false" 7442 else 7443 case $cross_compiling:$ac_tool_warned in 7444yes:) 7445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7446printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7447ac_tool_warned=yes ;; 7448esac 7449 AR=$ac_ct_AR 7450 fi 7451fi 7452 7453: ${AR=ar} 7454 7455 7456 7457 7458 7459 7460# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7461# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7462# higher priority because thats what people were doing historically (setting 7463# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7464# variable obsoleted/removed. 7465 7466test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7467lt_ar_flags=$AR_FLAGS 7468 7469 7470 7471 7472 7473 7474# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7475# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7476 7477 7478 7479 7480 7481 7482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7483printf %s "checking for archiver @FILE support... " >&6; } 7484if test ${lt_cv_ar_at_file+y} 7485then : 7486 printf %s "(cached) " >&6 7487else $as_nop 7488 lt_cv_ar_at_file=no 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491 7492int 7493main (void) 7494{ 7495 7496 ; 7497 return 0; 7498} 7499_ACEOF 7500if ac_fn_c_try_compile "$LINENO" 7501then : 7502 echo conftest.$ac_objext > conftest.lst 7503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7505 (eval $lt_ar_try) 2>&5 7506 ac_status=$? 7507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7508 test $ac_status = 0; } 7509 if test 0 -eq "$ac_status"; then 7510 # Ensure the archiver fails upon bogus file names. 7511 rm -f conftest.$ac_objext libconftest.a 7512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7513 (eval $lt_ar_try) 2>&5 7514 ac_status=$? 7515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7516 test $ac_status = 0; } 7517 if test 0 -ne "$ac_status"; then 7518 lt_cv_ar_at_file=@ 7519 fi 7520 fi 7521 rm -f conftest.* libconftest.a 7522 7523fi 7524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7525 7526fi 7527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7528printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7529 7530if test no = "$lt_cv_ar_at_file"; then 7531 archiver_list_spec= 7532else 7533 archiver_list_spec=$lt_cv_ar_at_file 7534fi 7535 7536 7537 7538 7539 7540 7541 7542if test -n "$ac_tool_prefix"; then 7543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7544set dummy ${ac_tool_prefix}strip; ac_word=$2 7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7546printf %s "checking for $ac_word... " >&6; } 7547if test ${ac_cv_prog_STRIP+y} 7548then : 7549 printf %s "(cached) " >&6 7550else $as_nop 7551 if test -n "$STRIP"; then 7552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7553else 7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7555for as_dir in $PATH 7556do 7557 IFS=$as_save_IFS 7558 case $as_dir in #((( 7559 '') as_dir=./ ;; 7560 */) ;; 7561 *) as_dir=$as_dir/ ;; 7562 esac 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7565 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570 done 7571IFS=$as_save_IFS 7572 7573fi 7574fi 7575STRIP=$ac_cv_prog_STRIP 7576if test -n "$STRIP"; then 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7578printf "%s\n" "$STRIP" >&6; } 7579else 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581printf "%s\n" "no" >&6; } 7582fi 7583 7584 7585fi 7586if test -z "$ac_cv_prog_STRIP"; then 7587 ac_ct_STRIP=$STRIP 7588 # Extract the first word of "strip", so it can be a program name with args. 7589set dummy strip; ac_word=$2 7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7591printf %s "checking for $ac_word... " >&6; } 7592if test ${ac_cv_prog_ac_ct_STRIP+y} 7593then : 7594 printf %s "(cached) " >&6 7595else $as_nop 7596 if test -n "$ac_ct_STRIP"; then 7597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7598else 7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7600for as_dir in $PATH 7601do 7602 IFS=$as_save_IFS 7603 case $as_dir in #((( 7604 '') as_dir=./ ;; 7605 */) ;; 7606 *) as_dir=$as_dir/ ;; 7607 esac 7608 for ac_exec_ext in '' $ac_executable_extensions; do 7609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7610 ac_cv_prog_ac_ct_STRIP="strip" 7611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7612 break 2 7613 fi 7614done 7615 done 7616IFS=$as_save_IFS 7617 7618fi 7619fi 7620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7621if test -n "$ac_ct_STRIP"; then 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7623printf "%s\n" "$ac_ct_STRIP" >&6; } 7624else 7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7626printf "%s\n" "no" >&6; } 7627fi 7628 7629 if test "x$ac_ct_STRIP" = x; then 7630 STRIP=":" 7631 else 7632 case $cross_compiling:$ac_tool_warned in 7633yes:) 7634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7636ac_tool_warned=yes ;; 7637esac 7638 STRIP=$ac_ct_STRIP 7639 fi 7640else 7641 STRIP="$ac_cv_prog_STRIP" 7642fi 7643 7644test -z "$STRIP" && STRIP=: 7645 7646 7647 7648 7649 7650 7651if test -n "$ac_tool_prefix"; then 7652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7653set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7655printf %s "checking for $ac_word... " >&6; } 7656if test ${ac_cv_prog_RANLIB+y} 7657then : 7658 printf %s "(cached) " >&6 7659else $as_nop 7660 if test -n "$RANLIB"; then 7661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7662else 7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7664for as_dir in $PATH 7665do 7666 IFS=$as_save_IFS 7667 case $as_dir in #((( 7668 '') as_dir=./ ;; 7669 */) ;; 7670 *) as_dir=$as_dir/ ;; 7671 esac 7672 for ac_exec_ext in '' $ac_executable_extensions; do 7673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7676 break 2 7677 fi 7678done 7679 done 7680IFS=$as_save_IFS 7681 7682fi 7683fi 7684RANLIB=$ac_cv_prog_RANLIB 7685if test -n "$RANLIB"; then 7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7687printf "%s\n" "$RANLIB" >&6; } 7688else 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7690printf "%s\n" "no" >&6; } 7691fi 7692 7693 7694fi 7695if test -z "$ac_cv_prog_RANLIB"; then 7696 ac_ct_RANLIB=$RANLIB 7697 # Extract the first word of "ranlib", so it can be a program name with args. 7698set dummy ranlib; ac_word=$2 7699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7700printf %s "checking for $ac_word... " >&6; } 7701if test ${ac_cv_prog_ac_ct_RANLIB+y} 7702then : 7703 printf %s "(cached) " >&6 7704else $as_nop 7705 if test -n "$ac_ct_RANLIB"; then 7706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7707else 7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7709for as_dir in $PATH 7710do 7711 IFS=$as_save_IFS 7712 case $as_dir in #((( 7713 '') as_dir=./ ;; 7714 */) ;; 7715 *) as_dir=$as_dir/ ;; 7716 esac 7717 for ac_exec_ext in '' $ac_executable_extensions; do 7718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7719 ac_cv_prog_ac_ct_RANLIB="ranlib" 7720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7721 break 2 7722 fi 7723done 7724 done 7725IFS=$as_save_IFS 7726 7727fi 7728fi 7729ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7730if test -n "$ac_ct_RANLIB"; then 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7732printf "%s\n" "$ac_ct_RANLIB" >&6; } 7733else 7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7735printf "%s\n" "no" >&6; } 7736fi 7737 7738 if test "x$ac_ct_RANLIB" = x; then 7739 RANLIB=":" 7740 else 7741 case $cross_compiling:$ac_tool_warned in 7742yes:) 7743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7744printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7745ac_tool_warned=yes ;; 7746esac 7747 RANLIB=$ac_ct_RANLIB 7748 fi 7749else 7750 RANLIB="$ac_cv_prog_RANLIB" 7751fi 7752 7753test -z "$RANLIB" && RANLIB=: 7754 7755 7756 7757 7758 7759 7760# Determine commands to create old-style static archives. 7761old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7762old_postinstall_cmds='chmod 644 $oldlib' 7763old_postuninstall_cmds= 7764 7765if test -n "$RANLIB"; then 7766 case $host_os in 7767 bitrig* | openbsd*) 7768 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7769 ;; 7770 *) 7771 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7772 ;; 7773 esac 7774 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7775fi 7776 7777case $host_os in 7778 darwin*) 7779 lock_old_archive_extraction=yes ;; 7780 *) 7781 lock_old_archive_extraction=no ;; 7782esac 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822# If no C compiler was specified, use CC. 7823LTCC=${LTCC-"$CC"} 7824 7825# If no C compiler flags were specified, use CFLAGS. 7826LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7827 7828# Allow CC to be a program name with arguments. 7829compiler=$CC 7830 7831 7832# Check for command to grab the raw symbol name followed by C symbol from nm. 7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7834printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7835if test ${lt_cv_sys_global_symbol_pipe+y} 7836then : 7837 printf %s "(cached) " >&6 7838else $as_nop 7839 7840# These are sane defaults that work on at least a few old systems. 7841# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7842 7843# Character class describing NM global symbol codes. 7844symcode='[BCDEGRST]' 7845 7846# Regexp to match symbols that can be accessed directly from C. 7847sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7848 7849# Define system-specific variables. 7850case $host_os in 7851aix*) 7852 symcode='[BCDT]' 7853 ;; 7854cygwin* | mingw* | pw32* | cegcc*) 7855 symcode='[ABCDGISTW]' 7856 ;; 7857hpux*) 7858 if test ia64 = "$host_cpu"; then 7859 symcode='[ABCDEGRST]' 7860 fi 7861 ;; 7862irix* | nonstopux*) 7863 symcode='[BCDEGRST]' 7864 ;; 7865osf*) 7866 symcode='[BCDEGQRST]' 7867 ;; 7868solaris*) 7869 symcode='[BDRT]' 7870 ;; 7871sco3.2v5*) 7872 symcode='[DT]' 7873 ;; 7874sysv4.2uw2*) 7875 symcode='[DT]' 7876 ;; 7877sysv5* | sco5v6* | unixware* | OpenUNIX*) 7878 symcode='[ABDT]' 7879 ;; 7880sysv4) 7881 symcode='[DFNSTU]' 7882 ;; 7883esac 7884 7885# If we're using GNU nm, then use its standard symbol codes. 7886case `$NM -V 2>&1` in 7887*GNU* | *'with BFD'*) 7888 symcode='[ABCDGIRSTW]' ;; 7889esac 7890 7891if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7892 # Gets list of data symbols to import. 7893 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7894 # Adjust the below global symbol transforms to fixup imported variables. 7895 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7896 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7897 lt_c_name_lib_hook="\ 7898 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7899 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7900else 7901 # Disable hooks by default. 7902 lt_cv_sys_global_symbol_to_import= 7903 lt_cdecl_hook= 7904 lt_c_name_hook= 7905 lt_c_name_lib_hook= 7906fi 7907 7908# Transform an extracted symbol line into a proper C declaration. 7909# Some systems (esp. on ia64) link data and code symbols differently, 7910# so use this general approach. 7911lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7912$lt_cdecl_hook\ 7913" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7914" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7915 7916# Transform an extracted symbol line into symbol name and symbol address 7917lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7918$lt_c_name_hook\ 7919" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7920" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7921 7922# Transform an extracted symbol line into symbol name with lib prefix and 7923# symbol address. 7924lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7925$lt_c_name_lib_hook\ 7926" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7927" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7928" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7929 7930# Handle CRLF in mingw tool chain 7931opt_cr= 7932case $build_os in 7933mingw*) 7934 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7935 ;; 7936esac 7937 7938# Try without a prefix underscore, then with it. 7939for ac_symprfx in "" "_"; do 7940 7941 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7942 symxfrm="\\1 $ac_symprfx\\2 \\2" 7943 7944 # Write the raw and C identifiers. 7945 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7946 # Fake it for dumpbin and say T for any non-static function, 7947 # D for any global variable and I for any imported variable. 7948 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7949 # which start with @ or ?. 7950 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7951" {last_section=section; section=\$ 3};"\ 7952" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7953" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7954" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7955" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7956" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7957" \$ 0!~/External *\|/{next};"\ 7958" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7959" {if(hide[section]) next};"\ 7960" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7961" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7962" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7963" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7964" ' prfx=^$ac_symprfx" 7965 else 7966 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7967 fi 7968 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7969 7970 # Check to see that the pipe works correctly. 7971 pipe_works=no 7972 7973 rm -f conftest* 7974 cat > conftest.$ac_ext <<_LT_EOF 7975#ifdef __cplusplus 7976extern "C" { 7977#endif 7978char nm_test_var; 7979void nm_test_func(void); 7980void nm_test_func(void){} 7981#ifdef __cplusplus 7982} 7983#endif 7984int main(){nm_test_var='a';nm_test_func();return(0);} 7985_LT_EOF 7986 7987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7988 (eval $ac_compile) 2>&5 7989 ac_status=$? 7990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7991 test $ac_status = 0; }; then 7992 # Now try to grab the symbols. 7993 nlist=conftest.nm 7994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7995 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7996 ac_status=$? 7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7998 test $ac_status = 0; } && test -s "$nlist"; then 7999 # Try sorting and uniquifying the output. 8000 if sort "$nlist" | uniq > "$nlist"T; then 8001 mv -f "$nlist"T "$nlist" 8002 else 8003 rm -f "$nlist"T 8004 fi 8005 8006 # Make sure that we snagged all the symbols we need. 8007 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8008 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8009 cat <<_LT_EOF > conftest.$ac_ext 8010/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8011#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8012/* DATA imports from DLLs on WIN32 can't be const, because runtime 8013 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8014# define LT_DLSYM_CONST 8015#elif defined __osf__ 8016/* This system does not cope well with relocations in const data. */ 8017# define LT_DLSYM_CONST 8018#else 8019# define LT_DLSYM_CONST const 8020#endif 8021 8022#ifdef __cplusplus 8023extern "C" { 8024#endif 8025 8026_LT_EOF 8027 # Now generate the symbol file. 8028 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8029 8030 cat <<_LT_EOF >> conftest.$ac_ext 8031 8032/* The mapping between symbol names and symbols. */ 8033LT_DLSYM_CONST struct { 8034 const char *name; 8035 void *address; 8036} 8037lt__PROGRAM__LTX_preloaded_symbols[] = 8038{ 8039 { "@PROGRAM@", (void *) 0 }, 8040_LT_EOF 8041 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8042 cat <<\_LT_EOF >> conftest.$ac_ext 8043 {0, (void *) 0} 8044}; 8045 8046/* This works around a problem in FreeBSD linker */ 8047#ifdef FREEBSD_WORKAROUND 8048static const void *lt_preloaded_setup() { 8049 return lt__PROGRAM__LTX_preloaded_symbols; 8050} 8051#endif 8052 8053#ifdef __cplusplus 8054} 8055#endif 8056_LT_EOF 8057 # Now try linking the two files. 8058 mv conftest.$ac_objext conftstm.$ac_objext 8059 lt_globsym_save_LIBS=$LIBS 8060 lt_globsym_save_CFLAGS=$CFLAGS 8061 LIBS=conftstm.$ac_objext 8062 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8064 (eval $ac_link) 2>&5 8065 ac_status=$? 8066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8067 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8068 pipe_works=yes 8069 fi 8070 LIBS=$lt_globsym_save_LIBS 8071 CFLAGS=$lt_globsym_save_CFLAGS 8072 else 8073 echo "cannot find nm_test_func in $nlist" >&5 8074 fi 8075 else 8076 echo "cannot find nm_test_var in $nlist" >&5 8077 fi 8078 else 8079 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8080 fi 8081 else 8082 echo "$progname: failed program was:" >&5 8083 cat conftest.$ac_ext >&5 8084 fi 8085 rm -rf conftest* conftst* 8086 8087 # Do not use the global_symbol_pipe unless it works. 8088 if test yes = "$pipe_works"; then 8089 break 8090 else 8091 lt_cv_sys_global_symbol_pipe= 8092 fi 8093done 8094 8095fi 8096 8097if test -z "$lt_cv_sys_global_symbol_pipe"; then 8098 lt_cv_sys_global_symbol_to_cdecl= 8099fi 8100if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8102printf "%s\n" "failed" >&6; } 8103else 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8105printf "%s\n" "ok" >&6; } 8106fi 8107 8108# Response file support. 8109if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8110 nm_file_list_spec='@' 8111elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8112 nm_file_list_spec='@' 8113fi 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8152printf %s "checking for sysroot... " >&6; } 8153 8154# Check whether --with-sysroot was given. 8155if test ${with_sysroot+y} 8156then : 8157 withval=$with_sysroot; 8158else $as_nop 8159 with_sysroot=no 8160fi 8161 8162 8163lt_sysroot= 8164case $with_sysroot in #( 8165 yes) 8166 if test yes = "$GCC"; then 8167 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8168 fi 8169 ;; #( 8170 /*) 8171 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8172 ;; #( 8173 no|'') 8174 ;; #( 8175 *) 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8177printf "%s\n" "$with_sysroot" >&6; } 8178 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8179 ;; 8180esac 8181 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8183printf "%s\n" "${lt_sysroot:-no}" >&6; } 8184 8185 8186 8187 8188 8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8190printf %s "checking for a working dd... " >&6; } 8191if test ${ac_cv_path_lt_DD+y} 8192then : 8193 printf %s "(cached) " >&6 8194else $as_nop 8195 printf 0123456789abcdef0123456789abcdef >conftest.i 8196cat conftest.i conftest.i >conftest2.i 8197: ${lt_DD:=$DD} 8198if test -z "$lt_DD"; then 8199 ac_path_lt_DD_found=false 8200 # Loop through the user's path and test for each of PROGNAME-LIST 8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8202for as_dir in $PATH 8203do 8204 IFS=$as_save_IFS 8205 case $as_dir in #((( 8206 '') as_dir=./ ;; 8207 */) ;; 8208 *) as_dir=$as_dir/ ;; 8209 esac 8210 for ac_prog in dd 8211 do 8212 for ac_exec_ext in '' $ac_executable_extensions; do 8213 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8214 as_fn_executable_p "$ac_path_lt_DD" || continue 8215if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8216 cmp -s conftest.i conftest.out \ 8217 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8218fi 8219 $ac_path_lt_DD_found && break 3 8220 done 8221 done 8222 done 8223IFS=$as_save_IFS 8224 if test -z "$ac_cv_path_lt_DD"; then 8225 : 8226 fi 8227else 8228 ac_cv_path_lt_DD=$lt_DD 8229fi 8230 8231rm -f conftest.i conftest2.i conftest.out 8232fi 8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8234printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8235 8236 8237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8238printf %s "checking how to truncate binary pipes... " >&6; } 8239if test ${lt_cv_truncate_bin+y} 8240then : 8241 printf %s "(cached) " >&6 8242else $as_nop 8243 printf 0123456789abcdef0123456789abcdef >conftest.i 8244cat conftest.i conftest.i >conftest2.i 8245lt_cv_truncate_bin= 8246if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8247 cmp -s conftest.i conftest.out \ 8248 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8249fi 8250rm -f conftest.i conftest2.i conftest.out 8251test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8252fi 8253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8254printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8255 8256 8257 8258 8259 8260 8261 8262# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8263func_cc_basename () 8264{ 8265 for cc_temp in $*""; do 8266 case $cc_temp in 8267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8269 \-*) ;; 8270 *) break;; 8271 esac 8272 done 8273 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8274} 8275 8276# Check whether --enable-libtool-lock was given. 8277if test ${enable_libtool_lock+y} 8278then : 8279 enableval=$enable_libtool_lock; 8280fi 8281 8282test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8283 8284# Some flags need to be propagated to the compiler or linker for good 8285# libtool support. 8286case $host in 8287ia64-*-hpux*) 8288 # Find out what ABI is being produced by ac_compile, and set mode 8289 # options accordingly. 8290 echo 'int i;' > conftest.$ac_ext 8291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8292 (eval $ac_compile) 2>&5 8293 ac_status=$? 8294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8295 test $ac_status = 0; }; then 8296 case `$FILECMD conftest.$ac_objext` in 8297 *ELF-32*) 8298 HPUX_IA64_MODE=32 8299 ;; 8300 *ELF-64*) 8301 HPUX_IA64_MODE=64 8302 ;; 8303 esac 8304 fi 8305 rm -rf conftest* 8306 ;; 8307*-*-irix6*) 8308 # Find out what ABI is being produced by ac_compile, and set linker 8309 # options accordingly. 8310 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8312 (eval $ac_compile) 2>&5 8313 ac_status=$? 8314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8315 test $ac_status = 0; }; then 8316 if test yes = "$lt_cv_prog_gnu_ld"; then 8317 case `$FILECMD conftest.$ac_objext` in 8318 *32-bit*) 8319 LD="${LD-ld} -melf32bsmip" 8320 ;; 8321 *N32*) 8322 LD="${LD-ld} -melf32bmipn32" 8323 ;; 8324 *64-bit*) 8325 LD="${LD-ld} -melf64bmip" 8326 ;; 8327 esac 8328 else 8329 case `$FILECMD conftest.$ac_objext` in 8330 *32-bit*) 8331 LD="${LD-ld} -32" 8332 ;; 8333 *N32*) 8334 LD="${LD-ld} -n32" 8335 ;; 8336 *64-bit*) 8337 LD="${LD-ld} -64" 8338 ;; 8339 esac 8340 fi 8341 fi 8342 rm -rf conftest* 8343 ;; 8344 8345mips64*-*linux*) 8346 # Find out what ABI is being produced by ac_compile, and set linker 8347 # options accordingly. 8348 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8350 (eval $ac_compile) 2>&5 8351 ac_status=$? 8352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8353 test $ac_status = 0; }; then 8354 emul=elf 8355 case `$FILECMD conftest.$ac_objext` in 8356 *32-bit*) 8357 emul="${emul}32" 8358 ;; 8359 *64-bit*) 8360 emul="${emul}64" 8361 ;; 8362 esac 8363 case `$FILECMD conftest.$ac_objext` in 8364 *MSB*) 8365 emul="${emul}btsmip" 8366 ;; 8367 *LSB*) 8368 emul="${emul}ltsmip" 8369 ;; 8370 esac 8371 case `$FILECMD conftest.$ac_objext` in 8372 *N32*) 8373 emul="${emul}n32" 8374 ;; 8375 esac 8376 LD="${LD-ld} -m $emul" 8377 fi 8378 rm -rf conftest* 8379 ;; 8380 8381x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8382s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8383 # Find out what ABI is being produced by ac_compile, and set linker 8384 # options accordingly. Note that the listed cases only cover the 8385 # situations where additional linker options are needed (such as when 8386 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8387 # vice versa); the common cases where no linker options are needed do 8388 # not appear in the list. 8389 echo 'int i;' > conftest.$ac_ext 8390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8391 (eval $ac_compile) 2>&5 8392 ac_status=$? 8393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8394 test $ac_status = 0; }; then 8395 case `$FILECMD conftest.o` in 8396 *32-bit*) 8397 case $host in 8398 x86_64-*kfreebsd*-gnu) 8399 LD="${LD-ld} -m elf_i386_fbsd" 8400 ;; 8401 x86_64-*linux*) 8402 case `$FILECMD conftest.o` in 8403 *x86-64*) 8404 LD="${LD-ld} -m elf32_x86_64" 8405 ;; 8406 *) 8407 LD="${LD-ld} -m elf_i386" 8408 ;; 8409 esac 8410 ;; 8411 powerpc64le-*linux*) 8412 LD="${LD-ld} -m elf32lppclinux" 8413 ;; 8414 powerpc64-*linux*) 8415 LD="${LD-ld} -m elf32ppclinux" 8416 ;; 8417 s390x-*linux*) 8418 LD="${LD-ld} -m elf_s390" 8419 ;; 8420 sparc64-*linux*) 8421 LD="${LD-ld} -m elf32_sparc" 8422 ;; 8423 esac 8424 ;; 8425 *64-bit*) 8426 case $host in 8427 x86_64-*kfreebsd*-gnu) 8428 LD="${LD-ld} -m elf_x86_64_fbsd" 8429 ;; 8430 x86_64-*linux*) 8431 LD="${LD-ld} -m elf_x86_64" 8432 ;; 8433 powerpcle-*linux*) 8434 LD="${LD-ld} -m elf64lppc" 8435 ;; 8436 powerpc-*linux*) 8437 LD="${LD-ld} -m elf64ppc" 8438 ;; 8439 s390*-*linux*|s390*-*tpf*) 8440 LD="${LD-ld} -m elf64_s390" 8441 ;; 8442 sparc*-*linux*) 8443 LD="${LD-ld} -m elf64_sparc" 8444 ;; 8445 esac 8446 ;; 8447 esac 8448 fi 8449 rm -rf conftest* 8450 ;; 8451 8452*-*-sco3.2v5*) 8453 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8454 SAVE_CFLAGS=$CFLAGS 8455 CFLAGS="$CFLAGS -belf" 8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8457printf %s "checking whether the C compiler needs -belf... " >&6; } 8458if test ${lt_cv_cc_needs_belf+y} 8459then : 8460 printf %s "(cached) " >&6 8461else $as_nop 8462 ac_ext=c 8463ac_cpp='$CPP $CPPFLAGS' 8464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8466ac_compiler_gnu=$ac_cv_c_compiler_gnu 8467 8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8469/* end confdefs.h. */ 8470 8471int 8472main (void) 8473{ 8474 8475 ; 8476 return 0; 8477} 8478_ACEOF 8479if ac_fn_c_try_link "$LINENO" 8480then : 8481 lt_cv_cc_needs_belf=yes 8482else $as_nop 8483 lt_cv_cc_needs_belf=no 8484fi 8485rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8486 conftest$ac_exeext conftest.$ac_ext 8487 ac_ext=c 8488ac_cpp='$CPP $CPPFLAGS' 8489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8491ac_compiler_gnu=$ac_cv_c_compiler_gnu 8492 8493fi 8494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8495printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8496 if test yes != "$lt_cv_cc_needs_belf"; then 8497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8498 CFLAGS=$SAVE_CFLAGS 8499 fi 8500 ;; 8501*-*solaris*) 8502 # Find out what ABI is being produced by ac_compile, and set linker 8503 # options accordingly. 8504 echo 'int i;' > conftest.$ac_ext 8505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8506 (eval $ac_compile) 2>&5 8507 ac_status=$? 8508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8509 test $ac_status = 0; }; then 8510 case `$FILECMD conftest.o` in 8511 *64-bit*) 8512 case $lt_cv_prog_gnu_ld in 8513 yes*) 8514 case $host in 8515 i?86-*-solaris*|x86_64-*-solaris*) 8516 LD="${LD-ld} -m elf_x86_64" 8517 ;; 8518 sparc*-*-solaris*) 8519 LD="${LD-ld} -m elf64_sparc" 8520 ;; 8521 esac 8522 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8523 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8524 LD=${LD-ld}_sol2 8525 fi 8526 ;; 8527 *) 8528 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8529 LD="${LD-ld} -64" 8530 fi 8531 ;; 8532 esac 8533 ;; 8534 esac 8535 fi 8536 rm -rf conftest* 8537 ;; 8538esac 8539 8540need_locks=$enable_libtool_lock 8541 8542if test -n "$ac_tool_prefix"; then 8543 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8544set dummy ${ac_tool_prefix}mt; ac_word=$2 8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8546printf %s "checking for $ac_word... " >&6; } 8547if test ${ac_cv_prog_MANIFEST_TOOL+y} 8548then : 8549 printf %s "(cached) " >&6 8550else $as_nop 8551 if test -n "$MANIFEST_TOOL"; then 8552 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8553else 8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8555for as_dir in $PATH 8556do 8557 IFS=$as_save_IFS 8558 case $as_dir in #((( 8559 '') as_dir=./ ;; 8560 */) ;; 8561 *) as_dir=$as_dir/ ;; 8562 esac 8563 for ac_exec_ext in '' $ac_executable_extensions; do 8564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8565 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8567 break 2 8568 fi 8569done 8570 done 8571IFS=$as_save_IFS 8572 8573fi 8574fi 8575MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8576if test -n "$MANIFEST_TOOL"; then 8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8578printf "%s\n" "$MANIFEST_TOOL" >&6; } 8579else 8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8581printf "%s\n" "no" >&6; } 8582fi 8583 8584 8585fi 8586if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8587 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8588 # Extract the first word of "mt", so it can be a program name with args. 8589set dummy mt; ac_word=$2 8590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8591printf %s "checking for $ac_word... " >&6; } 8592if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8593then : 8594 printf %s "(cached) " >&6 8595else $as_nop 8596 if test -n "$ac_ct_MANIFEST_TOOL"; then 8597 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8598else 8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8600for as_dir in $PATH 8601do 8602 IFS=$as_save_IFS 8603 case $as_dir in #((( 8604 '') as_dir=./ ;; 8605 */) ;; 8606 *) as_dir=$as_dir/ ;; 8607 esac 8608 for ac_exec_ext in '' $ac_executable_extensions; do 8609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8610 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8612 break 2 8613 fi 8614done 8615 done 8616IFS=$as_save_IFS 8617 8618fi 8619fi 8620ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8621if test -n "$ac_ct_MANIFEST_TOOL"; then 8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8623printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8624else 8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8626printf "%s\n" "no" >&6; } 8627fi 8628 8629 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8630 MANIFEST_TOOL=":" 8631 else 8632 case $cross_compiling:$ac_tool_warned in 8633yes:) 8634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8636ac_tool_warned=yes ;; 8637esac 8638 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8639 fi 8640else 8641 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8642fi 8643 8644test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8646printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8647if test ${lt_cv_path_mainfest_tool+y} 8648then : 8649 printf %s "(cached) " >&6 8650else $as_nop 8651 lt_cv_path_mainfest_tool=no 8652 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8653 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8654 cat conftest.err >&5 8655 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8656 lt_cv_path_mainfest_tool=yes 8657 fi 8658 rm -f conftest* 8659fi 8660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8661printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8662if test yes != "$lt_cv_path_mainfest_tool"; then 8663 MANIFEST_TOOL=: 8664fi 8665 8666 8667 8668 8669 8670 8671 case $host_os in 8672 rhapsody* | darwin*) 8673 if test -n "$ac_tool_prefix"; then 8674 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8675set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8677printf %s "checking for $ac_word... " >&6; } 8678if test ${ac_cv_prog_DSYMUTIL+y} 8679then : 8680 printf %s "(cached) " >&6 8681else $as_nop 8682 if test -n "$DSYMUTIL"; then 8683 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8684else 8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8686for as_dir in $PATH 8687do 8688 IFS=$as_save_IFS 8689 case $as_dir in #((( 8690 '') as_dir=./ ;; 8691 */) ;; 8692 *) as_dir=$as_dir/ ;; 8693 esac 8694 for ac_exec_ext in '' $ac_executable_extensions; do 8695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8696 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8698 break 2 8699 fi 8700done 8701 done 8702IFS=$as_save_IFS 8703 8704fi 8705fi 8706DSYMUTIL=$ac_cv_prog_DSYMUTIL 8707if test -n "$DSYMUTIL"; then 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8709printf "%s\n" "$DSYMUTIL" >&6; } 8710else 8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712printf "%s\n" "no" >&6; } 8713fi 8714 8715 8716fi 8717if test -z "$ac_cv_prog_DSYMUTIL"; then 8718 ac_ct_DSYMUTIL=$DSYMUTIL 8719 # Extract the first word of "dsymutil", so it can be a program name with args. 8720set dummy dsymutil; ac_word=$2 8721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8722printf %s "checking for $ac_word... " >&6; } 8723if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8724then : 8725 printf %s "(cached) " >&6 8726else $as_nop 8727 if test -n "$ac_ct_DSYMUTIL"; then 8728 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8729else 8730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8731for as_dir in $PATH 8732do 8733 IFS=$as_save_IFS 8734 case $as_dir in #((( 8735 '') as_dir=./ ;; 8736 */) ;; 8737 *) as_dir=$as_dir/ ;; 8738 esac 8739 for ac_exec_ext in '' $ac_executable_extensions; do 8740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8741 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8743 break 2 8744 fi 8745done 8746 done 8747IFS=$as_save_IFS 8748 8749fi 8750fi 8751ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8752if test -n "$ac_ct_DSYMUTIL"; then 8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8754printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8755else 8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8757printf "%s\n" "no" >&6; } 8758fi 8759 8760 if test "x$ac_ct_DSYMUTIL" = x; then 8761 DSYMUTIL=":" 8762 else 8763 case $cross_compiling:$ac_tool_warned in 8764yes:) 8765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8766printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8767ac_tool_warned=yes ;; 8768esac 8769 DSYMUTIL=$ac_ct_DSYMUTIL 8770 fi 8771else 8772 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8773fi 8774 8775 if test -n "$ac_tool_prefix"; then 8776 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8777set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8779printf %s "checking for $ac_word... " >&6; } 8780if test ${ac_cv_prog_NMEDIT+y} 8781then : 8782 printf %s "(cached) " >&6 8783else $as_nop 8784 if test -n "$NMEDIT"; then 8785 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8786else 8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8788for as_dir in $PATH 8789do 8790 IFS=$as_save_IFS 8791 case $as_dir in #((( 8792 '') as_dir=./ ;; 8793 */) ;; 8794 *) as_dir=$as_dir/ ;; 8795 esac 8796 for ac_exec_ext in '' $ac_executable_extensions; do 8797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8798 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8800 break 2 8801 fi 8802done 8803 done 8804IFS=$as_save_IFS 8805 8806fi 8807fi 8808NMEDIT=$ac_cv_prog_NMEDIT 8809if test -n "$NMEDIT"; then 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8811printf "%s\n" "$NMEDIT" >&6; } 8812else 8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8814printf "%s\n" "no" >&6; } 8815fi 8816 8817 8818fi 8819if test -z "$ac_cv_prog_NMEDIT"; then 8820 ac_ct_NMEDIT=$NMEDIT 8821 # Extract the first word of "nmedit", so it can be a program name with args. 8822set dummy nmedit; ac_word=$2 8823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8824printf %s "checking for $ac_word... " >&6; } 8825if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8826then : 8827 printf %s "(cached) " >&6 8828else $as_nop 8829 if test -n "$ac_ct_NMEDIT"; then 8830 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8831else 8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8833for as_dir in $PATH 8834do 8835 IFS=$as_save_IFS 8836 case $as_dir in #((( 8837 '') as_dir=./ ;; 8838 */) ;; 8839 *) as_dir=$as_dir/ ;; 8840 esac 8841 for ac_exec_ext in '' $ac_executable_extensions; do 8842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8843 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8845 break 2 8846 fi 8847done 8848 done 8849IFS=$as_save_IFS 8850 8851fi 8852fi 8853ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8854if test -n "$ac_ct_NMEDIT"; then 8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8856printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8857else 8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8859printf "%s\n" "no" >&6; } 8860fi 8861 8862 if test "x$ac_ct_NMEDIT" = x; then 8863 NMEDIT=":" 8864 else 8865 case $cross_compiling:$ac_tool_warned in 8866yes:) 8867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8869ac_tool_warned=yes ;; 8870esac 8871 NMEDIT=$ac_ct_NMEDIT 8872 fi 8873else 8874 NMEDIT="$ac_cv_prog_NMEDIT" 8875fi 8876 8877 if test -n "$ac_tool_prefix"; then 8878 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8879set dummy ${ac_tool_prefix}lipo; ac_word=$2 8880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8881printf %s "checking for $ac_word... " >&6; } 8882if test ${ac_cv_prog_LIPO+y} 8883then : 8884 printf %s "(cached) " >&6 8885else $as_nop 8886 if test -n "$LIPO"; then 8887 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8888else 8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8890for as_dir in $PATH 8891do 8892 IFS=$as_save_IFS 8893 case $as_dir in #((( 8894 '') as_dir=./ ;; 8895 */) ;; 8896 *) as_dir=$as_dir/ ;; 8897 esac 8898 for ac_exec_ext in '' $ac_executable_extensions; do 8899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8900 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8902 break 2 8903 fi 8904done 8905 done 8906IFS=$as_save_IFS 8907 8908fi 8909fi 8910LIPO=$ac_cv_prog_LIPO 8911if test -n "$LIPO"; then 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8913printf "%s\n" "$LIPO" >&6; } 8914else 8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8916printf "%s\n" "no" >&6; } 8917fi 8918 8919 8920fi 8921if test -z "$ac_cv_prog_LIPO"; then 8922 ac_ct_LIPO=$LIPO 8923 # Extract the first word of "lipo", so it can be a program name with args. 8924set dummy lipo; ac_word=$2 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8926printf %s "checking for $ac_word... " >&6; } 8927if test ${ac_cv_prog_ac_ct_LIPO+y} 8928then : 8929 printf %s "(cached) " >&6 8930else $as_nop 8931 if test -n "$ac_ct_LIPO"; then 8932 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8933else 8934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8935for as_dir in $PATH 8936do 8937 IFS=$as_save_IFS 8938 case $as_dir in #((( 8939 '') as_dir=./ ;; 8940 */) ;; 8941 *) as_dir=$as_dir/ ;; 8942 esac 8943 for ac_exec_ext in '' $ac_executable_extensions; do 8944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8945 ac_cv_prog_ac_ct_LIPO="lipo" 8946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8947 break 2 8948 fi 8949done 8950 done 8951IFS=$as_save_IFS 8952 8953fi 8954fi 8955ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8956if test -n "$ac_ct_LIPO"; then 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8958printf "%s\n" "$ac_ct_LIPO" >&6; } 8959else 8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8961printf "%s\n" "no" >&6; } 8962fi 8963 8964 if test "x$ac_ct_LIPO" = x; then 8965 LIPO=":" 8966 else 8967 case $cross_compiling:$ac_tool_warned in 8968yes:) 8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8971ac_tool_warned=yes ;; 8972esac 8973 LIPO=$ac_ct_LIPO 8974 fi 8975else 8976 LIPO="$ac_cv_prog_LIPO" 8977fi 8978 8979 if test -n "$ac_tool_prefix"; then 8980 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8981set dummy ${ac_tool_prefix}otool; ac_word=$2 8982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8983printf %s "checking for $ac_word... " >&6; } 8984if test ${ac_cv_prog_OTOOL+y} 8985then : 8986 printf %s "(cached) " >&6 8987else $as_nop 8988 if test -n "$OTOOL"; then 8989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8990else 8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8992for as_dir in $PATH 8993do 8994 IFS=$as_save_IFS 8995 case $as_dir in #((( 8996 '') as_dir=./ ;; 8997 */) ;; 8998 *) as_dir=$as_dir/ ;; 8999 esac 9000 for ac_exec_ext in '' $ac_executable_extensions; do 9001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9004 break 2 9005 fi 9006done 9007 done 9008IFS=$as_save_IFS 9009 9010fi 9011fi 9012OTOOL=$ac_cv_prog_OTOOL 9013if test -n "$OTOOL"; then 9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9015printf "%s\n" "$OTOOL" >&6; } 9016else 9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9018printf "%s\n" "no" >&6; } 9019fi 9020 9021 9022fi 9023if test -z "$ac_cv_prog_OTOOL"; then 9024 ac_ct_OTOOL=$OTOOL 9025 # Extract the first word of "otool", so it can be a program name with args. 9026set dummy otool; ac_word=$2 9027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9028printf %s "checking for $ac_word... " >&6; } 9029if test ${ac_cv_prog_ac_ct_OTOOL+y} 9030then : 9031 printf %s "(cached) " >&6 9032else $as_nop 9033 if test -n "$ac_ct_OTOOL"; then 9034 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9035else 9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9037for as_dir in $PATH 9038do 9039 IFS=$as_save_IFS 9040 case $as_dir in #((( 9041 '') as_dir=./ ;; 9042 */) ;; 9043 *) as_dir=$as_dir/ ;; 9044 esac 9045 for ac_exec_ext in '' $ac_executable_extensions; do 9046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9047 ac_cv_prog_ac_ct_OTOOL="otool" 9048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9049 break 2 9050 fi 9051done 9052 done 9053IFS=$as_save_IFS 9054 9055fi 9056fi 9057ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9058if test -n "$ac_ct_OTOOL"; then 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9060printf "%s\n" "$ac_ct_OTOOL" >&6; } 9061else 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9063printf "%s\n" "no" >&6; } 9064fi 9065 9066 if test "x$ac_ct_OTOOL" = x; then 9067 OTOOL=":" 9068 else 9069 case $cross_compiling:$ac_tool_warned in 9070yes:) 9071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9072printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9073ac_tool_warned=yes ;; 9074esac 9075 OTOOL=$ac_ct_OTOOL 9076 fi 9077else 9078 OTOOL="$ac_cv_prog_OTOOL" 9079fi 9080 9081 if test -n "$ac_tool_prefix"; then 9082 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9083set dummy ${ac_tool_prefix}otool64; ac_word=$2 9084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9085printf %s "checking for $ac_word... " >&6; } 9086if test ${ac_cv_prog_OTOOL64+y} 9087then : 9088 printf %s "(cached) " >&6 9089else $as_nop 9090 if test -n "$OTOOL64"; then 9091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9092else 9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9094for as_dir in $PATH 9095do 9096 IFS=$as_save_IFS 9097 case $as_dir in #((( 9098 '') as_dir=./ ;; 9099 */) ;; 9100 *) as_dir=$as_dir/ ;; 9101 esac 9102 for ac_exec_ext in '' $ac_executable_extensions; do 9103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9104 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9106 break 2 9107 fi 9108done 9109 done 9110IFS=$as_save_IFS 9111 9112fi 9113fi 9114OTOOL64=$ac_cv_prog_OTOOL64 9115if test -n "$OTOOL64"; then 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9117printf "%s\n" "$OTOOL64" >&6; } 9118else 9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120printf "%s\n" "no" >&6; } 9121fi 9122 9123 9124fi 9125if test -z "$ac_cv_prog_OTOOL64"; then 9126 ac_ct_OTOOL64=$OTOOL64 9127 # Extract the first word of "otool64", so it can be a program name with args. 9128set dummy otool64; ac_word=$2 9129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9130printf %s "checking for $ac_word... " >&6; } 9131if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9132then : 9133 printf %s "(cached) " >&6 9134else $as_nop 9135 if test -n "$ac_ct_OTOOL64"; then 9136 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9137else 9138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9139for as_dir in $PATH 9140do 9141 IFS=$as_save_IFS 9142 case $as_dir in #((( 9143 '') as_dir=./ ;; 9144 */) ;; 9145 *) as_dir=$as_dir/ ;; 9146 esac 9147 for ac_exec_ext in '' $ac_executable_extensions; do 9148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9149 ac_cv_prog_ac_ct_OTOOL64="otool64" 9150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9151 break 2 9152 fi 9153done 9154 done 9155IFS=$as_save_IFS 9156 9157fi 9158fi 9159ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9160if test -n "$ac_ct_OTOOL64"; then 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9162printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9163else 9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9165printf "%s\n" "no" >&6; } 9166fi 9167 9168 if test "x$ac_ct_OTOOL64" = x; then 9169 OTOOL64=":" 9170 else 9171 case $cross_compiling:$ac_tool_warned in 9172yes:) 9173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9174printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9175ac_tool_warned=yes ;; 9176esac 9177 OTOOL64=$ac_ct_OTOOL64 9178 fi 9179else 9180 OTOOL64="$ac_cv_prog_OTOOL64" 9181fi 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9210printf %s "checking for -single_module linker flag... " >&6; } 9211if test ${lt_cv_apple_cc_single_mod+y} 9212then : 9213 printf %s "(cached) " >&6 9214else $as_nop 9215 lt_cv_apple_cc_single_mod=no 9216 if test -z "$LT_MULTI_MODULE"; then 9217 # By default we will add the -single_module flag. You can override 9218 # by either setting the environment variable LT_MULTI_MODULE 9219 # non-empty at configure time, or by adding -multi_module to the 9220 # link flags. 9221 rm -rf libconftest.dylib* 9222 echo "int foo(void){return 1;}" > conftest.c 9223 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9224-dynamiclib -Wl,-single_module conftest.c" >&5 9225 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9226 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9227 _lt_result=$? 9228 # If there is a non-empty error log, and "single_module" 9229 # appears in it, assume the flag caused a linker warning 9230 if test -s conftest.err && $GREP single_module conftest.err; then 9231 cat conftest.err >&5 9232 # Otherwise, if the output was created with a 0 exit code from 9233 # the compiler, it worked. 9234 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9235 lt_cv_apple_cc_single_mod=yes 9236 else 9237 cat conftest.err >&5 9238 fi 9239 rm -rf libconftest.dylib* 9240 rm -f conftest.* 9241 fi 9242fi 9243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9244printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9245 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9247printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9248if test ${lt_cv_ld_exported_symbols_list+y} 9249then : 9250 printf %s "(cached) " >&6 9251else $as_nop 9252 lt_cv_ld_exported_symbols_list=no 9253 save_LDFLAGS=$LDFLAGS 9254 echo "_main" > conftest.sym 9255 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9257/* end confdefs.h. */ 9258 9259int 9260main (void) 9261{ 9262 9263 ; 9264 return 0; 9265} 9266_ACEOF 9267if ac_fn_c_try_link "$LINENO" 9268then : 9269 lt_cv_ld_exported_symbols_list=yes 9270else $as_nop 9271 lt_cv_ld_exported_symbols_list=no 9272fi 9273rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9274 conftest$ac_exeext conftest.$ac_ext 9275 LDFLAGS=$save_LDFLAGS 9276 9277fi 9278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9279printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9280 9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9282printf %s "checking for -force_load linker flag... " >&6; } 9283if test ${lt_cv_ld_force_load+y} 9284then : 9285 printf %s "(cached) " >&6 9286else $as_nop 9287 lt_cv_ld_force_load=no 9288 cat > conftest.c << _LT_EOF 9289int forced_loaded() { return 2;} 9290_LT_EOF 9291 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9292 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9293 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9294 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9295 echo "$RANLIB libconftest.a" >&5 9296 $RANLIB libconftest.a 2>&5 9297 cat > conftest.c << _LT_EOF 9298int main() { return 0;} 9299_LT_EOF 9300 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9301 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9302 _lt_result=$? 9303 if test -s conftest.err && $GREP force_load conftest.err; then 9304 cat conftest.err >&5 9305 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9306 lt_cv_ld_force_load=yes 9307 else 9308 cat conftest.err >&5 9309 fi 9310 rm -f conftest.err libconftest.a conftest conftest.c 9311 rm -rf conftest.dSYM 9312 9313fi 9314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9315printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9316 case $host_os in 9317 rhapsody* | darwin1.[012]) 9318 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9319 darwin1.*) 9320 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9321 darwin*) 9322 case $MACOSX_DEPLOYMENT_TARGET,$host in 9323 10.[012],*|,*powerpc*-darwin[5-8]*) 9324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9325 *) 9326 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9327 esac 9328 ;; 9329 esac 9330 if test yes = "$lt_cv_apple_cc_single_mod"; then 9331 _lt_dar_single_mod='$single_module' 9332 fi 9333 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9334 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9335 else 9336 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9337 fi 9338 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9339 _lt_dsymutil='~$DSYMUTIL $lib || :' 9340 else 9341 _lt_dsymutil= 9342 fi 9343 ;; 9344 esac 9345 9346# func_munge_path_list VARIABLE PATH 9347# ----------------------------------- 9348# VARIABLE is name of variable containing _space_ separated list of 9349# directories to be munged by the contents of PATH, which is string 9350# having a format: 9351# "DIR[:DIR]:" 9352# string "DIR[ DIR]" will be prepended to VARIABLE 9353# ":DIR[:DIR]" 9354# string "DIR[ DIR]" will be appended to VARIABLE 9355# "DIRP[:DIRP]::[DIRA:]DIRA" 9356# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9357# "DIRA[ DIRA]" will be appended to VARIABLE 9358# "DIR[:DIR]" 9359# VARIABLE will be replaced by "DIR[ DIR]" 9360func_munge_path_list () 9361{ 9362 case x$2 in 9363 x) 9364 ;; 9365 *:) 9366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9367 ;; 9368 x:*) 9369 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9370 ;; 9371 *::*) 9372 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9373 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9374 ;; 9375 *) 9376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9377 ;; 9378 esac 9379} 9380 9381ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9382" 9383if test "x$ac_cv_header_dlfcn_h" = xyes 9384then : 9385 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9386 9387fi 9388 9389 9390 9391 9392func_stripname_cnf () 9393{ 9394 case $2 in 9395 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9396 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9397 esac 9398} # func_stripname_cnf 9399 9400 9401 9402 9403 9404# Set options 9405# Check whether --enable-static was given. 9406if test ${enable_static+y} 9407then : 9408 enableval=$enable_static; p=${PACKAGE-default} 9409 case $enableval in 9410 yes) enable_static=yes ;; 9411 no) enable_static=no ;; 9412 *) 9413 enable_static=no 9414 # Look at the argument we got. We use all the common list separators. 9415 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9416 for pkg in $enableval; do 9417 IFS=$lt_save_ifs 9418 if test "X$pkg" = "X$p"; then 9419 enable_static=yes 9420 fi 9421 done 9422 IFS=$lt_save_ifs 9423 ;; 9424 esac 9425else $as_nop 9426 enable_static=no 9427fi 9428 9429 9430 9431 9432 9433 9434 9435enable_dlopen=yes 9436 9437 9438 9439 9440 enable_win32_dll=no 9441 9442 9443 # Check whether --enable-shared was given. 9444if test ${enable_shared+y} 9445then : 9446 enableval=$enable_shared; p=${PACKAGE-default} 9447 case $enableval in 9448 yes) enable_shared=yes ;; 9449 no) enable_shared=no ;; 9450 *) 9451 enable_shared=no 9452 # Look at the argument we got. We use all the common list separators. 9453 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9454 for pkg in $enableval; do 9455 IFS=$lt_save_ifs 9456 if test "X$pkg" = "X$p"; then 9457 enable_shared=yes 9458 fi 9459 done 9460 IFS=$lt_save_ifs 9461 ;; 9462 esac 9463else $as_nop 9464 enable_shared=yes 9465fi 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477# Check whether --with-pic was given. 9478if test ${with_pic+y} 9479then : 9480 withval=$with_pic; lt_p=${PACKAGE-default} 9481 case $withval in 9482 yes|no) pic_mode=$withval ;; 9483 *) 9484 pic_mode=default 9485 # Look at the argument we got. We use all the common list separators. 9486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9487 for lt_pkg in $withval; do 9488 IFS=$lt_save_ifs 9489 if test "X$lt_pkg" = "X$lt_p"; then 9490 pic_mode=yes 9491 fi 9492 done 9493 IFS=$lt_save_ifs 9494 ;; 9495 esac 9496else $as_nop 9497 pic_mode=default 9498fi 9499 9500 9501 9502 9503 9504 9505 9506 9507 # Check whether --enable-fast-install was given. 9508if test ${enable_fast_install+y} 9509then : 9510 enableval=$enable_fast_install; p=${PACKAGE-default} 9511 case $enableval in 9512 yes) enable_fast_install=yes ;; 9513 no) enable_fast_install=no ;; 9514 *) 9515 enable_fast_install=no 9516 # Look at the argument we got. We use all the common list separators. 9517 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9518 for pkg in $enableval; do 9519 IFS=$lt_save_ifs 9520 if test "X$pkg" = "X$p"; then 9521 enable_fast_install=yes 9522 fi 9523 done 9524 IFS=$lt_save_ifs 9525 ;; 9526 esac 9527else $as_nop 9528 enable_fast_install=yes 9529fi 9530 9531 9532 9533 9534 9535 9536 9537 9538 shared_archive_member_spec= 9539case $host,$enable_shared in 9540power*-*-aix[5-9]*,yes) 9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9542printf %s "checking which variant of shared library versioning to provide... " >&6; } 9543 9544# Check whether --with-aix-soname was given. 9545if test ${with_aix_soname+y} 9546then : 9547 withval=$with_aix_soname; case $withval in 9548 aix|svr4|both) 9549 ;; 9550 *) 9551 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9552 ;; 9553 esac 9554 lt_cv_with_aix_soname=$with_aix_soname 9555else $as_nop 9556 if test ${lt_cv_with_aix_soname+y} 9557then : 9558 printf %s "(cached) " >&6 9559else $as_nop 9560 lt_cv_with_aix_soname=aix 9561fi 9562 9563 with_aix_soname=$lt_cv_with_aix_soname 9564fi 9565 9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9567printf "%s\n" "$with_aix_soname" >&6; } 9568 if test aix != "$with_aix_soname"; then 9569 # For the AIX way of multilib, we name the shared archive member 9570 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9571 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9572 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9573 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9574 if test 64 = "${OBJECT_MODE-32}"; then 9575 shared_archive_member_spec=shr_64 9576 else 9577 shared_archive_member_spec=shr 9578 fi 9579 fi 9580 ;; 9581*) 9582 with_aix_soname=aix 9583 ;; 9584esac 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595# This can be used to rebuild libtool when needed 9596LIBTOOL_DEPS=$ltmain 9597 9598# Always use our own libtool. 9599LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630test -z "$LN_S" && LN_S="ln -s" 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645if test -n "${ZSH_VERSION+set}"; then 9646 setopt NO_GLOB_SUBST 9647fi 9648 9649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9650printf %s "checking for objdir... " >&6; } 9651if test ${lt_cv_objdir+y} 9652then : 9653 printf %s "(cached) " >&6 9654else $as_nop 9655 rm -f .libs 2>/dev/null 9656mkdir .libs 2>/dev/null 9657if test -d .libs; then 9658 lt_cv_objdir=.libs 9659else 9660 # MS-DOS does not allow filenames that begin with a dot. 9661 lt_cv_objdir=_libs 9662fi 9663rmdir .libs 2>/dev/null 9664fi 9665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9666printf "%s\n" "$lt_cv_objdir" >&6; } 9667objdir=$lt_cv_objdir 9668 9669 9670 9671 9672 9673printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9674 9675 9676 9677 9678case $host_os in 9679aix3*) 9680 # AIX sometimes has problems with the GCC collect2 program. For some 9681 # reason, if we set the COLLECT_NAMES environment variable, the problems 9682 # vanish in a puff of smoke. 9683 if test set != "${COLLECT_NAMES+set}"; then 9684 COLLECT_NAMES= 9685 export COLLECT_NAMES 9686 fi 9687 ;; 9688esac 9689 9690# Global variables: 9691ofile=libtool 9692can_build_shared=yes 9693 9694# All known linkers require a '.a' archive for static linking (except MSVC and 9695# ICC, which need '.lib'). 9696libext=a 9697 9698with_gnu_ld=$lt_cv_prog_gnu_ld 9699 9700old_CC=$CC 9701old_CFLAGS=$CFLAGS 9702 9703# Set sane defaults for various variables 9704test -z "$CC" && CC=cc 9705test -z "$LTCC" && LTCC=$CC 9706test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9707test -z "$LD" && LD=ld 9708test -z "$ac_objext" && ac_objext=o 9709 9710func_cc_basename $compiler 9711cc_basename=$func_cc_basename_result 9712 9713 9714# Only perform the check for file, if the check method requires it 9715test -z "$MAGIC_CMD" && MAGIC_CMD=file 9716case $deplibs_check_method in 9717file_magic*) 9718 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9720printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9721if test ${lt_cv_path_MAGIC_CMD+y} 9722then : 9723 printf %s "(cached) " >&6 9724else $as_nop 9725 case $MAGIC_CMD in 9726[\\/*] | ?:[\\/]*) 9727 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9728 ;; 9729*) 9730 lt_save_MAGIC_CMD=$MAGIC_CMD 9731 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9733 for ac_dir in $ac_dummy; do 9734 IFS=$lt_save_ifs 9735 test -z "$ac_dir" && ac_dir=. 9736 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9737 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9738 if test -n "$file_magic_test_file"; then 9739 case $deplibs_check_method in 9740 "file_magic "*) 9741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9744 $EGREP "$file_magic_regex" > /dev/null; then 9745 : 9746 else 9747 cat <<_LT_EOF 1>&2 9748 9749*** Warning: the command libtool uses to detect shared libraries, 9750*** $file_magic_cmd, produces output that libtool cannot recognize. 9751*** The result is that libtool may fail to recognize shared libraries 9752*** as such. This will affect the creation of libtool libraries that 9753*** depend on shared libraries, but programs linked with such libtool 9754*** libraries will work regardless of this problem. Nevertheless, you 9755*** may want to report the problem to your system manager and/or to 9756*** bug-libtool@gnu.org 9757 9758_LT_EOF 9759 fi ;; 9760 esac 9761 fi 9762 break 9763 fi 9764 done 9765 IFS=$lt_save_ifs 9766 MAGIC_CMD=$lt_save_MAGIC_CMD 9767 ;; 9768esac 9769fi 9770 9771MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9772if test -n "$MAGIC_CMD"; then 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9774printf "%s\n" "$MAGIC_CMD" >&6; } 9775else 9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9777printf "%s\n" "no" >&6; } 9778fi 9779 9780 9781 9782 9783 9784if test -z "$lt_cv_path_MAGIC_CMD"; then 9785 if test -n "$ac_tool_prefix"; then 9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9787printf %s "checking for file... " >&6; } 9788if test ${lt_cv_path_MAGIC_CMD+y} 9789then : 9790 printf %s "(cached) " >&6 9791else $as_nop 9792 case $MAGIC_CMD in 9793[\\/*] | ?:[\\/]*) 9794 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9795 ;; 9796*) 9797 lt_save_MAGIC_CMD=$MAGIC_CMD 9798 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9800 for ac_dir in $ac_dummy; do 9801 IFS=$lt_save_ifs 9802 test -z "$ac_dir" && ac_dir=. 9803 if test -f "$ac_dir/file"; then 9804 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9805 if test -n "$file_magic_test_file"; then 9806 case $deplibs_check_method in 9807 "file_magic "*) 9808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9809 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9811 $EGREP "$file_magic_regex" > /dev/null; then 9812 : 9813 else 9814 cat <<_LT_EOF 1>&2 9815 9816*** Warning: the command libtool uses to detect shared libraries, 9817*** $file_magic_cmd, produces output that libtool cannot recognize. 9818*** The result is that libtool may fail to recognize shared libraries 9819*** as such. This will affect the creation of libtool libraries that 9820*** depend on shared libraries, but programs linked with such libtool 9821*** libraries will work regardless of this problem. Nevertheless, you 9822*** may want to report the problem to your system manager and/or to 9823*** bug-libtool@gnu.org 9824 9825_LT_EOF 9826 fi ;; 9827 esac 9828 fi 9829 break 9830 fi 9831 done 9832 IFS=$lt_save_ifs 9833 MAGIC_CMD=$lt_save_MAGIC_CMD 9834 ;; 9835esac 9836fi 9837 9838MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9839if test -n "$MAGIC_CMD"; then 9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9841printf "%s\n" "$MAGIC_CMD" >&6; } 9842else 9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9844printf "%s\n" "no" >&6; } 9845fi 9846 9847 9848 else 9849 MAGIC_CMD=: 9850 fi 9851fi 9852 9853 fi 9854 ;; 9855esac 9856 9857# Use C for the default configuration in the libtool script 9858 9859lt_save_CC=$CC 9860ac_ext=c 9861ac_cpp='$CPP $CPPFLAGS' 9862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9864ac_compiler_gnu=$ac_cv_c_compiler_gnu 9865 9866 9867# Source file extension for C test sources. 9868ac_ext=c 9869 9870# Object file extension for compiled C test sources. 9871objext=o 9872objext=$objext 9873 9874# Code to be used in simple compile tests 9875lt_simple_compile_test_code="int some_variable = 0;" 9876 9877# Code to be used in simple link tests 9878lt_simple_link_test_code='int main(){return(0);}' 9879 9880 9881 9882 9883 9884 9885 9886# If no C compiler was specified, use CC. 9887LTCC=${LTCC-"$CC"} 9888 9889# If no C compiler flags were specified, use CFLAGS. 9890LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9891 9892# Allow CC to be a program name with arguments. 9893compiler=$CC 9894 9895# Save the default compiler, since it gets overwritten when the other 9896# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9897compiler_DEFAULT=$CC 9898 9899# save warnings/boilerplate of simple test code 9900ac_outfile=conftest.$ac_objext 9901echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9902eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9903_lt_compiler_boilerplate=`cat conftest.err` 9904$RM conftest* 9905 9906ac_outfile=conftest.$ac_objext 9907echo "$lt_simple_link_test_code" >conftest.$ac_ext 9908eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9909_lt_linker_boilerplate=`cat conftest.err` 9910$RM -r conftest* 9911 9912 9913## CAVEAT EMPTOR: 9914## There is no encapsulation within the following macros, do not change 9915## the running order or otherwise move them around unless you know exactly 9916## what you are doing... 9917if test -n "$compiler"; then 9918 9919lt_prog_compiler_no_builtin_flag= 9920 9921if test yes = "$GCC"; then 9922 case $cc_basename in 9923 nvcc*) 9924 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9925 *) 9926 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9927 esac 9928 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9930printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9931if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9932then : 9933 printf %s "(cached) " >&6 9934else $as_nop 9935 lt_cv_prog_compiler_rtti_exceptions=no 9936 ac_outfile=conftest.$ac_objext 9937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9938 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9939 # Insert the option either (1) after the last *FLAGS variable, or 9940 # (2) before a word containing "conftest.", or (3) at the end. 9941 # Note that $ac_compile itself does not contain backslashes and begins 9942 # with a dollar sign (not a hyphen), so the echo should work correctly. 9943 # The option is referenced via a variable to avoid confusing sed. 9944 lt_compile=`echo "$ac_compile" | $SED \ 9945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9947 -e 's:$: $lt_compiler_flag:'` 9948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9949 (eval "$lt_compile" 2>conftest.err) 9950 ac_status=$? 9951 cat conftest.err >&5 9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9953 if (exit $ac_status) && test -s "$ac_outfile"; then 9954 # The compiler can only warn and ignore the option if not recognized 9955 # So say no if there are warnings other than the usual output. 9956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9959 lt_cv_prog_compiler_rtti_exceptions=yes 9960 fi 9961 fi 9962 $RM conftest* 9963 9964fi 9965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9966printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9967 9968if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9970else 9971 : 9972fi 9973 9974fi 9975 9976 9977 9978 9979 9980 9981 lt_prog_compiler_wl= 9982lt_prog_compiler_pic= 9983lt_prog_compiler_static= 9984 9985 9986 if test yes = "$GCC"; then 9987 lt_prog_compiler_wl='-Wl,' 9988 lt_prog_compiler_static='-static' 9989 9990 case $host_os in 9991 aix*) 9992 # All AIX code is PIC. 9993 if test ia64 = "$host_cpu"; then 9994 # AIX 5 now supports IA64 processor 9995 lt_prog_compiler_static='-Bstatic' 9996 fi 9997 lt_prog_compiler_pic='-fPIC' 9998 ;; 9999 10000 amigaos*) 10001 case $host_cpu in 10002 powerpc) 10003 # see comment about AmigaOS4 .so support 10004 lt_prog_compiler_pic='-fPIC' 10005 ;; 10006 m68k) 10007 # FIXME: we need at least 68020 code to build shared libraries, but 10008 # adding the '-m68020' flag to GCC prevents building anything better, 10009 # like '-m68040'. 10010 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10011 ;; 10012 esac 10013 ;; 10014 10015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10016 # PIC is the default for these OSes. 10017 ;; 10018 10019 mingw* | cygwin* | pw32* | os2* | cegcc*) 10020 # This hack is so that the source file can tell whether it is being 10021 # built for inclusion in a dll (and should export symbols for example). 10022 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10023 # (--disable-auto-import) libraries 10024 lt_prog_compiler_pic='-DDLL_EXPORT' 10025 case $host_os in 10026 os2*) 10027 lt_prog_compiler_static='$wl-static' 10028 ;; 10029 esac 10030 ;; 10031 10032 darwin* | rhapsody*) 10033 # PIC is the default on this platform 10034 # Common symbols not allowed in MH_DYLIB files 10035 lt_prog_compiler_pic='-fno-common' 10036 ;; 10037 10038 haiku*) 10039 # PIC is the default for Haiku. 10040 # The "-static" flag exists, but is broken. 10041 lt_prog_compiler_static= 10042 ;; 10043 10044 hpux*) 10045 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10046 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10047 # sets the default TLS model and affects inlining. 10048 case $host_cpu in 10049 hppa*64*) 10050 # +Z the default 10051 ;; 10052 *) 10053 lt_prog_compiler_pic='-fPIC' 10054 ;; 10055 esac 10056 ;; 10057 10058 interix[3-9]*) 10059 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10060 # Instead, we relocate shared libraries at runtime. 10061 ;; 10062 10063 msdosdjgpp*) 10064 # Just because we use GCC doesn't mean we suddenly get shared libraries 10065 # on systems that don't support them. 10066 lt_prog_compiler_can_build_shared=no 10067 enable_shared=no 10068 ;; 10069 10070 *nto* | *qnx*) 10071 # QNX uses GNU C++, but need to define -shared option too, otherwise 10072 # it will coredump. 10073 lt_prog_compiler_pic='-fPIC -shared' 10074 ;; 10075 10076 sysv4*MP*) 10077 if test -d /usr/nec; then 10078 lt_prog_compiler_pic=-Kconform_pic 10079 fi 10080 ;; 10081 10082 *) 10083 lt_prog_compiler_pic='-fPIC' 10084 ;; 10085 esac 10086 10087 case $cc_basename in 10088 nvcc*) # Cuda Compiler Driver 2.2 10089 lt_prog_compiler_wl='-Xlinker ' 10090 if test -n "$lt_prog_compiler_pic"; then 10091 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10092 fi 10093 ;; 10094 esac 10095 else 10096 # PORTME Check for flag to pass linker flags through the system compiler. 10097 case $host_os in 10098 aix*) 10099 lt_prog_compiler_wl='-Wl,' 10100 if test ia64 = "$host_cpu"; then 10101 # AIX 5 now supports IA64 processor 10102 lt_prog_compiler_static='-Bstatic' 10103 else 10104 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10105 fi 10106 ;; 10107 10108 darwin* | rhapsody*) 10109 # PIC is the default on this platform 10110 # Common symbols not allowed in MH_DYLIB files 10111 lt_prog_compiler_pic='-fno-common' 10112 case $cc_basename in 10113 nagfor*) 10114 # NAG Fortran compiler 10115 lt_prog_compiler_wl='-Wl,-Wl,,' 10116 lt_prog_compiler_pic='-PIC' 10117 lt_prog_compiler_static='-Bstatic' 10118 ;; 10119 esac 10120 ;; 10121 10122 mingw* | cygwin* | pw32* | os2* | cegcc*) 10123 # This hack is so that the source file can tell whether it is being 10124 # built for inclusion in a dll (and should export symbols for example). 10125 lt_prog_compiler_pic='-DDLL_EXPORT' 10126 case $host_os in 10127 os2*) 10128 lt_prog_compiler_static='$wl-static' 10129 ;; 10130 esac 10131 ;; 10132 10133 hpux9* | hpux10* | hpux11*) 10134 lt_prog_compiler_wl='-Wl,' 10135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10136 # not for PA HP-UX. 10137 case $host_cpu in 10138 hppa*64*|ia64*) 10139 # +Z the default 10140 ;; 10141 *) 10142 lt_prog_compiler_pic='+Z' 10143 ;; 10144 esac 10145 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10146 lt_prog_compiler_static='$wl-a ${wl}archive' 10147 ;; 10148 10149 irix5* | irix6* | nonstopux*) 10150 lt_prog_compiler_wl='-Wl,' 10151 # PIC (with -KPIC) is the default. 10152 lt_prog_compiler_static='-non_shared' 10153 ;; 10154 10155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10156 case $cc_basename in 10157 # old Intel for x86_64, which still supported -KPIC. 10158 ecc*) 10159 lt_prog_compiler_wl='-Wl,' 10160 lt_prog_compiler_pic='-KPIC' 10161 lt_prog_compiler_static='-static' 10162 ;; 10163 # icc used to be incompatible with GCC. 10164 # ICC 10 doesn't accept -KPIC any more. 10165 icc* | ifort*) 10166 lt_prog_compiler_wl='-Wl,' 10167 lt_prog_compiler_pic='-fPIC' 10168 lt_prog_compiler_static='-static' 10169 ;; 10170 # Lahey Fortran 8.1. 10171 lf95*) 10172 lt_prog_compiler_wl='-Wl,' 10173 lt_prog_compiler_pic='--shared' 10174 lt_prog_compiler_static='--static' 10175 ;; 10176 nagfor*) 10177 # NAG Fortran compiler 10178 lt_prog_compiler_wl='-Wl,-Wl,,' 10179 lt_prog_compiler_pic='-PIC' 10180 lt_prog_compiler_static='-Bstatic' 10181 ;; 10182 tcc*) 10183 # Fabrice Bellard et al's Tiny C Compiler 10184 lt_prog_compiler_wl='-Wl,' 10185 lt_prog_compiler_pic='-fPIC' 10186 lt_prog_compiler_static='-static' 10187 ;; 10188 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10189 # Portland Group compilers (*not* the Pentium gcc compiler, 10190 # which looks to be a dead project) 10191 lt_prog_compiler_wl='-Wl,' 10192 lt_prog_compiler_pic='-fpic' 10193 lt_prog_compiler_static='-Bstatic' 10194 ;; 10195 ccc*) 10196 lt_prog_compiler_wl='-Wl,' 10197 # All Alpha code is PIC. 10198 lt_prog_compiler_static='-non_shared' 10199 ;; 10200 xl* | bgxl* | bgf* | mpixl*) 10201 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10202 lt_prog_compiler_wl='-Wl,' 10203 lt_prog_compiler_pic='-qpic' 10204 lt_prog_compiler_static='-qstaticlink' 10205 ;; 10206 *) 10207 case `$CC -V 2>&1 | $SED 5q` in 10208 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10209 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10210 lt_prog_compiler_pic='-KPIC' 10211 lt_prog_compiler_static='-Bstatic' 10212 lt_prog_compiler_wl='' 10213 ;; 10214 *Sun\ F* | *Sun*Fortran*) 10215 lt_prog_compiler_pic='-KPIC' 10216 lt_prog_compiler_static='-Bstatic' 10217 lt_prog_compiler_wl='-Qoption ld ' 10218 ;; 10219 *Sun\ C*) 10220 # Sun C 5.9 10221 lt_prog_compiler_pic='-KPIC' 10222 lt_prog_compiler_static='-Bstatic' 10223 lt_prog_compiler_wl='-Wl,' 10224 ;; 10225 *Intel*\ [CF]*Compiler*) 10226 lt_prog_compiler_wl='-Wl,' 10227 lt_prog_compiler_pic='-fPIC' 10228 lt_prog_compiler_static='-static' 10229 ;; 10230 *Portland\ Group*) 10231 lt_prog_compiler_wl='-Wl,' 10232 lt_prog_compiler_pic='-fpic' 10233 lt_prog_compiler_static='-Bstatic' 10234 ;; 10235 esac 10236 ;; 10237 esac 10238 ;; 10239 10240 newsos6) 10241 lt_prog_compiler_pic='-KPIC' 10242 lt_prog_compiler_static='-Bstatic' 10243 ;; 10244 10245 *nto* | *qnx*) 10246 # QNX uses GNU C++, but need to define -shared option too, otherwise 10247 # it will coredump. 10248 lt_prog_compiler_pic='-fPIC -shared' 10249 ;; 10250 10251 osf3* | osf4* | osf5*) 10252 lt_prog_compiler_wl='-Wl,' 10253 # All OSF/1 code is PIC. 10254 lt_prog_compiler_static='-non_shared' 10255 ;; 10256 10257 rdos*) 10258 lt_prog_compiler_static='-non_shared' 10259 ;; 10260 10261 solaris*) 10262 lt_prog_compiler_pic='-KPIC' 10263 lt_prog_compiler_static='-Bstatic' 10264 case $cc_basename in 10265 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10266 lt_prog_compiler_wl='-Qoption ld ';; 10267 *) 10268 lt_prog_compiler_wl='-Wl,';; 10269 esac 10270 ;; 10271 10272 sunos4*) 10273 lt_prog_compiler_wl='-Qoption ld ' 10274 lt_prog_compiler_pic='-PIC' 10275 lt_prog_compiler_static='-Bstatic' 10276 ;; 10277 10278 sysv4 | sysv4.2uw2* | sysv4.3*) 10279 lt_prog_compiler_wl='-Wl,' 10280 lt_prog_compiler_pic='-KPIC' 10281 lt_prog_compiler_static='-Bstatic' 10282 ;; 10283 10284 sysv4*MP*) 10285 if test -d /usr/nec; then 10286 lt_prog_compiler_pic='-Kconform_pic' 10287 lt_prog_compiler_static='-Bstatic' 10288 fi 10289 ;; 10290 10291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10292 lt_prog_compiler_wl='-Wl,' 10293 lt_prog_compiler_pic='-KPIC' 10294 lt_prog_compiler_static='-Bstatic' 10295 ;; 10296 10297 unicos*) 10298 lt_prog_compiler_wl='-Wl,' 10299 lt_prog_compiler_can_build_shared=no 10300 ;; 10301 10302 uts4*) 10303 lt_prog_compiler_pic='-pic' 10304 lt_prog_compiler_static='-Bstatic' 10305 ;; 10306 10307 *) 10308 lt_prog_compiler_can_build_shared=no 10309 ;; 10310 esac 10311 fi 10312 10313case $host_os in 10314 # For platforms that do not support PIC, -DPIC is meaningless: 10315 *djgpp*) 10316 lt_prog_compiler_pic= 10317 ;; 10318 *) 10319 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10320 ;; 10321esac 10322 10323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10324printf %s "checking for $compiler option to produce PIC... " >&6; } 10325if test ${lt_cv_prog_compiler_pic+y} 10326then : 10327 printf %s "(cached) " >&6 10328else $as_nop 10329 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10330fi 10331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10332printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10333lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10334 10335# 10336# Check to make sure the PIC flag actually works. 10337# 10338if test -n "$lt_prog_compiler_pic"; then 10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10340printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10341if test ${lt_cv_prog_compiler_pic_works+y} 10342then : 10343 printf %s "(cached) " >&6 10344else $as_nop 10345 lt_cv_prog_compiler_pic_works=no 10346 ac_outfile=conftest.$ac_objext 10347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10348 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10349 # Insert the option either (1) after the last *FLAGS variable, or 10350 # (2) before a word containing "conftest.", or (3) at the end. 10351 # Note that $ac_compile itself does not contain backslashes and begins 10352 # with a dollar sign (not a hyphen), so the echo should work correctly. 10353 # The option is referenced via a variable to avoid confusing sed. 10354 lt_compile=`echo "$ac_compile" | $SED \ 10355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10357 -e 's:$: $lt_compiler_flag:'` 10358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10359 (eval "$lt_compile" 2>conftest.err) 10360 ac_status=$? 10361 cat conftest.err >&5 10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10363 if (exit $ac_status) && test -s "$ac_outfile"; then 10364 # The compiler can only warn and ignore the option if not recognized 10365 # So say no if there are warnings other than the usual output. 10366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10369 lt_cv_prog_compiler_pic_works=yes 10370 fi 10371 fi 10372 $RM conftest* 10373 10374fi 10375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10376printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10377 10378if test yes = "$lt_cv_prog_compiler_pic_works"; then 10379 case $lt_prog_compiler_pic in 10380 "" | " "*) ;; 10381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10382 esac 10383else 10384 lt_prog_compiler_pic= 10385 lt_prog_compiler_can_build_shared=no 10386fi 10387 10388fi 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400# 10401# Check to make sure the static flag actually works. 10402# 10403wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10405printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10406if test ${lt_cv_prog_compiler_static_works+y} 10407then : 10408 printf %s "(cached) " >&6 10409else $as_nop 10410 lt_cv_prog_compiler_static_works=no 10411 save_LDFLAGS=$LDFLAGS 10412 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10413 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10415 # The linker can only warn and ignore the option if not recognized 10416 # So say no if there are warnings 10417 if test -s conftest.err; then 10418 # Append any errors to the config.log. 10419 cat conftest.err 1>&5 10420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10422 if diff conftest.exp conftest.er2 >/dev/null; then 10423 lt_cv_prog_compiler_static_works=yes 10424 fi 10425 else 10426 lt_cv_prog_compiler_static_works=yes 10427 fi 10428 fi 10429 $RM -r conftest* 10430 LDFLAGS=$save_LDFLAGS 10431 10432fi 10433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10434printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10435 10436if test yes = "$lt_cv_prog_compiler_static_works"; then 10437 : 10438else 10439 lt_prog_compiler_static= 10440fi 10441 10442 10443 10444 10445 10446 10447 10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10449printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10450if test ${lt_cv_prog_compiler_c_o+y} 10451then : 10452 printf %s "(cached) " >&6 10453else $as_nop 10454 lt_cv_prog_compiler_c_o=no 10455 $RM -r conftest 2>/dev/null 10456 mkdir conftest 10457 cd conftest 10458 mkdir out 10459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10460 10461 lt_compiler_flag="-o out/conftest2.$ac_objext" 10462 # Insert the option either (1) after the last *FLAGS variable, or 10463 # (2) before a word containing "conftest.", or (3) at the end. 10464 # Note that $ac_compile itself does not contain backslashes and begins 10465 # with a dollar sign (not a hyphen), so the echo should work correctly. 10466 lt_compile=`echo "$ac_compile" | $SED \ 10467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10469 -e 's:$: $lt_compiler_flag:'` 10470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10471 (eval "$lt_compile" 2>out/conftest.err) 10472 ac_status=$? 10473 cat out/conftest.err >&5 10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10476 then 10477 # The compiler can only warn and ignore the option if not recognized 10478 # So say no if there are warnings 10479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10482 lt_cv_prog_compiler_c_o=yes 10483 fi 10484 fi 10485 chmod u+w . 2>&5 10486 $RM conftest* 10487 # SGI C++ compiler will create directory out/ii_files/ for 10488 # template instantiation 10489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10490 $RM out/* && rmdir out 10491 cd .. 10492 $RM -r conftest 10493 $RM conftest* 10494 10495fi 10496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10497printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10498 10499 10500 10501 10502 10503 10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10505printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10506if test ${lt_cv_prog_compiler_c_o+y} 10507then : 10508 printf %s "(cached) " >&6 10509else $as_nop 10510 lt_cv_prog_compiler_c_o=no 10511 $RM -r conftest 2>/dev/null 10512 mkdir conftest 10513 cd conftest 10514 mkdir out 10515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10516 10517 lt_compiler_flag="-o out/conftest2.$ac_objext" 10518 # Insert the option either (1) after the last *FLAGS variable, or 10519 # (2) before a word containing "conftest.", or (3) at the end. 10520 # Note that $ac_compile itself does not contain backslashes and begins 10521 # with a dollar sign (not a hyphen), so the echo should work correctly. 10522 lt_compile=`echo "$ac_compile" | $SED \ 10523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10525 -e 's:$: $lt_compiler_flag:'` 10526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10527 (eval "$lt_compile" 2>out/conftest.err) 10528 ac_status=$? 10529 cat out/conftest.err >&5 10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10531 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10532 then 10533 # The compiler can only warn and ignore the option if not recognized 10534 # So say no if there are warnings 10535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10538 lt_cv_prog_compiler_c_o=yes 10539 fi 10540 fi 10541 chmod u+w . 2>&5 10542 $RM conftest* 10543 # SGI C++ compiler will create directory out/ii_files/ for 10544 # template instantiation 10545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10546 $RM out/* && rmdir out 10547 cd .. 10548 $RM -r conftest 10549 $RM conftest* 10550 10551fi 10552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10553printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10554 10555 10556 10557 10558hard_links=nottested 10559if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10560 # do not overwrite the value of need_locks provided by the user 10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10562printf %s "checking if we can lock with hard links... " >&6; } 10563 hard_links=yes 10564 $RM conftest* 10565 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10566 touch conftest.a 10567 ln conftest.a conftest.b 2>&5 || hard_links=no 10568 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10570printf "%s\n" "$hard_links" >&6; } 10571 if test no = "$hard_links"; then 10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10573printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10574 need_locks=warn 10575 fi 10576else 10577 need_locks=no 10578fi 10579 10580 10581 10582 10583 10584 10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10586printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10587 10588 runpath_var= 10589 allow_undefined_flag= 10590 always_export_symbols=no 10591 archive_cmds= 10592 archive_expsym_cmds= 10593 compiler_needs_object=no 10594 enable_shared_with_static_runtimes=no 10595 export_dynamic_flag_spec= 10596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10597 hardcode_automatic=no 10598 hardcode_direct=no 10599 hardcode_direct_absolute=no 10600 hardcode_libdir_flag_spec= 10601 hardcode_libdir_separator= 10602 hardcode_minus_L=no 10603 hardcode_shlibpath_var=unsupported 10604 inherit_rpath=no 10605 link_all_deplibs=unknown 10606 module_cmds= 10607 module_expsym_cmds= 10608 old_archive_from_new_cmds= 10609 old_archive_from_expsyms_cmds= 10610 thread_safe_flag_spec= 10611 whole_archive_flag_spec= 10612 # include_expsyms should be a list of space-separated symbols to be *always* 10613 # included in the symbol list 10614 include_expsyms= 10615 # exclude_expsyms can be an extended regexp of symbols to exclude 10616 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10617 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10618 # as well as any symbol that contains 'd'. 10619 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10621 # platforms (ab)use it in PIC code, but their linkers get confused if 10622 # the symbol is explicitly referenced. Since portable code cannot 10623 # rely on this symbol name, it's probably fine to never include it in 10624 # preloaded symbol tables. 10625 # Exclude shared library initialization/finalization symbols. 10626 extract_expsyms_cmds= 10627 10628 case $host_os in 10629 cygwin* | mingw* | pw32* | cegcc*) 10630 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10631 # When not using gcc, we currently assume that we are using 10632 # Microsoft Visual C++ or Intel C++ Compiler. 10633 if test yes != "$GCC"; then 10634 with_gnu_ld=no 10635 fi 10636 ;; 10637 interix*) 10638 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10639 with_gnu_ld=yes 10640 ;; 10641 openbsd* | bitrig*) 10642 with_gnu_ld=no 10643 ;; 10644 esac 10645 10646 ld_shlibs=yes 10647 10648 # On some targets, GNU ld is compatible enough with the native linker 10649 # that we're better off using the native interface for both. 10650 lt_use_gnu_ld_interface=no 10651 if test yes = "$with_gnu_ld"; then 10652 case $host_os in 10653 aix*) 10654 # The AIX port of GNU ld has always aspired to compatibility 10655 # with the native linker. However, as the warning in the GNU ld 10656 # block says, versions before 2.19.5* couldn't really create working 10657 # shared libraries, regardless of the interface used. 10658 case `$LD -v 2>&1` in 10659 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10660 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10661 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10662 *) 10663 lt_use_gnu_ld_interface=yes 10664 ;; 10665 esac 10666 ;; 10667 *) 10668 lt_use_gnu_ld_interface=yes 10669 ;; 10670 esac 10671 fi 10672 10673 if test yes = "$lt_use_gnu_ld_interface"; then 10674 # If archive_cmds runs LD, not CC, wlarc should be empty 10675 wlarc='$wl' 10676 10677 # Set some defaults for GNU ld with shared library support. These 10678 # are reset later if shared libraries are not supported. Putting them 10679 # here allows them to be overridden if necessary. 10680 runpath_var=LD_RUN_PATH 10681 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10682 export_dynamic_flag_spec='$wl--export-dynamic' 10683 # ancient GNU ld didn't support --whole-archive et. al. 10684 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10685 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10686 else 10687 whole_archive_flag_spec= 10688 fi 10689 supports_anon_versioning=no 10690 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10691 *GNU\ gold*) supports_anon_versioning=yes ;; 10692 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10693 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10694 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10695 *\ 2.11.*) ;; # other 2.11 versions 10696 *) supports_anon_versioning=yes ;; 10697 esac 10698 10699 # See if GNU ld supports shared libraries. 10700 case $host_os in 10701 aix[3-9]*) 10702 # On AIX/PPC, the GNU linker is very broken 10703 if test ia64 != "$host_cpu"; then 10704 ld_shlibs=no 10705 cat <<_LT_EOF 1>&2 10706 10707*** Warning: the GNU linker, at least up to release 2.19, is reported 10708*** to be unable to reliably create shared libraries on AIX. 10709*** Therefore, libtool is disabling shared libraries support. If you 10710*** really care for shared libraries, you may want to install binutils 10711*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10712*** You will then need to restart the configuration process. 10713 10714_LT_EOF 10715 fi 10716 ;; 10717 10718 amigaos*) 10719 case $host_cpu in 10720 powerpc) 10721 # see comment about AmigaOS4 .so support 10722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10723 archive_expsym_cmds='' 10724 ;; 10725 m68k) 10726 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)' 10727 hardcode_libdir_flag_spec='-L$libdir' 10728 hardcode_minus_L=yes 10729 ;; 10730 esac 10731 ;; 10732 10733 beos*) 10734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10735 allow_undefined_flag=unsupported 10736 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10737 # support --undefined. This deserves some investigation. FIXME 10738 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10739 else 10740 ld_shlibs=no 10741 fi 10742 ;; 10743 10744 cygwin* | mingw* | pw32* | cegcc*) 10745 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10746 # as there is no search path for DLLs. 10747 hardcode_libdir_flag_spec='-L$libdir' 10748 export_dynamic_flag_spec='$wl--export-all-symbols' 10749 allow_undefined_flag=unsupported 10750 always_export_symbols=no 10751 enable_shared_with_static_runtimes=yes 10752 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' 10753 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10754 10755 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10757 # If the export-symbols file already is a .def file, use it as 10758 # is; otherwise, prepend EXPORTS... 10759 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10760 cp $export_symbols $output_objdir/$soname.def; 10761 else 10762 echo EXPORTS > $output_objdir/$soname.def; 10763 cat $export_symbols >> $output_objdir/$soname.def; 10764 fi~ 10765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10766 else 10767 ld_shlibs=no 10768 fi 10769 ;; 10770 10771 haiku*) 10772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10773 link_all_deplibs=yes 10774 ;; 10775 10776 os2*) 10777 hardcode_libdir_flag_spec='-L$libdir' 10778 hardcode_minus_L=yes 10779 allow_undefined_flag=unsupported 10780 shrext_cmds=.dll 10781 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10782 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10783 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10784 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10785 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10786 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10787 emximp -o $lib $output_objdir/$libname.def' 10788 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10789 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10790 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10791 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10792 prefix_cmds="$SED"~ 10793 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10794 prefix_cmds="$prefix_cmds -e 1d"; 10795 fi~ 10796 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10797 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10799 emximp -o $lib $output_objdir/$libname.def' 10800 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10801 enable_shared_with_static_runtimes=yes 10802 file_list_spec='@' 10803 ;; 10804 10805 interix[3-9]*) 10806 hardcode_direct=no 10807 hardcode_shlibpath_var=no 10808 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10809 export_dynamic_flag_spec='$wl-E' 10810 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10811 # Instead, shared libraries are loaded at an image base (0x10000000 by 10812 # default) and relocated if they conflict, which is a slow very memory 10813 # consuming and fragmenting process. To avoid this, we pick a random, 10814 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10815 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10816 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10817 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' 10818 ;; 10819 10820 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10821 tmp_diet=no 10822 if test linux-dietlibc = "$host_os"; then 10823 case $cc_basename in 10824 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10825 esac 10826 fi 10827 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10828 && test no = "$tmp_diet" 10829 then 10830 tmp_addflag=' $pic_flag' 10831 tmp_sharedflag='-shared' 10832 case $cc_basename,$host_cpu in 10833 pgcc*) # Portland Group C compiler 10834 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' 10835 tmp_addflag=' $pic_flag' 10836 ;; 10837 pgf77* | pgf90* | pgf95* | pgfortran*) 10838 # Portland Group f77 and f90 compilers 10839 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' 10840 tmp_addflag=' $pic_flag -Mnomain' ;; 10841 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10842 tmp_addflag=' -i_dynamic' ;; 10843 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10844 tmp_addflag=' -i_dynamic -nofor_main' ;; 10845 ifc* | ifort*) # Intel Fortran compiler 10846 tmp_addflag=' -nofor_main' ;; 10847 lf95*) # Lahey Fortran 8.1 10848 whole_archive_flag_spec= 10849 tmp_sharedflag='--shared' ;; 10850 nagfor*) # NAGFOR 5.3 10851 tmp_sharedflag='-Wl,-shared' ;; 10852 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10853 tmp_sharedflag='-qmkshrobj' 10854 tmp_addflag= ;; 10855 nvcc*) # Cuda Compiler Driver 2.2 10856 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' 10857 compiler_needs_object=yes 10858 ;; 10859 esac 10860 case `$CC -V 2>&1 | $SED 5q` in 10861 *Sun\ C*) # Sun C 5.9 10862 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' 10863 compiler_needs_object=yes 10864 tmp_sharedflag='-G' ;; 10865 *Sun\ F*) # Sun Fortran 8.3 10866 tmp_sharedflag='-G' ;; 10867 esac 10868 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10869 10870 if test yes = "$supports_anon_versioning"; then 10871 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10872 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10873 echo "local: *; };" >> $output_objdir/$libname.ver~ 10874 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10875 fi 10876 10877 case $cc_basename in 10878 tcc*) 10879 export_dynamic_flag_spec='-rdynamic' 10880 ;; 10881 xlf* | bgf* | bgxlf* | mpixlf*) 10882 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10883 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10884 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10885 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10886 if test yes = "$supports_anon_versioning"; then 10887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10888 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10889 echo "local: *; };" >> $output_objdir/$libname.ver~ 10890 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10891 fi 10892 ;; 10893 esac 10894 else 10895 ld_shlibs=no 10896 fi 10897 ;; 10898 10899 netbsd*) 10900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10902 wlarc= 10903 else 10904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10906 fi 10907 ;; 10908 10909 solaris*) 10910 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10911 ld_shlibs=no 10912 cat <<_LT_EOF 1>&2 10913 10914*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10915*** create shared libraries on Solaris systems. Therefore, libtool 10916*** is disabling shared libraries support. We urge you to upgrade GNU 10917*** binutils to release 2.9.1 or newer. Another option is to modify 10918*** your PATH or compiler configuration so that the native linker is 10919*** used, and then restart. 10920 10921_LT_EOF 10922 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10924 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10925 else 10926 ld_shlibs=no 10927 fi 10928 ;; 10929 10930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10931 case `$LD -v 2>&1` in 10932 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10933 ld_shlibs=no 10934 cat <<_LT_EOF 1>&2 10935 10936*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10937*** reliably create shared libraries on SCO systems. Therefore, libtool 10938*** is disabling shared libraries support. We urge you to upgrade GNU 10939*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10940*** your PATH or compiler configuration so that the native linker is 10941*** used, and then restart. 10942 10943_LT_EOF 10944 ;; 10945 *) 10946 # For security reasons, it is highly recommended that you always 10947 # use absolute paths for naming shared libraries, and exclude the 10948 # DT_RUNPATH tag from executables and libraries. But doing so 10949 # requires that you compile everything twice, which is a pain. 10950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10951 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10954 else 10955 ld_shlibs=no 10956 fi 10957 ;; 10958 esac 10959 ;; 10960 10961 sunos4*) 10962 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10963 wlarc= 10964 hardcode_direct=yes 10965 hardcode_shlibpath_var=no 10966 ;; 10967 10968 *) 10969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10971 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10972 else 10973 ld_shlibs=no 10974 fi 10975 ;; 10976 esac 10977 10978 if test no = "$ld_shlibs"; then 10979 runpath_var= 10980 hardcode_libdir_flag_spec= 10981 export_dynamic_flag_spec= 10982 whole_archive_flag_spec= 10983 fi 10984 else 10985 # PORTME fill in a description of your system's linker (not GNU ld) 10986 case $host_os in 10987 aix3*) 10988 allow_undefined_flag=unsupported 10989 always_export_symbols=yes 10990 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' 10991 # Note: this linker hardcodes the directories in LIBPATH if there 10992 # are no directories specified by -L. 10993 hardcode_minus_L=yes 10994 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10995 # Neither direct hardcoding nor static linking is supported with a 10996 # broken collect2. 10997 hardcode_direct=unsupported 10998 fi 10999 ;; 11000 11001 aix[4-9]*) 11002 if test ia64 = "$host_cpu"; then 11003 # On IA64, the linker does run time linking by default, so we don't 11004 # have to do anything special. 11005 aix_use_runtimelinking=no 11006 exp_sym_flag='-Bexport' 11007 no_entry_flag= 11008 else 11009 # If we're using GNU nm, then we don't want the "-C" option. 11010 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11011 # Without the "-l" option, or with the "-B" option, AIX nm treats 11012 # weak defined symbols like other global defined symbols, whereas 11013 # GNU nm marks them as "W". 11014 # While the 'weak' keyword is ignored in the Export File, we need 11015 # it in the Import File for the 'aix-soname' feature, so we have 11016 # to replace the "-B" option with "-P" for AIX nm. 11017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11018 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' 11019 else 11020 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' 11021 fi 11022 aix_use_runtimelinking=no 11023 11024 # Test if we are trying to use run time linking or normal 11025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11026 # have runtime linking enabled, and use it for executables. 11027 # For shared libraries, we enable/disable runtime linking 11028 # depending on the kind of the shared library created - 11029 # when "with_aix_soname,aix_use_runtimelinking" is: 11030 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11031 # "aix,yes" lib.so shared, rtl:yes, for executables 11032 # lib.a static archive 11033 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11034 # lib.a(lib.so.V) shared, rtl:no, for executables 11035 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11036 # lib.a(lib.so.V) shared, rtl:no 11037 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11038 # lib.a static archive 11039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11040 for ld_flag in $LDFLAGS; do 11041 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11042 aix_use_runtimelinking=yes 11043 break 11044 fi 11045 done 11046 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11047 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11048 # so we don't have lib.a shared libs to link our executables. 11049 # We have to force runtime linking in this case. 11050 aix_use_runtimelinking=yes 11051 LDFLAGS="$LDFLAGS -Wl,-brtl" 11052 fi 11053 ;; 11054 esac 11055 11056 exp_sym_flag='-bexport' 11057 no_entry_flag='-bnoentry' 11058 fi 11059 11060 # When large executables or shared objects are built, AIX ld can 11061 # have problems creating the table of contents. If linking a library 11062 # or program results in "error TOC overflow" add -mminimal-toc to 11063 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11064 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11065 11066 archive_cmds='' 11067 hardcode_direct=yes 11068 hardcode_direct_absolute=yes 11069 hardcode_libdir_separator=':' 11070 link_all_deplibs=yes 11071 file_list_spec='$wl-f,' 11072 case $with_aix_soname,$aix_use_runtimelinking in 11073 aix,*) ;; # traditional, no import file 11074 svr4,* | *,yes) # use import file 11075 # The Import File defines what to hardcode. 11076 hardcode_direct=no 11077 hardcode_direct_absolute=no 11078 ;; 11079 esac 11080 11081 if test yes = "$GCC"; then 11082 case $host_os in aix4.[012]|aix4.[012].*) 11083 # We only want to do this on AIX 4.2 and lower, the check 11084 # below for broken collect2 doesn't work under 4.3+ 11085 collect2name=`$CC -print-prog-name=collect2` 11086 if test -f "$collect2name" && 11087 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11088 then 11089 # We have reworked collect2 11090 : 11091 else 11092 # We have old collect2 11093 hardcode_direct=unsupported 11094 # It fails to find uninstalled libraries when the uninstalled 11095 # path is not listed in the libpath. Setting hardcode_minus_L 11096 # to unsupported forces relinking 11097 hardcode_minus_L=yes 11098 hardcode_libdir_flag_spec='-L$libdir' 11099 hardcode_libdir_separator= 11100 fi 11101 ;; 11102 esac 11103 shared_flag='-shared' 11104 if test yes = "$aix_use_runtimelinking"; then 11105 shared_flag="$shared_flag "'$wl-G' 11106 fi 11107 # Need to ensure runtime linking is disabled for the traditional 11108 # shared library, or the linker may eventually find shared libraries 11109 # /with/ Import File - we do not want to mix them. 11110 shared_flag_aix='-shared' 11111 shared_flag_svr4='-shared $wl-G' 11112 else 11113 # not using gcc 11114 if test ia64 = "$host_cpu"; then 11115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11116 # chokes on -Wl,-G. The following line is correct: 11117 shared_flag='-G' 11118 else 11119 if test yes = "$aix_use_runtimelinking"; then 11120 shared_flag='$wl-G' 11121 else 11122 shared_flag='$wl-bM:SRE' 11123 fi 11124 shared_flag_aix='$wl-bM:SRE' 11125 shared_flag_svr4='$wl-G' 11126 fi 11127 fi 11128 11129 export_dynamic_flag_spec='$wl-bexpall' 11130 # It seems that -bexpall does not export symbols beginning with 11131 # underscore (_), so it is better to generate a list of symbols to export. 11132 always_export_symbols=yes 11133 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11134 # Warning - without using the other runtime loading flags (-brtl), 11135 # -berok will link without error, but may produce a broken library. 11136 allow_undefined_flag='-berok' 11137 # Determine the default libpath from the value encoded in an 11138 # empty executable. 11139 if test set = "${lt_cv_aix_libpath+set}"; then 11140 aix_libpath=$lt_cv_aix_libpath 11141else 11142 if test ${lt_cv_aix_libpath_+y} 11143then : 11144 printf %s "(cached) " >&6 11145else $as_nop 11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11147/* end confdefs.h. */ 11148 11149int 11150main (void) 11151{ 11152 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157if ac_fn_c_try_link "$LINENO" 11158then : 11159 11160 lt_aix_libpath_sed=' 11161 /Import File Strings/,/^$/ { 11162 /^0/ { 11163 s/^0 *\([^ ]*\) *$/\1/ 11164 p 11165 } 11166 }' 11167 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11168 # Check for a 64-bit object if we didn't find anything. 11169 if test -z "$lt_cv_aix_libpath_"; then 11170 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11171 fi 11172fi 11173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11174 conftest$ac_exeext conftest.$ac_ext 11175 if test -z "$lt_cv_aix_libpath_"; then 11176 lt_cv_aix_libpath_=/usr/lib:/lib 11177 fi 11178 11179fi 11180 11181 aix_libpath=$lt_cv_aix_libpath_ 11182fi 11183 11184 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11185 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 11186 else 11187 if test ia64 = "$host_cpu"; then 11188 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11189 allow_undefined_flag="-z nodefs" 11190 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" 11191 else 11192 # Determine the default libpath from the value encoded in an 11193 # empty executable. 11194 if test set = "${lt_cv_aix_libpath+set}"; then 11195 aix_libpath=$lt_cv_aix_libpath 11196else 11197 if test ${lt_cv_aix_libpath_+y} 11198then : 11199 printf %s "(cached) " >&6 11200else $as_nop 11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11202/* end confdefs.h. */ 11203 11204int 11205main (void) 11206{ 11207 11208 ; 11209 return 0; 11210} 11211_ACEOF 11212if ac_fn_c_try_link "$LINENO" 11213then : 11214 11215 lt_aix_libpath_sed=' 11216 /Import File Strings/,/^$/ { 11217 /^0/ { 11218 s/^0 *\([^ ]*\) *$/\1/ 11219 p 11220 } 11221 }' 11222 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11223 # Check for a 64-bit object if we didn't find anything. 11224 if test -z "$lt_cv_aix_libpath_"; then 11225 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11226 fi 11227fi 11228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11229 conftest$ac_exeext conftest.$ac_ext 11230 if test -z "$lt_cv_aix_libpath_"; then 11231 lt_cv_aix_libpath_=/usr/lib:/lib 11232 fi 11233 11234fi 11235 11236 aix_libpath=$lt_cv_aix_libpath_ 11237fi 11238 11239 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11240 # Warning - without using the other run time loading flags, 11241 # -berok will link without error, but may produce a broken library. 11242 no_undefined_flag=' $wl-bernotok' 11243 allow_undefined_flag=' $wl-berok' 11244 if test yes = "$with_gnu_ld"; then 11245 # We only use this code for GNU lds that support --whole-archive. 11246 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11247 else 11248 # Exported symbols can be pulled into shared objects from archives 11249 whole_archive_flag_spec='$convenience' 11250 fi 11251 archive_cmds_need_lc=yes 11252 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11253 # -brtl affects multiple linker settings, -berok does not and is overridden later 11254 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11255 if test svr4 != "$with_aix_soname"; then 11256 # This is similar to how AIX traditionally builds its shared libraries. 11257 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' 11258 fi 11259 if test aix != "$with_aix_soname"; then 11260 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' 11261 else 11262 # used by -dlpreopen to get the symbols 11263 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11264 fi 11265 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11266 fi 11267 fi 11268 ;; 11269 11270 amigaos*) 11271 case $host_cpu in 11272 powerpc) 11273 # see comment about AmigaOS4 .so support 11274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11275 archive_expsym_cmds='' 11276 ;; 11277 m68k) 11278 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)' 11279 hardcode_libdir_flag_spec='-L$libdir' 11280 hardcode_minus_L=yes 11281 ;; 11282 esac 11283 ;; 11284 11285 bsdi[45]*) 11286 export_dynamic_flag_spec=-rdynamic 11287 ;; 11288 11289 cygwin* | mingw* | pw32* | cegcc*) 11290 # When not using gcc, we currently assume that we are using 11291 # Microsoft Visual C++ or Intel C++ Compiler. 11292 # hardcode_libdir_flag_spec is actually meaningless, as there is 11293 # no search path for DLLs. 11294 case $cc_basename in 11295 cl* | icl*) 11296 # Native MSVC or ICC 11297 hardcode_libdir_flag_spec=' ' 11298 allow_undefined_flag=unsupported 11299 always_export_symbols=yes 11300 file_list_spec='@' 11301 # Tell ltmain to make .lib files, not .a files. 11302 libext=lib 11303 # Tell ltmain to make .dll files, not .so files. 11304 shrext_cmds=.dll 11305 # FIXME: Setting linknames here is a bad hack. 11306 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11307 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11308 cp "$export_symbols" "$output_objdir/$soname.def"; 11309 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11310 else 11311 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11312 fi~ 11313 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11314 linknames=' 11315 # The linker will not automatically build a static lib if we build a DLL. 11316 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11317 enable_shared_with_static_runtimes=yes 11318 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11320 # Don't use ranlib 11321 old_postinstall_cmds='chmod 644 $oldlib' 11322 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11323 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11324 case $lt_outputfile in 11325 *.exe|*.EXE) ;; 11326 *) 11327 lt_outputfile=$lt_outputfile.exe 11328 lt_tool_outputfile=$lt_tool_outputfile.exe 11329 ;; 11330 esac~ 11331 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11332 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11333 $RM "$lt_outputfile.manifest"; 11334 fi' 11335 ;; 11336 *) 11337 # Assume MSVC and ICC wrapper 11338 hardcode_libdir_flag_spec=' ' 11339 allow_undefined_flag=unsupported 11340 # Tell ltmain to make .lib files, not .a files. 11341 libext=lib 11342 # Tell ltmain to make .dll files, not .so files. 11343 shrext_cmds=.dll 11344 # FIXME: Setting linknames here is a bad hack. 11345 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11346 # The linker will automatically build a .lib file if we build a DLL. 11347 old_archive_from_new_cmds='true' 11348 # FIXME: Should let the user specify the lib program. 11349 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11350 enable_shared_with_static_runtimes=yes 11351 ;; 11352 esac 11353 ;; 11354 11355 darwin* | rhapsody*) 11356 11357 11358 archive_cmds_need_lc=no 11359 hardcode_direct=no 11360 hardcode_automatic=yes 11361 hardcode_shlibpath_var=unsupported 11362 if test yes = "$lt_cv_ld_force_load"; then 11363 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\"`' 11364 11365 else 11366 whole_archive_flag_spec='' 11367 fi 11368 link_all_deplibs=yes 11369 allow_undefined_flag=$_lt_dar_allow_undefined 11370 case $cc_basename in 11371 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11372 *) _lt_dar_can_shared=$GCC ;; 11373 esac 11374 if test yes = "$_lt_dar_can_shared"; then 11375 output_verbose_link_cmd=func_echo_all 11376 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11377 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11378 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" 11379 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" 11380 11381 else 11382 ld_shlibs=no 11383 fi 11384 11385 ;; 11386 11387 dgux*) 11388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11389 hardcode_libdir_flag_spec='-L$libdir' 11390 hardcode_shlibpath_var=no 11391 ;; 11392 11393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11394 # support. Future versions do this automatically, but an explicit c++rt0.o 11395 # does not break anything, and helps significantly (at the cost of a little 11396 # extra space). 11397 freebsd2.2*) 11398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11399 hardcode_libdir_flag_spec='-R$libdir' 11400 hardcode_direct=yes 11401 hardcode_shlibpath_var=no 11402 ;; 11403 11404 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11405 freebsd2.*) 11406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11407 hardcode_direct=yes 11408 hardcode_minus_L=yes 11409 hardcode_shlibpath_var=no 11410 ;; 11411 11412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11413 freebsd* | dragonfly* | midnightbsd*) 11414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11415 hardcode_libdir_flag_spec='-R$libdir' 11416 hardcode_direct=yes 11417 hardcode_shlibpath_var=no 11418 ;; 11419 11420 hpux9*) 11421 if test yes = "$GCC"; then 11422 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' 11423 else 11424 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' 11425 fi 11426 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11427 hardcode_libdir_separator=: 11428 hardcode_direct=yes 11429 11430 # hardcode_minus_L: Not really in the search PATH, 11431 # but as the default location of the library. 11432 hardcode_minus_L=yes 11433 export_dynamic_flag_spec='$wl-E' 11434 ;; 11435 11436 hpux10*) 11437 if test yes,no = "$GCC,$with_gnu_ld"; then 11438 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11439 else 11440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11441 fi 11442 if test no = "$with_gnu_ld"; then 11443 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11444 hardcode_libdir_separator=: 11445 hardcode_direct=yes 11446 hardcode_direct_absolute=yes 11447 export_dynamic_flag_spec='$wl-E' 11448 # hardcode_minus_L: Not really in the search PATH, 11449 # but as the default location of the library. 11450 hardcode_minus_L=yes 11451 fi 11452 ;; 11453 11454 hpux11*) 11455 if test yes,no = "$GCC,$with_gnu_ld"; then 11456 case $host_cpu in 11457 hppa*64*) 11458 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11459 ;; 11460 ia64*) 11461 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11462 ;; 11463 *) 11464 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11465 ;; 11466 esac 11467 else 11468 case $host_cpu in 11469 hppa*64*) 11470 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11471 ;; 11472 ia64*) 11473 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11474 ;; 11475 *) 11476 11477 # Older versions of the 11.00 compiler do not understand -b yet 11478 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11480printf %s "checking if $CC understands -b... " >&6; } 11481if test ${lt_cv_prog_compiler__b+y} 11482then : 11483 printf %s "(cached) " >&6 11484else $as_nop 11485 lt_cv_prog_compiler__b=no 11486 save_LDFLAGS=$LDFLAGS 11487 LDFLAGS="$LDFLAGS -b" 11488 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11490 # The linker can only warn and ignore the option if not recognized 11491 # So say no if there are warnings 11492 if test -s conftest.err; then 11493 # Append any errors to the config.log. 11494 cat conftest.err 1>&5 11495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11497 if diff conftest.exp conftest.er2 >/dev/null; then 11498 lt_cv_prog_compiler__b=yes 11499 fi 11500 else 11501 lt_cv_prog_compiler__b=yes 11502 fi 11503 fi 11504 $RM -r conftest* 11505 LDFLAGS=$save_LDFLAGS 11506 11507fi 11508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11509printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11510 11511if test yes = "$lt_cv_prog_compiler__b"; then 11512 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11513else 11514 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11515fi 11516 11517 ;; 11518 esac 11519 fi 11520 if test no = "$with_gnu_ld"; then 11521 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11522 hardcode_libdir_separator=: 11523 11524 case $host_cpu in 11525 hppa*64*|ia64*) 11526 hardcode_direct=no 11527 hardcode_shlibpath_var=no 11528 ;; 11529 *) 11530 hardcode_direct=yes 11531 hardcode_direct_absolute=yes 11532 export_dynamic_flag_spec='$wl-E' 11533 11534 # hardcode_minus_L: Not really in the search PATH, 11535 # but as the default location of the library. 11536 hardcode_minus_L=yes 11537 ;; 11538 esac 11539 fi 11540 ;; 11541 11542 irix5* | irix6* | nonstopux*) 11543 if test yes = "$GCC"; then 11544 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' 11545 # Try to use the -exported_symbol ld option, if it does not 11546 # work, assume that -exports_file does not work either and 11547 # implicitly export all symbols. 11548 # This should be the same for all languages, so no per-tag cache variable. 11549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11550printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11551if test ${lt_cv_irix_exported_symbol+y} 11552then : 11553 printf %s "(cached) " >&6 11554else $as_nop 11555 save_LDFLAGS=$LDFLAGS 11556 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11558/* end confdefs.h. */ 11559int foo (void) { return 0; } 11560_ACEOF 11561if ac_fn_c_try_link "$LINENO" 11562then : 11563 lt_cv_irix_exported_symbol=yes 11564else $as_nop 11565 lt_cv_irix_exported_symbol=no 11566fi 11567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11568 conftest$ac_exeext conftest.$ac_ext 11569 LDFLAGS=$save_LDFLAGS 11570fi 11571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11572printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11573 if test yes = "$lt_cv_irix_exported_symbol"; then 11574 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' 11575 fi 11576 else 11577 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' 11578 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' 11579 fi 11580 archive_cmds_need_lc='no' 11581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11582 hardcode_libdir_separator=: 11583 inherit_rpath=yes 11584 link_all_deplibs=yes 11585 ;; 11586 11587 linux*) 11588 case $cc_basename in 11589 tcc*) 11590 # Fabrice Bellard et al's Tiny C Compiler 11591 ld_shlibs=yes 11592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11593 ;; 11594 esac 11595 ;; 11596 11597 netbsd*) 11598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11600 else 11601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11602 fi 11603 hardcode_libdir_flag_spec='-R$libdir' 11604 hardcode_direct=yes 11605 hardcode_shlibpath_var=no 11606 ;; 11607 11608 newsos6) 11609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11610 hardcode_direct=yes 11611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11612 hardcode_libdir_separator=: 11613 hardcode_shlibpath_var=no 11614 ;; 11615 11616 *nto* | *qnx*) 11617 ;; 11618 11619 openbsd* | bitrig*) 11620 if test -f /usr/libexec/ld.so; then 11621 hardcode_direct=yes 11622 hardcode_shlibpath_var=no 11623 hardcode_direct_absolute=yes 11624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11627 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11628 export_dynamic_flag_spec='$wl-E' 11629 else 11630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11631 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11632 fi 11633 else 11634 ld_shlibs=no 11635 fi 11636 ;; 11637 11638 os2*) 11639 hardcode_libdir_flag_spec='-L$libdir' 11640 hardcode_minus_L=yes 11641 allow_undefined_flag=unsupported 11642 shrext_cmds=.dll 11643 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11644 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11645 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11646 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11647 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11648 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11649 emximp -o $lib $output_objdir/$libname.def' 11650 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11651 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11652 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11653 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11654 prefix_cmds="$SED"~ 11655 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11656 prefix_cmds="$prefix_cmds -e 1d"; 11657 fi~ 11658 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11659 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11660 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11661 emximp -o $lib $output_objdir/$libname.def' 11662 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11663 enable_shared_with_static_runtimes=yes 11664 file_list_spec='@' 11665 ;; 11666 11667 osf3*) 11668 if test yes = "$GCC"; then 11669 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11670 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' 11671 else 11672 allow_undefined_flag=' -expect_unresolved \*' 11673 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' 11674 fi 11675 archive_cmds_need_lc='no' 11676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11677 hardcode_libdir_separator=: 11678 ;; 11679 11680 osf4* | osf5*) # as osf3* with the addition of -msym flag 11681 if test yes = "$GCC"; then 11682 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11683 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' 11684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11685 else 11686 allow_undefined_flag=' -expect_unresolved \*' 11687 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' 11688 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~ 11689 $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' 11690 11691 # Both c and cxx compiler support -rpath directly 11692 hardcode_libdir_flag_spec='-rpath $libdir' 11693 fi 11694 archive_cmds_need_lc='no' 11695 hardcode_libdir_separator=: 11696 ;; 11697 11698 solaris*) 11699 no_undefined_flag=' -z defs' 11700 if test yes = "$GCC"; then 11701 wlarc='$wl' 11702 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11704 $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' 11705 else 11706 case `$CC -V 2>&1` in 11707 *"Compilers 5.0"*) 11708 wlarc='' 11709 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11711 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11712 ;; 11713 *) 11714 wlarc='$wl' 11715 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11717 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11718 ;; 11719 esac 11720 fi 11721 hardcode_libdir_flag_spec='-R$libdir' 11722 hardcode_shlibpath_var=no 11723 case $host_os in 11724 solaris2.[0-5] | solaris2.[0-5].*) ;; 11725 *) 11726 # The compiler driver will combine and reorder linker options, 11727 # but understands '-z linker_flag'. GCC discards it without '$wl', 11728 # but is careful enough not to reorder. 11729 # Supported since Solaris 2.6 (maybe 2.5.1?) 11730 if test yes = "$GCC"; then 11731 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11732 else 11733 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11734 fi 11735 ;; 11736 esac 11737 link_all_deplibs=yes 11738 ;; 11739 11740 sunos4*) 11741 if test sequent = "$host_vendor"; then 11742 # Use $CC to link under sequent, because it throws in some extra .o 11743 # files that make .init and .fini sections work. 11744 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11745 else 11746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11747 fi 11748 hardcode_libdir_flag_spec='-L$libdir' 11749 hardcode_direct=yes 11750 hardcode_minus_L=yes 11751 hardcode_shlibpath_var=no 11752 ;; 11753 11754 sysv4) 11755 case $host_vendor in 11756 sni) 11757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11758 hardcode_direct=yes # is this really true??? 11759 ;; 11760 siemens) 11761 ## LD is ld it makes a PLAMLIB 11762 ## CC just makes a GrossModule. 11763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11764 reload_cmds='$CC -r -o $output$reload_objs' 11765 hardcode_direct=no 11766 ;; 11767 motorola) 11768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11770 ;; 11771 esac 11772 runpath_var='LD_RUN_PATH' 11773 hardcode_shlibpath_var=no 11774 ;; 11775 11776 sysv4.3*) 11777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11778 hardcode_shlibpath_var=no 11779 export_dynamic_flag_spec='-Bexport' 11780 ;; 11781 11782 sysv4*MP*) 11783 if test -d /usr/nec; then 11784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11785 hardcode_shlibpath_var=no 11786 runpath_var=LD_RUN_PATH 11787 hardcode_runpath_var=yes 11788 ld_shlibs=yes 11789 fi 11790 ;; 11791 11792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11793 no_undefined_flag='$wl-z,text' 11794 archive_cmds_need_lc=no 11795 hardcode_shlibpath_var=no 11796 runpath_var='LD_RUN_PATH' 11797 11798 if test yes = "$GCC"; then 11799 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11800 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11801 else 11802 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11803 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11804 fi 11805 ;; 11806 11807 sysv5* | sco3.2v5* | sco5v6*) 11808 # Note: We CANNOT use -z defs as we might desire, because we do not 11809 # link with -lc, and that would cause any symbols used from libc to 11810 # always be unresolved, which means just about no library would 11811 # ever link correctly. If we're not using GNU ld we use -z text 11812 # though, which does catch some bad symbols but isn't as heavy-handed 11813 # as -z defs. 11814 no_undefined_flag='$wl-z,text' 11815 allow_undefined_flag='$wl-z,nodefs' 11816 archive_cmds_need_lc=no 11817 hardcode_shlibpath_var=no 11818 hardcode_libdir_flag_spec='$wl-R,$libdir' 11819 hardcode_libdir_separator=':' 11820 link_all_deplibs=yes 11821 export_dynamic_flag_spec='$wl-Bexport' 11822 runpath_var='LD_RUN_PATH' 11823 11824 if test yes = "$GCC"; then 11825 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11826 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11827 else 11828 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11829 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11830 fi 11831 ;; 11832 11833 uts4*) 11834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11835 hardcode_libdir_flag_spec='-L$libdir' 11836 hardcode_shlibpath_var=no 11837 ;; 11838 11839 *) 11840 ld_shlibs=no 11841 ;; 11842 esac 11843 11844 if test sni = "$host_vendor"; then 11845 case $host in 11846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11847 export_dynamic_flag_spec='$wl-Blargedynsym' 11848 ;; 11849 esac 11850 fi 11851 fi 11852 11853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11854printf "%s\n" "$ld_shlibs" >&6; } 11855test no = "$ld_shlibs" && can_build_shared=no 11856 11857with_gnu_ld=$with_gnu_ld 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873# 11874# Do we need to explicitly link libc? 11875# 11876case "x$archive_cmds_need_lc" in 11877x|xyes) 11878 # Assume -lc should be added 11879 archive_cmds_need_lc=yes 11880 11881 if test yes,yes = "$GCC,$enable_shared"; then 11882 case $archive_cmds in 11883 *'~'*) 11884 # FIXME: we may have to deal with multi-command sequences. 11885 ;; 11886 '$CC '*) 11887 # Test whether the compiler implicitly links with -lc since on some 11888 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11889 # to ld, don't add -lc before -lgcc. 11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11891printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11892if test ${lt_cv_archive_cmds_need_lc+y} 11893then : 11894 printf %s "(cached) " >&6 11895else $as_nop 11896 $RM conftest* 11897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11898 11899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11900 (eval $ac_compile) 2>&5 11901 ac_status=$? 11902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11903 test $ac_status = 0; } 2>conftest.err; then 11904 soname=conftest 11905 lib=conftest 11906 libobjs=conftest.$ac_objext 11907 deplibs= 11908 wl=$lt_prog_compiler_wl 11909 pic_flag=$lt_prog_compiler_pic 11910 compiler_flags=-v 11911 linker_flags=-v 11912 verstring= 11913 output_objdir=. 11914 libname=conftest 11915 lt_save_allow_undefined_flag=$allow_undefined_flag 11916 allow_undefined_flag= 11917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11918 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11919 ac_status=$? 11920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11921 test $ac_status = 0; } 11922 then 11923 lt_cv_archive_cmds_need_lc=no 11924 else 11925 lt_cv_archive_cmds_need_lc=yes 11926 fi 11927 allow_undefined_flag=$lt_save_allow_undefined_flag 11928 else 11929 cat conftest.err 1>&5 11930 fi 11931 $RM conftest* 11932 11933fi 11934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11935printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11936 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11937 ;; 11938 esac 11939 fi 11940 ;; 11941esac 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12095printf %s "checking dynamic linker characteristics... " >&6; } 12096 12097if test yes = "$GCC"; then 12098 case $host_os in 12099 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12100 *) lt_awk_arg='/^libraries:/' ;; 12101 esac 12102 case $host_os in 12103 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12104 *) lt_sed_strip_eq='s|=/|/|g' ;; 12105 esac 12106 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12107 case $lt_search_path_spec in 12108 *\;*) 12109 # if the path contains ";" then we assume it to be the separator 12110 # otherwise default to the standard path separator (i.e. ":") - it is 12111 # assumed that no part of a normal pathname contains ";" but that should 12112 # okay in the real world where ";" in dirpaths is itself problematic. 12113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12114 ;; 12115 *) 12116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12117 ;; 12118 esac 12119 # Ok, now we have the path, separated by spaces, we can step through it 12120 # and add multilib dir if necessary... 12121 lt_tmp_lt_search_path_spec= 12122 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12123 # ...but if some path component already ends with the multilib dir we assume 12124 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12125 case "$lt_multi_os_dir; $lt_search_path_spec " in 12126 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12127 lt_multi_os_dir= 12128 ;; 12129 esac 12130 for lt_sys_path in $lt_search_path_spec; do 12131 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12132 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12133 elif test -n "$lt_multi_os_dir"; then 12134 test -d "$lt_sys_path" && \ 12135 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12136 fi 12137 done 12138 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12139BEGIN {RS = " "; FS = "/|\n";} { 12140 lt_foo = ""; 12141 lt_count = 0; 12142 for (lt_i = NF; lt_i > 0; lt_i--) { 12143 if ($lt_i != "" && $lt_i != ".") { 12144 if ($lt_i == "..") { 12145 lt_count++; 12146 } else { 12147 if (lt_count == 0) { 12148 lt_foo = "/" $lt_i lt_foo; 12149 } else { 12150 lt_count--; 12151 } 12152 } 12153 } 12154 } 12155 if (lt_foo != "") { lt_freq[lt_foo]++; } 12156 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12157}'` 12158 # AWK program above erroneously prepends '/' to C:/dos/paths 12159 # for these hosts. 12160 case $host_os in 12161 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12162 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12163 esac 12164 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12165else 12166 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12167fi 12168library_names_spec= 12169libname_spec='lib$name' 12170soname_spec= 12171shrext_cmds=.so 12172postinstall_cmds= 12173postuninstall_cmds= 12174finish_cmds= 12175finish_eval= 12176shlibpath_var= 12177shlibpath_overrides_runpath=unknown 12178version_type=none 12179dynamic_linker="$host_os ld.so" 12180sys_lib_dlsearch_path_spec="/lib /usr/lib" 12181need_lib_prefix=unknown 12182hardcode_into_libs=no 12183 12184# when you set need_version to no, make sure it does not cause -set_version 12185# flags to be left without arguments 12186need_version=unknown 12187 12188 12189 12190case $host_os in 12191aix3*) 12192 version_type=linux # correct to gnu/linux during the next big refactor 12193 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12194 shlibpath_var=LIBPATH 12195 12196 # AIX 3 has no versioning support, so we append a major version to the name. 12197 soname_spec='$libname$release$shared_ext$major' 12198 ;; 12199 12200aix[4-9]*) 12201 version_type=linux # correct to gnu/linux during the next big refactor 12202 need_lib_prefix=no 12203 need_version=no 12204 hardcode_into_libs=yes 12205 if test ia64 = "$host_cpu"; then 12206 # AIX 5 supports IA64 12207 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12208 shlibpath_var=LD_LIBRARY_PATH 12209 else 12210 # With GCC up to 2.95.x, collect2 would create an import file 12211 # for dependence libraries. The import file would start with 12212 # the line '#! .'. This would cause the generated library to 12213 # depend on '.', always an invalid library. This was fixed in 12214 # development snapshots of GCC prior to 3.0. 12215 case $host_os in 12216 aix4 | aix4.[01] | aix4.[01].*) 12217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12218 echo ' yes ' 12219 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12220 : 12221 else 12222 can_build_shared=no 12223 fi 12224 ;; 12225 esac 12226 # Using Import Files as archive members, it is possible to support 12227 # filename-based versioning of shared library archives on AIX. While 12228 # this would work for both with and without runtime linking, it will 12229 # prevent static linking of such archives. So we do filename-based 12230 # shared library versioning with .so extension only, which is used 12231 # when both runtime linking and shared linking is enabled. 12232 # Unfortunately, runtime linking may impact performance, so we do 12233 # not want this to be the default eventually. Also, we use the 12234 # versioned .so libs for executables only if there is the -brtl 12235 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12236 # To allow for filename-based versioning support, we need to create 12237 # libNAME.so.V as an archive file, containing: 12238 # *) an Import File, referring to the versioned filename of the 12239 # archive as well as the shared archive member, telling the 12240 # bitwidth (32 or 64) of that shared object, and providing the 12241 # list of exported symbols of that shared object, eventually 12242 # decorated with the 'weak' keyword 12243 # *) the shared object with the F_LOADONLY flag set, to really avoid 12244 # it being seen by the linker. 12245 # At run time we better use the real file rather than another symlink, 12246 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12247 12248 case $with_aix_soname,$aix_use_runtimelinking in 12249 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12250 # soname into executable. Probably we can add versioning support to 12251 # collect2, so additional links can be useful in future. 12252 aix,yes) # traditional libtool 12253 dynamic_linker='AIX unversionable lib.so' 12254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12255 # instead of lib<name>.a to let people know that these are not 12256 # typical AIX shared libraries. 12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12258 ;; 12259 aix,no) # traditional AIX only 12260 dynamic_linker='AIX lib.a(lib.so.V)' 12261 # We preserve .a as extension for shared libraries through AIX4.2 12262 # and later when we are not doing run time linking. 12263 library_names_spec='$libname$release.a $libname.a' 12264 soname_spec='$libname$release$shared_ext$major' 12265 ;; 12266 svr4,*) # full svr4 only 12267 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12268 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12269 # We do not specify a path in Import Files, so LIBPATH fires. 12270 shlibpath_overrides_runpath=yes 12271 ;; 12272 *,yes) # both, prefer svr4 12273 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12274 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12275 # unpreferred sharedlib libNAME.a needs extra handling 12276 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"' 12277 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"' 12278 # We do not specify a path in Import Files, so LIBPATH fires. 12279 shlibpath_overrides_runpath=yes 12280 ;; 12281 *,no) # both, prefer aix 12282 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12283 library_names_spec='$libname$release.a $libname.a' 12284 soname_spec='$libname$release$shared_ext$major' 12285 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12286 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)' 12287 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"' 12288 ;; 12289 esac 12290 shlibpath_var=LIBPATH 12291 fi 12292 ;; 12293 12294amigaos*) 12295 case $host_cpu in 12296 powerpc) 12297 # Since July 2007 AmigaOS4 officially supports .so libraries. 12298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12300 ;; 12301 m68k) 12302 library_names_spec='$libname.ixlibrary $libname.a' 12303 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12304 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' 12305 ;; 12306 esac 12307 ;; 12308 12309beos*) 12310 library_names_spec='$libname$shared_ext' 12311 dynamic_linker="$host_os ld.so" 12312 shlibpath_var=LIBRARY_PATH 12313 ;; 12314 12315bsdi[45]*) 12316 version_type=linux # correct to gnu/linux during the next big refactor 12317 need_version=no 12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12319 soname_spec='$libname$release$shared_ext$major' 12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12321 shlibpath_var=LD_LIBRARY_PATH 12322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12324 # the default ld.so.conf also contains /usr/contrib/lib and 12325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12326 # libtool to hard-code these into programs 12327 ;; 12328 12329cygwin* | mingw* | pw32* | cegcc*) 12330 version_type=windows 12331 shrext_cmds=.dll 12332 need_version=no 12333 need_lib_prefix=no 12334 12335 case $GCC,$cc_basename in 12336 yes,*) 12337 # gcc 12338 library_names_spec='$libname.dll.a' 12339 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12340 postinstall_cmds='base_file=`basename \$file`~ 12341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12342 dldir=$destdir/`dirname \$dlpath`~ 12343 test -d \$dldir || mkdir -p \$dldir~ 12344 $install_prog $dir/$dlname \$dldir/$dlname~ 12345 chmod a+x \$dldir/$dlname~ 12346 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12347 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12348 fi' 12349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12350 dlpath=$dir/\$dldll~ 12351 $RM \$dlpath' 12352 shlibpath_overrides_runpath=yes 12353 12354 case $host_os in 12355 cygwin*) 12356 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12357 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12358 12359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12360 ;; 12361 mingw* | cegcc*) 12362 # MinGW DLLs use traditional 'lib' prefix 12363 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12364 ;; 12365 pw32*) 12366 # pw32 DLLs use 'pw' prefix rather than 'lib' 12367 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12368 ;; 12369 esac 12370 dynamic_linker='Win32 ld.exe' 12371 ;; 12372 12373 *,cl* | *,icl*) 12374 # Native MSVC or ICC 12375 libname_spec='$name' 12376 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12377 library_names_spec='$libname.dll.lib' 12378 12379 case $build_os in 12380 mingw*) 12381 sys_lib_search_path_spec= 12382 lt_save_ifs=$IFS 12383 IFS=';' 12384 for lt_path in $LIB 12385 do 12386 IFS=$lt_save_ifs 12387 # Let DOS variable expansion print the short 8.3 style file name. 12388 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12389 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12390 done 12391 IFS=$lt_save_ifs 12392 # Convert to MSYS style. 12393 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12394 ;; 12395 cygwin*) 12396 # Convert to unix form, then to dos form, then back to unix form 12397 # but this time dos style (no spaces!) so that the unix form looks 12398 # like /cygdrive/c/PROGRA~1:/cygdr... 12399 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12400 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12401 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12402 ;; 12403 *) 12404 sys_lib_search_path_spec=$LIB 12405 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12406 # It is most probably a Windows format PATH. 12407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12408 else 12409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12410 fi 12411 # FIXME: find the short name or the path components, as spaces are 12412 # common. (e.g. "Program Files" -> "PROGRA~1") 12413 ;; 12414 esac 12415 12416 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12417 postinstall_cmds='base_file=`basename \$file`~ 12418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12419 dldir=$destdir/`dirname \$dlpath`~ 12420 test -d \$dldir || mkdir -p \$dldir~ 12421 $install_prog $dir/$dlname \$dldir/$dlname' 12422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12423 dlpath=$dir/\$dldll~ 12424 $RM \$dlpath' 12425 shlibpath_overrides_runpath=yes 12426 dynamic_linker='Win32 link.exe' 12427 ;; 12428 12429 *) 12430 # Assume MSVC and ICC wrapper 12431 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12432 dynamic_linker='Win32 ld.exe' 12433 ;; 12434 esac 12435 # FIXME: first we should search . and the directory the executable is in 12436 shlibpath_var=PATH 12437 ;; 12438 12439darwin* | rhapsody*) 12440 dynamic_linker="$host_os dyld" 12441 version_type=darwin 12442 need_lib_prefix=no 12443 need_version=no 12444 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12445 soname_spec='$libname$release$major$shared_ext' 12446 shlibpath_overrides_runpath=yes 12447 shlibpath_var=DYLD_LIBRARY_PATH 12448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12449 12450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12452 ;; 12453 12454dgux*) 12455 version_type=linux # correct to gnu/linux during the next big refactor 12456 need_lib_prefix=no 12457 need_version=no 12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12459 soname_spec='$libname$release$shared_ext$major' 12460 shlibpath_var=LD_LIBRARY_PATH 12461 ;; 12462 12463freebsd* | dragonfly* | midnightbsd*) 12464 # DragonFly does not have aout. When/if they implement a new 12465 # versioning mechanism, adjust this. 12466 if test -x /usr/bin/objformat; then 12467 objformat=`/usr/bin/objformat` 12468 else 12469 case $host_os in 12470 freebsd[23].*) objformat=aout ;; 12471 *) objformat=elf ;; 12472 esac 12473 fi 12474 version_type=freebsd-$objformat 12475 case $version_type in 12476 freebsd-elf*) 12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12478 soname_spec='$libname$release$shared_ext$major' 12479 need_version=no 12480 need_lib_prefix=no 12481 ;; 12482 freebsd-*) 12483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12484 need_version=yes 12485 ;; 12486 esac 12487 shlibpath_var=LD_LIBRARY_PATH 12488 case $host_os in 12489 freebsd2.*) 12490 shlibpath_overrides_runpath=yes 12491 ;; 12492 freebsd3.[01]* | freebsdelf3.[01]*) 12493 shlibpath_overrides_runpath=yes 12494 hardcode_into_libs=yes 12495 ;; 12496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12498 shlibpath_overrides_runpath=no 12499 hardcode_into_libs=yes 12500 ;; 12501 *) # from 4.6 on, and DragonFly 12502 shlibpath_overrides_runpath=yes 12503 hardcode_into_libs=yes 12504 ;; 12505 esac 12506 ;; 12507 12508haiku*) 12509 version_type=linux # correct to gnu/linux during the next big refactor 12510 need_lib_prefix=no 12511 need_version=no 12512 dynamic_linker="$host_os runtime_loader" 12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12514 soname_spec='$libname$release$shared_ext$major' 12515 shlibpath_var=LIBRARY_PATH 12516 shlibpath_overrides_runpath=no 12517 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12518 hardcode_into_libs=yes 12519 ;; 12520 12521hpux9* | hpux10* | hpux11*) 12522 # Give a soname corresponding to the major version so that dld.sl refuses to 12523 # link against other versions. 12524 version_type=sunos 12525 need_lib_prefix=no 12526 need_version=no 12527 case $host_cpu in 12528 ia64*) 12529 shrext_cmds='.so' 12530 hardcode_into_libs=yes 12531 dynamic_linker="$host_os dld.so" 12532 shlibpath_var=LD_LIBRARY_PATH 12533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12535 soname_spec='$libname$release$shared_ext$major' 12536 if test 32 = "$HPUX_IA64_MODE"; then 12537 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12538 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12539 else 12540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12541 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12542 fi 12543 ;; 12544 hppa*64*) 12545 shrext_cmds='.sl' 12546 hardcode_into_libs=yes 12547 dynamic_linker="$host_os dld.sl" 12548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12551 soname_spec='$libname$release$shared_ext$major' 12552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12554 ;; 12555 *) 12556 shrext_cmds='.sl' 12557 dynamic_linker="$host_os dld.sl" 12558 shlibpath_var=SHLIB_PATH 12559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12561 soname_spec='$libname$release$shared_ext$major' 12562 ;; 12563 esac 12564 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12565 postinstall_cmds='chmod 555 $lib' 12566 # or fails outright, so override atomically: 12567 install_override_mode=555 12568 ;; 12569 12570interix[3-9]*) 12571 version_type=linux # correct to gnu/linux during the next big refactor 12572 need_lib_prefix=no 12573 need_version=no 12574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12575 soname_spec='$libname$release$shared_ext$major' 12576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12577 shlibpath_var=LD_LIBRARY_PATH 12578 shlibpath_overrides_runpath=no 12579 hardcode_into_libs=yes 12580 ;; 12581 12582irix5* | irix6* | nonstopux*) 12583 case $host_os in 12584 nonstopux*) version_type=nonstopux ;; 12585 *) 12586 if test yes = "$lt_cv_prog_gnu_ld"; then 12587 version_type=linux # correct to gnu/linux during the next big refactor 12588 else 12589 version_type=irix 12590 fi ;; 12591 esac 12592 need_lib_prefix=no 12593 need_version=no 12594 soname_spec='$libname$release$shared_ext$major' 12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12596 case $host_os in 12597 irix5* | nonstopux*) 12598 libsuff= shlibsuff= 12599 ;; 12600 *) 12601 case $LD in # libtool.m4 will add one of these switches to LD 12602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12603 libsuff= shlibsuff= libmagic=32-bit;; 12604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12605 libsuff=32 shlibsuff=N32 libmagic=N32;; 12606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12607 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12608 *) libsuff= shlibsuff= libmagic=never-match;; 12609 esac 12610 ;; 12611 esac 12612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12613 shlibpath_overrides_runpath=no 12614 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12615 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12616 hardcode_into_libs=yes 12617 ;; 12618 12619# No shared lib support for Linux oldld, aout, or coff. 12620linux*oldld* | linux*aout* | linux*coff*) 12621 dynamic_linker=no 12622 ;; 12623 12624linux*android*) 12625 version_type=none # Android doesn't support versioned libraries. 12626 need_lib_prefix=no 12627 need_version=no 12628 library_names_spec='$libname$release$shared_ext' 12629 soname_spec='$libname$release$shared_ext' 12630 finish_cmds= 12631 shlibpath_var=LD_LIBRARY_PATH 12632 shlibpath_overrides_runpath=yes 12633 12634 # This implies no fast_install, which is unacceptable. 12635 # Some rework will be needed to allow for fast_install 12636 # before this can be enabled. 12637 hardcode_into_libs=yes 12638 12639 dynamic_linker='Android linker' 12640 # Don't embed -rpath directories since the linker doesn't support them. 12641 hardcode_libdir_flag_spec='-L$libdir' 12642 ;; 12643 12644# This must be glibc/ELF. 12645linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12646 version_type=linux # correct to gnu/linux during the next big refactor 12647 need_lib_prefix=no 12648 need_version=no 12649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12650 soname_spec='$libname$release$shared_ext$major' 12651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12652 shlibpath_var=LD_LIBRARY_PATH 12653 shlibpath_overrides_runpath=no 12654 12655 # Some binutils ld are patched to set DT_RUNPATH 12656 if test ${lt_cv_shlibpath_overrides_runpath+y} 12657then : 12658 printf %s "(cached) " >&6 12659else $as_nop 12660 lt_cv_shlibpath_overrides_runpath=no 12661 save_LDFLAGS=$LDFLAGS 12662 save_libdir=$libdir 12663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12666/* end confdefs.h. */ 12667 12668int 12669main (void) 12670{ 12671 12672 ; 12673 return 0; 12674} 12675_ACEOF 12676if ac_fn_c_try_link "$LINENO" 12677then : 12678 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12679then : 12680 lt_cv_shlibpath_overrides_runpath=yes 12681fi 12682fi 12683rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12684 conftest$ac_exeext conftest.$ac_ext 12685 LDFLAGS=$save_LDFLAGS 12686 libdir=$save_libdir 12687 12688fi 12689 12690 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12691 12692 # This implies no fast_install, which is unacceptable. 12693 # Some rework will be needed to allow for fast_install 12694 # before this can be enabled. 12695 hardcode_into_libs=yes 12696 12697 # Ideally, we could use ldconfig to report *all* directores which are 12698 # searched for libraries, however this is still not possible. Aside from not 12699 # being certain /sbin/ldconfig is available, command 12700 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12701 # even though it is searched at run-time. Try to do the best guess by 12702 # appending ld.so.conf contents (and includes) to the search path. 12703 if test -f /etc/ld.so.conf; then 12704 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' ' '` 12705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12706 fi 12707 12708 # We used to test for /lib/ld.so.1 and disable shared libraries on 12709 # powerpc, because MkLinux only supported shared libraries with the 12710 # GNU dynamic linker. Since this was broken with cross compilers, 12711 # most powerpc-linux boxes support dynamic linking these days and 12712 # people can always --disable-shared, the test was removed, and we 12713 # assume the GNU/Linux dynamic linker is in use. 12714 dynamic_linker='GNU/Linux ld.so' 12715 ;; 12716 12717netbsd*) 12718 version_type=sunos 12719 need_lib_prefix=no 12720 need_version=no 12721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12724 dynamic_linker='NetBSD (a.out) ld.so' 12725 else 12726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12727 soname_spec='$libname$release$shared_ext$major' 12728 dynamic_linker='NetBSD ld.elf_so' 12729 fi 12730 shlibpath_var=LD_LIBRARY_PATH 12731 shlibpath_overrides_runpath=yes 12732 hardcode_into_libs=yes 12733 ;; 12734 12735newsos6) 12736 version_type=linux # correct to gnu/linux during the next big refactor 12737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12738 shlibpath_var=LD_LIBRARY_PATH 12739 shlibpath_overrides_runpath=yes 12740 ;; 12741 12742*nto* | *qnx*) 12743 version_type=qnx 12744 need_lib_prefix=no 12745 need_version=no 12746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12747 soname_spec='$libname$release$shared_ext$major' 12748 shlibpath_var=LD_LIBRARY_PATH 12749 shlibpath_overrides_runpath=no 12750 hardcode_into_libs=yes 12751 dynamic_linker='ldqnx.so' 12752 ;; 12753 12754openbsd* | bitrig*) 12755 version_type=sunos 12756 sys_lib_dlsearch_path_spec=/usr/lib 12757 need_lib_prefix=no 12758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12759 need_version=no 12760 else 12761 need_version=yes 12762 fi 12763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12765 shlibpath_var=LD_LIBRARY_PATH 12766 shlibpath_overrides_runpath=yes 12767 ;; 12768 12769os2*) 12770 libname_spec='$name' 12771 version_type=windows 12772 shrext_cmds=.dll 12773 need_version=no 12774 need_lib_prefix=no 12775 # OS/2 can only load a DLL with a base name of 8 characters or less. 12776 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12777 v=$($ECHO $release$versuffix | tr -d .-); 12778 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12779 $ECHO $n$v`$shared_ext' 12780 library_names_spec='${libname}_dll.$libext' 12781 dynamic_linker='OS/2 ld.exe' 12782 shlibpath_var=BEGINLIBPATH 12783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12785 postinstall_cmds='base_file=`basename \$file`~ 12786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12787 dldir=$destdir/`dirname \$dlpath`~ 12788 test -d \$dldir || mkdir -p \$dldir~ 12789 $install_prog $dir/$dlname \$dldir/$dlname~ 12790 chmod a+x \$dldir/$dlname~ 12791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12793 fi' 12794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12795 dlpath=$dir/\$dldll~ 12796 $RM \$dlpath' 12797 ;; 12798 12799osf3* | osf4* | osf5*) 12800 version_type=osf 12801 need_lib_prefix=no 12802 need_version=no 12803 soname_spec='$libname$release$shared_ext$major' 12804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12805 shlibpath_var=LD_LIBRARY_PATH 12806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12808 ;; 12809 12810rdos*) 12811 dynamic_linker=no 12812 ;; 12813 12814solaris*) 12815 version_type=linux # correct to gnu/linux during the next big refactor 12816 need_lib_prefix=no 12817 need_version=no 12818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12819 soname_spec='$libname$release$shared_ext$major' 12820 shlibpath_var=LD_LIBRARY_PATH 12821 shlibpath_overrides_runpath=yes 12822 hardcode_into_libs=yes 12823 # ldd complains unless libraries are executable 12824 postinstall_cmds='chmod +x $lib' 12825 ;; 12826 12827sunos4*) 12828 version_type=sunos 12829 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12831 shlibpath_var=LD_LIBRARY_PATH 12832 shlibpath_overrides_runpath=yes 12833 if test yes = "$with_gnu_ld"; then 12834 need_lib_prefix=no 12835 fi 12836 need_version=yes 12837 ;; 12838 12839sysv4 | sysv4.3*) 12840 version_type=linux # correct to gnu/linux during the next big refactor 12841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12842 soname_spec='$libname$release$shared_ext$major' 12843 shlibpath_var=LD_LIBRARY_PATH 12844 case $host_vendor in 12845 sni) 12846 shlibpath_overrides_runpath=no 12847 need_lib_prefix=no 12848 runpath_var=LD_RUN_PATH 12849 ;; 12850 siemens) 12851 need_lib_prefix=no 12852 ;; 12853 motorola) 12854 need_lib_prefix=no 12855 need_version=no 12856 shlibpath_overrides_runpath=no 12857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12858 ;; 12859 esac 12860 ;; 12861 12862sysv4*MP*) 12863 if test -d /usr/nec; then 12864 version_type=linux # correct to gnu/linux during the next big refactor 12865 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12866 soname_spec='$libname$shared_ext.$major' 12867 shlibpath_var=LD_LIBRARY_PATH 12868 fi 12869 ;; 12870 12871sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12872 version_type=sco 12873 need_lib_prefix=no 12874 need_version=no 12875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12876 soname_spec='$libname$release$shared_ext$major' 12877 shlibpath_var=LD_LIBRARY_PATH 12878 shlibpath_overrides_runpath=yes 12879 hardcode_into_libs=yes 12880 if test yes = "$with_gnu_ld"; then 12881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12882 else 12883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12884 case $host_os in 12885 sco3.2v5*) 12886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12887 ;; 12888 esac 12889 fi 12890 sys_lib_dlsearch_path_spec='/usr/lib' 12891 ;; 12892 12893tpf*) 12894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12895 version_type=linux # correct to gnu/linux during the next big refactor 12896 need_lib_prefix=no 12897 need_version=no 12898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12899 shlibpath_var=LD_LIBRARY_PATH 12900 shlibpath_overrides_runpath=no 12901 hardcode_into_libs=yes 12902 ;; 12903 12904uts4*) 12905 version_type=linux # correct to gnu/linux during the next big refactor 12906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12907 soname_spec='$libname$release$shared_ext$major' 12908 shlibpath_var=LD_LIBRARY_PATH 12909 ;; 12910 12911*) 12912 dynamic_linker=no 12913 ;; 12914esac 12915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12916printf "%s\n" "$dynamic_linker" >&6; } 12917test no = "$dynamic_linker" && can_build_shared=no 12918 12919variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12920if test yes = "$GCC"; then 12921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12922fi 12923 12924if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12925 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12926fi 12927 12928if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12929 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12930fi 12931 12932# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12933configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12934 12935# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12936func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12937 12938# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12939configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13038printf %s "checking how to hardcode library paths into programs... " >&6; } 13039hardcode_action= 13040if test -n "$hardcode_libdir_flag_spec" || 13041 test -n "$runpath_var" || 13042 test yes = "$hardcode_automatic"; then 13043 13044 # We can hardcode non-existent directories. 13045 if test no != "$hardcode_direct" && 13046 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13047 # have to relink, otherwise we might link with an installed library 13048 # when we should be linking with a yet-to-be-installed one 13049 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13050 test no != "$hardcode_minus_L"; then 13051 # Linking always hardcodes the temporary library directory. 13052 hardcode_action=relink 13053 else 13054 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13055 hardcode_action=immediate 13056 fi 13057else 13058 # We cannot hardcode anything, or else we can only hardcode existing 13059 # directories. 13060 hardcode_action=unsupported 13061fi 13062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13063printf "%s\n" "$hardcode_action" >&6; } 13064 13065if test relink = "$hardcode_action" || 13066 test yes = "$inherit_rpath"; then 13067 # Fast installation is not supported 13068 enable_fast_install=no 13069elif test yes = "$shlibpath_overrides_runpath" || 13070 test no = "$enable_shared"; then 13071 # Fast installation is not necessary 13072 enable_fast_install=needless 13073fi 13074 13075 13076 13077 13078 13079 13080 if test yes != "$enable_dlopen"; then 13081 enable_dlopen=unknown 13082 enable_dlopen_self=unknown 13083 enable_dlopen_self_static=unknown 13084else 13085 lt_cv_dlopen=no 13086 lt_cv_dlopen_libs= 13087 13088 case $host_os in 13089 beos*) 13090 lt_cv_dlopen=load_add_on 13091 lt_cv_dlopen_libs= 13092 lt_cv_dlopen_self=yes 13093 ;; 13094 13095 mingw* | pw32* | cegcc*) 13096 lt_cv_dlopen=LoadLibrary 13097 lt_cv_dlopen_libs= 13098 ;; 13099 13100 cygwin*) 13101 lt_cv_dlopen=dlopen 13102 lt_cv_dlopen_libs= 13103 ;; 13104 13105 darwin*) 13106 # if libdl is installed we need to link against it 13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13108printf %s "checking for dlopen in -ldl... " >&6; } 13109if test ${ac_cv_lib_dl_dlopen+y} 13110then : 13111 printf %s "(cached) " >&6 13112else $as_nop 13113 ac_check_lib_save_LIBS=$LIBS 13114LIBS="-ldl $LIBS" 13115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13116/* end confdefs.h. */ 13117 13118/* Override any GCC internal prototype to avoid an error. 13119 Use char because int might match the return type of a GCC 13120 builtin and then its argument prototype would still apply. */ 13121char dlopen (); 13122int 13123main (void) 13124{ 13125return dlopen (); 13126 ; 13127 return 0; 13128} 13129_ACEOF 13130if ac_fn_c_try_link "$LINENO" 13131then : 13132 ac_cv_lib_dl_dlopen=yes 13133else $as_nop 13134 ac_cv_lib_dl_dlopen=no 13135fi 13136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13137 conftest$ac_exeext conftest.$ac_ext 13138LIBS=$ac_check_lib_save_LIBS 13139fi 13140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13141printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13142if test "x$ac_cv_lib_dl_dlopen" = xyes 13143then : 13144 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13145else $as_nop 13146 13147 lt_cv_dlopen=dyld 13148 lt_cv_dlopen_libs= 13149 lt_cv_dlopen_self=yes 13150 13151fi 13152 13153 ;; 13154 13155 tpf*) 13156 # Don't try to run any link tests for TPF. We know it's impossible 13157 # because TPF is a cross-compiler, and we know how we open DSOs. 13158 lt_cv_dlopen=dlopen 13159 lt_cv_dlopen_libs= 13160 lt_cv_dlopen_self=no 13161 ;; 13162 13163 *) 13164 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13165if test "x$ac_cv_func_shl_load" = xyes 13166then : 13167 lt_cv_dlopen=shl_load 13168else $as_nop 13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13170printf %s "checking for shl_load in -ldld... " >&6; } 13171if test ${ac_cv_lib_dld_shl_load+y} 13172then : 13173 printf %s "(cached) " >&6 13174else $as_nop 13175 ac_check_lib_save_LIBS=$LIBS 13176LIBS="-ldld $LIBS" 13177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179 13180/* Override any GCC internal prototype to avoid an error. 13181 Use char because int might match the return type of a GCC 13182 builtin and then its argument prototype would still apply. */ 13183char shl_load (); 13184int 13185main (void) 13186{ 13187return shl_load (); 13188 ; 13189 return 0; 13190} 13191_ACEOF 13192if ac_fn_c_try_link "$LINENO" 13193then : 13194 ac_cv_lib_dld_shl_load=yes 13195else $as_nop 13196 ac_cv_lib_dld_shl_load=no 13197fi 13198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13199 conftest$ac_exeext conftest.$ac_ext 13200LIBS=$ac_check_lib_save_LIBS 13201fi 13202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13203printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13204if test "x$ac_cv_lib_dld_shl_load" = xyes 13205then : 13206 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13207else $as_nop 13208 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13209if test "x$ac_cv_func_dlopen" = xyes 13210then : 13211 lt_cv_dlopen=dlopen 13212else $as_nop 13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13214printf %s "checking for dlopen in -ldl... " >&6; } 13215if test ${ac_cv_lib_dl_dlopen+y} 13216then : 13217 printf %s "(cached) " >&6 13218else $as_nop 13219 ac_check_lib_save_LIBS=$LIBS 13220LIBS="-ldl $LIBS" 13221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13222/* end confdefs.h. */ 13223 13224/* Override any GCC internal prototype to avoid an error. 13225 Use char because int might match the return type of a GCC 13226 builtin and then its argument prototype would still apply. */ 13227char dlopen (); 13228int 13229main (void) 13230{ 13231return dlopen (); 13232 ; 13233 return 0; 13234} 13235_ACEOF 13236if ac_fn_c_try_link "$LINENO" 13237then : 13238 ac_cv_lib_dl_dlopen=yes 13239else $as_nop 13240 ac_cv_lib_dl_dlopen=no 13241fi 13242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13243 conftest$ac_exeext conftest.$ac_ext 13244LIBS=$ac_check_lib_save_LIBS 13245fi 13246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13247printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13248if test "x$ac_cv_lib_dl_dlopen" = xyes 13249then : 13250 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13251else $as_nop 13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13253printf %s "checking for dlopen in -lsvld... " >&6; } 13254if test ${ac_cv_lib_svld_dlopen+y} 13255then : 13256 printf %s "(cached) " >&6 13257else $as_nop 13258 ac_check_lib_save_LIBS=$LIBS 13259LIBS="-lsvld $LIBS" 13260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261/* end confdefs.h. */ 13262 13263/* Override any GCC internal prototype to avoid an error. 13264 Use char because int might match the return type of a GCC 13265 builtin and then its argument prototype would still apply. */ 13266char dlopen (); 13267int 13268main (void) 13269{ 13270return dlopen (); 13271 ; 13272 return 0; 13273} 13274_ACEOF 13275if ac_fn_c_try_link "$LINENO" 13276then : 13277 ac_cv_lib_svld_dlopen=yes 13278else $as_nop 13279 ac_cv_lib_svld_dlopen=no 13280fi 13281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13282 conftest$ac_exeext conftest.$ac_ext 13283LIBS=$ac_check_lib_save_LIBS 13284fi 13285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13286printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13287if test "x$ac_cv_lib_svld_dlopen" = xyes 13288then : 13289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13290else $as_nop 13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13292printf %s "checking for dld_link in -ldld... " >&6; } 13293if test ${ac_cv_lib_dld_dld_link+y} 13294then : 13295 printf %s "(cached) " >&6 13296else $as_nop 13297 ac_check_lib_save_LIBS=$LIBS 13298LIBS="-ldld $LIBS" 13299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13300/* end confdefs.h. */ 13301 13302/* Override any GCC internal prototype to avoid an error. 13303 Use char because int might match the return type of a GCC 13304 builtin and then its argument prototype would still apply. */ 13305char dld_link (); 13306int 13307main (void) 13308{ 13309return dld_link (); 13310 ; 13311 return 0; 13312} 13313_ACEOF 13314if ac_fn_c_try_link "$LINENO" 13315then : 13316 ac_cv_lib_dld_dld_link=yes 13317else $as_nop 13318 ac_cv_lib_dld_dld_link=no 13319fi 13320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13321 conftest$ac_exeext conftest.$ac_ext 13322LIBS=$ac_check_lib_save_LIBS 13323fi 13324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13325printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13326if test "x$ac_cv_lib_dld_dld_link" = xyes 13327then : 13328 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13329fi 13330 13331 13332fi 13333 13334 13335fi 13336 13337 13338fi 13339 13340 13341fi 13342 13343 13344fi 13345 13346 ;; 13347 esac 13348 13349 if test no = "$lt_cv_dlopen"; then 13350 enable_dlopen=no 13351 else 13352 enable_dlopen=yes 13353 fi 13354 13355 case $lt_cv_dlopen in 13356 dlopen) 13357 save_CPPFLAGS=$CPPFLAGS 13358 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13359 13360 save_LDFLAGS=$LDFLAGS 13361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13362 13363 save_LIBS=$LIBS 13364 LIBS="$lt_cv_dlopen_libs $LIBS" 13365 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13367printf %s "checking whether a program can dlopen itself... " >&6; } 13368if test ${lt_cv_dlopen_self+y} 13369then : 13370 printf %s "(cached) " >&6 13371else $as_nop 13372 if test yes = "$cross_compiling"; then : 13373 lt_cv_dlopen_self=cross 13374else 13375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13376 lt_status=$lt_dlunknown 13377 cat > conftest.$ac_ext <<_LT_EOF 13378#line $LINENO "configure" 13379#include "confdefs.h" 13380 13381#if HAVE_DLFCN_H 13382#include <dlfcn.h> 13383#endif 13384 13385#include <stdio.h> 13386 13387#ifdef RTLD_GLOBAL 13388# define LT_DLGLOBAL RTLD_GLOBAL 13389#else 13390# ifdef DL_GLOBAL 13391# define LT_DLGLOBAL DL_GLOBAL 13392# else 13393# define LT_DLGLOBAL 0 13394# endif 13395#endif 13396 13397/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13398 find out it does not work in some platform. */ 13399#ifndef LT_DLLAZY_OR_NOW 13400# ifdef RTLD_LAZY 13401# define LT_DLLAZY_OR_NOW RTLD_LAZY 13402# else 13403# ifdef DL_LAZY 13404# define LT_DLLAZY_OR_NOW DL_LAZY 13405# else 13406# ifdef RTLD_NOW 13407# define LT_DLLAZY_OR_NOW RTLD_NOW 13408# else 13409# ifdef DL_NOW 13410# define LT_DLLAZY_OR_NOW DL_NOW 13411# else 13412# define LT_DLLAZY_OR_NOW 0 13413# endif 13414# endif 13415# endif 13416# endif 13417#endif 13418 13419/* When -fvisibility=hidden is used, assume the code has been annotated 13420 correspondingly for the symbols needed. */ 13421#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13422int fnord () __attribute__((visibility("default"))); 13423#endif 13424 13425int fnord () { return 42; } 13426int main () 13427{ 13428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13429 int status = $lt_dlunknown; 13430 13431 if (self) 13432 { 13433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13434 else 13435 { 13436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13437 else puts (dlerror ()); 13438 } 13439 /* dlclose (self); */ 13440 } 13441 else 13442 puts (dlerror ()); 13443 13444 return status; 13445} 13446_LT_EOF 13447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13448 (eval $ac_link) 2>&5 13449 ac_status=$? 13450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13451 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13452 (./conftest; exit; ) >&5 2>/dev/null 13453 lt_status=$? 13454 case x$lt_status in 13455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13457 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13458 esac 13459 else : 13460 # compilation failed 13461 lt_cv_dlopen_self=no 13462 fi 13463fi 13464rm -fr conftest* 13465 13466 13467fi 13468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13469printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13470 13471 if test yes = "$lt_cv_dlopen_self"; then 13472 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13474printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13475if test ${lt_cv_dlopen_self_static+y} 13476then : 13477 printf %s "(cached) " >&6 13478else $as_nop 13479 if test yes = "$cross_compiling"; then : 13480 lt_cv_dlopen_self_static=cross 13481else 13482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13483 lt_status=$lt_dlunknown 13484 cat > conftest.$ac_ext <<_LT_EOF 13485#line $LINENO "configure" 13486#include "confdefs.h" 13487 13488#if HAVE_DLFCN_H 13489#include <dlfcn.h> 13490#endif 13491 13492#include <stdio.h> 13493 13494#ifdef RTLD_GLOBAL 13495# define LT_DLGLOBAL RTLD_GLOBAL 13496#else 13497# ifdef DL_GLOBAL 13498# define LT_DLGLOBAL DL_GLOBAL 13499# else 13500# define LT_DLGLOBAL 0 13501# endif 13502#endif 13503 13504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13505 find out it does not work in some platform. */ 13506#ifndef LT_DLLAZY_OR_NOW 13507# ifdef RTLD_LAZY 13508# define LT_DLLAZY_OR_NOW RTLD_LAZY 13509# else 13510# ifdef DL_LAZY 13511# define LT_DLLAZY_OR_NOW DL_LAZY 13512# else 13513# ifdef RTLD_NOW 13514# define LT_DLLAZY_OR_NOW RTLD_NOW 13515# else 13516# ifdef DL_NOW 13517# define LT_DLLAZY_OR_NOW DL_NOW 13518# else 13519# define LT_DLLAZY_OR_NOW 0 13520# endif 13521# endif 13522# endif 13523# endif 13524#endif 13525 13526/* When -fvisibility=hidden is used, assume the code has been annotated 13527 correspondingly for the symbols needed. */ 13528#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13529int fnord () __attribute__((visibility("default"))); 13530#endif 13531 13532int fnord () { return 42; } 13533int main () 13534{ 13535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13536 int status = $lt_dlunknown; 13537 13538 if (self) 13539 { 13540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13541 else 13542 { 13543 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13544 else puts (dlerror ()); 13545 } 13546 /* dlclose (self); */ 13547 } 13548 else 13549 puts (dlerror ()); 13550 13551 return status; 13552} 13553_LT_EOF 13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13555 (eval $ac_link) 2>&5 13556 ac_status=$? 13557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13558 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13559 (./conftest; exit; ) >&5 2>/dev/null 13560 lt_status=$? 13561 case x$lt_status in 13562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13565 esac 13566 else : 13567 # compilation failed 13568 lt_cv_dlopen_self_static=no 13569 fi 13570fi 13571rm -fr conftest* 13572 13573 13574fi 13575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13576printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13577 fi 13578 13579 CPPFLAGS=$save_CPPFLAGS 13580 LDFLAGS=$save_LDFLAGS 13581 LIBS=$save_LIBS 13582 ;; 13583 esac 13584 13585 case $lt_cv_dlopen_self in 13586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13587 *) enable_dlopen_self=unknown ;; 13588 esac 13589 13590 case $lt_cv_dlopen_self_static in 13591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13592 *) enable_dlopen_self_static=unknown ;; 13593 esac 13594fi 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612striplib= 13613old_striplib= 13614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13615printf %s "checking whether stripping libraries is possible... " >&6; } 13616if test -z "$STRIP"; then 13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13618printf "%s\n" "no" >&6; } 13619else 13620 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13621 old_striplib="$STRIP --strip-debug" 13622 striplib="$STRIP --strip-unneeded" 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13624printf "%s\n" "yes" >&6; } 13625 else 13626 case $host_os in 13627 darwin*) 13628 # FIXME - insert some real tests, host_os isn't really good enough 13629 striplib="$STRIP -x" 13630 old_striplib="$STRIP -S" 13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13632printf "%s\n" "yes" >&6; } 13633 ;; 13634 freebsd*) 13635 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13636 old_striplib="$STRIP --strip-debug" 13637 striplib="$STRIP --strip-unneeded" 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13639printf "%s\n" "yes" >&6; } 13640 else 13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13642printf "%s\n" "no" >&6; } 13643 fi 13644 ;; 13645 *) 13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13647printf "%s\n" "no" >&6; } 13648 ;; 13649 esac 13650 fi 13651fi 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 # Report what library types will actually be built 13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13666printf %s "checking if libtool supports shared libraries... " >&6; } 13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13668printf "%s\n" "$can_build_shared" >&6; } 13669 13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13671printf %s "checking whether to build shared libraries... " >&6; } 13672 test no = "$can_build_shared" && enable_shared=no 13673 13674 # On AIX, shared libraries and static libraries use the same namespace, and 13675 # are all built from PIC. 13676 case $host_os in 13677 aix3*) 13678 test yes = "$enable_shared" && enable_static=no 13679 if test -n "$RANLIB"; then 13680 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13681 postinstall_cmds='$RANLIB $lib' 13682 fi 13683 ;; 13684 13685 aix[4-9]*) 13686 if test ia64 != "$host_cpu"; then 13687 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13688 yes,aix,yes) ;; # shared object as lib.so file only 13689 yes,svr4,*) ;; # shared object as lib.so archive member only 13690 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13691 esac 13692 fi 13693 ;; 13694 esac 13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13696printf "%s\n" "$enable_shared" >&6; } 13697 13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13699printf %s "checking whether to build static libraries... " >&6; } 13700 # Make sure either enable_shared or enable_static is yes. 13701 test yes = "$enable_shared" || enable_static=yes 13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13703printf "%s\n" "$enable_static" >&6; } 13704 13705 13706 13707 13708fi 13709ac_ext=c 13710ac_cpp='$CPP $CPPFLAGS' 13711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13713ac_compiler_gnu=$ac_cv_c_compiler_gnu 13714 13715CC=$lt_save_CC 13716 13717 if test -n "$CXX" && ( test no != "$CXX" && 13718 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13719 (test g++ != "$CXX"))); then 13720 ac_ext=cpp 13721ac_cpp='$CXXCPP $CPPFLAGS' 13722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13726printf %s "checking how to run the C++ preprocessor... " >&6; } 13727if test -z "$CXXCPP"; then 13728 if test ${ac_cv_prog_CXXCPP+y} 13729then : 13730 printf %s "(cached) " >&6 13731else $as_nop 13732 # Double quotes because $CXX needs to be expanded 13733 for CXXCPP in "$CXX -E" cpp /lib/cpp 13734 do 13735 ac_preproc_ok=false 13736for ac_cxx_preproc_warn_flag in '' yes 13737do 13738 # Use a header file that comes with gcc, so configuring glibc 13739 # with a fresh cross-compiler works. 13740 # On the NeXT, cc -E runs the code through the compiler's parser, 13741 # not just through cpp. "Syntax error" is here to catch this case. 13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13743/* end confdefs.h. */ 13744#include <limits.h> 13745 Syntax error 13746_ACEOF 13747if ac_fn_cxx_try_cpp "$LINENO" 13748then : 13749 13750else $as_nop 13751 # Broken: fails on valid input. 13752continue 13753fi 13754rm -f conftest.err conftest.i conftest.$ac_ext 13755 13756 # OK, works on sane cases. Now check whether nonexistent headers 13757 # can be detected and how. 13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13759/* end confdefs.h. */ 13760#include <ac_nonexistent.h> 13761_ACEOF 13762if ac_fn_cxx_try_cpp "$LINENO" 13763then : 13764 # Broken: success on invalid input. 13765continue 13766else $as_nop 13767 # Passes both tests. 13768ac_preproc_ok=: 13769break 13770fi 13771rm -f conftest.err conftest.i conftest.$ac_ext 13772 13773done 13774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13775rm -f conftest.i conftest.err conftest.$ac_ext 13776if $ac_preproc_ok 13777then : 13778 break 13779fi 13780 13781 done 13782 ac_cv_prog_CXXCPP=$CXXCPP 13783 13784fi 13785 CXXCPP=$ac_cv_prog_CXXCPP 13786else 13787 ac_cv_prog_CXXCPP=$CXXCPP 13788fi 13789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13790printf "%s\n" "$CXXCPP" >&6; } 13791ac_preproc_ok=false 13792for ac_cxx_preproc_warn_flag in '' yes 13793do 13794 # Use a header file that comes with gcc, so configuring glibc 13795 # with a fresh cross-compiler works. 13796 # On the NeXT, cc -E runs the code through the compiler's parser, 13797 # not just through cpp. "Syntax error" is here to catch this case. 13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13799/* end confdefs.h. */ 13800#include <limits.h> 13801 Syntax error 13802_ACEOF 13803if ac_fn_cxx_try_cpp "$LINENO" 13804then : 13805 13806else $as_nop 13807 # Broken: fails on valid input. 13808continue 13809fi 13810rm -f conftest.err conftest.i conftest.$ac_ext 13811 13812 # OK, works on sane cases. Now check whether nonexistent headers 13813 # can be detected and how. 13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13815/* end confdefs.h. */ 13816#include <ac_nonexistent.h> 13817_ACEOF 13818if ac_fn_cxx_try_cpp "$LINENO" 13819then : 13820 # Broken: success on invalid input. 13821continue 13822else $as_nop 13823 # Passes both tests. 13824ac_preproc_ok=: 13825break 13826fi 13827rm -f conftest.err conftest.i conftest.$ac_ext 13828 13829done 13830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13831rm -f conftest.i conftest.err conftest.$ac_ext 13832if $ac_preproc_ok 13833then : 13834 13835else $as_nop 13836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13837printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13838as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13839See \`config.log' for more details" "$LINENO" 5; } 13840fi 13841 13842ac_ext=c 13843ac_cpp='$CPP $CPPFLAGS' 13844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13846ac_compiler_gnu=$ac_cv_c_compiler_gnu 13847 13848else 13849 _lt_caught_CXX_error=yes 13850fi 13851 13852ac_ext=cpp 13853ac_cpp='$CXXCPP $CPPFLAGS' 13854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13857 13858archive_cmds_need_lc_CXX=no 13859allow_undefined_flag_CXX= 13860always_export_symbols_CXX=no 13861archive_expsym_cmds_CXX= 13862compiler_needs_object_CXX=no 13863export_dynamic_flag_spec_CXX= 13864hardcode_direct_CXX=no 13865hardcode_direct_absolute_CXX=no 13866hardcode_libdir_flag_spec_CXX= 13867hardcode_libdir_separator_CXX= 13868hardcode_minus_L_CXX=no 13869hardcode_shlibpath_var_CXX=unsupported 13870hardcode_automatic_CXX=no 13871inherit_rpath_CXX=no 13872module_cmds_CXX= 13873module_expsym_cmds_CXX= 13874link_all_deplibs_CXX=unknown 13875old_archive_cmds_CXX=$old_archive_cmds 13876reload_flag_CXX=$reload_flag 13877reload_cmds_CXX=$reload_cmds 13878no_undefined_flag_CXX= 13879whole_archive_flag_spec_CXX= 13880enable_shared_with_static_runtimes_CXX=no 13881 13882# Source file extension for C++ test sources. 13883ac_ext=cpp 13884 13885# Object file extension for compiled C++ test sources. 13886objext=o 13887objext_CXX=$objext 13888 13889# No sense in running all these tests if we already determined that 13890# the CXX compiler isn't working. Some variables (like enable_shared) 13891# are currently assumed to apply to all compilers on this platform, 13892# and will be corrupted by setting them based on a non-working compiler. 13893if test yes != "$_lt_caught_CXX_error"; then 13894 # Code to be used in simple compile tests 13895 lt_simple_compile_test_code="int some_variable = 0;" 13896 13897 # Code to be used in simple link tests 13898 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13899 13900 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13901 13902 13903 13904 13905 13906 13907# If no C compiler was specified, use CC. 13908LTCC=${LTCC-"$CC"} 13909 13910# If no C compiler flags were specified, use CFLAGS. 13911LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13912 13913# Allow CC to be a program name with arguments. 13914compiler=$CC 13915 13916 13917 # save warnings/boilerplate of simple test code 13918 ac_outfile=conftest.$ac_objext 13919echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13920eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13921_lt_compiler_boilerplate=`cat conftest.err` 13922$RM conftest* 13923 13924 ac_outfile=conftest.$ac_objext 13925echo "$lt_simple_link_test_code" >conftest.$ac_ext 13926eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13927_lt_linker_boilerplate=`cat conftest.err` 13928$RM -r conftest* 13929 13930 13931 # Allow CC to be a program name with arguments. 13932 lt_save_CC=$CC 13933 lt_save_CFLAGS=$CFLAGS 13934 lt_save_LD=$LD 13935 lt_save_GCC=$GCC 13936 GCC=$GXX 13937 lt_save_with_gnu_ld=$with_gnu_ld 13938 lt_save_path_LD=$lt_cv_path_LD 13939 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13940 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13941 else 13942 $as_unset lt_cv_prog_gnu_ld 13943 fi 13944 if test -n "${lt_cv_path_LDCXX+set}"; then 13945 lt_cv_path_LD=$lt_cv_path_LDCXX 13946 else 13947 $as_unset lt_cv_path_LD 13948 fi 13949 test -z "${LDCXX+set}" || LD=$LDCXX 13950 CC=${CXX-"c++"} 13951 CFLAGS=$CXXFLAGS 13952 compiler=$CC 13953 compiler_CXX=$CC 13954 func_cc_basename $compiler 13955cc_basename=$func_cc_basename_result 13956 13957 13958 if test -n "$compiler"; then 13959 # We don't want -fno-exception when compiling C++ code, so set the 13960 # no_builtin_flag separately 13961 if test yes = "$GXX"; then 13962 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13963 else 13964 lt_prog_compiler_no_builtin_flag_CXX= 13965 fi 13966 13967 if test yes = "$GXX"; then 13968 # Set up default GNU C++ configuration 13969 13970 13971 13972# Check whether --with-gnu-ld was given. 13973if test ${with_gnu_ld+y} 13974then : 13975 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13976else $as_nop 13977 with_gnu_ld=no 13978fi 13979 13980ac_prog=ld 13981if test yes = "$GCC"; then 13982 # Check if gcc -print-prog-name=ld gives a path. 13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13984printf %s "checking for ld used by $CC... " >&6; } 13985 case $host in 13986 *-*-mingw*) 13987 # gcc leaves a trailing carriage return, which upsets mingw 13988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13989 *) 13990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13991 esac 13992 case $ac_prog in 13993 # Accept absolute paths. 13994 [\\/]* | ?:[\\/]*) 13995 re_direlt='/[^/][^/]*/\.\./' 13996 # Canonicalize the pathname of ld 13997 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13998 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13999 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14000 done 14001 test -z "$LD" && LD=$ac_prog 14002 ;; 14003 "") 14004 # If it fails, then pretend we aren't using GCC. 14005 ac_prog=ld 14006 ;; 14007 *) 14008 # If it is relative, then search for the first ld in PATH. 14009 with_gnu_ld=unknown 14010 ;; 14011 esac 14012elif test yes = "$with_gnu_ld"; then 14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14014printf %s "checking for GNU ld... " >&6; } 14015else 14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14017printf %s "checking for non-GNU ld... " >&6; } 14018fi 14019if test ${lt_cv_path_LD+y} 14020then : 14021 printf %s "(cached) " >&6 14022else $as_nop 14023 if test -z "$LD"; then 14024 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14025 for ac_dir in $PATH; do 14026 IFS=$lt_save_ifs 14027 test -z "$ac_dir" && ac_dir=. 14028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14029 lt_cv_path_LD=$ac_dir/$ac_prog 14030 # Check to see if the program is GNU ld. I'd rather use --version, 14031 # but apparently some variants of GNU ld only accept -v. 14032 # Break only if it was the GNU/non-GNU ld that we prefer. 14033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14034 *GNU* | *'with BFD'*) 14035 test no != "$with_gnu_ld" && break 14036 ;; 14037 *) 14038 test yes != "$with_gnu_ld" && break 14039 ;; 14040 esac 14041 fi 14042 done 14043 IFS=$lt_save_ifs 14044else 14045 lt_cv_path_LD=$LD # Let the user override the test with a path. 14046fi 14047fi 14048 14049LD=$lt_cv_path_LD 14050if test -n "$LD"; then 14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14052printf "%s\n" "$LD" >&6; } 14053else 14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14055printf "%s\n" "no" >&6; } 14056fi 14057test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14059printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 14060if test ${lt_cv_prog_gnu_ld+y} 14061then : 14062 printf %s "(cached) " >&6 14063else $as_nop 14064 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14065case `$LD -v 2>&1 </dev/null` in 14066*GNU* | *'with BFD'*) 14067 lt_cv_prog_gnu_ld=yes 14068 ;; 14069*) 14070 lt_cv_prog_gnu_ld=no 14071 ;; 14072esac 14073fi 14074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14075printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 14076with_gnu_ld=$lt_cv_prog_gnu_ld 14077 14078 14079 14080 14081 14082 14083 14084 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14085 # archiving commands below assume that GNU ld is being used. 14086 if test yes = "$with_gnu_ld"; then 14087 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14088 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' 14089 14090 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14091 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14092 14093 # If archive_cmds runs LD, not CC, wlarc should be empty 14094 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14095 # investigate it a little bit more. (MM) 14096 wlarc='$wl' 14097 14098 # ancient GNU ld didn't support --whole-archive et. al. 14099 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14100 $GREP 'no-whole-archive' > /dev/null; then 14101 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14102 else 14103 whole_archive_flag_spec_CXX= 14104 fi 14105 else 14106 with_gnu_ld=no 14107 wlarc= 14108 14109 # A generic and very simple default shared library creation 14110 # command for GNU C++ for the case where it uses the native 14111 # linker, instead of GNU ld. If possible, this setting should 14112 # overridden to take advantage of the native linker features on 14113 # the platform it is being used on. 14114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14115 fi 14116 14117 # Commands to make compiler produce verbose output that lists 14118 # what "hidden" libraries, object files and flags are used when 14119 # linking a shared library. 14120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14121 14122 else 14123 GXX=no 14124 with_gnu_ld=no 14125 wlarc= 14126 fi 14127 14128 # PORTME: fill in a description of your system's C++ link characteristics 14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14130printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14131 ld_shlibs_CXX=yes 14132 case $host_os in 14133 aix3*) 14134 # FIXME: insert proper C++ library support 14135 ld_shlibs_CXX=no 14136 ;; 14137 aix[4-9]*) 14138 if test ia64 = "$host_cpu"; then 14139 # On IA64, the linker does run time linking by default, so we don't 14140 # have to do anything special. 14141 aix_use_runtimelinking=no 14142 exp_sym_flag='-Bexport' 14143 no_entry_flag= 14144 else 14145 aix_use_runtimelinking=no 14146 14147 # Test if we are trying to use run time linking or normal 14148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14149 # have runtime linking enabled, and use it for executables. 14150 # For shared libraries, we enable/disable runtime linking 14151 # depending on the kind of the shared library created - 14152 # when "with_aix_soname,aix_use_runtimelinking" is: 14153 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14154 # "aix,yes" lib.so shared, rtl:yes, for executables 14155 # lib.a static archive 14156 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14157 # lib.a(lib.so.V) shared, rtl:no, for executables 14158 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14159 # lib.a(lib.so.V) shared, rtl:no 14160 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14161 # lib.a static archive 14162 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14163 for ld_flag in $LDFLAGS; do 14164 case $ld_flag in 14165 *-brtl*) 14166 aix_use_runtimelinking=yes 14167 break 14168 ;; 14169 esac 14170 done 14171 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14172 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14173 # so we don't have lib.a shared libs to link our executables. 14174 # We have to force runtime linking in this case. 14175 aix_use_runtimelinking=yes 14176 LDFLAGS="$LDFLAGS -Wl,-brtl" 14177 fi 14178 ;; 14179 esac 14180 14181 exp_sym_flag='-bexport' 14182 no_entry_flag='-bnoentry' 14183 fi 14184 14185 # When large executables or shared objects are built, AIX ld can 14186 # have problems creating the table of contents. If linking a library 14187 # or program results in "error TOC overflow" add -mminimal-toc to 14188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14190 14191 archive_cmds_CXX='' 14192 hardcode_direct_CXX=yes 14193 hardcode_direct_absolute_CXX=yes 14194 hardcode_libdir_separator_CXX=':' 14195 link_all_deplibs_CXX=yes 14196 file_list_spec_CXX='$wl-f,' 14197 case $with_aix_soname,$aix_use_runtimelinking in 14198 aix,*) ;; # no import file 14199 svr4,* | *,yes) # use import file 14200 # The Import File defines what to hardcode. 14201 hardcode_direct_CXX=no 14202 hardcode_direct_absolute_CXX=no 14203 ;; 14204 esac 14205 14206 if test yes = "$GXX"; then 14207 case $host_os in aix4.[012]|aix4.[012].*) 14208 # We only want to do this on AIX 4.2 and lower, the check 14209 # below for broken collect2 doesn't work under 4.3+ 14210 collect2name=`$CC -print-prog-name=collect2` 14211 if test -f "$collect2name" && 14212 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14213 then 14214 # We have reworked collect2 14215 : 14216 else 14217 # We have old collect2 14218 hardcode_direct_CXX=unsupported 14219 # It fails to find uninstalled libraries when the uninstalled 14220 # path is not listed in the libpath. Setting hardcode_minus_L 14221 # to unsupported forces relinking 14222 hardcode_minus_L_CXX=yes 14223 hardcode_libdir_flag_spec_CXX='-L$libdir' 14224 hardcode_libdir_separator_CXX= 14225 fi 14226 esac 14227 shared_flag='-shared' 14228 if test yes = "$aix_use_runtimelinking"; then 14229 shared_flag=$shared_flag' $wl-G' 14230 fi 14231 # Need to ensure runtime linking is disabled for the traditional 14232 # shared library, or the linker may eventually find shared libraries 14233 # /with/ Import File - we do not want to mix them. 14234 shared_flag_aix='-shared' 14235 shared_flag_svr4='-shared $wl-G' 14236 else 14237 # not using gcc 14238 if test ia64 = "$host_cpu"; then 14239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14240 # chokes on -Wl,-G. The following line is correct: 14241 shared_flag='-G' 14242 else 14243 if test yes = "$aix_use_runtimelinking"; then 14244 shared_flag='$wl-G' 14245 else 14246 shared_flag='$wl-bM:SRE' 14247 fi 14248 shared_flag_aix='$wl-bM:SRE' 14249 shared_flag_svr4='$wl-G' 14250 fi 14251 fi 14252 14253 export_dynamic_flag_spec_CXX='$wl-bexpall' 14254 # It seems that -bexpall does not export symbols beginning with 14255 # underscore (_), so it is better to generate a list of symbols to 14256 # export. 14257 always_export_symbols_CXX=yes 14258 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14259 # Warning - without using the other runtime loading flags (-brtl), 14260 # -berok will link without error, but may produce a broken library. 14261 # The "-G" linker flag allows undefined symbols. 14262 no_undefined_flag_CXX='-bernotok' 14263 # Determine the default libpath from the value encoded in an empty 14264 # executable. 14265 if test set = "${lt_cv_aix_libpath+set}"; then 14266 aix_libpath=$lt_cv_aix_libpath 14267else 14268 if test ${lt_cv_aix_libpath__CXX+y} 14269then : 14270 printf %s "(cached) " >&6 14271else $as_nop 14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14273/* end confdefs.h. */ 14274 14275int 14276main (void) 14277{ 14278 14279 ; 14280 return 0; 14281} 14282_ACEOF 14283if ac_fn_cxx_try_link "$LINENO" 14284then : 14285 14286 lt_aix_libpath_sed=' 14287 /Import File Strings/,/^$/ { 14288 /^0/ { 14289 s/^0 *\([^ ]*\) *$/\1/ 14290 p 14291 } 14292 }' 14293 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14294 # Check for a 64-bit object if we didn't find anything. 14295 if test -z "$lt_cv_aix_libpath__CXX"; then 14296 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14297 fi 14298fi 14299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14300 conftest$ac_exeext conftest.$ac_ext 14301 if test -z "$lt_cv_aix_libpath__CXX"; then 14302 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14303 fi 14304 14305fi 14306 14307 aix_libpath=$lt_cv_aix_libpath__CXX 14308fi 14309 14310 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14311 14312 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 14313 else 14314 if test ia64 = "$host_cpu"; then 14315 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14316 allow_undefined_flag_CXX="-z nodefs" 14317 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" 14318 else 14319 # Determine the default libpath from the value encoded in an 14320 # empty executable. 14321 if test set = "${lt_cv_aix_libpath+set}"; then 14322 aix_libpath=$lt_cv_aix_libpath 14323else 14324 if test ${lt_cv_aix_libpath__CXX+y} 14325then : 14326 printf %s "(cached) " >&6 14327else $as_nop 14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14329/* end confdefs.h. */ 14330 14331int 14332main (void) 14333{ 14334 14335 ; 14336 return 0; 14337} 14338_ACEOF 14339if ac_fn_cxx_try_link "$LINENO" 14340then : 14341 14342 lt_aix_libpath_sed=' 14343 /Import File Strings/,/^$/ { 14344 /^0/ { 14345 s/^0 *\([^ ]*\) *$/\1/ 14346 p 14347 } 14348 }' 14349 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14350 # Check for a 64-bit object if we didn't find anything. 14351 if test -z "$lt_cv_aix_libpath__CXX"; then 14352 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14353 fi 14354fi 14355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14356 conftest$ac_exeext conftest.$ac_ext 14357 if test -z "$lt_cv_aix_libpath__CXX"; then 14358 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14359 fi 14360 14361fi 14362 14363 aix_libpath=$lt_cv_aix_libpath__CXX 14364fi 14365 14366 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14367 # Warning - without using the other run time loading flags, 14368 # -berok will link without error, but may produce a broken library. 14369 no_undefined_flag_CXX=' $wl-bernotok' 14370 allow_undefined_flag_CXX=' $wl-berok' 14371 if test yes = "$with_gnu_ld"; then 14372 # We only use this code for GNU lds that support --whole-archive. 14373 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14374 else 14375 # Exported symbols can be pulled into shared objects from archives 14376 whole_archive_flag_spec_CXX='$convenience' 14377 fi 14378 archive_cmds_need_lc_CXX=yes 14379 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14380 # -brtl affects multiple linker settings, -berok does not and is overridden later 14381 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14382 if test svr4 != "$with_aix_soname"; then 14383 # This is similar to how AIX traditionally builds its shared 14384 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14385 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' 14386 fi 14387 if test aix != "$with_aix_soname"; then 14388 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' 14389 else 14390 # used by -dlpreopen to get the symbols 14391 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14392 fi 14393 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14394 fi 14395 fi 14396 ;; 14397 14398 beos*) 14399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14400 allow_undefined_flag_CXX=unsupported 14401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14402 # support --undefined. This deserves some investigation. FIXME 14403 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14404 else 14405 ld_shlibs_CXX=no 14406 fi 14407 ;; 14408 14409 chorus*) 14410 case $cc_basename in 14411 *) 14412 # FIXME: insert proper C++ library support 14413 ld_shlibs_CXX=no 14414 ;; 14415 esac 14416 ;; 14417 14418 cygwin* | mingw* | pw32* | cegcc*) 14419 case $GXX,$cc_basename in 14420 ,cl* | no,cl* | ,icl* | no,icl*) 14421 # Native MSVC or ICC 14422 # hardcode_libdir_flag_spec is actually meaningless, as there is 14423 # no search path for DLLs. 14424 hardcode_libdir_flag_spec_CXX=' ' 14425 allow_undefined_flag_CXX=unsupported 14426 always_export_symbols_CXX=yes 14427 file_list_spec_CXX='@' 14428 # Tell ltmain to make .lib files, not .a files. 14429 libext=lib 14430 # Tell ltmain to make .dll files, not .so files. 14431 shrext_cmds=.dll 14432 # FIXME: Setting linknames here is a bad hack. 14433 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14434 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14435 cp "$export_symbols" "$output_objdir/$soname.def"; 14436 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14437 else 14438 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14439 fi~ 14440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14441 linknames=' 14442 # The linker will not automatically build a static lib if we build a DLL. 14443 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14444 enable_shared_with_static_runtimes_CXX=yes 14445 # Don't use ranlib 14446 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14447 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14448 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14449 case $lt_outputfile in 14450 *.exe|*.EXE) ;; 14451 *) 14452 lt_outputfile=$lt_outputfile.exe 14453 lt_tool_outputfile=$lt_tool_outputfile.exe 14454 ;; 14455 esac~ 14456 func_to_tool_file "$lt_outputfile"~ 14457 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14458 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14459 $RM "$lt_outputfile.manifest"; 14460 fi' 14461 ;; 14462 *) 14463 # g++ 14464 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14465 # as there is no search path for DLLs. 14466 hardcode_libdir_flag_spec_CXX='-L$libdir' 14467 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14468 allow_undefined_flag_CXX=unsupported 14469 always_export_symbols_CXX=no 14470 enable_shared_with_static_runtimes_CXX=yes 14471 14472 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14473 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' 14474 # If the export-symbols file already is a .def file, use it as 14475 # is; otherwise, prepend EXPORTS... 14476 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14477 cp $export_symbols $output_objdir/$soname.def; 14478 else 14479 echo EXPORTS > $output_objdir/$soname.def; 14480 cat $export_symbols >> $output_objdir/$soname.def; 14481 fi~ 14482 $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' 14483 else 14484 ld_shlibs_CXX=no 14485 fi 14486 ;; 14487 esac 14488 ;; 14489 darwin* | rhapsody*) 14490 14491 14492 archive_cmds_need_lc_CXX=no 14493 hardcode_direct_CXX=no 14494 hardcode_automatic_CXX=yes 14495 hardcode_shlibpath_var_CXX=unsupported 14496 if test yes = "$lt_cv_ld_force_load"; then 14497 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\"`' 14498 14499 else 14500 whole_archive_flag_spec_CXX='' 14501 fi 14502 link_all_deplibs_CXX=yes 14503 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14504 case $cc_basename in 14505 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14506 *) _lt_dar_can_shared=$GCC ;; 14507 esac 14508 if test yes = "$_lt_dar_can_shared"; then 14509 output_verbose_link_cmd=func_echo_all 14510 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" 14511 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14512 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" 14513 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" 14514 if test yes != "$lt_cv_apple_cc_single_mod"; then 14515 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" 14516 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" 14517 fi 14518 14519 else 14520 ld_shlibs_CXX=no 14521 fi 14522 14523 ;; 14524 14525 os2*) 14526 hardcode_libdir_flag_spec_CXX='-L$libdir' 14527 hardcode_minus_L_CXX=yes 14528 allow_undefined_flag_CXX=unsupported 14529 shrext_cmds=.dll 14530 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14531 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14532 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14533 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14534 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14535 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14536 emximp -o $lib $output_objdir/$libname.def' 14537 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14538 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14539 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14540 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14541 prefix_cmds="$SED"~ 14542 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14543 prefix_cmds="$prefix_cmds -e 1d"; 14544 fi~ 14545 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14546 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14548 emximp -o $lib $output_objdir/$libname.def' 14549 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14550 enable_shared_with_static_runtimes_CXX=yes 14551 file_list_spec_CXX='@' 14552 ;; 14553 14554 dgux*) 14555 case $cc_basename in 14556 ec++*) 14557 # FIXME: insert proper C++ library support 14558 ld_shlibs_CXX=no 14559 ;; 14560 ghcx*) 14561 # Green Hills C++ Compiler 14562 # FIXME: insert proper C++ library support 14563 ld_shlibs_CXX=no 14564 ;; 14565 *) 14566 # FIXME: insert proper C++ library support 14567 ld_shlibs_CXX=no 14568 ;; 14569 esac 14570 ;; 14571 14572 freebsd2.*) 14573 # C++ shared libraries reported to be fairly broken before 14574 # switch to ELF 14575 ld_shlibs_CXX=no 14576 ;; 14577 14578 freebsd-elf*) 14579 archive_cmds_need_lc_CXX=no 14580 ;; 14581 14582 freebsd* | dragonfly* | midnightbsd*) 14583 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14584 # conventions 14585 ld_shlibs_CXX=yes 14586 ;; 14587 14588 haiku*) 14589 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14590 link_all_deplibs_CXX=yes 14591 ;; 14592 14593 hpux9*) 14594 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14595 hardcode_libdir_separator_CXX=: 14596 export_dynamic_flag_spec_CXX='$wl-E' 14597 hardcode_direct_CXX=yes 14598 hardcode_minus_L_CXX=yes # Not in the search PATH, 14599 # but as the default 14600 # location of the library. 14601 14602 case $cc_basename in 14603 CC*) 14604 # FIXME: insert proper C++ library support 14605 ld_shlibs_CXX=no 14606 ;; 14607 aCC*) 14608 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' 14609 # Commands to make compiler produce verbose output that lists 14610 # what "hidden" libraries, object files and flags are used when 14611 # linking a shared library. 14612 # 14613 # There doesn't appear to be a way to prevent this compiler from 14614 # explicitly linking system object files so we need to strip them 14615 # from the output so that they don't get included in the library 14616 # dependencies. 14617 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"' 14618 ;; 14619 *) 14620 if test yes = "$GXX"; then 14621 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' 14622 else 14623 # FIXME: insert proper C++ library support 14624 ld_shlibs_CXX=no 14625 fi 14626 ;; 14627 esac 14628 ;; 14629 14630 hpux10*|hpux11*) 14631 if test no = "$with_gnu_ld"; then 14632 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14633 hardcode_libdir_separator_CXX=: 14634 14635 case $host_cpu in 14636 hppa*64*|ia64*) 14637 ;; 14638 *) 14639 export_dynamic_flag_spec_CXX='$wl-E' 14640 ;; 14641 esac 14642 fi 14643 case $host_cpu in 14644 hppa*64*|ia64*) 14645 hardcode_direct_CXX=no 14646 hardcode_shlibpath_var_CXX=no 14647 ;; 14648 *) 14649 hardcode_direct_CXX=yes 14650 hardcode_direct_absolute_CXX=yes 14651 hardcode_minus_L_CXX=yes # Not in the search PATH, 14652 # but as the default 14653 # location of the library. 14654 ;; 14655 esac 14656 14657 case $cc_basename in 14658 CC*) 14659 # FIXME: insert proper C++ library support 14660 ld_shlibs_CXX=no 14661 ;; 14662 aCC*) 14663 case $host_cpu in 14664 hppa*64*) 14665 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14666 ;; 14667 ia64*) 14668 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14669 ;; 14670 *) 14671 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14672 ;; 14673 esac 14674 # Commands to make compiler produce verbose output that lists 14675 # what "hidden" libraries, object files and flags are used when 14676 # linking a shared library. 14677 # 14678 # There doesn't appear to be a way to prevent this compiler from 14679 # explicitly linking system object files so we need to strip them 14680 # from the output so that they don't get included in the library 14681 # dependencies. 14682 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"' 14683 ;; 14684 *) 14685 if test yes = "$GXX"; then 14686 if test no = "$with_gnu_ld"; then 14687 case $host_cpu in 14688 hppa*64*) 14689 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14690 ;; 14691 ia64*) 14692 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14693 ;; 14694 *) 14695 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' 14696 ;; 14697 esac 14698 fi 14699 else 14700 # FIXME: insert proper C++ library support 14701 ld_shlibs_CXX=no 14702 fi 14703 ;; 14704 esac 14705 ;; 14706 14707 interix[3-9]*) 14708 hardcode_direct_CXX=no 14709 hardcode_shlibpath_var_CXX=no 14710 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14711 export_dynamic_flag_spec_CXX='$wl-E' 14712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14713 # Instead, shared libraries are loaded at an image base (0x10000000 by 14714 # default) and relocated if they conflict, which is a slow very memory 14715 # consuming and fragmenting process. To avoid this, we pick a random, 14716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14717 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14718 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' 14719 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' 14720 ;; 14721 irix5* | irix6*) 14722 case $cc_basename in 14723 CC*) 14724 # SGI C++ 14725 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' 14726 14727 # Archives containing C++ object files must be created using 14728 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14729 # necessary to make sure instantiated templates are included 14730 # in the archive. 14731 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14732 ;; 14733 *) 14734 if test yes = "$GXX"; then 14735 if test no = "$with_gnu_ld"; then 14736 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' 14737 else 14738 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' 14739 fi 14740 fi 14741 link_all_deplibs_CXX=yes 14742 ;; 14743 esac 14744 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14745 hardcode_libdir_separator_CXX=: 14746 inherit_rpath_CXX=yes 14747 ;; 14748 14749 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14750 case $cc_basename in 14751 KCC*) 14752 # Kuck and Associates, Inc. (KAI) C++ Compiler 14753 14754 # KCC will only create a shared library if the output file 14755 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14756 # to its proper name (with version) after linking. 14757 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' 14758 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' 14759 # Commands to make compiler produce verbose output that lists 14760 # what "hidden" libraries, object files and flags are used when 14761 # linking a shared library. 14762 # 14763 # There doesn't appear to be a way to prevent this compiler from 14764 # explicitly linking system object files so we need to strip them 14765 # from the output so that they don't get included in the library 14766 # dependencies. 14767 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"' 14768 14769 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14770 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14771 14772 # Archives containing C++ object files must be created using 14773 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14774 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14775 ;; 14776 icpc* | ecpc* ) 14777 # Intel C++ 14778 with_gnu_ld=yes 14779 # version 8.0 and above of icpc choke on multiply defined symbols 14780 # if we add $predep_objects and $postdep_objects, however 7.1 and 14781 # earlier do not add the objects themselves. 14782 case `$CC -V 2>&1` in 14783 *"Version 7."*) 14784 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14785 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' 14786 ;; 14787 *) # Version 8.0 or newer 14788 tmp_idyn= 14789 case $host_cpu in 14790 ia64*) tmp_idyn=' -i_dynamic';; 14791 esac 14792 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14793 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' 14794 ;; 14795 esac 14796 archive_cmds_need_lc_CXX=no 14797 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14798 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14799 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14800 ;; 14801 pgCC* | pgcpp*) 14802 # Portland Group C++ compiler 14803 case `$CC -V` in 14804 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14805 prelink_cmds_CXX='tpldir=Template.dir~ 14806 rm -rf $tpldir~ 14807 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14808 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14809 old_archive_cmds_CXX='tpldir=Template.dir~ 14810 rm -rf $tpldir~ 14811 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14812 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14813 $RANLIB $oldlib' 14814 archive_cmds_CXX='tpldir=Template.dir~ 14815 rm -rf $tpldir~ 14816 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14817 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14818 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14819 rm -rf $tpldir~ 14820 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14821 $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' 14822 ;; 14823 *) # Version 6 and above use weak symbols 14824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14825 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' 14826 ;; 14827 esac 14828 14829 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14830 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14831 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' 14832 ;; 14833 cxx*) 14834 # Compaq C++ 14835 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14836 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' 14837 14838 runpath_var=LD_RUN_PATH 14839 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14840 hardcode_libdir_separator_CXX=: 14841 14842 # Commands to make compiler produce verbose output that lists 14843 # what "hidden" libraries, object files and flags are used when 14844 # linking a shared library. 14845 # 14846 # There doesn't appear to be a way to prevent this compiler from 14847 # explicitly linking system object files so we need to strip them 14848 # from the output so that they don't get included in the library 14849 # dependencies. 14850 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' 14851 ;; 14852 xl* | mpixl* | bgxl*) 14853 # IBM XL 8.0 on PPC, with GNU ld 14854 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14855 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14856 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14857 if test yes = "$supports_anon_versioning"; then 14858 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14859 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14860 echo "local: *; };" >> $output_objdir/$libname.ver~ 14861 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14862 fi 14863 ;; 14864 *) 14865 case `$CC -V 2>&1 | $SED 5q` in 14866 *Sun\ C*) 14867 # Sun C++ 5.9 14868 no_undefined_flag_CXX=' -zdefs' 14869 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14870 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' 14871 hardcode_libdir_flag_spec_CXX='-R$libdir' 14872 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' 14873 compiler_needs_object_CXX=yes 14874 14875 # Not sure whether something based on 14876 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14877 # would be better. 14878 output_verbose_link_cmd='func_echo_all' 14879 14880 # Archives containing C++ object files must be created using 14881 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14882 # necessary to make sure instantiated templates are included 14883 # in the archive. 14884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14885 ;; 14886 esac 14887 ;; 14888 esac 14889 ;; 14890 14891 lynxos*) 14892 # FIXME: insert proper C++ library support 14893 ld_shlibs_CXX=no 14894 ;; 14895 14896 m88k*) 14897 # FIXME: insert proper C++ library support 14898 ld_shlibs_CXX=no 14899 ;; 14900 14901 mvs*) 14902 case $cc_basename in 14903 cxx*) 14904 # FIXME: insert proper C++ library support 14905 ld_shlibs_CXX=no 14906 ;; 14907 *) 14908 # FIXME: insert proper C++ library support 14909 ld_shlibs_CXX=no 14910 ;; 14911 esac 14912 ;; 14913 14914 netbsd*) 14915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14916 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14917 wlarc= 14918 hardcode_libdir_flag_spec_CXX='-R$libdir' 14919 hardcode_direct_CXX=yes 14920 hardcode_shlibpath_var_CXX=no 14921 fi 14922 # Workaround some broken pre-1.5 toolchains 14923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14924 ;; 14925 14926 *nto* | *qnx*) 14927 ld_shlibs_CXX=yes 14928 ;; 14929 14930 openbsd* | bitrig*) 14931 if test -f /usr/libexec/ld.so; then 14932 hardcode_direct_CXX=yes 14933 hardcode_shlibpath_var_CXX=no 14934 hardcode_direct_absolute_CXX=yes 14935 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14936 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14938 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14939 export_dynamic_flag_spec_CXX='$wl-E' 14940 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14941 fi 14942 output_verbose_link_cmd=func_echo_all 14943 else 14944 ld_shlibs_CXX=no 14945 fi 14946 ;; 14947 14948 osf3* | osf4* | osf5*) 14949 case $cc_basename in 14950 KCC*) 14951 # Kuck and Associates, Inc. (KAI) C++ Compiler 14952 14953 # KCC will only create a shared library if the output file 14954 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14955 # to its proper name (with version) after linking. 14956 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' 14957 14958 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14959 hardcode_libdir_separator_CXX=: 14960 14961 # Archives containing C++ object files must be created using 14962 # the KAI C++ compiler. 14963 case $host in 14964 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14965 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14966 esac 14967 ;; 14968 RCC*) 14969 # Rational C++ 2.4.1 14970 # FIXME: insert proper C++ library support 14971 ld_shlibs_CXX=no 14972 ;; 14973 cxx*) 14974 case $host in 14975 osf3*) 14976 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14977 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' 14978 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14979 ;; 14980 *) 14981 allow_undefined_flag_CXX=' -expect_unresolved \*' 14982 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' 14983 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14984 echo "-hidden">> $lib.exp~ 14985 $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~ 14986 $RM $lib.exp' 14987 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14988 ;; 14989 esac 14990 14991 hardcode_libdir_separator_CXX=: 14992 14993 # Commands to make compiler produce verbose output that lists 14994 # what "hidden" libraries, object files and flags are used when 14995 # linking a shared library. 14996 # 14997 # There doesn't appear to be a way to prevent this compiler from 14998 # explicitly linking system object files so we need to strip them 14999 # from the output so that they don't get included in the library 15000 # dependencies. 15001 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"' 15002 ;; 15003 *) 15004 if test yes,no = "$GXX,$with_gnu_ld"; then 15005 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15006 case $host in 15007 osf3*) 15008 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' 15009 ;; 15010 *) 15011 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' 15012 ;; 15013 esac 15014 15015 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15016 hardcode_libdir_separator_CXX=: 15017 15018 # Commands to make compiler produce verbose output that lists 15019 # what "hidden" libraries, object files and flags are used when 15020 # linking a shared library. 15021 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15022 15023 else 15024 # FIXME: insert proper C++ library support 15025 ld_shlibs_CXX=no 15026 fi 15027 ;; 15028 esac 15029 ;; 15030 15031 psos*) 15032 # FIXME: insert proper C++ library support 15033 ld_shlibs_CXX=no 15034 ;; 15035 15036 sunos4*) 15037 case $cc_basename in 15038 CC*) 15039 # Sun C++ 4.x 15040 # FIXME: insert proper C++ library support 15041 ld_shlibs_CXX=no 15042 ;; 15043 lcc*) 15044 # Lucid 15045 # FIXME: insert proper C++ library support 15046 ld_shlibs_CXX=no 15047 ;; 15048 *) 15049 # FIXME: insert proper C++ library support 15050 ld_shlibs_CXX=no 15051 ;; 15052 esac 15053 ;; 15054 15055 solaris*) 15056 case $cc_basename in 15057 CC* | sunCC*) 15058 # Sun C++ 4.2, 5.x and Centerline C++ 15059 archive_cmds_need_lc_CXX=yes 15060 no_undefined_flag_CXX=' -zdefs' 15061 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15062 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15063 $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' 15064 15065 hardcode_libdir_flag_spec_CXX='-R$libdir' 15066 hardcode_shlibpath_var_CXX=no 15067 case $host_os in 15068 solaris2.[0-5] | solaris2.[0-5].*) ;; 15069 *) 15070 # The compiler driver will combine and reorder linker options, 15071 # but understands '-z linker_flag'. 15072 # Supported since Solaris 2.6 (maybe 2.5.1?) 15073 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15074 ;; 15075 esac 15076 link_all_deplibs_CXX=yes 15077 15078 output_verbose_link_cmd='func_echo_all' 15079 15080 # Archives containing C++ object files must be created using 15081 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15082 # necessary to make sure instantiated templates are included 15083 # in the archive. 15084 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15085 ;; 15086 gcx*) 15087 # Green Hills C++ Compiler 15088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15089 15090 # The C++ compiler must be used to create the archive. 15091 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15092 ;; 15093 *) 15094 # GNU C++ compiler with Solaris linker 15095 if test yes,no = "$GXX,$with_gnu_ld"; then 15096 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15097 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15098 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15100 $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' 15101 15102 # Commands to make compiler produce verbose output that lists 15103 # what "hidden" libraries, object files and flags are used when 15104 # linking a shared library. 15105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15106 else 15107 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15108 # platform. 15109 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15110 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15111 $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' 15112 15113 # Commands to make compiler produce verbose output that lists 15114 # what "hidden" libraries, object files and flags are used when 15115 # linking a shared library. 15116 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15117 fi 15118 15119 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15120 case $host_os in 15121 solaris2.[0-5] | solaris2.[0-5].*) ;; 15122 *) 15123 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15124 ;; 15125 esac 15126 fi 15127 ;; 15128 esac 15129 ;; 15130 15131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15132 no_undefined_flag_CXX='$wl-z,text' 15133 archive_cmds_need_lc_CXX=no 15134 hardcode_shlibpath_var_CXX=no 15135 runpath_var='LD_RUN_PATH' 15136 15137 case $cc_basename in 15138 CC*) 15139 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15140 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15141 ;; 15142 *) 15143 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15144 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15145 ;; 15146 esac 15147 ;; 15148 15149 sysv5* | sco3.2v5* | sco5v6*) 15150 # Note: We CANNOT use -z defs as we might desire, because we do not 15151 # link with -lc, and that would cause any symbols used from libc to 15152 # always be unresolved, which means just about no library would 15153 # ever link correctly. If we're not using GNU ld we use -z text 15154 # though, which does catch some bad symbols but isn't as heavy-handed 15155 # as -z defs. 15156 no_undefined_flag_CXX='$wl-z,text' 15157 allow_undefined_flag_CXX='$wl-z,nodefs' 15158 archive_cmds_need_lc_CXX=no 15159 hardcode_shlibpath_var_CXX=no 15160 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15161 hardcode_libdir_separator_CXX=':' 15162 link_all_deplibs_CXX=yes 15163 export_dynamic_flag_spec_CXX='$wl-Bexport' 15164 runpath_var='LD_RUN_PATH' 15165 15166 case $cc_basename in 15167 CC*) 15168 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15169 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15170 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15171 '"$old_archive_cmds_CXX" 15172 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15173 '"$reload_cmds_CXX" 15174 ;; 15175 *) 15176 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15177 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15178 ;; 15179 esac 15180 ;; 15181 15182 tandem*) 15183 case $cc_basename in 15184 NCC*) 15185 # NonStop-UX NCC 3.20 15186 # FIXME: insert proper C++ library support 15187 ld_shlibs_CXX=no 15188 ;; 15189 *) 15190 # FIXME: insert proper C++ library support 15191 ld_shlibs_CXX=no 15192 ;; 15193 esac 15194 ;; 15195 15196 vxworks*) 15197 # FIXME: insert proper C++ library support 15198 ld_shlibs_CXX=no 15199 ;; 15200 15201 *) 15202 # FIXME: insert proper C++ library support 15203 ld_shlibs_CXX=no 15204 ;; 15205 esac 15206 15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15208printf "%s\n" "$ld_shlibs_CXX" >&6; } 15209 test no = "$ld_shlibs_CXX" && can_build_shared=no 15210 15211 GCC_CXX=$GXX 15212 LD_CXX=$LD 15213 15214 ## CAVEAT EMPTOR: 15215 ## There is no encapsulation within the following macros, do not change 15216 ## the running order or otherwise move them around unless you know exactly 15217 ## what you are doing... 15218 # Dependencies to place before and after the object being linked: 15219predep_objects_CXX= 15220postdep_objects_CXX= 15221predeps_CXX= 15222postdeps_CXX= 15223compiler_lib_search_path_CXX= 15224 15225cat > conftest.$ac_ext <<_LT_EOF 15226class Foo 15227{ 15228public: 15229 Foo (void) { a = 0; } 15230private: 15231 int a; 15232}; 15233_LT_EOF 15234 15235 15236_lt_libdeps_save_CFLAGS=$CFLAGS 15237case "$CC $CFLAGS " in #( 15238*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15239*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15240*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15241esac 15242 15243if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15244 (eval $ac_compile) 2>&5 15245 ac_status=$? 15246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15247 test $ac_status = 0; }; then 15248 # Parse the compiler output and extract the necessary 15249 # objects, libraries and library flags. 15250 15251 # Sentinel used to keep track of whether or not we are before 15252 # the conftest object file. 15253 pre_test_object_deps_done=no 15254 15255 for p in `eval "$output_verbose_link_cmd"`; do 15256 case $prev$p in 15257 15258 -L* | -R* | -l*) 15259 # Some compilers place space between "-{L,R}" and the path. 15260 # Remove the space. 15261 if test x-L = "$p" || 15262 test x-R = "$p"; then 15263 prev=$p 15264 continue 15265 fi 15266 15267 # Expand the sysroot to ease extracting the directories later. 15268 if test -z "$prev"; then 15269 case $p in 15270 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15271 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15272 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15273 esac 15274 fi 15275 case $p in 15276 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15277 esac 15278 if test no = "$pre_test_object_deps_done"; then 15279 case $prev in 15280 -L | -R) 15281 # Internal compiler library paths should come after those 15282 # provided the user. The postdeps already come after the 15283 # user supplied libs so there is no need to process them. 15284 if test -z "$compiler_lib_search_path_CXX"; then 15285 compiler_lib_search_path_CXX=$prev$p 15286 else 15287 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15288 fi 15289 ;; 15290 # The "-l" case would never come before the object being 15291 # linked, so don't bother handling this case. 15292 esac 15293 else 15294 if test -z "$postdeps_CXX"; then 15295 postdeps_CXX=$prev$p 15296 else 15297 postdeps_CXX="${postdeps_CXX} $prev$p" 15298 fi 15299 fi 15300 prev= 15301 ;; 15302 15303 *.lto.$objext) ;; # Ignore GCC LTO objects 15304 *.$objext) 15305 # This assumes that the test object file only shows up 15306 # once in the compiler output. 15307 if test "$p" = "conftest.$objext"; then 15308 pre_test_object_deps_done=yes 15309 continue 15310 fi 15311 15312 if test no = "$pre_test_object_deps_done"; then 15313 if test -z "$predep_objects_CXX"; then 15314 predep_objects_CXX=$p 15315 else 15316 predep_objects_CXX="$predep_objects_CXX $p" 15317 fi 15318 else 15319 if test -z "$postdep_objects_CXX"; then 15320 postdep_objects_CXX=$p 15321 else 15322 postdep_objects_CXX="$postdep_objects_CXX $p" 15323 fi 15324 fi 15325 ;; 15326 15327 *) ;; # Ignore the rest. 15328 15329 esac 15330 done 15331 15332 # Clean up. 15333 rm -f a.out a.exe 15334else 15335 echo "libtool.m4: error: problem compiling CXX test program" 15336fi 15337 15338$RM -f confest.$objext 15339CFLAGS=$_lt_libdeps_save_CFLAGS 15340 15341# PORTME: override above test on systems where it is broken 15342case $host_os in 15343interix[3-9]*) 15344 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15345 # hack all around it, let's just trust "g++" to DTRT. 15346 predep_objects_CXX= 15347 postdep_objects_CXX= 15348 postdeps_CXX= 15349 ;; 15350esac 15351 15352 15353case " $postdeps_CXX " in 15354*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15355esac 15356 compiler_lib_search_dirs_CXX= 15357if test -n "${compiler_lib_search_path_CXX}"; then 15358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15359fi 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 lt_prog_compiler_wl_CXX= 15392lt_prog_compiler_pic_CXX= 15393lt_prog_compiler_static_CXX= 15394 15395 15396 # C++ specific cases for pic, static, wl, etc. 15397 if test yes = "$GXX"; then 15398 lt_prog_compiler_wl_CXX='-Wl,' 15399 lt_prog_compiler_static_CXX='-static' 15400 15401 case $host_os in 15402 aix*) 15403 # All AIX code is PIC. 15404 if test ia64 = "$host_cpu"; then 15405 # AIX 5 now supports IA64 processor 15406 lt_prog_compiler_static_CXX='-Bstatic' 15407 fi 15408 lt_prog_compiler_pic_CXX='-fPIC' 15409 ;; 15410 15411 amigaos*) 15412 case $host_cpu in 15413 powerpc) 15414 # see comment about AmigaOS4 .so support 15415 lt_prog_compiler_pic_CXX='-fPIC' 15416 ;; 15417 m68k) 15418 # FIXME: we need at least 68020 code to build shared libraries, but 15419 # adding the '-m68020' flag to GCC prevents building anything better, 15420 # like '-m68040'. 15421 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15422 ;; 15423 esac 15424 ;; 15425 15426 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15427 # PIC is the default for these OSes. 15428 ;; 15429 mingw* | cygwin* | os2* | pw32* | cegcc*) 15430 # This hack is so that the source file can tell whether it is being 15431 # built for inclusion in a dll (and should export symbols for example). 15432 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15433 # (--disable-auto-import) libraries 15434 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15435 case $host_os in 15436 os2*) 15437 lt_prog_compiler_static_CXX='$wl-static' 15438 ;; 15439 esac 15440 ;; 15441 darwin* | rhapsody*) 15442 # PIC is the default on this platform 15443 # Common symbols not allowed in MH_DYLIB files 15444 lt_prog_compiler_pic_CXX='-fno-common' 15445 ;; 15446 *djgpp*) 15447 # DJGPP does not support shared libraries at all 15448 lt_prog_compiler_pic_CXX= 15449 ;; 15450 haiku*) 15451 # PIC is the default for Haiku. 15452 # The "-static" flag exists, but is broken. 15453 lt_prog_compiler_static_CXX= 15454 ;; 15455 interix[3-9]*) 15456 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15457 # Instead, we relocate shared libraries at runtime. 15458 ;; 15459 sysv4*MP*) 15460 if test -d /usr/nec; then 15461 lt_prog_compiler_pic_CXX=-Kconform_pic 15462 fi 15463 ;; 15464 hpux*) 15465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15467 # sets the default TLS model and affects inlining. 15468 case $host_cpu in 15469 hppa*64*) 15470 ;; 15471 *) 15472 lt_prog_compiler_pic_CXX='-fPIC' 15473 ;; 15474 esac 15475 ;; 15476 *qnx* | *nto*) 15477 # QNX uses GNU C++, but need to define -shared option too, otherwise 15478 # it will coredump. 15479 lt_prog_compiler_pic_CXX='-fPIC -shared' 15480 ;; 15481 *) 15482 lt_prog_compiler_pic_CXX='-fPIC' 15483 ;; 15484 esac 15485 else 15486 case $host_os in 15487 aix[4-9]*) 15488 # All AIX code is PIC. 15489 if test ia64 = "$host_cpu"; then 15490 # AIX 5 now supports IA64 processor 15491 lt_prog_compiler_static_CXX='-Bstatic' 15492 else 15493 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15494 fi 15495 ;; 15496 chorus*) 15497 case $cc_basename in 15498 cxch68*) 15499 # Green Hills C++ Compiler 15500 # _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" 15501 ;; 15502 esac 15503 ;; 15504 mingw* | cygwin* | os2* | pw32* | cegcc*) 15505 # This hack is so that the source file can tell whether it is being 15506 # built for inclusion in a dll (and should export symbols for example). 15507 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15508 ;; 15509 dgux*) 15510 case $cc_basename in 15511 ec++*) 15512 lt_prog_compiler_pic_CXX='-KPIC' 15513 ;; 15514 ghcx*) 15515 # Green Hills C++ Compiler 15516 lt_prog_compiler_pic_CXX='-pic' 15517 ;; 15518 *) 15519 ;; 15520 esac 15521 ;; 15522 freebsd* | dragonfly* | midnightbsd*) 15523 # FreeBSD uses GNU C++ 15524 ;; 15525 hpux9* | hpux10* | hpux11*) 15526 case $cc_basename in 15527 CC*) 15528 lt_prog_compiler_wl_CXX='-Wl,' 15529 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15530 if test ia64 != "$host_cpu"; then 15531 lt_prog_compiler_pic_CXX='+Z' 15532 fi 15533 ;; 15534 aCC*) 15535 lt_prog_compiler_wl_CXX='-Wl,' 15536 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15537 case $host_cpu in 15538 hppa*64*|ia64*) 15539 # +Z the default 15540 ;; 15541 *) 15542 lt_prog_compiler_pic_CXX='+Z' 15543 ;; 15544 esac 15545 ;; 15546 *) 15547 ;; 15548 esac 15549 ;; 15550 interix*) 15551 # This is c89, which is MS Visual C++ (no shared libs) 15552 # Anyone wants to do a port? 15553 ;; 15554 irix5* | irix6* | nonstopux*) 15555 case $cc_basename in 15556 CC*) 15557 lt_prog_compiler_wl_CXX='-Wl,' 15558 lt_prog_compiler_static_CXX='-non_shared' 15559 # CC pic flag -KPIC is the default. 15560 ;; 15561 *) 15562 ;; 15563 esac 15564 ;; 15565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15566 case $cc_basename in 15567 KCC*) 15568 # KAI C++ Compiler 15569 lt_prog_compiler_wl_CXX='--backend -Wl,' 15570 lt_prog_compiler_pic_CXX='-fPIC' 15571 ;; 15572 ecpc* ) 15573 # old Intel C++ for x86_64, which still supported -KPIC. 15574 lt_prog_compiler_wl_CXX='-Wl,' 15575 lt_prog_compiler_pic_CXX='-KPIC' 15576 lt_prog_compiler_static_CXX='-static' 15577 ;; 15578 icpc* ) 15579 # Intel C++, used to be incompatible with GCC. 15580 # ICC 10 doesn't accept -KPIC any more. 15581 lt_prog_compiler_wl_CXX='-Wl,' 15582 lt_prog_compiler_pic_CXX='-fPIC' 15583 lt_prog_compiler_static_CXX='-static' 15584 ;; 15585 pgCC* | pgcpp*) 15586 # Portland Group C++ compiler 15587 lt_prog_compiler_wl_CXX='-Wl,' 15588 lt_prog_compiler_pic_CXX='-fpic' 15589 lt_prog_compiler_static_CXX='-Bstatic' 15590 ;; 15591 cxx*) 15592 # Compaq C++ 15593 # Make sure the PIC flag is empty. It appears that all Alpha 15594 # Linux and Compaq Tru64 Unix objects are PIC. 15595 lt_prog_compiler_pic_CXX= 15596 lt_prog_compiler_static_CXX='-non_shared' 15597 ;; 15598 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15599 # IBM XL 8.0, 9.0 on PPC and BlueGene 15600 lt_prog_compiler_wl_CXX='-Wl,' 15601 lt_prog_compiler_pic_CXX='-qpic' 15602 lt_prog_compiler_static_CXX='-qstaticlink' 15603 ;; 15604 *) 15605 case `$CC -V 2>&1 | $SED 5q` in 15606 *Sun\ C*) 15607 # Sun C++ 5.9 15608 lt_prog_compiler_pic_CXX='-KPIC' 15609 lt_prog_compiler_static_CXX='-Bstatic' 15610 lt_prog_compiler_wl_CXX='-Qoption ld ' 15611 ;; 15612 esac 15613 ;; 15614 esac 15615 ;; 15616 lynxos*) 15617 ;; 15618 m88k*) 15619 ;; 15620 mvs*) 15621 case $cc_basename in 15622 cxx*) 15623 lt_prog_compiler_pic_CXX='-W c,exportall' 15624 ;; 15625 *) 15626 ;; 15627 esac 15628 ;; 15629 netbsd*) 15630 ;; 15631 *qnx* | *nto*) 15632 # QNX uses GNU C++, but need to define -shared option too, otherwise 15633 # it will coredump. 15634 lt_prog_compiler_pic_CXX='-fPIC -shared' 15635 ;; 15636 osf3* | osf4* | osf5*) 15637 case $cc_basename in 15638 KCC*) 15639 lt_prog_compiler_wl_CXX='--backend -Wl,' 15640 ;; 15641 RCC*) 15642 # Rational C++ 2.4.1 15643 lt_prog_compiler_pic_CXX='-pic' 15644 ;; 15645 cxx*) 15646 # Digital/Compaq C++ 15647 lt_prog_compiler_wl_CXX='-Wl,' 15648 # Make sure the PIC flag is empty. It appears that all Alpha 15649 # Linux and Compaq Tru64 Unix objects are PIC. 15650 lt_prog_compiler_pic_CXX= 15651 lt_prog_compiler_static_CXX='-non_shared' 15652 ;; 15653 *) 15654 ;; 15655 esac 15656 ;; 15657 psos*) 15658 ;; 15659 solaris*) 15660 case $cc_basename in 15661 CC* | sunCC*) 15662 # Sun C++ 4.2, 5.x and Centerline C++ 15663 lt_prog_compiler_pic_CXX='-KPIC' 15664 lt_prog_compiler_static_CXX='-Bstatic' 15665 lt_prog_compiler_wl_CXX='-Qoption ld ' 15666 ;; 15667 gcx*) 15668 # Green Hills C++ Compiler 15669 lt_prog_compiler_pic_CXX='-PIC' 15670 ;; 15671 *) 15672 ;; 15673 esac 15674 ;; 15675 sunos4*) 15676 case $cc_basename in 15677 CC*) 15678 # Sun C++ 4.x 15679 lt_prog_compiler_pic_CXX='-pic' 15680 lt_prog_compiler_static_CXX='-Bstatic' 15681 ;; 15682 lcc*) 15683 # Lucid 15684 lt_prog_compiler_pic_CXX='-pic' 15685 ;; 15686 *) 15687 ;; 15688 esac 15689 ;; 15690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15691 case $cc_basename in 15692 CC*) 15693 lt_prog_compiler_wl_CXX='-Wl,' 15694 lt_prog_compiler_pic_CXX='-KPIC' 15695 lt_prog_compiler_static_CXX='-Bstatic' 15696 ;; 15697 esac 15698 ;; 15699 tandem*) 15700 case $cc_basename in 15701 NCC*) 15702 # NonStop-UX NCC 3.20 15703 lt_prog_compiler_pic_CXX='-KPIC' 15704 ;; 15705 *) 15706 ;; 15707 esac 15708 ;; 15709 vxworks*) 15710 ;; 15711 *) 15712 lt_prog_compiler_can_build_shared_CXX=no 15713 ;; 15714 esac 15715 fi 15716 15717case $host_os in 15718 # For platforms that do not support PIC, -DPIC is meaningless: 15719 *djgpp*) 15720 lt_prog_compiler_pic_CXX= 15721 ;; 15722 *) 15723 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15724 ;; 15725esac 15726 15727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15728printf %s "checking for $compiler option to produce PIC... " >&6; } 15729if test ${lt_cv_prog_compiler_pic_CXX+y} 15730then : 15731 printf %s "(cached) " >&6 15732else $as_nop 15733 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15734fi 15735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15736printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 15737lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15738 15739# 15740# Check to make sure the PIC flag actually works. 15741# 15742if test -n "$lt_prog_compiler_pic_CXX"; then 15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15744printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15745if test ${lt_cv_prog_compiler_pic_works_CXX+y} 15746then : 15747 printf %s "(cached) " >&6 15748else $as_nop 15749 lt_cv_prog_compiler_pic_works_CXX=no 15750 ac_outfile=conftest.$ac_objext 15751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15752 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15753 # Insert the option either (1) after the last *FLAGS variable, or 15754 # (2) before a word containing "conftest.", or (3) at the end. 15755 # Note that $ac_compile itself does not contain backslashes and begins 15756 # with a dollar sign (not a hyphen), so the echo should work correctly. 15757 # The option is referenced via a variable to avoid confusing sed. 15758 lt_compile=`echo "$ac_compile" | $SED \ 15759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15761 -e 's:$: $lt_compiler_flag:'` 15762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15763 (eval "$lt_compile" 2>conftest.err) 15764 ac_status=$? 15765 cat conftest.err >&5 15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15767 if (exit $ac_status) && test -s "$ac_outfile"; then 15768 # The compiler can only warn and ignore the option if not recognized 15769 # So say no if there are warnings other than the usual output. 15770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15773 lt_cv_prog_compiler_pic_works_CXX=yes 15774 fi 15775 fi 15776 $RM conftest* 15777 15778fi 15779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15780printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15781 15782if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15783 case $lt_prog_compiler_pic_CXX in 15784 "" | " "*) ;; 15785 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15786 esac 15787else 15788 lt_prog_compiler_pic_CXX= 15789 lt_prog_compiler_can_build_shared_CXX=no 15790fi 15791 15792fi 15793 15794 15795 15796 15797 15798# 15799# Check to make sure the static flag actually works. 15800# 15801wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15803printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15804if test ${lt_cv_prog_compiler_static_works_CXX+y} 15805then : 15806 printf %s "(cached) " >&6 15807else $as_nop 15808 lt_cv_prog_compiler_static_works_CXX=no 15809 save_LDFLAGS=$LDFLAGS 15810 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15811 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15813 # The linker can only warn and ignore the option if not recognized 15814 # So say no if there are warnings 15815 if test -s conftest.err; then 15816 # Append any errors to the config.log. 15817 cat conftest.err 1>&5 15818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15820 if diff conftest.exp conftest.er2 >/dev/null; then 15821 lt_cv_prog_compiler_static_works_CXX=yes 15822 fi 15823 else 15824 lt_cv_prog_compiler_static_works_CXX=yes 15825 fi 15826 fi 15827 $RM -r conftest* 15828 LDFLAGS=$save_LDFLAGS 15829 15830fi 15831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15832printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15833 15834if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15835 : 15836else 15837 lt_prog_compiler_static_CXX= 15838fi 15839 15840 15841 15842 15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15844printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15845if test ${lt_cv_prog_compiler_c_o_CXX+y} 15846then : 15847 printf %s "(cached) " >&6 15848else $as_nop 15849 lt_cv_prog_compiler_c_o_CXX=no 15850 $RM -r conftest 2>/dev/null 15851 mkdir conftest 15852 cd conftest 15853 mkdir out 15854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15855 15856 lt_compiler_flag="-o out/conftest2.$ac_objext" 15857 # Insert the option either (1) after the last *FLAGS variable, or 15858 # (2) before a word containing "conftest.", or (3) at the end. 15859 # Note that $ac_compile itself does not contain backslashes and begins 15860 # with a dollar sign (not a hyphen), so the echo should work correctly. 15861 lt_compile=`echo "$ac_compile" | $SED \ 15862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15864 -e 's:$: $lt_compiler_flag:'` 15865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15866 (eval "$lt_compile" 2>out/conftest.err) 15867 ac_status=$? 15868 cat out/conftest.err >&5 15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15870 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15871 then 15872 # The compiler can only warn and ignore the option if not recognized 15873 # So say no if there are warnings 15874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15877 lt_cv_prog_compiler_c_o_CXX=yes 15878 fi 15879 fi 15880 chmod u+w . 2>&5 15881 $RM conftest* 15882 # SGI C++ compiler will create directory out/ii_files/ for 15883 # template instantiation 15884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15885 $RM out/* && rmdir out 15886 cd .. 15887 $RM -r conftest 15888 $RM conftest* 15889 15890fi 15891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15892printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15893 15894 15895 15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15897printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15898if test ${lt_cv_prog_compiler_c_o_CXX+y} 15899then : 15900 printf %s "(cached) " >&6 15901else $as_nop 15902 lt_cv_prog_compiler_c_o_CXX=no 15903 $RM -r conftest 2>/dev/null 15904 mkdir conftest 15905 cd conftest 15906 mkdir out 15907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15908 15909 lt_compiler_flag="-o out/conftest2.$ac_objext" 15910 # Insert the option either (1) after the last *FLAGS variable, or 15911 # (2) before a word containing "conftest.", or (3) at the end. 15912 # Note that $ac_compile itself does not contain backslashes and begins 15913 # with a dollar sign (not a hyphen), so the echo should work correctly. 15914 lt_compile=`echo "$ac_compile" | $SED \ 15915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15917 -e 's:$: $lt_compiler_flag:'` 15918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15919 (eval "$lt_compile" 2>out/conftest.err) 15920 ac_status=$? 15921 cat out/conftest.err >&5 15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15923 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15924 then 15925 # The compiler can only warn and ignore the option if not recognized 15926 # So say no if there are warnings 15927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15930 lt_cv_prog_compiler_c_o_CXX=yes 15931 fi 15932 fi 15933 chmod u+w . 2>&5 15934 $RM conftest* 15935 # SGI C++ compiler will create directory out/ii_files/ for 15936 # template instantiation 15937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15938 $RM out/* && rmdir out 15939 cd .. 15940 $RM -r conftest 15941 $RM conftest* 15942 15943fi 15944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15945printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15946 15947 15948 15949 15950hard_links=nottested 15951if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15952 # do not overwrite the value of need_locks provided by the user 15953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15954printf %s "checking if we can lock with hard links... " >&6; } 15955 hard_links=yes 15956 $RM conftest* 15957 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15958 touch conftest.a 15959 ln conftest.a conftest.b 2>&5 || hard_links=no 15960 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15962printf "%s\n" "$hard_links" >&6; } 15963 if test no = "$hard_links"; then 15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15965printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15966 need_locks=warn 15967 fi 15968else 15969 need_locks=no 15970fi 15971 15972 15973 15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15975printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15976 15977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15978 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15979 case $host_os in 15980 aix[4-9]*) 15981 # If we're using GNU nm, then we don't want the "-C" option. 15982 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15983 # Without the "-l" option, or with the "-B" option, AIX nm treats 15984 # weak defined symbols like other global defined symbols, whereas 15985 # GNU nm marks them as "W". 15986 # While the 'weak' keyword is ignored in the Export File, we need 15987 # it in the Import File for the 'aix-soname' feature, so we have 15988 # to replace the "-B" option with "-P" for AIX nm. 15989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15990 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' 15991 else 15992 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' 15993 fi 15994 ;; 15995 pw32*) 15996 export_symbols_cmds_CXX=$ltdll_cmds 15997 ;; 15998 cygwin* | mingw* | cegcc*) 15999 case $cc_basename in 16000 cl* | icl*) 16001 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16002 ;; 16003 *) 16004 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' 16005 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16006 ;; 16007 esac 16008 ;; 16009 *) 16010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16011 ;; 16012 esac 16013 16014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16015printf "%s\n" "$ld_shlibs_CXX" >&6; } 16016test no = "$ld_shlibs_CXX" && can_build_shared=no 16017 16018with_gnu_ld_CXX=$with_gnu_ld 16019 16020 16021 16022 16023 16024 16025# 16026# Do we need to explicitly link libc? 16027# 16028case "x$archive_cmds_need_lc_CXX" in 16029x|xyes) 16030 # Assume -lc should be added 16031 archive_cmds_need_lc_CXX=yes 16032 16033 if test yes,yes = "$GCC,$enable_shared"; then 16034 case $archive_cmds_CXX in 16035 *'~'*) 16036 # FIXME: we may have to deal with multi-command sequences. 16037 ;; 16038 '$CC '*) 16039 # Test whether the compiler implicitly links with -lc since on some 16040 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16041 # to ld, don't add -lc before -lgcc. 16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16043printf %s "checking whether -lc should be explicitly linked in... " >&6; } 16044if test ${lt_cv_archive_cmds_need_lc_CXX+y} 16045then : 16046 printf %s "(cached) " >&6 16047else $as_nop 16048 $RM conftest* 16049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16050 16051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16052 (eval $ac_compile) 2>&5 16053 ac_status=$? 16054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16055 test $ac_status = 0; } 2>conftest.err; then 16056 soname=conftest 16057 lib=conftest 16058 libobjs=conftest.$ac_objext 16059 deplibs= 16060 wl=$lt_prog_compiler_wl_CXX 16061 pic_flag=$lt_prog_compiler_pic_CXX 16062 compiler_flags=-v 16063 linker_flags=-v 16064 verstring= 16065 output_objdir=. 16066 libname=conftest 16067 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16068 allow_undefined_flag_CXX= 16069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16070 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16071 ac_status=$? 16072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16073 test $ac_status = 0; } 16074 then 16075 lt_cv_archive_cmds_need_lc_CXX=no 16076 else 16077 lt_cv_archive_cmds_need_lc_CXX=yes 16078 fi 16079 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16080 else 16081 cat conftest.err 1>&5 16082 fi 16083 $RM conftest* 16084 16085fi 16086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16087printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16088 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16089 ;; 16090 esac 16091 fi 16092 ;; 16093esac 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16157printf %s "checking dynamic linker characteristics... " >&6; } 16158 16159library_names_spec= 16160libname_spec='lib$name' 16161soname_spec= 16162shrext_cmds=.so 16163postinstall_cmds= 16164postuninstall_cmds= 16165finish_cmds= 16166finish_eval= 16167shlibpath_var= 16168shlibpath_overrides_runpath=unknown 16169version_type=none 16170dynamic_linker="$host_os ld.so" 16171sys_lib_dlsearch_path_spec="/lib /usr/lib" 16172need_lib_prefix=unknown 16173hardcode_into_libs=no 16174 16175# when you set need_version to no, make sure it does not cause -set_version 16176# flags to be left without arguments 16177need_version=unknown 16178 16179 16180 16181case $host_os in 16182aix3*) 16183 version_type=linux # correct to gnu/linux during the next big refactor 16184 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16185 shlibpath_var=LIBPATH 16186 16187 # AIX 3 has no versioning support, so we append a major version to the name. 16188 soname_spec='$libname$release$shared_ext$major' 16189 ;; 16190 16191aix[4-9]*) 16192 version_type=linux # correct to gnu/linux during the next big refactor 16193 need_lib_prefix=no 16194 need_version=no 16195 hardcode_into_libs=yes 16196 if test ia64 = "$host_cpu"; then 16197 # AIX 5 supports IA64 16198 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16199 shlibpath_var=LD_LIBRARY_PATH 16200 else 16201 # With GCC up to 2.95.x, collect2 would create an import file 16202 # for dependence libraries. The import file would start with 16203 # the line '#! .'. This would cause the generated library to 16204 # depend on '.', always an invalid library. This was fixed in 16205 # development snapshots of GCC prior to 3.0. 16206 case $host_os in 16207 aix4 | aix4.[01] | aix4.[01].*) 16208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16209 echo ' yes ' 16210 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16211 : 16212 else 16213 can_build_shared=no 16214 fi 16215 ;; 16216 esac 16217 # Using Import Files as archive members, it is possible to support 16218 # filename-based versioning of shared library archives on AIX. While 16219 # this would work for both with and without runtime linking, it will 16220 # prevent static linking of such archives. So we do filename-based 16221 # shared library versioning with .so extension only, which is used 16222 # when both runtime linking and shared linking is enabled. 16223 # Unfortunately, runtime linking may impact performance, so we do 16224 # not want this to be the default eventually. Also, we use the 16225 # versioned .so libs for executables only if there is the -brtl 16226 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16227 # To allow for filename-based versioning support, we need to create 16228 # libNAME.so.V as an archive file, containing: 16229 # *) an Import File, referring to the versioned filename of the 16230 # archive as well as the shared archive member, telling the 16231 # bitwidth (32 or 64) of that shared object, and providing the 16232 # list of exported symbols of that shared object, eventually 16233 # decorated with the 'weak' keyword 16234 # *) the shared object with the F_LOADONLY flag set, to really avoid 16235 # it being seen by the linker. 16236 # At run time we better use the real file rather than another symlink, 16237 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16238 16239 case $with_aix_soname,$aix_use_runtimelinking in 16240 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16241 # soname into executable. Probably we can add versioning support to 16242 # collect2, so additional links can be useful in future. 16243 aix,yes) # traditional libtool 16244 dynamic_linker='AIX unversionable lib.so' 16245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16246 # instead of lib<name>.a to let people know that these are not 16247 # typical AIX shared libraries. 16248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16249 ;; 16250 aix,no) # traditional AIX only 16251 dynamic_linker='AIX lib.a(lib.so.V)' 16252 # We preserve .a as extension for shared libraries through AIX4.2 16253 # and later when we are not doing run time linking. 16254 library_names_spec='$libname$release.a $libname.a' 16255 soname_spec='$libname$release$shared_ext$major' 16256 ;; 16257 svr4,*) # full svr4 only 16258 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16259 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16260 # We do not specify a path in Import Files, so LIBPATH fires. 16261 shlibpath_overrides_runpath=yes 16262 ;; 16263 *,yes) # both, prefer svr4 16264 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16265 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16266 # unpreferred sharedlib libNAME.a needs extra handling 16267 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"' 16268 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"' 16269 # We do not specify a path in Import Files, so LIBPATH fires. 16270 shlibpath_overrides_runpath=yes 16271 ;; 16272 *,no) # both, prefer aix 16273 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16274 library_names_spec='$libname$release.a $libname.a' 16275 soname_spec='$libname$release$shared_ext$major' 16276 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16277 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)' 16278 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"' 16279 ;; 16280 esac 16281 shlibpath_var=LIBPATH 16282 fi 16283 ;; 16284 16285amigaos*) 16286 case $host_cpu in 16287 powerpc) 16288 # Since July 2007 AmigaOS4 officially supports .so libraries. 16289 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16291 ;; 16292 m68k) 16293 library_names_spec='$libname.ixlibrary $libname.a' 16294 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16295 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' 16296 ;; 16297 esac 16298 ;; 16299 16300beos*) 16301 library_names_spec='$libname$shared_ext' 16302 dynamic_linker="$host_os ld.so" 16303 shlibpath_var=LIBRARY_PATH 16304 ;; 16305 16306bsdi[45]*) 16307 version_type=linux # correct to gnu/linux during the next big refactor 16308 need_version=no 16309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16310 soname_spec='$libname$release$shared_ext$major' 16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16312 shlibpath_var=LD_LIBRARY_PATH 16313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16315 # the default ld.so.conf also contains /usr/contrib/lib and 16316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16317 # libtool to hard-code these into programs 16318 ;; 16319 16320cygwin* | mingw* | pw32* | cegcc*) 16321 version_type=windows 16322 shrext_cmds=.dll 16323 need_version=no 16324 need_lib_prefix=no 16325 16326 case $GCC,$cc_basename in 16327 yes,*) 16328 # gcc 16329 library_names_spec='$libname.dll.a' 16330 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16331 postinstall_cmds='base_file=`basename \$file`~ 16332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16333 dldir=$destdir/`dirname \$dlpath`~ 16334 test -d \$dldir || mkdir -p \$dldir~ 16335 $install_prog $dir/$dlname \$dldir/$dlname~ 16336 chmod a+x \$dldir/$dlname~ 16337 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16338 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16339 fi' 16340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16341 dlpath=$dir/\$dldll~ 16342 $RM \$dlpath' 16343 shlibpath_overrides_runpath=yes 16344 16345 case $host_os in 16346 cygwin*) 16347 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16348 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16349 16350 ;; 16351 mingw* | cegcc*) 16352 # MinGW DLLs use traditional 'lib' prefix 16353 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16354 ;; 16355 pw32*) 16356 # pw32 DLLs use 'pw' prefix rather than 'lib' 16357 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16358 ;; 16359 esac 16360 dynamic_linker='Win32 ld.exe' 16361 ;; 16362 16363 *,cl* | *,icl*) 16364 # Native MSVC or ICC 16365 libname_spec='$name' 16366 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16367 library_names_spec='$libname.dll.lib' 16368 16369 case $build_os in 16370 mingw*) 16371 sys_lib_search_path_spec= 16372 lt_save_ifs=$IFS 16373 IFS=';' 16374 for lt_path in $LIB 16375 do 16376 IFS=$lt_save_ifs 16377 # Let DOS variable expansion print the short 8.3 style file name. 16378 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16379 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16380 done 16381 IFS=$lt_save_ifs 16382 # Convert to MSYS style. 16383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16384 ;; 16385 cygwin*) 16386 # Convert to unix form, then to dos form, then back to unix form 16387 # but this time dos style (no spaces!) so that the unix form looks 16388 # like /cygdrive/c/PROGRA~1:/cygdr... 16389 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16390 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16391 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16392 ;; 16393 *) 16394 sys_lib_search_path_spec=$LIB 16395 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16396 # It is most probably a Windows format PATH. 16397 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16398 else 16399 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16400 fi 16401 # FIXME: find the short name or the path components, as spaces are 16402 # common. (e.g. "Program Files" -> "PROGRA~1") 16403 ;; 16404 esac 16405 16406 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16407 postinstall_cmds='base_file=`basename \$file`~ 16408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16409 dldir=$destdir/`dirname \$dlpath`~ 16410 test -d \$dldir || mkdir -p \$dldir~ 16411 $install_prog $dir/$dlname \$dldir/$dlname' 16412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16413 dlpath=$dir/\$dldll~ 16414 $RM \$dlpath' 16415 shlibpath_overrides_runpath=yes 16416 dynamic_linker='Win32 link.exe' 16417 ;; 16418 16419 *) 16420 # Assume MSVC and ICC wrapper 16421 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16422 dynamic_linker='Win32 ld.exe' 16423 ;; 16424 esac 16425 # FIXME: first we should search . and the directory the executable is in 16426 shlibpath_var=PATH 16427 ;; 16428 16429darwin* | rhapsody*) 16430 dynamic_linker="$host_os dyld" 16431 version_type=darwin 16432 need_lib_prefix=no 16433 need_version=no 16434 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16435 soname_spec='$libname$release$major$shared_ext' 16436 shlibpath_overrides_runpath=yes 16437 shlibpath_var=DYLD_LIBRARY_PATH 16438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16439 16440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16441 ;; 16442 16443dgux*) 16444 version_type=linux # correct to gnu/linux during the next big refactor 16445 need_lib_prefix=no 16446 need_version=no 16447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16448 soname_spec='$libname$release$shared_ext$major' 16449 shlibpath_var=LD_LIBRARY_PATH 16450 ;; 16451 16452freebsd* | dragonfly* | midnightbsd*) 16453 # DragonFly does not have aout. When/if they implement a new 16454 # versioning mechanism, adjust this. 16455 if test -x /usr/bin/objformat; then 16456 objformat=`/usr/bin/objformat` 16457 else 16458 case $host_os in 16459 freebsd[23].*) objformat=aout ;; 16460 *) objformat=elf ;; 16461 esac 16462 fi 16463 version_type=freebsd-$objformat 16464 case $version_type in 16465 freebsd-elf*) 16466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16467 soname_spec='$libname$release$shared_ext$major' 16468 need_version=no 16469 need_lib_prefix=no 16470 ;; 16471 freebsd-*) 16472 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16473 need_version=yes 16474 ;; 16475 esac 16476 shlibpath_var=LD_LIBRARY_PATH 16477 case $host_os in 16478 freebsd2.*) 16479 shlibpath_overrides_runpath=yes 16480 ;; 16481 freebsd3.[01]* | freebsdelf3.[01]*) 16482 shlibpath_overrides_runpath=yes 16483 hardcode_into_libs=yes 16484 ;; 16485 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16486 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16487 shlibpath_overrides_runpath=no 16488 hardcode_into_libs=yes 16489 ;; 16490 *) # from 4.6 on, and DragonFly 16491 shlibpath_overrides_runpath=yes 16492 hardcode_into_libs=yes 16493 ;; 16494 esac 16495 ;; 16496 16497haiku*) 16498 version_type=linux # correct to gnu/linux during the next big refactor 16499 need_lib_prefix=no 16500 need_version=no 16501 dynamic_linker="$host_os runtime_loader" 16502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16503 soname_spec='$libname$release$shared_ext$major' 16504 shlibpath_var=LIBRARY_PATH 16505 shlibpath_overrides_runpath=no 16506 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16507 hardcode_into_libs=yes 16508 ;; 16509 16510hpux9* | hpux10* | hpux11*) 16511 # Give a soname corresponding to the major version so that dld.sl refuses to 16512 # link against other versions. 16513 version_type=sunos 16514 need_lib_prefix=no 16515 need_version=no 16516 case $host_cpu in 16517 ia64*) 16518 shrext_cmds='.so' 16519 hardcode_into_libs=yes 16520 dynamic_linker="$host_os dld.so" 16521 shlibpath_var=LD_LIBRARY_PATH 16522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16524 soname_spec='$libname$release$shared_ext$major' 16525 if test 32 = "$HPUX_IA64_MODE"; then 16526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16527 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16528 else 16529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16530 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16531 fi 16532 ;; 16533 hppa*64*) 16534 shrext_cmds='.sl' 16535 hardcode_into_libs=yes 16536 dynamic_linker="$host_os dld.sl" 16537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16540 soname_spec='$libname$release$shared_ext$major' 16541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16543 ;; 16544 *) 16545 shrext_cmds='.sl' 16546 dynamic_linker="$host_os dld.sl" 16547 shlibpath_var=SHLIB_PATH 16548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16550 soname_spec='$libname$release$shared_ext$major' 16551 ;; 16552 esac 16553 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16554 postinstall_cmds='chmod 555 $lib' 16555 # or fails outright, so override atomically: 16556 install_override_mode=555 16557 ;; 16558 16559interix[3-9]*) 16560 version_type=linux # correct to gnu/linux during the next big refactor 16561 need_lib_prefix=no 16562 need_version=no 16563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16564 soname_spec='$libname$release$shared_ext$major' 16565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16566 shlibpath_var=LD_LIBRARY_PATH 16567 shlibpath_overrides_runpath=no 16568 hardcode_into_libs=yes 16569 ;; 16570 16571irix5* | irix6* | nonstopux*) 16572 case $host_os in 16573 nonstopux*) version_type=nonstopux ;; 16574 *) 16575 if test yes = "$lt_cv_prog_gnu_ld"; then 16576 version_type=linux # correct to gnu/linux during the next big refactor 16577 else 16578 version_type=irix 16579 fi ;; 16580 esac 16581 need_lib_prefix=no 16582 need_version=no 16583 soname_spec='$libname$release$shared_ext$major' 16584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16585 case $host_os in 16586 irix5* | nonstopux*) 16587 libsuff= shlibsuff= 16588 ;; 16589 *) 16590 case $LD in # libtool.m4 will add one of these switches to LD 16591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16592 libsuff= shlibsuff= libmagic=32-bit;; 16593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16594 libsuff=32 shlibsuff=N32 libmagic=N32;; 16595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16596 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16597 *) libsuff= shlibsuff= libmagic=never-match;; 16598 esac 16599 ;; 16600 esac 16601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16602 shlibpath_overrides_runpath=no 16603 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16604 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16605 hardcode_into_libs=yes 16606 ;; 16607 16608# No shared lib support for Linux oldld, aout, or coff. 16609linux*oldld* | linux*aout* | linux*coff*) 16610 dynamic_linker=no 16611 ;; 16612 16613linux*android*) 16614 version_type=none # Android doesn't support versioned libraries. 16615 need_lib_prefix=no 16616 need_version=no 16617 library_names_spec='$libname$release$shared_ext' 16618 soname_spec='$libname$release$shared_ext' 16619 finish_cmds= 16620 shlibpath_var=LD_LIBRARY_PATH 16621 shlibpath_overrides_runpath=yes 16622 16623 # This implies no fast_install, which is unacceptable. 16624 # Some rework will be needed to allow for fast_install 16625 # before this can be enabled. 16626 hardcode_into_libs=yes 16627 16628 dynamic_linker='Android linker' 16629 # Don't embed -rpath directories since the linker doesn't support them. 16630 hardcode_libdir_flag_spec_CXX='-L$libdir' 16631 ;; 16632 16633# This must be glibc/ELF. 16634linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16635 version_type=linux # correct to gnu/linux during the next big refactor 16636 need_lib_prefix=no 16637 need_version=no 16638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16639 soname_spec='$libname$release$shared_ext$major' 16640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16641 shlibpath_var=LD_LIBRARY_PATH 16642 shlibpath_overrides_runpath=no 16643 16644 # Some binutils ld are patched to set DT_RUNPATH 16645 if test ${lt_cv_shlibpath_overrides_runpath+y} 16646then : 16647 printf %s "(cached) " >&6 16648else $as_nop 16649 lt_cv_shlibpath_overrides_runpath=no 16650 save_LDFLAGS=$LDFLAGS 16651 save_libdir=$libdir 16652 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16653 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16655/* end confdefs.h. */ 16656 16657int 16658main (void) 16659{ 16660 16661 ; 16662 return 0; 16663} 16664_ACEOF 16665if ac_fn_cxx_try_link "$LINENO" 16666then : 16667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 16668then : 16669 lt_cv_shlibpath_overrides_runpath=yes 16670fi 16671fi 16672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16673 conftest$ac_exeext conftest.$ac_ext 16674 LDFLAGS=$save_LDFLAGS 16675 libdir=$save_libdir 16676 16677fi 16678 16679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16680 16681 # This implies no fast_install, which is unacceptable. 16682 # Some rework will be needed to allow for fast_install 16683 # before this can be enabled. 16684 hardcode_into_libs=yes 16685 16686 # Ideally, we could use ldconfig to report *all* directores which are 16687 # searched for libraries, however this is still not possible. Aside from not 16688 # being certain /sbin/ldconfig is available, command 16689 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16690 # even though it is searched at run-time. Try to do the best guess by 16691 # appending ld.so.conf contents (and includes) to the search path. 16692 if test -f /etc/ld.so.conf; then 16693 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' ' '` 16694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16695 fi 16696 16697 # We used to test for /lib/ld.so.1 and disable shared libraries on 16698 # powerpc, because MkLinux only supported shared libraries with the 16699 # GNU dynamic linker. Since this was broken with cross compilers, 16700 # most powerpc-linux boxes support dynamic linking these days and 16701 # people can always --disable-shared, the test was removed, and we 16702 # assume the GNU/Linux dynamic linker is in use. 16703 dynamic_linker='GNU/Linux ld.so' 16704 ;; 16705 16706netbsd*) 16707 version_type=sunos 16708 need_lib_prefix=no 16709 need_version=no 16710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16713 dynamic_linker='NetBSD (a.out) ld.so' 16714 else 16715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16716 soname_spec='$libname$release$shared_ext$major' 16717 dynamic_linker='NetBSD ld.elf_so' 16718 fi 16719 shlibpath_var=LD_LIBRARY_PATH 16720 shlibpath_overrides_runpath=yes 16721 hardcode_into_libs=yes 16722 ;; 16723 16724newsos6) 16725 version_type=linux # correct to gnu/linux during the next big refactor 16726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16727 shlibpath_var=LD_LIBRARY_PATH 16728 shlibpath_overrides_runpath=yes 16729 ;; 16730 16731*nto* | *qnx*) 16732 version_type=qnx 16733 need_lib_prefix=no 16734 need_version=no 16735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16736 soname_spec='$libname$release$shared_ext$major' 16737 shlibpath_var=LD_LIBRARY_PATH 16738 shlibpath_overrides_runpath=no 16739 hardcode_into_libs=yes 16740 dynamic_linker='ldqnx.so' 16741 ;; 16742 16743openbsd* | bitrig*) 16744 version_type=sunos 16745 sys_lib_dlsearch_path_spec=/usr/lib 16746 need_lib_prefix=no 16747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16748 need_version=no 16749 else 16750 need_version=yes 16751 fi 16752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16754 shlibpath_var=LD_LIBRARY_PATH 16755 shlibpath_overrides_runpath=yes 16756 ;; 16757 16758os2*) 16759 libname_spec='$name' 16760 version_type=windows 16761 shrext_cmds=.dll 16762 need_version=no 16763 need_lib_prefix=no 16764 # OS/2 can only load a DLL with a base name of 8 characters or less. 16765 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16766 v=$($ECHO $release$versuffix | tr -d .-); 16767 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16768 $ECHO $n$v`$shared_ext' 16769 library_names_spec='${libname}_dll.$libext' 16770 dynamic_linker='OS/2 ld.exe' 16771 shlibpath_var=BEGINLIBPATH 16772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16774 postinstall_cmds='base_file=`basename \$file`~ 16775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16776 dldir=$destdir/`dirname \$dlpath`~ 16777 test -d \$dldir || mkdir -p \$dldir~ 16778 $install_prog $dir/$dlname \$dldir/$dlname~ 16779 chmod a+x \$dldir/$dlname~ 16780 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16781 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16782 fi' 16783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16784 dlpath=$dir/\$dldll~ 16785 $RM \$dlpath' 16786 ;; 16787 16788osf3* | osf4* | osf5*) 16789 version_type=osf 16790 need_lib_prefix=no 16791 need_version=no 16792 soname_spec='$libname$release$shared_ext$major' 16793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16794 shlibpath_var=LD_LIBRARY_PATH 16795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16797 ;; 16798 16799rdos*) 16800 dynamic_linker=no 16801 ;; 16802 16803solaris*) 16804 version_type=linux # correct to gnu/linux during the next big refactor 16805 need_lib_prefix=no 16806 need_version=no 16807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16808 soname_spec='$libname$release$shared_ext$major' 16809 shlibpath_var=LD_LIBRARY_PATH 16810 shlibpath_overrides_runpath=yes 16811 hardcode_into_libs=yes 16812 # ldd complains unless libraries are executable 16813 postinstall_cmds='chmod +x $lib' 16814 ;; 16815 16816sunos4*) 16817 version_type=sunos 16818 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16820 shlibpath_var=LD_LIBRARY_PATH 16821 shlibpath_overrides_runpath=yes 16822 if test yes = "$with_gnu_ld"; then 16823 need_lib_prefix=no 16824 fi 16825 need_version=yes 16826 ;; 16827 16828sysv4 | sysv4.3*) 16829 version_type=linux # correct to gnu/linux during the next big refactor 16830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16831 soname_spec='$libname$release$shared_ext$major' 16832 shlibpath_var=LD_LIBRARY_PATH 16833 case $host_vendor in 16834 sni) 16835 shlibpath_overrides_runpath=no 16836 need_lib_prefix=no 16837 runpath_var=LD_RUN_PATH 16838 ;; 16839 siemens) 16840 need_lib_prefix=no 16841 ;; 16842 motorola) 16843 need_lib_prefix=no 16844 need_version=no 16845 shlibpath_overrides_runpath=no 16846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16847 ;; 16848 esac 16849 ;; 16850 16851sysv4*MP*) 16852 if test -d /usr/nec; then 16853 version_type=linux # correct to gnu/linux during the next big refactor 16854 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16855 soname_spec='$libname$shared_ext.$major' 16856 shlibpath_var=LD_LIBRARY_PATH 16857 fi 16858 ;; 16859 16860sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16861 version_type=sco 16862 need_lib_prefix=no 16863 need_version=no 16864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16865 soname_spec='$libname$release$shared_ext$major' 16866 shlibpath_var=LD_LIBRARY_PATH 16867 shlibpath_overrides_runpath=yes 16868 hardcode_into_libs=yes 16869 if test yes = "$with_gnu_ld"; then 16870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16871 else 16872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16873 case $host_os in 16874 sco3.2v5*) 16875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16876 ;; 16877 esac 16878 fi 16879 sys_lib_dlsearch_path_spec='/usr/lib' 16880 ;; 16881 16882tpf*) 16883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16884 version_type=linux # correct to gnu/linux during the next big refactor 16885 need_lib_prefix=no 16886 need_version=no 16887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16888 shlibpath_var=LD_LIBRARY_PATH 16889 shlibpath_overrides_runpath=no 16890 hardcode_into_libs=yes 16891 ;; 16892 16893uts4*) 16894 version_type=linux # correct to gnu/linux during the next big refactor 16895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16896 soname_spec='$libname$release$shared_ext$major' 16897 shlibpath_var=LD_LIBRARY_PATH 16898 ;; 16899 16900*) 16901 dynamic_linker=no 16902 ;; 16903esac 16904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16905printf "%s\n" "$dynamic_linker" >&6; } 16906test no = "$dynamic_linker" && can_build_shared=no 16907 16908variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16909if test yes = "$GCC"; then 16910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16911fi 16912 16913if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16914 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16915fi 16916 16917if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16918 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16919fi 16920 16921# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16922configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16923 16924# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16925func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16926 16927# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16928configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16970printf %s "checking how to hardcode library paths into programs... " >&6; } 16971hardcode_action_CXX= 16972if test -n "$hardcode_libdir_flag_spec_CXX" || 16973 test -n "$runpath_var_CXX" || 16974 test yes = "$hardcode_automatic_CXX"; then 16975 16976 # We can hardcode non-existent directories. 16977 if test no != "$hardcode_direct_CXX" && 16978 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16979 # have to relink, otherwise we might link with an installed library 16980 # when we should be linking with a yet-to-be-installed one 16981 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16982 test no != "$hardcode_minus_L_CXX"; then 16983 # Linking always hardcodes the temporary library directory. 16984 hardcode_action_CXX=relink 16985 else 16986 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16987 hardcode_action_CXX=immediate 16988 fi 16989else 16990 # We cannot hardcode anything, or else we can only hardcode existing 16991 # directories. 16992 hardcode_action_CXX=unsupported 16993fi 16994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16995printf "%s\n" "$hardcode_action_CXX" >&6; } 16996 16997if test relink = "$hardcode_action_CXX" || 16998 test yes = "$inherit_rpath_CXX"; then 16999 # Fast installation is not supported 17000 enable_fast_install=no 17001elif test yes = "$shlibpath_overrides_runpath" || 17002 test no = "$enable_shared"; then 17003 # Fast installation is not necessary 17004 enable_fast_install=needless 17005fi 17006 17007 17008 17009 17010 17011 17012 17013 fi # test -n "$compiler" 17014 17015 CC=$lt_save_CC 17016 CFLAGS=$lt_save_CFLAGS 17017 LDCXX=$LD 17018 LD=$lt_save_LD 17019 GCC=$lt_save_GCC 17020 with_gnu_ld=$lt_save_with_gnu_ld 17021 lt_cv_path_LDCXX=$lt_cv_path_LD 17022 lt_cv_path_LD=$lt_save_path_LD 17023 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17024 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17025fi # test yes != "$_lt_caught_CXX_error" 17026 17027ac_ext=c 17028ac_cpp='$CPP $CPPFLAGS' 17029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17031ac_compiler_gnu=$ac_cv_c_compiler_gnu 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 ac_config_commands="$ac_config_commands libtool" 17048 17049 17050 17051 17052# Only expand once: 17053 17054 17055 17056# pkg-config 17057 17058 17059 17060 17061 17062 if test x"${PKG_CONFIG}" = x"" ; then 17063 for ac_prog in pkgconf pkg-config 17064do 17065 # Extract the first word of "$ac_prog", so it can be a program name with args. 17066set dummy $ac_prog; ac_word=$2 17067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17068printf %s "checking for $ac_word... " >&6; } 17069if test ${ac_cv_path_PKG_CONFIG+y} 17070then : 17071 printf %s "(cached) " >&6 17072else $as_nop 17073 case $PKG_CONFIG in 17074 [\\/]* | ?:[\\/]*) 17075 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17076 ;; 17077 *) 17078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17079for as_dir in $PATH 17080do 17081 IFS=$as_save_IFS 17082 case $as_dir in #((( 17083 '') as_dir=./ ;; 17084 */) ;; 17085 *) as_dir=$as_dir/ ;; 17086 esac 17087 for ac_exec_ext in '' $ac_executable_extensions; do 17088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17089 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 17090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17091 break 2 17092 fi 17093done 17094 done 17095IFS=$as_save_IFS 17096 17097 ;; 17098esac 17099fi 17100PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17101if test -n "$PKG_CONFIG"; then 17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17103printf "%s\n" "$PKG_CONFIG" >&6; } 17104else 17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17106printf "%s\n" "no" >&6; } 17107fi 17108 17109 17110 test -n "$PKG_CONFIG" && break 17111done 17112 >/dev/null 17113 else 17114 # Extract the first word of "${PKG_CONFIG}", so it can be a program name with args. 17115set dummy ${PKG_CONFIG}; ac_word=$2 17116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17117printf %s "checking for $ac_word... " >&6; } 17118if test ${ac_cv_path_PKG_CONFIG+y} 17119then : 17120 printf %s "(cached) " >&6 17121else $as_nop 17122 case $PKG_CONFIG in 17123 [\\/]* | ?:[\\/]*) 17124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17125 ;; 17126 *) 17127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17128for as_dir in $PATH 17129do 17130 IFS=$as_save_IFS 17131 case $as_dir in #((( 17132 '') as_dir=./ ;; 17133 */) ;; 17134 *) as_dir=$as_dir/ ;; 17135 esac 17136 for ac_exec_ext in '' $ac_executable_extensions; do 17137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17138 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 17139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17140 break 2 17141 fi 17142done 17143 done 17144IFS=$as_save_IFS 17145 17146 ;; 17147esac 17148fi 17149PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17150if test -n "$PKG_CONFIG"; then 17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17152printf "%s\n" "$PKG_CONFIG" >&6; } 17153else 17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17155printf "%s\n" "no" >&6; } 17156fi 17157 17158 17159 fi 17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config or pkgconf" >&5 17161printf %s "checking for pkg-config or pkgconf... " >&6; } 17162 if test -x "${PKG_CONFIG}" ; then 17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG}" >&5 17164printf "%s\n" "${PKG_CONFIG}" >&6; } 17165 case "${PKG_CONFIG}" in 17166 *pkgconf) 17167 _min_version="1.3.0" 17168 ;; 17169 *pkg-config) 17170 _min_version="0.23" 17171 ;; 17172 *) 17173 _min_version="9.9.error" 17174 ;; 17175 esac 17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that ${PKG_CONFIG} is at least version ${_min_version}" >&5 17177printf %s "checking that ${PKG_CONFIG} is at least version ${_min_version}... " >&6; } 17178 _act_version=`"${PKG_CONFIG}" --version` 17179 if ! "${PKG_CONFIG}" --atleast-pkgconfig-version="${_min_version}" ; then 17180 PKG_CONFIG="" 17181 fi 17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_act_version}" >&5 17183printf "%s\n" "${_act_version}" >&6; } 17184 else 17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17186printf "%s\n" "no" >&6; } 17187 PKG_CONFIG="" 17188 fi 17189 if test x"${PKG_CONFIG}" = x"" ; then 17190 as_fn_error $? "pkg-config was not found or is too old" "$LINENO" 5 17191 fi 17192 17193# Check whether --with-pkgconfigdir was given. 17194if test ${with_pkgconfigdir+y} 17195then : 17196 withval=$with_pkgconfigdir; pkgconfigdir=$withval 17197else $as_nop 17198 pkgconfigdir='${libdir}/pkgconfig' 17199fi 17200 17201 pkgconfigdir=$pkgconfigdir 17202 17203 17204 17205# other programs 17206 17207 17208LIB_MAJ=2 17209 17210 17211printf "%s\n" "#define LIB_MAJ $LIB_MAJ" >>confdefs.h 17212 17213 17214# Check whether --enable-debug was given. 17215if test ${enable_debug+y} 17216then : 17217 enableval=$enable_debug; 17218printf "%s\n" "#define OPENPAM_DEBUG 1" >>confdefs.h 17219 17220fi 17221 17222 17223# Check whether --enable-unversioned-modules was given. 17224if test ${enable_unversioned_modules+y} 17225then : 17226 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no" 17227then : 17228 17229 17230printf "%s\n" "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h 17231 17232 17233fi 17234fi 17235 17236 17237 17238# Check whether --with-modules-dir was given. 17239if test ${with_modules_dir+y} 17240then : 17241 withval=$with_modules_dir; if test x"$withval" != x"no" 17242then : 17243 17244 OPENPAM_MODULES_DIR="$withval" 17245 17246printf "%s\n" "#define OPENPAM_MODULES_DIR \"${OPENPAM_MODULES_DIR%/}\"" >>confdefs.h 17247 17248 17249fi 17250fi 17251 17252 17253 if test x"$OPENPAM_MODULES_DIR" != x""; then 17254 CUSTOM_MODULES_DIR_TRUE= 17255 CUSTOM_MODULES_DIR_FALSE='#' 17256else 17257 CUSTOM_MODULES_DIR_TRUE='#' 17258 CUSTOM_MODULES_DIR_FALSE= 17259fi 17260 17261 17262 17263# Check whether --with-doc was given. 17264if test ${with_doc+y} 17265then : 17266 withval=$with_doc; 17267else $as_nop 17268 with_doc=yes 17269fi 17270 17271 if test x"$with_doc" = x"yes"; then 17272 WITH_DOC_TRUE= 17273 WITH_DOC_FALSE='#' 17274else 17275 WITH_DOC_TRUE='#' 17276 WITH_DOC_FALSE= 17277fi 17278 17279 17280 17281# Check whether --with-pam-unix was given. 17282if test ${with_pam_unix+y} 17283then : 17284 withval=$with_pam_unix; 17285else $as_nop 17286 with_pam_unix=no 17287fi 17288 17289 if test x"$with_pam_unix" = x"yes"; then 17290 WITH_PAM_UNIX_TRUE= 17291 WITH_PAM_UNIX_FALSE='#' 17292else 17293 WITH_PAM_UNIX_TRUE='#' 17294 WITH_PAM_UNIX_FALSE= 17295fi 17296 17297 17298 17299# Check whether --with-pamtest was given. 17300if test ${with_pamtest+y} 17301then : 17302 withval=$with_pamtest; 17303else $as_nop 17304 with_pamtest=no 17305fi 17306 17307 if test x"$with_pamtest" = x"yes"; then 17308 WITH_PAMTEST_TRUE= 17309 WITH_PAMTEST_FALSE='#' 17310else 17311 WITH_PAMTEST_TRUE='#' 17312 WITH_PAMTEST_FALSE= 17313fi 17314 17315 17316 17317# Check whether --with-su was given. 17318if test ${with_su+y} 17319then : 17320 withval=$with_su; 17321else $as_nop 17322 with_su=no 17323fi 17324 17325 if test x"$with_su" = x"yes"; then 17326 WITH_SU_TRUE= 17327 WITH_SU_FALSE='#' 17328else 17329 WITH_SU_TRUE='#' 17330 WITH_SU_FALSE= 17331fi 17332 17333 17334 17335# Check whether --with-system-libpam was given. 17336if test ${with_system_libpam+y} 17337then : 17338 withval=$with_system_libpam; 17339else $as_nop 17340 with_system_libpam=no 17341fi 17342 17343 if test x"$with_system_libpam" = x"yes"; then 17344 WITH_SYSTEM_LIBPAM_TRUE= 17345 WITH_SYSTEM_LIBPAM_FALSE='#' 17346else 17347 WITH_SYSTEM_LIBPAM_TRUE='#' 17348 WITH_SYSTEM_LIBPAM_FALSE= 17349fi 17350 17351 17352ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 17353if test "x$ac_cv_header_crypt_h" = xyes 17354then : 17355 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h 17356 17357fi 17358 17359 17360ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 17361if test "x$ac_cv_func_asprintf" = xyes 17362then : 17363 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 17364 17365fi 17366ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 17367if test "x$ac_cv_func_vasprintf" = xyes 17368then : 17369 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 17370 17371fi 17372 17373ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" 17374if test "x$ac_cv_func_dlfunc" = xyes 17375then : 17376 printf "%s\n" "#define HAVE_DLFUNC 1" >>confdefs.h 17377 17378fi 17379ac_fn_c_check_func "$LINENO" "fdlopen" "ac_cv_func_fdlopen" 17380if test "x$ac_cv_func_fdlopen" = xyes 17381then : 17382 printf "%s\n" "#define HAVE_FDLOPEN 1" >>confdefs.h 17383 17384fi 17385 17386ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge" 17387if test "x$ac_cv_func_fpurge" = xyes 17388then : 17389 printf "%s\n" "#define HAVE_FPURGE 1" >>confdefs.h 17390 17391fi 17392 17393ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask" 17394if test "x$ac_cv_func_setlogmask" = xyes 17395then : 17396 printf "%s\n" "#define HAVE_SETLOGMASK 1" >>confdefs.h 17397 17398fi 17399 17400ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 17401if test "x$ac_cv_func_strlcat" = xyes 17402then : 17403 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 17404 17405fi 17406ac_fn_c_check_func "$LINENO" "strlcmp" "ac_cv_func_strlcmp" 17407if test "x$ac_cv_func_strlcmp" = xyes 17408then : 17409 printf "%s\n" "#define HAVE_STRLCMP 1" >>confdefs.h 17410 17411fi 17412ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 17413if test "x$ac_cv_func_strlcpy" = xyes 17414then : 17415 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 17416 17417fi 17418ac_fn_c_check_func "$LINENO" "strlset" "ac_cv_func_strlset" 17419if test "x$ac_cv_func_strlset" = xyes 17420then : 17421 printf "%s\n" "#define HAVE_STRLSET 1" >>confdefs.h 17422 17423fi 17424 17425 17426saved_LIBS="${LIBS}" 17427LIBS="" 17428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17429printf %s "checking for dlopen in -ldl... " >&6; } 17430if test ${ac_cv_lib_dl_dlopen+y} 17431then : 17432 printf %s "(cached) " >&6 17433else $as_nop 17434 ac_check_lib_save_LIBS=$LIBS 17435LIBS="-ldl $LIBS" 17436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17437/* end confdefs.h. */ 17438 17439/* Override any GCC internal prototype to avoid an error. 17440 Use char because int might match the return type of a GCC 17441 builtin and then its argument prototype would still apply. */ 17442char dlopen (); 17443int 17444main (void) 17445{ 17446return dlopen (); 17447 ; 17448 return 0; 17449} 17450_ACEOF 17451if ac_fn_c_try_link "$LINENO" 17452then : 17453 ac_cv_lib_dl_dlopen=yes 17454else $as_nop 17455 ac_cv_lib_dl_dlopen=no 17456fi 17457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17458 conftest$ac_exeext conftest.$ac_ext 17459LIBS=$ac_check_lib_save_LIBS 17460fi 17461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17462printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 17463if test "x$ac_cv_lib_dl_dlopen" = xyes 17464then : 17465 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h 17466 17467 LIBS="-ldl $LIBS" 17468 17469fi 17470 17471DL_LIBS="${LIBS}" 17472LIBS="${saved_LIBS}" 17473 17474 17475saved_LIBS="${LIBS}" 17476LIBS="" 17477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 17478printf %s "checking for pam_start in -lpam... " >&6; } 17479if test ${ac_cv_lib_pam_pam_start+y} 17480then : 17481 printf %s "(cached) " >&6 17482else $as_nop 17483 ac_check_lib_save_LIBS=$LIBS 17484LIBS="-lpam $LIBS" 17485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17486/* end confdefs.h. */ 17487 17488/* Override any GCC internal prototype to avoid an error. 17489 Use char because int might match the return type of a GCC 17490 builtin and then its argument prototype would still apply. */ 17491char pam_start (); 17492int 17493main (void) 17494{ 17495return pam_start (); 17496 ; 17497 return 0; 17498} 17499_ACEOF 17500if ac_fn_c_try_link "$LINENO" 17501then : 17502 ac_cv_lib_pam_pam_start=yes 17503else $as_nop 17504 ac_cv_lib_pam_pam_start=no 17505fi 17506rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17507 conftest$ac_exeext conftest.$ac_ext 17508LIBS=$ac_check_lib_save_LIBS 17509fi 17510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 17511printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; } 17512if test "x$ac_cv_lib_pam_pam_start" = xyes 17513then : 17514 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h 17515 17516 LIBS="-lpam $LIBS" 17517 17518fi 17519 17520SYSTEM_LIBPAM="${LIBS}" 17521LIBS="${saved_LIBS}" 17522 17523 17524 17525 17526 17527 17528 17529 17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cryb-test is installed" >&5 17531printf %s "checking if cryb-test is installed... " >&6; } 17532 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \"\${PKG_CONFIG}\" --exists --print-errors \"cryb-test\""; } >&5 17533 ("${PKG_CONFIG}" --exists --print-errors "cryb-test") 2>&5 17534 ac_status=$? 17535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17536 test $ac_status = 0; } ; then 17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17538printf "%s\n" "yes" >&6; } 17539 ax_pc_cv_have_cryb_test=yes 17540 17541printf "%s\n" "#define HAVE_CRYB_TEST 1" >>confdefs.h 17542 17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test version" >&5 17544printf %s "checking cryb-test version... " >&6; } 17545 17546 17547 17548 ax_pc_cv_cryb_test_version=`"${PKG_CONFIG}" --modversion cryb-test` 17549 17550 CRYB_TEST_VERSION=$ax_pc_cv_cryb_test_version 17551 17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_version:-unknown}" >&5 17553printf "%s\n" "${ax_pc_cv_cryb_test_version:-unknown}" >&6; } 17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test compiler flags" >&5 17555printf %s "checking cryb-test compiler flags... " >&6; } 17556 17557 17558 17559 ax_pc_cv_cryb_test_cflags=`"${PKG_CONFIG}" --cflags cryb-test` 17560 17561 CRYB_TEST_CFLAGS=$ax_pc_cv_cryb_test_cflags 17562 17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_cflags:-none}" >&5 17564printf "%s\n" "${ax_pc_cv_cryb_test_cflags:-none}" >&6; } 17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test linker flags" >&5 17566printf %s "checking cryb-test linker flags... " >&6; } 17567 17568 17569 17570 ax_pc_cv_cryb_test_libs=`"${PKG_CONFIG}" --libs cryb-test` 17571 17572 CRYB_TEST_LIBS=$ax_pc_cv_cryb_test_libs 17573 17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_libs:-none}" >&5 17575printf "%s\n" "${ax_pc_cv_cryb_test_libs:-none}" >&6; } 17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cryb test framework found, unit tests enabled." >&5 17577printf "%s\n" "$as_me: Cryb test framework found, unit tests enabled." >&6;} 17578 else 17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17580printf "%s\n" "no" >&6; } 17581 ax_pc_cv_have_cryb_test=no 17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cryb test framework not found, unit tests disabled." >&5 17583printf "%s\n" "$as_me: WARNING: Cryb test framework not found, unit tests disabled." >&2;} 17584 fi 17585 17586 if test x"$ax_pc_cv_have_cryb_test" = x"yes"; then 17587 HAVE_CRYB_TEST_TRUE= 17588 HAVE_CRYB_TEST_FALSE='#' 17589else 17590 HAVE_CRYB_TEST_TRUE='#' 17591 HAVE_CRYB_TEST_FALSE= 17592fi 17593 17594 17595 17596 if test x"$CRYB_TEST_LIBS" != x""; then 17597 WITH_TEST_TRUE= 17598 WITH_TEST_FALSE='#' 17599else 17600 WITH_TEST_TRUE='#' 17601 WITH_TEST_FALSE= 17602fi 17603 17604 17605# Check whether --enable-developer-warnings was given. 17606if test ${enable_developer_warnings+y} 17607then : 17608 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual" 17609fi 17610 17611# Check whether --enable-debugging-symbols was given. 17612if test ${enable_debugging_symbols+y} 17613then : 17614 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline" 17615fi 17616 17617# Check whether --enable-werror was given. 17618if test ${enable_werror+y} 17619then : 17620 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror" 17621fi 17622 17623 17624# Check whether --enable-code-coverage was given. 17625if test ${enable_code_coverage+y} 17626then : 17627 enableval=$enable_code_coverage; 17628fi 17629 17630if test x"$enable_code_coverage" = x"yes" 17631then : 17632 17633 if test -z "$WITH_TEST_TRUE"; then : 17634 17635 if test x"$ax_cv_c_compiler_vendor" = x"clang" 17636then : 17637 17638 CFLAGS="${CFLAGS} -fprofile-instr-generate -fcoverage-mapping" 17639 clang_code_coverage="yes" 17640 clang_ver=${CC#clang} 17641 17642 17643else $as_nop 17644 17645 as_fn_error $? "code coverage is only supported with clang" "$LINENO" 5 17646 17647fi 17648 17649printf "%s\n" "#define WITH_CODE_COVERAGE 1" >>confdefs.h 17650 17651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: code coverage enabled" >&5 17652printf "%s\n" "$as_me: code coverage enabled" >&6;} 17653 17654else 17655 17656 as_fn_error $? "code coverage requires unit tests" "$LINENO" 5 17657 17658fi 17659 17660fi 17661 if test x"$enable_code_coverage" = x"yes"; then 17662 WITH_CODE_COVERAGE_TRUE= 17663 WITH_CODE_COVERAGE_FALSE='#' 17664else 17665 WITH_CODE_COVERAGE_TRUE='#' 17666 WITH_CODE_COVERAGE_FALSE= 17667fi 17668 17669 if test x"$clang_code_coverage" = x"yes"; then 17670 CLANG_CODE_COVERAGE_TRUE= 17671 CLANG_CODE_COVERAGE_FALSE='#' 17672else 17673 CLANG_CODE_COVERAGE_TRUE='#' 17674 CLANG_CODE_COVERAGE_FALSE= 17675fi 17676 17677 17678ac_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" 17679 17680ac_config_files="$ac_config_files misc/coverity.sh" 17681 17682cat >confcache <<\_ACEOF 17683# This file is a shell script that caches the results of configure 17684# tests run on this system so they can be shared between configure 17685# scripts and configure runs, see configure's option --config-cache. 17686# It is not useful on other systems. If it contains results you don't 17687# want to keep, you may remove or edit it. 17688# 17689# config.status only pays attention to the cache file if you give it 17690# the --recheck option to rerun configure. 17691# 17692# `ac_cv_env_foo' variables (set or unset) will be overridden when 17693# loading this file, other *unset* `ac_cv_foo' will be assigned the 17694# following values. 17695 17696_ACEOF 17697 17698# The following way of writing the cache mishandles newlines in values, 17699# but we know of no workaround that is simple, portable, and efficient. 17700# So, we kill variables containing newlines. 17701# Ultrix sh set writes to stderr and can't be redirected directly, 17702# and sets the high bit in the cache file unless we assign to the vars. 17703( 17704 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17705 eval ac_val=\$$ac_var 17706 case $ac_val in #( 17707 *${as_nl}*) 17708 case $ac_var in #( 17709 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17710printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17711 esac 17712 case $ac_var in #( 17713 _ | IFS | as_nl) ;; #( 17714 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17715 *) { eval $ac_var=; unset $ac_var;} ;; 17716 esac ;; 17717 esac 17718 done 17719 17720 (set) 2>&1 | 17721 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17722 *${as_nl}ac_space=\ *) 17723 # `set' does not quote correctly, so add quotes: double-quote 17724 # substitution turns \\\\ into \\, and sed turns \\ into \. 17725 sed -n \ 17726 "s/'/'\\\\''/g; 17727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17728 ;; #( 17729 *) 17730 # `set' quotes correctly as required by POSIX, so do not add quotes. 17731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17732 ;; 17733 esac | 17734 sort 17735) | 17736 sed ' 17737 /^ac_cv_env_/b end 17738 t clear 17739 :clear 17740 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 17741 t end 17742 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17743 :end' >>confcache 17744if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17745 if test -w "$cache_file"; then 17746 if test "x$cache_file" != "x/dev/null"; then 17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17748printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 17749 if test ! -f "$cache_file" || test -h "$cache_file"; then 17750 cat confcache >"$cache_file" 17751 else 17752 case $cache_file in #( 17753 */* | ?:*) 17754 mv -f confcache "$cache_file"$$ && 17755 mv -f "$cache_file"$$ "$cache_file" ;; #( 17756 *) 17757 mv -f confcache "$cache_file" ;; 17758 esac 17759 fi 17760 fi 17761 else 17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17763printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 17764 fi 17765fi 17766rm -f confcache 17767 17768test "x$prefix" = xNONE && prefix=$ac_default_prefix 17769# Let make expand exec_prefix. 17770test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17771 17772DEFS=-DHAVE_CONFIG_H 17773 17774ac_libobjs= 17775ac_ltlibobjs= 17776for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17777 # 1. Remove the extension, and $U if already installed. 17778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17779 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 17780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17781 # will be set to the directory where LIBOBJS objects are built. 17782 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17783 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17784done 17785LIBOBJS=$ac_libobjs 17786 17787LTLIBOBJS=$ac_ltlibobjs 17788 17789 17790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17791printf %s "checking that generated files are newer than configure... " >&6; } 17792 if test -n "$am_sleep_pid"; then 17793 # Hide warnings about reused PIDs. 17794 wait $am_sleep_pid 2>/dev/null 17795 fi 17796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 17797printf "%s\n" "done" >&6; } 17798 if test -n "$EXEEXT"; then 17799 am__EXEEXT_TRUE= 17800 am__EXEEXT_FALSE='#' 17801else 17802 am__EXEEXT_TRUE='#' 17803 am__EXEEXT_FALSE= 17804fi 17805 17806if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17807 as_fn_error $? "conditional \"AMDEP\" was never defined. 17808Usually this means the macro was only invoked conditionally." "$LINENO" 5 17809fi 17810if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17812Usually this means the macro was only invoked conditionally." "$LINENO" 5 17813fi 17814if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17815 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17816Usually this means the macro was only invoked conditionally." "$LINENO" 5 17817fi 17818if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then 17819 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined. 17820Usually this means the macro was only invoked conditionally." "$LINENO" 5 17821fi 17822if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then 17823 as_fn_error $? "conditional \"WITH_DOC\" was never defined. 17824Usually this means the macro was only invoked conditionally." "$LINENO" 5 17825fi 17826if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then 17827 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined. 17828Usually this means the macro was only invoked conditionally." "$LINENO" 5 17829fi 17830if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then 17831 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined. 17832Usually this means the macro was only invoked conditionally." "$LINENO" 5 17833fi 17834if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then 17835 as_fn_error $? "conditional \"WITH_SU\" was never defined. 17836Usually this means the macro was only invoked conditionally." "$LINENO" 5 17837fi 17838if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then 17839 as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined. 17840Usually this means the macro was only invoked conditionally." "$LINENO" 5 17841fi 17842if test -z "${HAVE_CRYB_TEST_TRUE}" && test -z "${HAVE_CRYB_TEST_FALSE}"; then 17843 as_fn_error $? "conditional \"HAVE_CRYB_TEST\" was never defined. 17844Usually this means the macro was only invoked conditionally." "$LINENO" 5 17845fi 17846if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then 17847 as_fn_error $? "conditional \"WITH_TEST\" was never defined. 17848Usually this means the macro was only invoked conditionally." "$LINENO" 5 17849fi 17850if test -z "${WITH_CODE_COVERAGE_TRUE}" && test -z "${WITH_CODE_COVERAGE_FALSE}"; then 17851 as_fn_error $? "conditional \"WITH_CODE_COVERAGE\" was never defined. 17852Usually this means the macro was only invoked conditionally." "$LINENO" 5 17853fi 17854if test -z "${CLANG_CODE_COVERAGE_TRUE}" && test -z "${CLANG_CODE_COVERAGE_FALSE}"; then 17855 as_fn_error $? "conditional \"CLANG_CODE_COVERAGE\" was never defined. 17856Usually this means the macro was only invoked conditionally." "$LINENO" 5 17857fi 17858 17859: "${CONFIG_STATUS=./config.status}" 17860ac_write_fail=0 17861ac_clean_files_save=$ac_clean_files 17862ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17864printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 17865as_write_fail=0 17866cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17867#! $SHELL 17868# Generated by $as_me. 17869# Run this file to recreate the current configuration. 17870# Compiler output produced by configure, useful for debugging 17871# configure, is in config.log if it exists. 17872 17873debug=false 17874ac_cs_recheck=false 17875ac_cs_silent=false 17876 17877SHELL=\${CONFIG_SHELL-$SHELL} 17878export SHELL 17879_ASEOF 17880cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17881## -------------------- ## 17882## M4sh Initialization. ## 17883## -------------------- ## 17884 17885# Be more Bourne compatible 17886DUALCASE=1; export DUALCASE # for MKS sh 17887as_nop=: 17888if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 17889then : 17890 emulate sh 17891 NULLCMD=: 17892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17893 # is contrary to our usage. Disable this feature. 17894 alias -g '${1+"$@"}'='"$@"' 17895 setopt NO_GLOB_SUBST 17896else $as_nop 17897 case `(set -o) 2>/dev/null` in #( 17898 *posix*) : 17899 set -o posix ;; #( 17900 *) : 17901 ;; 17902esac 17903fi 17904 17905 17906 17907# Reset variables that may have inherited troublesome values from 17908# the environment. 17909 17910# IFS needs to be set, to space, tab, and newline, in precisely that order. 17911# (If _AS_PATH_WALK were called with IFS unset, it would have the 17912# side effect of setting IFS to empty, thus disabling word splitting.) 17913# Quoting is to prevent editors from complaining about space-tab. 17914as_nl=' 17915' 17916export as_nl 17917IFS=" "" $as_nl" 17918 17919PS1='$ ' 17920PS2='> ' 17921PS4='+ ' 17922 17923# Ensure predictable behavior from utilities with locale-dependent output. 17924LC_ALL=C 17925export LC_ALL 17926LANGUAGE=C 17927export LANGUAGE 17928 17929# We cannot yet rely on "unset" to work, but we need these variables 17930# to be unset--not just set to an empty or harmless value--now, to 17931# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 17932# also avoids known problems related to "unset" and subshell syntax 17933# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 17934for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 17935do eval test \${$as_var+y} \ 17936 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17937done 17938 17939# Ensure that fds 0, 1, and 2 are open. 17940if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 17941if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 17942if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 17943 17944# The user is always right. 17945if ${PATH_SEPARATOR+false} :; then 17946 PATH_SEPARATOR=: 17947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17949 PATH_SEPARATOR=';' 17950 } 17951fi 17952 17953 17954# Find who we are. Look in the path if we contain no directory separator. 17955as_myself= 17956case $0 in #(( 17957 *[\\/]* ) as_myself=$0 ;; 17958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17959for as_dir in $PATH 17960do 17961 IFS=$as_save_IFS 17962 case $as_dir in #((( 17963 '') as_dir=./ ;; 17964 */) ;; 17965 *) as_dir=$as_dir/ ;; 17966 esac 17967 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 17968 done 17969IFS=$as_save_IFS 17970 17971 ;; 17972esac 17973# We did not find ourselves, most probably we were run as `sh COMMAND' 17974# in which case we are not to be found in the path. 17975if test "x$as_myself" = x; then 17976 as_myself=$0 17977fi 17978if test ! -f "$as_myself"; then 17979 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17980 exit 1 17981fi 17982 17983 17984 17985# as_fn_error STATUS ERROR [LINENO LOG_FD] 17986# ---------------------------------------- 17987# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17988# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17989# script with STATUS, using 1 if that was 0. 17990as_fn_error () 17991{ 17992 as_status=$1; test $as_status -eq 0 && as_status=1 17993 if test "$4"; then 17994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17996 fi 17997 printf "%s\n" "$as_me: error: $2" >&2 17998 as_fn_exit $as_status 17999} # as_fn_error 18000 18001 18002 18003# as_fn_set_status STATUS 18004# ----------------------- 18005# Set $? to STATUS, without forking. 18006as_fn_set_status () 18007{ 18008 return $1 18009} # as_fn_set_status 18010 18011# as_fn_exit STATUS 18012# ----------------- 18013# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18014as_fn_exit () 18015{ 18016 set +e 18017 as_fn_set_status $1 18018 exit $1 18019} # as_fn_exit 18020 18021# as_fn_unset VAR 18022# --------------- 18023# Portably unset VAR. 18024as_fn_unset () 18025{ 18026 { eval $1=; unset $1;} 18027} 18028as_unset=as_fn_unset 18029 18030# as_fn_append VAR VALUE 18031# ---------------------- 18032# Append the text in VALUE to the end of the definition contained in VAR. Take 18033# advantage of any shell optimizations that allow amortized linear growth over 18034# repeated appends, instead of the typical quadratic growth present in naive 18035# implementations. 18036if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 18037then : 18038 eval 'as_fn_append () 18039 { 18040 eval $1+=\$2 18041 }' 18042else $as_nop 18043 as_fn_append () 18044 { 18045 eval $1=\$$1\$2 18046 } 18047fi # as_fn_append 18048 18049# as_fn_arith ARG... 18050# ------------------ 18051# Perform arithmetic evaluation on the ARGs, and store the result in the 18052# global $as_val. Take advantage of shells that can avoid forks. The arguments 18053# must be portable across $(()) and expr. 18054if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 18055then : 18056 eval 'as_fn_arith () 18057 { 18058 as_val=$(( $* )) 18059 }' 18060else $as_nop 18061 as_fn_arith () 18062 { 18063 as_val=`expr "$@" || test $? -eq 1` 18064 } 18065fi # as_fn_arith 18066 18067 18068if expr a : '\(a\)' >/dev/null 2>&1 && 18069 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18070 as_expr=expr 18071else 18072 as_expr=false 18073fi 18074 18075if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18076 as_basename=basename 18077else 18078 as_basename=false 18079fi 18080 18081if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18082 as_dirname=dirname 18083else 18084 as_dirname=false 18085fi 18086 18087as_me=`$as_basename -- "$0" || 18088$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18089 X"$0" : 'X\(//\)$' \| \ 18090 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18091printf "%s\n" X/"$0" | 18092 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18093 s//\1/ 18094 q 18095 } 18096 /^X\/\(\/\/\)$/{ 18097 s//\1/ 18098 q 18099 } 18100 /^X\/\(\/\).*/{ 18101 s//\1/ 18102 q 18103 } 18104 s/.*/./; q'` 18105 18106# Avoid depending upon Character Ranges. 18107as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18108as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18109as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18110as_cr_digits='0123456789' 18111as_cr_alnum=$as_cr_Letters$as_cr_digits 18112 18113 18114# Determine whether it's possible to make 'echo' print without a newline. 18115# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 18116# for compatibility with existing Makefiles. 18117ECHO_C= ECHO_N= ECHO_T= 18118case `echo -n x` in #((((( 18119-n*) 18120 case `echo 'xy\c'` in 18121 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18122 xy) ECHO_C='\c';; 18123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18124 ECHO_T=' ';; 18125 esac;; 18126*) 18127 ECHO_N='-n';; 18128esac 18129 18130# For backward compatibility with old third-party macros, we provide 18131# the shell variables $as_echo and $as_echo_n. New code should use 18132# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 18133as_echo='printf %s\n' 18134as_echo_n='printf %s' 18135 18136rm -f conf$$ conf$$.exe conf$$.file 18137if test -d conf$$.dir; then 18138 rm -f conf$$.dir/conf$$.file 18139else 18140 rm -f conf$$.dir 18141 mkdir conf$$.dir 2>/dev/null 18142fi 18143if (echo >conf$$.file) 2>/dev/null; then 18144 if ln -s conf$$.file conf$$ 2>/dev/null; then 18145 as_ln_s='ln -s' 18146 # ... but there are two gotchas: 18147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18149 # In both cases, we have to default to `cp -pR'. 18150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18151 as_ln_s='cp -pR' 18152 elif ln conf$$.file conf$$ 2>/dev/null; then 18153 as_ln_s=ln 18154 else 18155 as_ln_s='cp -pR' 18156 fi 18157else 18158 as_ln_s='cp -pR' 18159fi 18160rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18161rmdir conf$$.dir 2>/dev/null 18162 18163 18164# as_fn_mkdir_p 18165# ------------- 18166# Create "$as_dir" as a directory, including parents if necessary. 18167as_fn_mkdir_p () 18168{ 18169 18170 case $as_dir in #( 18171 -*) as_dir=./$as_dir;; 18172 esac 18173 test -d "$as_dir" || eval $as_mkdir_p || { 18174 as_dirs= 18175 while :; do 18176 case $as_dir in #( 18177 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18178 *) as_qdir=$as_dir;; 18179 esac 18180 as_dirs="'$as_qdir' $as_dirs" 18181 as_dir=`$as_dirname -- "$as_dir" || 18182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18183 X"$as_dir" : 'X\(//\)[^/]' \| \ 18184 X"$as_dir" : 'X\(//\)$' \| \ 18185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18186printf "%s\n" X"$as_dir" | 18187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18188 s//\1/ 18189 q 18190 } 18191 /^X\(\/\/\)[^/].*/{ 18192 s//\1/ 18193 q 18194 } 18195 /^X\(\/\/\)$/{ 18196 s//\1/ 18197 q 18198 } 18199 /^X\(\/\).*/{ 18200 s//\1/ 18201 q 18202 } 18203 s/.*/./; q'` 18204 test -d "$as_dir" && break 18205 done 18206 test -z "$as_dirs" || eval "mkdir $as_dirs" 18207 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18208 18209 18210} # as_fn_mkdir_p 18211if mkdir -p . 2>/dev/null; then 18212 as_mkdir_p='mkdir -p "$as_dir"' 18213else 18214 test -d ./-p && rmdir ./-p 18215 as_mkdir_p=false 18216fi 18217 18218 18219# as_fn_executable_p FILE 18220# ----------------------- 18221# Test if FILE is an executable regular file. 18222as_fn_executable_p () 18223{ 18224 test -f "$1" && test -x "$1" 18225} # as_fn_executable_p 18226as_test_x='test -x' 18227as_executable_p=as_fn_executable_p 18228 18229# Sed expression to map a string onto a valid CPP name. 18230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18231 18232# Sed expression to map a string onto a valid variable name. 18233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18234 18235 18236exec 6>&1 18237## ----------------------------------- ## 18238## Main body of $CONFIG_STATUS script. ## 18239## ----------------------------------- ## 18240_ASEOF 18241test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18242 18243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18244# Save the log message, to keep $0 and so on meaningful, and to 18245# report actual input values of CONFIG_FILES etc. instead of their 18246# values after options handling. 18247ac_log=" 18248This file was extended by OpenPAM $as_me 20230627, which was 18249generated by GNU Autoconf 2.71. Invocation command line was 18250 18251 CONFIG_FILES = $CONFIG_FILES 18252 CONFIG_HEADERS = $CONFIG_HEADERS 18253 CONFIG_LINKS = $CONFIG_LINKS 18254 CONFIG_COMMANDS = $CONFIG_COMMANDS 18255 $ $0 $@ 18256 18257on `(hostname || uname -n) 2>/dev/null | sed 1q` 18258" 18259 18260_ACEOF 18261 18262case $ac_config_files in *" 18263"*) set x $ac_config_files; shift; ac_config_files=$*;; 18264esac 18265 18266case $ac_config_headers in *" 18267"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18268esac 18269 18270 18271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18272# Files that config.status was made for. 18273config_files="$ac_config_files" 18274config_headers="$ac_config_headers" 18275config_commands="$ac_config_commands" 18276 18277_ACEOF 18278 18279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18280ac_cs_usage="\ 18281\`$as_me' instantiates files and other configuration actions 18282from templates according to the current configuration. Unless the files 18283and actions are specified as TAGs, all are instantiated by default. 18284 18285Usage: $0 [OPTION]... [TAG]... 18286 18287 -h, --help print this help, then exit 18288 -V, --version print version number and configuration settings, then exit 18289 --config print configuration, then exit 18290 -q, --quiet, --silent 18291 do not print progress messages 18292 -d, --debug don't remove temporary files 18293 --recheck update $as_me by reconfiguring in the same conditions 18294 --file=FILE[:TEMPLATE] 18295 instantiate the configuration file FILE 18296 --header=FILE[:TEMPLATE] 18297 instantiate the configuration header FILE 18298 18299Configuration files: 18300$config_files 18301 18302Configuration headers: 18303$config_headers 18304 18305Configuration commands: 18306$config_commands 18307 18308Report bugs to <des@des.no>. 18309OpenPAM home page: <https://openpam.org/>." 18310 18311_ACEOF 18312ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 18313ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 18314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18315ac_cs_config='$ac_cs_config_escaped' 18316ac_cs_version="\\ 18317OpenPAM config.status 20230627 18318configured by $0, generated by GNU Autoconf 2.71, 18319 with options \\"\$ac_cs_config\\" 18320 18321Copyright (C) 2021 Free Software Foundation, Inc. 18322This config.status script is free software; the Free Software Foundation 18323gives unlimited permission to copy, distribute and modify it." 18324 18325ac_pwd='$ac_pwd' 18326srcdir='$srcdir' 18327INSTALL='$INSTALL' 18328MKDIR_P='$MKDIR_P' 18329AWK='$AWK' 18330test -n "\$AWK" || AWK=awk 18331_ACEOF 18332 18333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18334# The default lists apply if the user does not specify any file. 18335ac_need_defaults=: 18336while test $# != 0 18337do 18338 case $1 in 18339 --*=?*) 18340 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18342 ac_shift=: 18343 ;; 18344 --*=) 18345 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18346 ac_optarg= 18347 ac_shift=: 18348 ;; 18349 *) 18350 ac_option=$1 18351 ac_optarg=$2 18352 ac_shift=shift 18353 ;; 18354 esac 18355 18356 case $ac_option in 18357 # Handling of the options. 18358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18359 ac_cs_recheck=: ;; 18360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18361 printf "%s\n" "$ac_cs_version"; exit ;; 18362 --config | --confi | --conf | --con | --co | --c ) 18363 printf "%s\n" "$ac_cs_config"; exit ;; 18364 --debug | --debu | --deb | --de | --d | -d ) 18365 debug=: ;; 18366 --file | --fil | --fi | --f ) 18367 $ac_shift 18368 case $ac_optarg in 18369 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18370 '') as_fn_error $? "missing file argument" ;; 18371 esac 18372 as_fn_append CONFIG_FILES " '$ac_optarg'" 18373 ac_need_defaults=false;; 18374 --header | --heade | --head | --hea ) 18375 $ac_shift 18376 case $ac_optarg in 18377 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18378 esac 18379 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18380 ac_need_defaults=false;; 18381 --he | --h) 18382 # Conflict between --help and --header 18383 as_fn_error $? "ambiguous option: \`$1' 18384Try \`$0 --help' for more information.";; 18385 --help | --hel | -h ) 18386 printf "%s\n" "$ac_cs_usage"; exit ;; 18387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18388 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18389 ac_cs_silent=: ;; 18390 18391 # This is an error. 18392 -*) as_fn_error $? "unrecognized option: \`$1' 18393Try \`$0 --help' for more information." ;; 18394 18395 *) as_fn_append ac_config_targets " $1" 18396 ac_need_defaults=false ;; 18397 18398 esac 18399 shift 18400done 18401 18402ac_configure_extra_args= 18403 18404if $ac_cs_silent; then 18405 exec 6>/dev/null 18406 ac_configure_extra_args="$ac_configure_extra_args --silent" 18407fi 18408 18409_ACEOF 18410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18411if \$ac_cs_recheck; then 18412 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18413 shift 18414 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 18415 CONFIG_SHELL='$SHELL' 18416 export CONFIG_SHELL 18417 exec "\$@" 18418fi 18419 18420_ACEOF 18421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18422exec 5>>config.log 18423{ 18424 echo 18425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18426## Running $as_me. ## 18427_ASBOX 18428 printf "%s\n" "$ac_log" 18429} >&5 18430 18431_ACEOF 18432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18433# 18434# INIT-COMMANDS 18435# 18436AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18437 18438 18439# The HP-UX ksh and POSIX shell print the target directory to stdout 18440# if CDPATH is set. 18441(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18442 18443sed_quote_subst='$sed_quote_subst' 18444double_quote_subst='$double_quote_subst' 18445delay_variable_subst='$delay_variable_subst' 18446macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18447macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18448enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18449enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18450pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18451enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18452shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18453SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18454ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18455PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18456host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18457host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18458host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18459build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18460build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18461build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18462SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18463Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18464GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18465EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18466FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18467LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18468NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18469LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18470max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18471ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18472exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18473lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18474lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18475lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18476lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18477lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18478reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18479reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18480FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 18481OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18482deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18483file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18484file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18485want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18486DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18487sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18488AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18489lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 18490AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18491archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18492STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18493RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18494old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18495old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18496old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18497lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18498CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18499CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18500compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18501GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18502lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18503lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18504lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18505lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18506lt_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"`' 18507lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18508nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18509lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18510lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18511objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18512MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18513lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18514lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18515lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18516lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18517lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18518need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18519MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18520DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18521NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18522LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18523OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18524OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18525libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18526shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18527extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18528archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18529enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18530export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18531whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18532compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18533old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18534old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18535archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18536archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18537module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18538module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18539with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18540allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18541no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18542hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18543hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18544hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18545hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18546hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18547hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18548hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18549inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18550link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18551always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18552export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18553exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18554include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18555prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18556postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18557file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18558variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18559need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18560need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18561version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18562runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18563shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18564shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18565libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18566library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18567soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18568install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18569postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18570postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18571finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18572finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18573hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18574sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18575configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18576configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18577hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18578enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18579enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18580enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18581old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18582striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18583compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18584predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18585postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18586predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18587postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18588compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18589LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18590reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18591reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18592old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18593compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18594GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18595lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18596lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18597lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18598lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18599lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18600archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18601enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18602export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18603whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18604compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18605old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18606old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18607archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18608archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18609module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18610module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18611with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18612allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18613no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18614hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18615hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18616hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18617hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18618hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18619hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18620hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18621inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18622link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18623always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18624export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18625exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18626include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18627prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18628postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18629file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18630hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18631compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18632predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18633postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18634predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18635postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18636compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18637 18638LTCC='$LTCC' 18639LTCFLAGS='$LTCFLAGS' 18640compiler='$compiler_DEFAULT' 18641 18642# A function that is used when there is no print builtin or printf. 18643func_fallback_echo () 18644{ 18645 eval 'cat <<_LTECHO_EOF 18646\$1 18647_LTECHO_EOF' 18648} 18649 18650# Quote evaled strings. 18651for var in SHELL \ 18652ECHO \ 18653PATH_SEPARATOR \ 18654SED \ 18655GREP \ 18656EGREP \ 18657FGREP \ 18658LD \ 18659NM \ 18660LN_S \ 18661lt_SP2NL \ 18662lt_NL2SP \ 18663reload_flag \ 18664FILECMD \ 18665OBJDUMP \ 18666deplibs_check_method \ 18667file_magic_cmd \ 18668file_magic_glob \ 18669want_nocaseglob \ 18670DLLTOOL \ 18671sharedlib_from_linklib_cmd \ 18672AR \ 18673archiver_list_spec \ 18674STRIP \ 18675RANLIB \ 18676CC \ 18677CFLAGS \ 18678compiler \ 18679lt_cv_sys_global_symbol_pipe \ 18680lt_cv_sys_global_symbol_to_cdecl \ 18681lt_cv_sys_global_symbol_to_import \ 18682lt_cv_sys_global_symbol_to_c_name_address \ 18683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18684lt_cv_nm_interface \ 18685nm_file_list_spec \ 18686lt_cv_truncate_bin \ 18687lt_prog_compiler_no_builtin_flag \ 18688lt_prog_compiler_pic \ 18689lt_prog_compiler_wl \ 18690lt_prog_compiler_static \ 18691lt_cv_prog_compiler_c_o \ 18692need_locks \ 18693MANIFEST_TOOL \ 18694DSYMUTIL \ 18695NMEDIT \ 18696LIPO \ 18697OTOOL \ 18698OTOOL64 \ 18699shrext_cmds \ 18700export_dynamic_flag_spec \ 18701whole_archive_flag_spec \ 18702compiler_needs_object \ 18703with_gnu_ld \ 18704allow_undefined_flag \ 18705no_undefined_flag \ 18706hardcode_libdir_flag_spec \ 18707hardcode_libdir_separator \ 18708exclude_expsyms \ 18709include_expsyms \ 18710file_list_spec \ 18711variables_saved_for_relink \ 18712libname_spec \ 18713library_names_spec \ 18714soname_spec \ 18715install_override_mode \ 18716finish_eval \ 18717old_striplib \ 18718striplib \ 18719compiler_lib_search_dirs \ 18720predep_objects \ 18721postdep_objects \ 18722predeps \ 18723postdeps \ 18724compiler_lib_search_path \ 18725LD_CXX \ 18726reload_flag_CXX \ 18727compiler_CXX \ 18728lt_prog_compiler_no_builtin_flag_CXX \ 18729lt_prog_compiler_pic_CXX \ 18730lt_prog_compiler_wl_CXX \ 18731lt_prog_compiler_static_CXX \ 18732lt_cv_prog_compiler_c_o_CXX \ 18733export_dynamic_flag_spec_CXX \ 18734whole_archive_flag_spec_CXX \ 18735compiler_needs_object_CXX \ 18736with_gnu_ld_CXX \ 18737allow_undefined_flag_CXX \ 18738no_undefined_flag_CXX \ 18739hardcode_libdir_flag_spec_CXX \ 18740hardcode_libdir_separator_CXX \ 18741exclude_expsyms_CXX \ 18742include_expsyms_CXX \ 18743file_list_spec_CXX \ 18744compiler_lib_search_dirs_CXX \ 18745predep_objects_CXX \ 18746postdep_objects_CXX \ 18747predeps_CXX \ 18748postdeps_CXX \ 18749compiler_lib_search_path_CXX; do 18750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18751 *[\\\\\\\`\\"\\\$]*) 18752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18753 ;; 18754 *) 18755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18756 ;; 18757 esac 18758done 18759 18760# Double-quote double-evaled strings. 18761for var in reload_cmds \ 18762old_postinstall_cmds \ 18763old_postuninstall_cmds \ 18764old_archive_cmds \ 18765extract_expsyms_cmds \ 18766old_archive_from_new_cmds \ 18767old_archive_from_expsyms_cmds \ 18768archive_cmds \ 18769archive_expsym_cmds \ 18770module_cmds \ 18771module_expsym_cmds \ 18772export_symbols_cmds \ 18773prelink_cmds \ 18774postlink_cmds \ 18775postinstall_cmds \ 18776postuninstall_cmds \ 18777finish_cmds \ 18778sys_lib_search_path_spec \ 18779configure_time_dlsearch_path \ 18780configure_time_lt_sys_library_path \ 18781reload_cmds_CXX \ 18782old_archive_cmds_CXX \ 18783old_archive_from_new_cmds_CXX \ 18784old_archive_from_expsyms_cmds_CXX \ 18785archive_cmds_CXX \ 18786archive_expsym_cmds_CXX \ 18787module_cmds_CXX \ 18788module_expsym_cmds_CXX \ 18789export_symbols_cmds_CXX \ 18790prelink_cmds_CXX \ 18791postlink_cmds_CXX; do 18792 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18793 *[\\\\\\\`\\"\\\$]*) 18794 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18795 ;; 18796 *) 18797 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18798 ;; 18799 esac 18800done 18801 18802ac_aux_dir='$ac_aux_dir' 18803 18804# See if we are running on zsh, and set the options that allow our 18805# commands through without removal of \ escapes INIT. 18806if test -n "\${ZSH_VERSION+set}"; then 18807 setopt NO_GLOB_SUBST 18808fi 18809 18810 18811 PACKAGE='$PACKAGE' 18812 VERSION='$VERSION' 18813 RM='$RM' 18814 ofile='$ofile' 18815 18816 18817 18818 18819 18820 18821_ACEOF 18822 18823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18824 18825# Handling of arguments. 18826for ac_config_target in $ac_config_targets 18827do 18828 case $ac_config_target in 18829 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18830 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18831 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18833 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 18834 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;; 18835 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;; 18836 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;; 18837 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18838 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 18839 "freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES freebsd/Makefile" ;; 18840 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18841 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;; 18842 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 18843 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;; 18844 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; 18845 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 18846 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;; 18847 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;; 18848 "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;; 18849 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;; 18850 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; 18851 "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;; 18852 18853 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18854 esac 18855done 18856 18857 18858# If the user did not use the arguments to specify the items to instantiate, 18859# then the envvar interface is used. Set only those that are not. 18860# We use the long form for the default assignment because of an extremely 18861# bizarre bug on SunOS 4.1.3. 18862if $ac_need_defaults; then 18863 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 18864 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 18865 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 18866fi 18867 18868# Have a temporary directory for convenience. Make it in the build tree 18869# simply because there is no reason against having it here, and in addition, 18870# creating and moving files from /tmp can sometimes cause problems. 18871# Hook for its removal unless debugging. 18872# Note that there is a small window in which the directory will not be cleaned: 18873# after its creation but before its name has been assigned to `$tmp'. 18874$debug || 18875{ 18876 tmp= ac_tmp= 18877 trap 'exit_status=$? 18878 : "${ac_tmp:=$tmp}" 18879 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18880' 0 18881 trap 'as_fn_exit 1' 1 2 13 15 18882} 18883# Create a (secure) tmp directory for tmp files. 18884 18885{ 18886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18887 test -d "$tmp" 18888} || 18889{ 18890 tmp=./conf$$-$RANDOM 18891 (umask 077 && mkdir "$tmp") 18892} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18893ac_tmp=$tmp 18894 18895# Set up the scripts for CONFIG_FILES section. 18896# No need to generate them if there are no CONFIG_FILES. 18897# This happens for instance with `./config.status config.h'. 18898if test -n "$CONFIG_FILES"; then 18899 18900 18901ac_cr=`echo X | tr X '\015'` 18902# On cygwin, bash can eat \r inside `` if the user requested igncr. 18903# But we know of no other shell where ac_cr would be empty at this 18904# point, so we can use a bashism as a fallback. 18905if test "x$ac_cr" = x; then 18906 eval ac_cr=\$\'\\r\' 18907fi 18908ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18909if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18910 ac_cs_awk_cr='\\r' 18911else 18912 ac_cs_awk_cr=$ac_cr 18913fi 18914 18915echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18916_ACEOF 18917 18918 18919{ 18920 echo "cat >conf$$subs.awk <<_ACEOF" && 18921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18922 echo "_ACEOF" 18923} >conf$$subs.sh || 18924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18925ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18926ac_delim='%!_!# ' 18927for ac_last_try in false false false false false :; do 18928 . ./conf$$subs.sh || 18929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18930 18931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18932 if test $ac_delim_n = $ac_delim_num; then 18933 break 18934 elif $ac_last_try; then 18935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18936 else 18937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18938 fi 18939done 18940rm -f conf$$subs.sh 18941 18942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18943cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18944_ACEOF 18945sed -n ' 18946h 18947s/^/S["/; s/!.*/"]=/ 18948p 18949g 18950s/^[^!]*!// 18951:repl 18952t repl 18953s/'"$ac_delim"'$// 18954t delim 18955:nl 18956h 18957s/\(.\{148\}\)..*/\1/ 18958t more1 18959s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18960p 18961n 18962b repl 18963:more1 18964s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18965p 18966g 18967s/.\{148\}// 18968t nl 18969:delim 18970h 18971s/\(.\{148\}\)..*/\1/ 18972t more2 18973s/["\\]/\\&/g; s/^/"/; s/$/"/ 18974p 18975b 18976:more2 18977s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18978p 18979g 18980s/.\{148\}// 18981t delim 18982' <conf$$subs.awk | sed ' 18983/^[^""]/{ 18984 N 18985 s/\n// 18986} 18987' >>$CONFIG_STATUS || ac_write_fail=1 18988rm -f conf$$subs.awk 18989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18990_ACAWK 18991cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18992 for (key in S) S_is_set[key] = 1 18993 FS = "" 18994 18995} 18996{ 18997 line = $ 0 18998 nfields = split(line, field, "@") 18999 substed = 0 19000 len = length(field[1]) 19001 for (i = 2; i < nfields; i++) { 19002 key = field[i] 19003 keylen = length(key) 19004 if (S_is_set[key]) { 19005 value = S[key] 19006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19007 len += length(value) + length(field[++i]) 19008 substed = 1 19009 } else 19010 len += 1 + keylen 19011 } 19012 19013 print line 19014} 19015 19016_ACAWK 19017_ACEOF 19018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19019if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19020 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19021else 19022 cat 19023fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19024 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19025_ACEOF 19026 19027# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19028# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19029# trailing colons and then remove the whole line if VPATH becomes empty 19030# (actually we leave an empty line to preserve line numbers). 19031if test "x$srcdir" = x.; then 19032 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19033h 19034s/// 19035s/^/:/ 19036s/[ ]*$/:/ 19037s/:\$(srcdir):/:/g 19038s/:\${srcdir}:/:/g 19039s/:@srcdir@:/:/g 19040s/^:*// 19041s/:*$// 19042x 19043s/\(=[ ]*\).*/\1/ 19044G 19045s/\n// 19046s/^[^=]*=[ ]*$// 19047}' 19048fi 19049 19050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19051fi # test -n "$CONFIG_FILES" 19052 19053# Set up the scripts for CONFIG_HEADERS section. 19054# No need to generate them if there are no CONFIG_HEADERS. 19055# This happens for instance with `./config.status Makefile'. 19056if test -n "$CONFIG_HEADERS"; then 19057cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19058BEGIN { 19059_ACEOF 19060 19061# Transform confdefs.h into an awk script `defines.awk', embedded as 19062# here-document in config.status, that substitutes the proper values into 19063# config.h.in to produce config.h. 19064 19065# Create a delimiter string that does not exist in confdefs.h, to ease 19066# handling of long lines. 19067ac_delim='%!_!# ' 19068for ac_last_try in false false :; do 19069 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19070 if test -z "$ac_tt"; then 19071 break 19072 elif $ac_last_try; then 19073 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19074 else 19075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19076 fi 19077done 19078 19079# For the awk script, D is an array of macro values keyed by name, 19080# likewise P contains macro parameters if any. Preserve backslash 19081# newline sequences. 19082 19083ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19084sed -n ' 19085s/.\{148\}/&'"$ac_delim"'/g 19086t rset 19087:rset 19088s/^[ ]*#[ ]*define[ ][ ]*/ / 19089t def 19090d 19091:def 19092s/\\$// 19093t bsnl 19094s/["\\]/\\&/g 19095s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19096D["\1"]=" \3"/p 19097s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19098d 19099:bsnl 19100s/["\\]/\\&/g 19101s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19102D["\1"]=" \3\\\\\\n"\\/p 19103t cont 19104s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19105t cont 19106d 19107:cont 19108n 19109s/.\{148\}/&'"$ac_delim"'/g 19110t clear 19111:clear 19112s/\\$// 19113t bsnlc 19114s/["\\]/\\&/g; s/^/"/; s/$/"/p 19115d 19116:bsnlc 19117s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19118b cont 19119' <confdefs.h | sed ' 19120s/'"$ac_delim"'/"\\\ 19121"/g' >>$CONFIG_STATUS || ac_write_fail=1 19122 19123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19124 for (key in D) D_is_set[key] = 1 19125 FS = "" 19126} 19127/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19128 line = \$ 0 19129 split(line, arg, " ") 19130 if (arg[1] == "#") { 19131 defundef = arg[2] 19132 mac1 = arg[3] 19133 } else { 19134 defundef = substr(arg[1], 2) 19135 mac1 = arg[2] 19136 } 19137 split(mac1, mac2, "(") #) 19138 macro = mac2[1] 19139 prefix = substr(line, 1, index(line, defundef) - 1) 19140 if (D_is_set[macro]) { 19141 # Preserve the white space surrounding the "#". 19142 print prefix "define", macro P[macro] D[macro] 19143 next 19144 } else { 19145 # Replace #undef with comments. This is necessary, for example, 19146 # in the case of _POSIX_SOURCE, which is predefined and required 19147 # on some systems where configure will not decide to define it. 19148 if (defundef == "undef") { 19149 print "/*", prefix defundef, macro, "*/" 19150 next 19151 } 19152 } 19153} 19154{ print } 19155_ACAWK 19156_ACEOF 19157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19158 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19159fi # test -n "$CONFIG_HEADERS" 19160 19161 19162eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19163shift 19164for ac_tag 19165do 19166 case $ac_tag in 19167 :[FHLC]) ac_mode=$ac_tag; continue;; 19168 esac 19169 case $ac_mode$ac_tag in 19170 :[FHL]*:*);; 19171 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19172 :[FH]-) ac_tag=-:-;; 19173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19174 esac 19175 ac_save_IFS=$IFS 19176 IFS=: 19177 set x $ac_tag 19178 IFS=$ac_save_IFS 19179 shift 19180 ac_file=$1 19181 shift 19182 19183 case $ac_mode in 19184 :L) ac_source=$1;; 19185 :[FH]) 19186 ac_file_inputs= 19187 for ac_f 19188 do 19189 case $ac_f in 19190 -) ac_f="$ac_tmp/stdin";; 19191 *) # Look for the file first in the build tree, then in the source tree 19192 # (if the path is not absolute). The absolute path cannot be DOS-style, 19193 # because $ac_f cannot contain `:'. 19194 test -f "$ac_f" || 19195 case $ac_f in 19196 [\\/$]*) false;; 19197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19198 esac || 19199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19200 esac 19201 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19202 as_fn_append ac_file_inputs " '$ac_f'" 19203 done 19204 19205 # Let's still pretend it is `configure' which instantiates (i.e., don't 19206 # use $as_me), people would be surprised to read: 19207 # /* config.h. Generated by config.status. */ 19208 configure_input='Generated from '` 19209 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19210 `' by configure.' 19211 if test x"$ac_file" != x-; then 19212 configure_input="$ac_file. $configure_input" 19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19214printf "%s\n" "$as_me: creating $ac_file" >&6;} 19215 fi 19216 # Neutralize special characters interpreted by sed in replacement strings. 19217 case $configure_input in #( 19218 *\&* | *\|* | *\\* ) 19219 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 19220 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19221 *) ac_sed_conf_input=$configure_input;; 19222 esac 19223 19224 case $ac_tag in 19225 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19227 esac 19228 ;; 19229 esac 19230 19231 ac_dir=`$as_dirname -- "$ac_file" || 19232$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19233 X"$ac_file" : 'X\(//\)[^/]' \| \ 19234 X"$ac_file" : 'X\(//\)$' \| \ 19235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19236printf "%s\n" X"$ac_file" | 19237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19238 s//\1/ 19239 q 19240 } 19241 /^X\(\/\/\)[^/].*/{ 19242 s//\1/ 19243 q 19244 } 19245 /^X\(\/\/\)$/{ 19246 s//\1/ 19247 q 19248 } 19249 /^X\(\/\).*/{ 19250 s//\1/ 19251 q 19252 } 19253 s/.*/./; q'` 19254 as_dir="$ac_dir"; as_fn_mkdir_p 19255 ac_builddir=. 19256 19257case "$ac_dir" in 19258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19259*) 19260 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 19261 # A ".." for each directory in $ac_dir_suffix. 19262 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19263 case $ac_top_builddir_sub in 19264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19266 esac ;; 19267esac 19268ac_abs_top_builddir=$ac_pwd 19269ac_abs_builddir=$ac_pwd$ac_dir_suffix 19270# for backward compatibility: 19271ac_top_builddir=$ac_top_build_prefix 19272 19273case $srcdir in 19274 .) # We are building in place. 19275 ac_srcdir=. 19276 ac_top_srcdir=$ac_top_builddir_sub 19277 ac_abs_top_srcdir=$ac_pwd ;; 19278 [\\/]* | ?:[\\/]* ) # Absolute name. 19279 ac_srcdir=$srcdir$ac_dir_suffix; 19280 ac_top_srcdir=$srcdir 19281 ac_abs_top_srcdir=$srcdir ;; 19282 *) # Relative name. 19283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19284 ac_top_srcdir=$ac_top_build_prefix$srcdir 19285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19286esac 19287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19288 19289 19290 case $ac_mode in 19291 :F) 19292 # 19293 # CONFIG_FILE 19294 # 19295 19296 case $INSTALL in 19297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19299 esac 19300 ac_MKDIR_P=$MKDIR_P 19301 case $MKDIR_P in 19302 [\\/$]* | ?:[\\/]* ) ;; 19303 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19304 esac 19305_ACEOF 19306 19307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19308# If the template does not know about datarootdir, expand it. 19309# FIXME: This hack should be removed a few years after 2.60. 19310ac_datarootdir_hack=; ac_datarootdir_seen= 19311ac_sed_dataroot=' 19312/datarootdir/ { 19313 p 19314 q 19315} 19316/@datadir@/p 19317/@docdir@/p 19318/@infodir@/p 19319/@localedir@/p 19320/@mandir@/p' 19321case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19322*datarootdir*) ac_datarootdir_seen=yes;; 19323*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19325printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19326_ACEOF 19327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19328 ac_datarootdir_hack=' 19329 s&@datadir@&$datadir&g 19330 s&@docdir@&$docdir&g 19331 s&@infodir@&$infodir&g 19332 s&@localedir@&$localedir&g 19333 s&@mandir@&$mandir&g 19334 s&\\\${datarootdir}&$datarootdir&g' ;; 19335esac 19336_ACEOF 19337 19338# Neutralize VPATH when `$srcdir' = `.'. 19339# Shell code in configure.ac might set extrasub. 19340# FIXME: do we really want to maintain this feature? 19341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19342ac_sed_extra="$ac_vpsub 19343$extrasub 19344_ACEOF 19345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19346:t 19347/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19348s|@configure_input@|$ac_sed_conf_input|;t t 19349s&@top_builddir@&$ac_top_builddir_sub&;t t 19350s&@top_build_prefix@&$ac_top_build_prefix&;t t 19351s&@srcdir@&$ac_srcdir&;t t 19352s&@abs_srcdir@&$ac_abs_srcdir&;t t 19353s&@top_srcdir@&$ac_top_srcdir&;t t 19354s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19355s&@builddir@&$ac_builddir&;t t 19356s&@abs_builddir@&$ac_abs_builddir&;t t 19357s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19358s&@INSTALL@&$ac_INSTALL&;t t 19359s&@MKDIR_P@&$ac_MKDIR_P&;t t 19360$ac_datarootdir_hack 19361" 19362eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19363 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19364 19365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19366 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19368 "$ac_tmp/out"`; test -z "$ac_out"; } && 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19370which seems to be undefined. Please make sure it is defined" >&5 19371printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19372which seems to be undefined. Please make sure it is defined" >&2;} 19373 19374 rm -f "$ac_tmp/stdin" 19375 case $ac_file in 19376 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19377 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19378 esac \ 19379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19380 ;; 19381 :H) 19382 # 19383 # CONFIG_HEADER 19384 # 19385 if test x"$ac_file" != x-; then 19386 { 19387 printf "%s\n" "/* $configure_input */" >&1 \ 19388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19389 } >"$ac_tmp/config.h" \ 19390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19391 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19393printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 19394 else 19395 rm -f "$ac_file" 19396 mv "$ac_tmp/config.h" "$ac_file" \ 19397 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19398 fi 19399 else 19400 printf "%s\n" "/* $configure_input */" >&1 \ 19401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19402 || as_fn_error $? "could not create -" "$LINENO" 5 19403 fi 19404# Compute "$ac_file"'s index in $config_headers. 19405_am_arg="$ac_file" 19406_am_stamp_count=1 19407for _am_header in $config_headers :; do 19408 case $_am_header in 19409 $_am_arg | $_am_arg:* ) 19410 break ;; 19411 * ) 19412 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19413 esac 19414done 19415echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19416$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19417 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19418 X"$_am_arg" : 'X\(//\)$' \| \ 19419 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19420printf "%s\n" X"$_am_arg" | 19421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19422 s//\1/ 19423 q 19424 } 19425 /^X\(\/\/\)[^/].*/{ 19426 s//\1/ 19427 q 19428 } 19429 /^X\(\/\/\)$/{ 19430 s//\1/ 19431 q 19432 } 19433 /^X\(\/\).*/{ 19434 s//\1/ 19435 q 19436 } 19437 s/.*/./; q'`/stamp-h$_am_stamp_count 19438 ;; 19439 19440 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19441printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 19442 ;; 19443 esac 19444 19445 19446 case $ac_file$ac_mode in 19447 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19448 # Older Autoconf quotes --file arguments for eval, but not when files 19449 # are listed without --file. Let's play safe and only enable the eval 19450 # if we detect the quoting. 19451 # TODO: see whether this extra hack can be removed once we start 19452 # requiring Autoconf 2.70 or later. 19453 case $CONFIG_FILES in #( 19454 *\'*) : 19455 eval set x "$CONFIG_FILES" ;; #( 19456 *) : 19457 set x $CONFIG_FILES ;; #( 19458 *) : 19459 ;; 19460esac 19461 shift 19462 # Used to flag and report bootstrapping failures. 19463 am_rc=0 19464 for am_mf 19465 do 19466 # Strip MF so we end up with the name of the file. 19467 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 19468 # Check whether this is an Automake generated Makefile which includes 19469 # dependency-tracking related rules and includes. 19470 # Grep'ing the whole file directly is not great: AIX grep has a line 19471 # limit of 2048, but all sed's we know have understand at least 4000. 19472 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19473 || continue 19474 am_dirpart=`$as_dirname -- "$am_mf" || 19475$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19476 X"$am_mf" : 'X\(//\)[^/]' \| \ 19477 X"$am_mf" : 'X\(//\)$' \| \ 19478 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19479printf "%s\n" X"$am_mf" | 19480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19481 s//\1/ 19482 q 19483 } 19484 /^X\(\/\/\)[^/].*/{ 19485 s//\1/ 19486 q 19487 } 19488 /^X\(\/\/\)$/{ 19489 s//\1/ 19490 q 19491 } 19492 /^X\(\/\).*/{ 19493 s//\1/ 19494 q 19495 } 19496 s/.*/./; q'` 19497 am_filepart=`$as_basename -- "$am_mf" || 19498$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19499 X"$am_mf" : 'X\(//\)$' \| \ 19500 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19501printf "%s\n" X/"$am_mf" | 19502 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19503 s//\1/ 19504 q 19505 } 19506 /^X\/\(\/\/\)$/{ 19507 s//\1/ 19508 q 19509 } 19510 /^X\/\(\/\).*/{ 19511 s//\1/ 19512 q 19513 } 19514 s/.*/./; q'` 19515 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19516 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19517 | $MAKE -f - am--depfiles" >&5 19518 (cd "$am_dirpart" \ 19519 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19520 | $MAKE -f - am--depfiles) >&5 2>&5 19521 ac_status=$? 19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19523 (exit $ac_status); } || am_rc=$? 19524 done 19525 if test $am_rc -ne 0; then 19526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19527printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19528as_fn_error $? "Something went wrong bootstrapping makefile fragments 19529 for automatic dependency tracking. If GNU make was not used, consider 19530 re-running the configure script with MAKE=\"gmake\" (or whatever is 19531 necessary). You can also try re-running configure with the 19532 '--disable-dependency-tracking' option to at least be able to build 19533 the package (albeit without support for automatic dependency tracking). 19534See \`config.log' for more details" "$LINENO" 5; } 19535 fi 19536 { am_dirpart=; unset am_dirpart;} 19537 { am_filepart=; unset am_filepart;} 19538 { am_mf=; unset am_mf;} 19539 { am_rc=; unset am_rc;} 19540 rm -f conftest-deps.mk 19541} 19542 ;; 19543 "libtool":C) 19544 19545 # See if we are running on zsh, and set the options that allow our 19546 # commands through without removal of \ escapes. 19547 if test -n "${ZSH_VERSION+set}"; then 19548 setopt NO_GLOB_SUBST 19549 fi 19550 19551 cfgfile=${ofile}T 19552 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19553 $RM "$cfgfile" 19554 19555 cat <<_LT_EOF >> "$cfgfile" 19556#! $SHELL 19557# Generated automatically by $as_me ($PACKAGE) $VERSION 19558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19559# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19560 19561# Provide generalized library-building support services. 19562# Written by Gordon Matzigkeit, 1996 19563 19564# Copyright (C) 2014 Free Software Foundation, Inc. 19565# This is free software; see the source for copying conditions. There is NO 19566# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19567 19568# GNU Libtool is free software; you can redistribute it and/or modify 19569# it under the terms of the GNU General Public License as published by 19570# the Free Software Foundation; either version 2 of of the License, or 19571# (at your option) any later version. 19572# 19573# As a special exception to the GNU General Public License, if you 19574# distribute this file as part of a program or library that is built 19575# using GNU Libtool, you may include this file under the same 19576# distribution terms that you use for the rest of that program. 19577# 19578# GNU Libtool is distributed in the hope that it will be useful, but 19579# WITHOUT ANY WARRANTY; without even the implied warranty of 19580# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19581# GNU General Public License for more details. 19582# 19583# You should have received a copy of the GNU General Public License 19584# along with this program. If not, see <http://www.gnu.org/licenses/>. 19585 19586 19587# The names of the tagged configurations supported by this script. 19588available_tags='CXX ' 19589 19590# Configured defaults for sys_lib_dlsearch_path munging. 19591: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19592 19593# ### BEGIN LIBTOOL CONFIG 19594 19595# Which release of libtool.m4 was used? 19596macro_version=$macro_version 19597macro_revision=$macro_revision 19598 19599# Whether or not to build static libraries. 19600build_old_libs=$enable_static 19601 19602# Whether or not to build shared libraries. 19603build_libtool_libs=$enable_shared 19604 19605# What type of objects to build. 19606pic_mode=$pic_mode 19607 19608# Whether or not to optimize for fast installation. 19609fast_install=$enable_fast_install 19610 19611# Shared archive member basename,for filename based shared library versioning on AIX. 19612shared_archive_member_spec=$shared_archive_member_spec 19613 19614# Shell to use when invoking shell scripts. 19615SHELL=$lt_SHELL 19616 19617# An echo program that protects backslashes. 19618ECHO=$lt_ECHO 19619 19620# The PATH separator for the build system. 19621PATH_SEPARATOR=$lt_PATH_SEPARATOR 19622 19623# The host system. 19624host_alias=$host_alias 19625host=$host 19626host_os=$host_os 19627 19628# The build system. 19629build_alias=$build_alias 19630build=$build 19631build_os=$build_os 19632 19633# A sed program that does not truncate output. 19634SED=$lt_SED 19635 19636# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19637Xsed="\$SED -e 1s/^X//" 19638 19639# A grep program that handles long lines. 19640GREP=$lt_GREP 19641 19642# An ERE matcher. 19643EGREP=$lt_EGREP 19644 19645# A literal string matcher. 19646FGREP=$lt_FGREP 19647 19648# A BSD- or MS-compatible name lister. 19649NM=$lt_NM 19650 19651# Whether we need soft or hard links. 19652LN_S=$lt_LN_S 19653 19654# What is the maximum length of a command? 19655max_cmd_len=$max_cmd_len 19656 19657# Object file suffix (normally "o"). 19658objext=$ac_objext 19659 19660# Executable file suffix (normally ""). 19661exeext=$exeext 19662 19663# whether the shell understands "unset". 19664lt_unset=$lt_unset 19665 19666# turn spaces into newlines. 19667SP2NL=$lt_lt_SP2NL 19668 19669# turn newlines into spaces. 19670NL2SP=$lt_lt_NL2SP 19671 19672# convert \$build file names to \$host format. 19673to_host_file_cmd=$lt_cv_to_host_file_cmd 19674 19675# convert \$build files to toolchain format. 19676to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19677 19678# A file(cmd) program that detects file types. 19679FILECMD=$lt_FILECMD 19680 19681# An object symbol dumper. 19682OBJDUMP=$lt_OBJDUMP 19683 19684# Method to check whether dependent libraries are shared objects. 19685deplibs_check_method=$lt_deplibs_check_method 19686 19687# Command to use when deplibs_check_method = "file_magic". 19688file_magic_cmd=$lt_file_magic_cmd 19689 19690# How to find potential files when deplibs_check_method = "file_magic". 19691file_magic_glob=$lt_file_magic_glob 19692 19693# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19694want_nocaseglob=$lt_want_nocaseglob 19695 19696# DLL creation program. 19697DLLTOOL=$lt_DLLTOOL 19698 19699# Command to associate shared and link libraries. 19700sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19701 19702# The archiver. 19703AR=$lt_AR 19704 19705# Flags to create an archive (by configure). 19706lt_ar_flags=$lt_ar_flags 19707 19708# Flags to create an archive. 19709AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 19710 19711# How to feed a file listing to the archiver. 19712archiver_list_spec=$lt_archiver_list_spec 19713 19714# A symbol stripping program. 19715STRIP=$lt_STRIP 19716 19717# Commands used to install an old-style archive. 19718RANLIB=$lt_RANLIB 19719old_postinstall_cmds=$lt_old_postinstall_cmds 19720old_postuninstall_cmds=$lt_old_postuninstall_cmds 19721 19722# Whether to use a lock for old archive extraction. 19723lock_old_archive_extraction=$lock_old_archive_extraction 19724 19725# A C compiler. 19726LTCC=$lt_CC 19727 19728# LTCC compiler flags. 19729LTCFLAGS=$lt_CFLAGS 19730 19731# Take the output of nm and produce a listing of raw symbols and C names. 19732global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19733 19734# Transform the output of nm in a proper C declaration. 19735global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19736 19737# Transform the output of nm into a list of symbols to manually relocate. 19738global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19739 19740# Transform the output of nm in a C name address pair. 19741global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19742 19743# Transform the output of nm in a C name address pair when lib prefix is needed. 19744global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19745 19746# The name lister interface. 19747nm_interface=$lt_lt_cv_nm_interface 19748 19749# Specify filename containing input files for \$NM. 19750nm_file_list_spec=$lt_nm_file_list_spec 19751 19752# The root where to search for dependent libraries,and where our libraries should be installed. 19753lt_sysroot=$lt_sysroot 19754 19755# Command to truncate a binary pipe. 19756lt_truncate_bin=$lt_lt_cv_truncate_bin 19757 19758# The name of the directory that contains temporary libtool files. 19759objdir=$objdir 19760 19761# Used to examine libraries when file_magic_cmd begins with "file". 19762MAGIC_CMD=$MAGIC_CMD 19763 19764# Must we lock files when doing compilation? 19765need_locks=$lt_need_locks 19766 19767# Manifest tool. 19768MANIFEST_TOOL=$lt_MANIFEST_TOOL 19769 19770# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19771DSYMUTIL=$lt_DSYMUTIL 19772 19773# Tool to change global to local symbols on Mac OS X. 19774NMEDIT=$lt_NMEDIT 19775 19776# Tool to manipulate fat objects and archives on Mac OS X. 19777LIPO=$lt_LIPO 19778 19779# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19780OTOOL=$lt_OTOOL 19781 19782# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19783OTOOL64=$lt_OTOOL64 19784 19785# Old archive suffix (normally "a"). 19786libext=$libext 19787 19788# Shared library suffix (normally ".so"). 19789shrext_cmds=$lt_shrext_cmds 19790 19791# The commands to extract the exported symbol list from a shared archive. 19792extract_expsyms_cmds=$lt_extract_expsyms_cmds 19793 19794# Variables whose values should be saved in libtool wrapper scripts and 19795# restored at link time. 19796variables_saved_for_relink=$lt_variables_saved_for_relink 19797 19798# Do we need the "lib" prefix for modules? 19799need_lib_prefix=$need_lib_prefix 19800 19801# Do we need a version for libraries? 19802need_version=$need_version 19803 19804# Library versioning type. 19805version_type=$version_type 19806 19807# Shared library runtime path variable. 19808runpath_var=$runpath_var 19809 19810# Shared library path variable. 19811shlibpath_var=$shlibpath_var 19812 19813# Is shlibpath searched before the hard-coded library search path? 19814shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19815 19816# Format of library name prefix. 19817libname_spec=$lt_libname_spec 19818 19819# List of archive names. First name is the real one, the rest are links. 19820# The last name is the one that the linker finds with -lNAME 19821library_names_spec=$lt_library_names_spec 19822 19823# The coded name of the library, if different from the real name. 19824soname_spec=$lt_soname_spec 19825 19826# Permission mode override for installation of shared libraries. 19827install_override_mode=$lt_install_override_mode 19828 19829# Command to use after installation of a shared archive. 19830postinstall_cmds=$lt_postinstall_cmds 19831 19832# Command to use after uninstallation of a shared archive. 19833postuninstall_cmds=$lt_postuninstall_cmds 19834 19835# Commands used to finish a libtool library installation in a directory. 19836finish_cmds=$lt_finish_cmds 19837 19838# As "finish_cmds", except a single script fragment to be evaled but 19839# not shown. 19840finish_eval=$lt_finish_eval 19841 19842# Whether we should hardcode library paths into libraries. 19843hardcode_into_libs=$hardcode_into_libs 19844 19845# Compile-time system search path for libraries. 19846sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19847 19848# Detected run-time system search path for libraries. 19849sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19850 19851# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19852configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19853 19854# Whether dlopen is supported. 19855dlopen_support=$enable_dlopen 19856 19857# Whether dlopen of programs is supported. 19858dlopen_self=$enable_dlopen_self 19859 19860# Whether dlopen of statically linked programs is supported. 19861dlopen_self_static=$enable_dlopen_self_static 19862 19863# Commands to strip libraries. 19864old_striplib=$lt_old_striplib 19865striplib=$lt_striplib 19866 19867 19868# The linker used to build libraries. 19869LD=$lt_LD 19870 19871# How to create reloadable object files. 19872reload_flag=$lt_reload_flag 19873reload_cmds=$lt_reload_cmds 19874 19875# Commands used to build an old-style archive. 19876old_archive_cmds=$lt_old_archive_cmds 19877 19878# A language specific compiler. 19879CC=$lt_compiler 19880 19881# Is the compiler the GNU compiler? 19882with_gcc=$GCC 19883 19884# Compiler flag to turn off builtin functions. 19885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19886 19887# Additional compiler flags for building library objects. 19888pic_flag=$lt_lt_prog_compiler_pic 19889 19890# How to pass a linker flag through the compiler. 19891wl=$lt_lt_prog_compiler_wl 19892 19893# Compiler flag to prevent dynamic linking. 19894link_static_flag=$lt_lt_prog_compiler_static 19895 19896# Does compiler simultaneously support -c and -o options? 19897compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19898 19899# Whether or not to add -lc for building shared libraries. 19900build_libtool_need_lc=$archive_cmds_need_lc 19901 19902# Whether or not to disallow shared libs when runtime libs are static. 19903allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19904 19905# Compiler flag to allow reflexive dlopens. 19906export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19907 19908# Compiler flag to generate shared objects directly from archives. 19909whole_archive_flag_spec=$lt_whole_archive_flag_spec 19910 19911# Whether the compiler copes with passing no objects directly. 19912compiler_needs_object=$lt_compiler_needs_object 19913 19914# Create an old-style archive from a shared archive. 19915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19916 19917# Create a temporary old-style archive to link instead of a shared archive. 19918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19919 19920# Commands used to build a shared archive. 19921archive_cmds=$lt_archive_cmds 19922archive_expsym_cmds=$lt_archive_expsym_cmds 19923 19924# Commands used to build a loadable module if different from building 19925# a shared archive. 19926module_cmds=$lt_module_cmds 19927module_expsym_cmds=$lt_module_expsym_cmds 19928 19929# Whether we are building with GNU ld or not. 19930with_gnu_ld=$lt_with_gnu_ld 19931 19932# Flag that allows shared libraries with undefined symbols to be built. 19933allow_undefined_flag=$lt_allow_undefined_flag 19934 19935# Flag that enforces no undefined symbols. 19936no_undefined_flag=$lt_no_undefined_flag 19937 19938# Flag to hardcode \$libdir into a binary during linking. 19939# This must work even if \$libdir does not exist 19940hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19941 19942# Whether we need a single "-rpath" flag with a separated argument. 19943hardcode_libdir_separator=$lt_hardcode_libdir_separator 19944 19945# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19946# DIR into the resulting binary. 19947hardcode_direct=$hardcode_direct 19948 19949# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19950# DIR into the resulting binary and the resulting library dependency is 19951# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19952# library is relocated. 19953hardcode_direct_absolute=$hardcode_direct_absolute 19954 19955# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19956# into the resulting binary. 19957hardcode_minus_L=$hardcode_minus_L 19958 19959# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19960# into the resulting binary. 19961hardcode_shlibpath_var=$hardcode_shlibpath_var 19962 19963# Set to "yes" if building a shared library automatically hardcodes DIR 19964# into the library and all subsequent libraries and executables linked 19965# against it. 19966hardcode_automatic=$hardcode_automatic 19967 19968# Set to yes if linker adds runtime paths of dependent libraries 19969# to runtime path list. 19970inherit_rpath=$inherit_rpath 19971 19972# Whether libtool must link a program against all its dependency libraries. 19973link_all_deplibs=$link_all_deplibs 19974 19975# Set to "yes" if exported symbols are required. 19976always_export_symbols=$always_export_symbols 19977 19978# The commands to list exported symbols. 19979export_symbols_cmds=$lt_export_symbols_cmds 19980 19981# Symbols that should not be listed in the preloaded symbols. 19982exclude_expsyms=$lt_exclude_expsyms 19983 19984# Symbols that must always be exported. 19985include_expsyms=$lt_include_expsyms 19986 19987# Commands necessary for linking programs (against libraries) with templates. 19988prelink_cmds=$lt_prelink_cmds 19989 19990# Commands necessary for finishing linking programs. 19991postlink_cmds=$lt_postlink_cmds 19992 19993# Specify filename containing input files. 19994file_list_spec=$lt_file_list_spec 19995 19996# How to hardcode a shared library path into an executable. 19997hardcode_action=$hardcode_action 19998 19999# The directories searched by this compiler when creating a shared library. 20000compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20001 20002# Dependencies to place before and after the objects being linked to 20003# create a shared library. 20004predep_objects=$lt_predep_objects 20005postdep_objects=$lt_postdep_objects 20006predeps=$lt_predeps 20007postdeps=$lt_postdeps 20008 20009# The library search path used internally by the compiler when linking 20010# a shared library. 20011compiler_lib_search_path=$lt_compiler_lib_search_path 20012 20013# ### END LIBTOOL CONFIG 20014 20015_LT_EOF 20016 20017 cat <<'_LT_EOF' >> "$cfgfile" 20018 20019# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20020 20021# func_munge_path_list VARIABLE PATH 20022# ----------------------------------- 20023# VARIABLE is name of variable containing _space_ separated list of 20024# directories to be munged by the contents of PATH, which is string 20025# having a format: 20026# "DIR[:DIR]:" 20027# string "DIR[ DIR]" will be prepended to VARIABLE 20028# ":DIR[:DIR]" 20029# string "DIR[ DIR]" will be appended to VARIABLE 20030# "DIRP[:DIRP]::[DIRA:]DIRA" 20031# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20032# "DIRA[ DIRA]" will be appended to VARIABLE 20033# "DIR[:DIR]" 20034# VARIABLE will be replaced by "DIR[ DIR]" 20035func_munge_path_list () 20036{ 20037 case x$2 in 20038 x) 20039 ;; 20040 *:) 20041 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20042 ;; 20043 x:*) 20044 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20045 ;; 20046 *::*) 20047 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20048 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20049 ;; 20050 *) 20051 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20052 ;; 20053 esac 20054} 20055 20056 20057# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20058func_cc_basename () 20059{ 20060 for cc_temp in $*""; do 20061 case $cc_temp in 20062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20064 \-*) ;; 20065 *) break;; 20066 esac 20067 done 20068 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20069} 20070 20071 20072# ### END FUNCTIONS SHARED WITH CONFIGURE 20073 20074_LT_EOF 20075 20076 case $host_os in 20077 aix3*) 20078 cat <<\_LT_EOF >> "$cfgfile" 20079# AIX sometimes has problems with the GCC collect2 program. For some 20080# reason, if we set the COLLECT_NAMES environment variable, the problems 20081# vanish in a puff of smoke. 20082if test set != "${COLLECT_NAMES+set}"; then 20083 COLLECT_NAMES= 20084 export COLLECT_NAMES 20085fi 20086_LT_EOF 20087 ;; 20088 esac 20089 20090 20091 20092ltmain=$ac_aux_dir/ltmain.sh 20093 20094 20095 # We use sed instead of cat because bash on DJGPP gets confused if 20096 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20097 # text mode, it properly converts lines to CR/LF. This bash problem 20098 # is reportedly fixed, but why not run on old versions too? 20099 $SED '$q' "$ltmain" >> "$cfgfile" \ 20100 || (rm -f "$cfgfile"; exit 1) 20101 20102 mv -f "$cfgfile" "$ofile" || 20103 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20104 chmod +x "$ofile" 20105 20106 20107 cat <<_LT_EOF >> "$ofile" 20108 20109# ### BEGIN LIBTOOL TAG CONFIG: CXX 20110 20111# The linker used to build libraries. 20112LD=$lt_LD_CXX 20113 20114# How to create reloadable object files. 20115reload_flag=$lt_reload_flag_CXX 20116reload_cmds=$lt_reload_cmds_CXX 20117 20118# Commands used to build an old-style archive. 20119old_archive_cmds=$lt_old_archive_cmds_CXX 20120 20121# A language specific compiler. 20122CC=$lt_compiler_CXX 20123 20124# Is the compiler the GNU compiler? 20125with_gcc=$GCC_CXX 20126 20127# Compiler flag to turn off builtin functions. 20128no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20129 20130# Additional compiler flags for building library objects. 20131pic_flag=$lt_lt_prog_compiler_pic_CXX 20132 20133# How to pass a linker flag through the compiler. 20134wl=$lt_lt_prog_compiler_wl_CXX 20135 20136# Compiler flag to prevent dynamic linking. 20137link_static_flag=$lt_lt_prog_compiler_static_CXX 20138 20139# Does compiler simultaneously support -c and -o options? 20140compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20141 20142# Whether or not to add -lc for building shared libraries. 20143build_libtool_need_lc=$archive_cmds_need_lc_CXX 20144 20145# Whether or not to disallow shared libs when runtime libs are static. 20146allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20147 20148# Compiler flag to allow reflexive dlopens. 20149export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20150 20151# Compiler flag to generate shared objects directly from archives. 20152whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20153 20154# Whether the compiler copes with passing no objects directly. 20155compiler_needs_object=$lt_compiler_needs_object_CXX 20156 20157# Create an old-style archive from a shared archive. 20158old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20159 20160# Create a temporary old-style archive to link instead of a shared archive. 20161old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20162 20163# Commands used to build a shared archive. 20164archive_cmds=$lt_archive_cmds_CXX 20165archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20166 20167# Commands used to build a loadable module if different from building 20168# a shared archive. 20169module_cmds=$lt_module_cmds_CXX 20170module_expsym_cmds=$lt_module_expsym_cmds_CXX 20171 20172# Whether we are building with GNU ld or not. 20173with_gnu_ld=$lt_with_gnu_ld_CXX 20174 20175# Flag that allows shared libraries with undefined symbols to be built. 20176allow_undefined_flag=$lt_allow_undefined_flag_CXX 20177 20178# Flag that enforces no undefined symbols. 20179no_undefined_flag=$lt_no_undefined_flag_CXX 20180 20181# Flag to hardcode \$libdir into a binary during linking. 20182# This must work even if \$libdir does not exist 20183hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20184 20185# Whether we need a single "-rpath" flag with a separated argument. 20186hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20187 20188# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20189# DIR into the resulting binary. 20190hardcode_direct=$hardcode_direct_CXX 20191 20192# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20193# DIR into the resulting binary and the resulting library dependency is 20194# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20195# library is relocated. 20196hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20197 20198# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20199# into the resulting binary. 20200hardcode_minus_L=$hardcode_minus_L_CXX 20201 20202# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20203# into the resulting binary. 20204hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20205 20206# Set to "yes" if building a shared library automatically hardcodes DIR 20207# into the library and all subsequent libraries and executables linked 20208# against it. 20209hardcode_automatic=$hardcode_automatic_CXX 20210 20211# Set to yes if linker adds runtime paths of dependent libraries 20212# to runtime path list. 20213inherit_rpath=$inherit_rpath_CXX 20214 20215# Whether libtool must link a program against all its dependency libraries. 20216link_all_deplibs=$link_all_deplibs_CXX 20217 20218# Set to "yes" if exported symbols are required. 20219always_export_symbols=$always_export_symbols_CXX 20220 20221# The commands to list exported symbols. 20222export_symbols_cmds=$lt_export_symbols_cmds_CXX 20223 20224# Symbols that should not be listed in the preloaded symbols. 20225exclude_expsyms=$lt_exclude_expsyms_CXX 20226 20227# Symbols that must always be exported. 20228include_expsyms=$lt_include_expsyms_CXX 20229 20230# Commands necessary for linking programs (against libraries) with templates. 20231prelink_cmds=$lt_prelink_cmds_CXX 20232 20233# Commands necessary for finishing linking programs. 20234postlink_cmds=$lt_postlink_cmds_CXX 20235 20236# Specify filename containing input files. 20237file_list_spec=$lt_file_list_spec_CXX 20238 20239# How to hardcode a shared library path into an executable. 20240hardcode_action=$hardcode_action_CXX 20241 20242# The directories searched by this compiler when creating a shared library. 20243compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20244 20245# Dependencies to place before and after the objects being linked to 20246# create a shared library. 20247predep_objects=$lt_predep_objects_CXX 20248postdep_objects=$lt_postdep_objects_CXX 20249predeps=$lt_predeps_CXX 20250postdeps=$lt_postdeps_CXX 20251 20252# The library search path used internally by the compiler when linking 20253# a shared library. 20254compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20255 20256# ### END LIBTOOL TAG CONFIG: CXX 20257_LT_EOF 20258 20259 ;; 20260 "misc/coverity.sh":F) chmod +x misc/coverity.sh ;; 20261 20262 esac 20263done # for ac_tag 20264 20265 20266as_fn_exit 0 20267_ACEOF 20268ac_clean_files=$ac_clean_files_save 20269 20270test $ac_write_fail = 0 || 20271 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20272 20273 20274# configure is writing to config.log, and then calls config.status. 20275# config.status does its own redirection, appending to config.log. 20276# Unfortunately, on DOS this fails, as config.log is still kept open 20277# by configure, so config.status won't be able to write to it; its 20278# output is simply discarded. So we exec the FD to /dev/null, 20279# effectively closing config.log, so it can be properly (re)opened and 20280# appended to by config.status. When coming back to configure, we 20281# need to make the FD available again. 20282if test "$no_create" != yes; then 20283 ac_cs_success=: 20284 ac_config_status_args= 20285 test "$silent" = yes && 20286 ac_config_status_args="$ac_config_status_args --quiet" 20287 exec 5>/dev/null 20288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20289 exec 5>>config.log 20290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20291 # would make configure fail if this is the last instruction. 20292 $ac_cs_success || as_fn_exit 1 20293fi 20294if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20296printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20297fi 20298 20299 20300