1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for jansson 2.14. 4# 5# Report bugs to <https://github.com/akheron/jansson/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://github.com/akheron/jansson/issues about your 280$0: system, including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='jansson' 623PACKAGE_TARNAME='jansson' 624PACKAGE_VERSION='2.14' 625PACKAGE_STRING='jansson 2.14' 626PACKAGE_BUGREPORT='https://github.com/akheron/jansson/issues' 627PACKAGE_URL='' 628 629ac_unique_file="src/value.c" 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_subst_vars='am__EXEEXT_FALSE 663am__EXEEXT_TRUE 664LTLIBOBJS 665LIBOBJS 666AM_CFLAGS 667USE_OSSFUZZ_STATIC_FALSE 668USE_OSSFUZZ_STATIC_TRUE 669USE_OSSFUZZ_FLAG_FALSE 670USE_OSSFUZZ_FLAG_TRUE 671LIB_FUZZING_ENGINE 672USE_OSSFUZZERS_FALSE 673USE_OSSFUZZERS_TRUE 674JSON_SYMVER_LDFLAGS 675JSON_BSYMBOLIC_LDFLAGS 676json_have_localeconv 677json_have_long_long 678json_have_atomic_builtins 679json_have_sync_builtins 680json_inline 681GCC_FALSE 682GCC_TRUE 683CXXCPP 684LT_SYS_LIBRARY_PATH 685OTOOL64 686OTOOL 687LIPO 688NMEDIT 689DSYMUTIL 690MANIFEST_TOOL 691RANLIB 692ac_ct_AR 693AR 694DLLTOOL 695OBJDUMP 696LN_S 697NM 698ac_ct_DUMPBIN 699DUMPBIN 700LD 701FGREP 702EGREP 703GREP 704SED 705host_os 706host_vendor 707host_cpu 708host 709build_os 710build_vendor 711build_cpu 712build 713LIBTOOL 714am__fastdepCXX_FALSE 715am__fastdepCXX_TRUE 716CXXDEPMODE 717ac_ct_CXX 718CXXFLAGS 719CXX 720am__fastdepCC_FALSE 721am__fastdepCC_TRUE 722CCDEPMODE 723am__nodep 724AMDEPBACKSLASH 725AMDEP_FALSE 726AMDEP_TRUE 727am__include 728DEPDIR 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736AM_BACKSLASH 737AM_DEFAULT_VERBOSITY 738AM_DEFAULT_V 739AM_V 740CSCOPE 741ETAGS 742CTAGS 743am__untar 744am__tar 745AMTAR 746am__leading_dot 747SET_MAKE 748AWK 749mkdir_p 750MKDIR_P 751INSTALL_STRIP_PROGRAM 752STRIP 753install_sh 754MAKEINFO 755AUTOHEADER 756AUTOMAKE 757AUTOCONF 758ACLOCAL 759VERSION 760PACKAGE 761CYGPATH_W 762am__isrc 763INSTALL_DATA 764INSTALL_SCRIPT 765INSTALL_PROGRAM 766target_alias 767host_alias 768build_alias 769LIBS 770ECHO_T 771ECHO_N 772ECHO_C 773DEFS 774mandir 775localedir 776libdir 777psdir 778pdfdir 779dvidir 780htmldir 781infodir 782docdir 783oldincludedir 784includedir 785runstatedir 786localstatedir 787sharedstatedir 788sysconfdir 789datadir 790datarootdir 791libexecdir 792sbindir 793bindir 794program_transform_name 795prefix 796exec_prefix 797PACKAGE_URL 798PACKAGE_BUGREPORT 799PACKAGE_STRING 800PACKAGE_VERSION 801PACKAGE_TARNAME 802PACKAGE_NAME 803PATH_SEPARATOR 804SHELL 805am__quote' 806ac_subst_files='' 807ac_user_opts=' 808enable_option_checking 809enable_silent_rules 810enable_dependency_tracking 811enable_shared 812enable_static 813with_pic 814enable_fast_install 815with_aix_soname 816with_gnu_ld 817with_sysroot 818enable_libtool_lock 819enable_urandom 820enable_windows_cryptoapi 821enable_initial_hashtable_order 822enable_Bsymbolic 823enable_ossfuzzers 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CXX 834CXXFLAGS 835CCC 836LT_SYS_LIBRARY_PATH 837CXXCPP' 838 839 840# Initialize some variables set by options. 841ac_init_help= 842ac_init_version=false 843ac_unrecognized_opts= 844ac_unrecognized_sep= 845# The variables have the same names as the options, with 846# dashes changed to underlines. 847cache_file=/dev/null 848exec_prefix=NONE 849no_create= 850no_recursion= 851prefix=NONE 852program_prefix=NONE 853program_suffix=NONE 854program_transform_name=s,x,x, 855silent= 856site= 857srcdir= 858verbose= 859x_includes=NONE 860x_libraries=NONE 861 862# Installation directory options. 863# These are left unexpanded so users can "make install exec_prefix=/foo" 864# and all the variables that are supposed to be based on exec_prefix 865# by default will actually change. 866# Use braces instead of parens because sh, perl, etc. also accept them. 867# (The list follows the same order as the GNU Coding Standards.) 868bindir='${exec_prefix}/bin' 869sbindir='${exec_prefix}/sbin' 870libexecdir='${exec_prefix}/libexec' 871datarootdir='${prefix}/share' 872datadir='${datarootdir}' 873sysconfdir='${prefix}/etc' 874sharedstatedir='${prefix}/com' 875localstatedir='${prefix}/var' 876runstatedir='${localstatedir}/run' 877includedir='${prefix}/include' 878oldincludedir='/usr/include' 879docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 880infodir='${datarootdir}/info' 881htmldir='${docdir}' 882dvidir='${docdir}' 883pdfdir='${docdir}' 884psdir='${docdir}' 885libdir='${exec_prefix}/lib' 886localedir='${datarootdir}/locale' 887mandir='${datarootdir}/man' 888 889ac_prev= 890ac_dashdash= 891for ac_option 892do 893 # If the previous option needs an argument, assign it. 894 if test -n "$ac_prev"; then 895 eval $ac_prev=\$ac_option 896 ac_prev= 897 continue 898 fi 899 900 case $ac_option in 901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 902 *=) ac_optarg= ;; 903 *) ac_optarg=yes ;; 904 esac 905 906 case $ac_dashdash$ac_option in 907 --) 908 ac_dashdash=yes ;; 909 910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 911 ac_prev=bindir ;; 912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 913 bindir=$ac_optarg ;; 914 915 -build | --build | --buil | --bui | --bu) 916 ac_prev=build_alias ;; 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 918 build_alias=$ac_optarg ;; 919 920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 922 ac_prev=cache_file ;; 923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 925 cache_file=$ac_optarg ;; 926 927 --config-cache | -C) 928 cache_file=config.cache ;; 929 930 -datadir | --datadir | --datadi | --datad) 931 ac_prev=datadir ;; 932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 933 datadir=$ac_optarg ;; 934 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 936 | --dataroo | --dataro | --datar) 937 ac_prev=datarootdir ;; 938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 940 datarootdir=$ac_optarg ;; 941 942 -disable-* | --disable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: \`$ac_useropt'" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=no ;; 957 958 -docdir | --docdir | --docdi | --doc | --do) 959 ac_prev=docdir ;; 960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 961 docdir=$ac_optarg ;; 962 963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 964 ac_prev=dvidir ;; 965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 966 dvidir=$ac_optarg ;; 967 968 -enable-* | --enable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: \`$ac_useropt'" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=\$ac_optarg ;; 983 984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 986 | --exec | --exe | --ex) 987 ac_prev=exec_prefix ;; 988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 990 | --exec=* | --exe=* | --ex=*) 991 exec_prefix=$ac_optarg ;; 992 993 -gas | --gas | --ga | --g) 994 # Obsolete; use --with-gas. 995 with_gas=yes ;; 996 997 -help | --help | --hel | --he | -h) 998 ac_init_help=long ;; 999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1000 ac_init_help=recursive ;; 1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1002 ac_init_help=short ;; 1003 1004 -host | --host | --hos | --ho) 1005 ac_prev=host_alias ;; 1006 -host=* | --host=* | --hos=* | --ho=*) 1007 host_alias=$ac_optarg ;; 1008 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1010 ac_prev=htmldir ;; 1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1012 | --ht=*) 1013 htmldir=$ac_optarg ;; 1014 1015 -includedir | --includedir | --includedi | --included | --include \ 1016 | --includ | --inclu | --incl | --inc) 1017 ac_prev=includedir ;; 1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1019 | --includ=* | --inclu=* | --incl=* | --inc=*) 1020 includedir=$ac_optarg ;; 1021 1022 -infodir | --infodir | --infodi | --infod | --info | --inf) 1023 ac_prev=infodir ;; 1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1025 infodir=$ac_optarg ;; 1026 1027 -libdir | --libdir | --libdi | --libd) 1028 ac_prev=libdir ;; 1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1030 libdir=$ac_optarg ;; 1031 1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1033 | --libexe | --libex | --libe) 1034 ac_prev=libexecdir ;; 1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1036 | --libexe=* | --libex=* | --libe=*) 1037 libexecdir=$ac_optarg ;; 1038 1039 -localedir | --localedir | --localedi | --localed | --locale) 1040 ac_prev=localedir ;; 1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1042 localedir=$ac_optarg ;; 1043 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1045 | --localstate | --localstat | --localsta | --localst | --locals) 1046 ac_prev=localstatedir ;; 1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1049 localstatedir=$ac_optarg ;; 1050 1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1052 ac_prev=mandir ;; 1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1054 mandir=$ac_optarg ;; 1055 1056 -nfp | --nfp | --nf) 1057 # Obsolete; use --without-fp. 1058 with_fp=no ;; 1059 1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1061 | --no-cr | --no-c | -n) 1062 no_create=yes ;; 1063 1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1066 no_recursion=yes ;; 1067 1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1070 | --oldin | --oldi | --old | --ol | --o) 1071 ac_prev=oldincludedir ;; 1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1075 oldincludedir=$ac_optarg ;; 1076 1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1078 ac_prev=prefix ;; 1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1080 prefix=$ac_optarg ;; 1081 1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1083 | --program-pre | --program-pr | --program-p) 1084 ac_prev=program_prefix ;; 1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1087 program_prefix=$ac_optarg ;; 1088 1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1090 | --program-suf | --program-su | --program-s) 1091 ac_prev=program_suffix ;; 1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1094 program_suffix=$ac_optarg ;; 1095 1096 -program-transform-name | --program-transform-name \ 1097 | --program-transform-nam | --program-transform-na \ 1098 | --program-transform-n | --program-transform- \ 1099 | --program-transform | --program-transfor \ 1100 | --program-transfo | --program-transf \ 1101 | --program-trans | --program-tran \ 1102 | --progr-tra | --program-tr | --program-t) 1103 ac_prev=program_transform_name ;; 1104 -program-transform-name=* | --program-transform-name=* \ 1105 | --program-transform-nam=* | --program-transform-na=* \ 1106 | --program-transform-n=* | --program-transform-=* \ 1107 | --program-transform=* | --program-transfor=* \ 1108 | --program-transfo=* | --program-transf=* \ 1109 | --program-trans=* | --program-tran=* \ 1110 | --progr-tra=* | --program-tr=* | --program-t=*) 1111 program_transform_name=$ac_optarg ;; 1112 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1114 ac_prev=pdfdir ;; 1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1116 pdfdir=$ac_optarg ;; 1117 1118 -psdir | --psdir | --psdi | --psd | --ps) 1119 ac_prev=psdir ;; 1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1121 psdir=$ac_optarg ;; 1122 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1124 | -silent | --silent | --silen | --sile | --sil) 1125 silent=yes ;; 1126 1127 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1128 | --runstate | --runstat | --runsta | --runst | --runs \ 1129 | --run | --ru | --r) 1130 ac_prev=runstatedir ;; 1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1133 | --run=* | --ru=* | --r=*) 1134 runstatedir=$ac_optarg ;; 1135 1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1137 ac_prev=sbindir ;; 1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1139 | --sbi=* | --sb=*) 1140 sbindir=$ac_optarg ;; 1141 1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1144 | --sharedst | --shareds | --shared | --share | --shar \ 1145 | --sha | --sh) 1146 ac_prev=sharedstatedir ;; 1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1150 | --sha=* | --sh=*) 1151 sharedstatedir=$ac_optarg ;; 1152 1153 -site | --site | --sit) 1154 ac_prev=site ;; 1155 -site=* | --site=* | --sit=*) 1156 site=$ac_optarg ;; 1157 1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1159 ac_prev=srcdir ;; 1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1161 srcdir=$ac_optarg ;; 1162 1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1164 | --syscon | --sysco | --sysc | --sys | --sy) 1165 ac_prev=sysconfdir ;; 1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1168 sysconfdir=$ac_optarg ;; 1169 1170 -target | --target | --targe | --targ | --tar | --ta | --t) 1171 ac_prev=target_alias ;; 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1173 target_alias=$ac_optarg ;; 1174 1175 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1176 verbose=yes ;; 1177 1178 -version | --version | --versio | --versi | --vers | -V) 1179 ac_init_version=: ;; 1180 1181 -with-* | --with-*) 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1183 # Reject names that are not valid shell variable names. 1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1185 as_fn_error $? "invalid package name: \`$ac_useropt'" 1186 ac_useropt_orig=$ac_useropt 1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1188 case $ac_user_opts in 1189 *" 1190"with_$ac_useropt" 1191"*) ;; 1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1193 ac_unrecognized_sep=', ';; 1194 esac 1195 eval with_$ac_useropt=\$ac_optarg ;; 1196 1197 -without-* | --without-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: \`$ac_useropt'" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=no ;; 1212 1213 --x) 1214 # Obsolete; use --with-x. 1215 with_x=yes ;; 1216 1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1218 | --x-incl | --x-inc | --x-in | --x-i) 1219 ac_prev=x_includes ;; 1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1222 x_includes=$ac_optarg ;; 1223 1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1226 ac_prev=x_libraries ;; 1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1229 x_libraries=$ac_optarg ;; 1230 1231 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1232Try \`$0 --help' for more information" 1233 ;; 1234 1235 *=*) 1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1237 # Reject names that are not valid shell variable names. 1238 case $ac_envvar in #( 1239 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1241 esac 1242 eval $ac_envvar=\$ac_optarg 1243 export $ac_envvar ;; 1244 1245 *) 1246 # FIXME: should be removed in autoconf 3.0. 1247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1251 ;; 1252 1253 esac 1254done 1255 1256if test -n "$ac_prev"; then 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1258 as_fn_error $? "missing argument to $ac_option" 1259fi 1260 1261if test -n "$ac_unrecognized_opts"; then 1262 case $enable_option_checking in 1263 no) ;; 1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1266 esac 1267fi 1268 1269# Check all directory arguments for consistency. 1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1271 datadir sysconfdir sharedstatedir localstatedir includedir \ 1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1273 libdir localedir mandir runstatedir 1274do 1275 eval ac_val=\$$ac_var 1276 # Remove trailing slashes. 1277 case $ac_val in 1278 */ ) 1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1280 eval $ac_var=\$ac_val;; 1281 esac 1282 # Be sure to have absolute directory names. 1283 case $ac_val in 1284 [\\/$]* | ?:[\\/]* ) continue;; 1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1286 esac 1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1288done 1289 1290# There might be people who depend on the old broken behavior: `$host' 1291# used to hold the argument of --host etc. 1292# FIXME: To remove some day. 1293build=$build_alias 1294host=$host_alias 1295target=$target_alias 1296 1297# FIXME: To remove some day. 1298if test "x$host_alias" != x; then 1299 if test "x$build_alias" = x; then 1300 cross_compiling=maybe 1301 elif test "x$build_alias" != "x$host_alias"; then 1302 cross_compiling=yes 1303 fi 1304fi 1305 1306ac_tool_prefix= 1307test -n "$host_alias" && ac_tool_prefix=$host_alias- 1308 1309test "$silent" = yes && exec 6>/dev/null 1310 1311 1312ac_pwd=`pwd` && test -n "$ac_pwd" && 1313ac_ls_di=`ls -di .` && 1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1315 as_fn_error $? "working directory cannot be determined" 1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1317 as_fn_error $? "pwd does not report name of working directory" 1318 1319 1320# Find the source files, if location was not specified. 1321if test -z "$srcdir"; then 1322 ac_srcdir_defaulted=yes 1323 # Try the directory containing this script, then the parent directory. 1324 ac_confdir=`$as_dirname -- "$as_myself" || 1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1326 X"$as_myself" : 'X\(//\)[^/]' \| \ 1327 X"$as_myself" : 'X\(//\)$' \| \ 1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1329printf "%s\n" X"$as_myself" | 1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1331 s//\1/ 1332 q 1333 } 1334 /^X\(\/\/\)[^/].*/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)$/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\).*/{ 1343 s//\1/ 1344 q 1345 } 1346 s/.*/./; q'` 1347 srcdir=$ac_confdir 1348 if test ! -r "$srcdir/$ac_unique_file"; then 1349 srcdir=.. 1350 fi 1351else 1352 ac_srcdir_defaulted=no 1353fi 1354if test ! -r "$srcdir/$ac_unique_file"; then 1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1357fi 1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1359ac_abs_confdir=`( 1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1361 pwd)` 1362# When building in place, set srcdir=. 1363if test "$ac_abs_confdir" = "$ac_pwd"; then 1364 srcdir=. 1365fi 1366# Remove unnecessary trailing slashes from srcdir. 1367# Double slashes in file names in object file debugging info 1368# mess up M-x gdb in Emacs. 1369case $srcdir in 1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1371esac 1372for ac_var in $ac_precious_vars; do 1373 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_env_${ac_var}_value=\$${ac_var} 1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1376 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1377done 1378 1379# 1380# Report the --help message. 1381# 1382if test "$ac_init_help" = "long"; then 1383 # Omit some internal or obsolete options to make the list less imposing. 1384 # This message is too long to be a string in the A/UX 3.1 sh. 1385 cat <<_ACEOF 1386\`configure' configures jansson 2.14 to adapt to many kinds of systems. 1387 1388Usage: $0 [OPTION]... [VAR=VALUE]... 1389 1390To assign environment variables (e.g., CC, CFLAGS...), specify them as 1391VAR=VALUE. See below for descriptions of some of the useful variables. 1392 1393Defaults for the options are specified in brackets. 1394 1395Configuration: 1396 -h, --help display this help and exit 1397 --help=short display options specific to this package 1398 --help=recursive display the short help of all the included packages 1399 -V, --version display version information and exit 1400 -q, --quiet, --silent do not print \`checking ...' messages 1401 --cache-file=FILE cache test results in FILE [disabled] 1402 -C, --config-cache alias for \`--cache-file=config.cache' 1403 -n, --no-create do not create output files 1404 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1405 1406Installation directories: 1407 --prefix=PREFIX install architecture-independent files in PREFIX 1408 [$ac_default_prefix] 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1410 [PREFIX] 1411 1412By default, \`make install' will install all the files in 1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1414an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1415for instance \`--prefix=\$HOME'. 1416 1417For better control, use the options below. 1418 1419Fine tuning of the installation directories: 1420 --bindir=DIR user executables [EPREFIX/bin] 1421 --sbindir=DIR system admin executables [EPREFIX/sbin] 1422 --libexecdir=DIR program executables [EPREFIX/libexec] 1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1427 --libdir=DIR object code libraries [EPREFIX/lib] 1428 --includedir=DIR C header files [PREFIX/include] 1429 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1432 --infodir=DIR info documentation [DATAROOTDIR/info] 1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1434 --mandir=DIR man documentation [DATAROOTDIR/man] 1435 --docdir=DIR documentation root [DATAROOTDIR/doc/jansson] 1436 --htmldir=DIR html documentation [DOCDIR] 1437 --dvidir=DIR dvi documentation [DOCDIR] 1438 --pdfdir=DIR pdf documentation [DOCDIR] 1439 --psdir=DIR ps documentation [DOCDIR] 1440_ACEOF 1441 1442 cat <<\_ACEOF 1443 1444Program names: 1445 --program-prefix=PREFIX prepend PREFIX to installed program names 1446 --program-suffix=SUFFIX append SUFFIX to installed program names 1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1448 1449System types: 1450 --build=BUILD configure for building on BUILD [guessed] 1451 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1452_ACEOF 1453fi 1454 1455if test -n "$ac_init_help"; then 1456 case $ac_init_help in 1457 short | recursive ) echo "Configuration of jansson 2.14:";; 1458 esac 1459 cat <<\_ACEOF 1460 1461Optional Features: 1462 --disable-option-checking ignore unrecognized --enable/--with options 1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1465 --enable-silent-rules less verbose build output (undo: "make V=1") 1466 --disable-silent-rules verbose build output (undo: "make V=0") 1467 --enable-dependency-tracking 1468 do not reject slow dependency extractors 1469 --disable-dependency-tracking 1470 speeds up one-time build 1471 --enable-shared[=PKGS] build shared libraries [default=yes] 1472 --enable-static[=PKGS] build static libraries [default=yes] 1473 --enable-fast-install[=PKGS] 1474 optimize for fast installation [default=yes] 1475 --disable-libtool-lock avoid locking (might break parallel builds) 1476 --disable-urandom Don't use /dev/urandom to seed the hash function 1477 --disable-windows-cryptoapi 1478 Don't use CryptGenRandom to seed the hash function 1479 --enable-initial-hashtable-order=VAL 1480 Number of buckets new object hashtables contain is 2 1481 raised to this power. The default is 3, so empty 1482 hashtables contain 2^3 = 8 buckets. 1483 --disable-Bsymbolic Avoid linking with -Bsymbolic-function 1484 --enable-ossfuzzers Whether to generate the fuzzers for OSS-Fuzz 1485 1486Optional Packages: 1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1489 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1490 both] 1491 --with-aix-soname=aix|svr4|both 1492 shared library versioning (aka "SONAME") variant to 1493 provide on AIX, [default=aix]. 1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1495 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1496 compiler's sysroot if not specified). 1497 1498Some influential environment variables: 1499 CC C compiler command 1500 CFLAGS C compiler flags 1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1502 nonstandard directory <lib dir> 1503 LIBS libraries to pass to the linker, e.g. -l<library> 1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1505 you have headers in a nonstandard directory <include dir> 1506 CXX C++ compiler command 1507 CXXFLAGS C++ compiler flags 1508 LT_SYS_LIBRARY_PATH 1509 User-defined run-time library search path. 1510 CXXCPP C++ preprocessor 1511 1512Use these variables to override the choices made by `configure' or to help 1513it to find libraries and programs with nonstandard names/locations. 1514 1515Report bugs to <https://github.com/akheron/jansson/issues>. 1516_ACEOF 1517ac_status=$? 1518fi 1519 1520if test "$ac_init_help" = "recursive"; then 1521 # If there are subdirs, report their specific --help. 1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1523 test -d "$ac_dir" || 1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1525 continue 1526 ac_builddir=. 1527 1528case "$ac_dir" in 1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1530*) 1531 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1532 # A ".." for each directory in $ac_dir_suffix. 1533 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1534 case $ac_top_builddir_sub in 1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1537 esac ;; 1538esac 1539ac_abs_top_builddir=$ac_pwd 1540ac_abs_builddir=$ac_pwd$ac_dir_suffix 1541# for backward compatibility: 1542ac_top_builddir=$ac_top_build_prefix 1543 1544case $srcdir in 1545 .) # We are building in place. 1546 ac_srcdir=. 1547 ac_top_srcdir=$ac_top_builddir_sub 1548 ac_abs_top_srcdir=$ac_pwd ;; 1549 [\\/]* | ?:[\\/]* ) # Absolute name. 1550 ac_srcdir=$srcdir$ac_dir_suffix; 1551 ac_top_srcdir=$srcdir 1552 ac_abs_top_srcdir=$srcdir ;; 1553 *) # Relative name. 1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1555 ac_top_srcdir=$ac_top_build_prefix$srcdir 1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1557esac 1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1559 1560 cd "$ac_dir" || { ac_status=$?; continue; } 1561 # Check for configure.gnu first; this name is used for a wrapper for 1562 # Metaconfig's "Configure" on case-insensitive file systems. 1563 if test -f "$ac_srcdir/configure.gnu"; then 1564 echo && 1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1566 elif test -f "$ac_srcdir/configure"; then 1567 echo && 1568 $SHELL "$ac_srcdir/configure" --help=recursive 1569 else 1570 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1571 fi || ac_status=$? 1572 cd "$ac_pwd" || { ac_status=$?; break; } 1573 done 1574fi 1575 1576test -n "$ac_init_help" && exit $ac_status 1577if $ac_init_version; then 1578 cat <<\_ACEOF 1579jansson configure 2.14 1580generated by GNU Autoconf 2.71 1581 1582Copyright (C) 2021 Free Software Foundation, Inc. 1583This configure script is free software; the Free Software Foundation 1584gives unlimited permission to copy, distribute and modify it. 1585_ACEOF 1586 exit 1587fi 1588 1589## ------------------------ ## 1590## Autoconf initialization. ## 1591## ------------------------ ## 1592 1593# ac_fn_c_try_compile LINENO 1594# -------------------------- 1595# Try to compile conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_compile () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 rm -f conftest.$ac_objext conftest.beam 1600 if { { ac_try="$ac_compile" 1601case "(($ac_try" in 1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1603 *) ac_try_echo=$ac_try;; 1604esac 1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1606printf "%s\n" "$ac_try_echo"; } >&5 1607 (eval "$ac_compile") 2>conftest.err 1608 ac_status=$? 1609 if test -s conftest.err; then 1610 grep -v '^ *+' conftest.err >conftest.er1 1611 cat conftest.er1 >&5 1612 mv -f conftest.er1 conftest.err 1613 fi 1614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1615 test $ac_status = 0; } && { 1616 test -z "$ac_c_werror_flag" || 1617 test ! -s conftest.err 1618 } && test -s conftest.$ac_objext 1619then : 1620 ac_retval=0 1621else $as_nop 1622 printf "%s\n" "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=1 1626fi 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 as_fn_set_status $ac_retval 1629 1630} # ac_fn_c_try_compile 1631 1632# ac_fn_cxx_try_compile LINENO 1633# ---------------------------- 1634# Try to compile conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_cxx_try_compile () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext conftest.beam 1639 if { { ac_try="$ac_compile" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645printf "%s\n" "$ac_try_echo"; } >&5 1646 (eval "$ac_compile") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_cxx_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest.$ac_objext 1658then : 1659 ac_retval=0 1660else $as_nop 1661 printf "%s\n" "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_cxx_try_compile 1670 1671# ac_fn_c_try_link LINENO 1672# ----------------------- 1673# Try to link conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_c_try_link () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1678 if { { ac_try="$ac_link" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684printf "%s\n" "$ac_try_echo"; } >&5 1685 (eval "$ac_link") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest$ac_exeext && { 1697 test "$cross_compiling" = yes || 1698 test -x conftest$ac_exeext 1699 } 1700then : 1701 ac_retval=0 1702else $as_nop 1703 printf "%s\n" "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 1707fi 1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1710 # interfere with the next link command; also delete a directory that is 1711 # left behind by Apple's compiler. We do this before executing the actions. 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_link 1717 1718# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1719# ------------------------------------------------------- 1720# Tests whether HEADER exists and can be compiled using the include files in 1721# INCLUDES, setting the cache variable VAR accordingly. 1722ac_fn_c_check_header_compile () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726printf %s "checking for $2... " >&6; } 1727if eval test \${$3+y} 1728then : 1729 printf %s "(cached) " >&6 1730else $as_nop 1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1732/* end confdefs.h. */ 1733$4 1734#include <$2> 1735_ACEOF 1736if ac_fn_c_try_compile "$LINENO" 1737then : 1738 eval "$3=yes" 1739else $as_nop 1740 eval "$3=no" 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1743fi 1744eval ac_res=\$$3 1745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746printf "%s\n" "$ac_res" >&6; } 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 1749} # ac_fn_c_check_header_compile 1750 1751# ac_fn_c_check_func LINENO FUNC VAR 1752# ---------------------------------- 1753# Tests whether FUNC exists, setting the cache variable VAR accordingly 1754ac_fn_c_check_func () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758printf %s "checking for $2... " >&6; } 1759if eval test \${$3+y} 1760then : 1761 printf %s "(cached) " >&6 1762else $as_nop 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1767#define $2 innocuous_$2 1768 1769/* System header to define __stub macros and hopefully few prototypes, 1770 which can conflict with char $2 (); below. */ 1771 1772#include <limits.h> 1773#undef $2 1774 1775/* Override any GCC internal prototype to avoid an error. 1776 Use char because int might match the return type of a GCC 1777 builtin and then its argument prototype would still apply. */ 1778#ifdef __cplusplus 1779extern "C" 1780#endif 1781char $2 (); 1782/* The GNU C library defines this for functions which it implements 1783 to always fail with ENOSYS. Some functions are actually named 1784 something starting with __ and the normal name is an alias. */ 1785#if defined __stub_$2 || defined __stub___$2 1786choke me 1787#endif 1788 1789int 1790main (void) 1791{ 1792return $2 (); 1793 ; 1794 return 0; 1795} 1796_ACEOF 1797if ac_fn_c_try_link "$LINENO" 1798then : 1799 eval "$3=yes" 1800else $as_nop 1801 eval "$3=no" 1802fi 1803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1804 conftest$ac_exeext conftest.$ac_ext 1805fi 1806eval ac_res=\$$3 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808printf "%s\n" "$ac_res" >&6; } 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 1811} # ac_fn_c_check_func 1812 1813# ac_fn_cxx_try_cpp LINENO 1814# ------------------------ 1815# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1816ac_fn_cxx_try_cpp () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 if { { ac_try="$ac_cpp conftest.$ac_ext" 1820case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823esac 1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1825printf "%s\n" "$ac_try_echo"; } >&5 1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1827 ac_status=$? 1828 if test -s conftest.err; then 1829 grep -v '^ *+' conftest.err >conftest.er1 1830 cat conftest.er1 >&5 1831 mv -f conftest.er1 conftest.err 1832 fi 1833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1834 test $ac_status = 0; } > conftest.i && { 1835 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1836 test ! -s conftest.err 1837 } 1838then : 1839 ac_retval=0 1840else $as_nop 1841 printf "%s\n" "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=1 1845fi 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_cxx_try_cpp 1850 1851# ac_fn_cxx_try_link LINENO 1852# ------------------------- 1853# Try to link conftest.$ac_ext, and return whether this succeeded. 1854ac_fn_cxx_try_link () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1858 if { { ac_try="$ac_link" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864printf "%s\n" "$ac_try_echo"; } >&5 1865 (eval "$ac_link") 2>conftest.err 1866 ac_status=$? 1867 if test -s conftest.err; then 1868 grep -v '^ *+' conftest.err >conftest.er1 1869 cat conftest.er1 >&5 1870 mv -f conftest.er1 conftest.err 1871 fi 1872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } && { 1874 test -z "$ac_cxx_werror_flag" || 1875 test ! -s conftest.err 1876 } && test -s conftest$ac_exeext && { 1877 test "$cross_compiling" = yes || 1878 test -x conftest$ac_exeext 1879 } 1880then : 1881 ac_retval=0 1882else $as_nop 1883 printf "%s\n" "$as_me: failed program was:" >&5 1884sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 ac_retval=1 1887fi 1888 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1889 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1890 # interfere with the next link command; also delete a directory that is 1891 # left behind by Apple's compiler. We do this before executing the actions. 1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 as_fn_set_status $ac_retval 1895 1896} # ac_fn_cxx_try_link 1897 1898# ac_fn_c_find_intX_t LINENO BITS VAR 1899# ----------------------------------- 1900# Finds a signed integer type with width BITS, setting cache variable VAR 1901# accordingly. 1902ac_fn_c_find_intX_t () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1906printf %s "checking for int$2_t... " >&6; } 1907if eval test \${$3+y} 1908then : 1909 printf %s "(cached) " >&6 1910else $as_nop 1911 eval "$3=no" 1912 # Order is important - never check a type that is potentially smaller 1913 # than half of the expected target width. 1914 for ac_type in int$2_t 'int' 'long int' \ 1915 'long long int' 'short int' 'signed char'; do 1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917/* end confdefs.h. */ 1918$ac_includes_default 1919 enum { N = $2 / 2 - 1 }; 1920int 1921main (void) 1922{ 1923static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1924test_array [0] = 0; 1925return test_array [0]; 1926 1927 ; 1928 return 0; 1929} 1930_ACEOF 1931if ac_fn_c_try_compile "$LINENO" 1932then : 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935$ac_includes_default 1936 enum { N = $2 / 2 - 1 }; 1937int 1938main (void) 1939{ 1940static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1941 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1942test_array [0] = 0; 1943return test_array [0]; 1944 1945 ; 1946 return 0; 1947} 1948_ACEOF 1949if ac_fn_c_try_compile "$LINENO" 1950then : 1951 1952else $as_nop 1953 case $ac_type in #( 1954 int$2_t) : 1955 eval "$3=yes" ;; #( 1956 *) : 1957 eval "$3=\$ac_type" ;; 1958esac 1959fi 1960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1961fi 1962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1963 if eval test \"x\$"$3"\" = x"no" 1964then : 1965 1966else $as_nop 1967 break 1968fi 1969 done 1970fi 1971eval ac_res=\$$3 1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1973printf "%s\n" "$ac_res" >&6; } 1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1975 1976} # ac_fn_c_find_intX_t 1977 1978# ac_fn_c_find_uintX_t LINENO BITS VAR 1979# ------------------------------------ 1980# Finds an unsigned integer type with width BITS, setting cache variable VAR 1981# accordingly. 1982ac_fn_c_find_uintX_t () 1983{ 1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1986printf %s "checking for uint$2_t... " >&6; } 1987if eval test \${$3+y} 1988then : 1989 printf %s "(cached) " >&6 1990else $as_nop 1991 eval "$3=no" 1992 # Order is important - never check a type that is potentially smaller 1993 # than half of the expected target width. 1994 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1995 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$ac_includes_default 1999int 2000main (void) 2001{ 2002static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2003test_array [0] = 0; 2004return test_array [0]; 2005 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_compile "$LINENO" 2011then : 2012 case $ac_type in #( 2013 uint$2_t) : 2014 eval "$3=yes" ;; #( 2015 *) : 2016 eval "$3=\$ac_type" ;; 2017esac 2018fi 2019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2020 if eval test \"x\$"$3"\" = x"no" 2021then : 2022 2023else $as_nop 2024 break 2025fi 2026 done 2027fi 2028eval ac_res=\$$3 2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2030printf "%s\n" "$ac_res" >&6; } 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2032 2033} # ac_fn_c_find_uintX_t 2034 2035# ac_fn_c_try_run LINENO 2036# ---------------------- 2037# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2038# executables *can* be run. 2039ac_fn_c_try_run () 2040{ 2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042 if { { ac_try="$ac_link" 2043case "(($ac_try" in 2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2045 *) ac_try_echo=$ac_try;; 2046esac 2047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2048printf "%s\n" "$ac_try_echo"; } >&5 2049 (eval "$ac_link") 2>&5 2050 ac_status=$? 2051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2052 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2053 { { case "(($ac_try" in 2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2055 *) ac_try_echo=$ac_try;; 2056esac 2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2058printf "%s\n" "$ac_try_echo"; } >&5 2059 (eval "$ac_try") 2>&5 2060 ac_status=$? 2061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2062 test $ac_status = 0; }; } 2063then : 2064 ac_retval=0 2065else $as_nop 2066 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2067 printf "%s\n" "$as_me: failed program was:" >&5 2068sed 's/^/| /' conftest.$ac_ext >&5 2069 2070 ac_retval=$ac_status 2071fi 2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2074 as_fn_set_status $ac_retval 2075 2076} # ac_fn_c_try_run 2077 2078# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2079# ------------------------------------------------------------------ 2080# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2081# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2082ac_fn_check_decl () 2083{ 2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2085 as_decl_name=`echo $2|sed 's/ *(.*//'` 2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2087printf %s "checking whether $as_decl_name is declared... " >&6; } 2088if eval test \${$3+y} 2089then : 2090 printf %s "(cached) " >&6 2091else $as_nop 2092 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2093 eval ac_save_FLAGS=\$$6 2094 as_fn_append $6 " $5" 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098int 2099main (void) 2100{ 2101#ifndef $as_decl_name 2102#ifdef __cplusplus 2103 (void) $as_decl_use; 2104#else 2105 (void) $as_decl_name; 2106#endif 2107#endif 2108 2109 ; 2110 return 0; 2111} 2112_ACEOF 2113if ac_fn_c_try_compile "$LINENO" 2114then : 2115 eval "$3=yes" 2116else $as_nop 2117 eval "$3=no" 2118fi 2119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2120 eval $6=\$ac_save_FLAGS 2121 2122fi 2123eval ac_res=\$$3 2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2125printf "%s\n" "$ac_res" >&6; } 2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2127 2128} # ac_fn_check_decl 2129ac_configure_args_raw= 2130for ac_arg 2131do 2132 case $ac_arg in 2133 *\'*) 2134 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2135 esac 2136 as_fn_append ac_configure_args_raw " '$ac_arg'" 2137done 2138 2139case $ac_configure_args_raw in 2140 *$as_nl*) 2141 ac_safe_unquote= ;; 2142 *) 2143 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2144 ac_unsafe_a="$ac_unsafe_z#~" 2145 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2146 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2147esac 2148 2149cat >config.log <<_ACEOF 2150This file contains any messages produced by compilers while 2151running configure, to aid debugging if configure makes a mistake. 2152 2153It was created by jansson $as_me 2.14, which was 2154generated by GNU Autoconf 2.71. Invocation command line was 2155 2156 $ $0$ac_configure_args_raw 2157 2158_ACEOF 2159exec 5>>config.log 2160{ 2161cat <<_ASUNAME 2162## --------- ## 2163## Platform. ## 2164## --------- ## 2165 2166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2167uname -m = `(uname -m) 2>/dev/null || echo unknown` 2168uname -r = `(uname -r) 2>/dev/null || echo unknown` 2169uname -s = `(uname -s) 2>/dev/null || echo unknown` 2170uname -v = `(uname -v) 2>/dev/null || echo unknown` 2171 2172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2174 2175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2178/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2182 2183_ASUNAME 2184 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 case $as_dir in #((( 2190 '') as_dir=./ ;; 2191 */) ;; 2192 *) as_dir=$as_dir/ ;; 2193 esac 2194 printf "%s\n" "PATH: $as_dir" 2195 done 2196IFS=$as_save_IFS 2197 2198} >&5 2199 2200cat >&5 <<_ACEOF 2201 2202 2203## ----------- ## 2204## Core tests. ## 2205## ----------- ## 2206 2207_ACEOF 2208 2209 2210# Keep a trace of the command line. 2211# Strip out --no-create and --no-recursion so they do not pile up. 2212# Strip out --silent because we don't want to record it for future runs. 2213# Also quote any args containing shell meta-characters. 2214# Make two passes to allow for proper duplicate-argument suppression. 2215ac_configure_args= 2216ac_configure_args0= 2217ac_configure_args1= 2218ac_must_keep_next=false 2219for ac_pass in 1 2 2220do 2221 for ac_arg 2222 do 2223 case $ac_arg in 2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2226 | -silent | --silent | --silen | --sile | --sil) 2227 continue ;; 2228 *\'*) 2229 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2230 esac 2231 case $ac_pass in 2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2233 2) 2234 as_fn_append ac_configure_args1 " '$ac_arg'" 2235 if test $ac_must_keep_next = true; then 2236 ac_must_keep_next=false # Got value, back to normal. 2237 else 2238 case $ac_arg in 2239 *=* | --config-cache | -C | -disable-* | --disable-* \ 2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2242 | -with-* | --with-* | -without-* | --without-* | --x) 2243 case "$ac_configure_args0 " in 2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2245 esac 2246 ;; 2247 -* ) ac_must_keep_next=true ;; 2248 esac 2249 fi 2250 as_fn_append ac_configure_args " '$ac_arg'" 2251 ;; 2252 esac 2253 done 2254done 2255{ ac_configure_args0=; unset ac_configure_args0;} 2256{ ac_configure_args1=; unset ac_configure_args1;} 2257 2258# When interrupted or exit'd, cleanup temporary files, and complete 2259# config.log. We remove comments because anyway the quotes in there 2260# would cause problems or look ugly. 2261# WARNING: Use '\'' to represent an apostrophe within the trap. 2262# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2263trap 'exit_status=$? 2264 # Sanitize IFS. 2265 IFS=" "" $as_nl" 2266 # Save into config.log some information that might help in debugging. 2267 { 2268 echo 2269 2270 printf "%s\n" "## ---------------- ## 2271## Cache variables. ## 2272## ---------------- ##" 2273 echo 2274 # The following way of writing the cache mishandles newlines in values, 2275( 2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2277 eval ac_val=\$$ac_var 2278 case $ac_val in #( 2279 *${as_nl}*) 2280 case $ac_var in #( 2281 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2282printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2283 esac 2284 case $ac_var in #( 2285 _ | IFS | as_nl) ;; #( 2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2287 *) { eval $ac_var=; unset $ac_var;} ;; 2288 esac ;; 2289 esac 2290 done 2291 (set) 2>&1 | 2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2293 *${as_nl}ac_space=\ *) 2294 sed -n \ 2295 "s/'\''/'\''\\\\'\'''\''/g; 2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2297 ;; #( 2298 *) 2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2300 ;; 2301 esac | 2302 sort 2303) 2304 echo 2305 2306 printf "%s\n" "## ----------------- ## 2307## Output variables. ## 2308## ----------------- ##" 2309 echo 2310 for ac_var in $ac_subst_vars 2311 do 2312 eval ac_val=\$$ac_var 2313 case $ac_val in 2314 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2315 esac 2316 printf "%s\n" "$ac_var='\''$ac_val'\''" 2317 done | sort 2318 echo 2319 2320 if test -n "$ac_subst_files"; then 2321 printf "%s\n" "## ------------------- ## 2322## File substitutions. ## 2323## ------------------- ##" 2324 echo 2325 for ac_var in $ac_subst_files 2326 do 2327 eval ac_val=\$$ac_var 2328 case $ac_val in 2329 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2330 esac 2331 printf "%s\n" "$ac_var='\''$ac_val'\''" 2332 done | sort 2333 echo 2334 fi 2335 2336 if test -s confdefs.h; then 2337 printf "%s\n" "## ----------- ## 2338## confdefs.h. ## 2339## ----------- ##" 2340 echo 2341 cat confdefs.h 2342 echo 2343 fi 2344 test "$ac_signal" != 0 && 2345 printf "%s\n" "$as_me: caught signal $ac_signal" 2346 printf "%s\n" "$as_me: exit $exit_status" 2347 } >&5 2348 rm -f core *.core core.conftest.* && 2349 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2350 exit $exit_status 2351' 0 2352for ac_signal in 1 2 13 15; do 2353 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2354done 2355ac_signal=0 2356 2357# confdefs.h avoids OS command line length limits that DEFS can exceed. 2358rm -f -r conftest* confdefs.h 2359 2360printf "%s\n" "/* confdefs.h */" > confdefs.h 2361 2362# Predefined preprocessor variables. 2363 2364printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2365 2366printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2367 2368printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2369 2370printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2371 2372printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2373 2374printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2375 2376 2377# Let the site file select an alternate cache file if it wants to. 2378# Prefer an explicitly selected file to automatically selected ones. 2379if test -n "$CONFIG_SITE"; then 2380 ac_site_files="$CONFIG_SITE" 2381elif test "x$prefix" != xNONE; then 2382 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2383else 2384 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2385fi 2386 2387for ac_site_file in $ac_site_files 2388do 2389 case $ac_site_file in #( 2390 */*) : 2391 ;; #( 2392 *) : 2393 ac_site_file=./$ac_site_file ;; 2394esac 2395 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2397printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2398 sed 's/^/| /' "$ac_site_file" >&5 2399 . "$ac_site_file" \ 2400 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2401printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2402as_fn_error $? "failed to load site script $ac_site_file 2403See \`config.log' for more details" "$LINENO" 5; } 2404 fi 2405done 2406 2407if test -r "$cache_file"; then 2408 # Some versions of bash will fail to source /dev/null (special files 2409 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2410 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2412printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2413 case $cache_file in 2414 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2415 *) . "./$cache_file";; 2416 esac 2417 fi 2418else 2419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2420printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2421 >$cache_file 2422fi 2423 2424# Test code for whether the C compiler supports C89 (global declarations) 2425ac_c_conftest_c89_globals=' 2426/* Does the compiler advertise C89 conformance? 2427 Do not test the value of __STDC__, because some compilers set it to 0 2428 while being otherwise adequately conformant. */ 2429#if !defined __STDC__ 2430# error "Compiler does not advertise C89 conformance" 2431#endif 2432 2433#include <stddef.h> 2434#include <stdarg.h> 2435struct stat; 2436/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2437struct buf { int x; }; 2438struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2439static char *e (p, i) 2440 char **p; 2441 int i; 2442{ 2443 return p[i]; 2444} 2445static char *f (char * (*g) (char **, int), char **p, ...) 2446{ 2447 char *s; 2448 va_list v; 2449 va_start (v,p); 2450 s = g (p, va_arg (v,int)); 2451 va_end (v); 2452 return s; 2453} 2454 2455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2456 function prototypes and stuff, but not \xHH hex character constants. 2457 These do not provoke an error unfortunately, instead are silently treated 2458 as an "x". The following induces an error, until -std is added to get 2459 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2460 array size at least. It is necessary to write \x00 == 0 to get something 2461 that is true only with -std. */ 2462int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2463 2464/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2465 inside strings and character constants. */ 2466#define FOO(x) '\''x'\'' 2467int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2468 2469int test (int i, double x); 2470struct s1 {int (*f) (int a);}; 2471struct s2 {int (*f) (double a);}; 2472int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2473 int, int);' 2474 2475# Test code for whether the C compiler supports C89 (body of main). 2476ac_c_conftest_c89_main=' 2477ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2478' 2479 2480# Test code for whether the C compiler supports C99 (global declarations) 2481ac_c_conftest_c99_globals=' 2482// Does the compiler advertise C99 conformance? 2483#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2484# error "Compiler does not advertise C99 conformance" 2485#endif 2486 2487#include <stdbool.h> 2488extern int puts (const char *); 2489extern int printf (const char *, ...); 2490extern int dprintf (int, const char *, ...); 2491extern void *malloc (size_t); 2492 2493// Check varargs macros. These examples are taken from C99 6.10.3.5. 2494// dprintf is used instead of fprintf to avoid needing to declare 2495// FILE and stderr. 2496#define debug(...) dprintf (2, __VA_ARGS__) 2497#define showlist(...) puts (#__VA_ARGS__) 2498#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2499static void 2500test_varargs_macros (void) 2501{ 2502 int x = 1234; 2503 int y = 5678; 2504 debug ("Flag"); 2505 debug ("X = %d\n", x); 2506 showlist (The first, second, and third items.); 2507 report (x>y, "x is %d but y is %d", x, y); 2508} 2509 2510// Check long long types. 2511#define BIG64 18446744073709551615ull 2512#define BIG32 4294967295ul 2513#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2514#if !BIG_OK 2515 #error "your preprocessor is broken" 2516#endif 2517#if BIG_OK 2518#else 2519 #error "your preprocessor is broken" 2520#endif 2521static long long int bignum = -9223372036854775807LL; 2522static unsigned long long int ubignum = BIG64; 2523 2524struct incomplete_array 2525{ 2526 int datasize; 2527 double data[]; 2528}; 2529 2530struct named_init { 2531 int number; 2532 const wchar_t *name; 2533 double average; 2534}; 2535 2536typedef const char *ccp; 2537 2538static inline int 2539test_restrict (ccp restrict text) 2540{ 2541 // See if C++-style comments work. 2542 // Iterate through items via the restricted pointer. 2543 // Also check for declarations in for loops. 2544 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2545 continue; 2546 return 0; 2547} 2548 2549// Check varargs and va_copy. 2550static bool 2551test_varargs (const char *format, ...) 2552{ 2553 va_list args; 2554 va_start (args, format); 2555 va_list args_copy; 2556 va_copy (args_copy, args); 2557 2558 const char *str = ""; 2559 int number = 0; 2560 float fnumber = 0; 2561 2562 while (*format) 2563 { 2564 switch (*format++) 2565 { 2566 case '\''s'\'': // string 2567 str = va_arg (args_copy, const char *); 2568 break; 2569 case '\''d'\'': // int 2570 number = va_arg (args_copy, int); 2571 break; 2572 case '\''f'\'': // float 2573 fnumber = va_arg (args_copy, double); 2574 break; 2575 default: 2576 break; 2577 } 2578 } 2579 va_end (args_copy); 2580 va_end (args); 2581 2582 return *str && number && fnumber; 2583} 2584' 2585 2586# Test code for whether the C compiler supports C99 (body of main). 2587ac_c_conftest_c99_main=' 2588 // Check bool. 2589 _Bool success = false; 2590 success |= (argc != 0); 2591 2592 // Check restrict. 2593 if (test_restrict ("String literal") == 0) 2594 success = true; 2595 char *restrict newvar = "Another string"; 2596 2597 // Check varargs. 2598 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2599 test_varargs_macros (); 2600 2601 // Check flexible array members. 2602 struct incomplete_array *ia = 2603 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2604 ia->datasize = 10; 2605 for (int i = 0; i < ia->datasize; ++i) 2606 ia->data[i] = i * 1.234; 2607 2608 // Check named initializers. 2609 struct named_init ni = { 2610 .number = 34, 2611 .name = L"Test wide string", 2612 .average = 543.34343, 2613 }; 2614 2615 ni.number = 58; 2616 2617 int dynamic_array[ni.number]; 2618 dynamic_array[0] = argv[0][0]; 2619 dynamic_array[ni.number - 1] = 543; 2620 2621 // work around unused variable warnings 2622 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2623 || dynamic_array[ni.number - 1] != 543); 2624' 2625 2626# Test code for whether the C compiler supports C11 (global declarations) 2627ac_c_conftest_c11_globals=' 2628// Does the compiler advertise C11 conformance? 2629#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2630# error "Compiler does not advertise C11 conformance" 2631#endif 2632 2633// Check _Alignas. 2634char _Alignas (double) aligned_as_double; 2635char _Alignas (0) no_special_alignment; 2636extern char aligned_as_int; 2637char _Alignas (0) _Alignas (int) aligned_as_int; 2638 2639// Check _Alignof. 2640enum 2641{ 2642 int_alignment = _Alignof (int), 2643 int_array_alignment = _Alignof (int[100]), 2644 char_alignment = _Alignof (char) 2645}; 2646_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2647 2648// Check _Noreturn. 2649int _Noreturn does_not_return (void) { for (;;) continue; } 2650 2651// Check _Static_assert. 2652struct test_static_assert 2653{ 2654 int x; 2655 _Static_assert (sizeof (int) <= sizeof (long int), 2656 "_Static_assert does not work in struct"); 2657 long int y; 2658}; 2659 2660// Check UTF-8 literals. 2661#define u8 syntax error! 2662char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2663 2664// Check duplicate typedefs. 2665typedef long *long_ptr; 2666typedef long int *long_ptr; 2667typedef long_ptr long_ptr; 2668 2669// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2670struct anonymous 2671{ 2672 union { 2673 struct { int i; int j; }; 2674 struct { int k; long int l; } w; 2675 }; 2676 int m; 2677} v1; 2678' 2679 2680# Test code for whether the C compiler supports C11 (body of main). 2681ac_c_conftest_c11_main=' 2682 _Static_assert ((offsetof (struct anonymous, i) 2683 == offsetof (struct anonymous, w.k)), 2684 "Anonymous union alignment botch"); 2685 v1.i = 2; 2686 v1.w.k = 5; 2687 ok |= v1.i != 5; 2688' 2689 2690# Test code for whether the C compiler supports C11 (complete). 2691ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2692${ac_c_conftest_c99_globals} 2693${ac_c_conftest_c11_globals} 2694 2695int 2696main (int argc, char **argv) 2697{ 2698 int ok = 0; 2699 ${ac_c_conftest_c89_main} 2700 ${ac_c_conftest_c99_main} 2701 ${ac_c_conftest_c11_main} 2702 return ok; 2703} 2704" 2705 2706# Test code for whether the C compiler supports C99 (complete). 2707ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2708${ac_c_conftest_c99_globals} 2709 2710int 2711main (int argc, char **argv) 2712{ 2713 int ok = 0; 2714 ${ac_c_conftest_c89_main} 2715 ${ac_c_conftest_c99_main} 2716 return ok; 2717} 2718" 2719 2720# Test code for whether the C compiler supports C89 (complete). 2721ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2722 2723int 2724main (int argc, char **argv) 2725{ 2726 int ok = 0; 2727 ${ac_c_conftest_c89_main} 2728 return ok; 2729} 2730" 2731 2732# Test code for whether the C++ compiler supports C++98 (global declarations) 2733ac_cxx_conftest_cxx98_globals=' 2734// Does the compiler advertise C++98 conformance? 2735#if !defined __cplusplus || __cplusplus < 199711L 2736# error "Compiler does not advertise C++98 conformance" 2737#endif 2738 2739// These inclusions are to reject old compilers that 2740// lack the unsuffixed header files. 2741#include <cstdlib> 2742#include <exception> 2743 2744// <cassert> and <cstring> are *not* freestanding headers in C++98. 2745extern void assert (int); 2746namespace std { 2747 extern int strcmp (const char *, const char *); 2748} 2749 2750// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2751using std::exception; 2752using std::strcmp; 2753 2754namespace { 2755 2756void test_exception_syntax() 2757{ 2758 try { 2759 throw "test"; 2760 } catch (const char *s) { 2761 // Extra parentheses suppress a warning when building autoconf itself, 2762 // due to lint rules shared with more typical C programs. 2763 assert (!(strcmp) (s, "test")); 2764 } 2765} 2766 2767template <typename T> struct test_template 2768{ 2769 T const val; 2770 explicit test_template(T t) : val(t) {} 2771 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2772}; 2773 2774} // anonymous namespace 2775' 2776 2777# Test code for whether the C++ compiler supports C++98 (body of main) 2778ac_cxx_conftest_cxx98_main=' 2779 assert (argc); 2780 assert (! argv[0]); 2781{ 2782 test_exception_syntax (); 2783 test_template<double> tt (2.0); 2784 assert (tt.add (4) == 6.0); 2785 assert (true && !false); 2786} 2787' 2788 2789# Test code for whether the C++ compiler supports C++11 (global declarations) 2790ac_cxx_conftest_cxx11_globals=' 2791// Does the compiler advertise C++ 2011 conformance? 2792#if !defined __cplusplus || __cplusplus < 201103L 2793# error "Compiler does not advertise C++11 conformance" 2794#endif 2795 2796namespace cxx11test 2797{ 2798 constexpr int get_val() { return 20; } 2799 2800 struct testinit 2801 { 2802 int i; 2803 double d; 2804 }; 2805 2806 class delegate 2807 { 2808 public: 2809 delegate(int n) : n(n) {} 2810 delegate(): delegate(2354) {} 2811 2812 virtual int getval() { return this->n; }; 2813 protected: 2814 int n; 2815 }; 2816 2817 class overridden : public delegate 2818 { 2819 public: 2820 overridden(int n): delegate(n) {} 2821 virtual int getval() override final { return this->n * 2; } 2822 }; 2823 2824 class nocopy 2825 { 2826 public: 2827 nocopy(int i): i(i) {} 2828 nocopy() = default; 2829 nocopy(const nocopy&) = delete; 2830 nocopy & operator=(const nocopy&) = delete; 2831 private: 2832 int i; 2833 }; 2834 2835 // for testing lambda expressions 2836 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2837 { 2838 return f(v); 2839 } 2840 2841 // for testing variadic templates and trailing return types 2842 template <typename V> auto sum(V first) -> V 2843 { 2844 return first; 2845 } 2846 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2847 { 2848 return first + sum(rest...); 2849 } 2850} 2851' 2852 2853# Test code for whether the C++ compiler supports C++11 (body of main) 2854ac_cxx_conftest_cxx11_main=' 2855{ 2856 // Test auto and decltype 2857 auto a1 = 6538; 2858 auto a2 = 48573953.4; 2859 auto a3 = "String literal"; 2860 2861 int total = 0; 2862 for (auto i = a3; *i; ++i) { total += *i; } 2863 2864 decltype(a2) a4 = 34895.034; 2865} 2866{ 2867 // Test constexpr 2868 short sa[cxx11test::get_val()] = { 0 }; 2869} 2870{ 2871 // Test initializer lists 2872 cxx11test::testinit il = { 4323, 435234.23544 }; 2873} 2874{ 2875 // Test range-based for 2876 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2877 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2878 for (auto &x : array) { x += 23; } 2879} 2880{ 2881 // Test lambda expressions 2882 using cxx11test::eval; 2883 assert (eval ([](int x) { return x*2; }, 21) == 42); 2884 double d = 2.0; 2885 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2886 assert (d == 5.0); 2887 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2888 assert (d == 5.0); 2889} 2890{ 2891 // Test use of variadic templates 2892 using cxx11test::sum; 2893 auto a = sum(1); 2894 auto b = sum(1, 2); 2895 auto c = sum(1.0, 2.0, 3.0); 2896} 2897{ 2898 // Test constructor delegation 2899 cxx11test::delegate d1; 2900 cxx11test::delegate d2(); 2901 cxx11test::delegate d3(45); 2902} 2903{ 2904 // Test override and final 2905 cxx11test::overridden o1(55464); 2906} 2907{ 2908 // Test nullptr 2909 char *c = nullptr; 2910} 2911{ 2912 // Test template brackets 2913 test_template<::test_template<int>> v(test_template<int>(12)); 2914} 2915{ 2916 // Unicode literals 2917 char const *utf8 = u8"UTF-8 string \u2500"; 2918 char16_t const *utf16 = u"UTF-8 string \u2500"; 2919 char32_t const *utf32 = U"UTF-32 string \u2500"; 2920} 2921' 2922 2923# Test code for whether the C compiler supports C++11 (complete). 2924ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2925${ac_cxx_conftest_cxx11_globals} 2926 2927int 2928main (int argc, char **argv) 2929{ 2930 int ok = 0; 2931 ${ac_cxx_conftest_cxx98_main} 2932 ${ac_cxx_conftest_cxx11_main} 2933 return ok; 2934} 2935" 2936 2937# Test code for whether the C compiler supports C++98 (complete). 2938ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2939int 2940main (int argc, char **argv) 2941{ 2942 int ok = 0; 2943 ${ac_cxx_conftest_cxx98_main} 2944 return ok; 2945} 2946" 2947 2948as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2949as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2950as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2951as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2952as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2953as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2954as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2955as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2956as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2957 2958# Auxiliary files required by this configure script. 2959ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2960 2961# Locations in which to look for auxiliary files. 2962ac_aux_dir_candidates="${srcdir}/." 2963 2964# Search for a directory containing all of the required auxiliary files, 2965# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2966# If we don't find one directory that contains all the files we need, 2967# we report the set of missing files from the *first* directory in 2968# $ac_aux_dir_candidates and give up. 2969ac_missing_aux_files="" 2970ac_first_candidate=: 2971printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973as_found=false 2974for as_dir in $ac_aux_dir_candidates 2975do 2976 IFS=$as_save_IFS 2977 case $as_dir in #((( 2978 '') as_dir=./ ;; 2979 */) ;; 2980 *) as_dir=$as_dir/ ;; 2981 esac 2982 as_found=: 2983 2984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2985 ac_aux_dir_found=yes 2986 ac_install_sh= 2987 for ac_aux in $ac_aux_files 2988 do 2989 # As a special case, if "install-sh" is required, that requirement 2990 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2991 # and $ac_install_sh is set appropriately for whichever one is found. 2992 if test x"$ac_aux" = x"install-sh" 2993 then 2994 if test -f "${as_dir}install-sh"; then 2995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2996 ac_install_sh="${as_dir}install-sh -c" 2997 elif test -f "${as_dir}install.sh"; then 2998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2999 ac_install_sh="${as_dir}install.sh -c" 3000 elif test -f "${as_dir}shtool"; then 3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3002 ac_install_sh="${as_dir}shtool install -c" 3003 else 3004 ac_aux_dir_found=no 3005 if $ac_first_candidate; then 3006 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3007 else 3008 break 3009 fi 3010 fi 3011 else 3012 if test -f "${as_dir}${ac_aux}"; then 3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3014 else 3015 ac_aux_dir_found=no 3016 if $ac_first_candidate; then 3017 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3018 else 3019 break 3020 fi 3021 fi 3022 fi 3023 done 3024 if test "$ac_aux_dir_found" = yes; then 3025 ac_aux_dir="$as_dir" 3026 break 3027 fi 3028 ac_first_candidate=false 3029 3030 as_found=false 3031done 3032IFS=$as_save_IFS 3033if $as_found 3034then : 3035 3036else $as_nop 3037 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3038fi 3039 3040 3041# These three variables are undocumented and unsupported, 3042# and are intended to be withdrawn in a future Autoconf release. 3043# They can cause serious problems if a builder's source tree is in a directory 3044# whose full name contains unusual characters. 3045if test -f "${ac_aux_dir}config.guess"; then 3046 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3047fi 3048if test -f "${ac_aux_dir}config.sub"; then 3049 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3050fi 3051if test -f "$ac_aux_dir/configure"; then 3052 ac_configure="$SHELL ${ac_aux_dir}configure" 3053fi 3054 3055# Check that the precious variables saved in the cache have kept the same 3056# value. 3057ac_cache_corrupted=false 3058for ac_var in $ac_precious_vars; do 3059 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3060 eval ac_new_set=\$ac_env_${ac_var}_set 3061 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3062 eval ac_new_val=\$ac_env_${ac_var}_value 3063 case $ac_old_set,$ac_new_set in 3064 set,) 3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3066printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3067 ac_cache_corrupted=: ;; 3068 ,set) 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3070printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3071 ac_cache_corrupted=: ;; 3072 ,);; 3073 *) 3074 if test "x$ac_old_val" != "x$ac_new_val"; then 3075 # differences in whitespace do not lead to failure. 3076 ac_old_val_w=`echo x $ac_old_val` 3077 ac_new_val_w=`echo x $ac_new_val` 3078 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3080printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3081 ac_cache_corrupted=: 3082 else 3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3084printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3085 eval $ac_var=\$ac_old_val 3086 fi 3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3088printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3090printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3091 fi;; 3092 esac 3093 # Pass precious variables to config.status. 3094 if test "$ac_new_set" = set; then 3095 case $ac_new_val in 3096 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3097 *) ac_arg=$ac_var=$ac_new_val ;; 3098 esac 3099 case " $ac_configure_args " in 3100 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3101 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3102 esac 3103 fi 3104done 3105if $ac_cache_corrupted; then 3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3107printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3109printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3110 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3111 and start over" "$LINENO" 5 3112fi 3113## -------------------- ## 3114## Main body of script. ## 3115## -------------------- ## 3116 3117ac_ext=c 3118ac_cpp='$CPP $CPPFLAGS' 3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3121ac_compiler_gnu=$ac_cv_c_compiler_gnu 3122 3123 3124 3125 3126am__api_version='1.16' 3127 3128 3129 3130 # Find a good install program. We prefer a C program (faster), 3131# so one script is as good as another. But avoid the broken or 3132# incompatible versions: 3133# SysV /etc/install, /usr/sbin/install 3134# SunOS /usr/etc/install 3135# IRIX /sbin/install 3136# AIX /bin/install 3137# AmigaOS /C/install, which installs bootblocks on floppy discs 3138# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3139# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3140# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3141# OS/2's system install, which has a completely different semantic 3142# ./install, which can be erroneously created by make from ./install.sh. 3143# Reject install programs that cannot install multiple files. 3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3145printf %s "checking for a BSD-compatible install... " >&6; } 3146if test -z "$INSTALL"; then 3147if test ${ac_cv_path_install+y} 3148then : 3149 printf %s "(cached) " >&6 3150else $as_nop 3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152for as_dir in $PATH 3153do 3154 IFS=$as_save_IFS 3155 case $as_dir in #((( 3156 '') as_dir=./ ;; 3157 */) ;; 3158 *) as_dir=$as_dir/ ;; 3159 esac 3160 # Account for fact that we put trailing slashes in our PATH walk. 3161case $as_dir in #(( 3162 ./ | /[cC]/* | \ 3163 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3164 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3165 /usr/ucb/* ) ;; 3166 *) 3167 # OSF1 and SCO ODT 3.0 have their own names for install. 3168 # Don't use installbsd from OSF since it installs stuff as root 3169 # by default. 3170 for ac_prog in ginstall scoinst install; do 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3173 if test $ac_prog = install && 3174 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3175 # AIX install. It has an incompatible calling convention. 3176 : 3177 elif test $ac_prog = install && 3178 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3179 # program-specific install script used by HP pwplus--don't use. 3180 : 3181 else 3182 rm -rf conftest.one conftest.two conftest.dir 3183 echo one > conftest.one 3184 echo two > conftest.two 3185 mkdir conftest.dir 3186 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3187 test -s conftest.one && test -s conftest.two && 3188 test -s conftest.dir/conftest.one && 3189 test -s conftest.dir/conftest.two 3190 then 3191 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3192 break 3 3193 fi 3194 fi 3195 fi 3196 done 3197 done 3198 ;; 3199esac 3200 3201 done 3202IFS=$as_save_IFS 3203 3204rm -rf conftest.one conftest.two conftest.dir 3205 3206fi 3207 if test ${ac_cv_path_install+y}; then 3208 INSTALL=$ac_cv_path_install 3209 else 3210 # As a last resort, use the slow shell script. Don't cache a 3211 # value for INSTALL within a source directory, because that will 3212 # break other packages using the cache if that directory is 3213 # removed, or if the value is a relative name. 3214 INSTALL=$ac_install_sh 3215 fi 3216fi 3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3218printf "%s\n" "$INSTALL" >&6; } 3219 3220# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3221# It thinks the first close brace ends the variable substitution. 3222test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3223 3224test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3225 3226test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3227 3228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3229printf %s "checking whether build environment is sane... " >&6; } 3230# Reject unsafe characters in $srcdir or the absolute working directory 3231# name. Accept space and tab only in the latter. 3232am_lf=' 3233' 3234case `pwd` in 3235 *[\\\"\#\$\&\'\`$am_lf]*) 3236 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3237esac 3238case $srcdir in 3239 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3240 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3241esac 3242 3243# Do 'set' in a subshell so we don't clobber the current shell's 3244# arguments. Must try -L first in case configure is actually a 3245# symlink; some systems play weird games with the mod time of symlinks 3246# (eg FreeBSD returns the mod time of the symlink's containing 3247# directory). 3248if ( 3249 am_has_slept=no 3250 for am_try in 1 2; do 3251 echo "timestamp, slept: $am_has_slept" > conftest.file 3252 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3253 if test "$*" = "X"; then 3254 # -L didn't work. 3255 set X `ls -t "$srcdir/configure" conftest.file` 3256 fi 3257 if test "$*" != "X $srcdir/configure conftest.file" \ 3258 && test "$*" != "X conftest.file $srcdir/configure"; then 3259 3260 # If neither matched, then we have a broken ls. This can happen 3261 # if, for instance, CONFIG_SHELL is bash and it inherits a 3262 # broken ls alias from the environment. This has actually 3263 # happened. Such a system could not be considered "sane". 3264 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3265 alias in your environment" "$LINENO" 5 3266 fi 3267 if test "$2" = conftest.file || test $am_try -eq 2; then 3268 break 3269 fi 3270 # Just in case. 3271 sleep 1 3272 am_has_slept=yes 3273 done 3274 test "$2" = conftest.file 3275 ) 3276then 3277 # Ok. 3278 : 3279else 3280 as_fn_error $? "newly created file is older than distributed files! 3281Check your system clock" "$LINENO" 5 3282fi 3283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3284printf "%s\n" "yes" >&6; } 3285# If we didn't sleep, we still need to ensure time stamps of config.status and 3286# generated files are strictly newer. 3287am_sleep_pid= 3288if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3289 ( sleep 1 ) & 3290 am_sleep_pid=$! 3291fi 3292 3293rm -f conftest.file 3294 3295test "$program_prefix" != NONE && 3296 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3297# Use a double $ so make ignores it. 3298test "$program_suffix" != NONE && 3299 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3300# Double any \ or $. 3301# By default was `s,x,x', remove it if useless. 3302ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3303program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3304 3305 3306# Expand $ac_aux_dir to an absolute path. 3307am_aux_dir=`cd "$ac_aux_dir" && pwd` 3308 3309 3310 if test x"${MISSING+set}" != xset; then 3311 MISSING="\${SHELL} '$am_aux_dir/missing'" 3312fi 3313# Use eval to expand $SHELL 3314if eval "$MISSING --is-lightweight"; then 3315 am_missing_run="$MISSING " 3316else 3317 am_missing_run= 3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3319printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3320fi 3321 3322if test x"${install_sh+set}" != xset; then 3323 case $am_aux_dir in 3324 *\ * | *\ *) 3325 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3326 *) 3327 install_sh="\${SHELL} $am_aux_dir/install-sh" 3328 esac 3329fi 3330 3331# Installed binaries are usually stripped using 'strip' when the user 3332# run "make install-strip". However 'strip' might not be the right 3333# tool to use in cross-compilation environments, therefore Automake 3334# will honor the 'STRIP' environment variable to overrule this program. 3335if test "$cross_compiling" != no; then 3336 if test -n "$ac_tool_prefix"; then 3337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3338set dummy ${ac_tool_prefix}strip; ac_word=$2 3339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340printf %s "checking for $ac_word... " >&6; } 3341if test ${ac_cv_prog_STRIP+y} 3342then : 3343 printf %s "(cached) " >&6 3344else $as_nop 3345 if test -n "$STRIP"; then 3346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3347else 3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3349for as_dir in $PATH 3350do 3351 IFS=$as_save_IFS 3352 case $as_dir in #((( 3353 '') as_dir=./ ;; 3354 */) ;; 3355 *) as_dir=$as_dir/ ;; 3356 esac 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367fi 3368fi 3369STRIP=$ac_cv_prog_STRIP 3370if test -n "$STRIP"; then 3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3372printf "%s\n" "$STRIP" >&6; } 3373else 3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375printf "%s\n" "no" >&6; } 3376fi 3377 3378 3379fi 3380if test -z "$ac_cv_prog_STRIP"; then 3381 ac_ct_STRIP=$STRIP 3382 # Extract the first word of "strip", so it can be a program name with args. 3383set dummy strip; ac_word=$2 3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3385printf %s "checking for $ac_word... " >&6; } 3386if test ${ac_cv_prog_ac_ct_STRIP+y} 3387then : 3388 printf %s "(cached) " >&6 3389else $as_nop 3390 if test -n "$ac_ct_STRIP"; then 3391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3392else 3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394for as_dir in $PATH 3395do 3396 IFS=$as_save_IFS 3397 case $as_dir in #((( 3398 '') as_dir=./ ;; 3399 */) ;; 3400 *) as_dir=$as_dir/ ;; 3401 esac 3402 for ac_exec_ext in '' $ac_executable_extensions; do 3403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3404 ac_cv_prog_ac_ct_STRIP="strip" 3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3406 break 2 3407 fi 3408done 3409 done 3410IFS=$as_save_IFS 3411 3412fi 3413fi 3414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3415if test -n "$ac_ct_STRIP"; then 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3417printf "%s\n" "$ac_ct_STRIP" >&6; } 3418else 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420printf "%s\n" "no" >&6; } 3421fi 3422 3423 if test "x$ac_ct_STRIP" = x; then 3424 STRIP=":" 3425 else 3426 case $cross_compiling:$ac_tool_warned in 3427yes:) 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3429printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3430ac_tool_warned=yes ;; 3431esac 3432 STRIP=$ac_ct_STRIP 3433 fi 3434else 3435 STRIP="$ac_cv_prog_STRIP" 3436fi 3437 3438fi 3439INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3440 3441 3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3443printf %s "checking for a race-free mkdir -p... " >&6; } 3444if test -z "$MKDIR_P"; then 3445 if test ${ac_cv_path_mkdir+y} 3446then : 3447 printf %s "(cached) " >&6 3448else $as_nop 3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3451do 3452 IFS=$as_save_IFS 3453 case $as_dir in #((( 3454 '') as_dir=./ ;; 3455 */) ;; 3456 *) as_dir=$as_dir/ ;; 3457 esac 3458 for ac_prog in mkdir gmkdir; do 3459 for ac_exec_ext in '' $ac_executable_extensions; do 3460 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3461 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3462 'mkdir ('*'coreutils) '* | \ 3463 'BusyBox '* | \ 3464 'mkdir (fileutils) '4.1*) 3465 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3466 break 3;; 3467 esac 3468 done 3469 done 3470 done 3471IFS=$as_save_IFS 3472 3473fi 3474 3475 test -d ./--version && rmdir ./--version 3476 if test ${ac_cv_path_mkdir+y}; then 3477 MKDIR_P="$ac_cv_path_mkdir -p" 3478 else 3479 # As a last resort, use the slow shell script. Don't cache a 3480 # value for MKDIR_P within a source directory, because that will 3481 # break other packages using the cache if that directory is 3482 # removed, or if the value is a relative name. 3483 MKDIR_P="$ac_install_sh -d" 3484 fi 3485fi 3486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3487printf "%s\n" "$MKDIR_P" >&6; } 3488 3489for ac_prog in gawk mawk nawk awk 3490do 3491 # Extract the first word of "$ac_prog", so it can be a program name with args. 3492set dummy $ac_prog; ac_word=$2 3493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3494printf %s "checking for $ac_word... " >&6; } 3495if test ${ac_cv_prog_AWK+y} 3496then : 3497 printf %s "(cached) " >&6 3498else $as_nop 3499 if test -n "$AWK"; then 3500 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3501else 3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3503for as_dir in $PATH 3504do 3505 IFS=$as_save_IFS 3506 case $as_dir in #((( 3507 '') as_dir=./ ;; 3508 */) ;; 3509 *) as_dir=$as_dir/ ;; 3510 esac 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3513 ac_cv_prog_AWK="$ac_prog" 3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3515 break 2 3516 fi 3517done 3518 done 3519IFS=$as_save_IFS 3520 3521fi 3522fi 3523AWK=$ac_cv_prog_AWK 3524if test -n "$AWK"; then 3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3526printf "%s\n" "$AWK" >&6; } 3527else 3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3529printf "%s\n" "no" >&6; } 3530fi 3531 3532 3533 test -n "$AWK" && break 3534done 3535 3536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3537printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3538set x ${MAKE-make} 3539ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3540if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3541then : 3542 printf %s "(cached) " >&6 3543else $as_nop 3544 cat >conftest.make <<\_ACEOF 3545SHELL = /bin/sh 3546all: 3547 @echo '@@@%%%=$(MAKE)=@@@%%%' 3548_ACEOF 3549# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3550case `${MAKE-make} -f conftest.make 2>/dev/null` in 3551 *@@@%%%=?*=@@@%%%*) 3552 eval ac_cv_prog_make_${ac_make}_set=yes;; 3553 *) 3554 eval ac_cv_prog_make_${ac_make}_set=no;; 3555esac 3556rm -f conftest.make 3557fi 3558if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3560printf "%s\n" "yes" >&6; } 3561 SET_MAKE= 3562else 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3564printf "%s\n" "no" >&6; } 3565 SET_MAKE="MAKE=${MAKE-make}" 3566fi 3567 3568rm -rf .tst 2>/dev/null 3569mkdir .tst 2>/dev/null 3570if test -d .tst; then 3571 am__leading_dot=. 3572else 3573 am__leading_dot=_ 3574fi 3575rmdir .tst 2>/dev/null 3576 3577# Check whether --enable-silent-rules was given. 3578if test ${enable_silent_rules+y} 3579then : 3580 enableval=$enable_silent_rules; 3581fi 3582 3583case $enable_silent_rules in # ((( 3584 yes) AM_DEFAULT_VERBOSITY=0;; 3585 no) AM_DEFAULT_VERBOSITY=1;; 3586 *) AM_DEFAULT_VERBOSITY=1;; 3587esac 3588am_make=${MAKE-make} 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3590printf %s "checking whether $am_make supports nested variables... " >&6; } 3591if test ${am_cv_make_support_nested_variables+y} 3592then : 3593 printf %s "(cached) " >&6 3594else $as_nop 3595 if printf "%s\n" 'TRUE=$(BAR$(V)) 3596BAR0=false 3597BAR1=true 3598V=1 3599am__doit: 3600 @$(TRUE) 3601.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3602 am_cv_make_support_nested_variables=yes 3603else 3604 am_cv_make_support_nested_variables=no 3605fi 3606fi 3607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3608printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3609if test $am_cv_make_support_nested_variables = yes; then 3610 AM_V='$(V)' 3611 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3612else 3613 AM_V=$AM_DEFAULT_VERBOSITY 3614 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3615fi 3616AM_BACKSLASH='\' 3617 3618if test "`cd $srcdir && pwd`" != "`pwd`"; then 3619 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3620 # is not polluted with repeated "-I." 3621 am__isrc=' -I$(srcdir)' 3622 # test to see if srcdir already configured 3623 if test -f $srcdir/config.status; then 3624 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3625 fi 3626fi 3627 3628# test whether we have cygpath 3629if test -z "$CYGPATH_W"; then 3630 if (cygpath --version) >/dev/null 2>/dev/null; then 3631 CYGPATH_W='cygpath -w' 3632 else 3633 CYGPATH_W=echo 3634 fi 3635fi 3636 3637 3638# Define the identity of the package. 3639 PACKAGE='jansson' 3640 VERSION='2.14' 3641 3642 3643printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3644 3645 3646printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3647 3648# Some tools Automake needs. 3649 3650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3651 3652 3653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3654 3655 3656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3657 3658 3659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3660 3661 3662MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3663 3664# For better backward compatibility. To be removed once Automake 1.9.x 3665# dies out for good. For more background, see: 3666# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3667# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3668mkdir_p='$(MKDIR_P)' 3669 3670# We need awk for the "check" target (and possibly the TAP driver). The 3671# system "awk" is bad on some platforms. 3672# Always define AMTAR for backward compatibility. Yes, it's still used 3673# in the wild :-( We should find a proper way to deprecate it ... 3674AMTAR='$${TAR-tar}' 3675 3676 3677# We'll loop over all known methods to create a tar archive until one works. 3678_am_tools='gnutar pax cpio none' 3679 3680am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3681 3682 3683 3684 3685 3686# Variables for tags utilities; see am/tags.am 3687if test -z "$CTAGS"; then 3688 CTAGS=ctags 3689fi 3690 3691if test -z "$ETAGS"; then 3692 ETAGS=etags 3693fi 3694 3695if test -z "$CSCOPE"; then 3696 CSCOPE=cscope 3697fi 3698 3699 3700 3701# POSIX will say in a future version that running "rm -f" with no argument 3702# is OK; and we want to be able to make that assumption in our Makefile 3703# recipes. So use an aggressive probe to check that the usage we want is 3704# actually supported "in the wild" to an acceptable degree. 3705# See automake bug#10828. 3706# To make any issue more visible, cause the running configure to be aborted 3707# by default if the 'rm' program in use doesn't match our expectations; the 3708# user can still override this though. 3709if rm -f && rm -fr && rm -rf; then : OK; else 3710 cat >&2 <<'END' 3711Oops! 3712 3713Your 'rm' program seems unable to run without file operands specified 3714on the command line, even when the '-f' option is present. This is contrary 3715to the behaviour of most rm programs out there, and not conforming with 3716the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3717 3718Please tell bug-automake@gnu.org about your system, including the value 3719of your $PATH and any error possibly output before this message. This 3720can help us improve future automake versions. 3721 3722END 3723 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3724 echo 'Configuration will proceed anyway, since you have set the' >&2 3725 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3726 echo >&2 3727 else 3728 cat >&2 <<'END' 3729Aborting the configuration process, to ensure you take notice of the issue. 3730 3731You can download and install GNU coreutils to get an 'rm' implementation 3732that behaves properly: <https://www.gnu.org/software/coreutils/>. 3733 3734If you want to complete the configuration process using your problematic 3735'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3736to "yes", and re-run configure. 3737 3738END 3739 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3740 fi 3741fi 3742 3743 3744 3745ac_config_headers="$ac_config_headers jansson_private_config.h" 3746 3747 3748# Checks for programs. 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758ac_ext=c 3759ac_cpp='$CPP $CPPFLAGS' 3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3762ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763if test -n "$ac_tool_prefix"; then 3764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3765set dummy ${ac_tool_prefix}gcc; ac_word=$2 3766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3767printf %s "checking for $ac_word... " >&6; } 3768if test ${ac_cv_prog_CC+y} 3769then : 3770 printf %s "(cached) " >&6 3771else $as_nop 3772 if test -n "$CC"; then 3773 ac_cv_prog_CC="$CC" # Let the user override the test. 3774else 3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3776for as_dir in $PATH 3777do 3778 IFS=$as_save_IFS 3779 case $as_dir in #((( 3780 '') as_dir=./ ;; 3781 */) ;; 3782 *) as_dir=$as_dir/ ;; 3783 esac 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3786 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791 done 3792IFS=$as_save_IFS 3793 3794fi 3795fi 3796CC=$ac_cv_prog_CC 3797if test -n "$CC"; then 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3799printf "%s\n" "$CC" >&6; } 3800else 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3802printf "%s\n" "no" >&6; } 3803fi 3804 3805 3806fi 3807if test -z "$ac_cv_prog_CC"; then 3808 ac_ct_CC=$CC 3809 # Extract the first word of "gcc", so it can be a program name with args. 3810set dummy gcc; ac_word=$2 3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3812printf %s "checking for $ac_word... " >&6; } 3813if test ${ac_cv_prog_ac_ct_CC+y} 3814then : 3815 printf %s "(cached) " >&6 3816else $as_nop 3817 if test -n "$ac_ct_CC"; then 3818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3819else 3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH 3822do 3823 IFS=$as_save_IFS 3824 case $as_dir in #((( 3825 '') as_dir=./ ;; 3826 */) ;; 3827 *) as_dir=$as_dir/ ;; 3828 esac 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_ac_ct_CC="gcc" 3832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841ac_ct_CC=$ac_cv_prog_ac_ct_CC 3842if test -n "$ac_ct_CC"; then 3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3844printf "%s\n" "$ac_ct_CC" >&6; } 3845else 3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847printf "%s\n" "no" >&6; } 3848fi 3849 3850 if test "x$ac_ct_CC" = x; then 3851 CC="" 3852 else 3853 case $cross_compiling:$ac_tool_warned in 3854yes:) 3855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3857ac_tool_warned=yes ;; 3858esac 3859 CC=$ac_ct_CC 3860 fi 3861else 3862 CC="$ac_cv_prog_CC" 3863fi 3864 3865if test -z "$CC"; then 3866 if test -n "$ac_tool_prefix"; then 3867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3868set dummy ${ac_tool_prefix}cc; ac_word=$2 3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870printf %s "checking for $ac_word... " >&6; } 3871if test ${ac_cv_prog_CC+y} 3872then : 3873 printf %s "(cached) " >&6 3874else $as_nop 3875 if test -n "$CC"; then 3876 ac_cv_prog_CC="$CC" # Let the user override the test. 3877else 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH 3880do 3881 IFS=$as_save_IFS 3882 case $as_dir in #((( 3883 '') as_dir=./ ;; 3884 */) ;; 3885 *) as_dir=$as_dir/ ;; 3886 esac 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3889 ac_cv_prog_CC="${ac_tool_prefix}cc" 3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3891 break 2 3892 fi 3893done 3894 done 3895IFS=$as_save_IFS 3896 3897fi 3898fi 3899CC=$ac_cv_prog_CC 3900if test -n "$CC"; then 3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3902printf "%s\n" "$CC" >&6; } 3903else 3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3905printf "%s\n" "no" >&6; } 3906fi 3907 3908 3909 fi 3910fi 3911if test -z "$CC"; then 3912 # Extract the first word of "cc", so it can be a program name with args. 3913set dummy cc; ac_word=$2 3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3915printf %s "checking for $ac_word... " >&6; } 3916if test ${ac_cv_prog_CC+y} 3917then : 3918 printf %s "(cached) " >&6 3919else $as_nop 3920 if test -n "$CC"; then 3921 ac_cv_prog_CC="$CC" # Let the user override the test. 3922else 3923 ac_prog_rejected=no 3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3925for as_dir in $PATH 3926do 3927 IFS=$as_save_IFS 3928 case $as_dir in #((( 3929 '') as_dir=./ ;; 3930 */) ;; 3931 *) as_dir=$as_dir/ ;; 3932 esac 3933 for ac_exec_ext in '' $ac_executable_extensions; do 3934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3935 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3936 ac_prog_rejected=yes 3937 continue 3938 fi 3939 ac_cv_prog_CC="cc" 3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3941 break 2 3942 fi 3943done 3944 done 3945IFS=$as_save_IFS 3946 3947if test $ac_prog_rejected = yes; then 3948 # We found a bogon in the path, so make sure we never use it. 3949 set dummy $ac_cv_prog_CC 3950 shift 3951 if test $# != 0; then 3952 # We chose a different compiler from the bogus one. 3953 # However, it has the same basename, so the bogon will be chosen 3954 # first if we set CC to just the basename; use the full file name. 3955 shift 3956 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3957 fi 3958fi 3959fi 3960fi 3961CC=$ac_cv_prog_CC 3962if test -n "$CC"; then 3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3964printf "%s\n" "$CC" >&6; } 3965else 3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3967printf "%s\n" "no" >&6; } 3968fi 3969 3970 3971fi 3972if test -z "$CC"; then 3973 if test -n "$ac_tool_prefix"; then 3974 for ac_prog in cl.exe 3975 do 3976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3977set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979printf %s "checking for $ac_word... " >&6; } 3980if test ${ac_cv_prog_CC+y} 3981then : 3982 printf %s "(cached) " >&6 3983else $as_nop 3984 if test -n "$CC"; then 3985 ac_cv_prog_CC="$CC" # Let the user override the test. 3986else 3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3988for as_dir in $PATH 3989do 3990 IFS=$as_save_IFS 3991 case $as_dir in #((( 3992 '') as_dir=./ ;; 3993 */) ;; 3994 *) as_dir=$as_dir/ ;; 3995 esac 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4000 break 2 4001 fi 4002done 4003 done 4004IFS=$as_save_IFS 4005 4006fi 4007fi 4008CC=$ac_cv_prog_CC 4009if test -n "$CC"; then 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4011printf "%s\n" "$CC" >&6; } 4012else 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4014printf "%s\n" "no" >&6; } 4015fi 4016 4017 4018 test -n "$CC" && break 4019 done 4020fi 4021if test -z "$CC"; then 4022 ac_ct_CC=$CC 4023 for ac_prog in cl.exe 4024do 4025 # Extract the first word of "$ac_prog", so it can be a program name with args. 4026set dummy $ac_prog; ac_word=$2 4027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028printf %s "checking for $ac_word... " >&6; } 4029if test ${ac_cv_prog_ac_ct_CC+y} 4030then : 4031 printf %s "(cached) " >&6 4032else $as_nop 4033 if test -n "$ac_ct_CC"; then 4034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4035else 4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4037for as_dir in $PATH 4038do 4039 IFS=$as_save_IFS 4040 case $as_dir in #((( 4041 '') as_dir=./ ;; 4042 */) ;; 4043 *) as_dir=$as_dir/ ;; 4044 esac 4045 for ac_exec_ext in '' $ac_executable_extensions; do 4046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4047 ac_cv_prog_ac_ct_CC="$ac_prog" 4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4049 break 2 4050 fi 4051done 4052 done 4053IFS=$as_save_IFS 4054 4055fi 4056fi 4057ac_ct_CC=$ac_cv_prog_ac_ct_CC 4058if test -n "$ac_ct_CC"; then 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4060printf "%s\n" "$ac_ct_CC" >&6; } 4061else 4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4063printf "%s\n" "no" >&6; } 4064fi 4065 4066 4067 test -n "$ac_ct_CC" && break 4068done 4069 4070 if test "x$ac_ct_CC" = x; then 4071 CC="" 4072 else 4073 case $cross_compiling:$ac_tool_warned in 4074yes:) 4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4076printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4077ac_tool_warned=yes ;; 4078esac 4079 CC=$ac_ct_CC 4080 fi 4081fi 4082 4083fi 4084if test -z "$CC"; then 4085 if test -n "$ac_tool_prefix"; then 4086 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4087set dummy ${ac_tool_prefix}clang; ac_word=$2 4088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4089printf %s "checking for $ac_word... " >&6; } 4090if test ${ac_cv_prog_CC+y} 4091then : 4092 printf %s "(cached) " >&6 4093else $as_nop 4094 if test -n "$CC"; then 4095 ac_cv_prog_CC="$CC" # Let the user override the test. 4096else 4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098for as_dir in $PATH 4099do 4100 IFS=$as_save_IFS 4101 case $as_dir in #((( 4102 '') as_dir=./ ;; 4103 */) ;; 4104 *) as_dir=$as_dir/ ;; 4105 esac 4106 for ac_exec_ext in '' $ac_executable_extensions; do 4107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4108 ac_cv_prog_CC="${ac_tool_prefix}clang" 4109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4110 break 2 4111 fi 4112done 4113 done 4114IFS=$as_save_IFS 4115 4116fi 4117fi 4118CC=$ac_cv_prog_CC 4119if test -n "$CC"; then 4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4121printf "%s\n" "$CC" >&6; } 4122else 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4124printf "%s\n" "no" >&6; } 4125fi 4126 4127 4128fi 4129if test -z "$ac_cv_prog_CC"; then 4130 ac_ct_CC=$CC 4131 # Extract the first word of "clang", so it can be a program name with args. 4132set dummy clang; ac_word=$2 4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4134printf %s "checking for $ac_word... " >&6; } 4135if test ${ac_cv_prog_ac_ct_CC+y} 4136then : 4137 printf %s "(cached) " >&6 4138else $as_nop 4139 if test -n "$ac_ct_CC"; then 4140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4141else 4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4143for as_dir in $PATH 4144do 4145 IFS=$as_save_IFS 4146 case $as_dir in #((( 4147 '') as_dir=./ ;; 4148 */) ;; 4149 *) as_dir=$as_dir/ ;; 4150 esac 4151 for ac_exec_ext in '' $ac_executable_extensions; do 4152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4153 ac_cv_prog_ac_ct_CC="clang" 4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4155 break 2 4156 fi 4157done 4158 done 4159IFS=$as_save_IFS 4160 4161fi 4162fi 4163ac_ct_CC=$ac_cv_prog_ac_ct_CC 4164if test -n "$ac_ct_CC"; then 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4166printf "%s\n" "$ac_ct_CC" >&6; } 4167else 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4169printf "%s\n" "no" >&6; } 4170fi 4171 4172 if test "x$ac_ct_CC" = x; then 4173 CC="" 4174 else 4175 case $cross_compiling:$ac_tool_warned in 4176yes:) 4177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4178printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4179ac_tool_warned=yes ;; 4180esac 4181 CC=$ac_ct_CC 4182 fi 4183else 4184 CC="$ac_cv_prog_CC" 4185fi 4186 4187fi 4188 4189 4190test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4191printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4192as_fn_error $? "no acceptable C compiler found in \$PATH 4193See \`config.log' for more details" "$LINENO" 5; } 4194 4195# Provide some information about the compiler. 4196printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4197set X $ac_compile 4198ac_compiler=$2 4199for ac_option in --version -v -V -qversion -version; do 4200 { { ac_try="$ac_compiler $ac_option >&5" 4201case "(($ac_try" in 4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4203 *) ac_try_echo=$ac_try;; 4204esac 4205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4206printf "%s\n" "$ac_try_echo"; } >&5 4207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4208 ac_status=$? 4209 if test -s conftest.err; then 4210 sed '10a\ 4211... rest of stderr output deleted ... 4212 10q' conftest.err >conftest.er1 4213 cat conftest.er1 >&5 4214 fi 4215 rm -f conftest.er1 conftest.err 4216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4217 test $ac_status = 0; } 4218done 4219 4220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4221/* end confdefs.h. */ 4222 4223int 4224main (void) 4225{ 4226 4227 ; 4228 return 0; 4229} 4230_ACEOF 4231ac_clean_files_save=$ac_clean_files 4232ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4233# Try to create an executable without -o first, disregard a.out. 4234# It will help us diagnose broken compilers, and finding out an intuition 4235# of exeext. 4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4237printf %s "checking whether the C compiler works... " >&6; } 4238ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4239 4240# The possible output files: 4241ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4242 4243ac_rmfiles= 4244for ac_file in $ac_files 4245do 4246 case $ac_file in 4247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4248 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4249 esac 4250done 4251rm -f $ac_rmfiles 4252 4253if { { ac_try="$ac_link_default" 4254case "(($ac_try" in 4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4256 *) ac_try_echo=$ac_try;; 4257esac 4258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4259printf "%s\n" "$ac_try_echo"; } >&5 4260 (eval "$ac_link_default") 2>&5 4261 ac_status=$? 4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4263 test $ac_status = 0; } 4264then : 4265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4266# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4267# in a Makefile. We should not override ac_cv_exeext if it was cached, 4268# so that the user can short-circuit this test for compilers unknown to 4269# Autoconf. 4270for ac_file in $ac_files '' 4271do 4272 test -f "$ac_file" || continue 4273 case $ac_file in 4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4275 ;; 4276 [ab].out ) 4277 # We found the default executable, but exeext='' is most 4278 # certainly right. 4279 break;; 4280 *.* ) 4281 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4282 then :; else 4283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4284 fi 4285 # We set ac_cv_exeext here because the later test for it is not 4286 # safe: cross compilers may not add the suffix if given an `-o' 4287 # argument, so we may need to know it at that point already. 4288 # Even if this section looks crufty: it has the advantage of 4289 # actually working. 4290 break;; 4291 * ) 4292 break;; 4293 esac 4294done 4295test "$ac_cv_exeext" = no && ac_cv_exeext= 4296 4297else $as_nop 4298 ac_file='' 4299fi 4300if test -z "$ac_file" 4301then : 4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4303printf "%s\n" "no" >&6; } 4304printf "%s\n" "$as_me: failed program was:" >&5 4305sed 's/^/| /' conftest.$ac_ext >&5 4306 4307{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4308printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4309as_fn_error 77 "C compiler cannot create executables 4310See \`config.log' for more details" "$LINENO" 5; } 4311else $as_nop 4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4313printf "%s\n" "yes" >&6; } 4314fi 4315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4316printf %s "checking for C compiler default output file name... " >&6; } 4317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4318printf "%s\n" "$ac_file" >&6; } 4319ac_exeext=$ac_cv_exeext 4320 4321rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4322ac_clean_files=$ac_clean_files_save 4323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4324printf %s "checking for suffix of executables... " >&6; } 4325if { { ac_try="$ac_link" 4326case "(($ac_try" in 4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4328 *) ac_try_echo=$ac_try;; 4329esac 4330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4331printf "%s\n" "$ac_try_echo"; } >&5 4332 (eval "$ac_link") 2>&5 4333 ac_status=$? 4334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4335 test $ac_status = 0; } 4336then : 4337 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4339# work properly (i.e., refer to `conftest.exe'), while it won't with 4340# `rm'. 4341for ac_file in conftest.exe conftest conftest.*; do 4342 test -f "$ac_file" || continue 4343 case $ac_file in 4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4346 break;; 4347 * ) break;; 4348 esac 4349done 4350else $as_nop 4351 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4352printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4353as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4354See \`config.log' for more details" "$LINENO" 5; } 4355fi 4356rm -f conftest conftest$ac_cv_exeext 4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4358printf "%s\n" "$ac_cv_exeext" >&6; } 4359 4360rm -f conftest.$ac_ext 4361EXEEXT=$ac_cv_exeext 4362ac_exeext=$EXEEXT 4363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364/* end confdefs.h. */ 4365#include <stdio.h> 4366int 4367main (void) 4368{ 4369FILE *f = fopen ("conftest.out", "w"); 4370 return ferror (f) || fclose (f) != 0; 4371 4372 ; 4373 return 0; 4374} 4375_ACEOF 4376ac_clean_files="$ac_clean_files conftest.out" 4377# Check that the compiler produces executables we can run. If not, either 4378# the compiler is broken, or we cross compile. 4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4380printf %s "checking whether we are cross compiling... " >&6; } 4381if test "$cross_compiling" != yes; then 4382 { { ac_try="$ac_link" 4383case "(($ac_try" in 4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4385 *) ac_try_echo=$ac_try;; 4386esac 4387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4388printf "%s\n" "$ac_try_echo"; } >&5 4389 (eval "$ac_link") 2>&5 4390 ac_status=$? 4391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4392 test $ac_status = 0; } 4393 if { ac_try='./conftest$ac_cv_exeext' 4394 { { case "(($ac_try" in 4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4396 *) ac_try_echo=$ac_try;; 4397esac 4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4399printf "%s\n" "$ac_try_echo"; } >&5 4400 (eval "$ac_try") 2>&5 4401 ac_status=$? 4402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4403 test $ac_status = 0; }; }; then 4404 cross_compiling=no 4405 else 4406 if test "$cross_compiling" = maybe; then 4407 cross_compiling=yes 4408 else 4409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4410printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4411as_fn_error 77 "cannot run C compiled programs. 4412If you meant to cross compile, use \`--host'. 4413See \`config.log' for more details" "$LINENO" 5; } 4414 fi 4415 fi 4416fi 4417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4418printf "%s\n" "$cross_compiling" >&6; } 4419 4420rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4421ac_clean_files=$ac_clean_files_save 4422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4423printf %s "checking for suffix of object files... " >&6; } 4424if test ${ac_cv_objext+y} 4425then : 4426 printf %s "(cached) " >&6 4427else $as_nop 4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4429/* end confdefs.h. */ 4430 4431int 4432main (void) 4433{ 4434 4435 ; 4436 return 0; 4437} 4438_ACEOF 4439rm -f conftest.o conftest.obj 4440if { { ac_try="$ac_compile" 4441case "(($ac_try" in 4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4443 *) ac_try_echo=$ac_try;; 4444esac 4445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4446printf "%s\n" "$ac_try_echo"; } >&5 4447 (eval "$ac_compile") 2>&5 4448 ac_status=$? 4449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4450 test $ac_status = 0; } 4451then : 4452 for ac_file in conftest.o conftest.obj conftest.*; do 4453 test -f "$ac_file" || continue; 4454 case $ac_file in 4455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4457 break;; 4458 esac 4459done 4460else $as_nop 4461 printf "%s\n" "$as_me: failed program was:" >&5 4462sed 's/^/| /' conftest.$ac_ext >&5 4463 4464{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4465printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4466as_fn_error $? "cannot compute suffix of object files: cannot compile 4467See \`config.log' for more details" "$LINENO" 5; } 4468fi 4469rm -f conftest.$ac_cv_objext conftest.$ac_ext 4470fi 4471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4472printf "%s\n" "$ac_cv_objext" >&6; } 4473OBJEXT=$ac_cv_objext 4474ac_objext=$OBJEXT 4475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4476printf %s "checking whether the compiler supports GNU C... " >&6; } 4477if test ${ac_cv_c_compiler_gnu+y} 4478then : 4479 printf %s "(cached) " >&6 4480else $as_nop 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482/* end confdefs.h. */ 4483 4484int 4485main (void) 4486{ 4487#ifndef __GNUC__ 4488 choke me 4489#endif 4490 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495if ac_fn_c_try_compile "$LINENO" 4496then : 4497 ac_compiler_gnu=yes 4498else $as_nop 4499 ac_compiler_gnu=no 4500fi 4501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4502ac_cv_c_compiler_gnu=$ac_compiler_gnu 4503 4504fi 4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4506printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4507ac_compiler_gnu=$ac_cv_c_compiler_gnu 4508 4509if test $ac_compiler_gnu = yes; then 4510 GCC=yes 4511else 4512 GCC= 4513fi 4514ac_test_CFLAGS=${CFLAGS+y} 4515ac_save_CFLAGS=$CFLAGS 4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4517printf %s "checking whether $CC accepts -g... " >&6; } 4518if test ${ac_cv_prog_cc_g+y} 4519then : 4520 printf %s "(cached) " >&6 4521else $as_nop 4522 ac_save_c_werror_flag=$ac_c_werror_flag 4523 ac_c_werror_flag=yes 4524 ac_cv_prog_cc_g=no 4525 CFLAGS="-g" 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528 4529int 4530main (void) 4531{ 4532 4533 ; 4534 return 0; 4535} 4536_ACEOF 4537if ac_fn_c_try_compile "$LINENO" 4538then : 4539 ac_cv_prog_cc_g=yes 4540else $as_nop 4541 CFLAGS="" 4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4543/* end confdefs.h. */ 4544 4545int 4546main (void) 4547{ 4548 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553if ac_fn_c_try_compile "$LINENO" 4554then : 4555 4556else $as_nop 4557 ac_c_werror_flag=$ac_save_c_werror_flag 4558 CFLAGS="-g" 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4560/* end confdefs.h. */ 4561 4562int 4563main (void) 4564{ 4565 4566 ; 4567 return 0; 4568} 4569_ACEOF 4570if ac_fn_c_try_compile "$LINENO" 4571then : 4572 ac_cv_prog_cc_g=yes 4573fi 4574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4575fi 4576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4577fi 4578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4579 ac_c_werror_flag=$ac_save_c_werror_flag 4580fi 4581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4582printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4583if test $ac_test_CFLAGS; then 4584 CFLAGS=$ac_save_CFLAGS 4585elif test $ac_cv_prog_cc_g = yes; then 4586 if test "$GCC" = yes; then 4587 CFLAGS="-g -O2" 4588 else 4589 CFLAGS="-g" 4590 fi 4591else 4592 if test "$GCC" = yes; then 4593 CFLAGS="-O2" 4594 else 4595 CFLAGS= 4596 fi 4597fi 4598ac_prog_cc_stdc=no 4599if test x$ac_prog_cc_stdc = xno 4600then : 4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4602printf %s "checking for $CC option to enable C11 features... " >&6; } 4603if test ${ac_cv_prog_cc_c11+y} 4604then : 4605 printf %s "(cached) " >&6 4606else $as_nop 4607 ac_cv_prog_cc_c11=no 4608ac_save_CC=$CC 4609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4610/* end confdefs.h. */ 4611$ac_c_conftest_c11_program 4612_ACEOF 4613for ac_arg in '' -std=gnu11 4614do 4615 CC="$ac_save_CC $ac_arg" 4616 if ac_fn_c_try_compile "$LINENO" 4617then : 4618 ac_cv_prog_cc_c11=$ac_arg 4619fi 4620rm -f core conftest.err conftest.$ac_objext conftest.beam 4621 test "x$ac_cv_prog_cc_c11" != "xno" && break 4622done 4623rm -f conftest.$ac_ext 4624CC=$ac_save_CC 4625fi 4626 4627if test "x$ac_cv_prog_cc_c11" = xno 4628then : 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4630printf "%s\n" "unsupported" >&6; } 4631else $as_nop 4632 if test "x$ac_cv_prog_cc_c11" = x 4633then : 4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4635printf "%s\n" "none needed" >&6; } 4636else $as_nop 4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4638printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4639 CC="$CC $ac_cv_prog_cc_c11" 4640fi 4641 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4642 ac_prog_cc_stdc=c11 4643fi 4644fi 4645if test x$ac_prog_cc_stdc = xno 4646then : 4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4648printf %s "checking for $CC option to enable C99 features... " >&6; } 4649if test ${ac_cv_prog_cc_c99+y} 4650then : 4651 printf %s "(cached) " >&6 4652else $as_nop 4653 ac_cv_prog_cc_c99=no 4654ac_save_CC=$CC 4655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4656/* end confdefs.h. */ 4657$ac_c_conftest_c99_program 4658_ACEOF 4659for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4660do 4661 CC="$ac_save_CC $ac_arg" 4662 if ac_fn_c_try_compile "$LINENO" 4663then : 4664 ac_cv_prog_cc_c99=$ac_arg 4665fi 4666rm -f core conftest.err conftest.$ac_objext conftest.beam 4667 test "x$ac_cv_prog_cc_c99" != "xno" && break 4668done 4669rm -f conftest.$ac_ext 4670CC=$ac_save_CC 4671fi 4672 4673if test "x$ac_cv_prog_cc_c99" = xno 4674then : 4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4676printf "%s\n" "unsupported" >&6; } 4677else $as_nop 4678 if test "x$ac_cv_prog_cc_c99" = x 4679then : 4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4681printf "%s\n" "none needed" >&6; } 4682else $as_nop 4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4684printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4685 CC="$CC $ac_cv_prog_cc_c99" 4686fi 4687 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4688 ac_prog_cc_stdc=c99 4689fi 4690fi 4691if test x$ac_prog_cc_stdc = xno 4692then : 4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4694printf %s "checking for $CC option to enable C89 features... " >&6; } 4695if test ${ac_cv_prog_cc_c89+y} 4696then : 4697 printf %s "(cached) " >&6 4698else $as_nop 4699 ac_cv_prog_cc_c89=no 4700ac_save_CC=$CC 4701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702/* end confdefs.h. */ 4703$ac_c_conftest_c89_program 4704_ACEOF 4705for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4706do 4707 CC="$ac_save_CC $ac_arg" 4708 if ac_fn_c_try_compile "$LINENO" 4709then : 4710 ac_cv_prog_cc_c89=$ac_arg 4711fi 4712rm -f core conftest.err conftest.$ac_objext conftest.beam 4713 test "x$ac_cv_prog_cc_c89" != "xno" && break 4714done 4715rm -f conftest.$ac_ext 4716CC=$ac_save_CC 4717fi 4718 4719if test "x$ac_cv_prog_cc_c89" = xno 4720then : 4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4722printf "%s\n" "unsupported" >&6; } 4723else $as_nop 4724 if test "x$ac_cv_prog_cc_c89" = x 4725then : 4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4727printf "%s\n" "none needed" >&6; } 4728else $as_nop 4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4730printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4731 CC="$CC $ac_cv_prog_cc_c89" 4732fi 4733 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4734 ac_prog_cc_stdc=c89 4735fi 4736fi 4737 4738ac_ext=c 4739ac_cpp='$CPP $CPPFLAGS' 4740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4742ac_compiler_gnu=$ac_cv_c_compiler_gnu 4743 4744 4745 ac_ext=c 4746ac_cpp='$CPP $CPPFLAGS' 4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4749ac_compiler_gnu=$ac_cv_c_compiler_gnu 4750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4751printf %s "checking whether $CC understands -c and -o together... " >&6; } 4752if test ${am_cv_prog_cc_c_o+y} 4753then : 4754 printf %s "(cached) " >&6 4755else $as_nop 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758 4759int 4760main (void) 4761{ 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767 # Make sure it works both with $CC and with simple cc. 4768 # Following AC_PROG_CC_C_O, we do the test twice because some 4769 # compilers refuse to overwrite an existing .o file with -o, 4770 # though they will create one. 4771 am_cv_prog_cc_c_o=yes 4772 for am_i in 1 2; do 4773 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4774 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4775 ac_status=$? 4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4777 (exit $ac_status); } \ 4778 && test -f conftest2.$ac_objext; then 4779 : OK 4780 else 4781 am_cv_prog_cc_c_o=no 4782 break 4783 fi 4784 done 4785 rm -f core conftest* 4786 unset am_i 4787fi 4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4789printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4790if test "$am_cv_prog_cc_c_o" != yes; then 4791 # Losing compiler, so override with the script. 4792 # FIXME: It is wrong to rewrite CC. 4793 # But if we don't then we get into trouble of one sort or another. 4794 # A longer-term fix would be to have automake use am__CC in this case, 4795 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4796 CC="$am_aux_dir/compile $CC" 4797fi 4798ac_ext=c 4799ac_cpp='$CPP $CPPFLAGS' 4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4802ac_compiler_gnu=$ac_cv_c_compiler_gnu 4803 4804DEPDIR="${am__leading_dot}deps" 4805 4806ac_config_commands="$ac_config_commands depfiles" 4807 4808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4809printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4810cat > confinc.mk << 'END' 4811am__doit: 4812 @echo this is the am__doit target >confinc.out 4813.PHONY: am__doit 4814END 4815am__include="#" 4816am__quote= 4817# BSD make does it like this. 4818echo '.include "confinc.mk" # ignored' > confmf.BSD 4819# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4820echo 'include confinc.mk # ignored' > confmf.GNU 4821_am_result=no 4822for s in GNU BSD; do 4823 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4824 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4825 ac_status=$? 4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4827 (exit $ac_status); } 4828 case $?:`cat confinc.out 2>/dev/null` in #( 4829 '0:this is the am__doit target') : 4830 case $s in #( 4831 BSD) : 4832 am__include='.include' am__quote='"' ;; #( 4833 *) : 4834 am__include='include' am__quote='' ;; 4835esac ;; #( 4836 *) : 4837 ;; 4838esac 4839 if test "$am__include" != "#"; then 4840 _am_result="yes ($s style)" 4841 break 4842 fi 4843done 4844rm -f confinc.* confmf.* 4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4846printf "%s\n" "${_am_result}" >&6; } 4847 4848# Check whether --enable-dependency-tracking was given. 4849if test ${enable_dependency_tracking+y} 4850then : 4851 enableval=$enable_dependency_tracking; 4852fi 4853 4854if test "x$enable_dependency_tracking" != xno; then 4855 am_depcomp="$ac_aux_dir/depcomp" 4856 AMDEPBACKSLASH='\' 4857 am__nodep='_no' 4858fi 4859 if test "x$enable_dependency_tracking" != xno; then 4860 AMDEP_TRUE= 4861 AMDEP_FALSE='#' 4862else 4863 AMDEP_TRUE='#' 4864 AMDEP_FALSE= 4865fi 4866 4867 4868 4869depcc="$CC" am_compiler_list= 4870 4871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4872printf %s "checking dependency style of $depcc... " >&6; } 4873if test ${am_cv_CC_dependencies_compiler_type+y} 4874then : 4875 printf %s "(cached) " >&6 4876else $as_nop 4877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4878 # We make a subdir and do the tests there. Otherwise we can end up 4879 # making bogus files that we don't know about and never remove. For 4880 # instance it was reported that on HP-UX the gcc test will end up 4881 # making a dummy file named 'D' -- because '-MD' means "put the output 4882 # in D". 4883 rm -rf conftest.dir 4884 mkdir conftest.dir 4885 # Copy depcomp to subdir because otherwise we won't find it if we're 4886 # using a relative directory. 4887 cp "$am_depcomp" conftest.dir 4888 cd conftest.dir 4889 # We will build objects and dependencies in a subdirectory because 4890 # it helps to detect inapplicable dependency modes. For instance 4891 # both Tru64's cc and ICC support -MD to output dependencies as a 4892 # side effect of compilation, but ICC will put the dependencies in 4893 # the current directory while Tru64 will put them in the object 4894 # directory. 4895 mkdir sub 4896 4897 am_cv_CC_dependencies_compiler_type=none 4898 if test "$am_compiler_list" = ""; then 4899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4900 fi 4901 am__universal=false 4902 case " $depcc " in #( 4903 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4904 esac 4905 4906 for depmode in $am_compiler_list; do 4907 # Setup a source with many dependencies, because some compilers 4908 # like to wrap large dependency lists on column 80 (with \), and 4909 # we should not choose a depcomp mode which is confused by this. 4910 # 4911 # We need to recreate these files for each test, as the compiler may 4912 # overwrite some of them when testing with obscure command lines. 4913 # This happens at least with the AIX C compiler. 4914 : > sub/conftest.c 4915 for i in 1 2 3 4 5 6; do 4916 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4917 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4918 # Solaris 10 /bin/sh. 4919 echo '/* dummy */' > sub/conftst$i.h 4920 done 4921 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4922 4923 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4924 # mode. It turns out that the SunPro C++ compiler does not properly 4925 # handle '-M -o', and we need to detect this. Also, some Intel 4926 # versions had trouble with output in subdirs. 4927 am__obj=sub/conftest.${OBJEXT-o} 4928 am__minus_obj="-o $am__obj" 4929 case $depmode in 4930 gcc) 4931 # This depmode causes a compiler race in universal mode. 4932 test "$am__universal" = false || continue 4933 ;; 4934 nosideeffect) 4935 # After this tag, mechanisms are not by side-effect, so they'll 4936 # only be used when explicitly requested. 4937 if test "x$enable_dependency_tracking" = xyes; then 4938 continue 4939 else 4940 break 4941 fi 4942 ;; 4943 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4944 # This compiler won't grok '-c -o', but also, the minuso test has 4945 # not run yet. These depmodes are late enough in the game, and 4946 # so weak that their functioning should not be impacted. 4947 am__obj=conftest.${OBJEXT-o} 4948 am__minus_obj= 4949 ;; 4950 none) break ;; 4951 esac 4952 if depmode=$depmode \ 4953 source=sub/conftest.c object=$am__obj \ 4954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4955 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4956 >/dev/null 2>conftest.err && 4957 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4958 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4959 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4960 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4961 # icc doesn't choke on unknown options, it will just issue warnings 4962 # or remarks (even with -Werror). So we grep stderr for any message 4963 # that says an option was ignored or not supported. 4964 # When given -MP, icc 7.0 and 7.1 complain thusly: 4965 # icc: Command line warning: ignoring option '-M'; no argument required 4966 # The diagnosis changed in icc 8.0: 4967 # icc: Command line remark: option '-MP' not supported 4968 if (grep 'ignoring option' conftest.err || 4969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4970 am_cv_CC_dependencies_compiler_type=$depmode 4971 break 4972 fi 4973 fi 4974 done 4975 4976 cd .. 4977 rm -rf conftest.dir 4978else 4979 am_cv_CC_dependencies_compiler_type=none 4980fi 4981 4982fi 4983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4984printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4985CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4986 4987 if 4988 test "x$enable_dependency_tracking" != xno \ 4989 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4990 am__fastdepCC_TRUE= 4991 am__fastdepCC_FALSE='#' 4992else 4993 am__fastdepCC_TRUE='#' 4994 am__fastdepCC_FALSE= 4995fi 4996 4997 4998 4999 5000 5001 5002 5003 5004ac_ext=cpp 5005ac_cpp='$CXXCPP $CPPFLAGS' 5006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5009if test -z "$CXX"; then 5010 if test -n "$CCC"; then 5011 CXX=$CCC 5012 else 5013 if test -n "$ac_tool_prefix"; then 5014 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 5015 do 5016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5017set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5019printf %s "checking for $ac_word... " >&6; } 5020if test ${ac_cv_prog_CXX+y} 5021then : 5022 printf %s "(cached) " >&6 5023else $as_nop 5024 if test -n "$CXX"; then 5025 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5026else 5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5028for as_dir in $PATH 5029do 5030 IFS=$as_save_IFS 5031 case $as_dir in #((( 5032 '') as_dir=./ ;; 5033 */) ;; 5034 *) as_dir=$as_dir/ ;; 5035 esac 5036 for ac_exec_ext in '' $ac_executable_extensions; do 5037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5040 break 2 5041 fi 5042done 5043 done 5044IFS=$as_save_IFS 5045 5046fi 5047fi 5048CXX=$ac_cv_prog_CXX 5049if test -n "$CXX"; then 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5051printf "%s\n" "$CXX" >&6; } 5052else 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5054printf "%s\n" "no" >&6; } 5055fi 5056 5057 5058 test -n "$CXX" && break 5059 done 5060fi 5061if test -z "$CXX"; then 5062 ac_ct_CXX=$CXX 5063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 5064do 5065 # Extract the first word of "$ac_prog", so it can be a program name with args. 5066set dummy $ac_prog; ac_word=$2 5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5068printf %s "checking for $ac_word... " >&6; } 5069if test ${ac_cv_prog_ac_ct_CXX+y} 5070then : 5071 printf %s "(cached) " >&6 5072else $as_nop 5073 if test -n "$ac_ct_CXX"; then 5074 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5075else 5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5077for as_dir in $PATH 5078do 5079 IFS=$as_save_IFS 5080 case $as_dir in #((( 5081 '') as_dir=./ ;; 5082 */) ;; 5083 *) as_dir=$as_dir/ ;; 5084 esac 5085 for ac_exec_ext in '' $ac_executable_extensions; do 5086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5087 ac_cv_prog_ac_ct_CXX="$ac_prog" 5088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5089 break 2 5090 fi 5091done 5092 done 5093IFS=$as_save_IFS 5094 5095fi 5096fi 5097ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5098if test -n "$ac_ct_CXX"; then 5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5100printf "%s\n" "$ac_ct_CXX" >&6; } 5101else 5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5103printf "%s\n" "no" >&6; } 5104fi 5105 5106 5107 test -n "$ac_ct_CXX" && break 5108done 5109 5110 if test "x$ac_ct_CXX" = x; then 5111 CXX="g++" 5112 else 5113 case $cross_compiling:$ac_tool_warned in 5114yes:) 5115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5116printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5117ac_tool_warned=yes ;; 5118esac 5119 CXX=$ac_ct_CXX 5120 fi 5121fi 5122 5123 fi 5124fi 5125# Provide some information about the compiler. 5126printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5127set X $ac_compile 5128ac_compiler=$2 5129for ac_option in --version -v -V -qversion; do 5130 { { ac_try="$ac_compiler $ac_option >&5" 5131case "(($ac_try" in 5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5133 *) ac_try_echo=$ac_try;; 5134esac 5135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5136printf "%s\n" "$ac_try_echo"; } >&5 5137 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5138 ac_status=$? 5139 if test -s conftest.err; then 5140 sed '10a\ 5141... rest of stderr output deleted ... 5142 10q' conftest.err >conftest.er1 5143 cat conftest.er1 >&5 5144 fi 5145 rm -f conftest.er1 conftest.err 5146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5147 test $ac_status = 0; } 5148done 5149 5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 5151printf %s "checking whether the compiler supports GNU C++... " >&6; } 5152if test ${ac_cv_cxx_compiler_gnu+y} 5153then : 5154 printf %s "(cached) " >&6 5155else $as_nop 5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157/* end confdefs.h. */ 5158 5159int 5160main (void) 5161{ 5162#ifndef __GNUC__ 5163 choke me 5164#endif 5165 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170if ac_fn_cxx_try_compile "$LINENO" 5171then : 5172 ac_compiler_gnu=yes 5173else $as_nop 5174 ac_compiler_gnu=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5177ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5178 5179fi 5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5181printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 5182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5183 5184if test $ac_compiler_gnu = yes; then 5185 GXX=yes 5186else 5187 GXX= 5188fi 5189ac_test_CXXFLAGS=${CXXFLAGS+y} 5190ac_save_CXXFLAGS=$CXXFLAGS 5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5192printf %s "checking whether $CXX accepts -g... " >&6; } 5193if test ${ac_cv_prog_cxx_g+y} 5194then : 5195 printf %s "(cached) " >&6 5196else $as_nop 5197 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5198 ac_cxx_werror_flag=yes 5199 ac_cv_prog_cxx_g=no 5200 CXXFLAGS="-g" 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203 5204int 5205main (void) 5206{ 5207 5208 ; 5209 return 0; 5210} 5211_ACEOF 5212if ac_fn_cxx_try_compile "$LINENO" 5213then : 5214 ac_cv_prog_cxx_g=yes 5215else $as_nop 5216 CXXFLAGS="" 5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5218/* end confdefs.h. */ 5219 5220int 5221main (void) 5222{ 5223 5224 ; 5225 return 0; 5226} 5227_ACEOF 5228if ac_fn_cxx_try_compile "$LINENO" 5229then : 5230 5231else $as_nop 5232 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5233 CXXFLAGS="-g" 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236 5237int 5238main (void) 5239{ 5240 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245if ac_fn_cxx_try_compile "$LINENO" 5246then : 5247 ac_cv_prog_cxx_g=yes 5248fi 5249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5252fi 5253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5254 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5255fi 5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5257printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 5258if test $ac_test_CXXFLAGS; then 5259 CXXFLAGS=$ac_save_CXXFLAGS 5260elif test $ac_cv_prog_cxx_g = yes; then 5261 if test "$GXX" = yes; then 5262 CXXFLAGS="-g -O2" 5263 else 5264 CXXFLAGS="-g" 5265 fi 5266else 5267 if test "$GXX" = yes; then 5268 CXXFLAGS="-O2" 5269 else 5270 CXXFLAGS= 5271 fi 5272fi 5273ac_prog_cxx_stdcxx=no 5274if test x$ac_prog_cxx_stdcxx = xno 5275then : 5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 5277printf %s "checking for $CXX option to enable C++11 features... " >&6; } 5278if test ${ac_cv_prog_cxx_11+y} 5279then : 5280 printf %s "(cached) " >&6 5281else $as_nop 5282 ac_cv_prog_cxx_11=no 5283ac_save_CXX=$CXX 5284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285/* end confdefs.h. */ 5286$ac_cxx_conftest_cxx11_program 5287_ACEOF 5288for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 5289do 5290 CXX="$ac_save_CXX $ac_arg" 5291 if ac_fn_cxx_try_compile "$LINENO" 5292then : 5293 ac_cv_prog_cxx_cxx11=$ac_arg 5294fi 5295rm -f core conftest.err conftest.$ac_objext conftest.beam 5296 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 5297done 5298rm -f conftest.$ac_ext 5299CXX=$ac_save_CXX 5300fi 5301 5302if test "x$ac_cv_prog_cxx_cxx11" = xno 5303then : 5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5305printf "%s\n" "unsupported" >&6; } 5306else $as_nop 5307 if test "x$ac_cv_prog_cxx_cxx11" = x 5308then : 5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5310printf "%s\n" "none needed" >&6; } 5311else $as_nop 5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 5313printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 5314 CXX="$CXX $ac_cv_prog_cxx_cxx11" 5315fi 5316 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 5317 ac_prog_cxx_stdcxx=cxx11 5318fi 5319fi 5320if test x$ac_prog_cxx_stdcxx = xno 5321then : 5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 5323printf %s "checking for $CXX option to enable C++98 features... " >&6; } 5324if test ${ac_cv_prog_cxx_98+y} 5325then : 5326 printf %s "(cached) " >&6 5327else $as_nop 5328 ac_cv_prog_cxx_98=no 5329ac_save_CXX=$CXX 5330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332$ac_cxx_conftest_cxx98_program 5333_ACEOF 5334for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 5335do 5336 CXX="$ac_save_CXX $ac_arg" 5337 if ac_fn_cxx_try_compile "$LINENO" 5338then : 5339 ac_cv_prog_cxx_cxx98=$ac_arg 5340fi 5341rm -f core conftest.err conftest.$ac_objext conftest.beam 5342 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 5343done 5344rm -f conftest.$ac_ext 5345CXX=$ac_save_CXX 5346fi 5347 5348if test "x$ac_cv_prog_cxx_cxx98" = xno 5349then : 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5351printf "%s\n" "unsupported" >&6; } 5352else $as_nop 5353 if test "x$ac_cv_prog_cxx_cxx98" = x 5354then : 5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5356printf "%s\n" "none needed" >&6; } 5357else $as_nop 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 5359printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 5360 CXX="$CXX $ac_cv_prog_cxx_cxx98" 5361fi 5362 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 5363 ac_prog_cxx_stdcxx=cxx98 5364fi 5365fi 5366 5367ac_ext=c 5368ac_cpp='$CPP $CPPFLAGS' 5369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5371ac_compiler_gnu=$ac_cv_c_compiler_gnu 5372 5373depcc="$CXX" am_compiler_list= 5374 5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5376printf %s "checking dependency style of $depcc... " >&6; } 5377if test ${am_cv_CXX_dependencies_compiler_type+y} 5378then : 5379 printf %s "(cached) " >&6 5380else $as_nop 5381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5382 # We make a subdir and do the tests there. Otherwise we can end up 5383 # making bogus files that we don't know about and never remove. For 5384 # instance it was reported that on HP-UX the gcc test will end up 5385 # making a dummy file named 'D' -- because '-MD' means "put the output 5386 # in D". 5387 rm -rf conftest.dir 5388 mkdir conftest.dir 5389 # Copy depcomp to subdir because otherwise we won't find it if we're 5390 # using a relative directory. 5391 cp "$am_depcomp" conftest.dir 5392 cd conftest.dir 5393 # We will build objects and dependencies in a subdirectory because 5394 # it helps to detect inapplicable dependency modes. For instance 5395 # both Tru64's cc and ICC support -MD to output dependencies as a 5396 # side effect of compilation, but ICC will put the dependencies in 5397 # the current directory while Tru64 will put them in the object 5398 # directory. 5399 mkdir sub 5400 5401 am_cv_CXX_dependencies_compiler_type=none 5402 if test "$am_compiler_list" = ""; then 5403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5404 fi 5405 am__universal=false 5406 case " $depcc " in #( 5407 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5408 esac 5409 5410 for depmode in $am_compiler_list; do 5411 # Setup a source with many dependencies, because some compilers 5412 # like to wrap large dependency lists on column 80 (with \), and 5413 # we should not choose a depcomp mode which is confused by this. 5414 # 5415 # We need to recreate these files for each test, as the compiler may 5416 # overwrite some of them when testing with obscure command lines. 5417 # This happens at least with the AIX C compiler. 5418 : > sub/conftest.c 5419 for i in 1 2 3 4 5 6; do 5420 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5421 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5422 # Solaris 10 /bin/sh. 5423 echo '/* dummy */' > sub/conftst$i.h 5424 done 5425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5426 5427 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5428 # mode. It turns out that the SunPro C++ compiler does not properly 5429 # handle '-M -o', and we need to detect this. Also, some Intel 5430 # versions had trouble with output in subdirs. 5431 am__obj=sub/conftest.${OBJEXT-o} 5432 am__minus_obj="-o $am__obj" 5433 case $depmode in 5434 gcc) 5435 # This depmode causes a compiler race in universal mode. 5436 test "$am__universal" = false || continue 5437 ;; 5438 nosideeffect) 5439 # After this tag, mechanisms are not by side-effect, so they'll 5440 # only be used when explicitly requested. 5441 if test "x$enable_dependency_tracking" = xyes; then 5442 continue 5443 else 5444 break 5445 fi 5446 ;; 5447 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5448 # This compiler won't grok '-c -o', but also, the minuso test has 5449 # not run yet. These depmodes are late enough in the game, and 5450 # so weak that their functioning should not be impacted. 5451 am__obj=conftest.${OBJEXT-o} 5452 am__minus_obj= 5453 ;; 5454 none) break ;; 5455 esac 5456 if depmode=$depmode \ 5457 source=sub/conftest.c object=$am__obj \ 5458 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5459 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5460 >/dev/null 2>conftest.err && 5461 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5463 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5465 # icc doesn't choke on unknown options, it will just issue warnings 5466 # or remarks (even with -Werror). So we grep stderr for any message 5467 # that says an option was ignored or not supported. 5468 # When given -MP, icc 7.0 and 7.1 complain thusly: 5469 # icc: Command line warning: ignoring option '-M'; no argument required 5470 # The diagnosis changed in icc 8.0: 5471 # icc: Command line remark: option '-MP' not supported 5472 if (grep 'ignoring option' conftest.err || 5473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5474 am_cv_CXX_dependencies_compiler_type=$depmode 5475 break 5476 fi 5477 fi 5478 done 5479 5480 cd .. 5481 rm -rf conftest.dir 5482else 5483 am_cv_CXX_dependencies_compiler_type=none 5484fi 5485 5486fi 5487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5488printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 5489CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5490 5491 if 5492 test "x$enable_dependency_tracking" != xno \ 5493 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5494 am__fastdepCXX_TRUE= 5495 am__fastdepCXX_FALSE='#' 5496else 5497 am__fastdepCXX_TRUE='#' 5498 am__fastdepCXX_FALSE= 5499fi 5500 5501 5502case `pwd` in 5503 *\ * | *\ *) 5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5505printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5506esac 5507 5508 5509 5510macro_version='2.4.6.42-b88ce-dirty' 5511macro_revision='2.4.6.42' 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526ltmain=$ac_aux_dir/ltmain.sh 5527 5528 5529 5530 # Make sure we can run config.sub. 5531$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5532 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5533 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5535printf %s "checking build system type... " >&6; } 5536if test ${ac_cv_build+y} 5537then : 5538 printf %s "(cached) " >&6 5539else $as_nop 5540 ac_build_alias=$build_alias 5541test "x$ac_build_alias" = x && 5542 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5543test "x$ac_build_alias" = x && 5544 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5545ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5546 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5547 5548fi 5549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5550printf "%s\n" "$ac_cv_build" >&6; } 5551case $ac_cv_build in 5552*-*-*) ;; 5553*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5554esac 5555build=$ac_cv_build 5556ac_save_IFS=$IFS; IFS='-' 5557set x $ac_cv_build 5558shift 5559build_cpu=$1 5560build_vendor=$2 5561shift; shift 5562# Remember, the first character of IFS is used to create $*, 5563# except with old shells: 5564build_os=$* 5565IFS=$ac_save_IFS 5566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5567 5568 5569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5570printf %s "checking host system type... " >&6; } 5571if test ${ac_cv_host+y} 5572then : 5573 printf %s "(cached) " >&6 5574else $as_nop 5575 if test "x$host_alias" = x; then 5576 ac_cv_host=$ac_cv_build 5577else 5578 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5579 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5580fi 5581 5582fi 5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5584printf "%s\n" "$ac_cv_host" >&6; } 5585case $ac_cv_host in 5586*-*-*) ;; 5587*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5588esac 5589host=$ac_cv_host 5590ac_save_IFS=$IFS; IFS='-' 5591set x $ac_cv_host 5592shift 5593host_cpu=$1 5594host_vendor=$2 5595shift; shift 5596# Remember, the first character of IFS is used to create $*, 5597# except with old shells: 5598host_os=$* 5599IFS=$ac_save_IFS 5600case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5601 5602 5603# Backslashify metacharacters that are still active within 5604# double-quoted strings. 5605sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5606 5607# Same as above, but do not quote variable references. 5608double_quote_subst='s/\(["`\\]\)/\\\1/g' 5609 5610# Sed substitution to delay expansion of an escaped shell variable in a 5611# double_quote_subst'ed string. 5612delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5613 5614# Sed substitution to delay expansion of an escaped single quote. 5615delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5616 5617# Sed substitution to avoid accidental globbing in evaled expressions 5618no_glob_subst='s/\*/\\\*/g' 5619 5620ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5621ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5622ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5623 5624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5625printf %s "checking how to print strings... " >&6; } 5626# Test print first, because it will be a builtin if present. 5627if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5628 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5629 ECHO='print -r --' 5630elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5631 ECHO='printf %s\n' 5632else 5633 # Use this function as a fallback that always works. 5634 func_fallback_echo () 5635 { 5636 eval 'cat <<_LTECHO_EOF 5637$1 5638_LTECHO_EOF' 5639 } 5640 ECHO='func_fallback_echo' 5641fi 5642 5643# func_echo_all arg... 5644# Invoke $ECHO with all args, space-separated. 5645func_echo_all () 5646{ 5647 $ECHO "" 5648} 5649 5650case $ECHO in 5651 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5652printf "%s\n" "printf" >&6; } ;; 5653 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5654printf "%s\n" "print -r" >&6; } ;; 5655 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5656printf "%s\n" "cat" >&6; } ;; 5657esac 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5673printf %s "checking for a sed that does not truncate output... " >&6; } 5674if test ${ac_cv_path_SED+y} 5675then : 5676 printf %s "(cached) " >&6 5677else $as_nop 5678 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5679 for ac_i in 1 2 3 4 5 6 7; do 5680 ac_script="$ac_script$as_nl$ac_script" 5681 done 5682 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5683 { ac_script=; unset ac_script;} 5684 if test -z "$SED"; then 5685 ac_path_SED_found=false 5686 # Loop through the user's path and test for each of PROGNAME-LIST 5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688for as_dir in $PATH 5689do 5690 IFS=$as_save_IFS 5691 case $as_dir in #((( 5692 '') as_dir=./ ;; 5693 */) ;; 5694 *) as_dir=$as_dir/ ;; 5695 esac 5696 for ac_prog in sed gsed 5697 do 5698 for ac_exec_ext in '' $ac_executable_extensions; do 5699 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5700 as_fn_executable_p "$ac_path_SED" || continue 5701# Check for GNU ac_path_SED and select it if it is found. 5702 # Check for GNU $ac_path_SED 5703case `"$ac_path_SED" --version 2>&1` in 5704*GNU*) 5705 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5706*) 5707 ac_count=0 5708 printf %s 0123456789 >"conftest.in" 5709 while : 5710 do 5711 cat "conftest.in" "conftest.in" >"conftest.tmp" 5712 mv "conftest.tmp" "conftest.in" 5713 cp "conftest.in" "conftest.nl" 5714 printf "%s\n" '' >> "conftest.nl" 5715 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5717 as_fn_arith $ac_count + 1 && ac_count=$as_val 5718 if test $ac_count -gt ${ac_path_SED_max-0}; then 5719 # Best one so far, save it but keep looking for a better one 5720 ac_cv_path_SED="$ac_path_SED" 5721 ac_path_SED_max=$ac_count 5722 fi 5723 # 10*(2^10) chars as input seems more than enough 5724 test $ac_count -gt 10 && break 5725 done 5726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5727esac 5728 5729 $ac_path_SED_found && break 3 5730 done 5731 done 5732 done 5733IFS=$as_save_IFS 5734 if test -z "$ac_cv_path_SED"; then 5735 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5736 fi 5737else 5738 ac_cv_path_SED=$SED 5739fi 5740 5741fi 5742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5743printf "%s\n" "$ac_cv_path_SED" >&6; } 5744 SED="$ac_cv_path_SED" 5745 rm -f conftest.sed 5746 5747test -z "$SED" && SED=sed 5748Xsed="$SED -e 1s/^X//" 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5761printf %s "checking for grep that handles long lines and -e... " >&6; } 5762if test ${ac_cv_path_GREP+y} 5763then : 5764 printf %s "(cached) " >&6 5765else $as_nop 5766 if test -z "$GREP"; then 5767 ac_path_GREP_found=false 5768 # Loop through the user's path and test for each of PROGNAME-LIST 5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5770for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5771do 5772 IFS=$as_save_IFS 5773 case $as_dir in #((( 5774 '') as_dir=./ ;; 5775 */) ;; 5776 *) as_dir=$as_dir/ ;; 5777 esac 5778 for ac_prog in grep ggrep 5779 do 5780 for ac_exec_ext in '' $ac_executable_extensions; do 5781 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5782 as_fn_executable_p "$ac_path_GREP" || continue 5783# Check for GNU ac_path_GREP and select it if it is found. 5784 # Check for GNU $ac_path_GREP 5785case `"$ac_path_GREP" --version 2>&1` in 5786*GNU*) 5787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5788*) 5789 ac_count=0 5790 printf %s 0123456789 >"conftest.in" 5791 while : 5792 do 5793 cat "conftest.in" "conftest.in" >"conftest.tmp" 5794 mv "conftest.tmp" "conftest.in" 5795 cp "conftest.in" "conftest.nl" 5796 printf "%s\n" 'GREP' >> "conftest.nl" 5797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5799 as_fn_arith $ac_count + 1 && ac_count=$as_val 5800 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5801 # Best one so far, save it but keep looking for a better one 5802 ac_cv_path_GREP="$ac_path_GREP" 5803 ac_path_GREP_max=$ac_count 5804 fi 5805 # 10*(2^10) chars as input seems more than enough 5806 test $ac_count -gt 10 && break 5807 done 5808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5809esac 5810 5811 $ac_path_GREP_found && break 3 5812 done 5813 done 5814 done 5815IFS=$as_save_IFS 5816 if test -z "$ac_cv_path_GREP"; then 5817 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5818 fi 5819else 5820 ac_cv_path_GREP=$GREP 5821fi 5822 5823fi 5824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5825printf "%s\n" "$ac_cv_path_GREP" >&6; } 5826 GREP="$ac_cv_path_GREP" 5827 5828 5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5830printf %s "checking for egrep... " >&6; } 5831if test ${ac_cv_path_EGREP+y} 5832then : 5833 printf %s "(cached) " >&6 5834else $as_nop 5835 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5836 then ac_cv_path_EGREP="$GREP -E" 5837 else 5838 if test -z "$EGREP"; then 5839 ac_path_EGREP_found=false 5840 # Loop through the user's path and test for each of PROGNAME-LIST 5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5842for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5843do 5844 IFS=$as_save_IFS 5845 case $as_dir in #((( 5846 '') as_dir=./ ;; 5847 */) ;; 5848 *) as_dir=$as_dir/ ;; 5849 esac 5850 for ac_prog in egrep 5851 do 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5854 as_fn_executable_p "$ac_path_EGREP" || continue 5855# Check for GNU ac_path_EGREP and select it if it is found. 5856 # Check for GNU $ac_path_EGREP 5857case `"$ac_path_EGREP" --version 2>&1` in 5858*GNU*) 5859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5860*) 5861 ac_count=0 5862 printf %s 0123456789 >"conftest.in" 5863 while : 5864 do 5865 cat "conftest.in" "conftest.in" >"conftest.tmp" 5866 mv "conftest.tmp" "conftest.in" 5867 cp "conftest.in" "conftest.nl" 5868 printf "%s\n" 'EGREP' >> "conftest.nl" 5869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5871 as_fn_arith $ac_count + 1 && ac_count=$as_val 5872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5873 # Best one so far, save it but keep looking for a better one 5874 ac_cv_path_EGREP="$ac_path_EGREP" 5875 ac_path_EGREP_max=$ac_count 5876 fi 5877 # 10*(2^10) chars as input seems more than enough 5878 test $ac_count -gt 10 && break 5879 done 5880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5881esac 5882 5883 $ac_path_EGREP_found && break 3 5884 done 5885 done 5886 done 5887IFS=$as_save_IFS 5888 if test -z "$ac_cv_path_EGREP"; then 5889 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5890 fi 5891else 5892 ac_cv_path_EGREP=$EGREP 5893fi 5894 5895 fi 5896fi 5897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5898printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5899 EGREP="$ac_cv_path_EGREP" 5900 5901 5902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5903printf %s "checking for fgrep... " >&6; } 5904if test ${ac_cv_path_FGREP+y} 5905then : 5906 printf %s "(cached) " >&6 5907else $as_nop 5908 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5909 then ac_cv_path_FGREP="$GREP -F" 5910 else 5911 if test -z "$FGREP"; then 5912 ac_path_FGREP_found=false 5913 # Loop through the user's path and test for each of PROGNAME-LIST 5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5916do 5917 IFS=$as_save_IFS 5918 case $as_dir in #((( 5919 '') as_dir=./ ;; 5920 */) ;; 5921 *) as_dir=$as_dir/ ;; 5922 esac 5923 for ac_prog in fgrep 5924 do 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5927 as_fn_executable_p "$ac_path_FGREP" || continue 5928# Check for GNU ac_path_FGREP and select it if it is found. 5929 # Check for GNU $ac_path_FGREP 5930case `"$ac_path_FGREP" --version 2>&1` in 5931*GNU*) 5932 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5933*) 5934 ac_count=0 5935 printf %s 0123456789 >"conftest.in" 5936 while : 5937 do 5938 cat "conftest.in" "conftest.in" >"conftest.tmp" 5939 mv "conftest.tmp" "conftest.in" 5940 cp "conftest.in" "conftest.nl" 5941 printf "%s\n" 'FGREP' >> "conftest.nl" 5942 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5944 as_fn_arith $ac_count + 1 && ac_count=$as_val 5945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5946 # Best one so far, save it but keep looking for a better one 5947 ac_cv_path_FGREP="$ac_path_FGREP" 5948 ac_path_FGREP_max=$ac_count 5949 fi 5950 # 10*(2^10) chars as input seems more than enough 5951 test $ac_count -gt 10 && break 5952 done 5953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5954esac 5955 5956 $ac_path_FGREP_found && break 3 5957 done 5958 done 5959 done 5960IFS=$as_save_IFS 5961 if test -z "$ac_cv_path_FGREP"; then 5962 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5963 fi 5964else 5965 ac_cv_path_FGREP=$FGREP 5966fi 5967 5968 fi 5969fi 5970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5971printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5972 FGREP="$ac_cv_path_FGREP" 5973 5974 5975test -z "$GREP" && GREP=grep 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995# Check whether --with-gnu-ld was given. 5996if test ${with_gnu_ld+y} 5997then : 5998 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5999else $as_nop 6000 with_gnu_ld=no 6001fi 6002 6003ac_prog=ld 6004if test yes = "$GCC"; then 6005 # Check if gcc -print-prog-name=ld gives a path. 6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6007printf %s "checking for ld used by $CC... " >&6; } 6008 case $host in 6009 *-*-mingw*) 6010 # gcc leaves a trailing carriage return, which upsets mingw 6011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6012 *) 6013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6014 esac 6015 case $ac_prog in 6016 # Accept absolute paths. 6017 [\\/]* | ?:[\\/]*) 6018 re_direlt='/[^/][^/]*/\.\./' 6019 # Canonicalize the pathname of ld 6020 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6021 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6022 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6023 done 6024 test -z "$LD" && LD=$ac_prog 6025 ;; 6026 "") 6027 # If it fails, then pretend we aren't using GCC. 6028 ac_prog=ld 6029 ;; 6030 *) 6031 # If it is relative, then search for the first ld in PATH. 6032 with_gnu_ld=unknown 6033 ;; 6034 esac 6035elif test yes = "$with_gnu_ld"; then 6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6037printf %s "checking for GNU ld... " >&6; } 6038else 6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6040printf %s "checking for non-GNU ld... " >&6; } 6041fi 6042if test ${lt_cv_path_LD+y} 6043then : 6044 printf %s "(cached) " >&6 6045else $as_nop 6046 if test -z "$LD"; then 6047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6048 for ac_dir in $PATH; do 6049 IFS=$lt_save_ifs 6050 test -z "$ac_dir" && ac_dir=. 6051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6052 lt_cv_path_LD=$ac_dir/$ac_prog 6053 # Check to see if the program is GNU ld. I'd rather use --version, 6054 # but apparently some variants of GNU ld only accept -v. 6055 # Break only if it was the GNU/non-GNU ld that we prefer. 6056 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6057 *GNU* | *'with BFD'*) 6058 test no != "$with_gnu_ld" && break 6059 ;; 6060 *) 6061 test yes != "$with_gnu_ld" && break 6062 ;; 6063 esac 6064 fi 6065 done 6066 IFS=$lt_save_ifs 6067else 6068 lt_cv_path_LD=$LD # Let the user override the test with a path. 6069fi 6070fi 6071 6072LD=$lt_cv_path_LD 6073if test -n "$LD"; then 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6075printf "%s\n" "$LD" >&6; } 6076else 6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6078printf "%s\n" "no" >&6; } 6079fi 6080test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6082printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6083if test ${lt_cv_prog_gnu_ld+y} 6084then : 6085 printf %s "(cached) " >&6 6086else $as_nop 6087 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6088case `$LD -v 2>&1 </dev/null` in 6089*GNU* | *'with BFD'*) 6090 lt_cv_prog_gnu_ld=yes 6091 ;; 6092*) 6093 lt_cv_prog_gnu_ld=no 6094 ;; 6095esac 6096fi 6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6098printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6099with_gnu_ld=$lt_cv_prog_gnu_ld 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6110printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6111if test ${lt_cv_path_NM+y} 6112then : 6113 printf %s "(cached) " >&6 6114else $as_nop 6115 if test -n "$NM"; then 6116 # Let the user override the test. 6117 lt_cv_path_NM=$NM 6118else 6119 lt_nm_to_check=${ac_tool_prefix}nm 6120 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6121 lt_nm_to_check="$lt_nm_to_check nm" 6122 fi 6123 for lt_tmp_nm in $lt_nm_to_check; do 6124 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6125 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6126 IFS=$lt_save_ifs 6127 test -z "$ac_dir" && ac_dir=. 6128 tmp_nm=$ac_dir/$lt_tmp_nm 6129 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6130 # Check to see if the nm accepts a BSD-compat flag. 6131 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6132 # nm: unknown option "B" ignored 6133 # Tru64's nm complains that /dev/null is an invalid object file 6134 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6135 case $build_os in 6136 mingw*) lt_bad_file=conftest.nm/nofile ;; 6137 *) lt_bad_file=/dev/null ;; 6138 esac 6139 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6140 *$lt_bad_file* | *'Invalid file or object type'*) 6141 lt_cv_path_NM="$tmp_nm -B" 6142 break 2 6143 ;; 6144 *) 6145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6146 */dev/null*) 6147 lt_cv_path_NM="$tmp_nm -p" 6148 break 2 6149 ;; 6150 *) 6151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6152 continue # so that we can try to find one that supports BSD flags 6153 ;; 6154 esac 6155 ;; 6156 esac 6157 fi 6158 done 6159 IFS=$lt_save_ifs 6160 done 6161 : ${lt_cv_path_NM=no} 6162fi 6163fi 6164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6165printf "%s\n" "$lt_cv_path_NM" >&6; } 6166if test no != "$lt_cv_path_NM"; then 6167 NM=$lt_cv_path_NM 6168else 6169 # Didn't find any BSD compatible name lister, look for dumpbin. 6170 if test -n "$DUMPBIN"; then : 6171 # Let the user override the test. 6172 else 6173 if test -n "$ac_tool_prefix"; then 6174 for ac_prog in dumpbin "link -dump" 6175 do 6176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6177set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6179printf %s "checking for $ac_word... " >&6; } 6180if test ${ac_cv_prog_DUMPBIN+y} 6181then : 6182 printf %s "(cached) " >&6 6183else $as_nop 6184 if test -n "$DUMPBIN"; then 6185 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6186else 6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6188for as_dir in $PATH 6189do 6190 IFS=$as_save_IFS 6191 case $as_dir in #((( 6192 '') as_dir=./ ;; 6193 */) ;; 6194 *) as_dir=$as_dir/ ;; 6195 esac 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6198 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203 done 6204IFS=$as_save_IFS 6205 6206fi 6207fi 6208DUMPBIN=$ac_cv_prog_DUMPBIN 6209if test -n "$DUMPBIN"; then 6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6211printf "%s\n" "$DUMPBIN" >&6; } 6212else 6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6214printf "%s\n" "no" >&6; } 6215fi 6216 6217 6218 test -n "$DUMPBIN" && break 6219 done 6220fi 6221if test -z "$DUMPBIN"; then 6222 ac_ct_DUMPBIN=$DUMPBIN 6223 for ac_prog in dumpbin "link -dump" 6224do 6225 # Extract the first word of "$ac_prog", so it can be a program name with args. 6226set dummy $ac_prog; ac_word=$2 6227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228printf %s "checking for $ac_word... " >&6; } 6229if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6230then : 6231 printf %s "(cached) " >&6 6232else $as_nop 6233 if test -n "$ac_ct_DUMPBIN"; then 6234 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6235else 6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237for as_dir in $PATH 6238do 6239 IFS=$as_save_IFS 6240 case $as_dir in #((( 6241 '') as_dir=./ ;; 6242 */) ;; 6243 *) as_dir=$as_dir/ ;; 6244 esac 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6247 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252 done 6253IFS=$as_save_IFS 6254 6255fi 6256fi 6257ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6258if test -n "$ac_ct_DUMPBIN"; then 6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6260printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6261else 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6263printf "%s\n" "no" >&6; } 6264fi 6265 6266 6267 test -n "$ac_ct_DUMPBIN" && break 6268done 6269 6270 if test "x$ac_ct_DUMPBIN" = x; then 6271 DUMPBIN=":" 6272 else 6273 case $cross_compiling:$ac_tool_warned in 6274yes:) 6275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6276printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6277ac_tool_warned=yes ;; 6278esac 6279 DUMPBIN=$ac_ct_DUMPBIN 6280 fi 6281fi 6282 6283 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6284 *COFF*) 6285 DUMPBIN="$DUMPBIN -symbols -headers" 6286 ;; 6287 *) 6288 DUMPBIN=: 6289 ;; 6290 esac 6291 fi 6292 6293 if test : != "$DUMPBIN"; then 6294 NM=$DUMPBIN 6295 fi 6296fi 6297test -z "$NM" && NM=nm 6298 6299 6300 6301 6302 6303 6304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6305printf %s "checking the name lister ($NM) interface... " >&6; } 6306if test ${lt_cv_nm_interface+y} 6307then : 6308 printf %s "(cached) " >&6 6309else $as_nop 6310 lt_cv_nm_interface="BSD nm" 6311 echo "int some_variable = 0;" > conftest.$ac_ext 6312 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6313 (eval "$ac_compile" 2>conftest.err) 6314 cat conftest.err >&5 6315 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6316 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6317 cat conftest.err >&5 6318 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6319 cat conftest.out >&5 6320 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6321 lt_cv_nm_interface="MS dumpbin" 6322 fi 6323 rm -f conftest* 6324fi 6325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6326printf "%s\n" "$lt_cv_nm_interface" >&6; } 6327 6328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6329printf %s "checking whether ln -s works... " >&6; } 6330LN_S=$as_ln_s 6331if test "$LN_S" = "ln -s"; then 6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6333printf "%s\n" "yes" >&6; } 6334else 6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6336printf "%s\n" "no, using $LN_S" >&6; } 6337fi 6338 6339# find the maximum length of command line arguments 6340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6341printf %s "checking the maximum length of command line arguments... " >&6; } 6342if test ${lt_cv_sys_max_cmd_len+y} 6343then : 6344 printf %s "(cached) " >&6 6345else $as_nop 6346 i=0 6347 teststring=ABCD 6348 6349 case $build_os in 6350 msdosdjgpp*) 6351 # On DJGPP, this test can blow up pretty badly due to problems in libc 6352 # (any single argument exceeding 2000 bytes causes a buffer overrun 6353 # during glob expansion). Even if it were fixed, the result of this 6354 # check would be larger than it should be. 6355 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6356 ;; 6357 6358 gnu*) 6359 # Under GNU Hurd, this test is not required because there is 6360 # no limit to the length of command line arguments. 6361 # Libtool will interpret -1 as no limit whatsoever 6362 lt_cv_sys_max_cmd_len=-1; 6363 ;; 6364 6365 cygwin* | mingw* | cegcc*) 6366 # On Win9x/ME, this test blows up -- it succeeds, but takes 6367 # about 5 minutes as the teststring grows exponentially. 6368 # Worse, since 9x/ME are not pre-emptively multitasking, 6369 # you end up with a "frozen" computer, even though with patience 6370 # the test eventually succeeds (with a max line length of 256k). 6371 # Instead, let's just punt: use the minimum linelength reported by 6372 # all of the supported platforms: 8192 (on NT/2K/XP). 6373 lt_cv_sys_max_cmd_len=8192; 6374 ;; 6375 6376 mint*) 6377 # On MiNT this can take a long time and run out of memory. 6378 lt_cv_sys_max_cmd_len=8192; 6379 ;; 6380 6381 amigaos*) 6382 # On AmigaOS with pdksh, this test takes hours, literally. 6383 # So we just punt and use a minimum line length of 8192. 6384 lt_cv_sys_max_cmd_len=8192; 6385 ;; 6386 6387 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6388 # This has been around since 386BSD, at least. Likely further. 6389 if test -x /sbin/sysctl; then 6390 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6391 elif test -x /usr/sbin/sysctl; then 6392 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6393 else 6394 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6395 fi 6396 # And add a safety zone 6397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6399 ;; 6400 6401 interix*) 6402 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6403 lt_cv_sys_max_cmd_len=196608 6404 ;; 6405 6406 os2*) 6407 # The test takes a long time on OS/2. 6408 lt_cv_sys_max_cmd_len=8192 6409 ;; 6410 6411 osf*) 6412 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6413 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6414 # nice to cause kernel panics so lets avoid the loop below. 6415 # First set a reasonable default. 6416 lt_cv_sys_max_cmd_len=16384 6417 # 6418 if test -x /sbin/sysconfig; then 6419 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6420 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6421 esac 6422 fi 6423 ;; 6424 sco3.2v5*) 6425 lt_cv_sys_max_cmd_len=102400 6426 ;; 6427 sysv5* | sco5v6* | sysv4.2uw2*) 6428 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6429 if test -n "$kargmax"; then 6430 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6431 else 6432 lt_cv_sys_max_cmd_len=32768 6433 fi 6434 ;; 6435 *) 6436 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6437 if test -n "$lt_cv_sys_max_cmd_len" && \ 6438 test undefined != "$lt_cv_sys_max_cmd_len"; then 6439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6441 else 6442 # Make teststring a little bigger before we do anything with it. 6443 # a 1K string should be a reasonable start. 6444 for i in 1 2 3 4 5 6 7 8; do 6445 teststring=$teststring$teststring 6446 done 6447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6448 # If test is not a shell built-in, we'll probably end up computing a 6449 # maximum length that is only half of the actual maximum length, but 6450 # we can't tell. 6451 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6452 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6453 test 17 != "$i" # 1/2 MB should be enough 6454 do 6455 i=`expr $i + 1` 6456 teststring=$teststring$teststring 6457 done 6458 # Only check the string length outside the loop. 6459 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6460 teststring= 6461 # Add a significant safety factor because C++ compilers can tack on 6462 # massive amounts of additional arguments before passing them to the 6463 # linker. It appears as though 1/2 is a usable value. 6464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6465 fi 6466 ;; 6467 esac 6468 6469fi 6470 6471if test -n "$lt_cv_sys_max_cmd_len"; then 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6473printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6474else 6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6476printf "%s\n" "none" >&6; } 6477fi 6478max_cmd_len=$lt_cv_sys_max_cmd_len 6479 6480 6481 6482 6483 6484 6485: ${CP="cp -f"} 6486: ${MV="mv -f"} 6487: ${RM="rm -f"} 6488 6489if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6490 lt_unset=unset 6491else 6492 lt_unset=false 6493fi 6494 6495 6496 6497 6498 6499# test EBCDIC or ASCII 6500case `echo X|tr X '\101'` in 6501 A) # ASCII based system 6502 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6503 lt_SP2NL='tr \040 \012' 6504 lt_NL2SP='tr \015\012 \040\040' 6505 ;; 6506 *) # EBCDIC based system 6507 lt_SP2NL='tr \100 \n' 6508 lt_NL2SP='tr \r\n \100\100' 6509 ;; 6510esac 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6521printf %s "checking how to convert $build file names to $host format... " >&6; } 6522if test ${lt_cv_to_host_file_cmd+y} 6523then : 6524 printf %s "(cached) " >&6 6525else $as_nop 6526 case $host in 6527 *-*-mingw* ) 6528 case $build in 6529 *-*-mingw* ) # actually msys 6530 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6531 ;; 6532 *-*-cygwin* ) 6533 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6534 ;; 6535 * ) # otherwise, assume *nix 6536 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6537 ;; 6538 esac 6539 ;; 6540 *-*-cygwin* ) 6541 case $build in 6542 *-*-mingw* ) # actually msys 6543 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6544 ;; 6545 *-*-cygwin* ) 6546 lt_cv_to_host_file_cmd=func_convert_file_noop 6547 ;; 6548 * ) # otherwise, assume *nix 6549 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6550 ;; 6551 esac 6552 ;; 6553 * ) # unhandled hosts (and "normal" native builds) 6554 lt_cv_to_host_file_cmd=func_convert_file_noop 6555 ;; 6556esac 6557 6558fi 6559 6560to_host_file_cmd=$lt_cv_to_host_file_cmd 6561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6562printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6563 6564 6565 6566 6567 6568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6569printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6570if test ${lt_cv_to_tool_file_cmd+y} 6571then : 6572 printf %s "(cached) " >&6 6573else $as_nop 6574 #assume ordinary cross tools, or native build. 6575lt_cv_to_tool_file_cmd=func_convert_file_noop 6576case $host in 6577 *-*-mingw* ) 6578 case $build in 6579 *-*-mingw* ) # actually msys 6580 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6581 ;; 6582 esac 6583 ;; 6584esac 6585 6586fi 6587 6588to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6590printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6591 6592 6593 6594 6595 6596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6597printf %s "checking for $LD option to reload object files... " >&6; } 6598if test ${lt_cv_ld_reload_flag+y} 6599then : 6600 printf %s "(cached) " >&6 6601else $as_nop 6602 lt_cv_ld_reload_flag='-r' 6603fi 6604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6605printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6606reload_flag=$lt_cv_ld_reload_flag 6607case $reload_flag in 6608"" | " "*) ;; 6609*) reload_flag=" $reload_flag" ;; 6610esac 6611reload_cmds='$LD$reload_flag -o $output$reload_objs' 6612case $host_os in 6613 cygwin* | mingw* | pw32* | cegcc*) 6614 if test yes != "$GCC"; then 6615 reload_cmds=false 6616 fi 6617 ;; 6618 darwin*) 6619 if test yes = "$GCC"; then 6620 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6621 else 6622 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6623 fi 6624 ;; 6625esac 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635if test -n "$ac_tool_prefix"; then 6636 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6637set dummy ${ac_tool_prefix}objdump; ac_word=$2 6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639printf %s "checking for $ac_word... " >&6; } 6640if test ${ac_cv_prog_OBJDUMP+y} 6641then : 6642 printf %s "(cached) " >&6 6643else $as_nop 6644 if test -n "$OBJDUMP"; then 6645 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6646else 6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648for as_dir in $PATH 6649do 6650 IFS=$as_save_IFS 6651 case $as_dir in #((( 6652 '') as_dir=./ ;; 6653 */) ;; 6654 *) as_dir=$as_dir/ ;; 6655 esac 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6658 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663 done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668OBJDUMP=$ac_cv_prog_OBJDUMP 6669if test -n "$OBJDUMP"; then 6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6671printf "%s\n" "$OBJDUMP" >&6; } 6672else 6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674printf "%s\n" "no" >&6; } 6675fi 6676 6677 6678fi 6679if test -z "$ac_cv_prog_OBJDUMP"; then 6680 ac_ct_OBJDUMP=$OBJDUMP 6681 # Extract the first word of "objdump", so it can be a program name with args. 6682set dummy objdump; ac_word=$2 6683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684printf %s "checking for $ac_word... " >&6; } 6685if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6686then : 6687 printf %s "(cached) " >&6 6688else $as_nop 6689 if test -n "$ac_ct_OBJDUMP"; then 6690 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6691else 6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6693for as_dir in $PATH 6694do 6695 IFS=$as_save_IFS 6696 case $as_dir in #((( 6697 '') as_dir=./ ;; 6698 */) ;; 6699 *) as_dir=$as_dir/ ;; 6700 esac 6701 for ac_exec_ext in '' $ac_executable_extensions; do 6702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6703 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6705 break 2 6706 fi 6707done 6708 done 6709IFS=$as_save_IFS 6710 6711fi 6712fi 6713ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6714if test -n "$ac_ct_OBJDUMP"; then 6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6716printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6717else 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6719printf "%s\n" "no" >&6; } 6720fi 6721 6722 if test "x$ac_ct_OBJDUMP" = x; then 6723 OBJDUMP="false" 6724 else 6725 case $cross_compiling:$ac_tool_warned in 6726yes:) 6727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6728printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6729ac_tool_warned=yes ;; 6730esac 6731 OBJDUMP=$ac_ct_OBJDUMP 6732 fi 6733else 6734 OBJDUMP="$ac_cv_prog_OBJDUMP" 6735fi 6736 6737test -z "$OBJDUMP" && OBJDUMP=objdump 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6748printf %s "checking how to recognize dependent libraries... " >&6; } 6749if test ${lt_cv_deplibs_check_method+y} 6750then : 6751 printf %s "(cached) " >&6 6752else $as_nop 6753 lt_cv_file_magic_cmd='$MAGIC_CMD' 6754lt_cv_file_magic_test_file= 6755lt_cv_deplibs_check_method='unknown' 6756# Need to set the preceding variable on all platforms that support 6757# interlibrary dependencies. 6758# 'none' -- dependencies not supported. 6759# 'unknown' -- same as none, but documents that we really don't know. 6760# 'pass_all' -- all dependencies passed with no checks. 6761# 'test_compile' -- check by making test program. 6762# 'file_magic [[regex]]' -- check by looking for files in library path 6763# that responds to the $file_magic_cmd with a given extended regex. 6764# If you have 'file' or equivalent on your system and you're not sure 6765# whether 'pass_all' will *always* work, you probably want this one. 6766 6767case $host_os in 6768aix[4-9]*) 6769 lt_cv_deplibs_check_method=pass_all 6770 ;; 6771 6772beos*) 6773 lt_cv_deplibs_check_method=pass_all 6774 ;; 6775 6776bsdi[45]*) 6777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6778 lt_cv_file_magic_cmd='/usr/bin/file -L' 6779 lt_cv_file_magic_test_file=/shlib/libc.so 6780 ;; 6781 6782cygwin*) 6783 # func_win32_libid is a shell function defined in ltmain.sh 6784 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6785 lt_cv_file_magic_cmd='func_win32_libid' 6786 ;; 6787 6788mingw* | pw32*) 6789 # Base MSYS/MinGW do not provide the 'file' command needed by 6790 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6791 # unless we find 'file', for example because we are cross-compiling. 6792 if ( file / ) >/dev/null 2>&1; then 6793 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6794 lt_cv_file_magic_cmd='func_win32_libid' 6795 else 6796 # Keep this pattern in sync with the one in func_win32_libid. 6797 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6798 lt_cv_file_magic_cmd='$OBJDUMP -f' 6799 fi 6800 ;; 6801 6802cegcc*) 6803 # use the weaker test based on 'objdump'. See mingw*. 6804 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6805 lt_cv_file_magic_cmd='$OBJDUMP -f' 6806 ;; 6807 6808darwin* | rhapsody*) 6809 lt_cv_deplibs_check_method=pass_all 6810 ;; 6811 6812freebsd* | dragonfly*) 6813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6814 case $host_cpu in 6815 i*86 ) 6816 # Not sure whether the presence of OpenBSD here was a mistake. 6817 # Let's accept both of them until this is cleared up. 6818 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6819 lt_cv_file_magic_cmd=/usr/bin/file 6820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6821 ;; 6822 esac 6823 else 6824 lt_cv_deplibs_check_method=pass_all 6825 fi 6826 ;; 6827 6828haiku*) 6829 lt_cv_deplibs_check_method=pass_all 6830 ;; 6831 6832hpux10.20* | hpux11*) 6833 lt_cv_file_magic_cmd=/usr/bin/file 6834 case $host_cpu in 6835 ia64*) 6836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6838 ;; 6839 hppa*64*) 6840 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]' 6841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6842 ;; 6843 *) 6844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6845 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6846 ;; 6847 esac 6848 ;; 6849 6850interix[3-9]*) 6851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6853 ;; 6854 6855irix5* | irix6* | nonstopux*) 6856 case $LD in 6857 *-32|*"-32 ") libmagic=32-bit;; 6858 *-n32|*"-n32 ") libmagic=N32;; 6859 *-64|*"-64 ") libmagic=64-bit;; 6860 *) libmagic=never-match;; 6861 esac 6862 lt_cv_deplibs_check_method=pass_all 6863 ;; 6864 6865# This must be glibc/ELF. 6866linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6867 lt_cv_deplibs_check_method=pass_all 6868 ;; 6869 6870netbsd*) 6871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6873 else 6874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6875 fi 6876 ;; 6877 6878newos6*) 6879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6880 lt_cv_file_magic_cmd=/usr/bin/file 6881 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6882 ;; 6883 6884*nto* | *qnx*) 6885 lt_cv_deplibs_check_method=pass_all 6886 ;; 6887 6888openbsd* | bitrig*) 6889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6891 else 6892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6893 fi 6894 ;; 6895 6896osf3* | osf4* | osf5*) 6897 lt_cv_deplibs_check_method=pass_all 6898 ;; 6899 6900rdos*) 6901 lt_cv_deplibs_check_method=pass_all 6902 ;; 6903 6904solaris*) 6905 lt_cv_deplibs_check_method=pass_all 6906 ;; 6907 6908sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6909 lt_cv_deplibs_check_method=pass_all 6910 ;; 6911 6912sysv4 | sysv4.3*) 6913 case $host_vendor in 6914 motorola) 6915 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]' 6916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6917 ;; 6918 ncr) 6919 lt_cv_deplibs_check_method=pass_all 6920 ;; 6921 sequent) 6922 lt_cv_file_magic_cmd='/bin/file' 6923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6924 ;; 6925 sni) 6926 lt_cv_file_magic_cmd='/bin/file' 6927 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6928 lt_cv_file_magic_test_file=/lib/libc.so 6929 ;; 6930 siemens) 6931 lt_cv_deplibs_check_method=pass_all 6932 ;; 6933 pc) 6934 lt_cv_deplibs_check_method=pass_all 6935 ;; 6936 esac 6937 ;; 6938 6939tpf*) 6940 lt_cv_deplibs_check_method=pass_all 6941 ;; 6942os2*) 6943 lt_cv_deplibs_check_method=pass_all 6944 ;; 6945esac 6946 6947fi 6948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6949printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6950 6951file_magic_glob= 6952want_nocaseglob=no 6953if test "$build" = "$host"; then 6954 case $host_os in 6955 mingw* | pw32*) 6956 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6957 want_nocaseglob=yes 6958 else 6959 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6960 fi 6961 ;; 6962 esac 6963fi 6964 6965file_magic_cmd=$lt_cv_file_magic_cmd 6966deplibs_check_method=$lt_cv_deplibs_check_method 6967test -z "$deplibs_check_method" && deplibs_check_method=unknown 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990if test -n "$ac_tool_prefix"; then 6991 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6992set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6994printf %s "checking for $ac_word... " >&6; } 6995if test ${ac_cv_prog_DLLTOOL+y} 6996then : 6997 printf %s "(cached) " >&6 6998else $as_nop 6999 if test -n "$DLLTOOL"; then 7000 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7001else 7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7003for as_dir in $PATH 7004do 7005 IFS=$as_save_IFS 7006 case $as_dir in #((( 7007 '') as_dir=./ ;; 7008 */) ;; 7009 *) as_dir=$as_dir/ ;; 7010 esac 7011 for ac_exec_ext in '' $ac_executable_extensions; do 7012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7013 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7015 break 2 7016 fi 7017done 7018 done 7019IFS=$as_save_IFS 7020 7021fi 7022fi 7023DLLTOOL=$ac_cv_prog_DLLTOOL 7024if test -n "$DLLTOOL"; then 7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7026printf "%s\n" "$DLLTOOL" >&6; } 7027else 7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7029printf "%s\n" "no" >&6; } 7030fi 7031 7032 7033fi 7034if test -z "$ac_cv_prog_DLLTOOL"; then 7035 ac_ct_DLLTOOL=$DLLTOOL 7036 # Extract the first word of "dlltool", so it can be a program name with args. 7037set dummy dlltool; ac_word=$2 7038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7039printf %s "checking for $ac_word... " >&6; } 7040if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7041then : 7042 printf %s "(cached) " >&6 7043else $as_nop 7044 if test -n "$ac_ct_DLLTOOL"; then 7045 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7046else 7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048for as_dir in $PATH 7049do 7050 IFS=$as_save_IFS 7051 case $as_dir in #((( 7052 '') as_dir=./ ;; 7053 */) ;; 7054 *) as_dir=$as_dir/ ;; 7055 esac 7056 for ac_exec_ext in '' $ac_executable_extensions; do 7057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7058 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7060 break 2 7061 fi 7062done 7063 done 7064IFS=$as_save_IFS 7065 7066fi 7067fi 7068ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7069if test -n "$ac_ct_DLLTOOL"; then 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7071printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7072else 7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7074printf "%s\n" "no" >&6; } 7075fi 7076 7077 if test "x$ac_ct_DLLTOOL" = x; then 7078 DLLTOOL="false" 7079 else 7080 case $cross_compiling:$ac_tool_warned in 7081yes:) 7082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7083printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7084ac_tool_warned=yes ;; 7085esac 7086 DLLTOOL=$ac_ct_DLLTOOL 7087 fi 7088else 7089 DLLTOOL="$ac_cv_prog_DLLTOOL" 7090fi 7091 7092test -z "$DLLTOOL" && DLLTOOL=dlltool 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7104printf %s "checking how to associate runtime and link libraries... " >&6; } 7105if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7106then : 7107 printf %s "(cached) " >&6 7108else $as_nop 7109 lt_cv_sharedlib_from_linklib_cmd='unknown' 7110 7111case $host_os in 7112cygwin* | mingw* | pw32* | cegcc*) 7113 # two different shell functions defined in ltmain.sh; 7114 # decide which one to use based on capabilities of $DLLTOOL 7115 case `$DLLTOOL --help 2>&1` in 7116 *--identify-strict*) 7117 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7118 ;; 7119 *) 7120 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7121 ;; 7122 esac 7123 ;; 7124*) 7125 # fallback: assume linklib IS sharedlib 7126 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7127 ;; 7128esac 7129 7130fi 7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7132printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7133sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7134test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7135 7136 7137 7138 7139 7140 7141 7142 7143if test -n "$ac_tool_prefix"; then 7144 for ac_prog in ar 7145 do 7146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7147set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7149printf %s "checking for $ac_word... " >&6; } 7150if test ${ac_cv_prog_AR+y} 7151then : 7152 printf %s "(cached) " >&6 7153else $as_nop 7154 if test -n "$AR"; then 7155 ac_cv_prog_AR="$AR" # Let the user override the test. 7156else 7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 case $as_dir in #((( 7162 '') as_dir=./ ;; 7163 */) ;; 7164 *) as_dir=$as_dir/ ;; 7165 esac 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7168 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172done 7173 done 7174IFS=$as_save_IFS 7175 7176fi 7177fi 7178AR=$ac_cv_prog_AR 7179if test -n "$AR"; then 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7181printf "%s\n" "$AR" >&6; } 7182else 7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7184printf "%s\n" "no" >&6; } 7185fi 7186 7187 7188 test -n "$AR" && break 7189 done 7190fi 7191if test -z "$AR"; then 7192 ac_ct_AR=$AR 7193 for ac_prog in ar 7194do 7195 # Extract the first word of "$ac_prog", so it can be a program name with args. 7196set dummy $ac_prog; ac_word=$2 7197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7198printf %s "checking for $ac_word... " >&6; } 7199if test ${ac_cv_prog_ac_ct_AR+y} 7200then : 7201 printf %s "(cached) " >&6 7202else $as_nop 7203 if test -n "$ac_ct_AR"; then 7204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7205else 7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7207for as_dir in $PATH 7208do 7209 IFS=$as_save_IFS 7210 case $as_dir in #((( 7211 '') as_dir=./ ;; 7212 */) ;; 7213 *) as_dir=$as_dir/ ;; 7214 esac 7215 for ac_exec_ext in '' $ac_executable_extensions; do 7216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7217 ac_cv_prog_ac_ct_AR="$ac_prog" 7218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7219 break 2 7220 fi 7221done 7222 done 7223IFS=$as_save_IFS 7224 7225fi 7226fi 7227ac_ct_AR=$ac_cv_prog_ac_ct_AR 7228if test -n "$ac_ct_AR"; then 7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7230printf "%s\n" "$ac_ct_AR" >&6; } 7231else 7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7233printf "%s\n" "no" >&6; } 7234fi 7235 7236 7237 test -n "$ac_ct_AR" && break 7238done 7239 7240 if test "x$ac_ct_AR" = x; then 7241 AR="false" 7242 else 7243 case $cross_compiling:$ac_tool_warned in 7244yes:) 7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7246printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7247ac_tool_warned=yes ;; 7248esac 7249 AR=$ac_ct_AR 7250 fi 7251fi 7252 7253: ${AR=ar} 7254 7255 7256 7257 7258 7259 7260# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7261# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7262# higher priority because thats what people were doing historically (setting 7263# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7264# variable obsoleted/removed. 7265 7266test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7267lt_ar_flags=$AR_FLAGS 7268 7269 7270 7271 7272 7273 7274# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7275# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7276 7277 7278 7279 7280 7281 7282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7283printf %s "checking for archiver @FILE support... " >&6; } 7284if test ${lt_cv_ar_at_file+y} 7285then : 7286 printf %s "(cached) " >&6 7287else $as_nop 7288 lt_cv_ar_at_file=no 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290/* end confdefs.h. */ 7291 7292int 7293main (void) 7294{ 7295 7296 ; 7297 return 0; 7298} 7299_ACEOF 7300if ac_fn_c_try_compile "$LINENO" 7301then : 7302 echo conftest.$ac_objext > conftest.lst 7303 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7305 (eval $lt_ar_try) 2>&5 7306 ac_status=$? 7307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7308 test $ac_status = 0; } 7309 if test 0 -eq "$ac_status"; then 7310 # Ensure the archiver fails upon bogus file names. 7311 rm -f conftest.$ac_objext libconftest.a 7312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7313 (eval $lt_ar_try) 2>&5 7314 ac_status=$? 7315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7316 test $ac_status = 0; } 7317 if test 0 -ne "$ac_status"; then 7318 lt_cv_ar_at_file=@ 7319 fi 7320 fi 7321 rm -f conftest.* libconftest.a 7322 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7325 7326fi 7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7328printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7329 7330if test no = "$lt_cv_ar_at_file"; then 7331 archiver_list_spec= 7332else 7333 archiver_list_spec=$lt_cv_ar_at_file 7334fi 7335 7336 7337 7338 7339 7340 7341 7342if test -n "$ac_tool_prefix"; then 7343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7344set dummy ${ac_tool_prefix}strip; ac_word=$2 7345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7346printf %s "checking for $ac_word... " >&6; } 7347if test ${ac_cv_prog_STRIP+y} 7348then : 7349 printf %s "(cached) " >&6 7350else $as_nop 7351 if test -n "$STRIP"; then 7352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7353else 7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7355for as_dir in $PATH 7356do 7357 IFS=$as_save_IFS 7358 case $as_dir in #((( 7359 '') as_dir=./ ;; 7360 */) ;; 7361 *) as_dir=$as_dir/ ;; 7362 esac 7363 for ac_exec_ext in '' $ac_executable_extensions; do 7364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7365 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7367 break 2 7368 fi 7369done 7370 done 7371IFS=$as_save_IFS 7372 7373fi 7374fi 7375STRIP=$ac_cv_prog_STRIP 7376if test -n "$STRIP"; then 7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7378printf "%s\n" "$STRIP" >&6; } 7379else 7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7381printf "%s\n" "no" >&6; } 7382fi 7383 7384 7385fi 7386if test -z "$ac_cv_prog_STRIP"; then 7387 ac_ct_STRIP=$STRIP 7388 # Extract the first word of "strip", so it can be a program name with args. 7389set dummy strip; ac_word=$2 7390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7391printf %s "checking for $ac_word... " >&6; } 7392if test ${ac_cv_prog_ac_ct_STRIP+y} 7393then : 7394 printf %s "(cached) " >&6 7395else $as_nop 7396 if test -n "$ac_ct_STRIP"; then 7397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7398else 7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7400for as_dir in $PATH 7401do 7402 IFS=$as_save_IFS 7403 case $as_dir in #((( 7404 '') as_dir=./ ;; 7405 */) ;; 7406 *) as_dir=$as_dir/ ;; 7407 esac 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7410 ac_cv_prog_ac_ct_STRIP="strip" 7411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414done 7415 done 7416IFS=$as_save_IFS 7417 7418fi 7419fi 7420ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7421if test -n "$ac_ct_STRIP"; then 7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7423printf "%s\n" "$ac_ct_STRIP" >&6; } 7424else 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426printf "%s\n" "no" >&6; } 7427fi 7428 7429 if test "x$ac_ct_STRIP" = x; then 7430 STRIP=":" 7431 else 7432 case $cross_compiling:$ac_tool_warned in 7433yes:) 7434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7436ac_tool_warned=yes ;; 7437esac 7438 STRIP=$ac_ct_STRIP 7439 fi 7440else 7441 STRIP="$ac_cv_prog_STRIP" 7442fi 7443 7444test -z "$STRIP" && STRIP=: 7445 7446 7447 7448 7449 7450 7451if test -n "$ac_tool_prefix"; then 7452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7453set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7455printf %s "checking for $ac_word... " >&6; } 7456if test ${ac_cv_prog_RANLIB+y} 7457then : 7458 printf %s "(cached) " >&6 7459else $as_nop 7460 if test -n "$RANLIB"; then 7461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7462else 7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7464for as_dir in $PATH 7465do 7466 IFS=$as_save_IFS 7467 case $as_dir in #((( 7468 '') as_dir=./ ;; 7469 */) ;; 7470 *) as_dir=$as_dir/ ;; 7471 esac 7472 for ac_exec_ext in '' $ac_executable_extensions; do 7473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7476 break 2 7477 fi 7478done 7479 done 7480IFS=$as_save_IFS 7481 7482fi 7483fi 7484RANLIB=$ac_cv_prog_RANLIB 7485if test -n "$RANLIB"; then 7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7487printf "%s\n" "$RANLIB" >&6; } 7488else 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7490printf "%s\n" "no" >&6; } 7491fi 7492 7493 7494fi 7495if test -z "$ac_cv_prog_RANLIB"; then 7496 ac_ct_RANLIB=$RANLIB 7497 # Extract the first word of "ranlib", so it can be a program name with args. 7498set dummy ranlib; ac_word=$2 7499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7500printf %s "checking for $ac_word... " >&6; } 7501if test ${ac_cv_prog_ac_ct_RANLIB+y} 7502then : 7503 printf %s "(cached) " >&6 7504else $as_nop 7505 if test -n "$ac_ct_RANLIB"; then 7506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7507else 7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7509for as_dir in $PATH 7510do 7511 IFS=$as_save_IFS 7512 case $as_dir in #((( 7513 '') as_dir=./ ;; 7514 */) ;; 7515 *) as_dir=$as_dir/ ;; 7516 esac 7517 for ac_exec_ext in '' $ac_executable_extensions; do 7518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7519 ac_cv_prog_ac_ct_RANLIB="ranlib" 7520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7521 break 2 7522 fi 7523done 7524 done 7525IFS=$as_save_IFS 7526 7527fi 7528fi 7529ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7530if test -n "$ac_ct_RANLIB"; then 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7532printf "%s\n" "$ac_ct_RANLIB" >&6; } 7533else 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7535printf "%s\n" "no" >&6; } 7536fi 7537 7538 if test "x$ac_ct_RANLIB" = x; then 7539 RANLIB=":" 7540 else 7541 case $cross_compiling:$ac_tool_warned in 7542yes:) 7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7544printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7545ac_tool_warned=yes ;; 7546esac 7547 RANLIB=$ac_ct_RANLIB 7548 fi 7549else 7550 RANLIB="$ac_cv_prog_RANLIB" 7551fi 7552 7553test -z "$RANLIB" && RANLIB=: 7554 7555 7556 7557 7558 7559 7560# Determine commands to create old-style static archives. 7561old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7562old_postinstall_cmds='chmod 644 $oldlib' 7563old_postuninstall_cmds= 7564 7565if test -n "$RANLIB"; then 7566 case $host_os in 7567 bitrig* | openbsd*) 7568 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7569 ;; 7570 *) 7571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7572 ;; 7573 esac 7574 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7575fi 7576 7577case $host_os in 7578 darwin*) 7579 lock_old_archive_extraction=yes ;; 7580 *) 7581 lock_old_archive_extraction=no ;; 7582esac 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622# If no C compiler was specified, use CC. 7623LTCC=${LTCC-"$CC"} 7624 7625# If no C compiler flags were specified, use CFLAGS. 7626LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7627 7628# Allow CC to be a program name with arguments. 7629compiler=$CC 7630 7631 7632# Check for command to grab the raw symbol name followed by C symbol from nm. 7633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7634printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7635if test ${lt_cv_sys_global_symbol_pipe+y} 7636then : 7637 printf %s "(cached) " >&6 7638else $as_nop 7639 7640# These are sane defaults that work on at least a few old systems. 7641# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7642 7643# Character class describing NM global symbol codes. 7644symcode='[BCDEGRST]' 7645 7646# Regexp to match symbols that can be accessed directly from C. 7647sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7648 7649# Define system-specific variables. 7650case $host_os in 7651aix*) 7652 symcode='[BCDT]' 7653 ;; 7654cygwin* | mingw* | pw32* | cegcc*) 7655 symcode='[ABCDGISTW]' 7656 ;; 7657hpux*) 7658 if test ia64 = "$host_cpu"; then 7659 symcode='[ABCDEGRST]' 7660 fi 7661 ;; 7662irix* | nonstopux*) 7663 symcode='[BCDEGRST]' 7664 ;; 7665osf*) 7666 symcode='[BCDEGQRST]' 7667 ;; 7668solaris*) 7669 symcode='[BDRT]' 7670 ;; 7671sco3.2v5*) 7672 symcode='[DT]' 7673 ;; 7674sysv4.2uw2*) 7675 symcode='[DT]' 7676 ;; 7677sysv5* | sco5v6* | unixware* | OpenUNIX*) 7678 symcode='[ABDT]' 7679 ;; 7680sysv4) 7681 symcode='[DFNSTU]' 7682 ;; 7683esac 7684 7685# If we're using GNU nm, then use its standard symbol codes. 7686case `$NM -V 2>&1` in 7687*GNU* | *'with BFD'*) 7688 symcode='[ABCDGIRSTW]' ;; 7689esac 7690 7691if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7692 # Gets list of data symbols to import. 7693 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7694 # Adjust the below global symbol transforms to fixup imported variables. 7695 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7696 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7697 lt_c_name_lib_hook="\ 7698 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7699 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7700else 7701 # Disable hooks by default. 7702 lt_cv_sys_global_symbol_to_import= 7703 lt_cdecl_hook= 7704 lt_c_name_hook= 7705 lt_c_name_lib_hook= 7706fi 7707 7708# Transform an extracted symbol line into a proper C declaration. 7709# Some systems (esp. on ia64) link data and code symbols differently, 7710# so use this general approach. 7711lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7712$lt_cdecl_hook\ 7713" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7714" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7715 7716# Transform an extracted symbol line into symbol name and symbol address 7717lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7718$lt_c_name_hook\ 7719" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7720" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7721 7722# Transform an extracted symbol line into symbol name with lib prefix and 7723# symbol address. 7724lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7725$lt_c_name_lib_hook\ 7726" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7727" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7728" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7729 7730# Handle CRLF in mingw tool chain 7731opt_cr= 7732case $build_os in 7733mingw*) 7734 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7735 ;; 7736esac 7737 7738# Try without a prefix underscore, then with it. 7739for ac_symprfx in "" "_"; do 7740 7741 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7742 symxfrm="\\1 $ac_symprfx\\2 \\2" 7743 7744 # Write the raw and C identifiers. 7745 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7746 # Fake it for dumpbin and say T for any non-static function, 7747 # D for any global variable and I for any imported variable. 7748 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7749 # which start with @ or ?. 7750 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7751" {last_section=section; section=\$ 3};"\ 7752" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7753" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7754" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7755" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7756" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7757" \$ 0!~/External *\|/{next};"\ 7758" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7759" {if(hide[section]) next};"\ 7760" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7761" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7762" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7763" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7764" ' prfx=^$ac_symprfx" 7765 else 7766 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7767 fi 7768 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7769 7770 # Check to see that the pipe works correctly. 7771 pipe_works=no 7772 7773 rm -f conftest* 7774 cat > conftest.$ac_ext <<_LT_EOF 7775#ifdef __cplusplus 7776extern "C" { 7777#endif 7778char nm_test_var; 7779void nm_test_func(void); 7780void nm_test_func(void){} 7781#ifdef __cplusplus 7782} 7783#endif 7784int main(){nm_test_var='a';nm_test_func();return(0);} 7785_LT_EOF 7786 7787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7788 (eval $ac_compile) 2>&5 7789 ac_status=$? 7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7791 test $ac_status = 0; }; then 7792 # Now try to grab the symbols. 7793 nlist=conftest.nm 7794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7795 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7796 ac_status=$? 7797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7798 test $ac_status = 0; } && test -s "$nlist"; then 7799 # Try sorting and uniquifying the output. 7800 if sort "$nlist" | uniq > "$nlist"T; then 7801 mv -f "$nlist"T "$nlist" 7802 else 7803 rm -f "$nlist"T 7804 fi 7805 7806 # Make sure that we snagged all the symbols we need. 7807 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7808 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7809 cat <<_LT_EOF > conftest.$ac_ext 7810/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7811#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7812/* DATA imports from DLLs on WIN32 can't be const, because runtime 7813 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7814# define LT_DLSYM_CONST 7815#elif defined __osf__ 7816/* This system does not cope well with relocations in const data. */ 7817# define LT_DLSYM_CONST 7818#else 7819# define LT_DLSYM_CONST const 7820#endif 7821 7822#ifdef __cplusplus 7823extern "C" { 7824#endif 7825 7826_LT_EOF 7827 # Now generate the symbol file. 7828 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7829 7830 cat <<_LT_EOF >> conftest.$ac_ext 7831 7832/* The mapping between symbol names and symbols. */ 7833LT_DLSYM_CONST struct { 7834 const char *name; 7835 void *address; 7836} 7837lt__PROGRAM__LTX_preloaded_symbols[] = 7838{ 7839 { "@PROGRAM@", (void *) 0 }, 7840_LT_EOF 7841 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7842 cat <<\_LT_EOF >> conftest.$ac_ext 7843 {0, (void *) 0} 7844}; 7845 7846/* This works around a problem in FreeBSD linker */ 7847#ifdef FREEBSD_WORKAROUND 7848static const void *lt_preloaded_setup() { 7849 return lt__PROGRAM__LTX_preloaded_symbols; 7850} 7851#endif 7852 7853#ifdef __cplusplus 7854} 7855#endif 7856_LT_EOF 7857 # Now try linking the two files. 7858 mv conftest.$ac_objext conftstm.$ac_objext 7859 lt_globsym_save_LIBS=$LIBS 7860 lt_globsym_save_CFLAGS=$CFLAGS 7861 LIBS=conftstm.$ac_objext 7862 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7864 (eval $ac_link) 2>&5 7865 ac_status=$? 7866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7867 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7868 pipe_works=yes 7869 fi 7870 LIBS=$lt_globsym_save_LIBS 7871 CFLAGS=$lt_globsym_save_CFLAGS 7872 else 7873 echo "cannot find nm_test_func in $nlist" >&5 7874 fi 7875 else 7876 echo "cannot find nm_test_var in $nlist" >&5 7877 fi 7878 else 7879 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7880 fi 7881 else 7882 echo "$progname: failed program was:" >&5 7883 cat conftest.$ac_ext >&5 7884 fi 7885 rm -rf conftest* conftst* 7886 7887 # Do not use the global_symbol_pipe unless it works. 7888 if test yes = "$pipe_works"; then 7889 break 7890 else 7891 lt_cv_sys_global_symbol_pipe= 7892 fi 7893done 7894 7895fi 7896 7897if test -z "$lt_cv_sys_global_symbol_pipe"; then 7898 lt_cv_sys_global_symbol_to_cdecl= 7899fi 7900if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7902printf "%s\n" "failed" >&6; } 7903else 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7905printf "%s\n" "ok" >&6; } 7906fi 7907 7908# Response file support. 7909if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7910 nm_file_list_spec='@' 7911elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7912 nm_file_list_spec='@' 7913fi 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7952printf %s "checking for sysroot... " >&6; } 7953 7954# Check whether --with-sysroot was given. 7955if test ${with_sysroot+y} 7956then : 7957 withval=$with_sysroot; 7958else $as_nop 7959 with_sysroot=no 7960fi 7961 7962 7963lt_sysroot= 7964case $with_sysroot in #( 7965 yes) 7966 if test yes = "$GCC"; then 7967 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7968 fi 7969 ;; #( 7970 /*) 7971 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7972 ;; #( 7973 no|'') 7974 ;; #( 7975 *) 7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7977printf "%s\n" "$with_sysroot" >&6; } 7978 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7979 ;; 7980esac 7981 7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7983printf "%s\n" "${lt_sysroot:-no}" >&6; } 7984 7985 7986 7987 7988 7989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7990printf %s "checking for a working dd... " >&6; } 7991if test ${ac_cv_path_lt_DD+y} 7992then : 7993 printf %s "(cached) " >&6 7994else $as_nop 7995 printf 0123456789abcdef0123456789abcdef >conftest.i 7996cat conftest.i conftest.i >conftest2.i 7997: ${lt_DD:=$DD} 7998if test -z "$lt_DD"; then 7999 ac_path_lt_DD_found=false 8000 # Loop through the user's path and test for each of PROGNAME-LIST 8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8002for as_dir in $PATH 8003do 8004 IFS=$as_save_IFS 8005 case $as_dir in #((( 8006 '') as_dir=./ ;; 8007 */) ;; 8008 *) as_dir=$as_dir/ ;; 8009 esac 8010 for ac_prog in dd 8011 do 8012 for ac_exec_ext in '' $ac_executable_extensions; do 8013 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8014 as_fn_executable_p "$ac_path_lt_DD" || continue 8015if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8016 cmp -s conftest.i conftest.out \ 8017 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8018fi 8019 $ac_path_lt_DD_found && break 3 8020 done 8021 done 8022 done 8023IFS=$as_save_IFS 8024 if test -z "$ac_cv_path_lt_DD"; then 8025 : 8026 fi 8027else 8028 ac_cv_path_lt_DD=$lt_DD 8029fi 8030 8031rm -f conftest.i conftest2.i conftest.out 8032fi 8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8034printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8035 8036 8037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8038printf %s "checking how to truncate binary pipes... " >&6; } 8039if test ${lt_cv_truncate_bin+y} 8040then : 8041 printf %s "(cached) " >&6 8042else $as_nop 8043 printf 0123456789abcdef0123456789abcdef >conftest.i 8044cat conftest.i conftest.i >conftest2.i 8045lt_cv_truncate_bin= 8046if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8047 cmp -s conftest.i conftest.out \ 8048 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8049fi 8050rm -f conftest.i conftest2.i conftest.out 8051test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8052fi 8053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8054printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8055 8056 8057 8058 8059 8060 8061 8062# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8063func_cc_basename () 8064{ 8065 for cc_temp in $*""; do 8066 case $cc_temp in 8067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8069 \-*) ;; 8070 *) break;; 8071 esac 8072 done 8073 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8074} 8075 8076# Check whether --enable-libtool-lock was given. 8077if test ${enable_libtool_lock+y} 8078then : 8079 enableval=$enable_libtool_lock; 8080fi 8081 8082test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8083 8084# Some flags need to be propagated to the compiler or linker for good 8085# libtool support. 8086case $host in 8087ia64-*-hpux*) 8088 # Find out what ABI is being produced by ac_compile, and set mode 8089 # options accordingly. 8090 echo 'int i;' > conftest.$ac_ext 8091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8092 (eval $ac_compile) 2>&5 8093 ac_status=$? 8094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8095 test $ac_status = 0; }; then 8096 case `/usr/bin/file conftest.$ac_objext` in 8097 *ELF-32*) 8098 HPUX_IA64_MODE=32 8099 ;; 8100 *ELF-64*) 8101 HPUX_IA64_MODE=64 8102 ;; 8103 esac 8104 fi 8105 rm -rf conftest* 8106 ;; 8107*-*-irix6*) 8108 # Find out what ABI is being produced by ac_compile, and set linker 8109 # options accordingly. 8110 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8112 (eval $ac_compile) 2>&5 8113 ac_status=$? 8114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8115 test $ac_status = 0; }; then 8116 if test yes = "$lt_cv_prog_gnu_ld"; then 8117 case `/usr/bin/file conftest.$ac_objext` in 8118 *32-bit*) 8119 LD="${LD-ld} -melf32bsmip" 8120 ;; 8121 *N32*) 8122 LD="${LD-ld} -melf32bmipn32" 8123 ;; 8124 *64-bit*) 8125 LD="${LD-ld} -melf64bmip" 8126 ;; 8127 esac 8128 else 8129 case `/usr/bin/file conftest.$ac_objext` in 8130 *32-bit*) 8131 LD="${LD-ld} -32" 8132 ;; 8133 *N32*) 8134 LD="${LD-ld} -n32" 8135 ;; 8136 *64-bit*) 8137 LD="${LD-ld} -64" 8138 ;; 8139 esac 8140 fi 8141 fi 8142 rm -rf conftest* 8143 ;; 8144 8145mips64*-*linux*) 8146 # Find out what ABI is being produced by ac_compile, and set linker 8147 # options accordingly. 8148 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8150 (eval $ac_compile) 2>&5 8151 ac_status=$? 8152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8153 test $ac_status = 0; }; then 8154 emul=elf 8155 case `/usr/bin/file conftest.$ac_objext` in 8156 *32-bit*) 8157 emul="${emul}32" 8158 ;; 8159 *64-bit*) 8160 emul="${emul}64" 8161 ;; 8162 esac 8163 case `/usr/bin/file conftest.$ac_objext` in 8164 *MSB*) 8165 emul="${emul}btsmip" 8166 ;; 8167 *LSB*) 8168 emul="${emul}ltsmip" 8169 ;; 8170 esac 8171 case `/usr/bin/file conftest.$ac_objext` in 8172 *N32*) 8173 emul="${emul}n32" 8174 ;; 8175 esac 8176 LD="${LD-ld} -m $emul" 8177 fi 8178 rm -rf conftest* 8179 ;; 8180 8181x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8182s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8183 # Find out what ABI is being produced by ac_compile, and set linker 8184 # options accordingly. Note that the listed cases only cover the 8185 # situations where additional linker options are needed (such as when 8186 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8187 # vice versa); the common cases where no linker options are needed do 8188 # not appear in the list. 8189 echo 'int i;' > conftest.$ac_ext 8190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8191 (eval $ac_compile) 2>&5 8192 ac_status=$? 8193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8194 test $ac_status = 0; }; then 8195 case `/usr/bin/file conftest.o` in 8196 *32-bit*) 8197 case $host in 8198 x86_64-*kfreebsd*-gnu) 8199 LD="${LD-ld} -m elf_i386_fbsd" 8200 ;; 8201 x86_64-*linux*) 8202 case `/usr/bin/file conftest.o` in 8203 *x86-64*) 8204 LD="${LD-ld} -m elf32_x86_64" 8205 ;; 8206 *) 8207 LD="${LD-ld} -m elf_i386" 8208 ;; 8209 esac 8210 ;; 8211 powerpc64le-*linux*) 8212 LD="${LD-ld} -m elf32lppclinux" 8213 ;; 8214 powerpc64-*linux*) 8215 LD="${LD-ld} -m elf32ppclinux" 8216 ;; 8217 s390x-*linux*) 8218 LD="${LD-ld} -m elf_s390" 8219 ;; 8220 sparc64-*linux*) 8221 LD="${LD-ld} -m elf32_sparc" 8222 ;; 8223 esac 8224 ;; 8225 *64-bit*) 8226 case $host in 8227 x86_64-*kfreebsd*-gnu) 8228 LD="${LD-ld} -m elf_x86_64_fbsd" 8229 ;; 8230 x86_64-*linux*) 8231 LD="${LD-ld} -m elf_x86_64" 8232 ;; 8233 powerpcle-*linux*) 8234 LD="${LD-ld} -m elf64lppc" 8235 ;; 8236 powerpc-*linux*) 8237 LD="${LD-ld} -m elf64ppc" 8238 ;; 8239 s390*-*linux*|s390*-*tpf*) 8240 LD="${LD-ld} -m elf64_s390" 8241 ;; 8242 sparc*-*linux*) 8243 LD="${LD-ld} -m elf64_sparc" 8244 ;; 8245 esac 8246 ;; 8247 esac 8248 fi 8249 rm -rf conftest* 8250 ;; 8251 8252*-*-sco3.2v5*) 8253 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8254 SAVE_CFLAGS=$CFLAGS 8255 CFLAGS="$CFLAGS -belf" 8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8257printf %s "checking whether the C compiler needs -belf... " >&6; } 8258if test ${lt_cv_cc_needs_belf+y} 8259then : 8260 printf %s "(cached) " >&6 8261else $as_nop 8262 ac_ext=c 8263ac_cpp='$CPP $CPPFLAGS' 8264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8266ac_compiler_gnu=$ac_cv_c_compiler_gnu 8267 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270 8271int 8272main (void) 8273{ 8274 8275 ; 8276 return 0; 8277} 8278_ACEOF 8279if ac_fn_c_try_link "$LINENO" 8280then : 8281 lt_cv_cc_needs_belf=yes 8282else $as_nop 8283 lt_cv_cc_needs_belf=no 8284fi 8285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8286 conftest$ac_exeext conftest.$ac_ext 8287 ac_ext=c 8288ac_cpp='$CPP $CPPFLAGS' 8289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8291ac_compiler_gnu=$ac_cv_c_compiler_gnu 8292 8293fi 8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8295printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8296 if test yes != "$lt_cv_cc_needs_belf"; then 8297 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8298 CFLAGS=$SAVE_CFLAGS 8299 fi 8300 ;; 8301*-*solaris*) 8302 # Find out what ABI is being produced by ac_compile, and set linker 8303 # options accordingly. 8304 echo 'int i;' > conftest.$ac_ext 8305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8306 (eval $ac_compile) 2>&5 8307 ac_status=$? 8308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8309 test $ac_status = 0; }; then 8310 case `/usr/bin/file conftest.o` in 8311 *64-bit*) 8312 case $lt_cv_prog_gnu_ld in 8313 yes*) 8314 case $host in 8315 i?86-*-solaris*|x86_64-*-solaris*) 8316 LD="${LD-ld} -m elf_x86_64" 8317 ;; 8318 sparc*-*-solaris*) 8319 LD="${LD-ld} -m elf64_sparc" 8320 ;; 8321 esac 8322 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8323 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8324 LD=${LD-ld}_sol2 8325 fi 8326 ;; 8327 *) 8328 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8329 LD="${LD-ld} -64" 8330 fi 8331 ;; 8332 esac 8333 ;; 8334 esac 8335 fi 8336 rm -rf conftest* 8337 ;; 8338esac 8339 8340need_locks=$enable_libtool_lock 8341 8342if test -n "$ac_tool_prefix"; then 8343 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8344set dummy ${ac_tool_prefix}mt; ac_word=$2 8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8346printf %s "checking for $ac_word... " >&6; } 8347if test ${ac_cv_prog_MANIFEST_TOOL+y} 8348then : 8349 printf %s "(cached) " >&6 8350else $as_nop 8351 if test -n "$MANIFEST_TOOL"; then 8352 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8353else 8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8355for as_dir in $PATH 8356do 8357 IFS=$as_save_IFS 8358 case $as_dir in #((( 8359 '') as_dir=./ ;; 8360 */) ;; 8361 *) as_dir=$as_dir/ ;; 8362 esac 8363 for ac_exec_ext in '' $ac_executable_extensions; do 8364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8365 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8367 break 2 8368 fi 8369done 8370 done 8371IFS=$as_save_IFS 8372 8373fi 8374fi 8375MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8376if test -n "$MANIFEST_TOOL"; then 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8378printf "%s\n" "$MANIFEST_TOOL" >&6; } 8379else 8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8381printf "%s\n" "no" >&6; } 8382fi 8383 8384 8385fi 8386if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8387 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8388 # Extract the first word of "mt", so it can be a program name with args. 8389set dummy mt; ac_word=$2 8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8391printf %s "checking for $ac_word... " >&6; } 8392if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8393then : 8394 printf %s "(cached) " >&6 8395else $as_nop 8396 if test -n "$ac_ct_MANIFEST_TOOL"; then 8397 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8398else 8399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8400for as_dir in $PATH 8401do 8402 IFS=$as_save_IFS 8403 case $as_dir in #((( 8404 '') as_dir=./ ;; 8405 */) ;; 8406 *) as_dir=$as_dir/ ;; 8407 esac 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8410 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414done 8415 done 8416IFS=$as_save_IFS 8417 8418fi 8419fi 8420ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8421if test -n "$ac_ct_MANIFEST_TOOL"; then 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8423printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8424else 8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8426printf "%s\n" "no" >&6; } 8427fi 8428 8429 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8430 MANIFEST_TOOL=":" 8431 else 8432 case $cross_compiling:$ac_tool_warned in 8433yes:) 8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8436ac_tool_warned=yes ;; 8437esac 8438 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8439 fi 8440else 8441 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8442fi 8443 8444test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8446printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8447if test ${lt_cv_path_mainfest_tool+y} 8448then : 8449 printf %s "(cached) " >&6 8450else $as_nop 8451 lt_cv_path_mainfest_tool=no 8452 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8453 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8454 cat conftest.err >&5 8455 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8456 lt_cv_path_mainfest_tool=yes 8457 fi 8458 rm -f conftest* 8459fi 8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8461printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8462if test yes != "$lt_cv_path_mainfest_tool"; then 8463 MANIFEST_TOOL=: 8464fi 8465 8466 8467 8468 8469 8470 8471 case $host_os in 8472 rhapsody* | darwin*) 8473 if test -n "$ac_tool_prefix"; then 8474 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8475set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8477printf %s "checking for $ac_word... " >&6; } 8478if test ${ac_cv_prog_DSYMUTIL+y} 8479then : 8480 printf %s "(cached) " >&6 8481else $as_nop 8482 if test -n "$DSYMUTIL"; then 8483 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8484else 8485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8486for as_dir in $PATH 8487do 8488 IFS=$as_save_IFS 8489 case $as_dir in #((( 8490 '') as_dir=./ ;; 8491 */) ;; 8492 *) as_dir=$as_dir/ ;; 8493 esac 8494 for ac_exec_ext in '' $ac_executable_extensions; do 8495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8496 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8498 break 2 8499 fi 8500done 8501 done 8502IFS=$as_save_IFS 8503 8504fi 8505fi 8506DSYMUTIL=$ac_cv_prog_DSYMUTIL 8507if test -n "$DSYMUTIL"; then 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8509printf "%s\n" "$DSYMUTIL" >&6; } 8510else 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8512printf "%s\n" "no" >&6; } 8513fi 8514 8515 8516fi 8517if test -z "$ac_cv_prog_DSYMUTIL"; then 8518 ac_ct_DSYMUTIL=$DSYMUTIL 8519 # Extract the first word of "dsymutil", so it can be a program name with args. 8520set dummy dsymutil; ac_word=$2 8521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8522printf %s "checking for $ac_word... " >&6; } 8523if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8524then : 8525 printf %s "(cached) " >&6 8526else $as_nop 8527 if test -n "$ac_ct_DSYMUTIL"; then 8528 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8529else 8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8531for as_dir in $PATH 8532do 8533 IFS=$as_save_IFS 8534 case $as_dir in #((( 8535 '') as_dir=./ ;; 8536 */) ;; 8537 *) as_dir=$as_dir/ ;; 8538 esac 8539 for ac_exec_ext in '' $ac_executable_extensions; do 8540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8541 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8543 break 2 8544 fi 8545done 8546 done 8547IFS=$as_save_IFS 8548 8549fi 8550fi 8551ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8552if test -n "$ac_ct_DSYMUTIL"; then 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8554printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8555else 8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8557printf "%s\n" "no" >&6; } 8558fi 8559 8560 if test "x$ac_ct_DSYMUTIL" = x; then 8561 DSYMUTIL=":" 8562 else 8563 case $cross_compiling:$ac_tool_warned in 8564yes:) 8565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8566printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8567ac_tool_warned=yes ;; 8568esac 8569 DSYMUTIL=$ac_ct_DSYMUTIL 8570 fi 8571else 8572 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8573fi 8574 8575 if test -n "$ac_tool_prefix"; then 8576 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8577set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8579printf %s "checking for $ac_word... " >&6; } 8580if test ${ac_cv_prog_NMEDIT+y} 8581then : 8582 printf %s "(cached) " >&6 8583else $as_nop 8584 if test -n "$NMEDIT"; then 8585 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8586else 8587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8588for as_dir in $PATH 8589do 8590 IFS=$as_save_IFS 8591 case $as_dir in #((( 8592 '') as_dir=./ ;; 8593 */) ;; 8594 *) as_dir=$as_dir/ ;; 8595 esac 8596 for ac_exec_ext in '' $ac_executable_extensions; do 8597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8598 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8600 break 2 8601 fi 8602done 8603 done 8604IFS=$as_save_IFS 8605 8606fi 8607fi 8608NMEDIT=$ac_cv_prog_NMEDIT 8609if test -n "$NMEDIT"; then 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8611printf "%s\n" "$NMEDIT" >&6; } 8612else 8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8614printf "%s\n" "no" >&6; } 8615fi 8616 8617 8618fi 8619if test -z "$ac_cv_prog_NMEDIT"; then 8620 ac_ct_NMEDIT=$NMEDIT 8621 # Extract the first word of "nmedit", so it can be a program name with args. 8622set dummy nmedit; ac_word=$2 8623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8624printf %s "checking for $ac_word... " >&6; } 8625if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8626then : 8627 printf %s "(cached) " >&6 8628else $as_nop 8629 if test -n "$ac_ct_NMEDIT"; then 8630 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8631else 8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8633for as_dir in $PATH 8634do 8635 IFS=$as_save_IFS 8636 case $as_dir in #((( 8637 '') as_dir=./ ;; 8638 */) ;; 8639 *) as_dir=$as_dir/ ;; 8640 esac 8641 for ac_exec_ext in '' $ac_executable_extensions; do 8642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8643 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8645 break 2 8646 fi 8647done 8648 done 8649IFS=$as_save_IFS 8650 8651fi 8652fi 8653ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8654if test -n "$ac_ct_NMEDIT"; then 8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8656printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8657else 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8659printf "%s\n" "no" >&6; } 8660fi 8661 8662 if test "x$ac_ct_NMEDIT" = x; then 8663 NMEDIT=":" 8664 else 8665 case $cross_compiling:$ac_tool_warned in 8666yes:) 8667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8668printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8669ac_tool_warned=yes ;; 8670esac 8671 NMEDIT=$ac_ct_NMEDIT 8672 fi 8673else 8674 NMEDIT="$ac_cv_prog_NMEDIT" 8675fi 8676 8677 if test -n "$ac_tool_prefix"; then 8678 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8679set dummy ${ac_tool_prefix}lipo; ac_word=$2 8680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8681printf %s "checking for $ac_word... " >&6; } 8682if test ${ac_cv_prog_LIPO+y} 8683then : 8684 printf %s "(cached) " >&6 8685else $as_nop 8686 if test -n "$LIPO"; then 8687 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8688else 8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8690for as_dir in $PATH 8691do 8692 IFS=$as_save_IFS 8693 case $as_dir in #((( 8694 '') as_dir=./ ;; 8695 */) ;; 8696 *) as_dir=$as_dir/ ;; 8697 esac 8698 for ac_exec_ext in '' $ac_executable_extensions; do 8699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8700 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8702 break 2 8703 fi 8704done 8705 done 8706IFS=$as_save_IFS 8707 8708fi 8709fi 8710LIPO=$ac_cv_prog_LIPO 8711if test -n "$LIPO"; then 8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8713printf "%s\n" "$LIPO" >&6; } 8714else 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8716printf "%s\n" "no" >&6; } 8717fi 8718 8719 8720fi 8721if test -z "$ac_cv_prog_LIPO"; then 8722 ac_ct_LIPO=$LIPO 8723 # Extract the first word of "lipo", so it can be a program name with args. 8724set dummy lipo; ac_word=$2 8725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8726printf %s "checking for $ac_word... " >&6; } 8727if test ${ac_cv_prog_ac_ct_LIPO+y} 8728then : 8729 printf %s "(cached) " >&6 8730else $as_nop 8731 if test -n "$ac_ct_LIPO"; then 8732 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8733else 8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8735for as_dir in $PATH 8736do 8737 IFS=$as_save_IFS 8738 case $as_dir in #((( 8739 '') as_dir=./ ;; 8740 */) ;; 8741 *) as_dir=$as_dir/ ;; 8742 esac 8743 for ac_exec_ext in '' $ac_executable_extensions; do 8744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8745 ac_cv_prog_ac_ct_LIPO="lipo" 8746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8747 break 2 8748 fi 8749done 8750 done 8751IFS=$as_save_IFS 8752 8753fi 8754fi 8755ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8756if test -n "$ac_ct_LIPO"; then 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8758printf "%s\n" "$ac_ct_LIPO" >&6; } 8759else 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8761printf "%s\n" "no" >&6; } 8762fi 8763 8764 if test "x$ac_ct_LIPO" = x; then 8765 LIPO=":" 8766 else 8767 case $cross_compiling:$ac_tool_warned in 8768yes:) 8769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8770printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8771ac_tool_warned=yes ;; 8772esac 8773 LIPO=$ac_ct_LIPO 8774 fi 8775else 8776 LIPO="$ac_cv_prog_LIPO" 8777fi 8778 8779 if test -n "$ac_tool_prefix"; then 8780 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8781set dummy ${ac_tool_prefix}otool; ac_word=$2 8782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8783printf %s "checking for $ac_word... " >&6; } 8784if test ${ac_cv_prog_OTOOL+y} 8785then : 8786 printf %s "(cached) " >&6 8787else $as_nop 8788 if test -n "$OTOOL"; then 8789 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8790else 8791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8792for as_dir in $PATH 8793do 8794 IFS=$as_save_IFS 8795 case $as_dir in #((( 8796 '') as_dir=./ ;; 8797 */) ;; 8798 *) as_dir=$as_dir/ ;; 8799 esac 8800 for ac_exec_ext in '' $ac_executable_extensions; do 8801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8802 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8804 break 2 8805 fi 8806done 8807 done 8808IFS=$as_save_IFS 8809 8810fi 8811fi 8812OTOOL=$ac_cv_prog_OTOOL 8813if test -n "$OTOOL"; then 8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8815printf "%s\n" "$OTOOL" >&6; } 8816else 8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8818printf "%s\n" "no" >&6; } 8819fi 8820 8821 8822fi 8823if test -z "$ac_cv_prog_OTOOL"; then 8824 ac_ct_OTOOL=$OTOOL 8825 # Extract the first word of "otool", so it can be a program name with args. 8826set dummy otool; ac_word=$2 8827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8828printf %s "checking for $ac_word... " >&6; } 8829if test ${ac_cv_prog_ac_ct_OTOOL+y} 8830then : 8831 printf %s "(cached) " >&6 8832else $as_nop 8833 if test -n "$ac_ct_OTOOL"; then 8834 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8835else 8836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8837for as_dir in $PATH 8838do 8839 IFS=$as_save_IFS 8840 case $as_dir in #((( 8841 '') as_dir=./ ;; 8842 */) ;; 8843 *) as_dir=$as_dir/ ;; 8844 esac 8845 for ac_exec_ext in '' $ac_executable_extensions; do 8846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8847 ac_cv_prog_ac_ct_OTOOL="otool" 8848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8849 break 2 8850 fi 8851done 8852 done 8853IFS=$as_save_IFS 8854 8855fi 8856fi 8857ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8858if test -n "$ac_ct_OTOOL"; then 8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8860printf "%s\n" "$ac_ct_OTOOL" >&6; } 8861else 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8863printf "%s\n" "no" >&6; } 8864fi 8865 8866 if test "x$ac_ct_OTOOL" = x; then 8867 OTOOL=":" 8868 else 8869 case $cross_compiling:$ac_tool_warned in 8870yes:) 8871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8872printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8873ac_tool_warned=yes ;; 8874esac 8875 OTOOL=$ac_ct_OTOOL 8876 fi 8877else 8878 OTOOL="$ac_cv_prog_OTOOL" 8879fi 8880 8881 if test -n "$ac_tool_prefix"; then 8882 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8883set dummy ${ac_tool_prefix}otool64; ac_word=$2 8884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8885printf %s "checking for $ac_word... " >&6; } 8886if test ${ac_cv_prog_OTOOL64+y} 8887then : 8888 printf %s "(cached) " >&6 8889else $as_nop 8890 if test -n "$OTOOL64"; then 8891 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8892else 8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8894for as_dir in $PATH 8895do 8896 IFS=$as_save_IFS 8897 case $as_dir in #((( 8898 '') as_dir=./ ;; 8899 */) ;; 8900 *) as_dir=$as_dir/ ;; 8901 esac 8902 for ac_exec_ext in '' $ac_executable_extensions; do 8903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8904 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8906 break 2 8907 fi 8908done 8909 done 8910IFS=$as_save_IFS 8911 8912fi 8913fi 8914OTOOL64=$ac_cv_prog_OTOOL64 8915if test -n "$OTOOL64"; then 8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8917printf "%s\n" "$OTOOL64" >&6; } 8918else 8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8920printf "%s\n" "no" >&6; } 8921fi 8922 8923 8924fi 8925if test -z "$ac_cv_prog_OTOOL64"; then 8926 ac_ct_OTOOL64=$OTOOL64 8927 # Extract the first word of "otool64", so it can be a program name with args. 8928set dummy otool64; ac_word=$2 8929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8930printf %s "checking for $ac_word... " >&6; } 8931if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8932then : 8933 printf %s "(cached) " >&6 8934else $as_nop 8935 if test -n "$ac_ct_OTOOL64"; then 8936 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8937else 8938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8939for as_dir in $PATH 8940do 8941 IFS=$as_save_IFS 8942 case $as_dir in #((( 8943 '') as_dir=./ ;; 8944 */) ;; 8945 *) as_dir=$as_dir/ ;; 8946 esac 8947 for ac_exec_ext in '' $ac_executable_extensions; do 8948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8949 ac_cv_prog_ac_ct_OTOOL64="otool64" 8950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8951 break 2 8952 fi 8953done 8954 done 8955IFS=$as_save_IFS 8956 8957fi 8958fi 8959ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8960if test -n "$ac_ct_OTOOL64"; then 8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8962printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8963else 8964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8965printf "%s\n" "no" >&6; } 8966fi 8967 8968 if test "x$ac_ct_OTOOL64" = x; then 8969 OTOOL64=":" 8970 else 8971 case $cross_compiling:$ac_tool_warned in 8972yes:) 8973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8975ac_tool_warned=yes ;; 8976esac 8977 OTOOL64=$ac_ct_OTOOL64 8978 fi 8979else 8980 OTOOL64="$ac_cv_prog_OTOOL64" 8981fi 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9010printf %s "checking for -single_module linker flag... " >&6; } 9011if test ${lt_cv_apple_cc_single_mod+y} 9012then : 9013 printf %s "(cached) " >&6 9014else $as_nop 9015 lt_cv_apple_cc_single_mod=no 9016 if test -z "$LT_MULTI_MODULE"; then 9017 # By default we will add the -single_module flag. You can override 9018 # by either setting the environment variable LT_MULTI_MODULE 9019 # non-empty at configure time, or by adding -multi_module to the 9020 # link flags. 9021 rm -rf libconftest.dylib* 9022 echo "int foo(void){return 1;}" > conftest.c 9023 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9024-dynamiclib -Wl,-single_module conftest.c" >&5 9025 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9026 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9027 _lt_result=$? 9028 # If there is a non-empty error log, and "single_module" 9029 # appears in it, assume the flag caused a linker warning 9030 if test -s conftest.err && $GREP single_module conftest.err; then 9031 cat conftest.err >&5 9032 # Otherwise, if the output was created with a 0 exit code from 9033 # the compiler, it worked. 9034 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9035 lt_cv_apple_cc_single_mod=yes 9036 else 9037 cat conftest.err >&5 9038 fi 9039 rm -rf libconftest.dylib* 9040 rm -f conftest.* 9041 fi 9042fi 9043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9044printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9045 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9047printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9048if test ${lt_cv_ld_exported_symbols_list+y} 9049then : 9050 printf %s "(cached) " >&6 9051else $as_nop 9052 lt_cv_ld_exported_symbols_list=no 9053 save_LDFLAGS=$LDFLAGS 9054 echo "_main" > conftest.sym 9055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9057/* end confdefs.h. */ 9058 9059int 9060main (void) 9061{ 9062 9063 ; 9064 return 0; 9065} 9066_ACEOF 9067if ac_fn_c_try_link "$LINENO" 9068then : 9069 lt_cv_ld_exported_symbols_list=yes 9070else $as_nop 9071 lt_cv_ld_exported_symbols_list=no 9072fi 9073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9074 conftest$ac_exeext conftest.$ac_ext 9075 LDFLAGS=$save_LDFLAGS 9076 9077fi 9078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9079printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9080 9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9082printf %s "checking for -force_load linker flag... " >&6; } 9083if test ${lt_cv_ld_force_load+y} 9084then : 9085 printf %s "(cached) " >&6 9086else $as_nop 9087 lt_cv_ld_force_load=no 9088 cat > conftest.c << _LT_EOF 9089int forced_loaded() { return 2;} 9090_LT_EOF 9091 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9092 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9093 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9094 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9095 echo "$RANLIB libconftest.a" >&5 9096 $RANLIB libconftest.a 2>&5 9097 cat > conftest.c << _LT_EOF 9098int main() { return 0;} 9099_LT_EOF 9100 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9101 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9102 _lt_result=$? 9103 if test -s conftest.err && $GREP force_load conftest.err; then 9104 cat conftest.err >&5 9105 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9106 lt_cv_ld_force_load=yes 9107 else 9108 cat conftest.err >&5 9109 fi 9110 rm -f conftest.err libconftest.a conftest conftest.c 9111 rm -rf conftest.dSYM 9112 9113fi 9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9115printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9116 case $host_os in 9117 rhapsody* | darwin1.[012]) 9118 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9119 darwin1.*) 9120 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9121 darwin*) # darwin 5.x on 9122 # if running on 10.5 or later, the deployment target defaults 9123 # to the OS version, if on x86, and 10.4, the deployment 9124 # target defaults to 10.4. Don't you love it? 9125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9126 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9127 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9128 10.[012][,.]*) 9129 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9130 10.*) 9131 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9132 esac 9133 ;; 9134 esac 9135 if test yes = "$lt_cv_apple_cc_single_mod"; then 9136 _lt_dar_single_mod='$single_module' 9137 fi 9138 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9139 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9140 else 9141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9142 fi 9143 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9144 _lt_dsymutil='~$DSYMUTIL $lib || :' 9145 else 9146 _lt_dsymutil= 9147 fi 9148 ;; 9149 esac 9150 9151# func_munge_path_list VARIABLE PATH 9152# ----------------------------------- 9153# VARIABLE is name of variable containing _space_ separated list of 9154# directories to be munged by the contents of PATH, which is string 9155# having a format: 9156# "DIR[:DIR]:" 9157# string "DIR[ DIR]" will be prepended to VARIABLE 9158# ":DIR[:DIR]" 9159# string "DIR[ DIR]" will be appended to VARIABLE 9160# "DIRP[:DIRP]::[DIRA:]DIRA" 9161# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9162# "DIRA[ DIRA]" will be appended to VARIABLE 9163# "DIR[:DIR]" 9164# VARIABLE will be replaced by "DIR[ DIR]" 9165func_munge_path_list () 9166{ 9167 case x$2 in 9168 x) 9169 ;; 9170 *:) 9171 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9172 ;; 9173 x:*) 9174 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9175 ;; 9176 *::*) 9177 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9178 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9179 ;; 9180 *) 9181 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9182 ;; 9183 esac 9184} 9185 9186ac_header= ac_cache= 9187for ac_item in $ac_header_c_list 9188do 9189 if test $ac_cache; then 9190 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9191 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9192 printf "%s\n" "#define $ac_item 1" >> confdefs.h 9193 fi 9194 ac_header= ac_cache= 9195 elif test $ac_header; then 9196 ac_cache=$ac_item 9197 else 9198 ac_header=$ac_item 9199 fi 9200done 9201 9202 9203 9204 9205 9206 9207 9208 9209if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 9210then : 9211 9212printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 9213 9214fi 9215ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9216" 9217if test "x$ac_cv_header_dlfcn_h" = xyes 9218then : 9219 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9220 9221fi 9222 9223 9224 9225 9226func_stripname_cnf () 9227{ 9228 case $2 in 9229 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9230 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9231 esac 9232} # func_stripname_cnf 9233 9234 9235 9236 9237 9238# Set options 9239 9240 9241 9242 enable_dlopen=no 9243 9244 9245 enable_win32_dll=no 9246 9247 9248 # Check whether --enable-shared was given. 9249if test ${enable_shared+y} 9250then : 9251 enableval=$enable_shared; p=${PACKAGE-default} 9252 case $enableval in 9253 yes) enable_shared=yes ;; 9254 no) enable_shared=no ;; 9255 *) 9256 enable_shared=no 9257 # Look at the argument we got. We use all the common list separators. 9258 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9259 for pkg in $enableval; do 9260 IFS=$lt_save_ifs 9261 if test "X$pkg" = "X$p"; then 9262 enable_shared=yes 9263 fi 9264 done 9265 IFS=$lt_save_ifs 9266 ;; 9267 esac 9268else $as_nop 9269 enable_shared=yes 9270fi 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 # Check whether --enable-static was given. 9281if test ${enable_static+y} 9282then : 9283 enableval=$enable_static; p=${PACKAGE-default} 9284 case $enableval in 9285 yes) enable_static=yes ;; 9286 no) enable_static=no ;; 9287 *) 9288 enable_static=no 9289 # Look at the argument we got. We use all the common list separators. 9290 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9291 for pkg in $enableval; do 9292 IFS=$lt_save_ifs 9293 if test "X$pkg" = "X$p"; then 9294 enable_static=yes 9295 fi 9296 done 9297 IFS=$lt_save_ifs 9298 ;; 9299 esac 9300else $as_nop 9301 enable_static=yes 9302fi 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313# Check whether --with-pic was given. 9314if test ${with_pic+y} 9315then : 9316 withval=$with_pic; lt_p=${PACKAGE-default} 9317 case $withval in 9318 yes|no) pic_mode=$withval ;; 9319 *) 9320 pic_mode=default 9321 # Look at the argument we got. We use all the common list separators. 9322 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9323 for lt_pkg in $withval; do 9324 IFS=$lt_save_ifs 9325 if test "X$lt_pkg" = "X$lt_p"; then 9326 pic_mode=yes 9327 fi 9328 done 9329 IFS=$lt_save_ifs 9330 ;; 9331 esac 9332else $as_nop 9333 pic_mode=default 9334fi 9335 9336 9337 9338 9339 9340 9341 9342 9343 # Check whether --enable-fast-install was given. 9344if test ${enable_fast_install+y} 9345then : 9346 enableval=$enable_fast_install; p=${PACKAGE-default} 9347 case $enableval in 9348 yes) enable_fast_install=yes ;; 9349 no) enable_fast_install=no ;; 9350 *) 9351 enable_fast_install=no 9352 # Look at the argument we got. We use all the common list separators. 9353 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9354 for pkg in $enableval; do 9355 IFS=$lt_save_ifs 9356 if test "X$pkg" = "X$p"; then 9357 enable_fast_install=yes 9358 fi 9359 done 9360 IFS=$lt_save_ifs 9361 ;; 9362 esac 9363else $as_nop 9364 enable_fast_install=yes 9365fi 9366 9367 9368 9369 9370 9371 9372 9373 9374 shared_archive_member_spec= 9375case $host,$enable_shared in 9376power*-*-aix[5-9]*,yes) 9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9378printf %s "checking which variant of shared library versioning to provide... " >&6; } 9379 9380# Check whether --with-aix-soname was given. 9381if test ${with_aix_soname+y} 9382then : 9383 withval=$with_aix_soname; case $withval in 9384 aix|svr4|both) 9385 ;; 9386 *) 9387 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9388 ;; 9389 esac 9390 lt_cv_with_aix_soname=$with_aix_soname 9391else $as_nop 9392 if test ${lt_cv_with_aix_soname+y} 9393then : 9394 printf %s "(cached) " >&6 9395else $as_nop 9396 lt_cv_with_aix_soname=aix 9397fi 9398 9399 with_aix_soname=$lt_cv_with_aix_soname 9400fi 9401 9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9403printf "%s\n" "$with_aix_soname" >&6; } 9404 if test aix != "$with_aix_soname"; then 9405 # For the AIX way of multilib, we name the shared archive member 9406 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9407 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9408 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9409 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9410 if test 64 = "${OBJECT_MODE-32}"; then 9411 shared_archive_member_spec=shr_64 9412 else 9413 shared_archive_member_spec=shr 9414 fi 9415 fi 9416 ;; 9417*) 9418 with_aix_soname=aix 9419 ;; 9420esac 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431# This can be used to rebuild libtool when needed 9432LIBTOOL_DEPS=$ltmain 9433 9434# Always use our own libtool. 9435LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466test -z "$LN_S" && LN_S="ln -s" 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481if test -n "${ZSH_VERSION+set}"; then 9482 setopt NO_GLOB_SUBST 9483fi 9484 9485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9486printf %s "checking for objdir... " >&6; } 9487if test ${lt_cv_objdir+y} 9488then : 9489 printf %s "(cached) " >&6 9490else $as_nop 9491 rm -f .libs 2>/dev/null 9492mkdir .libs 2>/dev/null 9493if test -d .libs; then 9494 lt_cv_objdir=.libs 9495else 9496 # MS-DOS does not allow filenames that begin with a dot. 9497 lt_cv_objdir=_libs 9498fi 9499rmdir .libs 2>/dev/null 9500fi 9501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9502printf "%s\n" "$lt_cv_objdir" >&6; } 9503objdir=$lt_cv_objdir 9504 9505 9506 9507 9508 9509printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9510 9511 9512 9513 9514case $host_os in 9515aix3*) 9516 # AIX sometimes has problems with the GCC collect2 program. For some 9517 # reason, if we set the COLLECT_NAMES environment variable, the problems 9518 # vanish in a puff of smoke. 9519 if test set != "${COLLECT_NAMES+set}"; then 9520 COLLECT_NAMES= 9521 export COLLECT_NAMES 9522 fi 9523 ;; 9524esac 9525 9526# Global variables: 9527ofile=libtool 9528can_build_shared=yes 9529 9530# All known linkers require a '.a' archive for static linking (except MSVC and 9531# ICC, which need '.lib'). 9532libext=a 9533 9534with_gnu_ld=$lt_cv_prog_gnu_ld 9535 9536old_CC=$CC 9537old_CFLAGS=$CFLAGS 9538 9539# Set sane defaults for various variables 9540test -z "$CC" && CC=cc 9541test -z "$LTCC" && LTCC=$CC 9542test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9543test -z "$LD" && LD=ld 9544test -z "$ac_objext" && ac_objext=o 9545 9546func_cc_basename $compiler 9547cc_basename=$func_cc_basename_result 9548 9549 9550# Only perform the check for file, if the check method requires it 9551test -z "$MAGIC_CMD" && MAGIC_CMD=file 9552case $deplibs_check_method in 9553file_magic*) 9554 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9556printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9557if test ${lt_cv_path_MAGIC_CMD+y} 9558then : 9559 printf %s "(cached) " >&6 9560else $as_nop 9561 case $MAGIC_CMD in 9562[\\/*] | ?:[\\/]*) 9563 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9564 ;; 9565*) 9566 lt_save_MAGIC_CMD=$MAGIC_CMD 9567 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9569 for ac_dir in $ac_dummy; do 9570 IFS=$lt_save_ifs 9571 test -z "$ac_dir" && ac_dir=. 9572 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9573 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9574 if test -n "$file_magic_test_file"; then 9575 case $deplibs_check_method in 9576 "file_magic "*) 9577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9578 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9580 $EGREP "$file_magic_regex" > /dev/null; then 9581 : 9582 else 9583 cat <<_LT_EOF 1>&2 9584 9585*** Warning: the command libtool uses to detect shared libraries, 9586*** $file_magic_cmd, produces output that libtool cannot recognize. 9587*** The result is that libtool may fail to recognize shared libraries 9588*** as such. This will affect the creation of libtool libraries that 9589*** depend on shared libraries, but programs linked with such libtool 9590*** libraries will work regardless of this problem. Nevertheless, you 9591*** may want to report the problem to your system manager and/or to 9592*** bug-libtool@gnu.org 9593 9594_LT_EOF 9595 fi ;; 9596 esac 9597 fi 9598 break 9599 fi 9600 done 9601 IFS=$lt_save_ifs 9602 MAGIC_CMD=$lt_save_MAGIC_CMD 9603 ;; 9604esac 9605fi 9606 9607MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9608if test -n "$MAGIC_CMD"; then 9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9610printf "%s\n" "$MAGIC_CMD" >&6; } 9611else 9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9613printf "%s\n" "no" >&6; } 9614fi 9615 9616 9617 9618 9619 9620if test -z "$lt_cv_path_MAGIC_CMD"; then 9621 if test -n "$ac_tool_prefix"; then 9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9623printf %s "checking for file... " >&6; } 9624if test ${lt_cv_path_MAGIC_CMD+y} 9625then : 9626 printf %s "(cached) " >&6 9627else $as_nop 9628 case $MAGIC_CMD in 9629[\\/*] | ?:[\\/]*) 9630 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9631 ;; 9632*) 9633 lt_save_MAGIC_CMD=$MAGIC_CMD 9634 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9636 for ac_dir in $ac_dummy; do 9637 IFS=$lt_save_ifs 9638 test -z "$ac_dir" && ac_dir=. 9639 if test -f "$ac_dir/file"; then 9640 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9641 if test -n "$file_magic_test_file"; then 9642 case $deplibs_check_method in 9643 "file_magic "*) 9644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9645 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9647 $EGREP "$file_magic_regex" > /dev/null; then 9648 : 9649 else 9650 cat <<_LT_EOF 1>&2 9651 9652*** Warning: the command libtool uses to detect shared libraries, 9653*** $file_magic_cmd, produces output that libtool cannot recognize. 9654*** The result is that libtool may fail to recognize shared libraries 9655*** as such. This will affect the creation of libtool libraries that 9656*** depend on shared libraries, but programs linked with such libtool 9657*** libraries will work regardless of this problem. Nevertheless, you 9658*** may want to report the problem to your system manager and/or to 9659*** bug-libtool@gnu.org 9660 9661_LT_EOF 9662 fi ;; 9663 esac 9664 fi 9665 break 9666 fi 9667 done 9668 IFS=$lt_save_ifs 9669 MAGIC_CMD=$lt_save_MAGIC_CMD 9670 ;; 9671esac 9672fi 9673 9674MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9675if test -n "$MAGIC_CMD"; then 9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9677printf "%s\n" "$MAGIC_CMD" >&6; } 9678else 9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9680printf "%s\n" "no" >&6; } 9681fi 9682 9683 9684 else 9685 MAGIC_CMD=: 9686 fi 9687fi 9688 9689 fi 9690 ;; 9691esac 9692 9693# Use C for the default configuration in the libtool script 9694 9695lt_save_CC=$CC 9696ac_ext=c 9697ac_cpp='$CPP $CPPFLAGS' 9698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9700ac_compiler_gnu=$ac_cv_c_compiler_gnu 9701 9702 9703# Source file extension for C test sources. 9704ac_ext=c 9705 9706# Object file extension for compiled C test sources. 9707objext=o 9708objext=$objext 9709 9710# Code to be used in simple compile tests 9711lt_simple_compile_test_code="int some_variable = 0;" 9712 9713# Code to be used in simple link tests 9714lt_simple_link_test_code='int main(){return(0);}' 9715 9716 9717 9718 9719 9720 9721 9722# If no C compiler was specified, use CC. 9723LTCC=${LTCC-"$CC"} 9724 9725# If no C compiler flags were specified, use CFLAGS. 9726LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9727 9728# Allow CC to be a program name with arguments. 9729compiler=$CC 9730 9731# Save the default compiler, since it gets overwritten when the other 9732# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9733compiler_DEFAULT=$CC 9734 9735# save warnings/boilerplate of simple test code 9736ac_outfile=conftest.$ac_objext 9737echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9738eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9739_lt_compiler_boilerplate=`cat conftest.err` 9740$RM conftest* 9741 9742ac_outfile=conftest.$ac_objext 9743echo "$lt_simple_link_test_code" >conftest.$ac_ext 9744eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9745_lt_linker_boilerplate=`cat conftest.err` 9746$RM -r conftest* 9747 9748 9749if test -n "$compiler"; then 9750 9751lt_prog_compiler_no_builtin_flag= 9752 9753if test yes = "$GCC"; then 9754 case $cc_basename in 9755 nvcc*) 9756 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9757 *) 9758 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9759 esac 9760 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9762printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9763if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9764then : 9765 printf %s "(cached) " >&6 9766else $as_nop 9767 lt_cv_prog_compiler_rtti_exceptions=no 9768 ac_outfile=conftest.$ac_objext 9769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9770 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9771 # Insert the option either (1) after the last *FLAGS variable, or 9772 # (2) before a word containing "conftest.", or (3) at the end. 9773 # Note that $ac_compile itself does not contain backslashes and begins 9774 # with a dollar sign (not a hyphen), so the echo should work correctly. 9775 # The option is referenced via a variable to avoid confusing sed. 9776 lt_compile=`echo "$ac_compile" | $SED \ 9777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9779 -e 's:$: $lt_compiler_flag:'` 9780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9781 (eval "$lt_compile" 2>conftest.err) 9782 ac_status=$? 9783 cat conftest.err >&5 9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 if (exit $ac_status) && test -s "$ac_outfile"; then 9786 # The compiler can only warn and ignore the option if not recognized 9787 # So say no if there are warnings other than the usual output. 9788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9791 lt_cv_prog_compiler_rtti_exceptions=yes 9792 fi 9793 fi 9794 $RM conftest* 9795 9796fi 9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9798printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9799 9800if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9801 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9802else 9803 : 9804fi 9805 9806fi 9807 9808 9809 9810 9811 9812 9813 lt_prog_compiler_wl= 9814lt_prog_compiler_pic= 9815lt_prog_compiler_static= 9816 9817 9818 if test yes = "$GCC"; then 9819 lt_prog_compiler_wl='-Wl,' 9820 lt_prog_compiler_static='-static' 9821 9822 case $host_os in 9823 aix*) 9824 # All AIX code is PIC. 9825 if test ia64 = "$host_cpu"; then 9826 # AIX 5 now supports IA64 processor 9827 lt_prog_compiler_static='-Bstatic' 9828 fi 9829 lt_prog_compiler_pic='-fPIC' 9830 ;; 9831 9832 amigaos*) 9833 case $host_cpu in 9834 powerpc) 9835 # see comment about AmigaOS4 .so support 9836 lt_prog_compiler_pic='-fPIC' 9837 ;; 9838 m68k) 9839 # FIXME: we need at least 68020 code to build shared libraries, but 9840 # adding the '-m68020' flag to GCC prevents building anything better, 9841 # like '-m68040'. 9842 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9843 ;; 9844 esac 9845 ;; 9846 9847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9848 # PIC is the default for these OSes. 9849 ;; 9850 9851 mingw* | cygwin* | pw32* | os2* | cegcc*) 9852 # This hack is so that the source file can tell whether it is being 9853 # built for inclusion in a dll (and should export symbols for example). 9854 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9855 # (--disable-auto-import) libraries 9856 lt_prog_compiler_pic='-DDLL_EXPORT' 9857 case $host_os in 9858 os2*) 9859 lt_prog_compiler_static='$wl-static' 9860 ;; 9861 esac 9862 ;; 9863 9864 darwin* | rhapsody*) 9865 # PIC is the default on this platform 9866 # Common symbols not allowed in MH_DYLIB files 9867 lt_prog_compiler_pic='-fno-common' 9868 ;; 9869 9870 haiku*) 9871 # PIC is the default for Haiku. 9872 # The "-static" flag exists, but is broken. 9873 lt_prog_compiler_static= 9874 ;; 9875 9876 hpux*) 9877 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9878 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9879 # sets the default TLS model and affects inlining. 9880 case $host_cpu in 9881 hppa*64*) 9882 # +Z the default 9883 ;; 9884 *) 9885 lt_prog_compiler_pic='-fPIC' 9886 ;; 9887 esac 9888 ;; 9889 9890 interix[3-9]*) 9891 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9892 # Instead, we relocate shared libraries at runtime. 9893 ;; 9894 9895 msdosdjgpp*) 9896 # Just because we use GCC doesn't mean we suddenly get shared libraries 9897 # on systems that don't support them. 9898 lt_prog_compiler_can_build_shared=no 9899 enable_shared=no 9900 ;; 9901 9902 *nto* | *qnx*) 9903 # QNX uses GNU C++, but need to define -shared option too, otherwise 9904 # it will coredump. 9905 lt_prog_compiler_pic='-fPIC -shared' 9906 ;; 9907 9908 sysv4*MP*) 9909 if test -d /usr/nec; then 9910 lt_prog_compiler_pic=-Kconform_pic 9911 fi 9912 ;; 9913 9914 *) 9915 lt_prog_compiler_pic='-fPIC' 9916 ;; 9917 esac 9918 9919 case $cc_basename in 9920 nvcc*) # Cuda Compiler Driver 2.2 9921 lt_prog_compiler_wl='-Xlinker ' 9922 if test -n "$lt_prog_compiler_pic"; then 9923 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9924 fi 9925 ;; 9926 esac 9927 else 9928 # PORTME Check for flag to pass linker flags through the system compiler. 9929 case $host_os in 9930 aix*) 9931 lt_prog_compiler_wl='-Wl,' 9932 if test ia64 = "$host_cpu"; then 9933 # AIX 5 now supports IA64 processor 9934 lt_prog_compiler_static='-Bstatic' 9935 else 9936 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9937 fi 9938 ;; 9939 9940 darwin* | rhapsody*) 9941 # PIC is the default on this platform 9942 # Common symbols not allowed in MH_DYLIB files 9943 lt_prog_compiler_pic='-fno-common' 9944 case $cc_basename in 9945 nagfor*) 9946 # NAG Fortran compiler 9947 lt_prog_compiler_wl='-Wl,-Wl,,' 9948 lt_prog_compiler_pic='-PIC' 9949 lt_prog_compiler_static='-Bstatic' 9950 ;; 9951 esac 9952 ;; 9953 9954 mingw* | cygwin* | pw32* | os2* | cegcc*) 9955 # This hack is so that the source file can tell whether it is being 9956 # built for inclusion in a dll (and should export symbols for example). 9957 lt_prog_compiler_pic='-DDLL_EXPORT' 9958 case $host_os in 9959 os2*) 9960 lt_prog_compiler_static='$wl-static' 9961 ;; 9962 esac 9963 ;; 9964 9965 hpux9* | hpux10* | hpux11*) 9966 lt_prog_compiler_wl='-Wl,' 9967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9968 # not for PA HP-UX. 9969 case $host_cpu in 9970 hppa*64*|ia64*) 9971 # +Z the default 9972 ;; 9973 *) 9974 lt_prog_compiler_pic='+Z' 9975 ;; 9976 esac 9977 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9978 lt_prog_compiler_static='$wl-a ${wl}archive' 9979 ;; 9980 9981 irix5* | irix6* | nonstopux*) 9982 lt_prog_compiler_wl='-Wl,' 9983 # PIC (with -KPIC) is the default. 9984 lt_prog_compiler_static='-non_shared' 9985 ;; 9986 9987 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9988 case $cc_basename in 9989 # old Intel for x86_64, which still supported -KPIC. 9990 ecc*) 9991 lt_prog_compiler_wl='-Wl,' 9992 lt_prog_compiler_pic='-KPIC' 9993 lt_prog_compiler_static='-static' 9994 ;; 9995 # icc used to be incompatible with GCC. 9996 # ICC 10 doesn't accept -KPIC any more. 9997 icc* | ifort*) 9998 lt_prog_compiler_wl='-Wl,' 9999 lt_prog_compiler_pic='-fPIC' 10000 lt_prog_compiler_static='-static' 10001 ;; 10002 # Lahey Fortran 8.1. 10003 lf95*) 10004 lt_prog_compiler_wl='-Wl,' 10005 lt_prog_compiler_pic='--shared' 10006 lt_prog_compiler_static='--static' 10007 ;; 10008 nagfor*) 10009 # NAG Fortran compiler 10010 lt_prog_compiler_wl='-Wl,-Wl,,' 10011 lt_prog_compiler_pic='-PIC' 10012 lt_prog_compiler_static='-Bstatic' 10013 ;; 10014 tcc*) 10015 # Fabrice Bellard et al's Tiny C Compiler 10016 lt_prog_compiler_wl='-Wl,' 10017 lt_prog_compiler_pic='-fPIC' 10018 lt_prog_compiler_static='-static' 10019 ;; 10020 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10021 # Portland Group compilers (*not* the Pentium gcc compiler, 10022 # which looks to be a dead project) 10023 lt_prog_compiler_wl='-Wl,' 10024 lt_prog_compiler_pic='-fpic' 10025 lt_prog_compiler_static='-Bstatic' 10026 ;; 10027 ccc*) 10028 lt_prog_compiler_wl='-Wl,' 10029 # All Alpha code is PIC. 10030 lt_prog_compiler_static='-non_shared' 10031 ;; 10032 xl* | bgxl* | bgf* | mpixl*) 10033 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10034 lt_prog_compiler_wl='-Wl,' 10035 lt_prog_compiler_pic='-qpic' 10036 lt_prog_compiler_static='-qstaticlink' 10037 ;; 10038 *) 10039 case `$CC -V 2>&1 | sed 5q` in 10040 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10041 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10042 lt_prog_compiler_pic='-KPIC' 10043 lt_prog_compiler_static='-Bstatic' 10044 lt_prog_compiler_wl='' 10045 ;; 10046 *Sun\ F* | *Sun*Fortran*) 10047 lt_prog_compiler_pic='-KPIC' 10048 lt_prog_compiler_static='-Bstatic' 10049 lt_prog_compiler_wl='-Qoption ld ' 10050 ;; 10051 *Sun\ C*) 10052 # Sun C 5.9 10053 lt_prog_compiler_pic='-KPIC' 10054 lt_prog_compiler_static='-Bstatic' 10055 lt_prog_compiler_wl='-Wl,' 10056 ;; 10057 *Intel*\ [CF]*Compiler*) 10058 lt_prog_compiler_wl='-Wl,' 10059 lt_prog_compiler_pic='-fPIC' 10060 lt_prog_compiler_static='-static' 10061 ;; 10062 *Portland\ Group*) 10063 lt_prog_compiler_wl='-Wl,' 10064 lt_prog_compiler_pic='-fpic' 10065 lt_prog_compiler_static='-Bstatic' 10066 ;; 10067 esac 10068 ;; 10069 esac 10070 ;; 10071 10072 newsos6) 10073 lt_prog_compiler_pic='-KPIC' 10074 lt_prog_compiler_static='-Bstatic' 10075 ;; 10076 10077 *nto* | *qnx*) 10078 # QNX uses GNU C++, but need to define -shared option too, otherwise 10079 # it will coredump. 10080 lt_prog_compiler_pic='-fPIC -shared' 10081 ;; 10082 10083 osf3* | osf4* | osf5*) 10084 lt_prog_compiler_wl='-Wl,' 10085 # All OSF/1 code is PIC. 10086 lt_prog_compiler_static='-non_shared' 10087 ;; 10088 10089 rdos*) 10090 lt_prog_compiler_static='-non_shared' 10091 ;; 10092 10093 solaris*) 10094 lt_prog_compiler_pic='-KPIC' 10095 lt_prog_compiler_static='-Bstatic' 10096 case $cc_basename in 10097 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10098 lt_prog_compiler_wl='-Qoption ld ';; 10099 *) 10100 lt_prog_compiler_wl='-Wl,';; 10101 esac 10102 ;; 10103 10104 sunos4*) 10105 lt_prog_compiler_wl='-Qoption ld ' 10106 lt_prog_compiler_pic='-PIC' 10107 lt_prog_compiler_static='-Bstatic' 10108 ;; 10109 10110 sysv4 | sysv4.2uw2* | sysv4.3*) 10111 lt_prog_compiler_wl='-Wl,' 10112 lt_prog_compiler_pic='-KPIC' 10113 lt_prog_compiler_static='-Bstatic' 10114 ;; 10115 10116 sysv4*MP*) 10117 if test -d /usr/nec; then 10118 lt_prog_compiler_pic='-Kconform_pic' 10119 lt_prog_compiler_static='-Bstatic' 10120 fi 10121 ;; 10122 10123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10124 lt_prog_compiler_wl='-Wl,' 10125 lt_prog_compiler_pic='-KPIC' 10126 lt_prog_compiler_static='-Bstatic' 10127 ;; 10128 10129 unicos*) 10130 lt_prog_compiler_wl='-Wl,' 10131 lt_prog_compiler_can_build_shared=no 10132 ;; 10133 10134 uts4*) 10135 lt_prog_compiler_pic='-pic' 10136 lt_prog_compiler_static='-Bstatic' 10137 ;; 10138 10139 *) 10140 lt_prog_compiler_can_build_shared=no 10141 ;; 10142 esac 10143 fi 10144 10145case $host_os in 10146 # For platforms that do not support PIC, -DPIC is meaningless: 10147 *djgpp*) 10148 lt_prog_compiler_pic= 10149 ;; 10150 *) 10151 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10152 ;; 10153esac 10154 10155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10156printf %s "checking for $compiler option to produce PIC... " >&6; } 10157if test ${lt_cv_prog_compiler_pic+y} 10158then : 10159 printf %s "(cached) " >&6 10160else $as_nop 10161 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10162fi 10163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10164printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10165lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10166 10167# 10168# Check to make sure the PIC flag actually works. 10169# 10170if test -n "$lt_prog_compiler_pic"; then 10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10172printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10173if test ${lt_cv_prog_compiler_pic_works+y} 10174then : 10175 printf %s "(cached) " >&6 10176else $as_nop 10177 lt_cv_prog_compiler_pic_works=no 10178 ac_outfile=conftest.$ac_objext 10179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10181 # Insert the option either (1) after the last *FLAGS variable, or 10182 # (2) before a word containing "conftest.", or (3) at the end. 10183 # Note that $ac_compile itself does not contain backslashes and begins 10184 # with a dollar sign (not a hyphen), so the echo should work correctly. 10185 # The option is referenced via a variable to avoid confusing sed. 10186 lt_compile=`echo "$ac_compile" | $SED \ 10187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10189 -e 's:$: $lt_compiler_flag:'` 10190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10191 (eval "$lt_compile" 2>conftest.err) 10192 ac_status=$? 10193 cat conftest.err >&5 10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10195 if (exit $ac_status) && test -s "$ac_outfile"; then 10196 # The compiler can only warn and ignore the option if not recognized 10197 # So say no if there are warnings other than the usual output. 10198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10201 lt_cv_prog_compiler_pic_works=yes 10202 fi 10203 fi 10204 $RM conftest* 10205 10206fi 10207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10208printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10209 10210if test yes = "$lt_cv_prog_compiler_pic_works"; then 10211 case $lt_prog_compiler_pic in 10212 "" | " "*) ;; 10213 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10214 esac 10215else 10216 lt_prog_compiler_pic= 10217 lt_prog_compiler_can_build_shared=no 10218fi 10219 10220fi 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232# 10233# Check to make sure the static flag actually works. 10234# 10235wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10237printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10238if test ${lt_cv_prog_compiler_static_works+y} 10239then : 10240 printf %s "(cached) " >&6 10241else $as_nop 10242 lt_cv_prog_compiler_static_works=no 10243 save_LDFLAGS=$LDFLAGS 10244 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10245 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10247 # The linker can only warn and ignore the option if not recognized 10248 # So say no if there are warnings 10249 if test -s conftest.err; then 10250 # Append any errors to the config.log. 10251 cat conftest.err 1>&5 10252 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10254 if diff conftest.exp conftest.er2 >/dev/null; then 10255 lt_cv_prog_compiler_static_works=yes 10256 fi 10257 else 10258 lt_cv_prog_compiler_static_works=yes 10259 fi 10260 fi 10261 $RM -r conftest* 10262 LDFLAGS=$save_LDFLAGS 10263 10264fi 10265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10266printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10267 10268if test yes = "$lt_cv_prog_compiler_static_works"; then 10269 : 10270else 10271 lt_prog_compiler_static= 10272fi 10273 10274 10275 10276 10277 10278 10279 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10281printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10282if test ${lt_cv_prog_compiler_c_o+y} 10283then : 10284 printf %s "(cached) " >&6 10285else $as_nop 10286 lt_cv_prog_compiler_c_o=no 10287 $RM -r conftest 2>/dev/null 10288 mkdir conftest 10289 cd conftest 10290 mkdir out 10291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10292 10293 lt_compiler_flag="-o out/conftest2.$ac_objext" 10294 # Insert the option either (1) after the last *FLAGS variable, or 10295 # (2) before a word containing "conftest.", or (3) at the end. 10296 # Note that $ac_compile itself does not contain backslashes and begins 10297 # with a dollar sign (not a hyphen), so the echo should work correctly. 10298 lt_compile=`echo "$ac_compile" | $SED \ 10299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10301 -e 's:$: $lt_compiler_flag:'` 10302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10303 (eval "$lt_compile" 2>out/conftest.err) 10304 ac_status=$? 10305 cat out/conftest.err >&5 10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10307 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10308 then 10309 # The compiler can only warn and ignore the option if not recognized 10310 # So say no if there are warnings 10311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10314 lt_cv_prog_compiler_c_o=yes 10315 fi 10316 fi 10317 chmod u+w . 2>&5 10318 $RM conftest* 10319 # SGI C++ compiler will create directory out/ii_files/ for 10320 # template instantiation 10321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10322 $RM out/* && rmdir out 10323 cd .. 10324 $RM -r conftest 10325 $RM conftest* 10326 10327fi 10328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10329printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10330 10331 10332 10333 10334 10335 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10337printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10338if test ${lt_cv_prog_compiler_c_o+y} 10339then : 10340 printf %s "(cached) " >&6 10341else $as_nop 10342 lt_cv_prog_compiler_c_o=no 10343 $RM -r conftest 2>/dev/null 10344 mkdir conftest 10345 cd conftest 10346 mkdir out 10347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10348 10349 lt_compiler_flag="-o out/conftest2.$ac_objext" 10350 # Insert the option either (1) after the last *FLAGS variable, or 10351 # (2) before a word containing "conftest.", or (3) at the end. 10352 # Note that $ac_compile itself does not contain backslashes and begins 10353 # with a dollar sign (not a hyphen), so the echo should work correctly. 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>out/conftest.err) 10360 ac_status=$? 10361 cat out/conftest.err >&5 10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10363 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10364 then 10365 # The compiler can only warn and ignore the option if not recognized 10366 # So say no if there are warnings 10367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10370 lt_cv_prog_compiler_c_o=yes 10371 fi 10372 fi 10373 chmod u+w . 2>&5 10374 $RM conftest* 10375 # SGI C++ compiler will create directory out/ii_files/ for 10376 # template instantiation 10377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10378 $RM out/* && rmdir out 10379 cd .. 10380 $RM -r conftest 10381 $RM conftest* 10382 10383fi 10384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10385printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10386 10387 10388 10389 10390hard_links=nottested 10391if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10392 # do not overwrite the value of need_locks provided by the user 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10394printf %s "checking if we can lock with hard links... " >&6; } 10395 hard_links=yes 10396 $RM conftest* 10397 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10398 touch conftest.a 10399 ln conftest.a conftest.b 2>&5 || hard_links=no 10400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10402printf "%s\n" "$hard_links" >&6; } 10403 if test no = "$hard_links"; then 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10405printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10406 need_locks=warn 10407 fi 10408else 10409 need_locks=no 10410fi 10411 10412 10413 10414 10415 10416 10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10418printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10419 10420 runpath_var= 10421 allow_undefined_flag= 10422 always_export_symbols=no 10423 archive_cmds= 10424 archive_expsym_cmds= 10425 compiler_needs_object=no 10426 enable_shared_with_static_runtimes=no 10427 export_dynamic_flag_spec= 10428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10429 hardcode_automatic=no 10430 hardcode_direct=no 10431 hardcode_direct_absolute=no 10432 hardcode_libdir_flag_spec= 10433 hardcode_libdir_separator= 10434 hardcode_minus_L=no 10435 hardcode_shlibpath_var=unsupported 10436 inherit_rpath=no 10437 link_all_deplibs=unknown 10438 module_cmds= 10439 module_expsym_cmds= 10440 old_archive_from_new_cmds= 10441 old_archive_from_expsyms_cmds= 10442 thread_safe_flag_spec= 10443 whole_archive_flag_spec= 10444 # include_expsyms should be a list of space-separated symbols to be *always* 10445 # included in the symbol list 10446 include_expsyms= 10447 # exclude_expsyms can be an extended regexp of symbols to exclude 10448 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10449 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10450 # as well as any symbol that contains 'd'. 10451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10453 # platforms (ab)use it in PIC code, but their linkers get confused if 10454 # the symbol is explicitly referenced. Since portable code cannot 10455 # rely on this symbol name, it's probably fine to never include it in 10456 # preloaded symbol tables. 10457 # Exclude shared library initialization/finalization symbols. 10458 extract_expsyms_cmds= 10459 10460 case $host_os in 10461 cygwin* | mingw* | pw32* | cegcc*) 10462 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10463 # When not using gcc, we currently assume that we are using 10464 # Microsoft Visual C++ or Intel C++ Compiler. 10465 if test yes != "$GCC"; then 10466 with_gnu_ld=no 10467 fi 10468 ;; 10469 interix*) 10470 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10471 with_gnu_ld=yes 10472 ;; 10473 openbsd* | bitrig*) 10474 with_gnu_ld=no 10475 ;; 10476 esac 10477 10478 ld_shlibs=yes 10479 10480 # On some targets, GNU ld is compatible enough with the native linker 10481 # that we're better off using the native interface for both. 10482 lt_use_gnu_ld_interface=no 10483 if test yes = "$with_gnu_ld"; then 10484 case $host_os in 10485 aix*) 10486 # The AIX port of GNU ld has always aspired to compatibility 10487 # with the native linker. However, as the warning in the GNU ld 10488 # block says, versions before 2.19.5* couldn't really create working 10489 # shared libraries, regardless of the interface used. 10490 case `$LD -v 2>&1` in 10491 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10492 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10493 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10494 *) 10495 lt_use_gnu_ld_interface=yes 10496 ;; 10497 esac 10498 ;; 10499 *) 10500 lt_use_gnu_ld_interface=yes 10501 ;; 10502 esac 10503 fi 10504 10505 if test yes = "$lt_use_gnu_ld_interface"; then 10506 # If archive_cmds runs LD, not CC, wlarc should be empty 10507 wlarc='$wl' 10508 10509 # Set some defaults for GNU ld with shared library support. These 10510 # are reset later if shared libraries are not supported. Putting them 10511 # here allows them to be overridden if necessary. 10512 runpath_var=LD_RUN_PATH 10513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10514 export_dynamic_flag_spec='$wl--export-dynamic' 10515 # ancient GNU ld didn't support --whole-archive et. al. 10516 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10517 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10518 else 10519 whole_archive_flag_spec= 10520 fi 10521 supports_anon_versioning=no 10522 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10523 *GNU\ gold*) supports_anon_versioning=yes ;; 10524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10527 *\ 2.11.*) ;; # other 2.11 versions 10528 *) supports_anon_versioning=yes ;; 10529 esac 10530 10531 # See if GNU ld supports shared libraries. 10532 case $host_os in 10533 aix[3-9]*) 10534 # On AIX/PPC, the GNU linker is very broken 10535 if test ia64 != "$host_cpu"; then 10536 ld_shlibs=no 10537 cat <<_LT_EOF 1>&2 10538 10539*** Warning: the GNU linker, at least up to release 2.19, is reported 10540*** to be unable to reliably create shared libraries on AIX. 10541*** Therefore, libtool is disabling shared libraries support. If you 10542*** really care for shared libraries, you may want to install binutils 10543*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10544*** You will then need to restart the configuration process. 10545 10546_LT_EOF 10547 fi 10548 ;; 10549 10550 amigaos*) 10551 case $host_cpu in 10552 powerpc) 10553 # see comment about AmigaOS4 .so support 10554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10555 archive_expsym_cmds='' 10556 ;; 10557 m68k) 10558 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)' 10559 hardcode_libdir_flag_spec='-L$libdir' 10560 hardcode_minus_L=yes 10561 ;; 10562 esac 10563 ;; 10564 10565 beos*) 10566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10567 allow_undefined_flag=unsupported 10568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10569 # support --undefined. This deserves some investigation. FIXME 10570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10571 else 10572 ld_shlibs=no 10573 fi 10574 ;; 10575 10576 cygwin* | mingw* | pw32* | cegcc*) 10577 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10578 # as there is no search path for DLLs. 10579 hardcode_libdir_flag_spec='-L$libdir' 10580 export_dynamic_flag_spec='$wl--export-all-symbols' 10581 allow_undefined_flag=unsupported 10582 always_export_symbols=no 10583 enable_shared_with_static_runtimes=yes 10584 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' 10585 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10586 10587 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10589 # If the export-symbols file already is a .def file, use it as 10590 # is; otherwise, prepend EXPORTS... 10591 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10592 cp $export_symbols $output_objdir/$soname.def; 10593 else 10594 echo EXPORTS > $output_objdir/$soname.def; 10595 cat $export_symbols >> $output_objdir/$soname.def; 10596 fi~ 10597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10598 else 10599 ld_shlibs=no 10600 fi 10601 ;; 10602 10603 haiku*) 10604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10605 link_all_deplibs=yes 10606 ;; 10607 10608 os2*) 10609 hardcode_libdir_flag_spec='-L$libdir' 10610 hardcode_minus_L=yes 10611 allow_undefined_flag=unsupported 10612 shrext_cmds=.dll 10613 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10614 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10615 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10616 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10617 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10618 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10619 emximp -o $lib $output_objdir/$libname.def' 10620 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10621 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10622 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10623 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10624 prefix_cmds="$SED"~ 10625 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10626 prefix_cmds="$prefix_cmds -e 1d"; 10627 fi~ 10628 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10629 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10630 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10631 emximp -o $lib $output_objdir/$libname.def' 10632 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10633 enable_shared_with_static_runtimes=yes 10634 file_list_spec='@' 10635 ;; 10636 10637 interix[3-9]*) 10638 hardcode_direct=no 10639 hardcode_shlibpath_var=no 10640 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10641 export_dynamic_flag_spec='$wl-E' 10642 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10643 # Instead, shared libraries are loaded at an image base (0x10000000 by 10644 # default) and relocated if they conflict, which is a slow very memory 10645 # consuming and fragmenting process. To avoid this, we pick a random, 10646 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10647 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10648 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10649 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' 10650 ;; 10651 10652 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10653 tmp_diet=no 10654 if test linux-dietlibc = "$host_os"; then 10655 case $cc_basename in 10656 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10657 esac 10658 fi 10659 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10660 && test no = "$tmp_diet" 10661 then 10662 tmp_addflag=' $pic_flag' 10663 tmp_sharedflag='-shared' 10664 case $cc_basename,$host_cpu in 10665 pgcc*) # Portland Group C compiler 10666 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' 10667 tmp_addflag=' $pic_flag' 10668 ;; 10669 pgf77* | pgf90* | pgf95* | pgfortran*) 10670 # Portland Group f77 and f90 compilers 10671 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' 10672 tmp_addflag=' $pic_flag -Mnomain' ;; 10673 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10674 tmp_addflag=' -i_dynamic' ;; 10675 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10676 tmp_addflag=' -i_dynamic -nofor_main' ;; 10677 ifc* | ifort*) # Intel Fortran compiler 10678 tmp_addflag=' -nofor_main' ;; 10679 lf95*) # Lahey Fortran 8.1 10680 whole_archive_flag_spec= 10681 tmp_sharedflag='--shared' ;; 10682 nagfor*) # NAGFOR 5.3 10683 tmp_sharedflag='-Wl,-shared' ;; 10684 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10685 tmp_sharedflag='-qmkshrobj' 10686 tmp_addflag= ;; 10687 nvcc*) # Cuda Compiler Driver 2.2 10688 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' 10689 compiler_needs_object=yes 10690 ;; 10691 esac 10692 case `$CC -V 2>&1 | sed 5q` in 10693 *Sun\ C*) # Sun C 5.9 10694 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' 10695 compiler_needs_object=yes 10696 tmp_sharedflag='-G' ;; 10697 *Sun\ F*) # Sun Fortran 8.3 10698 tmp_sharedflag='-G' ;; 10699 esac 10700 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10701 10702 if test yes = "$supports_anon_versioning"; then 10703 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10705 echo "local: *; };" >> $output_objdir/$libname.ver~ 10706 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10707 fi 10708 10709 case $cc_basename in 10710 tcc*) 10711 export_dynamic_flag_spec='-rdynamic' 10712 ;; 10713 xlf* | bgf* | bgxlf* | mpixlf*) 10714 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10715 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10717 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10718 if test yes = "$supports_anon_versioning"; then 10719 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10720 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10721 echo "local: *; };" >> $output_objdir/$libname.ver~ 10722 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10723 fi 10724 ;; 10725 esac 10726 else 10727 ld_shlibs=no 10728 fi 10729 ;; 10730 10731 netbsd*) 10732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10733 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10734 wlarc= 10735 else 10736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10738 fi 10739 ;; 10740 10741 solaris*) 10742 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10743 ld_shlibs=no 10744 cat <<_LT_EOF 1>&2 10745 10746*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10747*** create shared libraries on Solaris systems. Therefore, libtool 10748*** is disabling shared libraries support. We urge you to upgrade GNU 10749*** binutils to release 2.9.1 or newer. Another option is to modify 10750*** your PATH or compiler configuration so that the native linker is 10751*** used, and then restart. 10752 10753_LT_EOF 10754 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10755 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10756 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10757 else 10758 ld_shlibs=no 10759 fi 10760 ;; 10761 10762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10763 case `$LD -v 2>&1` in 10764 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10765 ld_shlibs=no 10766 cat <<_LT_EOF 1>&2 10767 10768*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10769*** reliably create shared libraries on SCO systems. Therefore, libtool 10770*** is disabling shared libraries support. We urge you to upgrade GNU 10771*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10772*** your PATH or compiler configuration so that the native linker is 10773*** used, and then restart. 10774 10775_LT_EOF 10776 ;; 10777 *) 10778 # For security reasons, it is highly recommended that you always 10779 # use absolute paths for naming shared libraries, and exclude the 10780 # DT_RUNPATH tag from executables and libraries. But doing so 10781 # requires that you compile everything twice, which is a pain. 10782 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10783 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10786 else 10787 ld_shlibs=no 10788 fi 10789 ;; 10790 esac 10791 ;; 10792 10793 sunos4*) 10794 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10795 wlarc= 10796 hardcode_direct=yes 10797 hardcode_shlibpath_var=no 10798 ;; 10799 10800 *) 10801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10802 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10803 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10804 else 10805 ld_shlibs=no 10806 fi 10807 ;; 10808 esac 10809 10810 if test no = "$ld_shlibs"; then 10811 runpath_var= 10812 hardcode_libdir_flag_spec= 10813 export_dynamic_flag_spec= 10814 whole_archive_flag_spec= 10815 fi 10816 else 10817 # PORTME fill in a description of your system's linker (not GNU ld) 10818 case $host_os in 10819 aix3*) 10820 allow_undefined_flag=unsupported 10821 always_export_symbols=yes 10822 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' 10823 # Note: this linker hardcodes the directories in LIBPATH if there 10824 # are no directories specified by -L. 10825 hardcode_minus_L=yes 10826 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10827 # Neither direct hardcoding nor static linking is supported with a 10828 # broken collect2. 10829 hardcode_direct=unsupported 10830 fi 10831 ;; 10832 10833 aix[4-9]*) 10834 if test ia64 = "$host_cpu"; then 10835 # On IA64, the linker does run time linking by default, so we don't 10836 # have to do anything special. 10837 aix_use_runtimelinking=no 10838 exp_sym_flag='-Bexport' 10839 no_entry_flag= 10840 else 10841 # If we're using GNU nm, then we don't want the "-C" option. 10842 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10843 # Without the "-l" option, or with the "-B" option, AIX nm treats 10844 # weak defined symbols like other global defined symbols, whereas 10845 # GNU nm marks them as "W". 10846 # While the 'weak' keyword is ignored in the Export File, we need 10847 # it in the Import File for the 'aix-soname' feature, so we have 10848 # to replace the "-B" option with "-P" for AIX nm. 10849 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10850 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' 10851 else 10852 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' 10853 fi 10854 aix_use_runtimelinking=no 10855 10856 # Test if we are trying to use run time linking or normal 10857 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10858 # have runtime linking enabled, and use it for executables. 10859 # For shared libraries, we enable/disable runtime linking 10860 # depending on the kind of the shared library created - 10861 # when "with_aix_soname,aix_use_runtimelinking" is: 10862 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10863 # "aix,yes" lib.so shared, rtl:yes, for executables 10864 # lib.a static archive 10865 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10866 # lib.a(lib.so.V) shared, rtl:no, for executables 10867 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10868 # lib.a(lib.so.V) shared, rtl:no 10869 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10870 # lib.a static archive 10871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10872 for ld_flag in $LDFLAGS; do 10873 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10874 aix_use_runtimelinking=yes 10875 break 10876 fi 10877 done 10878 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10879 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10880 # so we don't have lib.a shared libs to link our executables. 10881 # We have to force runtime linking in this case. 10882 aix_use_runtimelinking=yes 10883 LDFLAGS="$LDFLAGS -Wl,-brtl" 10884 fi 10885 ;; 10886 esac 10887 10888 exp_sym_flag='-bexport' 10889 no_entry_flag='-bnoentry' 10890 fi 10891 10892 # When large executables or shared objects are built, AIX ld can 10893 # have problems creating the table of contents. If linking a library 10894 # or program results in "error TOC overflow" add -mminimal-toc to 10895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10897 10898 archive_cmds='' 10899 hardcode_direct=yes 10900 hardcode_direct_absolute=yes 10901 hardcode_libdir_separator=':' 10902 link_all_deplibs=yes 10903 file_list_spec='$wl-f,' 10904 case $with_aix_soname,$aix_use_runtimelinking in 10905 aix,*) ;; # traditional, no import file 10906 svr4,* | *,yes) # use import file 10907 # The Import File defines what to hardcode. 10908 hardcode_direct=no 10909 hardcode_direct_absolute=no 10910 ;; 10911 esac 10912 10913 if test yes = "$GCC"; then 10914 case $host_os in aix4.[012]|aix4.[012].*) 10915 # We only want to do this on AIX 4.2 and lower, the check 10916 # below for broken collect2 doesn't work under 4.3+ 10917 collect2name=`$CC -print-prog-name=collect2` 10918 if test -f "$collect2name" && 10919 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10920 then 10921 # We have reworked collect2 10922 : 10923 else 10924 # We have old collect2 10925 hardcode_direct=unsupported 10926 # It fails to find uninstalled libraries when the uninstalled 10927 # path is not listed in the libpath. Setting hardcode_minus_L 10928 # to unsupported forces relinking 10929 hardcode_minus_L=yes 10930 hardcode_libdir_flag_spec='-L$libdir' 10931 hardcode_libdir_separator= 10932 fi 10933 ;; 10934 esac 10935 shared_flag='-shared' 10936 if test yes = "$aix_use_runtimelinking"; then 10937 shared_flag="$shared_flag "'$wl-G' 10938 fi 10939 # Need to ensure runtime linking is disabled for the traditional 10940 # shared library, or the linker may eventually find shared libraries 10941 # /with/ Import File - we do not want to mix them. 10942 shared_flag_aix='-shared' 10943 shared_flag_svr4='-shared $wl-G' 10944 else 10945 # not using gcc 10946 if test ia64 = "$host_cpu"; then 10947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10948 # chokes on -Wl,-G. The following line is correct: 10949 shared_flag='-G' 10950 else 10951 if test yes = "$aix_use_runtimelinking"; then 10952 shared_flag='$wl-G' 10953 else 10954 shared_flag='$wl-bM:SRE' 10955 fi 10956 shared_flag_aix='$wl-bM:SRE' 10957 shared_flag_svr4='$wl-G' 10958 fi 10959 fi 10960 10961 export_dynamic_flag_spec='$wl-bexpall' 10962 # It seems that -bexpall does not export symbols beginning with 10963 # underscore (_), so it is better to generate a list of symbols to export. 10964 always_export_symbols=yes 10965 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10966 # Warning - without using the other runtime loading flags (-brtl), 10967 # -berok will link without error, but may produce a broken library. 10968 allow_undefined_flag='-berok' 10969 # Determine the default libpath from the value encoded in an 10970 # empty executable. 10971 if test set = "${lt_cv_aix_libpath+set}"; then 10972 aix_libpath=$lt_cv_aix_libpath 10973else 10974 if test ${lt_cv_aix_libpath_+y} 10975then : 10976 printf %s "(cached) " >&6 10977else $as_nop 10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10979/* end confdefs.h. */ 10980 10981int 10982main (void) 10983{ 10984 10985 ; 10986 return 0; 10987} 10988_ACEOF 10989if ac_fn_c_try_link "$LINENO" 10990then : 10991 10992 lt_aix_libpath_sed=' 10993 /Import File Strings/,/^$/ { 10994 /^0/ { 10995 s/^0 *\([^ ]*\) *$/\1/ 10996 p 10997 } 10998 }' 10999 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11000 # Check for a 64-bit object if we didn't find anything. 11001 if test -z "$lt_cv_aix_libpath_"; then 11002 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11003 fi 11004fi 11005rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11006 conftest$ac_exeext conftest.$ac_ext 11007 if test -z "$lt_cv_aix_libpath_"; then 11008 lt_cv_aix_libpath_=/usr/lib:/lib 11009 fi 11010 11011fi 11012 11013 aix_libpath=$lt_cv_aix_libpath_ 11014fi 11015 11016 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11017 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 11018 else 11019 if test ia64 = "$host_cpu"; then 11020 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11021 allow_undefined_flag="-z nodefs" 11022 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" 11023 else 11024 # Determine the default libpath from the value encoded in an 11025 # empty executable. 11026 if test set = "${lt_cv_aix_libpath+set}"; then 11027 aix_libpath=$lt_cv_aix_libpath 11028else 11029 if test ${lt_cv_aix_libpath_+y} 11030then : 11031 printf %s "(cached) " >&6 11032else $as_nop 11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11034/* end confdefs.h. */ 11035 11036int 11037main (void) 11038{ 11039 11040 ; 11041 return 0; 11042} 11043_ACEOF 11044if ac_fn_c_try_link "$LINENO" 11045then : 11046 11047 lt_aix_libpath_sed=' 11048 /Import File Strings/,/^$/ { 11049 /^0/ { 11050 s/^0 *\([^ ]*\) *$/\1/ 11051 p 11052 } 11053 }' 11054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11055 # Check for a 64-bit object if we didn't find anything. 11056 if test -z "$lt_cv_aix_libpath_"; then 11057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11058 fi 11059fi 11060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11061 conftest$ac_exeext conftest.$ac_ext 11062 if test -z "$lt_cv_aix_libpath_"; then 11063 lt_cv_aix_libpath_=/usr/lib:/lib 11064 fi 11065 11066fi 11067 11068 aix_libpath=$lt_cv_aix_libpath_ 11069fi 11070 11071 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11072 # Warning - without using the other run time loading flags, 11073 # -berok will link without error, but may produce a broken library. 11074 no_undefined_flag=' $wl-bernotok' 11075 allow_undefined_flag=' $wl-berok' 11076 if test yes = "$with_gnu_ld"; then 11077 # We only use this code for GNU lds that support --whole-archive. 11078 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11079 else 11080 # Exported symbols can be pulled into shared objects from archives 11081 whole_archive_flag_spec='$convenience' 11082 fi 11083 archive_cmds_need_lc=yes 11084 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11085 # -brtl affects multiple linker settings, -berok does not and is overridden later 11086 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11087 if test svr4 != "$with_aix_soname"; then 11088 # This is similar to how AIX traditionally builds its shared libraries. 11089 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' 11090 fi 11091 if test aix != "$with_aix_soname"; then 11092 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' 11093 else 11094 # used by -dlpreopen to get the symbols 11095 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11096 fi 11097 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11098 fi 11099 fi 11100 ;; 11101 11102 amigaos*) 11103 case $host_cpu in 11104 powerpc) 11105 # see comment about AmigaOS4 .so support 11106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11107 archive_expsym_cmds='' 11108 ;; 11109 m68k) 11110 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)' 11111 hardcode_libdir_flag_spec='-L$libdir' 11112 hardcode_minus_L=yes 11113 ;; 11114 esac 11115 ;; 11116 11117 bsdi[45]*) 11118 export_dynamic_flag_spec=-rdynamic 11119 ;; 11120 11121 cygwin* | mingw* | pw32* | cegcc*) 11122 # When not using gcc, we currently assume that we are using 11123 # Microsoft Visual C++ or Intel C++ Compiler. 11124 # hardcode_libdir_flag_spec is actually meaningless, as there is 11125 # no search path for DLLs. 11126 case $cc_basename in 11127 cl* | icl*) 11128 # Native MSVC or ICC 11129 hardcode_libdir_flag_spec=' ' 11130 allow_undefined_flag=unsupported 11131 always_export_symbols=yes 11132 file_list_spec='@' 11133 # Tell ltmain to make .lib files, not .a files. 11134 libext=lib 11135 # Tell ltmain to make .dll files, not .so files. 11136 shrext_cmds=.dll 11137 # FIXME: Setting linknames here is a bad hack. 11138 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11139 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11140 cp "$export_symbols" "$output_objdir/$soname.def"; 11141 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11142 else 11143 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11144 fi~ 11145 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11146 linknames=' 11147 # The linker will not automatically build a static lib if we build a DLL. 11148 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11149 enable_shared_with_static_runtimes=yes 11150 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11152 # Don't use ranlib 11153 old_postinstall_cmds='chmod 644 $oldlib' 11154 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11155 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11156 case $lt_outputfile in 11157 *.exe|*.EXE) ;; 11158 *) 11159 lt_outputfile=$lt_outputfile.exe 11160 lt_tool_outputfile=$lt_tool_outputfile.exe 11161 ;; 11162 esac~ 11163 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11164 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11165 $RM "$lt_outputfile.manifest"; 11166 fi' 11167 ;; 11168 *) 11169 # Assume MSVC and ICC wrapper 11170 hardcode_libdir_flag_spec=' ' 11171 allow_undefined_flag=unsupported 11172 # Tell ltmain to make .lib files, not .a files. 11173 libext=lib 11174 # Tell ltmain to make .dll files, not .so files. 11175 shrext_cmds=.dll 11176 # FIXME: Setting linknames here is a bad hack. 11177 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11178 # The linker will automatically build a .lib file if we build a DLL. 11179 old_archive_from_new_cmds='true' 11180 # FIXME: Should let the user specify the lib program. 11181 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11182 enable_shared_with_static_runtimes=yes 11183 ;; 11184 esac 11185 ;; 11186 11187 darwin* | rhapsody*) 11188 11189 11190 archive_cmds_need_lc=no 11191 hardcode_direct=no 11192 hardcode_automatic=yes 11193 hardcode_shlibpath_var=unsupported 11194 if test yes = "$lt_cv_ld_force_load"; then 11195 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\"`' 11196 11197 else 11198 whole_archive_flag_spec='' 11199 fi 11200 link_all_deplibs=yes 11201 allow_undefined_flag=$_lt_dar_allow_undefined 11202 case $cc_basename in 11203 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11204 *) _lt_dar_can_shared=$GCC ;; 11205 esac 11206 if test yes = "$_lt_dar_can_shared"; then 11207 output_verbose_link_cmd=func_echo_all 11208 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11209 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11210 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" 11211 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" 11212 11213 else 11214 ld_shlibs=no 11215 fi 11216 11217 ;; 11218 11219 dgux*) 11220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11221 hardcode_libdir_flag_spec='-L$libdir' 11222 hardcode_shlibpath_var=no 11223 ;; 11224 11225 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11226 # support. Future versions do this automatically, but an explicit c++rt0.o 11227 # does not break anything, and helps significantly (at the cost of a little 11228 # extra space). 11229 freebsd2.2*) 11230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11231 hardcode_libdir_flag_spec='-R$libdir' 11232 hardcode_direct=yes 11233 hardcode_shlibpath_var=no 11234 ;; 11235 11236 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11237 freebsd2.*) 11238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11239 hardcode_direct=yes 11240 hardcode_minus_L=yes 11241 hardcode_shlibpath_var=no 11242 ;; 11243 11244 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11245 freebsd* | dragonfly*) 11246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11247 hardcode_libdir_flag_spec='-R$libdir' 11248 hardcode_direct=yes 11249 hardcode_shlibpath_var=no 11250 ;; 11251 11252 hpux9*) 11253 if test yes = "$GCC"; then 11254 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' 11255 else 11256 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' 11257 fi 11258 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11259 hardcode_libdir_separator=: 11260 hardcode_direct=yes 11261 11262 # hardcode_minus_L: Not really in the search PATH, 11263 # but as the default location of the library. 11264 hardcode_minus_L=yes 11265 export_dynamic_flag_spec='$wl-E' 11266 ;; 11267 11268 hpux10*) 11269 if test yes,no = "$GCC,$with_gnu_ld"; then 11270 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11271 else 11272 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11273 fi 11274 if test no = "$with_gnu_ld"; then 11275 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11276 hardcode_libdir_separator=: 11277 hardcode_direct=yes 11278 hardcode_direct_absolute=yes 11279 export_dynamic_flag_spec='$wl-E' 11280 # hardcode_minus_L: Not really in the search PATH, 11281 # but as the default location of the library. 11282 hardcode_minus_L=yes 11283 fi 11284 ;; 11285 11286 hpux11*) 11287 if test yes,no = "$GCC,$with_gnu_ld"; then 11288 case $host_cpu in 11289 hppa*64*) 11290 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11291 ;; 11292 ia64*) 11293 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11294 ;; 11295 *) 11296 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11297 ;; 11298 esac 11299 else 11300 case $host_cpu in 11301 hppa*64*) 11302 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11303 ;; 11304 ia64*) 11305 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11306 ;; 11307 *) 11308 11309 # Older versions of the 11.00 compiler do not understand -b yet 11310 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11312printf %s "checking if $CC understands -b... " >&6; } 11313if test ${lt_cv_prog_compiler__b+y} 11314then : 11315 printf %s "(cached) " >&6 11316else $as_nop 11317 lt_cv_prog_compiler__b=no 11318 save_LDFLAGS=$LDFLAGS 11319 LDFLAGS="$LDFLAGS -b" 11320 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11322 # The linker can only warn and ignore the option if not recognized 11323 # So say no if there are warnings 11324 if test -s conftest.err; then 11325 # Append any errors to the config.log. 11326 cat conftest.err 1>&5 11327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11329 if diff conftest.exp conftest.er2 >/dev/null; then 11330 lt_cv_prog_compiler__b=yes 11331 fi 11332 else 11333 lt_cv_prog_compiler__b=yes 11334 fi 11335 fi 11336 $RM -r conftest* 11337 LDFLAGS=$save_LDFLAGS 11338 11339fi 11340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11341printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11342 11343if test yes = "$lt_cv_prog_compiler__b"; then 11344 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11345else 11346 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11347fi 11348 11349 ;; 11350 esac 11351 fi 11352 if test no = "$with_gnu_ld"; then 11353 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11354 hardcode_libdir_separator=: 11355 11356 case $host_cpu in 11357 hppa*64*|ia64*) 11358 hardcode_direct=no 11359 hardcode_shlibpath_var=no 11360 ;; 11361 *) 11362 hardcode_direct=yes 11363 hardcode_direct_absolute=yes 11364 export_dynamic_flag_spec='$wl-E' 11365 11366 # hardcode_minus_L: Not really in the search PATH, 11367 # but as the default location of the library. 11368 hardcode_minus_L=yes 11369 ;; 11370 esac 11371 fi 11372 ;; 11373 11374 irix5* | irix6* | nonstopux*) 11375 if test yes = "$GCC"; then 11376 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' 11377 # Try to use the -exported_symbol ld option, if it does not 11378 # work, assume that -exports_file does not work either and 11379 # implicitly export all symbols. 11380 # This should be the same for all languages, so no per-tag cache variable. 11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11382printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11383if test ${lt_cv_irix_exported_symbol+y} 11384then : 11385 printf %s "(cached) " >&6 11386else $as_nop 11387 save_LDFLAGS=$LDFLAGS 11388 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390/* end confdefs.h. */ 11391int foo (void) { return 0; } 11392_ACEOF 11393if ac_fn_c_try_link "$LINENO" 11394then : 11395 lt_cv_irix_exported_symbol=yes 11396else $as_nop 11397 lt_cv_irix_exported_symbol=no 11398fi 11399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11400 conftest$ac_exeext conftest.$ac_ext 11401 LDFLAGS=$save_LDFLAGS 11402fi 11403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11404printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11405 if test yes = "$lt_cv_irix_exported_symbol"; then 11406 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' 11407 fi 11408 else 11409 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' 11410 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' 11411 fi 11412 archive_cmds_need_lc='no' 11413 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11414 hardcode_libdir_separator=: 11415 inherit_rpath=yes 11416 link_all_deplibs=yes 11417 ;; 11418 11419 linux*) 11420 case $cc_basename in 11421 tcc*) 11422 # Fabrice Bellard et al's Tiny C Compiler 11423 ld_shlibs=yes 11424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11425 ;; 11426 esac 11427 ;; 11428 11429 netbsd*) 11430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11432 else 11433 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11434 fi 11435 hardcode_libdir_flag_spec='-R$libdir' 11436 hardcode_direct=yes 11437 hardcode_shlibpath_var=no 11438 ;; 11439 11440 newsos6) 11441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11442 hardcode_direct=yes 11443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11444 hardcode_libdir_separator=: 11445 hardcode_shlibpath_var=no 11446 ;; 11447 11448 *nto* | *qnx*) 11449 ;; 11450 11451 openbsd* | bitrig*) 11452 if test -f /usr/libexec/ld.so; then 11453 hardcode_direct=yes 11454 hardcode_shlibpath_var=no 11455 hardcode_direct_absolute=yes 11456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11458 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11459 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11460 export_dynamic_flag_spec='$wl-E' 11461 else 11462 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11463 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11464 fi 11465 else 11466 ld_shlibs=no 11467 fi 11468 ;; 11469 11470 os2*) 11471 hardcode_libdir_flag_spec='-L$libdir' 11472 hardcode_minus_L=yes 11473 allow_undefined_flag=unsupported 11474 shrext_cmds=.dll 11475 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11476 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11477 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11478 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11479 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11480 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11481 emximp -o $lib $output_objdir/$libname.def' 11482 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11483 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11484 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11485 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11486 prefix_cmds="$SED"~ 11487 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11488 prefix_cmds="$prefix_cmds -e 1d"; 11489 fi~ 11490 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11491 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11492 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11493 emximp -o $lib $output_objdir/$libname.def' 11494 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11495 enable_shared_with_static_runtimes=yes 11496 file_list_spec='@' 11497 ;; 11498 11499 osf3*) 11500 if test yes = "$GCC"; then 11501 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11502 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' 11503 else 11504 allow_undefined_flag=' -expect_unresolved \*' 11505 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' 11506 fi 11507 archive_cmds_need_lc='no' 11508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11509 hardcode_libdir_separator=: 11510 ;; 11511 11512 osf4* | osf5*) # as osf3* with the addition of -msym flag 11513 if test yes = "$GCC"; then 11514 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11515 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' 11516 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11517 else 11518 allow_undefined_flag=' -expect_unresolved \*' 11519 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' 11520 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~ 11521 $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' 11522 11523 # Both c and cxx compiler support -rpath directly 11524 hardcode_libdir_flag_spec='-rpath $libdir' 11525 fi 11526 archive_cmds_need_lc='no' 11527 hardcode_libdir_separator=: 11528 ;; 11529 11530 solaris*) 11531 no_undefined_flag=' -z defs' 11532 if test yes = "$GCC"; then 11533 wlarc='$wl' 11534 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11536 $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' 11537 else 11538 case `$CC -V 2>&1` in 11539 *"Compilers 5.0"*) 11540 wlarc='' 11541 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11543 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11544 ;; 11545 *) 11546 wlarc='$wl' 11547 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11549 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11550 ;; 11551 esac 11552 fi 11553 hardcode_libdir_flag_spec='-R$libdir' 11554 hardcode_shlibpath_var=no 11555 case $host_os in 11556 solaris2.[0-5] | solaris2.[0-5].*) ;; 11557 *) 11558 # The compiler driver will combine and reorder linker options, 11559 # but understands '-z linker_flag'. GCC discards it without '$wl', 11560 # but is careful enough not to reorder. 11561 # Supported since Solaris 2.6 (maybe 2.5.1?) 11562 if test yes = "$GCC"; then 11563 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11564 else 11565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11566 fi 11567 ;; 11568 esac 11569 link_all_deplibs=yes 11570 ;; 11571 11572 sunos4*) 11573 if test sequent = "$host_vendor"; then 11574 # Use $CC to link under sequent, because it throws in some extra .o 11575 # files that make .init and .fini sections work. 11576 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11577 else 11578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11579 fi 11580 hardcode_libdir_flag_spec='-L$libdir' 11581 hardcode_direct=yes 11582 hardcode_minus_L=yes 11583 hardcode_shlibpath_var=no 11584 ;; 11585 11586 sysv4) 11587 case $host_vendor in 11588 sni) 11589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11590 hardcode_direct=yes # is this really true??? 11591 ;; 11592 siemens) 11593 ## LD is ld it makes a PLAMLIB 11594 ## CC just makes a GrossModule. 11595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11596 reload_cmds='$CC -r -o $output$reload_objs' 11597 hardcode_direct=no 11598 ;; 11599 motorola) 11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11602 ;; 11603 esac 11604 runpath_var='LD_RUN_PATH' 11605 hardcode_shlibpath_var=no 11606 ;; 11607 11608 sysv4.3*) 11609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11610 hardcode_shlibpath_var=no 11611 export_dynamic_flag_spec='-Bexport' 11612 ;; 11613 11614 sysv4*MP*) 11615 if test -d /usr/nec; then 11616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11617 hardcode_shlibpath_var=no 11618 runpath_var=LD_RUN_PATH 11619 hardcode_runpath_var=yes 11620 ld_shlibs=yes 11621 fi 11622 ;; 11623 11624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11625 no_undefined_flag='$wl-z,text' 11626 archive_cmds_need_lc=no 11627 hardcode_shlibpath_var=no 11628 runpath_var='LD_RUN_PATH' 11629 11630 if test yes = "$GCC"; then 11631 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11632 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11633 else 11634 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11635 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11636 fi 11637 ;; 11638 11639 sysv5* | sco3.2v5* | sco5v6*) 11640 # Note: We CANNOT use -z defs as we might desire, because we do not 11641 # link with -lc, and that would cause any symbols used from libc to 11642 # always be unresolved, which means just about no library would 11643 # ever link correctly. If we're not using GNU ld we use -z text 11644 # though, which does catch some bad symbols but isn't as heavy-handed 11645 # as -z defs. 11646 no_undefined_flag='$wl-z,text' 11647 allow_undefined_flag='$wl-z,nodefs' 11648 archive_cmds_need_lc=no 11649 hardcode_shlibpath_var=no 11650 hardcode_libdir_flag_spec='$wl-R,$libdir' 11651 hardcode_libdir_separator=':' 11652 link_all_deplibs=yes 11653 export_dynamic_flag_spec='$wl-Bexport' 11654 runpath_var='LD_RUN_PATH' 11655 11656 if test yes = "$GCC"; then 11657 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11658 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11659 else 11660 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11661 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11662 fi 11663 ;; 11664 11665 uts4*) 11666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11667 hardcode_libdir_flag_spec='-L$libdir' 11668 hardcode_shlibpath_var=no 11669 ;; 11670 11671 *) 11672 ld_shlibs=no 11673 ;; 11674 esac 11675 11676 if test sni = "$host_vendor"; then 11677 case $host in 11678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11679 export_dynamic_flag_spec='$wl-Blargedynsym' 11680 ;; 11681 esac 11682 fi 11683 fi 11684 11685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11686printf "%s\n" "$ld_shlibs" >&6; } 11687test no = "$ld_shlibs" && can_build_shared=no 11688 11689with_gnu_ld=$with_gnu_ld 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705# 11706# Do we need to explicitly link libc? 11707# 11708case "x$archive_cmds_need_lc" in 11709x|xyes) 11710 # Assume -lc should be added 11711 archive_cmds_need_lc=yes 11712 11713 if test yes,yes = "$GCC,$enable_shared"; then 11714 case $archive_cmds in 11715 *'~'*) 11716 # FIXME: we may have to deal with multi-command sequences. 11717 ;; 11718 '$CC '*) 11719 # Test whether the compiler implicitly links with -lc since on some 11720 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11721 # to ld, don't add -lc before -lgcc. 11722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11723printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11724if test ${lt_cv_archive_cmds_need_lc+y} 11725then : 11726 printf %s "(cached) " >&6 11727else $as_nop 11728 $RM conftest* 11729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11730 11731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11732 (eval $ac_compile) 2>&5 11733 ac_status=$? 11734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11735 test $ac_status = 0; } 2>conftest.err; then 11736 soname=conftest 11737 lib=conftest 11738 libobjs=conftest.$ac_objext 11739 deplibs= 11740 wl=$lt_prog_compiler_wl 11741 pic_flag=$lt_prog_compiler_pic 11742 compiler_flags=-v 11743 linker_flags=-v 11744 verstring= 11745 output_objdir=. 11746 libname=conftest 11747 lt_save_allow_undefined_flag=$allow_undefined_flag 11748 allow_undefined_flag= 11749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11750 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11751 ac_status=$? 11752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11753 test $ac_status = 0; } 11754 then 11755 lt_cv_archive_cmds_need_lc=no 11756 else 11757 lt_cv_archive_cmds_need_lc=yes 11758 fi 11759 allow_undefined_flag=$lt_save_allow_undefined_flag 11760 else 11761 cat conftest.err 1>&5 11762 fi 11763 $RM conftest* 11764 11765fi 11766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11767printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11768 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11769 ;; 11770 esac 11771 fi 11772 ;; 11773esac 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11927printf %s "checking dynamic linker characteristics... " >&6; } 11928 11929if test yes = "$GCC"; then 11930 case $host_os in 11931 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11932 *) lt_awk_arg='/^libraries:/' ;; 11933 esac 11934 case $host_os in 11935 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11936 *) lt_sed_strip_eq='s|=/|/|g' ;; 11937 esac 11938 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11939 case $lt_search_path_spec in 11940 *\;*) 11941 # if the path contains ";" then we assume it to be the separator 11942 # otherwise default to the standard path separator (i.e. ":") - it is 11943 # assumed that no part of a normal pathname contains ";" but that should 11944 # okay in the real world where ";" in dirpaths is itself problematic. 11945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11946 ;; 11947 *) 11948 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11949 ;; 11950 esac 11951 # Ok, now we have the path, separated by spaces, we can step through it 11952 # and add multilib dir if necessary... 11953 lt_tmp_lt_search_path_spec= 11954 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11955 # ...but if some path component already ends with the multilib dir we assume 11956 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11957 case "$lt_multi_os_dir; $lt_search_path_spec " in 11958 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11959 lt_multi_os_dir= 11960 ;; 11961 esac 11962 for lt_sys_path in $lt_search_path_spec; do 11963 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11965 elif test -n "$lt_multi_os_dir"; then 11966 test -d "$lt_sys_path" && \ 11967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11968 fi 11969 done 11970 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11971BEGIN {RS = " "; FS = "/|\n";} { 11972 lt_foo = ""; 11973 lt_count = 0; 11974 for (lt_i = NF; lt_i > 0; lt_i--) { 11975 if ($lt_i != "" && $lt_i != ".") { 11976 if ($lt_i == "..") { 11977 lt_count++; 11978 } else { 11979 if (lt_count == 0) { 11980 lt_foo = "/" $lt_i lt_foo; 11981 } else { 11982 lt_count--; 11983 } 11984 } 11985 } 11986 } 11987 if (lt_foo != "") { lt_freq[lt_foo]++; } 11988 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11989}'` 11990 # AWK program above erroneously prepends '/' to C:/dos/paths 11991 # for these hosts. 11992 case $host_os in 11993 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11994 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11995 esac 11996 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11997else 11998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11999fi 12000library_names_spec= 12001libname_spec='lib$name' 12002soname_spec= 12003shrext_cmds=.so 12004postinstall_cmds= 12005postuninstall_cmds= 12006finish_cmds= 12007finish_eval= 12008shlibpath_var= 12009shlibpath_overrides_runpath=unknown 12010version_type=none 12011dynamic_linker="$host_os ld.so" 12012sys_lib_dlsearch_path_spec="/lib /usr/lib" 12013need_lib_prefix=unknown 12014hardcode_into_libs=no 12015 12016# when you set need_version to no, make sure it does not cause -set_version 12017# flags to be left without arguments 12018need_version=unknown 12019 12020 12021 12022case $host_os in 12023aix3*) 12024 version_type=linux # correct to gnu/linux during the next big refactor 12025 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12026 shlibpath_var=LIBPATH 12027 12028 # AIX 3 has no versioning support, so we append a major version to the name. 12029 soname_spec='$libname$release$shared_ext$major' 12030 ;; 12031 12032aix[4-9]*) 12033 version_type=linux # correct to gnu/linux during the next big refactor 12034 need_lib_prefix=no 12035 need_version=no 12036 hardcode_into_libs=yes 12037 if test ia64 = "$host_cpu"; then 12038 # AIX 5 supports IA64 12039 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12040 shlibpath_var=LD_LIBRARY_PATH 12041 else 12042 # With GCC up to 2.95.x, collect2 would create an import file 12043 # for dependence libraries. The import file would start with 12044 # the line '#! .'. This would cause the generated library to 12045 # depend on '.', always an invalid library. This was fixed in 12046 # development snapshots of GCC prior to 3.0. 12047 case $host_os in 12048 aix4 | aix4.[01] | aix4.[01].*) 12049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12050 echo ' yes ' 12051 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12052 : 12053 else 12054 can_build_shared=no 12055 fi 12056 ;; 12057 esac 12058 # Using Import Files as archive members, it is possible to support 12059 # filename-based versioning of shared library archives on AIX. While 12060 # this would work for both with and without runtime linking, it will 12061 # prevent static linking of such archives. So we do filename-based 12062 # shared library versioning with .so extension only, which is used 12063 # when both runtime linking and shared linking is enabled. 12064 # Unfortunately, runtime linking may impact performance, so we do 12065 # not want this to be the default eventually. Also, we use the 12066 # versioned .so libs for executables only if there is the -brtl 12067 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12068 # To allow for filename-based versioning support, we need to create 12069 # libNAME.so.V as an archive file, containing: 12070 # *) an Import File, referring to the versioned filename of the 12071 # archive as well as the shared archive member, telling the 12072 # bitwidth (32 or 64) of that shared object, and providing the 12073 # list of exported symbols of that shared object, eventually 12074 # decorated with the 'weak' keyword 12075 # *) the shared object with the F_LOADONLY flag set, to really avoid 12076 # it being seen by the linker. 12077 # At run time we better use the real file rather than another symlink, 12078 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12079 12080 case $with_aix_soname,$aix_use_runtimelinking in 12081 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12082 # soname into executable. Probably we can add versioning support to 12083 # collect2, so additional links can be useful in future. 12084 aix,yes) # traditional libtool 12085 dynamic_linker='AIX unversionable lib.so' 12086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12087 # instead of lib<name>.a to let people know that these are not 12088 # typical AIX shared libraries. 12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12090 ;; 12091 aix,no) # traditional AIX only 12092 dynamic_linker='AIX lib.a(lib.so.V)' 12093 # We preserve .a as extension for shared libraries through AIX4.2 12094 # and later when we are not doing run time linking. 12095 library_names_spec='$libname$release.a $libname.a' 12096 soname_spec='$libname$release$shared_ext$major' 12097 ;; 12098 svr4,*) # full svr4 only 12099 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12100 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12101 # We do not specify a path in Import Files, so LIBPATH fires. 12102 shlibpath_overrides_runpath=yes 12103 ;; 12104 *,yes) # both, prefer svr4 12105 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12106 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12107 # unpreferred sharedlib libNAME.a needs extra handling 12108 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"' 12109 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"' 12110 # We do not specify a path in Import Files, so LIBPATH fires. 12111 shlibpath_overrides_runpath=yes 12112 ;; 12113 *,no) # both, prefer aix 12114 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12115 library_names_spec='$libname$release.a $libname.a' 12116 soname_spec='$libname$release$shared_ext$major' 12117 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12118 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)' 12119 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"' 12120 ;; 12121 esac 12122 shlibpath_var=LIBPATH 12123 fi 12124 ;; 12125 12126amigaos*) 12127 case $host_cpu in 12128 powerpc) 12129 # Since July 2007 AmigaOS4 officially supports .so libraries. 12130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12132 ;; 12133 m68k) 12134 library_names_spec='$libname.ixlibrary $libname.a' 12135 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12136 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' 12137 ;; 12138 esac 12139 ;; 12140 12141beos*) 12142 library_names_spec='$libname$shared_ext' 12143 dynamic_linker="$host_os ld.so" 12144 shlibpath_var=LIBRARY_PATH 12145 ;; 12146 12147bsdi[45]*) 12148 version_type=linux # correct to gnu/linux during the next big refactor 12149 need_version=no 12150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12151 soname_spec='$libname$release$shared_ext$major' 12152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12153 shlibpath_var=LD_LIBRARY_PATH 12154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12156 # the default ld.so.conf also contains /usr/contrib/lib and 12157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12158 # libtool to hard-code these into programs 12159 ;; 12160 12161cygwin* | mingw* | pw32* | cegcc*) 12162 version_type=windows 12163 shrext_cmds=.dll 12164 need_version=no 12165 need_lib_prefix=no 12166 12167 case $GCC,$cc_basename in 12168 yes,*) 12169 # gcc 12170 library_names_spec='$libname.dll.a' 12171 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12172 postinstall_cmds='base_file=`basename \$file`~ 12173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12174 dldir=$destdir/`dirname \$dlpath`~ 12175 test -d \$dldir || mkdir -p \$dldir~ 12176 $install_prog $dir/$dlname \$dldir/$dlname~ 12177 chmod a+x \$dldir/$dlname~ 12178 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12179 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12180 fi' 12181 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12182 dlpath=$dir/\$dldll~ 12183 $RM \$dlpath' 12184 shlibpath_overrides_runpath=yes 12185 12186 case $host_os in 12187 cygwin*) 12188 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12189 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12190 12191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12192 ;; 12193 mingw* | cegcc*) 12194 # MinGW DLLs use traditional 'lib' prefix 12195 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12196 ;; 12197 pw32*) 12198 # pw32 DLLs use 'pw' prefix rather than 'lib' 12199 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12200 ;; 12201 esac 12202 dynamic_linker='Win32 ld.exe' 12203 ;; 12204 12205 *,cl* | *,icl*) 12206 # Native MSVC or ICC 12207 libname_spec='$name' 12208 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12209 library_names_spec='$libname.dll.lib' 12210 12211 case $build_os in 12212 mingw*) 12213 sys_lib_search_path_spec= 12214 lt_save_ifs=$IFS 12215 IFS=';' 12216 for lt_path in $LIB 12217 do 12218 IFS=$lt_save_ifs 12219 # Let DOS variable expansion print the short 8.3 style file name. 12220 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12221 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12222 done 12223 IFS=$lt_save_ifs 12224 # Convert to MSYS style. 12225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12226 ;; 12227 cygwin*) 12228 # Convert to unix form, then to dos form, then back to unix form 12229 # but this time dos style (no spaces!) so that the unix form looks 12230 # like /cygdrive/c/PROGRA~1:/cygdr... 12231 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12232 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12233 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12234 ;; 12235 *) 12236 sys_lib_search_path_spec=$LIB 12237 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12238 # It is most probably a Windows format PATH. 12239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12240 else 12241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12242 fi 12243 # FIXME: find the short name or the path components, as spaces are 12244 # common. (e.g. "Program Files" -> "PROGRA~1") 12245 ;; 12246 esac 12247 12248 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12249 postinstall_cmds='base_file=`basename \$file`~ 12250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12251 dldir=$destdir/`dirname \$dlpath`~ 12252 test -d \$dldir || mkdir -p \$dldir~ 12253 $install_prog $dir/$dlname \$dldir/$dlname' 12254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12255 dlpath=$dir/\$dldll~ 12256 $RM \$dlpath' 12257 shlibpath_overrides_runpath=yes 12258 dynamic_linker='Win32 link.exe' 12259 ;; 12260 12261 *) 12262 # Assume MSVC and ICC wrapper 12263 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12264 dynamic_linker='Win32 ld.exe' 12265 ;; 12266 esac 12267 # FIXME: first we should search . and the directory the executable is in 12268 shlibpath_var=PATH 12269 ;; 12270 12271darwin* | rhapsody*) 12272 dynamic_linker="$host_os dyld" 12273 version_type=darwin 12274 need_lib_prefix=no 12275 need_version=no 12276 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12277 soname_spec='$libname$release$major$shared_ext' 12278 shlibpath_overrides_runpath=yes 12279 shlibpath_var=DYLD_LIBRARY_PATH 12280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12281 12282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12284 ;; 12285 12286dgux*) 12287 version_type=linux # correct to gnu/linux during the next big refactor 12288 need_lib_prefix=no 12289 need_version=no 12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12291 soname_spec='$libname$release$shared_ext$major' 12292 shlibpath_var=LD_LIBRARY_PATH 12293 ;; 12294 12295freebsd* | dragonfly*) 12296 # DragonFly does not have aout. When/if they implement a new 12297 # versioning mechanism, adjust this. 12298 if test -x /usr/bin/objformat; then 12299 objformat=`/usr/bin/objformat` 12300 else 12301 case $host_os in 12302 freebsd[23].*) objformat=aout ;; 12303 *) objformat=elf ;; 12304 esac 12305 fi 12306 version_type=freebsd-$objformat 12307 case $version_type in 12308 freebsd-elf*) 12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12310 soname_spec='$libname$release$shared_ext$major' 12311 need_version=no 12312 need_lib_prefix=no 12313 ;; 12314 freebsd-*) 12315 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12316 need_version=yes 12317 ;; 12318 esac 12319 shlibpath_var=LD_LIBRARY_PATH 12320 case $host_os in 12321 freebsd2.*) 12322 shlibpath_overrides_runpath=yes 12323 ;; 12324 freebsd3.[01]* | freebsdelf3.[01]*) 12325 shlibpath_overrides_runpath=yes 12326 hardcode_into_libs=yes 12327 ;; 12328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12330 shlibpath_overrides_runpath=no 12331 hardcode_into_libs=yes 12332 ;; 12333 *) # from 4.6 on, and DragonFly 12334 shlibpath_overrides_runpath=yes 12335 hardcode_into_libs=yes 12336 ;; 12337 esac 12338 ;; 12339 12340haiku*) 12341 version_type=linux # correct to gnu/linux during the next big refactor 12342 need_lib_prefix=no 12343 need_version=no 12344 dynamic_linker="$host_os runtime_loader" 12345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12346 soname_spec='$libname$release$shared_ext$major' 12347 shlibpath_var=LIBRARY_PATH 12348 shlibpath_overrides_runpath=no 12349 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12350 hardcode_into_libs=yes 12351 ;; 12352 12353hpux9* | hpux10* | hpux11*) 12354 # Give a soname corresponding to the major version so that dld.sl refuses to 12355 # link against other versions. 12356 version_type=sunos 12357 need_lib_prefix=no 12358 need_version=no 12359 case $host_cpu in 12360 ia64*) 12361 shrext_cmds='.so' 12362 hardcode_into_libs=yes 12363 dynamic_linker="$host_os dld.so" 12364 shlibpath_var=LD_LIBRARY_PATH 12365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12367 soname_spec='$libname$release$shared_ext$major' 12368 if test 32 = "$HPUX_IA64_MODE"; then 12369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12370 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12371 else 12372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12373 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12374 fi 12375 ;; 12376 hppa*64*) 12377 shrext_cmds='.sl' 12378 hardcode_into_libs=yes 12379 dynamic_linker="$host_os dld.sl" 12380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12383 soname_spec='$libname$release$shared_ext$major' 12384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12386 ;; 12387 *) 12388 shrext_cmds='.sl' 12389 dynamic_linker="$host_os dld.sl" 12390 shlibpath_var=SHLIB_PATH 12391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12393 soname_spec='$libname$release$shared_ext$major' 12394 ;; 12395 esac 12396 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12397 postinstall_cmds='chmod 555 $lib' 12398 # or fails outright, so override atomically: 12399 install_override_mode=555 12400 ;; 12401 12402interix[3-9]*) 12403 version_type=linux # correct to gnu/linux during the next big refactor 12404 need_lib_prefix=no 12405 need_version=no 12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12407 soname_spec='$libname$release$shared_ext$major' 12408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12409 shlibpath_var=LD_LIBRARY_PATH 12410 shlibpath_overrides_runpath=no 12411 hardcode_into_libs=yes 12412 ;; 12413 12414irix5* | irix6* | nonstopux*) 12415 case $host_os in 12416 nonstopux*) version_type=nonstopux ;; 12417 *) 12418 if test yes = "$lt_cv_prog_gnu_ld"; then 12419 version_type=linux # correct to gnu/linux during the next big refactor 12420 else 12421 version_type=irix 12422 fi ;; 12423 esac 12424 need_lib_prefix=no 12425 need_version=no 12426 soname_spec='$libname$release$shared_ext$major' 12427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12428 case $host_os in 12429 irix5* | nonstopux*) 12430 libsuff= shlibsuff= 12431 ;; 12432 *) 12433 case $LD in # libtool.m4 will add one of these switches to LD 12434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12435 libsuff= shlibsuff= libmagic=32-bit;; 12436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12437 libsuff=32 shlibsuff=N32 libmagic=N32;; 12438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12439 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12440 *) libsuff= shlibsuff= libmagic=never-match;; 12441 esac 12442 ;; 12443 esac 12444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12445 shlibpath_overrides_runpath=no 12446 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12447 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12448 hardcode_into_libs=yes 12449 ;; 12450 12451# No shared lib support for Linux oldld, aout, or coff. 12452linux*oldld* | linux*aout* | linux*coff*) 12453 dynamic_linker=no 12454 ;; 12455 12456linux*android*) 12457 version_type=none # Android doesn't support versioned libraries. 12458 need_lib_prefix=no 12459 need_version=no 12460 library_names_spec='$libname$release$shared_ext' 12461 soname_spec='$libname$release$shared_ext' 12462 finish_cmds= 12463 shlibpath_var=LD_LIBRARY_PATH 12464 shlibpath_overrides_runpath=yes 12465 12466 # This implies no fast_install, which is unacceptable. 12467 # Some rework will be needed to allow for fast_install 12468 # before this can be enabled. 12469 hardcode_into_libs=yes 12470 12471 dynamic_linker='Android linker' 12472 # Don't embed -rpath directories since the linker doesn't support them. 12473 hardcode_libdir_flag_spec='-L$libdir' 12474 ;; 12475 12476# This must be glibc/ELF. 12477linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12478 version_type=linux # correct to gnu/linux during the next big refactor 12479 need_lib_prefix=no 12480 need_version=no 12481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12482 soname_spec='$libname$release$shared_ext$major' 12483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12484 shlibpath_var=LD_LIBRARY_PATH 12485 shlibpath_overrides_runpath=no 12486 12487 # Some binutils ld are patched to set DT_RUNPATH 12488 if test ${lt_cv_shlibpath_overrides_runpath+y} 12489then : 12490 printf %s "(cached) " >&6 12491else $as_nop 12492 lt_cv_shlibpath_overrides_runpath=no 12493 save_LDFLAGS=$LDFLAGS 12494 save_libdir=$libdir 12495 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12496 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12498/* end confdefs.h. */ 12499 12500int 12501main (void) 12502{ 12503 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508if ac_fn_c_try_link "$LINENO" 12509then : 12510 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12511then : 12512 lt_cv_shlibpath_overrides_runpath=yes 12513fi 12514fi 12515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12516 conftest$ac_exeext conftest.$ac_ext 12517 LDFLAGS=$save_LDFLAGS 12518 libdir=$save_libdir 12519 12520fi 12521 12522 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12523 12524 # This implies no fast_install, which is unacceptable. 12525 # Some rework will be needed to allow for fast_install 12526 # before this can be enabled. 12527 hardcode_into_libs=yes 12528 12529 # Ideally, we could use ldconfig to report *all* directores which are 12530 # searched for libraries, however this is still not possible. Aside from not 12531 # being certain /sbin/ldconfig is available, command 12532 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12533 # even though it is searched at run-time. Try to do the best guess by 12534 # appending ld.so.conf contents (and includes) to the search path. 12535 if test -f /etc/ld.so.conf; then 12536 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' ' '` 12537 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12538 fi 12539 12540 # We used to test for /lib/ld.so.1 and disable shared libraries on 12541 # powerpc, because MkLinux only supported shared libraries with the 12542 # GNU dynamic linker. Since this was broken with cross compilers, 12543 # most powerpc-linux boxes support dynamic linking these days and 12544 # people can always --disable-shared, the test was removed, and we 12545 # assume the GNU/Linux dynamic linker is in use. 12546 dynamic_linker='GNU/Linux ld.so' 12547 ;; 12548 12549netbsd*) 12550 version_type=sunos 12551 need_lib_prefix=no 12552 need_version=no 12553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12556 dynamic_linker='NetBSD (a.out) ld.so' 12557 else 12558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12559 soname_spec='$libname$release$shared_ext$major' 12560 dynamic_linker='NetBSD ld.elf_so' 12561 fi 12562 shlibpath_var=LD_LIBRARY_PATH 12563 shlibpath_overrides_runpath=yes 12564 hardcode_into_libs=yes 12565 ;; 12566 12567newsos6) 12568 version_type=linux # correct to gnu/linux during the next big refactor 12569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12570 shlibpath_var=LD_LIBRARY_PATH 12571 shlibpath_overrides_runpath=yes 12572 ;; 12573 12574*nto* | *qnx*) 12575 version_type=qnx 12576 need_lib_prefix=no 12577 need_version=no 12578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12579 soname_spec='$libname$release$shared_ext$major' 12580 shlibpath_var=LD_LIBRARY_PATH 12581 shlibpath_overrides_runpath=no 12582 hardcode_into_libs=yes 12583 dynamic_linker='ldqnx.so' 12584 ;; 12585 12586openbsd* | bitrig*) 12587 version_type=sunos 12588 sys_lib_dlsearch_path_spec=/usr/lib 12589 need_lib_prefix=no 12590 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12591 need_version=no 12592 else 12593 need_version=yes 12594 fi 12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12597 shlibpath_var=LD_LIBRARY_PATH 12598 shlibpath_overrides_runpath=yes 12599 ;; 12600 12601os2*) 12602 libname_spec='$name' 12603 version_type=windows 12604 shrext_cmds=.dll 12605 need_version=no 12606 need_lib_prefix=no 12607 # OS/2 can only load a DLL with a base name of 8 characters or less. 12608 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12609 v=$($ECHO $release$versuffix | tr -d .-); 12610 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12611 $ECHO $n$v`$shared_ext' 12612 library_names_spec='${libname}_dll.$libext' 12613 dynamic_linker='OS/2 ld.exe' 12614 shlibpath_var=BEGINLIBPATH 12615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12617 postinstall_cmds='base_file=`basename \$file`~ 12618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12619 dldir=$destdir/`dirname \$dlpath`~ 12620 test -d \$dldir || mkdir -p \$dldir~ 12621 $install_prog $dir/$dlname \$dldir/$dlname~ 12622 chmod a+x \$dldir/$dlname~ 12623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12625 fi' 12626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12627 dlpath=$dir/\$dldll~ 12628 $RM \$dlpath' 12629 ;; 12630 12631osf3* | osf4* | osf5*) 12632 version_type=osf 12633 need_lib_prefix=no 12634 need_version=no 12635 soname_spec='$libname$release$shared_ext$major' 12636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12637 shlibpath_var=LD_LIBRARY_PATH 12638 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12640 ;; 12641 12642rdos*) 12643 dynamic_linker=no 12644 ;; 12645 12646solaris*) 12647 version_type=linux # correct to gnu/linux during the next big refactor 12648 need_lib_prefix=no 12649 need_version=no 12650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12651 soname_spec='$libname$release$shared_ext$major' 12652 shlibpath_var=LD_LIBRARY_PATH 12653 shlibpath_overrides_runpath=yes 12654 hardcode_into_libs=yes 12655 # ldd complains unless libraries are executable 12656 postinstall_cmds='chmod +x $lib' 12657 ;; 12658 12659sunos4*) 12660 version_type=sunos 12661 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12663 shlibpath_var=LD_LIBRARY_PATH 12664 shlibpath_overrides_runpath=yes 12665 if test yes = "$with_gnu_ld"; then 12666 need_lib_prefix=no 12667 fi 12668 need_version=yes 12669 ;; 12670 12671sysv4 | sysv4.3*) 12672 version_type=linux # correct to gnu/linux during the next big refactor 12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12674 soname_spec='$libname$release$shared_ext$major' 12675 shlibpath_var=LD_LIBRARY_PATH 12676 case $host_vendor in 12677 sni) 12678 shlibpath_overrides_runpath=no 12679 need_lib_prefix=no 12680 runpath_var=LD_RUN_PATH 12681 ;; 12682 siemens) 12683 need_lib_prefix=no 12684 ;; 12685 motorola) 12686 need_lib_prefix=no 12687 need_version=no 12688 shlibpath_overrides_runpath=no 12689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12690 ;; 12691 esac 12692 ;; 12693 12694sysv4*MP*) 12695 if test -d /usr/nec; then 12696 version_type=linux # correct to gnu/linux during the next big refactor 12697 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12698 soname_spec='$libname$shared_ext.$major' 12699 shlibpath_var=LD_LIBRARY_PATH 12700 fi 12701 ;; 12702 12703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12704 version_type=sco 12705 need_lib_prefix=no 12706 need_version=no 12707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12708 soname_spec='$libname$release$shared_ext$major' 12709 shlibpath_var=LD_LIBRARY_PATH 12710 shlibpath_overrides_runpath=yes 12711 hardcode_into_libs=yes 12712 if test yes = "$with_gnu_ld"; then 12713 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12714 else 12715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12716 case $host_os in 12717 sco3.2v5*) 12718 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12719 ;; 12720 esac 12721 fi 12722 sys_lib_dlsearch_path_spec='/usr/lib' 12723 ;; 12724 12725tpf*) 12726 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12727 version_type=linux # correct to gnu/linux during the next big refactor 12728 need_lib_prefix=no 12729 need_version=no 12730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12731 shlibpath_var=LD_LIBRARY_PATH 12732 shlibpath_overrides_runpath=no 12733 hardcode_into_libs=yes 12734 ;; 12735 12736uts4*) 12737 version_type=linux # correct to gnu/linux during the next big refactor 12738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12739 soname_spec='$libname$release$shared_ext$major' 12740 shlibpath_var=LD_LIBRARY_PATH 12741 ;; 12742 12743*) 12744 dynamic_linker=no 12745 ;; 12746esac 12747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12748printf "%s\n" "$dynamic_linker" >&6; } 12749test no = "$dynamic_linker" && can_build_shared=no 12750 12751variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12752if test yes = "$GCC"; then 12753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12754fi 12755 12756if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12757 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12758fi 12759 12760if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12761 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12762fi 12763 12764# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12765configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12766 12767# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12768func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12769 12770# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12771configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12870printf %s "checking how to hardcode library paths into programs... " >&6; } 12871hardcode_action= 12872if test -n "$hardcode_libdir_flag_spec" || 12873 test -n "$runpath_var" || 12874 test yes = "$hardcode_automatic"; then 12875 12876 # We can hardcode non-existent directories. 12877 if test no != "$hardcode_direct" && 12878 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12879 # have to relink, otherwise we might link with an installed library 12880 # when we should be linking with a yet-to-be-installed one 12881 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12882 test no != "$hardcode_minus_L"; then 12883 # Linking always hardcodes the temporary library directory. 12884 hardcode_action=relink 12885 else 12886 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12887 hardcode_action=immediate 12888 fi 12889else 12890 # We cannot hardcode anything, or else we can only hardcode existing 12891 # directories. 12892 hardcode_action=unsupported 12893fi 12894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12895printf "%s\n" "$hardcode_action" >&6; } 12896 12897if test relink = "$hardcode_action" || 12898 test yes = "$inherit_rpath"; then 12899 # Fast installation is not supported 12900 enable_fast_install=no 12901elif test yes = "$shlibpath_overrides_runpath" || 12902 test no = "$enable_shared"; then 12903 # Fast installation is not necessary 12904 enable_fast_install=needless 12905fi 12906 12907 12908 12909 12910 12911 12912 if test yes != "$enable_dlopen"; then 12913 enable_dlopen=unknown 12914 enable_dlopen_self=unknown 12915 enable_dlopen_self_static=unknown 12916else 12917 lt_cv_dlopen=no 12918 lt_cv_dlopen_libs= 12919 12920 case $host_os in 12921 beos*) 12922 lt_cv_dlopen=load_add_on 12923 lt_cv_dlopen_libs= 12924 lt_cv_dlopen_self=yes 12925 ;; 12926 12927 mingw* | pw32* | cegcc*) 12928 lt_cv_dlopen=LoadLibrary 12929 lt_cv_dlopen_libs= 12930 ;; 12931 12932 cygwin*) 12933 lt_cv_dlopen=dlopen 12934 lt_cv_dlopen_libs= 12935 ;; 12936 12937 darwin*) 12938 # if libdl is installed we need to link against it 12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12940printf %s "checking for dlopen in -ldl... " >&6; } 12941if test ${ac_cv_lib_dl_dlopen+y} 12942then : 12943 printf %s "(cached) " >&6 12944else $as_nop 12945 ac_check_lib_save_LIBS=$LIBS 12946LIBS="-ldl $LIBS" 12947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12948/* end confdefs.h. */ 12949 12950/* Override any GCC internal prototype to avoid an error. 12951 Use char because int might match the return type of a GCC 12952 builtin and then its argument prototype would still apply. */ 12953char dlopen (); 12954int 12955main (void) 12956{ 12957return dlopen (); 12958 ; 12959 return 0; 12960} 12961_ACEOF 12962if ac_fn_c_try_link "$LINENO" 12963then : 12964 ac_cv_lib_dl_dlopen=yes 12965else $as_nop 12966 ac_cv_lib_dl_dlopen=no 12967fi 12968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12969 conftest$ac_exeext conftest.$ac_ext 12970LIBS=$ac_check_lib_save_LIBS 12971fi 12972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12973printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12974if test "x$ac_cv_lib_dl_dlopen" = xyes 12975then : 12976 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12977else $as_nop 12978 12979 lt_cv_dlopen=dyld 12980 lt_cv_dlopen_libs= 12981 lt_cv_dlopen_self=yes 12982 12983fi 12984 12985 ;; 12986 12987 tpf*) 12988 # Don't try to run any link tests for TPF. We know it's impossible 12989 # because TPF is a cross-compiler, and we know how we open DSOs. 12990 lt_cv_dlopen=dlopen 12991 lt_cv_dlopen_libs= 12992 lt_cv_dlopen_self=no 12993 ;; 12994 12995 *) 12996 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12997if test "x$ac_cv_func_shl_load" = xyes 12998then : 12999 lt_cv_dlopen=shl_load 13000else $as_nop 13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13002printf %s "checking for shl_load in -ldld... " >&6; } 13003if test ${ac_cv_lib_dld_shl_load+y} 13004then : 13005 printf %s "(cached) " >&6 13006else $as_nop 13007 ac_check_lib_save_LIBS=$LIBS 13008LIBS="-ldld $LIBS" 13009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010/* end confdefs.h. */ 13011 13012/* Override any GCC internal prototype to avoid an error. 13013 Use char because int might match the return type of a GCC 13014 builtin and then its argument prototype would still apply. */ 13015char shl_load (); 13016int 13017main (void) 13018{ 13019return shl_load (); 13020 ; 13021 return 0; 13022} 13023_ACEOF 13024if ac_fn_c_try_link "$LINENO" 13025then : 13026 ac_cv_lib_dld_shl_load=yes 13027else $as_nop 13028 ac_cv_lib_dld_shl_load=no 13029fi 13030rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13031 conftest$ac_exeext conftest.$ac_ext 13032LIBS=$ac_check_lib_save_LIBS 13033fi 13034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13035printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13036if test "x$ac_cv_lib_dld_shl_load" = xyes 13037then : 13038 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13039else $as_nop 13040 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13041if test "x$ac_cv_func_dlopen" = xyes 13042then : 13043 lt_cv_dlopen=dlopen 13044else $as_nop 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13046printf %s "checking for dlopen in -ldl... " >&6; } 13047if test ${ac_cv_lib_dl_dlopen+y} 13048then : 13049 printf %s "(cached) " >&6 13050else $as_nop 13051 ac_check_lib_save_LIBS=$LIBS 13052LIBS="-ldl $LIBS" 13053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13054/* end confdefs.h. */ 13055 13056/* Override any GCC internal prototype to avoid an error. 13057 Use char because int might match the return type of a GCC 13058 builtin and then its argument prototype would still apply. */ 13059char dlopen (); 13060int 13061main (void) 13062{ 13063return dlopen (); 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068if ac_fn_c_try_link "$LINENO" 13069then : 13070 ac_cv_lib_dl_dlopen=yes 13071else $as_nop 13072 ac_cv_lib_dl_dlopen=no 13073fi 13074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13075 conftest$ac_exeext conftest.$ac_ext 13076LIBS=$ac_check_lib_save_LIBS 13077fi 13078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13079printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13080if test "x$ac_cv_lib_dl_dlopen" = xyes 13081then : 13082 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13083else $as_nop 13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13085printf %s "checking for dlopen in -lsvld... " >&6; } 13086if test ${ac_cv_lib_svld_dlopen+y} 13087then : 13088 printf %s "(cached) " >&6 13089else $as_nop 13090 ac_check_lib_save_LIBS=$LIBS 13091LIBS="-lsvld $LIBS" 13092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094 13095/* Override any GCC internal prototype to avoid an error. 13096 Use char because int might match the return type of a GCC 13097 builtin and then its argument prototype would still apply. */ 13098char dlopen (); 13099int 13100main (void) 13101{ 13102return dlopen (); 13103 ; 13104 return 0; 13105} 13106_ACEOF 13107if ac_fn_c_try_link "$LINENO" 13108then : 13109 ac_cv_lib_svld_dlopen=yes 13110else $as_nop 13111 ac_cv_lib_svld_dlopen=no 13112fi 13113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13114 conftest$ac_exeext conftest.$ac_ext 13115LIBS=$ac_check_lib_save_LIBS 13116fi 13117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13118printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13119if test "x$ac_cv_lib_svld_dlopen" = xyes 13120then : 13121 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13122else $as_nop 13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13124printf %s "checking for dld_link in -ldld... " >&6; } 13125if test ${ac_cv_lib_dld_dld_link+y} 13126then : 13127 printf %s "(cached) " >&6 13128else $as_nop 13129 ac_check_lib_save_LIBS=$LIBS 13130LIBS="-ldld $LIBS" 13131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13132/* end confdefs.h. */ 13133 13134/* Override any GCC internal prototype to avoid an error. 13135 Use char because int might match the return type of a GCC 13136 builtin and then its argument prototype would still apply. */ 13137char dld_link (); 13138int 13139main (void) 13140{ 13141return dld_link (); 13142 ; 13143 return 0; 13144} 13145_ACEOF 13146if ac_fn_c_try_link "$LINENO" 13147then : 13148 ac_cv_lib_dld_dld_link=yes 13149else $as_nop 13150 ac_cv_lib_dld_dld_link=no 13151fi 13152rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13153 conftest$ac_exeext conftest.$ac_ext 13154LIBS=$ac_check_lib_save_LIBS 13155fi 13156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13157printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13158if test "x$ac_cv_lib_dld_dld_link" = xyes 13159then : 13160 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13161fi 13162 13163 13164fi 13165 13166 13167fi 13168 13169 13170fi 13171 13172 13173fi 13174 13175 13176fi 13177 13178 ;; 13179 esac 13180 13181 if test no = "$lt_cv_dlopen"; then 13182 enable_dlopen=no 13183 else 13184 enable_dlopen=yes 13185 fi 13186 13187 case $lt_cv_dlopen in 13188 dlopen) 13189 save_CPPFLAGS=$CPPFLAGS 13190 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13191 13192 save_LDFLAGS=$LDFLAGS 13193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13194 13195 save_LIBS=$LIBS 13196 LIBS="$lt_cv_dlopen_libs $LIBS" 13197 13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13199printf %s "checking whether a program can dlopen itself... " >&6; } 13200if test ${lt_cv_dlopen_self+y} 13201then : 13202 printf %s "(cached) " >&6 13203else $as_nop 13204 if test yes = "$cross_compiling"; then : 13205 lt_cv_dlopen_self=cross 13206else 13207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13208 lt_status=$lt_dlunknown 13209 cat > conftest.$ac_ext <<_LT_EOF 13210#line $LINENO "configure" 13211#include "confdefs.h" 13212 13213#if HAVE_DLFCN_H 13214#include <dlfcn.h> 13215#endif 13216 13217#include <stdio.h> 13218 13219#ifdef RTLD_GLOBAL 13220# define LT_DLGLOBAL RTLD_GLOBAL 13221#else 13222# ifdef DL_GLOBAL 13223# define LT_DLGLOBAL DL_GLOBAL 13224# else 13225# define LT_DLGLOBAL 0 13226# endif 13227#endif 13228 13229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13230 find out it does not work in some platform. */ 13231#ifndef LT_DLLAZY_OR_NOW 13232# ifdef RTLD_LAZY 13233# define LT_DLLAZY_OR_NOW RTLD_LAZY 13234# else 13235# ifdef DL_LAZY 13236# define LT_DLLAZY_OR_NOW DL_LAZY 13237# else 13238# ifdef RTLD_NOW 13239# define LT_DLLAZY_OR_NOW RTLD_NOW 13240# else 13241# ifdef DL_NOW 13242# define LT_DLLAZY_OR_NOW DL_NOW 13243# else 13244# define LT_DLLAZY_OR_NOW 0 13245# endif 13246# endif 13247# endif 13248# endif 13249#endif 13250 13251/* When -fvisibility=hidden is used, assume the code has been annotated 13252 correspondingly for the symbols needed. */ 13253#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13254int fnord () __attribute__((visibility("default"))); 13255#endif 13256 13257int fnord () { return 42; } 13258int main () 13259{ 13260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13261 int status = $lt_dlunknown; 13262 13263 if (self) 13264 { 13265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13266 else 13267 { 13268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13269 else puts (dlerror ()); 13270 } 13271 /* dlclose (self); */ 13272 } 13273 else 13274 puts (dlerror ()); 13275 13276 return status; 13277} 13278_LT_EOF 13279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13280 (eval $ac_link) 2>&5 13281 ac_status=$? 13282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13283 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13284 (./conftest; exit; ) >&5 2>/dev/null 13285 lt_status=$? 13286 case x$lt_status in 13287 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13288 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13289 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13290 esac 13291 else : 13292 # compilation failed 13293 lt_cv_dlopen_self=no 13294 fi 13295fi 13296rm -fr conftest* 13297 13298 13299fi 13300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13301printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13302 13303 if test yes = "$lt_cv_dlopen_self"; then 13304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13306printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13307if test ${lt_cv_dlopen_self_static+y} 13308then : 13309 printf %s "(cached) " >&6 13310else $as_nop 13311 if test yes = "$cross_compiling"; then : 13312 lt_cv_dlopen_self_static=cross 13313else 13314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13315 lt_status=$lt_dlunknown 13316 cat > conftest.$ac_ext <<_LT_EOF 13317#line $LINENO "configure" 13318#include "confdefs.h" 13319 13320#if HAVE_DLFCN_H 13321#include <dlfcn.h> 13322#endif 13323 13324#include <stdio.h> 13325 13326#ifdef RTLD_GLOBAL 13327# define LT_DLGLOBAL RTLD_GLOBAL 13328#else 13329# ifdef DL_GLOBAL 13330# define LT_DLGLOBAL DL_GLOBAL 13331# else 13332# define LT_DLGLOBAL 0 13333# endif 13334#endif 13335 13336/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13337 find out it does not work in some platform. */ 13338#ifndef LT_DLLAZY_OR_NOW 13339# ifdef RTLD_LAZY 13340# define LT_DLLAZY_OR_NOW RTLD_LAZY 13341# else 13342# ifdef DL_LAZY 13343# define LT_DLLAZY_OR_NOW DL_LAZY 13344# else 13345# ifdef RTLD_NOW 13346# define LT_DLLAZY_OR_NOW RTLD_NOW 13347# else 13348# ifdef DL_NOW 13349# define LT_DLLAZY_OR_NOW DL_NOW 13350# else 13351# define LT_DLLAZY_OR_NOW 0 13352# endif 13353# endif 13354# endif 13355# endif 13356#endif 13357 13358/* When -fvisibility=hidden is used, assume the code has been annotated 13359 correspondingly for the symbols needed. */ 13360#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13361int fnord () __attribute__((visibility("default"))); 13362#endif 13363 13364int fnord () { return 42; } 13365int main () 13366{ 13367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13368 int status = $lt_dlunknown; 13369 13370 if (self) 13371 { 13372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13373 else 13374 { 13375 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13376 else puts (dlerror ()); 13377 } 13378 /* dlclose (self); */ 13379 } 13380 else 13381 puts (dlerror ()); 13382 13383 return status; 13384} 13385_LT_EOF 13386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13387 (eval $ac_link) 2>&5 13388 ac_status=$? 13389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13390 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13391 (./conftest; exit; ) >&5 2>/dev/null 13392 lt_status=$? 13393 case x$lt_status in 13394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13396 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13397 esac 13398 else : 13399 # compilation failed 13400 lt_cv_dlopen_self_static=no 13401 fi 13402fi 13403rm -fr conftest* 13404 13405 13406fi 13407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13408printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13409 fi 13410 13411 CPPFLAGS=$save_CPPFLAGS 13412 LDFLAGS=$save_LDFLAGS 13413 LIBS=$save_LIBS 13414 ;; 13415 esac 13416 13417 case $lt_cv_dlopen_self in 13418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13419 *) enable_dlopen_self=unknown ;; 13420 esac 13421 13422 case $lt_cv_dlopen_self_static in 13423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13424 *) enable_dlopen_self_static=unknown ;; 13425 esac 13426fi 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444striplib= 13445old_striplib= 13446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13447printf %s "checking whether stripping libraries is possible... " >&6; } 13448if test -z "$STRIP"; then 13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13450printf "%s\n" "no" >&6; } 13451else 13452 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13453 old_striplib="$STRIP --strip-debug" 13454 striplib="$STRIP --strip-unneeded" 13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13456printf "%s\n" "yes" >&6; } 13457 else 13458 case $host_os in 13459 darwin*) 13460 # FIXME - insert some real tests, host_os isn't really good enough 13461 striplib="$STRIP -x" 13462 old_striplib="$STRIP -S" 13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13464printf "%s\n" "yes" >&6; } 13465 ;; 13466 freebsd*) 13467 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13468 old_striplib="$STRIP --strip-debug" 13469 striplib="$STRIP --strip-unneeded" 13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13471printf "%s\n" "yes" >&6; } 13472 else 13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13474printf "%s\n" "no" >&6; } 13475 fi 13476 ;; 13477 *) 13478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13479printf "%s\n" "no" >&6; } 13480 ;; 13481 esac 13482 fi 13483fi 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 # Report what library types will actually be built 13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13498printf %s "checking if libtool supports shared libraries... " >&6; } 13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13500printf "%s\n" "$can_build_shared" >&6; } 13501 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13503printf %s "checking whether to build shared libraries... " >&6; } 13504 test no = "$can_build_shared" && enable_shared=no 13505 13506 # On AIX, shared libraries and static libraries use the same namespace, and 13507 # are all built from PIC. 13508 case $host_os in 13509 aix3*) 13510 test yes = "$enable_shared" && enable_static=no 13511 if test -n "$RANLIB"; then 13512 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13513 postinstall_cmds='$RANLIB $lib' 13514 fi 13515 ;; 13516 13517 aix[4-9]*) 13518 if test ia64 != "$host_cpu"; then 13519 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13520 yes,aix,yes) ;; # shared object as lib.so file only 13521 yes,svr4,*) ;; # shared object as lib.so archive member only 13522 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13523 esac 13524 fi 13525 ;; 13526 esac 13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13528printf "%s\n" "$enable_shared" >&6; } 13529 13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13531printf %s "checking whether to build static libraries... " >&6; } 13532 # Make sure either enable_shared or enable_static is yes. 13533 test yes = "$enable_shared" || enable_static=yes 13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13535printf "%s\n" "$enable_static" >&6; } 13536 13537 13538 13539 13540fi 13541ac_ext=c 13542ac_cpp='$CPP $CPPFLAGS' 13543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13545ac_compiler_gnu=$ac_cv_c_compiler_gnu 13546 13547CC=$lt_save_CC 13548 13549 if test -n "$CXX" && ( test no != "$CXX" && 13550 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13551 (test g++ != "$CXX"))); then 13552 ac_ext=cpp 13553ac_cpp='$CXXCPP $CPPFLAGS' 13554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13558printf %s "checking how to run the C++ preprocessor... " >&6; } 13559if test -z "$CXXCPP"; then 13560 if test ${ac_cv_prog_CXXCPP+y} 13561then : 13562 printf %s "(cached) " >&6 13563else $as_nop 13564 # Double quotes because $CXX needs to be expanded 13565 for CXXCPP in "$CXX -E" cpp /lib/cpp 13566 do 13567 ac_preproc_ok=false 13568for ac_cxx_preproc_warn_flag in '' yes 13569do 13570 # Use a header file that comes with gcc, so configuring glibc 13571 # with a fresh cross-compiler works. 13572 # On the NeXT, cc -E runs the code through the compiler's parser, 13573 # not just through cpp. "Syntax error" is here to catch this case. 13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13575/* end confdefs.h. */ 13576#include <limits.h> 13577 Syntax error 13578_ACEOF 13579if ac_fn_cxx_try_cpp "$LINENO" 13580then : 13581 13582else $as_nop 13583 # Broken: fails on valid input. 13584continue 13585fi 13586rm -f conftest.err conftest.i conftest.$ac_ext 13587 13588 # OK, works on sane cases. Now check whether nonexistent headers 13589 # can be detected and how. 13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13591/* end confdefs.h. */ 13592#include <ac_nonexistent.h> 13593_ACEOF 13594if ac_fn_cxx_try_cpp "$LINENO" 13595then : 13596 # Broken: success on invalid input. 13597continue 13598else $as_nop 13599 # Passes both tests. 13600ac_preproc_ok=: 13601break 13602fi 13603rm -f conftest.err conftest.i conftest.$ac_ext 13604 13605done 13606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13607rm -f conftest.i conftest.err conftest.$ac_ext 13608if $ac_preproc_ok 13609then : 13610 break 13611fi 13612 13613 done 13614 ac_cv_prog_CXXCPP=$CXXCPP 13615 13616fi 13617 CXXCPP=$ac_cv_prog_CXXCPP 13618else 13619 ac_cv_prog_CXXCPP=$CXXCPP 13620fi 13621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13622printf "%s\n" "$CXXCPP" >&6; } 13623ac_preproc_ok=false 13624for ac_cxx_preproc_warn_flag in '' yes 13625do 13626 # Use a header file that comes with gcc, so configuring glibc 13627 # with a fresh cross-compiler works. 13628 # On the NeXT, cc -E runs the code through the compiler's parser, 13629 # not just through cpp. "Syntax error" is here to catch this case. 13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13631/* end confdefs.h. */ 13632#include <limits.h> 13633 Syntax error 13634_ACEOF 13635if ac_fn_cxx_try_cpp "$LINENO" 13636then : 13637 13638else $as_nop 13639 # Broken: fails on valid input. 13640continue 13641fi 13642rm -f conftest.err conftest.i conftest.$ac_ext 13643 13644 # OK, works on sane cases. Now check whether nonexistent headers 13645 # can be detected and how. 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648#include <ac_nonexistent.h> 13649_ACEOF 13650if ac_fn_cxx_try_cpp "$LINENO" 13651then : 13652 # Broken: success on invalid input. 13653continue 13654else $as_nop 13655 # Passes both tests. 13656ac_preproc_ok=: 13657break 13658fi 13659rm -f conftest.err conftest.i conftest.$ac_ext 13660 13661done 13662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13663rm -f conftest.i conftest.err conftest.$ac_ext 13664if $ac_preproc_ok 13665then : 13666 13667else $as_nop 13668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13669printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13670as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13671See \`config.log' for more details" "$LINENO" 5; } 13672fi 13673 13674ac_ext=c 13675ac_cpp='$CPP $CPPFLAGS' 13676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13678ac_compiler_gnu=$ac_cv_c_compiler_gnu 13679 13680else 13681 _lt_caught_CXX_error=yes 13682fi 13683 13684ac_ext=cpp 13685ac_cpp='$CXXCPP $CPPFLAGS' 13686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13689 13690archive_cmds_need_lc_CXX=no 13691allow_undefined_flag_CXX= 13692always_export_symbols_CXX=no 13693archive_expsym_cmds_CXX= 13694compiler_needs_object_CXX=no 13695export_dynamic_flag_spec_CXX= 13696hardcode_direct_CXX=no 13697hardcode_direct_absolute_CXX=no 13698hardcode_libdir_flag_spec_CXX= 13699hardcode_libdir_separator_CXX= 13700hardcode_minus_L_CXX=no 13701hardcode_shlibpath_var_CXX=unsupported 13702hardcode_automatic_CXX=no 13703inherit_rpath_CXX=no 13704module_cmds_CXX= 13705module_expsym_cmds_CXX= 13706link_all_deplibs_CXX=unknown 13707old_archive_cmds_CXX=$old_archive_cmds 13708reload_flag_CXX=$reload_flag 13709reload_cmds_CXX=$reload_cmds 13710no_undefined_flag_CXX= 13711whole_archive_flag_spec_CXX= 13712enable_shared_with_static_runtimes_CXX=no 13713 13714# Source file extension for C++ test sources. 13715ac_ext=cpp 13716 13717# Object file extension for compiled C++ test sources. 13718objext=o 13719objext_CXX=$objext 13720 13721# No sense in running all these tests if we already determined that 13722# the CXX compiler isn't working. Some variables (like enable_shared) 13723# are currently assumed to apply to all compilers on this platform, 13724# and will be corrupted by setting them based on a non-working compiler. 13725if test yes != "$_lt_caught_CXX_error"; then 13726 # Code to be used in simple compile tests 13727 lt_simple_compile_test_code="int some_variable = 0;" 13728 13729 # Code to be used in simple link tests 13730 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13731 13732 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13733 13734 13735 13736 13737 13738 13739# If no C compiler was specified, use CC. 13740LTCC=${LTCC-"$CC"} 13741 13742# If no C compiler flags were specified, use CFLAGS. 13743LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13744 13745# Allow CC to be a program name with arguments. 13746compiler=$CC 13747 13748 13749 # save warnings/boilerplate of simple test code 13750 ac_outfile=conftest.$ac_objext 13751echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13752eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13753_lt_compiler_boilerplate=`cat conftest.err` 13754$RM conftest* 13755 13756 ac_outfile=conftest.$ac_objext 13757echo "$lt_simple_link_test_code" >conftest.$ac_ext 13758eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13759_lt_linker_boilerplate=`cat conftest.err` 13760$RM -r conftest* 13761 13762 13763 # Allow CC to be a program name with arguments. 13764 lt_save_CC=$CC 13765 lt_save_CFLAGS=$CFLAGS 13766 lt_save_LD=$LD 13767 lt_save_GCC=$GCC 13768 GCC=$GXX 13769 lt_save_with_gnu_ld=$with_gnu_ld 13770 lt_save_path_LD=$lt_cv_path_LD 13771 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13772 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13773 else 13774 $as_unset lt_cv_prog_gnu_ld 13775 fi 13776 if test -n "${lt_cv_path_LDCXX+set}"; then 13777 lt_cv_path_LD=$lt_cv_path_LDCXX 13778 else 13779 $as_unset lt_cv_path_LD 13780 fi 13781 test -z "${LDCXX+set}" || LD=$LDCXX 13782 CC=${CXX-"c++"} 13783 CFLAGS=$CXXFLAGS 13784 compiler=$CC 13785 compiler_CXX=$CC 13786 func_cc_basename $compiler 13787cc_basename=$func_cc_basename_result 13788 13789 13790 if test -n "$compiler"; then 13791 # We don't want -fno-exception when compiling C++ code, so set the 13792 # no_builtin_flag separately 13793 if test yes = "$GXX"; then 13794 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13795 else 13796 lt_prog_compiler_no_builtin_flag_CXX= 13797 fi 13798 13799 if test yes = "$GXX"; then 13800 # Set up default GNU C++ configuration 13801 13802 13803 13804# Check whether --with-gnu-ld was given. 13805if test ${with_gnu_ld+y} 13806then : 13807 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13808else $as_nop 13809 with_gnu_ld=no 13810fi 13811 13812ac_prog=ld 13813if test yes = "$GCC"; then 13814 # Check if gcc -print-prog-name=ld gives a path. 13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13816printf %s "checking for ld used by $CC... " >&6; } 13817 case $host in 13818 *-*-mingw*) 13819 # gcc leaves a trailing carriage return, which upsets mingw 13820 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13821 *) 13822 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13823 esac 13824 case $ac_prog in 13825 # Accept absolute paths. 13826 [\\/]* | ?:[\\/]*) 13827 re_direlt='/[^/][^/]*/\.\./' 13828 # Canonicalize the pathname of ld 13829 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13830 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13831 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13832 done 13833 test -z "$LD" && LD=$ac_prog 13834 ;; 13835 "") 13836 # If it fails, then pretend we aren't using GCC. 13837 ac_prog=ld 13838 ;; 13839 *) 13840 # If it is relative, then search for the first ld in PATH. 13841 with_gnu_ld=unknown 13842 ;; 13843 esac 13844elif test yes = "$with_gnu_ld"; then 13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13846printf %s "checking for GNU ld... " >&6; } 13847else 13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13849printf %s "checking for non-GNU ld... " >&6; } 13850fi 13851if test ${lt_cv_path_LD+y} 13852then : 13853 printf %s "(cached) " >&6 13854else $as_nop 13855 if test -z "$LD"; then 13856 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13857 for ac_dir in $PATH; do 13858 IFS=$lt_save_ifs 13859 test -z "$ac_dir" && ac_dir=. 13860 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13861 lt_cv_path_LD=$ac_dir/$ac_prog 13862 # Check to see if the program is GNU ld. I'd rather use --version, 13863 # but apparently some variants of GNU ld only accept -v. 13864 # Break only if it was the GNU/non-GNU ld that we prefer. 13865 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13866 *GNU* | *'with BFD'*) 13867 test no != "$with_gnu_ld" && break 13868 ;; 13869 *) 13870 test yes != "$with_gnu_ld" && break 13871 ;; 13872 esac 13873 fi 13874 done 13875 IFS=$lt_save_ifs 13876else 13877 lt_cv_path_LD=$LD # Let the user override the test with a path. 13878fi 13879fi 13880 13881LD=$lt_cv_path_LD 13882if test -n "$LD"; then 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13884printf "%s\n" "$LD" >&6; } 13885else 13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13887printf "%s\n" "no" >&6; } 13888fi 13889test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13891printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 13892if test ${lt_cv_prog_gnu_ld+y} 13893then : 13894 printf %s "(cached) " >&6 13895else $as_nop 13896 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13897case `$LD -v 2>&1 </dev/null` in 13898*GNU* | *'with BFD'*) 13899 lt_cv_prog_gnu_ld=yes 13900 ;; 13901*) 13902 lt_cv_prog_gnu_ld=no 13903 ;; 13904esac 13905fi 13906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13907printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 13908with_gnu_ld=$lt_cv_prog_gnu_ld 13909 13910 13911 13912 13913 13914 13915 13916 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13917 # archiving commands below assume that GNU ld is being used. 13918 if test yes = "$with_gnu_ld"; then 13919 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13920 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' 13921 13922 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13923 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13924 13925 # If archive_cmds runs LD, not CC, wlarc should be empty 13926 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13927 # investigate it a little bit more. (MM) 13928 wlarc='$wl' 13929 13930 # ancient GNU ld didn't support --whole-archive et. al. 13931 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13932 $GREP 'no-whole-archive' > /dev/null; then 13933 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13934 else 13935 whole_archive_flag_spec_CXX= 13936 fi 13937 else 13938 with_gnu_ld=no 13939 wlarc= 13940 13941 # A generic and very simple default shared library creation 13942 # command for GNU C++ for the case where it uses the native 13943 # linker, instead of GNU ld. If possible, this setting should 13944 # overridden to take advantage of the native linker features on 13945 # the platform it is being used on. 13946 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13947 fi 13948 13949 # Commands to make compiler produce verbose output that lists 13950 # what "hidden" libraries, object files and flags are used when 13951 # linking a shared library. 13952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13953 13954 else 13955 GXX=no 13956 with_gnu_ld=no 13957 wlarc= 13958 fi 13959 13960 # PORTME: fill in a description of your system's C++ link characteristics 13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13962printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13963 ld_shlibs_CXX=yes 13964 case $host_os in 13965 aix3*) 13966 # FIXME: insert proper C++ library support 13967 ld_shlibs_CXX=no 13968 ;; 13969 aix[4-9]*) 13970 if test ia64 = "$host_cpu"; then 13971 # On IA64, the linker does run time linking by default, so we don't 13972 # have to do anything special. 13973 aix_use_runtimelinking=no 13974 exp_sym_flag='-Bexport' 13975 no_entry_flag= 13976 else 13977 aix_use_runtimelinking=no 13978 13979 # Test if we are trying to use run time linking or normal 13980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13981 # have runtime linking enabled, and use it for executables. 13982 # For shared libraries, we enable/disable runtime linking 13983 # depending on the kind of the shared library created - 13984 # when "with_aix_soname,aix_use_runtimelinking" is: 13985 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13986 # "aix,yes" lib.so shared, rtl:yes, for executables 13987 # lib.a static archive 13988 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13989 # lib.a(lib.so.V) shared, rtl:no, for executables 13990 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13991 # lib.a(lib.so.V) shared, rtl:no 13992 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13993 # lib.a static archive 13994 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13995 for ld_flag in $LDFLAGS; do 13996 case $ld_flag in 13997 *-brtl*) 13998 aix_use_runtimelinking=yes 13999 break 14000 ;; 14001 esac 14002 done 14003 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14004 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14005 # so we don't have lib.a shared libs to link our executables. 14006 # We have to force runtime linking in this case. 14007 aix_use_runtimelinking=yes 14008 LDFLAGS="$LDFLAGS -Wl,-brtl" 14009 fi 14010 ;; 14011 esac 14012 14013 exp_sym_flag='-bexport' 14014 no_entry_flag='-bnoentry' 14015 fi 14016 14017 # When large executables or shared objects are built, AIX ld can 14018 # have problems creating the table of contents. If linking a library 14019 # or program results in "error TOC overflow" add -mminimal-toc to 14020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14022 14023 archive_cmds_CXX='' 14024 hardcode_direct_CXX=yes 14025 hardcode_direct_absolute_CXX=yes 14026 hardcode_libdir_separator_CXX=':' 14027 link_all_deplibs_CXX=yes 14028 file_list_spec_CXX='$wl-f,' 14029 case $with_aix_soname,$aix_use_runtimelinking in 14030 aix,*) ;; # no import file 14031 svr4,* | *,yes) # use import file 14032 # The Import File defines what to hardcode. 14033 hardcode_direct_CXX=no 14034 hardcode_direct_absolute_CXX=no 14035 ;; 14036 esac 14037 14038 if test yes = "$GXX"; then 14039 case $host_os in aix4.[012]|aix4.[012].*) 14040 # We only want to do this on AIX 4.2 and lower, the check 14041 # below for broken collect2 doesn't work under 4.3+ 14042 collect2name=`$CC -print-prog-name=collect2` 14043 if test -f "$collect2name" && 14044 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14045 then 14046 # We have reworked collect2 14047 : 14048 else 14049 # We have old collect2 14050 hardcode_direct_CXX=unsupported 14051 # It fails to find uninstalled libraries when the uninstalled 14052 # path is not listed in the libpath. Setting hardcode_minus_L 14053 # to unsupported forces relinking 14054 hardcode_minus_L_CXX=yes 14055 hardcode_libdir_flag_spec_CXX='-L$libdir' 14056 hardcode_libdir_separator_CXX= 14057 fi 14058 esac 14059 shared_flag='-shared' 14060 if test yes = "$aix_use_runtimelinking"; then 14061 shared_flag=$shared_flag' $wl-G' 14062 fi 14063 # Need to ensure runtime linking is disabled for the traditional 14064 # shared library, or the linker may eventually find shared libraries 14065 # /with/ Import File - we do not want to mix them. 14066 shared_flag_aix='-shared' 14067 shared_flag_svr4='-shared $wl-G' 14068 else 14069 # not using gcc 14070 if test ia64 = "$host_cpu"; then 14071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14072 # chokes on -Wl,-G. The following line is correct: 14073 shared_flag='-G' 14074 else 14075 if test yes = "$aix_use_runtimelinking"; then 14076 shared_flag='$wl-G' 14077 else 14078 shared_flag='$wl-bM:SRE' 14079 fi 14080 shared_flag_aix='$wl-bM:SRE' 14081 shared_flag_svr4='$wl-G' 14082 fi 14083 fi 14084 14085 export_dynamic_flag_spec_CXX='$wl-bexpall' 14086 # It seems that -bexpall does not export symbols beginning with 14087 # underscore (_), so it is better to generate a list of symbols to 14088 # export. 14089 always_export_symbols_CXX=yes 14090 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14091 # Warning - without using the other runtime loading flags (-brtl), 14092 # -berok will link without error, but may produce a broken library. 14093 # The "-G" linker flag allows undefined symbols. 14094 no_undefined_flag_CXX='-bernotok' 14095 # Determine the default libpath from the value encoded in an empty 14096 # executable. 14097 if test set = "${lt_cv_aix_libpath+set}"; then 14098 aix_libpath=$lt_cv_aix_libpath 14099else 14100 if test ${lt_cv_aix_libpath__CXX+y} 14101then : 14102 printf %s "(cached) " >&6 14103else $as_nop 14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14105/* end confdefs.h. */ 14106 14107int 14108main (void) 14109{ 14110 14111 ; 14112 return 0; 14113} 14114_ACEOF 14115if ac_fn_cxx_try_link "$LINENO" 14116then : 14117 14118 lt_aix_libpath_sed=' 14119 /Import File Strings/,/^$/ { 14120 /^0/ { 14121 s/^0 *\([^ ]*\) *$/\1/ 14122 p 14123 } 14124 }' 14125 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14126 # Check for a 64-bit object if we didn't find anything. 14127 if test -z "$lt_cv_aix_libpath__CXX"; then 14128 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14129 fi 14130fi 14131rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14132 conftest$ac_exeext conftest.$ac_ext 14133 if test -z "$lt_cv_aix_libpath__CXX"; then 14134 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14135 fi 14136 14137fi 14138 14139 aix_libpath=$lt_cv_aix_libpath__CXX 14140fi 14141 14142 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14143 14144 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 14145 else 14146 if test ia64 = "$host_cpu"; then 14147 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14148 allow_undefined_flag_CXX="-z nodefs" 14149 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" 14150 else 14151 # Determine the default libpath from the value encoded in an 14152 # empty executable. 14153 if test set = "${lt_cv_aix_libpath+set}"; then 14154 aix_libpath=$lt_cv_aix_libpath 14155else 14156 if test ${lt_cv_aix_libpath__CXX+y} 14157then : 14158 printf %s "(cached) " >&6 14159else $as_nop 14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14161/* end confdefs.h. */ 14162 14163int 14164main (void) 14165{ 14166 14167 ; 14168 return 0; 14169} 14170_ACEOF 14171if ac_fn_cxx_try_link "$LINENO" 14172then : 14173 14174 lt_aix_libpath_sed=' 14175 /Import File Strings/,/^$/ { 14176 /^0/ { 14177 s/^0 *\([^ ]*\) *$/\1/ 14178 p 14179 } 14180 }' 14181 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14182 # Check for a 64-bit object if we didn't find anything. 14183 if test -z "$lt_cv_aix_libpath__CXX"; then 14184 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14185 fi 14186fi 14187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14188 conftest$ac_exeext conftest.$ac_ext 14189 if test -z "$lt_cv_aix_libpath__CXX"; then 14190 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14191 fi 14192 14193fi 14194 14195 aix_libpath=$lt_cv_aix_libpath__CXX 14196fi 14197 14198 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14199 # Warning - without using the other run time loading flags, 14200 # -berok will link without error, but may produce a broken library. 14201 no_undefined_flag_CXX=' $wl-bernotok' 14202 allow_undefined_flag_CXX=' $wl-berok' 14203 if test yes = "$with_gnu_ld"; then 14204 # We only use this code for GNU lds that support --whole-archive. 14205 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14206 else 14207 # Exported symbols can be pulled into shared objects from archives 14208 whole_archive_flag_spec_CXX='$convenience' 14209 fi 14210 archive_cmds_need_lc_CXX=yes 14211 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14212 # -brtl affects multiple linker settings, -berok does not and is overridden later 14213 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14214 if test svr4 != "$with_aix_soname"; then 14215 # This is similar to how AIX traditionally builds its shared 14216 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14217 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' 14218 fi 14219 if test aix != "$with_aix_soname"; then 14220 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' 14221 else 14222 # used by -dlpreopen to get the symbols 14223 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14224 fi 14225 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14226 fi 14227 fi 14228 ;; 14229 14230 beos*) 14231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14232 allow_undefined_flag_CXX=unsupported 14233 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14234 # support --undefined. This deserves some investigation. FIXME 14235 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14236 else 14237 ld_shlibs_CXX=no 14238 fi 14239 ;; 14240 14241 chorus*) 14242 case $cc_basename in 14243 *) 14244 # FIXME: insert proper C++ library support 14245 ld_shlibs_CXX=no 14246 ;; 14247 esac 14248 ;; 14249 14250 cygwin* | mingw* | pw32* | cegcc*) 14251 case $GXX,$cc_basename in 14252 ,cl* | no,cl* | ,icl* | no,icl*) 14253 # Native MSVC or ICC 14254 # hardcode_libdir_flag_spec is actually meaningless, as there is 14255 # no search path for DLLs. 14256 hardcode_libdir_flag_spec_CXX=' ' 14257 allow_undefined_flag_CXX=unsupported 14258 always_export_symbols_CXX=yes 14259 file_list_spec_CXX='@' 14260 # Tell ltmain to make .lib files, not .a files. 14261 libext=lib 14262 # Tell ltmain to make .dll files, not .so files. 14263 shrext_cmds=.dll 14264 # FIXME: Setting linknames here is a bad hack. 14265 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14266 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14267 cp "$export_symbols" "$output_objdir/$soname.def"; 14268 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14269 else 14270 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14271 fi~ 14272 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14273 linknames=' 14274 # The linker will not automatically build a static lib if we build a DLL. 14275 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14276 enable_shared_with_static_runtimes_CXX=yes 14277 # Don't use ranlib 14278 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14279 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14280 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14281 case $lt_outputfile in 14282 *.exe|*.EXE) ;; 14283 *) 14284 lt_outputfile=$lt_outputfile.exe 14285 lt_tool_outputfile=$lt_tool_outputfile.exe 14286 ;; 14287 esac~ 14288 func_to_tool_file "$lt_outputfile"~ 14289 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14290 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14291 $RM "$lt_outputfile.manifest"; 14292 fi' 14293 ;; 14294 *) 14295 # g++ 14296 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14297 # as there is no search path for DLLs. 14298 hardcode_libdir_flag_spec_CXX='-L$libdir' 14299 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14300 allow_undefined_flag_CXX=unsupported 14301 always_export_symbols_CXX=no 14302 enable_shared_with_static_runtimes_CXX=yes 14303 14304 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14305 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' 14306 # If the export-symbols file already is a .def file, use it as 14307 # is; otherwise, prepend EXPORTS... 14308 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14309 cp $export_symbols $output_objdir/$soname.def; 14310 else 14311 echo EXPORTS > $output_objdir/$soname.def; 14312 cat $export_symbols >> $output_objdir/$soname.def; 14313 fi~ 14314 $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' 14315 else 14316 ld_shlibs_CXX=no 14317 fi 14318 ;; 14319 esac 14320 ;; 14321 darwin* | rhapsody*) 14322 14323 14324 archive_cmds_need_lc_CXX=no 14325 hardcode_direct_CXX=no 14326 hardcode_automatic_CXX=yes 14327 hardcode_shlibpath_var_CXX=unsupported 14328 if test yes = "$lt_cv_ld_force_load"; then 14329 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\"`' 14330 14331 else 14332 whole_archive_flag_spec_CXX='' 14333 fi 14334 link_all_deplibs_CXX=yes 14335 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14336 case $cc_basename in 14337 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14338 *) _lt_dar_can_shared=$GCC ;; 14339 esac 14340 if test yes = "$_lt_dar_can_shared"; then 14341 output_verbose_link_cmd=func_echo_all 14342 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" 14343 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14344 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" 14345 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" 14346 if test yes != "$lt_cv_apple_cc_single_mod"; then 14347 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" 14348 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" 14349 fi 14350 14351 else 14352 ld_shlibs_CXX=no 14353 fi 14354 14355 ;; 14356 14357 os2*) 14358 hardcode_libdir_flag_spec_CXX='-L$libdir' 14359 hardcode_minus_L_CXX=yes 14360 allow_undefined_flag_CXX=unsupported 14361 shrext_cmds=.dll 14362 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14363 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14364 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14365 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14366 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14367 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14368 emximp -o $lib $output_objdir/$libname.def' 14369 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14370 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14371 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14372 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14373 prefix_cmds="$SED"~ 14374 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14375 prefix_cmds="$prefix_cmds -e 1d"; 14376 fi~ 14377 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14378 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14379 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14380 emximp -o $lib $output_objdir/$libname.def' 14381 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14382 enable_shared_with_static_runtimes_CXX=yes 14383 file_list_spec_CXX='@' 14384 ;; 14385 14386 dgux*) 14387 case $cc_basename in 14388 ec++*) 14389 # FIXME: insert proper C++ library support 14390 ld_shlibs_CXX=no 14391 ;; 14392 ghcx*) 14393 # Green Hills C++ Compiler 14394 # FIXME: insert proper C++ library support 14395 ld_shlibs_CXX=no 14396 ;; 14397 *) 14398 # FIXME: insert proper C++ library support 14399 ld_shlibs_CXX=no 14400 ;; 14401 esac 14402 ;; 14403 14404 freebsd2.*) 14405 # C++ shared libraries reported to be fairly broken before 14406 # switch to ELF 14407 ld_shlibs_CXX=no 14408 ;; 14409 14410 freebsd-elf*) 14411 archive_cmds_need_lc_CXX=no 14412 ;; 14413 14414 freebsd* | dragonfly*) 14415 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14416 # conventions 14417 ld_shlibs_CXX=yes 14418 ;; 14419 14420 haiku*) 14421 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14422 link_all_deplibs_CXX=yes 14423 ;; 14424 14425 hpux9*) 14426 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14427 hardcode_libdir_separator_CXX=: 14428 export_dynamic_flag_spec_CXX='$wl-E' 14429 hardcode_direct_CXX=yes 14430 hardcode_minus_L_CXX=yes # Not in the search PATH, 14431 # but as the default 14432 # location of the library. 14433 14434 case $cc_basename in 14435 CC*) 14436 # FIXME: insert proper C++ library support 14437 ld_shlibs_CXX=no 14438 ;; 14439 aCC*) 14440 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' 14441 # Commands to make compiler produce verbose output that lists 14442 # what "hidden" libraries, object files and flags are used when 14443 # linking a shared library. 14444 # 14445 # There doesn't appear to be a way to prevent this compiler from 14446 # explicitly linking system object files so we need to strip them 14447 # from the output so that they don't get included in the library 14448 # dependencies. 14449 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"' 14450 ;; 14451 *) 14452 if test yes = "$GXX"; then 14453 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' 14454 else 14455 # FIXME: insert proper C++ library support 14456 ld_shlibs_CXX=no 14457 fi 14458 ;; 14459 esac 14460 ;; 14461 14462 hpux10*|hpux11*) 14463 if test no = "$with_gnu_ld"; then 14464 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14465 hardcode_libdir_separator_CXX=: 14466 14467 case $host_cpu in 14468 hppa*64*|ia64*) 14469 ;; 14470 *) 14471 export_dynamic_flag_spec_CXX='$wl-E' 14472 ;; 14473 esac 14474 fi 14475 case $host_cpu in 14476 hppa*64*|ia64*) 14477 hardcode_direct_CXX=no 14478 hardcode_shlibpath_var_CXX=no 14479 ;; 14480 *) 14481 hardcode_direct_CXX=yes 14482 hardcode_direct_absolute_CXX=yes 14483 hardcode_minus_L_CXX=yes # Not in the search PATH, 14484 # but as the default 14485 # location of the library. 14486 ;; 14487 esac 14488 14489 case $cc_basename in 14490 CC*) 14491 # FIXME: insert proper C++ library support 14492 ld_shlibs_CXX=no 14493 ;; 14494 aCC*) 14495 case $host_cpu in 14496 hppa*64*) 14497 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14498 ;; 14499 ia64*) 14500 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14501 ;; 14502 *) 14503 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14504 ;; 14505 esac 14506 # Commands to make compiler produce verbose output that lists 14507 # what "hidden" libraries, object files and flags are used when 14508 # linking a shared library. 14509 # 14510 # There doesn't appear to be a way to prevent this compiler from 14511 # explicitly linking system object files so we need to strip them 14512 # from the output so that they don't get included in the library 14513 # dependencies. 14514 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"' 14515 ;; 14516 *) 14517 if test yes = "$GXX"; then 14518 if test no = "$with_gnu_ld"; then 14519 case $host_cpu in 14520 hppa*64*) 14521 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14522 ;; 14523 ia64*) 14524 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14525 ;; 14526 *) 14527 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' 14528 ;; 14529 esac 14530 fi 14531 else 14532 # FIXME: insert proper C++ library support 14533 ld_shlibs_CXX=no 14534 fi 14535 ;; 14536 esac 14537 ;; 14538 14539 interix[3-9]*) 14540 hardcode_direct_CXX=no 14541 hardcode_shlibpath_var_CXX=no 14542 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14543 export_dynamic_flag_spec_CXX='$wl-E' 14544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14545 # Instead, shared libraries are loaded at an image base (0x10000000 by 14546 # default) and relocated if they conflict, which is a slow very memory 14547 # consuming and fragmenting process. To avoid this, we pick a random, 14548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14549 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14550 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' 14551 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' 14552 ;; 14553 irix5* | irix6*) 14554 case $cc_basename in 14555 CC*) 14556 # SGI C++ 14557 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' 14558 14559 # Archives containing C++ object files must be created using 14560 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14561 # necessary to make sure instantiated templates are included 14562 # in the archive. 14563 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14564 ;; 14565 *) 14566 if test yes = "$GXX"; then 14567 if test no = "$with_gnu_ld"; then 14568 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' 14569 else 14570 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' 14571 fi 14572 fi 14573 link_all_deplibs_CXX=yes 14574 ;; 14575 esac 14576 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14577 hardcode_libdir_separator_CXX=: 14578 inherit_rpath_CXX=yes 14579 ;; 14580 14581 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14582 case $cc_basename in 14583 KCC*) 14584 # Kuck and Associates, Inc. (KAI) C++ Compiler 14585 14586 # KCC will only create a shared library if the output file 14587 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14588 # to its proper name (with version) after linking. 14589 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' 14590 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' 14591 # Commands to make compiler produce verbose output that lists 14592 # what "hidden" libraries, object files and flags are used when 14593 # linking a shared library. 14594 # 14595 # There doesn't appear to be a way to prevent this compiler from 14596 # explicitly linking system object files so we need to strip them 14597 # from the output so that they don't get included in the library 14598 # dependencies. 14599 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"' 14600 14601 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14602 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14603 14604 # Archives containing C++ object files must be created using 14605 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14606 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14607 ;; 14608 icpc* | ecpc* ) 14609 # Intel C++ 14610 with_gnu_ld=yes 14611 # version 8.0 and above of icpc choke on multiply defined symbols 14612 # if we add $predep_objects and $postdep_objects, however 7.1 and 14613 # earlier do not add the objects themselves. 14614 case `$CC -V 2>&1` in 14615 *"Version 7."*) 14616 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14617 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' 14618 ;; 14619 *) # Version 8.0 or newer 14620 tmp_idyn= 14621 case $host_cpu in 14622 ia64*) tmp_idyn=' -i_dynamic';; 14623 esac 14624 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14625 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' 14626 ;; 14627 esac 14628 archive_cmds_need_lc_CXX=no 14629 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14630 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14631 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14632 ;; 14633 pgCC* | pgcpp*) 14634 # Portland Group C++ compiler 14635 case `$CC -V` in 14636 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14637 prelink_cmds_CXX='tpldir=Template.dir~ 14638 rm -rf $tpldir~ 14639 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14640 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14641 old_archive_cmds_CXX='tpldir=Template.dir~ 14642 rm -rf $tpldir~ 14643 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14644 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14645 $RANLIB $oldlib' 14646 archive_cmds_CXX='tpldir=Template.dir~ 14647 rm -rf $tpldir~ 14648 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14649 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14650 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14651 rm -rf $tpldir~ 14652 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14653 $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' 14654 ;; 14655 *) # Version 6 and above use weak symbols 14656 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14657 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' 14658 ;; 14659 esac 14660 14661 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14662 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14663 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' 14664 ;; 14665 cxx*) 14666 # Compaq C++ 14667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14668 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' 14669 14670 runpath_var=LD_RUN_PATH 14671 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14672 hardcode_libdir_separator_CXX=: 14673 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 -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' 14683 ;; 14684 xl* | mpixl* | bgxl*) 14685 # IBM XL 8.0 on PPC, with GNU ld 14686 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14687 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14688 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14689 if test yes = "$supports_anon_versioning"; then 14690 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14692 echo "local: *; };" >> $output_objdir/$libname.ver~ 14693 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14694 fi 14695 ;; 14696 *) 14697 case `$CC -V 2>&1 | sed 5q` in 14698 *Sun\ C*) 14699 # Sun C++ 5.9 14700 no_undefined_flag_CXX=' -zdefs' 14701 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14702 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' 14703 hardcode_libdir_flag_spec_CXX='-R$libdir' 14704 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' 14705 compiler_needs_object_CXX=yes 14706 14707 # Not sure whether something based on 14708 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14709 # would be better. 14710 output_verbose_link_cmd='func_echo_all' 14711 14712 # Archives containing C++ object files must be created using 14713 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14714 # necessary to make sure instantiated templates are included 14715 # in the archive. 14716 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14717 ;; 14718 esac 14719 ;; 14720 esac 14721 ;; 14722 14723 lynxos*) 14724 # FIXME: insert proper C++ library support 14725 ld_shlibs_CXX=no 14726 ;; 14727 14728 m88k*) 14729 # FIXME: insert proper C++ library support 14730 ld_shlibs_CXX=no 14731 ;; 14732 14733 mvs*) 14734 case $cc_basename in 14735 cxx*) 14736 # FIXME: insert proper C++ library support 14737 ld_shlibs_CXX=no 14738 ;; 14739 *) 14740 # FIXME: insert proper C++ library support 14741 ld_shlibs_CXX=no 14742 ;; 14743 esac 14744 ;; 14745 14746 netbsd*) 14747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14748 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14749 wlarc= 14750 hardcode_libdir_flag_spec_CXX='-R$libdir' 14751 hardcode_direct_CXX=yes 14752 hardcode_shlibpath_var_CXX=no 14753 fi 14754 # Workaround some broken pre-1.5 toolchains 14755 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14756 ;; 14757 14758 *nto* | *qnx*) 14759 ld_shlibs_CXX=yes 14760 ;; 14761 14762 openbsd* | bitrig*) 14763 if test -f /usr/libexec/ld.so; then 14764 hardcode_direct_CXX=yes 14765 hardcode_shlibpath_var_CXX=no 14766 hardcode_direct_absolute_CXX=yes 14767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14768 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14770 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14771 export_dynamic_flag_spec_CXX='$wl-E' 14772 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14773 fi 14774 output_verbose_link_cmd=func_echo_all 14775 else 14776 ld_shlibs_CXX=no 14777 fi 14778 ;; 14779 14780 osf3* | osf4* | osf5*) 14781 case $cc_basename in 14782 KCC*) 14783 # Kuck and Associates, Inc. (KAI) C++ Compiler 14784 14785 # KCC will only create a shared library if the output file 14786 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14787 # to its proper name (with version) after linking. 14788 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' 14789 14790 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14791 hardcode_libdir_separator_CXX=: 14792 14793 # Archives containing C++ object files must be created using 14794 # the KAI C++ compiler. 14795 case $host in 14796 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14797 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14798 esac 14799 ;; 14800 RCC*) 14801 # Rational C++ 2.4.1 14802 # FIXME: insert proper C++ library support 14803 ld_shlibs_CXX=no 14804 ;; 14805 cxx*) 14806 case $host in 14807 osf3*) 14808 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14809 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' 14810 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14811 ;; 14812 *) 14813 allow_undefined_flag_CXX=' -expect_unresolved \*' 14814 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' 14815 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14816 echo "-hidden">> $lib.exp~ 14817 $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~ 14818 $RM $lib.exp' 14819 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14820 ;; 14821 esac 14822 14823 hardcode_libdir_separator_CXX=: 14824 14825 # Commands to make compiler produce verbose output that lists 14826 # what "hidden" libraries, object files and flags are used when 14827 # linking a shared library. 14828 # 14829 # There doesn't appear to be a way to prevent this compiler from 14830 # explicitly linking system object files so we need to strip them 14831 # from the output so that they don't get included in the library 14832 # dependencies. 14833 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"' 14834 ;; 14835 *) 14836 if test yes,no = "$GXX,$with_gnu_ld"; then 14837 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14838 case $host in 14839 osf3*) 14840 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' 14841 ;; 14842 *) 14843 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' 14844 ;; 14845 esac 14846 14847 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14848 hardcode_libdir_separator_CXX=: 14849 14850 # Commands to make compiler produce verbose output that lists 14851 # what "hidden" libraries, object files and flags are used when 14852 # linking a shared library. 14853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14854 14855 else 14856 # FIXME: insert proper C++ library support 14857 ld_shlibs_CXX=no 14858 fi 14859 ;; 14860 esac 14861 ;; 14862 14863 psos*) 14864 # FIXME: insert proper C++ library support 14865 ld_shlibs_CXX=no 14866 ;; 14867 14868 sunos4*) 14869 case $cc_basename in 14870 CC*) 14871 # Sun C++ 4.x 14872 # FIXME: insert proper C++ library support 14873 ld_shlibs_CXX=no 14874 ;; 14875 lcc*) 14876 # Lucid 14877 # FIXME: insert proper C++ library support 14878 ld_shlibs_CXX=no 14879 ;; 14880 *) 14881 # FIXME: insert proper C++ library support 14882 ld_shlibs_CXX=no 14883 ;; 14884 esac 14885 ;; 14886 14887 solaris*) 14888 case $cc_basename in 14889 CC* | sunCC*) 14890 # Sun C++ 4.2, 5.x and Centerline C++ 14891 archive_cmds_need_lc_CXX=yes 14892 no_undefined_flag_CXX=' -zdefs' 14893 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14894 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14895 $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' 14896 14897 hardcode_libdir_flag_spec_CXX='-R$libdir' 14898 hardcode_shlibpath_var_CXX=no 14899 case $host_os in 14900 solaris2.[0-5] | solaris2.[0-5].*) ;; 14901 *) 14902 # The compiler driver will combine and reorder linker options, 14903 # but understands '-z linker_flag'. 14904 # Supported since Solaris 2.6 (maybe 2.5.1?) 14905 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14906 ;; 14907 esac 14908 link_all_deplibs_CXX=yes 14909 14910 output_verbose_link_cmd='func_echo_all' 14911 14912 # Archives containing C++ object files must be created using 14913 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14914 # necessary to make sure instantiated templates are included 14915 # in the archive. 14916 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14917 ;; 14918 gcx*) 14919 # Green Hills C++ Compiler 14920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14921 14922 # The C++ compiler must be used to create the archive. 14923 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14924 ;; 14925 *) 14926 # GNU C++ compiler with Solaris linker 14927 if test yes,no = "$GXX,$with_gnu_ld"; then 14928 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14929 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14930 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14931 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14932 $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' 14933 14934 # Commands to make compiler produce verbose output that lists 14935 # what "hidden" libraries, object files and flags are used when 14936 # linking a shared library. 14937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14938 else 14939 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14940 # platform. 14941 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14942 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14943 $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' 14944 14945 # Commands to make compiler produce verbose output that lists 14946 # what "hidden" libraries, object files and flags are used when 14947 # linking a shared library. 14948 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14949 fi 14950 14951 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14952 case $host_os in 14953 solaris2.[0-5] | solaris2.[0-5].*) ;; 14954 *) 14955 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14956 ;; 14957 esac 14958 fi 14959 ;; 14960 esac 14961 ;; 14962 14963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14964 no_undefined_flag_CXX='$wl-z,text' 14965 archive_cmds_need_lc_CXX=no 14966 hardcode_shlibpath_var_CXX=no 14967 runpath_var='LD_RUN_PATH' 14968 14969 case $cc_basename in 14970 CC*) 14971 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14972 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14973 ;; 14974 *) 14975 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14976 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14977 ;; 14978 esac 14979 ;; 14980 14981 sysv5* | sco3.2v5* | sco5v6*) 14982 # Note: We CANNOT use -z defs as we might desire, because we do not 14983 # link with -lc, and that would cause any symbols used from libc to 14984 # always be unresolved, which means just about no library would 14985 # ever link correctly. If we're not using GNU ld we use -z text 14986 # though, which does catch some bad symbols but isn't as heavy-handed 14987 # as -z defs. 14988 no_undefined_flag_CXX='$wl-z,text' 14989 allow_undefined_flag_CXX='$wl-z,nodefs' 14990 archive_cmds_need_lc_CXX=no 14991 hardcode_shlibpath_var_CXX=no 14992 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14993 hardcode_libdir_separator_CXX=':' 14994 link_all_deplibs_CXX=yes 14995 export_dynamic_flag_spec_CXX='$wl-Bexport' 14996 runpath_var='LD_RUN_PATH' 14997 14998 case $cc_basename in 14999 CC*) 15000 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15001 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15002 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15003 '"$old_archive_cmds_CXX" 15004 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15005 '"$reload_cmds_CXX" 15006 ;; 15007 *) 15008 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15009 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15010 ;; 15011 esac 15012 ;; 15013 15014 tandem*) 15015 case $cc_basename in 15016 NCC*) 15017 # NonStop-UX NCC 3.20 15018 # FIXME: insert proper C++ library support 15019 ld_shlibs_CXX=no 15020 ;; 15021 *) 15022 # FIXME: insert proper C++ library support 15023 ld_shlibs_CXX=no 15024 ;; 15025 esac 15026 ;; 15027 15028 vxworks*) 15029 # FIXME: insert proper C++ library support 15030 ld_shlibs_CXX=no 15031 ;; 15032 15033 *) 15034 # FIXME: insert proper C++ library support 15035 ld_shlibs_CXX=no 15036 ;; 15037 esac 15038 15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15040printf "%s\n" "$ld_shlibs_CXX" >&6; } 15041 test no = "$ld_shlibs_CXX" && can_build_shared=no 15042 15043 GCC_CXX=$GXX 15044 LD_CXX=$LD 15045 15046 ## CAVEAT EMPTOR: 15047 ## There is no encapsulation within the following macros, do not change 15048 ## the running order or otherwise move them around unless you know exactly 15049 ## what you are doing... 15050 # Dependencies to place before and after the object being linked: 15051predep_objects_CXX= 15052postdep_objects_CXX= 15053predeps_CXX= 15054postdeps_CXX= 15055compiler_lib_search_path_CXX= 15056 15057cat > conftest.$ac_ext <<_LT_EOF 15058class Foo 15059{ 15060public: 15061 Foo (void) { a = 0; } 15062private: 15063 int a; 15064}; 15065_LT_EOF 15066 15067 15068_lt_libdeps_save_CFLAGS=$CFLAGS 15069case "$CC $CFLAGS " in #( 15070*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15071*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15072*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15073esac 15074 15075if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15076 (eval $ac_compile) 2>&5 15077 ac_status=$? 15078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15079 test $ac_status = 0; }; then 15080 # Parse the compiler output and extract the necessary 15081 # objects, libraries and library flags. 15082 15083 # Sentinel used to keep track of whether or not we are before 15084 # the conftest object file. 15085 pre_test_object_deps_done=no 15086 15087 for p in `eval "$output_verbose_link_cmd"`; do 15088 case $prev$p in 15089 15090 -L* | -R* | -l*) 15091 # Some compilers place space between "-{L,R}" and the path. 15092 # Remove the space. 15093 if test x-L = "$p" || 15094 test x-R = "$p"; then 15095 prev=$p 15096 continue 15097 fi 15098 15099 # Expand the sysroot to ease extracting the directories later. 15100 if test -z "$prev"; then 15101 case $p in 15102 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15103 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15104 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15105 esac 15106 fi 15107 case $p in 15108 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15109 esac 15110 if test no = "$pre_test_object_deps_done"; then 15111 case $prev in 15112 -L | -R) 15113 # Internal compiler library paths should come after those 15114 # provided the user. The postdeps already come after the 15115 # user supplied libs so there is no need to process them. 15116 if test -z "$compiler_lib_search_path_CXX"; then 15117 compiler_lib_search_path_CXX=$prev$p 15118 else 15119 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15120 fi 15121 ;; 15122 # The "-l" case would never come before the object being 15123 # linked, so don't bother handling this case. 15124 esac 15125 else 15126 if test -z "$postdeps_CXX"; then 15127 postdeps_CXX=$prev$p 15128 else 15129 postdeps_CXX="${postdeps_CXX} $prev$p" 15130 fi 15131 fi 15132 prev= 15133 ;; 15134 15135 *.lto.$objext) ;; # Ignore GCC LTO objects 15136 *.$objext) 15137 # This assumes that the test object file only shows up 15138 # once in the compiler output. 15139 if test "$p" = "conftest.$objext"; then 15140 pre_test_object_deps_done=yes 15141 continue 15142 fi 15143 15144 if test no = "$pre_test_object_deps_done"; then 15145 if test -z "$predep_objects_CXX"; then 15146 predep_objects_CXX=$p 15147 else 15148 predep_objects_CXX="$predep_objects_CXX $p" 15149 fi 15150 else 15151 if test -z "$postdep_objects_CXX"; then 15152 postdep_objects_CXX=$p 15153 else 15154 postdep_objects_CXX="$postdep_objects_CXX $p" 15155 fi 15156 fi 15157 ;; 15158 15159 *) ;; # Ignore the rest. 15160 15161 esac 15162 done 15163 15164 # Clean up. 15165 rm -f a.out a.exe 15166else 15167 echo "libtool.m4: error: problem compiling CXX test program" 15168fi 15169 15170$RM -f confest.$objext 15171CFLAGS=$_lt_libdeps_save_CFLAGS 15172 15173# PORTME: override above test on systems where it is broken 15174case $host_os in 15175interix[3-9]*) 15176 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15177 # hack all around it, let's just trust "g++" to DTRT. 15178 predep_objects_CXX= 15179 postdep_objects_CXX= 15180 postdeps_CXX= 15181 ;; 15182esac 15183 15184 15185case " $postdeps_CXX " in 15186*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15187esac 15188 compiler_lib_search_dirs_CXX= 15189if test -n "${compiler_lib_search_path_CXX}"; then 15190 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15191fi 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 lt_prog_compiler_wl_CXX= 15224lt_prog_compiler_pic_CXX= 15225lt_prog_compiler_static_CXX= 15226 15227 15228 # C++ specific cases for pic, static, wl, etc. 15229 if test yes = "$GXX"; then 15230 lt_prog_compiler_wl_CXX='-Wl,' 15231 lt_prog_compiler_static_CXX='-static' 15232 15233 case $host_os in 15234 aix*) 15235 # All AIX code is PIC. 15236 if test ia64 = "$host_cpu"; then 15237 # AIX 5 now supports IA64 processor 15238 lt_prog_compiler_static_CXX='-Bstatic' 15239 fi 15240 lt_prog_compiler_pic_CXX='-fPIC' 15241 ;; 15242 15243 amigaos*) 15244 case $host_cpu in 15245 powerpc) 15246 # see comment about AmigaOS4 .so support 15247 lt_prog_compiler_pic_CXX='-fPIC' 15248 ;; 15249 m68k) 15250 # FIXME: we need at least 68020 code to build shared libraries, but 15251 # adding the '-m68020' flag to GCC prevents building anything better, 15252 # like '-m68040'. 15253 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15254 ;; 15255 esac 15256 ;; 15257 15258 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15259 # PIC is the default for these OSes. 15260 ;; 15261 mingw* | cygwin* | os2* | pw32* | cegcc*) 15262 # This hack is so that the source file can tell whether it is being 15263 # built for inclusion in a dll (and should export symbols for example). 15264 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15265 # (--disable-auto-import) libraries 15266 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15267 case $host_os in 15268 os2*) 15269 lt_prog_compiler_static_CXX='$wl-static' 15270 ;; 15271 esac 15272 ;; 15273 darwin* | rhapsody*) 15274 # PIC is the default on this platform 15275 # Common symbols not allowed in MH_DYLIB files 15276 lt_prog_compiler_pic_CXX='-fno-common' 15277 ;; 15278 *djgpp*) 15279 # DJGPP does not support shared libraries at all 15280 lt_prog_compiler_pic_CXX= 15281 ;; 15282 haiku*) 15283 # PIC is the default for Haiku. 15284 # The "-static" flag exists, but is broken. 15285 lt_prog_compiler_static_CXX= 15286 ;; 15287 interix[3-9]*) 15288 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15289 # Instead, we relocate shared libraries at runtime. 15290 ;; 15291 sysv4*MP*) 15292 if test -d /usr/nec; then 15293 lt_prog_compiler_pic_CXX=-Kconform_pic 15294 fi 15295 ;; 15296 hpux*) 15297 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15298 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15299 # sets the default TLS model and affects inlining. 15300 case $host_cpu in 15301 hppa*64*) 15302 ;; 15303 *) 15304 lt_prog_compiler_pic_CXX='-fPIC' 15305 ;; 15306 esac 15307 ;; 15308 *qnx* | *nto*) 15309 # QNX uses GNU C++, but need to define -shared option too, otherwise 15310 # it will coredump. 15311 lt_prog_compiler_pic_CXX='-fPIC -shared' 15312 ;; 15313 *) 15314 lt_prog_compiler_pic_CXX='-fPIC' 15315 ;; 15316 esac 15317 else 15318 case $host_os in 15319 aix[4-9]*) 15320 # All AIX code is PIC. 15321 if test ia64 = "$host_cpu"; then 15322 # AIX 5 now supports IA64 processor 15323 lt_prog_compiler_static_CXX='-Bstatic' 15324 else 15325 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15326 fi 15327 ;; 15328 chorus*) 15329 case $cc_basename in 15330 cxch68*) 15331 # Green Hills C++ Compiler 15332 # _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" 15333 ;; 15334 esac 15335 ;; 15336 mingw* | cygwin* | os2* | pw32* | cegcc*) 15337 # This hack is so that the source file can tell whether it is being 15338 # built for inclusion in a dll (and should export symbols for example). 15339 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15340 ;; 15341 dgux*) 15342 case $cc_basename in 15343 ec++*) 15344 lt_prog_compiler_pic_CXX='-KPIC' 15345 ;; 15346 ghcx*) 15347 # Green Hills C++ Compiler 15348 lt_prog_compiler_pic_CXX='-pic' 15349 ;; 15350 *) 15351 ;; 15352 esac 15353 ;; 15354 freebsd* | dragonfly*) 15355 # FreeBSD uses GNU C++ 15356 ;; 15357 hpux9* | hpux10* | hpux11*) 15358 case $cc_basename in 15359 CC*) 15360 lt_prog_compiler_wl_CXX='-Wl,' 15361 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15362 if test ia64 != "$host_cpu"; then 15363 lt_prog_compiler_pic_CXX='+Z' 15364 fi 15365 ;; 15366 aCC*) 15367 lt_prog_compiler_wl_CXX='-Wl,' 15368 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15369 case $host_cpu in 15370 hppa*64*|ia64*) 15371 # +Z the default 15372 ;; 15373 *) 15374 lt_prog_compiler_pic_CXX='+Z' 15375 ;; 15376 esac 15377 ;; 15378 *) 15379 ;; 15380 esac 15381 ;; 15382 interix*) 15383 # This is c89, which is MS Visual C++ (no shared libs) 15384 # Anyone wants to do a port? 15385 ;; 15386 irix5* | irix6* | nonstopux*) 15387 case $cc_basename in 15388 CC*) 15389 lt_prog_compiler_wl_CXX='-Wl,' 15390 lt_prog_compiler_static_CXX='-non_shared' 15391 # CC pic flag -KPIC is the default. 15392 ;; 15393 *) 15394 ;; 15395 esac 15396 ;; 15397 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15398 case $cc_basename in 15399 KCC*) 15400 # KAI C++ Compiler 15401 lt_prog_compiler_wl_CXX='--backend -Wl,' 15402 lt_prog_compiler_pic_CXX='-fPIC' 15403 ;; 15404 ecpc* ) 15405 # old Intel C++ for x86_64, which still supported -KPIC. 15406 lt_prog_compiler_wl_CXX='-Wl,' 15407 lt_prog_compiler_pic_CXX='-KPIC' 15408 lt_prog_compiler_static_CXX='-static' 15409 ;; 15410 icpc* ) 15411 # Intel C++, used to be incompatible with GCC. 15412 # ICC 10 doesn't accept -KPIC any more. 15413 lt_prog_compiler_wl_CXX='-Wl,' 15414 lt_prog_compiler_pic_CXX='-fPIC' 15415 lt_prog_compiler_static_CXX='-static' 15416 ;; 15417 pgCC* | pgcpp*) 15418 # Portland Group C++ compiler 15419 lt_prog_compiler_wl_CXX='-Wl,' 15420 lt_prog_compiler_pic_CXX='-fpic' 15421 lt_prog_compiler_static_CXX='-Bstatic' 15422 ;; 15423 cxx*) 15424 # Compaq C++ 15425 # Make sure the PIC flag is empty. It appears that all Alpha 15426 # Linux and Compaq Tru64 Unix objects are PIC. 15427 lt_prog_compiler_pic_CXX= 15428 lt_prog_compiler_static_CXX='-non_shared' 15429 ;; 15430 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15431 # IBM XL 8.0, 9.0 on PPC and BlueGene 15432 lt_prog_compiler_wl_CXX='-Wl,' 15433 lt_prog_compiler_pic_CXX='-qpic' 15434 lt_prog_compiler_static_CXX='-qstaticlink' 15435 ;; 15436 *) 15437 case `$CC -V 2>&1 | sed 5q` in 15438 *Sun\ C*) 15439 # Sun C++ 5.9 15440 lt_prog_compiler_pic_CXX='-KPIC' 15441 lt_prog_compiler_static_CXX='-Bstatic' 15442 lt_prog_compiler_wl_CXX='-Qoption ld ' 15443 ;; 15444 esac 15445 ;; 15446 esac 15447 ;; 15448 lynxos*) 15449 ;; 15450 m88k*) 15451 ;; 15452 mvs*) 15453 case $cc_basename in 15454 cxx*) 15455 lt_prog_compiler_pic_CXX='-W c,exportall' 15456 ;; 15457 *) 15458 ;; 15459 esac 15460 ;; 15461 netbsd*) 15462 ;; 15463 *qnx* | *nto*) 15464 # QNX uses GNU C++, but need to define -shared option too, otherwise 15465 # it will coredump. 15466 lt_prog_compiler_pic_CXX='-fPIC -shared' 15467 ;; 15468 osf3* | osf4* | osf5*) 15469 case $cc_basename in 15470 KCC*) 15471 lt_prog_compiler_wl_CXX='--backend -Wl,' 15472 ;; 15473 RCC*) 15474 # Rational C++ 2.4.1 15475 lt_prog_compiler_pic_CXX='-pic' 15476 ;; 15477 cxx*) 15478 # Digital/Compaq C++ 15479 lt_prog_compiler_wl_CXX='-Wl,' 15480 # Make sure the PIC flag is empty. It appears that all Alpha 15481 # Linux and Compaq Tru64 Unix objects are PIC. 15482 lt_prog_compiler_pic_CXX= 15483 lt_prog_compiler_static_CXX='-non_shared' 15484 ;; 15485 *) 15486 ;; 15487 esac 15488 ;; 15489 psos*) 15490 ;; 15491 solaris*) 15492 case $cc_basename in 15493 CC* | sunCC*) 15494 # Sun C++ 4.2, 5.x and Centerline C++ 15495 lt_prog_compiler_pic_CXX='-KPIC' 15496 lt_prog_compiler_static_CXX='-Bstatic' 15497 lt_prog_compiler_wl_CXX='-Qoption ld ' 15498 ;; 15499 gcx*) 15500 # Green Hills C++ Compiler 15501 lt_prog_compiler_pic_CXX='-PIC' 15502 ;; 15503 *) 15504 ;; 15505 esac 15506 ;; 15507 sunos4*) 15508 case $cc_basename in 15509 CC*) 15510 # Sun C++ 4.x 15511 lt_prog_compiler_pic_CXX='-pic' 15512 lt_prog_compiler_static_CXX='-Bstatic' 15513 ;; 15514 lcc*) 15515 # Lucid 15516 lt_prog_compiler_pic_CXX='-pic' 15517 ;; 15518 *) 15519 ;; 15520 esac 15521 ;; 15522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15523 case $cc_basename in 15524 CC*) 15525 lt_prog_compiler_wl_CXX='-Wl,' 15526 lt_prog_compiler_pic_CXX='-KPIC' 15527 lt_prog_compiler_static_CXX='-Bstatic' 15528 ;; 15529 esac 15530 ;; 15531 tandem*) 15532 case $cc_basename in 15533 NCC*) 15534 # NonStop-UX NCC 3.20 15535 lt_prog_compiler_pic_CXX='-KPIC' 15536 ;; 15537 *) 15538 ;; 15539 esac 15540 ;; 15541 vxworks*) 15542 ;; 15543 *) 15544 lt_prog_compiler_can_build_shared_CXX=no 15545 ;; 15546 esac 15547 fi 15548 15549case $host_os in 15550 # For platforms that do not support PIC, -DPIC is meaningless: 15551 *djgpp*) 15552 lt_prog_compiler_pic_CXX= 15553 ;; 15554 *) 15555 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15556 ;; 15557esac 15558 15559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15560printf %s "checking for $compiler option to produce PIC... " >&6; } 15561if test ${lt_cv_prog_compiler_pic_CXX+y} 15562then : 15563 printf %s "(cached) " >&6 15564else $as_nop 15565 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15566fi 15567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15568printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 15569lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15570 15571# 15572# Check to make sure the PIC flag actually works. 15573# 15574if test -n "$lt_prog_compiler_pic_CXX"; then 15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15576printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15577if test ${lt_cv_prog_compiler_pic_works_CXX+y} 15578then : 15579 printf %s "(cached) " >&6 15580else $as_nop 15581 lt_cv_prog_compiler_pic_works_CXX=no 15582 ac_outfile=conftest.$ac_objext 15583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15584 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15585 # Insert the option either (1) after the last *FLAGS variable, or 15586 # (2) before a word containing "conftest.", or (3) at the end. 15587 # Note that $ac_compile itself does not contain backslashes and begins 15588 # with a dollar sign (not a hyphen), so the echo should work correctly. 15589 # The option is referenced via a variable to avoid confusing sed. 15590 lt_compile=`echo "$ac_compile" | $SED \ 15591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15593 -e 's:$: $lt_compiler_flag:'` 15594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15595 (eval "$lt_compile" 2>conftest.err) 15596 ac_status=$? 15597 cat conftest.err >&5 15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15599 if (exit $ac_status) && test -s "$ac_outfile"; then 15600 # The compiler can only warn and ignore the option if not recognized 15601 # So say no if there are warnings other than the usual output. 15602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15605 lt_cv_prog_compiler_pic_works_CXX=yes 15606 fi 15607 fi 15608 $RM conftest* 15609 15610fi 15611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15612printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15613 15614if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15615 case $lt_prog_compiler_pic_CXX in 15616 "" | " "*) ;; 15617 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15618 esac 15619else 15620 lt_prog_compiler_pic_CXX= 15621 lt_prog_compiler_can_build_shared_CXX=no 15622fi 15623 15624fi 15625 15626 15627 15628 15629 15630# 15631# Check to make sure the static flag actually works. 15632# 15633wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15635printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15636if test ${lt_cv_prog_compiler_static_works_CXX+y} 15637then : 15638 printf %s "(cached) " >&6 15639else $as_nop 15640 lt_cv_prog_compiler_static_works_CXX=no 15641 save_LDFLAGS=$LDFLAGS 15642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15643 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15645 # The linker can only warn and ignore the option if not recognized 15646 # So say no if there are warnings 15647 if test -s conftest.err; then 15648 # Append any errors to the config.log. 15649 cat conftest.err 1>&5 15650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15652 if diff conftest.exp conftest.er2 >/dev/null; then 15653 lt_cv_prog_compiler_static_works_CXX=yes 15654 fi 15655 else 15656 lt_cv_prog_compiler_static_works_CXX=yes 15657 fi 15658 fi 15659 $RM -r conftest* 15660 LDFLAGS=$save_LDFLAGS 15661 15662fi 15663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15664printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15665 15666if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15667 : 15668else 15669 lt_prog_compiler_static_CXX= 15670fi 15671 15672 15673 15674 15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15676printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15677if test ${lt_cv_prog_compiler_c_o_CXX+y} 15678then : 15679 printf %s "(cached) " >&6 15680else $as_nop 15681 lt_cv_prog_compiler_c_o_CXX=no 15682 $RM -r conftest 2>/dev/null 15683 mkdir conftest 15684 cd conftest 15685 mkdir out 15686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15687 15688 lt_compiler_flag="-o out/conftest2.$ac_objext" 15689 # Insert the option either (1) after the last *FLAGS variable, or 15690 # (2) before a word containing "conftest.", or (3) at the end. 15691 # Note that $ac_compile itself does not contain backslashes and begins 15692 # with a dollar sign (not a hyphen), so the echo should work correctly. 15693 lt_compile=`echo "$ac_compile" | $SED \ 15694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15696 -e 's:$: $lt_compiler_flag:'` 15697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15698 (eval "$lt_compile" 2>out/conftest.err) 15699 ac_status=$? 15700 cat out/conftest.err >&5 15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15702 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15703 then 15704 # The compiler can only warn and ignore the option if not recognized 15705 # So say no if there are warnings 15706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15709 lt_cv_prog_compiler_c_o_CXX=yes 15710 fi 15711 fi 15712 chmod u+w . 2>&5 15713 $RM conftest* 15714 # SGI C++ compiler will create directory out/ii_files/ for 15715 # template instantiation 15716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15717 $RM out/* && rmdir out 15718 cd .. 15719 $RM -r conftest 15720 $RM conftest* 15721 15722fi 15723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15724printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15725 15726 15727 15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15729printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15730if test ${lt_cv_prog_compiler_c_o_CXX+y} 15731then : 15732 printf %s "(cached) " >&6 15733else $as_nop 15734 lt_cv_prog_compiler_c_o_CXX=no 15735 $RM -r conftest 2>/dev/null 15736 mkdir conftest 15737 cd conftest 15738 mkdir out 15739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15740 15741 lt_compiler_flag="-o out/conftest2.$ac_objext" 15742 # Insert the option either (1) after the last *FLAGS variable, or 15743 # (2) before a word containing "conftest.", or (3) at the end. 15744 # Note that $ac_compile itself does not contain backslashes and begins 15745 # with a dollar sign (not a hyphen), so the echo should work correctly. 15746 lt_compile=`echo "$ac_compile" | $SED \ 15747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15749 -e 's:$: $lt_compiler_flag:'` 15750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15751 (eval "$lt_compile" 2>out/conftest.err) 15752 ac_status=$? 15753 cat out/conftest.err >&5 15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15755 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15756 then 15757 # The compiler can only warn and ignore the option if not recognized 15758 # So say no if there are warnings 15759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15762 lt_cv_prog_compiler_c_o_CXX=yes 15763 fi 15764 fi 15765 chmod u+w . 2>&5 15766 $RM conftest* 15767 # SGI C++ compiler will create directory out/ii_files/ for 15768 # template instantiation 15769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15770 $RM out/* && rmdir out 15771 cd .. 15772 $RM -r conftest 15773 $RM conftest* 15774 15775fi 15776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15777printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15778 15779 15780 15781 15782hard_links=nottested 15783if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15784 # do not overwrite the value of need_locks provided by the user 15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15786printf %s "checking if we can lock with hard links... " >&6; } 15787 hard_links=yes 15788 $RM conftest* 15789 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15790 touch conftest.a 15791 ln conftest.a conftest.b 2>&5 || hard_links=no 15792 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15794printf "%s\n" "$hard_links" >&6; } 15795 if test no = "$hard_links"; then 15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15797printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15798 need_locks=warn 15799 fi 15800else 15801 need_locks=no 15802fi 15803 15804 15805 15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15807printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15808 15809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15810 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15811 case $host_os in 15812 aix[4-9]*) 15813 # If we're using GNU nm, then we don't want the "-C" option. 15814 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15815 # Without the "-l" option, or with the "-B" option, AIX nm treats 15816 # weak defined symbols like other global defined symbols, whereas 15817 # GNU nm marks them as "W". 15818 # While the 'weak' keyword is ignored in the Export File, we need 15819 # it in the Import File for the 'aix-soname' feature, so we have 15820 # to replace the "-B" option with "-P" for AIX nm. 15821 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15822 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' 15823 else 15824 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' 15825 fi 15826 ;; 15827 pw32*) 15828 export_symbols_cmds_CXX=$ltdll_cmds 15829 ;; 15830 cygwin* | mingw* | cegcc*) 15831 case $cc_basename in 15832 cl* | icl*) 15833 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15834 ;; 15835 *) 15836 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' 15837 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15838 ;; 15839 esac 15840 ;; 15841 *) 15842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15843 ;; 15844 esac 15845 15846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15847printf "%s\n" "$ld_shlibs_CXX" >&6; } 15848test no = "$ld_shlibs_CXX" && can_build_shared=no 15849 15850with_gnu_ld_CXX=$with_gnu_ld 15851 15852 15853 15854 15855 15856 15857# 15858# Do we need to explicitly link libc? 15859# 15860case "x$archive_cmds_need_lc_CXX" in 15861x|xyes) 15862 # Assume -lc should be added 15863 archive_cmds_need_lc_CXX=yes 15864 15865 if test yes,yes = "$GCC,$enable_shared"; then 15866 case $archive_cmds_CXX in 15867 *'~'*) 15868 # FIXME: we may have to deal with multi-command sequences. 15869 ;; 15870 '$CC '*) 15871 # Test whether the compiler implicitly links with -lc since on some 15872 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15873 # to ld, don't add -lc before -lgcc. 15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15875printf %s "checking whether -lc should be explicitly linked in... " >&6; } 15876if test ${lt_cv_archive_cmds_need_lc_CXX+y} 15877then : 15878 printf %s "(cached) " >&6 15879else $as_nop 15880 $RM conftest* 15881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15882 15883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15884 (eval $ac_compile) 2>&5 15885 ac_status=$? 15886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15887 test $ac_status = 0; } 2>conftest.err; then 15888 soname=conftest 15889 lib=conftest 15890 libobjs=conftest.$ac_objext 15891 deplibs= 15892 wl=$lt_prog_compiler_wl_CXX 15893 pic_flag=$lt_prog_compiler_pic_CXX 15894 compiler_flags=-v 15895 linker_flags=-v 15896 verstring= 15897 output_objdir=. 15898 libname=conftest 15899 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15900 allow_undefined_flag_CXX= 15901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15902 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15903 ac_status=$? 15904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15905 test $ac_status = 0; } 15906 then 15907 lt_cv_archive_cmds_need_lc_CXX=no 15908 else 15909 lt_cv_archive_cmds_need_lc_CXX=yes 15910 fi 15911 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15912 else 15913 cat conftest.err 1>&5 15914 fi 15915 $RM conftest* 15916 15917fi 15918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15919printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15920 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15921 ;; 15922 esac 15923 fi 15924 ;; 15925esac 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15989printf %s "checking dynamic linker characteristics... " >&6; } 15990 15991library_names_spec= 15992libname_spec='lib$name' 15993soname_spec= 15994shrext_cmds=.so 15995postinstall_cmds= 15996postuninstall_cmds= 15997finish_cmds= 15998finish_eval= 15999shlibpath_var= 16000shlibpath_overrides_runpath=unknown 16001version_type=none 16002dynamic_linker="$host_os ld.so" 16003sys_lib_dlsearch_path_spec="/lib /usr/lib" 16004need_lib_prefix=unknown 16005hardcode_into_libs=no 16006 16007# when you set need_version to no, make sure it does not cause -set_version 16008# flags to be left without arguments 16009need_version=unknown 16010 16011 16012 16013case $host_os in 16014aix3*) 16015 version_type=linux # correct to gnu/linux during the next big refactor 16016 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16017 shlibpath_var=LIBPATH 16018 16019 # AIX 3 has no versioning support, so we append a major version to the name. 16020 soname_spec='$libname$release$shared_ext$major' 16021 ;; 16022 16023aix[4-9]*) 16024 version_type=linux # correct to gnu/linux during the next big refactor 16025 need_lib_prefix=no 16026 need_version=no 16027 hardcode_into_libs=yes 16028 if test ia64 = "$host_cpu"; then 16029 # AIX 5 supports IA64 16030 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16031 shlibpath_var=LD_LIBRARY_PATH 16032 else 16033 # With GCC up to 2.95.x, collect2 would create an import file 16034 # for dependence libraries. The import file would start with 16035 # the line '#! .'. This would cause the generated library to 16036 # depend on '.', always an invalid library. This was fixed in 16037 # development snapshots of GCC prior to 3.0. 16038 case $host_os in 16039 aix4 | aix4.[01] | aix4.[01].*) 16040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16041 echo ' yes ' 16042 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16043 : 16044 else 16045 can_build_shared=no 16046 fi 16047 ;; 16048 esac 16049 # Using Import Files as archive members, it is possible to support 16050 # filename-based versioning of shared library archives on AIX. While 16051 # this would work for both with and without runtime linking, it will 16052 # prevent static linking of such archives. So we do filename-based 16053 # shared library versioning with .so extension only, which is used 16054 # when both runtime linking and shared linking is enabled. 16055 # Unfortunately, runtime linking may impact performance, so we do 16056 # not want this to be the default eventually. Also, we use the 16057 # versioned .so libs for executables only if there is the -brtl 16058 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16059 # To allow for filename-based versioning support, we need to create 16060 # libNAME.so.V as an archive file, containing: 16061 # *) an Import File, referring to the versioned filename of the 16062 # archive as well as the shared archive member, telling the 16063 # bitwidth (32 or 64) of that shared object, and providing the 16064 # list of exported symbols of that shared object, eventually 16065 # decorated with the 'weak' keyword 16066 # *) the shared object with the F_LOADONLY flag set, to really avoid 16067 # it being seen by the linker. 16068 # At run time we better use the real file rather than another symlink, 16069 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16070 16071 case $with_aix_soname,$aix_use_runtimelinking in 16072 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16073 # soname into executable. Probably we can add versioning support to 16074 # collect2, so additional links can be useful in future. 16075 aix,yes) # traditional libtool 16076 dynamic_linker='AIX unversionable lib.so' 16077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16078 # instead of lib<name>.a to let people know that these are not 16079 # typical AIX shared libraries. 16080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16081 ;; 16082 aix,no) # traditional AIX only 16083 dynamic_linker='AIX lib.a(lib.so.V)' 16084 # We preserve .a as extension for shared libraries through AIX4.2 16085 # and later when we are not doing run time linking. 16086 library_names_spec='$libname$release.a $libname.a' 16087 soname_spec='$libname$release$shared_ext$major' 16088 ;; 16089 svr4,*) # full svr4 only 16090 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16091 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16092 # We do not specify a path in Import Files, so LIBPATH fires. 16093 shlibpath_overrides_runpath=yes 16094 ;; 16095 *,yes) # both, prefer svr4 16096 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16097 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16098 # unpreferred sharedlib libNAME.a needs extra handling 16099 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"' 16100 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"' 16101 # We do not specify a path in Import Files, so LIBPATH fires. 16102 shlibpath_overrides_runpath=yes 16103 ;; 16104 *,no) # both, prefer aix 16105 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16106 library_names_spec='$libname$release.a $libname.a' 16107 soname_spec='$libname$release$shared_ext$major' 16108 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16109 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)' 16110 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"' 16111 ;; 16112 esac 16113 shlibpath_var=LIBPATH 16114 fi 16115 ;; 16116 16117amigaos*) 16118 case $host_cpu in 16119 powerpc) 16120 # Since July 2007 AmigaOS4 officially supports .so libraries. 16121 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16123 ;; 16124 m68k) 16125 library_names_spec='$libname.ixlibrary $libname.a' 16126 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16127 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' 16128 ;; 16129 esac 16130 ;; 16131 16132beos*) 16133 library_names_spec='$libname$shared_ext' 16134 dynamic_linker="$host_os ld.so" 16135 shlibpath_var=LIBRARY_PATH 16136 ;; 16137 16138bsdi[45]*) 16139 version_type=linux # correct to gnu/linux during the next big refactor 16140 need_version=no 16141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16142 soname_spec='$libname$release$shared_ext$major' 16143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16144 shlibpath_var=LD_LIBRARY_PATH 16145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16147 # the default ld.so.conf also contains /usr/contrib/lib and 16148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16149 # libtool to hard-code these into programs 16150 ;; 16151 16152cygwin* | mingw* | pw32* | cegcc*) 16153 version_type=windows 16154 shrext_cmds=.dll 16155 need_version=no 16156 need_lib_prefix=no 16157 16158 case $GCC,$cc_basename in 16159 yes,*) 16160 # gcc 16161 library_names_spec='$libname.dll.a' 16162 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16163 postinstall_cmds='base_file=`basename \$file`~ 16164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16165 dldir=$destdir/`dirname \$dlpath`~ 16166 test -d \$dldir || mkdir -p \$dldir~ 16167 $install_prog $dir/$dlname \$dldir/$dlname~ 16168 chmod a+x \$dldir/$dlname~ 16169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16171 fi' 16172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16173 dlpath=$dir/\$dldll~ 16174 $RM \$dlpath' 16175 shlibpath_overrides_runpath=yes 16176 16177 case $host_os in 16178 cygwin*) 16179 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16180 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16181 16182 ;; 16183 mingw* | cegcc*) 16184 # MinGW DLLs use traditional 'lib' prefix 16185 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16186 ;; 16187 pw32*) 16188 # pw32 DLLs use 'pw' prefix rather than 'lib' 16189 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16190 ;; 16191 esac 16192 dynamic_linker='Win32 ld.exe' 16193 ;; 16194 16195 *,cl* | *,icl*) 16196 # Native MSVC or ICC 16197 libname_spec='$name' 16198 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16199 library_names_spec='$libname.dll.lib' 16200 16201 case $build_os in 16202 mingw*) 16203 sys_lib_search_path_spec= 16204 lt_save_ifs=$IFS 16205 IFS=';' 16206 for lt_path in $LIB 16207 do 16208 IFS=$lt_save_ifs 16209 # Let DOS variable expansion print the short 8.3 style file name. 16210 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16211 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16212 done 16213 IFS=$lt_save_ifs 16214 # Convert to MSYS style. 16215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16216 ;; 16217 cygwin*) 16218 # Convert to unix form, then to dos form, then back to unix form 16219 # but this time dos style (no spaces!) so that the unix form looks 16220 # like /cygdrive/c/PROGRA~1:/cygdr... 16221 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16222 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16223 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16224 ;; 16225 *) 16226 sys_lib_search_path_spec=$LIB 16227 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16228 # It is most probably a Windows format PATH. 16229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16230 else 16231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16232 fi 16233 # FIXME: find the short name or the path components, as spaces are 16234 # common. (e.g. "Program Files" -> "PROGRA~1") 16235 ;; 16236 esac 16237 16238 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16239 postinstall_cmds='base_file=`basename \$file`~ 16240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16241 dldir=$destdir/`dirname \$dlpath`~ 16242 test -d \$dldir || mkdir -p \$dldir~ 16243 $install_prog $dir/$dlname \$dldir/$dlname' 16244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16245 dlpath=$dir/\$dldll~ 16246 $RM \$dlpath' 16247 shlibpath_overrides_runpath=yes 16248 dynamic_linker='Win32 link.exe' 16249 ;; 16250 16251 *) 16252 # Assume MSVC and ICC wrapper 16253 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16254 dynamic_linker='Win32 ld.exe' 16255 ;; 16256 esac 16257 # FIXME: first we should search . and the directory the executable is in 16258 shlibpath_var=PATH 16259 ;; 16260 16261darwin* | rhapsody*) 16262 dynamic_linker="$host_os dyld" 16263 version_type=darwin 16264 need_lib_prefix=no 16265 need_version=no 16266 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16267 soname_spec='$libname$release$major$shared_ext' 16268 shlibpath_overrides_runpath=yes 16269 shlibpath_var=DYLD_LIBRARY_PATH 16270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16271 16272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16273 ;; 16274 16275dgux*) 16276 version_type=linux # correct to gnu/linux during the next big refactor 16277 need_lib_prefix=no 16278 need_version=no 16279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16280 soname_spec='$libname$release$shared_ext$major' 16281 shlibpath_var=LD_LIBRARY_PATH 16282 ;; 16283 16284freebsd* | dragonfly*) 16285 # DragonFly does not have aout. When/if they implement a new 16286 # versioning mechanism, adjust this. 16287 if test -x /usr/bin/objformat; then 16288 objformat=`/usr/bin/objformat` 16289 else 16290 case $host_os in 16291 freebsd[23].*) objformat=aout ;; 16292 *) objformat=elf ;; 16293 esac 16294 fi 16295 version_type=freebsd-$objformat 16296 case $version_type in 16297 freebsd-elf*) 16298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16299 soname_spec='$libname$release$shared_ext$major' 16300 need_version=no 16301 need_lib_prefix=no 16302 ;; 16303 freebsd-*) 16304 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16305 need_version=yes 16306 ;; 16307 esac 16308 shlibpath_var=LD_LIBRARY_PATH 16309 case $host_os in 16310 freebsd2.*) 16311 shlibpath_overrides_runpath=yes 16312 ;; 16313 freebsd3.[01]* | freebsdelf3.[01]*) 16314 shlibpath_overrides_runpath=yes 16315 hardcode_into_libs=yes 16316 ;; 16317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16319 shlibpath_overrides_runpath=no 16320 hardcode_into_libs=yes 16321 ;; 16322 *) # from 4.6 on, and DragonFly 16323 shlibpath_overrides_runpath=yes 16324 hardcode_into_libs=yes 16325 ;; 16326 esac 16327 ;; 16328 16329haiku*) 16330 version_type=linux # correct to gnu/linux during the next big refactor 16331 need_lib_prefix=no 16332 need_version=no 16333 dynamic_linker="$host_os runtime_loader" 16334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16335 soname_spec='$libname$release$shared_ext$major' 16336 shlibpath_var=LIBRARY_PATH 16337 shlibpath_overrides_runpath=no 16338 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16339 hardcode_into_libs=yes 16340 ;; 16341 16342hpux9* | hpux10* | hpux11*) 16343 # Give a soname corresponding to the major version so that dld.sl refuses to 16344 # link against other versions. 16345 version_type=sunos 16346 need_lib_prefix=no 16347 need_version=no 16348 case $host_cpu in 16349 ia64*) 16350 shrext_cmds='.so' 16351 hardcode_into_libs=yes 16352 dynamic_linker="$host_os dld.so" 16353 shlibpath_var=LD_LIBRARY_PATH 16354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16356 soname_spec='$libname$release$shared_ext$major' 16357 if test 32 = "$HPUX_IA64_MODE"; then 16358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16359 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16360 else 16361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16362 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16363 fi 16364 ;; 16365 hppa*64*) 16366 shrext_cmds='.sl' 16367 hardcode_into_libs=yes 16368 dynamic_linker="$host_os dld.sl" 16369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16372 soname_spec='$libname$release$shared_ext$major' 16373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16375 ;; 16376 *) 16377 shrext_cmds='.sl' 16378 dynamic_linker="$host_os dld.sl" 16379 shlibpath_var=SHLIB_PATH 16380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16382 soname_spec='$libname$release$shared_ext$major' 16383 ;; 16384 esac 16385 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16386 postinstall_cmds='chmod 555 $lib' 16387 # or fails outright, so override atomically: 16388 install_override_mode=555 16389 ;; 16390 16391interix[3-9]*) 16392 version_type=linux # correct to gnu/linux during the next big refactor 16393 need_lib_prefix=no 16394 need_version=no 16395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16396 soname_spec='$libname$release$shared_ext$major' 16397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16398 shlibpath_var=LD_LIBRARY_PATH 16399 shlibpath_overrides_runpath=no 16400 hardcode_into_libs=yes 16401 ;; 16402 16403irix5* | irix6* | nonstopux*) 16404 case $host_os in 16405 nonstopux*) version_type=nonstopux ;; 16406 *) 16407 if test yes = "$lt_cv_prog_gnu_ld"; then 16408 version_type=linux # correct to gnu/linux during the next big refactor 16409 else 16410 version_type=irix 16411 fi ;; 16412 esac 16413 need_lib_prefix=no 16414 need_version=no 16415 soname_spec='$libname$release$shared_ext$major' 16416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16417 case $host_os in 16418 irix5* | nonstopux*) 16419 libsuff= shlibsuff= 16420 ;; 16421 *) 16422 case $LD in # libtool.m4 will add one of these switches to LD 16423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16424 libsuff= shlibsuff= libmagic=32-bit;; 16425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16426 libsuff=32 shlibsuff=N32 libmagic=N32;; 16427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16428 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16429 *) libsuff= shlibsuff= libmagic=never-match;; 16430 esac 16431 ;; 16432 esac 16433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16434 shlibpath_overrides_runpath=no 16435 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16436 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16437 hardcode_into_libs=yes 16438 ;; 16439 16440# No shared lib support for Linux oldld, aout, or coff. 16441linux*oldld* | linux*aout* | linux*coff*) 16442 dynamic_linker=no 16443 ;; 16444 16445linux*android*) 16446 version_type=none # Android doesn't support versioned libraries. 16447 need_lib_prefix=no 16448 need_version=no 16449 library_names_spec='$libname$release$shared_ext' 16450 soname_spec='$libname$release$shared_ext' 16451 finish_cmds= 16452 shlibpath_var=LD_LIBRARY_PATH 16453 shlibpath_overrides_runpath=yes 16454 16455 # This implies no fast_install, which is unacceptable. 16456 # Some rework will be needed to allow for fast_install 16457 # before this can be enabled. 16458 hardcode_into_libs=yes 16459 16460 dynamic_linker='Android linker' 16461 # Don't embed -rpath directories since the linker doesn't support them. 16462 hardcode_libdir_flag_spec_CXX='-L$libdir' 16463 ;; 16464 16465# This must be glibc/ELF. 16466linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16467 version_type=linux # correct to gnu/linux during the next big refactor 16468 need_lib_prefix=no 16469 need_version=no 16470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16471 soname_spec='$libname$release$shared_ext$major' 16472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16473 shlibpath_var=LD_LIBRARY_PATH 16474 shlibpath_overrides_runpath=no 16475 16476 # Some binutils ld are patched to set DT_RUNPATH 16477 if test ${lt_cv_shlibpath_overrides_runpath+y} 16478then : 16479 printf %s "(cached) " >&6 16480else $as_nop 16481 lt_cv_shlibpath_overrides_runpath=no 16482 save_LDFLAGS=$LDFLAGS 16483 save_libdir=$libdir 16484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16487/* end confdefs.h. */ 16488 16489int 16490main (void) 16491{ 16492 16493 ; 16494 return 0; 16495} 16496_ACEOF 16497if ac_fn_cxx_try_link "$LINENO" 16498then : 16499 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 16500then : 16501 lt_cv_shlibpath_overrides_runpath=yes 16502fi 16503fi 16504rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16505 conftest$ac_exeext conftest.$ac_ext 16506 LDFLAGS=$save_LDFLAGS 16507 libdir=$save_libdir 16508 16509fi 16510 16511 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16512 16513 # This implies no fast_install, which is unacceptable. 16514 # Some rework will be needed to allow for fast_install 16515 # before this can be enabled. 16516 hardcode_into_libs=yes 16517 16518 # Ideally, we could use ldconfig to report *all* directores which are 16519 # searched for libraries, however this is still not possible. Aside from not 16520 # being certain /sbin/ldconfig is available, command 16521 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16522 # even though it is searched at run-time. Try to do the best guess by 16523 # appending ld.so.conf contents (and includes) to the search path. 16524 if test -f /etc/ld.so.conf; then 16525 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' ' '` 16526 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16527 fi 16528 16529 # We used to test for /lib/ld.so.1 and disable shared libraries on 16530 # powerpc, because MkLinux only supported shared libraries with the 16531 # GNU dynamic linker. Since this was broken with cross compilers, 16532 # most powerpc-linux boxes support dynamic linking these days and 16533 # people can always --disable-shared, the test was removed, and we 16534 # assume the GNU/Linux dynamic linker is in use. 16535 dynamic_linker='GNU/Linux ld.so' 16536 ;; 16537 16538netbsd*) 16539 version_type=sunos 16540 need_lib_prefix=no 16541 need_version=no 16542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16545 dynamic_linker='NetBSD (a.out) ld.so' 16546 else 16547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16548 soname_spec='$libname$release$shared_ext$major' 16549 dynamic_linker='NetBSD ld.elf_so' 16550 fi 16551 shlibpath_var=LD_LIBRARY_PATH 16552 shlibpath_overrides_runpath=yes 16553 hardcode_into_libs=yes 16554 ;; 16555 16556newsos6) 16557 version_type=linux # correct to gnu/linux during the next big refactor 16558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16559 shlibpath_var=LD_LIBRARY_PATH 16560 shlibpath_overrides_runpath=yes 16561 ;; 16562 16563*nto* | *qnx*) 16564 version_type=qnx 16565 need_lib_prefix=no 16566 need_version=no 16567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16568 soname_spec='$libname$release$shared_ext$major' 16569 shlibpath_var=LD_LIBRARY_PATH 16570 shlibpath_overrides_runpath=no 16571 hardcode_into_libs=yes 16572 dynamic_linker='ldqnx.so' 16573 ;; 16574 16575openbsd* | bitrig*) 16576 version_type=sunos 16577 sys_lib_dlsearch_path_spec=/usr/lib 16578 need_lib_prefix=no 16579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16580 need_version=no 16581 else 16582 need_version=yes 16583 fi 16584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16586 shlibpath_var=LD_LIBRARY_PATH 16587 shlibpath_overrides_runpath=yes 16588 ;; 16589 16590os2*) 16591 libname_spec='$name' 16592 version_type=windows 16593 shrext_cmds=.dll 16594 need_version=no 16595 need_lib_prefix=no 16596 # OS/2 can only load a DLL with a base name of 8 characters or less. 16597 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16598 v=$($ECHO $release$versuffix | tr -d .-); 16599 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16600 $ECHO $n$v`$shared_ext' 16601 library_names_spec='${libname}_dll.$libext' 16602 dynamic_linker='OS/2 ld.exe' 16603 shlibpath_var=BEGINLIBPATH 16604 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16606 postinstall_cmds='base_file=`basename \$file`~ 16607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16608 dldir=$destdir/`dirname \$dlpath`~ 16609 test -d \$dldir || mkdir -p \$dldir~ 16610 $install_prog $dir/$dlname \$dldir/$dlname~ 16611 chmod a+x \$dldir/$dlname~ 16612 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16613 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16614 fi' 16615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16616 dlpath=$dir/\$dldll~ 16617 $RM \$dlpath' 16618 ;; 16619 16620osf3* | osf4* | osf5*) 16621 version_type=osf 16622 need_lib_prefix=no 16623 need_version=no 16624 soname_spec='$libname$release$shared_ext$major' 16625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16626 shlibpath_var=LD_LIBRARY_PATH 16627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16629 ;; 16630 16631rdos*) 16632 dynamic_linker=no 16633 ;; 16634 16635solaris*) 16636 version_type=linux # correct to gnu/linux during the next big refactor 16637 need_lib_prefix=no 16638 need_version=no 16639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16640 soname_spec='$libname$release$shared_ext$major' 16641 shlibpath_var=LD_LIBRARY_PATH 16642 shlibpath_overrides_runpath=yes 16643 hardcode_into_libs=yes 16644 # ldd complains unless libraries are executable 16645 postinstall_cmds='chmod +x $lib' 16646 ;; 16647 16648sunos4*) 16649 version_type=sunos 16650 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16652 shlibpath_var=LD_LIBRARY_PATH 16653 shlibpath_overrides_runpath=yes 16654 if test yes = "$with_gnu_ld"; then 16655 need_lib_prefix=no 16656 fi 16657 need_version=yes 16658 ;; 16659 16660sysv4 | sysv4.3*) 16661 version_type=linux # correct to gnu/linux during the next big refactor 16662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16663 soname_spec='$libname$release$shared_ext$major' 16664 shlibpath_var=LD_LIBRARY_PATH 16665 case $host_vendor in 16666 sni) 16667 shlibpath_overrides_runpath=no 16668 need_lib_prefix=no 16669 runpath_var=LD_RUN_PATH 16670 ;; 16671 siemens) 16672 need_lib_prefix=no 16673 ;; 16674 motorola) 16675 need_lib_prefix=no 16676 need_version=no 16677 shlibpath_overrides_runpath=no 16678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16679 ;; 16680 esac 16681 ;; 16682 16683sysv4*MP*) 16684 if test -d /usr/nec; then 16685 version_type=linux # correct to gnu/linux during the next big refactor 16686 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16687 soname_spec='$libname$shared_ext.$major' 16688 shlibpath_var=LD_LIBRARY_PATH 16689 fi 16690 ;; 16691 16692sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16693 version_type=sco 16694 need_lib_prefix=no 16695 need_version=no 16696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16697 soname_spec='$libname$release$shared_ext$major' 16698 shlibpath_var=LD_LIBRARY_PATH 16699 shlibpath_overrides_runpath=yes 16700 hardcode_into_libs=yes 16701 if test yes = "$with_gnu_ld"; then 16702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16703 else 16704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16705 case $host_os in 16706 sco3.2v5*) 16707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16708 ;; 16709 esac 16710 fi 16711 sys_lib_dlsearch_path_spec='/usr/lib' 16712 ;; 16713 16714tpf*) 16715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16716 version_type=linux # correct to gnu/linux during the next big refactor 16717 need_lib_prefix=no 16718 need_version=no 16719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16720 shlibpath_var=LD_LIBRARY_PATH 16721 shlibpath_overrides_runpath=no 16722 hardcode_into_libs=yes 16723 ;; 16724 16725uts4*) 16726 version_type=linux # correct to gnu/linux during the next big refactor 16727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16728 soname_spec='$libname$release$shared_ext$major' 16729 shlibpath_var=LD_LIBRARY_PATH 16730 ;; 16731 16732*) 16733 dynamic_linker=no 16734 ;; 16735esac 16736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16737printf "%s\n" "$dynamic_linker" >&6; } 16738test no = "$dynamic_linker" && can_build_shared=no 16739 16740variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16741if test yes = "$GCC"; then 16742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16743fi 16744 16745if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16746 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16747fi 16748 16749if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16750 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16751fi 16752 16753# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16754configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16755 16756# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16757func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16758 16759# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16760configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16802printf %s "checking how to hardcode library paths into programs... " >&6; } 16803hardcode_action_CXX= 16804if test -n "$hardcode_libdir_flag_spec_CXX" || 16805 test -n "$runpath_var_CXX" || 16806 test yes = "$hardcode_automatic_CXX"; then 16807 16808 # We can hardcode non-existent directories. 16809 if test no != "$hardcode_direct_CXX" && 16810 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16811 # have to relink, otherwise we might link with an installed library 16812 # when we should be linking with a yet-to-be-installed one 16813 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16814 test no != "$hardcode_minus_L_CXX"; then 16815 # Linking always hardcodes the temporary library directory. 16816 hardcode_action_CXX=relink 16817 else 16818 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16819 hardcode_action_CXX=immediate 16820 fi 16821else 16822 # We cannot hardcode anything, or else we can only hardcode existing 16823 # directories. 16824 hardcode_action_CXX=unsupported 16825fi 16826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16827printf "%s\n" "$hardcode_action_CXX" >&6; } 16828 16829if test relink = "$hardcode_action_CXX" || 16830 test yes = "$inherit_rpath_CXX"; then 16831 # Fast installation is not supported 16832 enable_fast_install=no 16833elif test yes = "$shlibpath_overrides_runpath" || 16834 test no = "$enable_shared"; then 16835 # Fast installation is not necessary 16836 enable_fast_install=needless 16837fi 16838 16839 16840 16841 16842 16843 16844 16845 fi # test -n "$compiler" 16846 16847 CC=$lt_save_CC 16848 CFLAGS=$lt_save_CFLAGS 16849 LDCXX=$LD 16850 LD=$lt_save_LD 16851 GCC=$lt_save_GCC 16852 with_gnu_ld=$lt_save_with_gnu_ld 16853 lt_cv_path_LDCXX=$lt_cv_path_LD 16854 lt_cv_path_LD=$lt_save_path_LD 16855 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16856 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16857fi # test yes != "$_lt_caught_CXX_error" 16858 16859ac_ext=c 16860ac_cpp='$CPP $CPPFLAGS' 16861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16863ac_compiler_gnu=$ac_cv_c_compiler_gnu 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 ac_config_commands="$ac_config_commands libtool" 16880 16881 16882 16883 16884# Only expand once: 16885 16886 16887 if test x$GCC = xyes; then 16888 GCC_TRUE= 16889 GCC_FALSE='#' 16890else 16891 GCC_TRUE='#' 16892 GCC_FALSE= 16893fi 16894 16895 16896# Checks for libraries. 16897 16898# Checks for header files. 16899ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 16900if test "x$ac_cv_header_endian_h" = xyes 16901then : 16902 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 16903 16904fi 16905ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 16906if test "x$ac_cv_header_fcntl_h" = xyes 16907then : 16908 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 16909 16910fi 16911ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 16912if test "x$ac_cv_header_locale_h" = xyes 16913then : 16914 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 16915 16916fi 16917ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 16918if test "x$ac_cv_header_sched_h" = xyes 16919then : 16920 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 16921 16922fi 16923ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 16924if test "x$ac_cv_header_unistd_h" = xyes 16925then : 16926 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 16927 16928fi 16929ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 16930if test "x$ac_cv_header_sys_param_h" = xyes 16931then : 16932 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 16933 16934fi 16935ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 16936if test "x$ac_cv_header_sys_stat_h" = xyes 16937then : 16938 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 16939 16940fi 16941ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 16942if test "x$ac_cv_header_sys_time_h" = xyes 16943then : 16944 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 16945 16946fi 16947ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 16948if test "x$ac_cv_header_sys_types_h" = xyes 16949then : 16950 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 16951 16952fi 16953 16954 16955# Checks for typedefs, structures, and compiler characteristics. 16956ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 16957case $ac_cv_c_int32_t in #( 16958 no|yes) ;; #( 16959 *) 16960 16961printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h 16962;; 16963esac 16964 16965ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 16966case $ac_cv_c_uint32_t in #( 16967 no|yes) ;; #( 16968 *) 16969 16970printf "%s\n" "#define _UINT32_T 1" >>confdefs.h 16971 16972 16973printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h 16974;; 16975 esac 16976 16977ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 16978case $ac_cv_c_uint16_t in #( 16979 no|yes) ;; #( 16980 *) 16981 16982 16983printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h 16984;; 16985 esac 16986 16987ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 16988case $ac_cv_c_uint8_t in #( 16989 no|yes) ;; #( 16990 *) 16991 16992printf "%s\n" "#define _UINT8_T 1" >>confdefs.h 16993 16994 16995printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h 16996;; 16997 esac 16998 16999 17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 17001printf %s "checking for unsigned long long int... " >&6; } 17002if test ${ac_cv_type_unsigned_long_long_int+y} 17003then : 17004 printf %s "(cached) " >&6 17005else $as_nop 17006 ac_cv_type_unsigned_long_long_int=yes 17007 case $ac_prog_cc_stdc in 17008 no | c89) ;; 17009 *) 17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17011/* end confdefs.h. */ 17012 17013 /* For now, do not test the preprocessor; as of 2007 there are too many 17014 implementations with broken preprocessors. Perhaps this can 17015 be revisited in 2012. In the meantime, code should not expect 17016 #if to work with literals wider than 32 bits. */ 17017 /* Test literals. */ 17018 long long int ll = 9223372036854775807ll; 17019 long long int nll = -9223372036854775807LL; 17020 unsigned long long int ull = 18446744073709551615ULL; 17021 /* Test constant expressions. */ 17022 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 17023 ? 1 : -1)]; 17024 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 17025 ? 1 : -1)]; 17026 int i = 63; 17027int 17028main (void) 17029{ 17030/* Test availability of runtime routines for shift and division. */ 17031 long long int llmax = 9223372036854775807ll; 17032 unsigned long long int ullmax = 18446744073709551615ull; 17033 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 17034 | (llmax / ll) | (llmax % ll) 17035 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 17036 | (ullmax / ull) | (ullmax % ull)); 17037 ; 17038 return 0; 17039} 17040 17041_ACEOF 17042if ac_fn_c_try_link "$LINENO" 17043then : 17044 17045else $as_nop 17046 ac_cv_type_unsigned_long_long_int=no 17047fi 17048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17049 conftest$ac_exeext conftest.$ac_ext;; 17050 esac 17051fi 17052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 17053printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; } 17054 if test $ac_cv_type_unsigned_long_long_int = yes; then 17055 17056printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 17057 17058 fi 17059 17060 17061 17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 17063printf %s "checking for long long int... " >&6; } 17064if test ${ac_cv_type_long_long_int+y} 17065then : 17066 printf %s "(cached) " >&6 17067else $as_nop 17068 ac_cv_type_long_long_int=yes 17069 case $ac_prog_cc_stdc in 17070 no | c89) ;; 17071 *) 17072 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 17073 if test $ac_cv_type_long_long_int = yes; then 17074 if test "$cross_compiling" = yes 17075then : 17076 : 17077else $as_nop 17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17079/* end confdefs.h. */ 17080#include <limits.h> 17081 #ifndef LLONG_MAX 17082 # define HALF \ 17083 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 17084 # define LLONG_MAX (HALF - 1 + HALF) 17085 #endif 17086int 17087main (void) 17088{ 17089long long int n = 1; 17090 int i; 17091 for (i = 0; ; i++) 17092 { 17093 long long int m = n << i; 17094 if (m >> i != n) 17095 return 1; 17096 if (LLONG_MAX / 2 < m) 17097 break; 17098 } 17099 return 0; 17100 ; 17101 return 0; 17102} 17103_ACEOF 17104if ac_fn_c_try_run "$LINENO" 17105then : 17106 17107else $as_nop 17108 ac_cv_type_long_long_int=no 17109fi 17110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17111 conftest.$ac_objext conftest.beam conftest.$ac_ext 17112fi 17113 17114 fi;; 17115 esac 17116fi 17117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 17118printf "%s\n" "$ac_cv_type_long_long_int" >&6; } 17119 if test $ac_cv_type_long_long_int = yes; then 17120 17121printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 17122 17123 fi 17124 17125 17126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17127printf %s "checking for inline... " >&6; } 17128if test ${ac_cv_c_inline+y} 17129then : 17130 printf %s "(cached) " >&6 17131else $as_nop 17132 ac_cv_c_inline=no 17133for ac_kw in inline __inline__ __inline; do 17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136#ifndef __cplusplus 17137typedef int foo_t; 17138static $ac_kw foo_t static_foo (void) {return 0; } 17139$ac_kw foo_t foo (void) {return 0; } 17140#endif 17141 17142_ACEOF 17143if ac_fn_c_try_compile "$LINENO" 17144then : 17145 ac_cv_c_inline=$ac_kw 17146fi 17147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17148 test "$ac_cv_c_inline" != no && break 17149done 17150 17151fi 17152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17153printf "%s\n" "$ac_cv_c_inline" >&6; } 17154 17155case $ac_cv_c_inline in 17156 inline | yes) ;; 17157 *) 17158 case $ac_cv_c_inline in 17159 no) ac_val=;; 17160 *) ac_val=$ac_cv_c_inline;; 17161 esac 17162 cat >>confdefs.h <<_ACEOF 17163#ifndef __cplusplus 17164#define inline $ac_val 17165#endif 17166_ACEOF 17167 ;; 17168esac 17169 17170case $ac_cv_c_inline in 17171 yes) json_inline=inline;; 17172 no) json_inline=;; 17173 *) json_inline=$ac_cv_c_inline;; 17174esac 17175 17176 17177# Checks for library functions. 17178ac_fn_c_check_func "$LINENO" "close" "ac_cv_func_close" 17179if test "x$ac_cv_func_close" = xyes 17180then : 17181 printf "%s\n" "#define HAVE_CLOSE 1" >>confdefs.h 17182 17183fi 17184ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" 17185if test "x$ac_cv_func_getpid" = xyes 17186then : 17187 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h 17188 17189fi 17190ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 17191if test "x$ac_cv_func_gettimeofday" = xyes 17192then : 17193 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 17194 17195fi 17196ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 17197if test "x$ac_cv_func_localeconv" = xyes 17198then : 17199 printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h 17200 17201fi 17202ac_fn_c_check_func "$LINENO" "open" "ac_cv_func_open" 17203if test "x$ac_cv_func_open" = xyes 17204then : 17205 printf "%s\n" "#define HAVE_OPEN 1" >>confdefs.h 17206 17207fi 17208ac_fn_c_check_func "$LINENO" "read" "ac_cv_func_read" 17209if test "x$ac_cv_func_read" = xyes 17210then : 17211 printf "%s\n" "#define HAVE_READ 1" >>confdefs.h 17212 17213fi 17214ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 17215if test "x$ac_cv_func_sched_yield" = xyes 17216then : 17217 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h 17218 17219fi 17220ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 17221if test "x$ac_cv_func_strtoll" = xyes 17222then : 17223 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 17224 17225fi 17226 17227 17228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc __sync builtins" >&5 17229printf %s "checking for gcc __sync builtins... " >&6; } 17230have_sync_builtins=no 17231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17232/* end confdefs.h. */ 17233 17234int 17235main (void) 17236{ 17237unsigned long val; __sync_bool_compare_and_swap(&val, 0, 1); __sync_add_and_fetch(&val, 1); __sync_sub_and_fetch(&val, 1); 17238 ; 17239 return 0; 17240} 17241_ACEOF 17242if ac_fn_c_try_link "$LINENO" 17243then : 17244 have_sync_builtins=yes 17245fi 17246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17247 conftest$ac_exeext conftest.$ac_ext 17248if test "x$have_sync_builtins" = "xyes"; then 17249 17250printf "%s\n" "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h 17251 17252 json_have_sync_builtins=1 17253else 17254 json_have_sync_builtins=0 17255fi 17256 17257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sync_builtins" >&5 17258printf "%s\n" "$have_sync_builtins" >&6; } 17259 17260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc __atomic builtins" >&5 17261printf %s "checking for gcc __atomic builtins... " >&6; } 17262have_atomic_builtins=no 17263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17264/* end confdefs.h. */ 17265 17266int 17267main (void) 17268{ 17269char l; unsigned long v; __atomic_test_and_set(&l, __ATOMIC_RELAXED); __atomic_store_n(&v, 1, __ATOMIC_RELEASE); __atomic_load_n(&v, __ATOMIC_ACQUIRE); __atomic_add_fetch(&v, 1, __ATOMIC_ACQUIRE); __atomic_sub_fetch(&v, 1, __ATOMIC_RELEASE); 17270 ; 17271 return 0; 17272} 17273_ACEOF 17274if ac_fn_c_try_link "$LINENO" 17275then : 17276 have_atomic_builtins=yes 17277fi 17278rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17279 conftest$ac_exeext conftest.$ac_ext 17280if test "x$have_atomic_builtins" = "xyes"; then 17281 17282printf "%s\n" "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h 17283 17284 json_have_atomic_builtins=1 17285else 17286 json_have_atomic_builtins=0 17287fi 17288 17289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_atomic_builtins" >&5 17290printf "%s\n" "$have_atomic_builtins" >&6; } 17291 17292case "$ac_cv_type_long_long_int$ac_cv_func_strtoll" in 17293 yesyes) json_have_long_long=1;; 17294 *) json_have_long_long=0;; 17295esac 17296 17297 17298case "$ac_cv_header_locale_h$ac_cv_func_localeconv" in 17299 yesyes) json_have_localeconv=1;; 17300 *) json_have_localeconv=0;; 17301esac 17302 17303 17304# Features 17305# Check whether --enable-urandom was given. 17306if test ${enable_urandom+y} 17307then : 17308 enableval=$enable_urandom; use_urandom=$enableval 17309else $as_nop 17310 use_urandom=yes 17311fi 17312 17313 17314if test "x$use_urandom" = xyes; then 17315 17316printf "%s\n" "#define USE_URANDOM 1" >>confdefs.h 17317 17318fi 17319 17320# Check whether --enable-windows-cryptoapi was given. 17321if test ${enable_windows_cryptoapi+y} 17322then : 17323 enableval=$enable_windows_cryptoapi; use_windows_cryptoapi=$enableval 17324else $as_nop 17325 use_windows_cryptoapi=yes 17326fi 17327 17328 17329if test "x$use_windows_cryptoapi" = xyes; then 17330 17331printf "%s\n" "#define USE_WINDOWS_CRYPTOAPI 1" >>confdefs.h 17332 17333fi 17334 17335# Check whether --enable-initial-hashtable-order was given. 17336if test ${enable_initial_hashtable_order+y} 17337then : 17338 enableval=$enable_initial_hashtable_order; initial_hashtable_order=$enableval 17339else $as_nop 17340 initial_hashtable_order=3 17341fi 17342 17343 17344printf "%s\n" "#define INITIAL_HASHTABLE_ORDER $initial_hashtable_order" >>confdefs.h 17345 17346 17347# Check whether --enable-Bsymbolic was given. 17348if test ${enable_Bsymbolic+y} 17349then : 17350 enableval=$enable_Bsymbolic; 17351else $as_nop 17352 with_Bsymbolic=check 17353fi 17354 17355 17356if test "x$with_Bsymbolic" != "xno" ; then 17357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5 17358printf %s "checking for -Bsymbolic-functions linker flag... " >&6; } 17359 saved_LDFLAGS="${LDFLAGS}" 17360 LDFLAGS=-Wl,-Bsymbolic-functions 17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17362/* end confdefs.h. */ 17363 17364int 17365main (void) 17366{ 17367int main (void) { return 0; } 17368 ; 17369 return 0; 17370} 17371_ACEOF 17372if ac_fn_c_try_link "$LINENO" 17373then : 17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17375printf "%s\n" "yes" >&6; } 17376 have_Bsymbolic=yes 17377else $as_nop 17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17379printf "%s\n" "no" >&6; } 17380 have_Bsymbolic=no 17381 17382fi 17383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17384 conftest$ac_exeext conftest.$ac_ext 17385 LDFLAGS="${saved_LDFLAGS}" 17386 17387 if test "x$with_Bsymbolic" = "xcheck" ; then 17388 with_Bsymbolic=$have_Bsymbolic; 17389 fi 17390 if test "x$with_Bsymbolic:x$have_Bsymbolic" = "xyes:xno" ; then 17391 as_fn_error $? "linker support is required for -Bsymbolic" "$LINENO" 5 17392 fi 17393fi 17394 17395if test "x$with_Bsymbolic" = "xyes" 17396then : 17397 JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions 17398fi 17399 17400 17401# Enable symbol versioning on GNU libc 17402JSON_SYMVER_LDFLAGS= 17403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 17404printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 17405if test ${ac_cv_c_undeclared_builtin_options+y} 17406then : 17407 printf %s "(cached) " >&6 17408else $as_nop 17409 ac_save_CFLAGS=$CFLAGS 17410 ac_cv_c_undeclared_builtin_options='cannot detect' 17411 for ac_arg in '' -fno-builtin; do 17412 CFLAGS="$ac_save_CFLAGS $ac_arg" 17413 # This test program should *not* compile successfully. 17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17415/* end confdefs.h. */ 17416 17417int 17418main (void) 17419{ 17420(void) strchr; 17421 ; 17422 return 0; 17423} 17424_ACEOF 17425if ac_fn_c_try_compile "$LINENO" 17426then : 17427 17428else $as_nop 17429 # This test program should compile successfully. 17430 # No library function is consistently available on 17431 # freestanding implementations, so test against a dummy 17432 # declaration. Include always-available headers on the 17433 # off chance that they somehow elicit warnings. 17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17435/* end confdefs.h. */ 17436#include <float.h> 17437#include <limits.h> 17438#include <stdarg.h> 17439#include <stddef.h> 17440extern void ac_decl (int, char *); 17441 17442int 17443main (void) 17444{ 17445(void) ac_decl (0, (char *) 0); 17446 (void) ac_decl; 17447 17448 ; 17449 return 0; 17450} 17451_ACEOF 17452if ac_fn_c_try_compile "$LINENO" 17453then : 17454 if test x"$ac_arg" = x 17455then : 17456 ac_cv_c_undeclared_builtin_options='none needed' 17457else $as_nop 17458 ac_cv_c_undeclared_builtin_options=$ac_arg 17459fi 17460 break 17461fi 17462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17463fi 17464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17465 done 17466 CFLAGS=$ac_save_CFLAGS 17467 17468fi 17469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 17470printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 17471 case $ac_cv_c_undeclared_builtin_options in #( 17472 'cannot detect') : 17473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17474printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17475as_fn_error $? "cannot make $CC report undeclared builtins 17476See \`config.log' for more details" "$LINENO" 5; } ;; #( 17477 'none needed') : 17478 ac_c_undeclared_builtin_options='' ;; #( 17479 *) : 17480 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 17481esac 17482 17483ac_fn_check_decl "$LINENO" "__GLIBC__" "ac_cv_have_decl___GLIBC__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 17484if test "x$ac_cv_have_decl___GLIBC__" = xyes 17485then : 17486 JSON_SYMVER_LDFLAGS=-Wl,--default-symver 17487fi 17488 17489 17490# Check whether --enable-ossfuzzers was given. 17491if test ${enable_ossfuzzers+y} 17492then : 17493 enableval=$enable_ossfuzzers; have_ossfuzzers=yes 17494else $as_nop 17495 have_ossfuzzers=no 17496fi 17497 17498 if test "x$have_ossfuzzers" = "xyes"; then 17499 USE_OSSFUZZERS_TRUE= 17500 USE_OSSFUZZERS_FALSE='#' 17501else 17502 USE_OSSFUZZERS_TRUE='#' 17503 USE_OSSFUZZERS_FALSE= 17504fi 17505 17506 17507 17508 17509 if test "x$LIB_FUZZING_ENGINE" = "x-fsanitize=fuzzer"; then 17510 USE_OSSFUZZ_FLAG_TRUE= 17511 USE_OSSFUZZ_FLAG_FALSE='#' 17512else 17513 USE_OSSFUZZ_FLAG_TRUE='#' 17514 USE_OSSFUZZ_FLAG_FALSE= 17515fi 17516 17517 if test -f "$LIB_FUZZING_ENGINE"; then 17518 USE_OSSFUZZ_STATIC_TRUE= 17519 USE_OSSFUZZ_STATIC_FALSE='#' 17520else 17521 USE_OSSFUZZ_STATIC_TRUE='#' 17522 USE_OSSFUZZ_STATIC_FALSE= 17523fi 17524 17525 17526 17527if test x$GCC = xyes; then 17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation" >&5 17529printf %s "checking for -Wno-format-truncation... " >&6; } 17530 wnoformat_truncation="-Wno-format-truncation" 17531 if ${CC} -Wno-format-truncation -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1 17532then : 17533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17534printf "%s\n" "yes" >&6; } 17535else $as_nop 17536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17537printf "%s\n" "no" >&6; } 17538 wnoformat_truncation="" 17539fi 17540 17541 AM_CFLAGS="-Wall -Wextra -Wdeclaration-after-statement -Wshadow ${wnoformat_truncation}" 17542fi 17543 17544 17545ac_config_files="$ac_config_files jansson.pc Makefile doc/Makefile src/Makefile src/jansson_config.h test/Makefile test/bin/Makefile test/ossfuzz/Makefile test/suites/Makefile test/suites/api/Makefile" 17546 17547cat >confcache <<\_ACEOF 17548# This file is a shell script that caches the results of configure 17549# tests run on this system so they can be shared between configure 17550# scripts and configure runs, see configure's option --config-cache. 17551# It is not useful on other systems. If it contains results you don't 17552# want to keep, you may remove or edit it. 17553# 17554# config.status only pays attention to the cache file if you give it 17555# the --recheck option to rerun configure. 17556# 17557# `ac_cv_env_foo' variables (set or unset) will be overridden when 17558# loading this file, other *unset* `ac_cv_foo' will be assigned the 17559# following values. 17560 17561_ACEOF 17562 17563# The following way of writing the cache mishandles newlines in values, 17564# but we know of no workaround that is simple, portable, and efficient. 17565# So, we kill variables containing newlines. 17566# Ultrix sh set writes to stderr and can't be redirected directly, 17567# and sets the high bit in the cache file unless we assign to the vars. 17568( 17569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17570 eval ac_val=\$$ac_var 17571 case $ac_val in #( 17572 *${as_nl}*) 17573 case $ac_var in #( 17574 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17575printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17576 esac 17577 case $ac_var in #( 17578 _ | IFS | as_nl) ;; #( 17579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17580 *) { eval $ac_var=; unset $ac_var;} ;; 17581 esac ;; 17582 esac 17583 done 17584 17585 (set) 2>&1 | 17586 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17587 *${as_nl}ac_space=\ *) 17588 # `set' does not quote correctly, so add quotes: double-quote 17589 # substitution turns \\\\ into \\, and sed turns \\ into \. 17590 sed -n \ 17591 "s/'/'\\\\''/g; 17592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17593 ;; #( 17594 *) 17595 # `set' quotes correctly as required by POSIX, so do not add quotes. 17596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17597 ;; 17598 esac | 17599 sort 17600) | 17601 sed ' 17602 /^ac_cv_env_/b end 17603 t clear 17604 :clear 17605 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 17606 t end 17607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17608 :end' >>confcache 17609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17610 if test -w "$cache_file"; then 17611 if test "x$cache_file" != "x/dev/null"; then 17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17613printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 17614 if test ! -f "$cache_file" || test -h "$cache_file"; then 17615 cat confcache >"$cache_file" 17616 else 17617 case $cache_file in #( 17618 */* | ?:*) 17619 mv -f confcache "$cache_file"$$ && 17620 mv -f "$cache_file"$$ "$cache_file" ;; #( 17621 *) 17622 mv -f confcache "$cache_file" ;; 17623 esac 17624 fi 17625 fi 17626 else 17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17628printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 17629 fi 17630fi 17631rm -f confcache 17632 17633test "x$prefix" = xNONE && prefix=$ac_default_prefix 17634# Let make expand exec_prefix. 17635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17636 17637DEFS=-DHAVE_CONFIG_H 17638 17639ac_libobjs= 17640ac_ltlibobjs= 17641U= 17642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17643 # 1. Remove the extension, and $U if already installed. 17644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17645 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 17646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17647 # will be set to the directory where LIBOBJS objects are built. 17648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17650done 17651LIBOBJS=$ac_libobjs 17652 17653LTLIBOBJS=$ac_ltlibobjs 17654 17655 17656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17657printf %s "checking that generated files are newer than configure... " >&6; } 17658 if test -n "$am_sleep_pid"; then 17659 # Hide warnings about reused PIDs. 17660 wait $am_sleep_pid 2>/dev/null 17661 fi 17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 17663printf "%s\n" "done" >&6; } 17664 if test -n "$EXEEXT"; then 17665 am__EXEEXT_TRUE= 17666 am__EXEEXT_FALSE='#' 17667else 17668 am__EXEEXT_TRUE='#' 17669 am__EXEEXT_FALSE= 17670fi 17671 17672if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17673 as_fn_error $? "conditional \"AMDEP\" was never defined. 17674Usually this means the macro was only invoked conditionally." "$LINENO" 5 17675fi 17676if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17677 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17678Usually this means the macro was only invoked conditionally." "$LINENO" 5 17679fi 17680if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17681 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17682Usually this means the macro was only invoked conditionally." "$LINENO" 5 17683fi 17684if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 17685 as_fn_error $? "conditional \"GCC\" was never defined. 17686Usually this means the macro was only invoked conditionally." "$LINENO" 5 17687fi 17688if test -z "${USE_OSSFUZZERS_TRUE}" && test -z "${USE_OSSFUZZERS_FALSE}"; then 17689 as_fn_error $? "conditional \"USE_OSSFUZZERS\" was never defined. 17690Usually this means the macro was only invoked conditionally." "$LINENO" 5 17691fi 17692if test -z "${USE_OSSFUZZ_FLAG_TRUE}" && test -z "${USE_OSSFUZZ_FLAG_FALSE}"; then 17693 as_fn_error $? "conditional \"USE_OSSFUZZ_FLAG\" was never defined. 17694Usually this means the macro was only invoked conditionally." "$LINENO" 5 17695fi 17696if test -z "${USE_OSSFUZZ_STATIC_TRUE}" && test -z "${USE_OSSFUZZ_STATIC_FALSE}"; then 17697 as_fn_error $? "conditional \"USE_OSSFUZZ_STATIC\" was never defined. 17698Usually this means the macro was only invoked conditionally." "$LINENO" 5 17699fi 17700 17701: "${CONFIG_STATUS=./config.status}" 17702ac_write_fail=0 17703ac_clean_files_save=$ac_clean_files 17704ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17706printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 17707as_write_fail=0 17708cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17709#! $SHELL 17710# Generated by $as_me. 17711# Run this file to recreate the current configuration. 17712# Compiler output produced by configure, useful for debugging 17713# configure, is in config.log if it exists. 17714 17715debug=false 17716ac_cs_recheck=false 17717ac_cs_silent=false 17718 17719SHELL=\${CONFIG_SHELL-$SHELL} 17720export SHELL 17721_ASEOF 17722cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17723## -------------------- ## 17724## M4sh Initialization. ## 17725## -------------------- ## 17726 17727# Be more Bourne compatible 17728DUALCASE=1; export DUALCASE # for MKS sh 17729as_nop=: 17730if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 17731then : 17732 emulate sh 17733 NULLCMD=: 17734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17735 # is contrary to our usage. Disable this feature. 17736 alias -g '${1+"$@"}'='"$@"' 17737 setopt NO_GLOB_SUBST 17738else $as_nop 17739 case `(set -o) 2>/dev/null` in #( 17740 *posix*) : 17741 set -o posix ;; #( 17742 *) : 17743 ;; 17744esac 17745fi 17746 17747 17748 17749# Reset variables that may have inherited troublesome values from 17750# the environment. 17751 17752# IFS needs to be set, to space, tab, and newline, in precisely that order. 17753# (If _AS_PATH_WALK were called with IFS unset, it would have the 17754# side effect of setting IFS to empty, thus disabling word splitting.) 17755# Quoting is to prevent editors from complaining about space-tab. 17756as_nl=' 17757' 17758export as_nl 17759IFS=" "" $as_nl" 17760 17761PS1='$ ' 17762PS2='> ' 17763PS4='+ ' 17764 17765# Ensure predictable behavior from utilities with locale-dependent output. 17766LC_ALL=C 17767export LC_ALL 17768LANGUAGE=C 17769export LANGUAGE 17770 17771# We cannot yet rely on "unset" to work, but we need these variables 17772# to be unset--not just set to an empty or harmless value--now, to 17773# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 17774# also avoids known problems related to "unset" and subshell syntax 17775# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 17776for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 17777do eval test \${$as_var+y} \ 17778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17779done 17780 17781# Ensure that fds 0, 1, and 2 are open. 17782if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 17783if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 17784if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 17785 17786# The user is always right. 17787if ${PATH_SEPARATOR+false} :; then 17788 PATH_SEPARATOR=: 17789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17791 PATH_SEPARATOR=';' 17792 } 17793fi 17794 17795 17796# Find who we are. Look in the path if we contain no directory separator. 17797as_myself= 17798case $0 in #(( 17799 *[\\/]* ) as_myself=$0 ;; 17800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17801for as_dir in $PATH 17802do 17803 IFS=$as_save_IFS 17804 case $as_dir in #((( 17805 '') as_dir=./ ;; 17806 */) ;; 17807 *) as_dir=$as_dir/ ;; 17808 esac 17809 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 17810 done 17811IFS=$as_save_IFS 17812 17813 ;; 17814esac 17815# We did not find ourselves, most probably we were run as `sh COMMAND' 17816# in which case we are not to be found in the path. 17817if test "x$as_myself" = x; then 17818 as_myself=$0 17819fi 17820if test ! -f "$as_myself"; then 17821 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17822 exit 1 17823fi 17824 17825 17826 17827# as_fn_error STATUS ERROR [LINENO LOG_FD] 17828# ---------------------------------------- 17829# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17830# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17831# script with STATUS, using 1 if that was 0. 17832as_fn_error () 17833{ 17834 as_status=$1; test $as_status -eq 0 && as_status=1 17835 if test "$4"; then 17836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17838 fi 17839 printf "%s\n" "$as_me: error: $2" >&2 17840 as_fn_exit $as_status 17841} # as_fn_error 17842 17843 17844 17845# as_fn_set_status STATUS 17846# ----------------------- 17847# Set $? to STATUS, without forking. 17848as_fn_set_status () 17849{ 17850 return $1 17851} # as_fn_set_status 17852 17853# as_fn_exit STATUS 17854# ----------------- 17855# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17856as_fn_exit () 17857{ 17858 set +e 17859 as_fn_set_status $1 17860 exit $1 17861} # as_fn_exit 17862 17863# as_fn_unset VAR 17864# --------------- 17865# Portably unset VAR. 17866as_fn_unset () 17867{ 17868 { eval $1=; unset $1;} 17869} 17870as_unset=as_fn_unset 17871 17872# as_fn_append VAR VALUE 17873# ---------------------- 17874# Append the text in VALUE to the end of the definition contained in VAR. Take 17875# advantage of any shell optimizations that allow amortized linear growth over 17876# repeated appends, instead of the typical quadratic growth present in naive 17877# implementations. 17878if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 17879then : 17880 eval 'as_fn_append () 17881 { 17882 eval $1+=\$2 17883 }' 17884else $as_nop 17885 as_fn_append () 17886 { 17887 eval $1=\$$1\$2 17888 } 17889fi # as_fn_append 17890 17891# as_fn_arith ARG... 17892# ------------------ 17893# Perform arithmetic evaluation on the ARGs, and store the result in the 17894# global $as_val. Take advantage of shells that can avoid forks. The arguments 17895# must be portable across $(()) and expr. 17896if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 17897then : 17898 eval 'as_fn_arith () 17899 { 17900 as_val=$(( $* )) 17901 }' 17902else $as_nop 17903 as_fn_arith () 17904 { 17905 as_val=`expr "$@" || test $? -eq 1` 17906 } 17907fi # as_fn_arith 17908 17909 17910if expr a : '\(a\)' >/dev/null 2>&1 && 17911 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17912 as_expr=expr 17913else 17914 as_expr=false 17915fi 17916 17917if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17918 as_basename=basename 17919else 17920 as_basename=false 17921fi 17922 17923if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17924 as_dirname=dirname 17925else 17926 as_dirname=false 17927fi 17928 17929as_me=`$as_basename -- "$0" || 17930$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17931 X"$0" : 'X\(//\)$' \| \ 17932 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17933printf "%s\n" X/"$0" | 17934 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17935 s//\1/ 17936 q 17937 } 17938 /^X\/\(\/\/\)$/{ 17939 s//\1/ 17940 q 17941 } 17942 /^X\/\(\/\).*/{ 17943 s//\1/ 17944 q 17945 } 17946 s/.*/./; q'` 17947 17948# Avoid depending upon Character Ranges. 17949as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17950as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17951as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17952as_cr_digits='0123456789' 17953as_cr_alnum=$as_cr_Letters$as_cr_digits 17954 17955 17956# Determine whether it's possible to make 'echo' print without a newline. 17957# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 17958# for compatibility with existing Makefiles. 17959ECHO_C= ECHO_N= ECHO_T= 17960case `echo -n x` in #((((( 17961-n*) 17962 case `echo 'xy\c'` in 17963 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17964 xy) ECHO_C='\c';; 17965 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17966 ECHO_T=' ';; 17967 esac;; 17968*) 17969 ECHO_N='-n';; 17970esac 17971 17972# For backward compatibility with old third-party macros, we provide 17973# the shell variables $as_echo and $as_echo_n. New code should use 17974# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 17975as_echo='printf %s\n' 17976as_echo_n='printf %s' 17977 17978rm -f conf$$ conf$$.exe conf$$.file 17979if test -d conf$$.dir; then 17980 rm -f conf$$.dir/conf$$.file 17981else 17982 rm -f conf$$.dir 17983 mkdir conf$$.dir 2>/dev/null 17984fi 17985if (echo >conf$$.file) 2>/dev/null; then 17986 if ln -s conf$$.file conf$$ 2>/dev/null; then 17987 as_ln_s='ln -s' 17988 # ... but there are two gotchas: 17989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17991 # In both cases, we have to default to `cp -pR'. 17992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17993 as_ln_s='cp -pR' 17994 elif ln conf$$.file conf$$ 2>/dev/null; then 17995 as_ln_s=ln 17996 else 17997 as_ln_s='cp -pR' 17998 fi 17999else 18000 as_ln_s='cp -pR' 18001fi 18002rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18003rmdir conf$$.dir 2>/dev/null 18004 18005 18006# as_fn_mkdir_p 18007# ------------- 18008# Create "$as_dir" as a directory, including parents if necessary. 18009as_fn_mkdir_p () 18010{ 18011 18012 case $as_dir in #( 18013 -*) as_dir=./$as_dir;; 18014 esac 18015 test -d "$as_dir" || eval $as_mkdir_p || { 18016 as_dirs= 18017 while :; do 18018 case $as_dir in #( 18019 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18020 *) as_qdir=$as_dir;; 18021 esac 18022 as_dirs="'$as_qdir' $as_dirs" 18023 as_dir=`$as_dirname -- "$as_dir" || 18024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18025 X"$as_dir" : 'X\(//\)[^/]' \| \ 18026 X"$as_dir" : 'X\(//\)$' \| \ 18027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18028printf "%s\n" X"$as_dir" | 18029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18030 s//\1/ 18031 q 18032 } 18033 /^X\(\/\/\)[^/].*/{ 18034 s//\1/ 18035 q 18036 } 18037 /^X\(\/\/\)$/{ 18038 s//\1/ 18039 q 18040 } 18041 /^X\(\/\).*/{ 18042 s//\1/ 18043 q 18044 } 18045 s/.*/./; q'` 18046 test -d "$as_dir" && break 18047 done 18048 test -z "$as_dirs" || eval "mkdir $as_dirs" 18049 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18050 18051 18052} # as_fn_mkdir_p 18053if mkdir -p . 2>/dev/null; then 18054 as_mkdir_p='mkdir -p "$as_dir"' 18055else 18056 test -d ./-p && rmdir ./-p 18057 as_mkdir_p=false 18058fi 18059 18060 18061# as_fn_executable_p FILE 18062# ----------------------- 18063# Test if FILE is an executable regular file. 18064as_fn_executable_p () 18065{ 18066 test -f "$1" && test -x "$1" 18067} # as_fn_executable_p 18068as_test_x='test -x' 18069as_executable_p=as_fn_executable_p 18070 18071# Sed expression to map a string onto a valid CPP name. 18072as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18073 18074# Sed expression to map a string onto a valid variable name. 18075as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18076 18077 18078exec 6>&1 18079## ----------------------------------- ## 18080## Main body of $CONFIG_STATUS script. ## 18081## ----------------------------------- ## 18082_ASEOF 18083test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18084 18085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18086# Save the log message, to keep $0 and so on meaningful, and to 18087# report actual input values of CONFIG_FILES etc. instead of their 18088# values after options handling. 18089ac_log=" 18090This file was extended by jansson $as_me 2.14, which was 18091generated by GNU Autoconf 2.71. Invocation command line was 18092 18093 CONFIG_FILES = $CONFIG_FILES 18094 CONFIG_HEADERS = $CONFIG_HEADERS 18095 CONFIG_LINKS = $CONFIG_LINKS 18096 CONFIG_COMMANDS = $CONFIG_COMMANDS 18097 $ $0 $@ 18098 18099on `(hostname || uname -n) 2>/dev/null | sed 1q` 18100" 18101 18102_ACEOF 18103 18104case $ac_config_files in *" 18105"*) set x $ac_config_files; shift; ac_config_files=$*;; 18106esac 18107 18108case $ac_config_headers in *" 18109"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18110esac 18111 18112 18113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18114# Files that config.status was made for. 18115config_files="$ac_config_files" 18116config_headers="$ac_config_headers" 18117config_commands="$ac_config_commands" 18118 18119_ACEOF 18120 18121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18122ac_cs_usage="\ 18123\`$as_me' instantiates files and other configuration actions 18124from templates according to the current configuration. Unless the files 18125and actions are specified as TAGs, all are instantiated by default. 18126 18127Usage: $0 [OPTION]... [TAG]... 18128 18129 -h, --help print this help, then exit 18130 -V, --version print version number and configuration settings, then exit 18131 --config print configuration, then exit 18132 -q, --quiet, --silent 18133 do not print progress messages 18134 -d, --debug don't remove temporary files 18135 --recheck update $as_me by reconfiguring in the same conditions 18136 --file=FILE[:TEMPLATE] 18137 instantiate the configuration file FILE 18138 --header=FILE[:TEMPLATE] 18139 instantiate the configuration header FILE 18140 18141Configuration files: 18142$config_files 18143 18144Configuration headers: 18145$config_headers 18146 18147Configuration commands: 18148$config_commands 18149 18150Report bugs to <https://github.com/akheron/jansson/issues>." 18151 18152_ACEOF 18153ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 18154ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 18155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18156ac_cs_config='$ac_cs_config_escaped' 18157ac_cs_version="\\ 18158jansson config.status 2.14 18159configured by $0, generated by GNU Autoconf 2.71, 18160 with options \\"\$ac_cs_config\\" 18161 18162Copyright (C) 2021 Free Software Foundation, Inc. 18163This config.status script is free software; the Free Software Foundation 18164gives unlimited permission to copy, distribute and modify it." 18165 18166ac_pwd='$ac_pwd' 18167srcdir='$srcdir' 18168INSTALL='$INSTALL' 18169MKDIR_P='$MKDIR_P' 18170AWK='$AWK' 18171test -n "\$AWK" || AWK=awk 18172_ACEOF 18173 18174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18175# The default lists apply if the user does not specify any file. 18176ac_need_defaults=: 18177while test $# != 0 18178do 18179 case $1 in 18180 --*=?*) 18181 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18182 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18183 ac_shift=: 18184 ;; 18185 --*=) 18186 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18187 ac_optarg= 18188 ac_shift=: 18189 ;; 18190 *) 18191 ac_option=$1 18192 ac_optarg=$2 18193 ac_shift=shift 18194 ;; 18195 esac 18196 18197 case $ac_option in 18198 # Handling of the options. 18199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18200 ac_cs_recheck=: ;; 18201 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18202 printf "%s\n" "$ac_cs_version"; exit ;; 18203 --config | --confi | --conf | --con | --co | --c ) 18204 printf "%s\n" "$ac_cs_config"; exit ;; 18205 --debug | --debu | --deb | --de | --d | -d ) 18206 debug=: ;; 18207 --file | --fil | --fi | --f ) 18208 $ac_shift 18209 case $ac_optarg in 18210 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18211 '') as_fn_error $? "missing file argument" ;; 18212 esac 18213 as_fn_append CONFIG_FILES " '$ac_optarg'" 18214 ac_need_defaults=false;; 18215 --header | --heade | --head | --hea ) 18216 $ac_shift 18217 case $ac_optarg in 18218 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18219 esac 18220 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18221 ac_need_defaults=false;; 18222 --he | --h) 18223 # Conflict between --help and --header 18224 as_fn_error $? "ambiguous option: \`$1' 18225Try \`$0 --help' for more information.";; 18226 --help | --hel | -h ) 18227 printf "%s\n" "$ac_cs_usage"; exit ;; 18228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18229 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18230 ac_cs_silent=: ;; 18231 18232 # This is an error. 18233 -*) as_fn_error $? "unrecognized option: \`$1' 18234Try \`$0 --help' for more information." ;; 18235 18236 *) as_fn_append ac_config_targets " $1" 18237 ac_need_defaults=false ;; 18238 18239 esac 18240 shift 18241done 18242 18243ac_configure_extra_args= 18244 18245if $ac_cs_silent; then 18246 exec 6>/dev/null 18247 ac_configure_extra_args="$ac_configure_extra_args --silent" 18248fi 18249 18250_ACEOF 18251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18252if \$ac_cs_recheck; then 18253 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18254 shift 18255 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 18256 CONFIG_SHELL='$SHELL' 18257 export CONFIG_SHELL 18258 exec "\$@" 18259fi 18260 18261_ACEOF 18262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18263exec 5>>config.log 18264{ 18265 echo 18266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18267## Running $as_me. ## 18268_ASBOX 18269 printf "%s\n" "$ac_log" 18270} >&5 18271 18272_ACEOF 18273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18274# 18275# INIT-COMMANDS 18276# 18277AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18278 18279 18280# The HP-UX ksh and POSIX shell print the target directory to stdout 18281# if CDPATH is set. 18282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18283 18284sed_quote_subst='$sed_quote_subst' 18285double_quote_subst='$double_quote_subst' 18286delay_variable_subst='$delay_variable_subst' 18287macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18288macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18289enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18290enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18291pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18292enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18293shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18294SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18295ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18296PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18297host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18298host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18299host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18300build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18301build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18302build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18303SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18304Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18305GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18306EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18307FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18308LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18309NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18310LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18311max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18312ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18313exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18314lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18315lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18316lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18317lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18318lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18319reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18320reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18321OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18322deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18323file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18324file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18325want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18326DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18327sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18328AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18329lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 18330AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18331archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18332STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18333RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18334old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18335old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18336old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18337lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18338CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18339CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18340compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18341GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18342lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18343lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18344lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18345lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18346lt_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"`' 18347lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18348nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18349lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18350lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18351objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18352MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18353lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18354lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18355lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18356lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18357lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18358need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18359MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18360DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18361NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18362LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18363OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18364OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18365libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18366shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18367extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18368archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18369enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18370export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18371whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18372compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18373old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18374old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18375archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18376archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18377module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18378module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18379with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18380allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18381no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18382hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18383hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18384hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18385hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18386hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18387hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18388hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18389inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18390link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18391always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18392export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18393exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18394include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18395prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18396postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18397file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18398variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18399need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18400need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18401version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18402runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18403shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18404shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18405libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18406library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18407soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18408install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18409postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18410postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18411finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18412finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18413hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18414sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18415configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18416configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18417hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18418enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18419enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18420enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18421old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18422striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18423compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18424predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18425postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18426predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18427postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18428compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18429LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18430reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18431reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18432old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18433compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18434GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18435lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18436lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18437lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18438lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18439lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18440archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18441enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18442export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18443whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18444compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18445old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18446old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18447archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18448archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18449module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18450module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18451with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18452allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18453no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18454hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18455hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18456hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18457hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18458hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18459hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18460hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18461inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18462link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18463always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18464export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18465exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18466include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18467prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18468postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18469file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18470hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18471compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18472predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18473postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18474predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18475postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18476compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18477 18478LTCC='$LTCC' 18479LTCFLAGS='$LTCFLAGS' 18480compiler='$compiler_DEFAULT' 18481 18482# A function that is used when there is no print builtin or printf. 18483func_fallback_echo () 18484{ 18485 eval 'cat <<_LTECHO_EOF 18486\$1 18487_LTECHO_EOF' 18488} 18489 18490# Quote evaled strings. 18491for var in SHELL \ 18492ECHO \ 18493PATH_SEPARATOR \ 18494SED \ 18495GREP \ 18496EGREP \ 18497FGREP \ 18498LD \ 18499NM \ 18500LN_S \ 18501lt_SP2NL \ 18502lt_NL2SP \ 18503reload_flag \ 18504OBJDUMP \ 18505deplibs_check_method \ 18506file_magic_cmd \ 18507file_magic_glob \ 18508want_nocaseglob \ 18509DLLTOOL \ 18510sharedlib_from_linklib_cmd \ 18511AR \ 18512archiver_list_spec \ 18513STRIP \ 18514RANLIB \ 18515CC \ 18516CFLAGS \ 18517compiler \ 18518lt_cv_sys_global_symbol_pipe \ 18519lt_cv_sys_global_symbol_to_cdecl \ 18520lt_cv_sys_global_symbol_to_import \ 18521lt_cv_sys_global_symbol_to_c_name_address \ 18522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18523lt_cv_nm_interface \ 18524nm_file_list_spec \ 18525lt_cv_truncate_bin \ 18526lt_prog_compiler_no_builtin_flag \ 18527lt_prog_compiler_pic \ 18528lt_prog_compiler_wl \ 18529lt_prog_compiler_static \ 18530lt_cv_prog_compiler_c_o \ 18531need_locks \ 18532MANIFEST_TOOL \ 18533DSYMUTIL \ 18534NMEDIT \ 18535LIPO \ 18536OTOOL \ 18537OTOOL64 \ 18538shrext_cmds \ 18539export_dynamic_flag_spec \ 18540whole_archive_flag_spec \ 18541compiler_needs_object \ 18542with_gnu_ld \ 18543allow_undefined_flag \ 18544no_undefined_flag \ 18545hardcode_libdir_flag_spec \ 18546hardcode_libdir_separator \ 18547exclude_expsyms \ 18548include_expsyms \ 18549file_list_spec \ 18550variables_saved_for_relink \ 18551libname_spec \ 18552library_names_spec \ 18553soname_spec \ 18554install_override_mode \ 18555finish_eval \ 18556old_striplib \ 18557striplib \ 18558compiler_lib_search_dirs \ 18559predep_objects \ 18560postdep_objects \ 18561predeps \ 18562postdeps \ 18563compiler_lib_search_path \ 18564LD_CXX \ 18565reload_flag_CXX \ 18566compiler_CXX \ 18567lt_prog_compiler_no_builtin_flag_CXX \ 18568lt_prog_compiler_pic_CXX \ 18569lt_prog_compiler_wl_CXX \ 18570lt_prog_compiler_static_CXX \ 18571lt_cv_prog_compiler_c_o_CXX \ 18572export_dynamic_flag_spec_CXX \ 18573whole_archive_flag_spec_CXX \ 18574compiler_needs_object_CXX \ 18575with_gnu_ld_CXX \ 18576allow_undefined_flag_CXX \ 18577no_undefined_flag_CXX \ 18578hardcode_libdir_flag_spec_CXX \ 18579hardcode_libdir_separator_CXX \ 18580exclude_expsyms_CXX \ 18581include_expsyms_CXX \ 18582file_list_spec_CXX \ 18583compiler_lib_search_dirs_CXX \ 18584predep_objects_CXX \ 18585postdep_objects_CXX \ 18586predeps_CXX \ 18587postdeps_CXX \ 18588compiler_lib_search_path_CXX; do 18589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18590 *[\\\\\\\`\\"\\\$]*) 18591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18592 ;; 18593 *) 18594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18595 ;; 18596 esac 18597done 18598 18599# Double-quote double-evaled strings. 18600for var in reload_cmds \ 18601old_postinstall_cmds \ 18602old_postuninstall_cmds \ 18603old_archive_cmds \ 18604extract_expsyms_cmds \ 18605old_archive_from_new_cmds \ 18606old_archive_from_expsyms_cmds \ 18607archive_cmds \ 18608archive_expsym_cmds \ 18609module_cmds \ 18610module_expsym_cmds \ 18611export_symbols_cmds \ 18612prelink_cmds \ 18613postlink_cmds \ 18614postinstall_cmds \ 18615postuninstall_cmds \ 18616finish_cmds \ 18617sys_lib_search_path_spec \ 18618configure_time_dlsearch_path \ 18619configure_time_lt_sys_library_path \ 18620reload_cmds_CXX \ 18621old_archive_cmds_CXX \ 18622old_archive_from_new_cmds_CXX \ 18623old_archive_from_expsyms_cmds_CXX \ 18624archive_cmds_CXX \ 18625archive_expsym_cmds_CXX \ 18626module_cmds_CXX \ 18627module_expsym_cmds_CXX \ 18628export_symbols_cmds_CXX \ 18629prelink_cmds_CXX \ 18630postlink_cmds_CXX; do 18631 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18632 *[\\\\\\\`\\"\\\$]*) 18633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18634 ;; 18635 *) 18636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18637 ;; 18638 esac 18639done 18640 18641ac_aux_dir='$ac_aux_dir' 18642 18643# See if we are running on zsh, and set the options that allow our 18644# commands through without removal of \ escapes INIT. 18645if test -n "\${ZSH_VERSION+set}"; then 18646 setopt NO_GLOB_SUBST 18647fi 18648 18649 18650 PACKAGE='$PACKAGE' 18651 VERSION='$VERSION' 18652 RM='$RM' 18653 ofile='$ofile' 18654 18655 18656 18657 18658 18659 18660_ACEOF 18661 18662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18663 18664# Handling of arguments. 18665for ac_config_target in $ac_config_targets 18666do 18667 case $ac_config_target in 18668 "jansson_private_config.h") CONFIG_HEADERS="$CONFIG_HEADERS jansson_private_config.h" ;; 18669 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18670 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18671 "jansson.pc") CONFIG_FILES="$CONFIG_FILES jansson.pc" ;; 18672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18673 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18674 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18675 "src/jansson_config.h") CONFIG_FILES="$CONFIG_FILES src/jansson_config.h" ;; 18676 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 18677 "test/bin/Makefile") CONFIG_FILES="$CONFIG_FILES test/bin/Makefile" ;; 18678 "test/ossfuzz/Makefile") CONFIG_FILES="$CONFIG_FILES test/ossfuzz/Makefile" ;; 18679 "test/suites/Makefile") CONFIG_FILES="$CONFIG_FILES test/suites/Makefile" ;; 18680 "test/suites/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/suites/api/Makefile" ;; 18681 18682 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18683 esac 18684done 18685 18686 18687# If the user did not use the arguments to specify the items to instantiate, 18688# then the envvar interface is used. Set only those that are not. 18689# We use the long form for the default assignment because of an extremely 18690# bizarre bug on SunOS 4.1.3. 18691if $ac_need_defaults; then 18692 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 18693 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 18694 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 18695fi 18696 18697# Have a temporary directory for convenience. Make it in the build tree 18698# simply because there is no reason against having it here, and in addition, 18699# creating and moving files from /tmp can sometimes cause problems. 18700# Hook for its removal unless debugging. 18701# Note that there is a small window in which the directory will not be cleaned: 18702# after its creation but before its name has been assigned to `$tmp'. 18703$debug || 18704{ 18705 tmp= ac_tmp= 18706 trap 'exit_status=$? 18707 : "${ac_tmp:=$tmp}" 18708 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18709' 0 18710 trap 'as_fn_exit 1' 1 2 13 15 18711} 18712# Create a (secure) tmp directory for tmp files. 18713 18714{ 18715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18716 test -d "$tmp" 18717} || 18718{ 18719 tmp=./conf$$-$RANDOM 18720 (umask 077 && mkdir "$tmp") 18721} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18722ac_tmp=$tmp 18723 18724# Set up the scripts for CONFIG_FILES section. 18725# No need to generate them if there are no CONFIG_FILES. 18726# This happens for instance with `./config.status config.h'. 18727if test -n "$CONFIG_FILES"; then 18728 18729 18730ac_cr=`echo X | tr X '\015'` 18731# On cygwin, bash can eat \r inside `` if the user requested igncr. 18732# But we know of no other shell where ac_cr would be empty at this 18733# point, so we can use a bashism as a fallback. 18734if test "x$ac_cr" = x; then 18735 eval ac_cr=\$\'\\r\' 18736fi 18737ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18738if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18739 ac_cs_awk_cr='\\r' 18740else 18741 ac_cs_awk_cr=$ac_cr 18742fi 18743 18744echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18745_ACEOF 18746 18747 18748{ 18749 echo "cat >conf$$subs.awk <<_ACEOF" && 18750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18751 echo "_ACEOF" 18752} >conf$$subs.sh || 18753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18754ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18755ac_delim='%!_!# ' 18756for ac_last_try in false false false false false :; do 18757 . ./conf$$subs.sh || 18758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18759 18760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18761 if test $ac_delim_n = $ac_delim_num; then 18762 break 18763 elif $ac_last_try; then 18764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18765 else 18766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18767 fi 18768done 18769rm -f conf$$subs.sh 18770 18771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18772cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18773_ACEOF 18774sed -n ' 18775h 18776s/^/S["/; s/!.*/"]=/ 18777p 18778g 18779s/^[^!]*!// 18780:repl 18781t repl 18782s/'"$ac_delim"'$// 18783t delim 18784:nl 18785h 18786s/\(.\{148\}\)..*/\1/ 18787t more1 18788s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18789p 18790n 18791b repl 18792:more1 18793s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18794p 18795g 18796s/.\{148\}// 18797t nl 18798:delim 18799h 18800s/\(.\{148\}\)..*/\1/ 18801t more2 18802s/["\\]/\\&/g; s/^/"/; s/$/"/ 18803p 18804b 18805:more2 18806s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18807p 18808g 18809s/.\{148\}// 18810t delim 18811' <conf$$subs.awk | sed ' 18812/^[^""]/{ 18813 N 18814 s/\n// 18815} 18816' >>$CONFIG_STATUS || ac_write_fail=1 18817rm -f conf$$subs.awk 18818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18819_ACAWK 18820cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18821 for (key in S) S_is_set[key] = 1 18822 FS = "" 18823 18824} 18825{ 18826 line = $ 0 18827 nfields = split(line, field, "@") 18828 substed = 0 18829 len = length(field[1]) 18830 for (i = 2; i < nfields; i++) { 18831 key = field[i] 18832 keylen = length(key) 18833 if (S_is_set[key]) { 18834 value = S[key] 18835 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18836 len += length(value) + length(field[++i]) 18837 substed = 1 18838 } else 18839 len += 1 + keylen 18840 } 18841 18842 print line 18843} 18844 18845_ACAWK 18846_ACEOF 18847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18848if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18849 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18850else 18851 cat 18852fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18853 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18854_ACEOF 18855 18856# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18857# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18858# trailing colons and then remove the whole line if VPATH becomes empty 18859# (actually we leave an empty line to preserve line numbers). 18860if test "x$srcdir" = x.; then 18861 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18862h 18863s/// 18864s/^/:/ 18865s/[ ]*$/:/ 18866s/:\$(srcdir):/:/g 18867s/:\${srcdir}:/:/g 18868s/:@srcdir@:/:/g 18869s/^:*// 18870s/:*$// 18871x 18872s/\(=[ ]*\).*/\1/ 18873G 18874s/\n// 18875s/^[^=]*=[ ]*$// 18876}' 18877fi 18878 18879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18880fi # test -n "$CONFIG_FILES" 18881 18882# Set up the scripts for CONFIG_HEADERS section. 18883# No need to generate them if there are no CONFIG_HEADERS. 18884# This happens for instance with `./config.status Makefile'. 18885if test -n "$CONFIG_HEADERS"; then 18886cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18887BEGIN { 18888_ACEOF 18889 18890# Transform confdefs.h into an awk script `defines.awk', embedded as 18891# here-document in config.status, that substitutes the proper values into 18892# config.h.in to produce config.h. 18893 18894# Create a delimiter string that does not exist in confdefs.h, to ease 18895# handling of long lines. 18896ac_delim='%!_!# ' 18897for ac_last_try in false false :; do 18898 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18899 if test -z "$ac_tt"; then 18900 break 18901 elif $ac_last_try; then 18902 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18903 else 18904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18905 fi 18906done 18907 18908# For the awk script, D is an array of macro values keyed by name, 18909# likewise P contains macro parameters if any. Preserve backslash 18910# newline sequences. 18911 18912ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18913sed -n ' 18914s/.\{148\}/&'"$ac_delim"'/g 18915t rset 18916:rset 18917s/^[ ]*#[ ]*define[ ][ ]*/ / 18918t def 18919d 18920:def 18921s/\\$// 18922t bsnl 18923s/["\\]/\\&/g 18924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18925D["\1"]=" \3"/p 18926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18927d 18928:bsnl 18929s/["\\]/\\&/g 18930s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18931D["\1"]=" \3\\\\\\n"\\/p 18932t cont 18933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18934t cont 18935d 18936:cont 18937n 18938s/.\{148\}/&'"$ac_delim"'/g 18939t clear 18940:clear 18941s/\\$// 18942t bsnlc 18943s/["\\]/\\&/g; s/^/"/; s/$/"/p 18944d 18945:bsnlc 18946s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18947b cont 18948' <confdefs.h | sed ' 18949s/'"$ac_delim"'/"\\\ 18950"/g' >>$CONFIG_STATUS || ac_write_fail=1 18951 18952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18953 for (key in D) D_is_set[key] = 1 18954 FS = "" 18955} 18956/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18957 line = \$ 0 18958 split(line, arg, " ") 18959 if (arg[1] == "#") { 18960 defundef = arg[2] 18961 mac1 = arg[3] 18962 } else { 18963 defundef = substr(arg[1], 2) 18964 mac1 = arg[2] 18965 } 18966 split(mac1, mac2, "(") #) 18967 macro = mac2[1] 18968 prefix = substr(line, 1, index(line, defundef) - 1) 18969 if (D_is_set[macro]) { 18970 # Preserve the white space surrounding the "#". 18971 print prefix "define", macro P[macro] D[macro] 18972 next 18973 } else { 18974 # Replace #undef with comments. This is necessary, for example, 18975 # in the case of _POSIX_SOURCE, which is predefined and required 18976 # on some systems where configure will not decide to define it. 18977 if (defundef == "undef") { 18978 print "/*", prefix defundef, macro, "*/" 18979 next 18980 } 18981 } 18982} 18983{ print } 18984_ACAWK 18985_ACEOF 18986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18987 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18988fi # test -n "$CONFIG_HEADERS" 18989 18990 18991eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18992shift 18993for ac_tag 18994do 18995 case $ac_tag in 18996 :[FHLC]) ac_mode=$ac_tag; continue;; 18997 esac 18998 case $ac_mode$ac_tag in 18999 :[FHL]*:*);; 19000 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19001 :[FH]-) ac_tag=-:-;; 19002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19003 esac 19004 ac_save_IFS=$IFS 19005 IFS=: 19006 set x $ac_tag 19007 IFS=$ac_save_IFS 19008 shift 19009 ac_file=$1 19010 shift 19011 19012 case $ac_mode in 19013 :L) ac_source=$1;; 19014 :[FH]) 19015 ac_file_inputs= 19016 for ac_f 19017 do 19018 case $ac_f in 19019 -) ac_f="$ac_tmp/stdin";; 19020 *) # Look for the file first in the build tree, then in the source tree 19021 # (if the path is not absolute). The absolute path cannot be DOS-style, 19022 # because $ac_f cannot contain `:'. 19023 test -f "$ac_f" || 19024 case $ac_f in 19025 [\\/$]*) false;; 19026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19027 esac || 19028 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19029 esac 19030 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19031 as_fn_append ac_file_inputs " '$ac_f'" 19032 done 19033 19034 # Let's still pretend it is `configure' which instantiates (i.e., don't 19035 # use $as_me), people would be surprised to read: 19036 # /* config.h. Generated by config.status. */ 19037 configure_input='Generated from '` 19038 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19039 `' by configure.' 19040 if test x"$ac_file" != x-; then 19041 configure_input="$ac_file. $configure_input" 19042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19043printf "%s\n" "$as_me: creating $ac_file" >&6;} 19044 fi 19045 # Neutralize special characters interpreted by sed in replacement strings. 19046 case $configure_input in #( 19047 *\&* | *\|* | *\\* ) 19048 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 19049 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19050 *) ac_sed_conf_input=$configure_input;; 19051 esac 19052 19053 case $ac_tag in 19054 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19056 esac 19057 ;; 19058 esac 19059 19060 ac_dir=`$as_dirname -- "$ac_file" || 19061$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19062 X"$ac_file" : 'X\(//\)[^/]' \| \ 19063 X"$ac_file" : 'X\(//\)$' \| \ 19064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19065printf "%s\n" X"$ac_file" | 19066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19067 s//\1/ 19068 q 19069 } 19070 /^X\(\/\/\)[^/].*/{ 19071 s//\1/ 19072 q 19073 } 19074 /^X\(\/\/\)$/{ 19075 s//\1/ 19076 q 19077 } 19078 /^X\(\/\).*/{ 19079 s//\1/ 19080 q 19081 } 19082 s/.*/./; q'` 19083 as_dir="$ac_dir"; as_fn_mkdir_p 19084 ac_builddir=. 19085 19086case "$ac_dir" in 19087.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19088*) 19089 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 19090 # A ".." for each directory in $ac_dir_suffix. 19091 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19092 case $ac_top_builddir_sub in 19093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19095 esac ;; 19096esac 19097ac_abs_top_builddir=$ac_pwd 19098ac_abs_builddir=$ac_pwd$ac_dir_suffix 19099# for backward compatibility: 19100ac_top_builddir=$ac_top_build_prefix 19101 19102case $srcdir in 19103 .) # We are building in place. 19104 ac_srcdir=. 19105 ac_top_srcdir=$ac_top_builddir_sub 19106 ac_abs_top_srcdir=$ac_pwd ;; 19107 [\\/]* | ?:[\\/]* ) # Absolute name. 19108 ac_srcdir=$srcdir$ac_dir_suffix; 19109 ac_top_srcdir=$srcdir 19110 ac_abs_top_srcdir=$srcdir ;; 19111 *) # Relative name. 19112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19113 ac_top_srcdir=$ac_top_build_prefix$srcdir 19114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19115esac 19116ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19117 19118 19119 case $ac_mode in 19120 :F) 19121 # 19122 # CONFIG_FILE 19123 # 19124 19125 case $INSTALL in 19126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19127 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19128 esac 19129 ac_MKDIR_P=$MKDIR_P 19130 case $MKDIR_P in 19131 [\\/$]* | ?:[\\/]* ) ;; 19132 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19133 esac 19134_ACEOF 19135 19136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19137# If the template does not know about datarootdir, expand it. 19138# FIXME: This hack should be removed a few years after 2.60. 19139ac_datarootdir_hack=; ac_datarootdir_seen= 19140ac_sed_dataroot=' 19141/datarootdir/ { 19142 p 19143 q 19144} 19145/@datadir@/p 19146/@docdir@/p 19147/@infodir@/p 19148/@localedir@/p 19149/@mandir@/p' 19150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19151*datarootdir*) ac_datarootdir_seen=yes;; 19152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19154printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19155_ACEOF 19156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19157 ac_datarootdir_hack=' 19158 s&@datadir@&$datadir&g 19159 s&@docdir@&$docdir&g 19160 s&@infodir@&$infodir&g 19161 s&@localedir@&$localedir&g 19162 s&@mandir@&$mandir&g 19163 s&\\\${datarootdir}&$datarootdir&g' ;; 19164esac 19165_ACEOF 19166 19167# Neutralize VPATH when `$srcdir' = `.'. 19168# Shell code in configure.ac might set extrasub. 19169# FIXME: do we really want to maintain this feature? 19170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19171ac_sed_extra="$ac_vpsub 19172$extrasub 19173_ACEOF 19174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19175:t 19176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19177s|@configure_input@|$ac_sed_conf_input|;t t 19178s&@top_builddir@&$ac_top_builddir_sub&;t t 19179s&@top_build_prefix@&$ac_top_build_prefix&;t t 19180s&@srcdir@&$ac_srcdir&;t t 19181s&@abs_srcdir@&$ac_abs_srcdir&;t t 19182s&@top_srcdir@&$ac_top_srcdir&;t t 19183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19184s&@builddir@&$ac_builddir&;t t 19185s&@abs_builddir@&$ac_abs_builddir&;t t 19186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19187s&@INSTALL@&$ac_INSTALL&;t t 19188s&@MKDIR_P@&$ac_MKDIR_P&;t t 19189$ac_datarootdir_hack 19190" 19191eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19192 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19193 19194test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19195 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19197 "$ac_tmp/out"`; test -z "$ac_out"; } && 19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19199which seems to be undefined. Please make sure it is defined" >&5 19200printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19201which seems to be undefined. Please make sure it is defined" >&2;} 19202 19203 rm -f "$ac_tmp/stdin" 19204 case $ac_file in 19205 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19206 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19207 esac \ 19208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19209 ;; 19210 :H) 19211 # 19212 # CONFIG_HEADER 19213 # 19214 if test x"$ac_file" != x-; then 19215 { 19216 printf "%s\n" "/* $configure_input */" >&1 \ 19217 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19218 } >"$ac_tmp/config.h" \ 19219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19220 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19222printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 19223 else 19224 rm -f "$ac_file" 19225 mv "$ac_tmp/config.h" "$ac_file" \ 19226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19227 fi 19228 else 19229 printf "%s\n" "/* $configure_input */" >&1 \ 19230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19231 || as_fn_error $? "could not create -" "$LINENO" 5 19232 fi 19233# Compute "$ac_file"'s index in $config_headers. 19234_am_arg="$ac_file" 19235_am_stamp_count=1 19236for _am_header in $config_headers :; do 19237 case $_am_header in 19238 $_am_arg | $_am_arg:* ) 19239 break ;; 19240 * ) 19241 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19242 esac 19243done 19244echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19245$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19246 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19247 X"$_am_arg" : 'X\(//\)$' \| \ 19248 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19249printf "%s\n" X"$_am_arg" | 19250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19251 s//\1/ 19252 q 19253 } 19254 /^X\(\/\/\)[^/].*/{ 19255 s//\1/ 19256 q 19257 } 19258 /^X\(\/\/\)$/{ 19259 s//\1/ 19260 q 19261 } 19262 /^X\(\/\).*/{ 19263 s//\1/ 19264 q 19265 } 19266 s/.*/./; q'`/stamp-h$_am_stamp_count 19267 ;; 19268 19269 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19270printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 19271 ;; 19272 esac 19273 19274 19275 case $ac_file$ac_mode in 19276 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19277 # Older Autoconf quotes --file arguments for eval, but not when files 19278 # are listed without --file. Let's play safe and only enable the eval 19279 # if we detect the quoting. 19280 # TODO: see whether this extra hack can be removed once we start 19281 # requiring Autoconf 2.70 or later. 19282 case $CONFIG_FILES in #( 19283 *\'*) : 19284 eval set x "$CONFIG_FILES" ;; #( 19285 *) : 19286 set x $CONFIG_FILES ;; #( 19287 *) : 19288 ;; 19289esac 19290 shift 19291 # Used to flag and report bootstrapping failures. 19292 am_rc=0 19293 for am_mf 19294 do 19295 # Strip MF so we end up with the name of the file. 19296 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 19297 # Check whether this is an Automake generated Makefile which includes 19298 # dependency-tracking related rules and includes. 19299 # Grep'ing the whole file directly is not great: AIX grep has a line 19300 # limit of 2048, but all sed's we know have understand at least 4000. 19301 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19302 || continue 19303 am_dirpart=`$as_dirname -- "$am_mf" || 19304$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19305 X"$am_mf" : 'X\(//\)[^/]' \| \ 19306 X"$am_mf" : 'X\(//\)$' \| \ 19307 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19308printf "%s\n" X"$am_mf" | 19309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19310 s//\1/ 19311 q 19312 } 19313 /^X\(\/\/\)[^/].*/{ 19314 s//\1/ 19315 q 19316 } 19317 /^X\(\/\/\)$/{ 19318 s//\1/ 19319 q 19320 } 19321 /^X\(\/\).*/{ 19322 s//\1/ 19323 q 19324 } 19325 s/.*/./; q'` 19326 am_filepart=`$as_basename -- "$am_mf" || 19327$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19328 X"$am_mf" : 'X\(//\)$' \| \ 19329 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19330printf "%s\n" X/"$am_mf" | 19331 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19332 s//\1/ 19333 q 19334 } 19335 /^X\/\(\/\/\)$/{ 19336 s//\1/ 19337 q 19338 } 19339 /^X\/\(\/\).*/{ 19340 s//\1/ 19341 q 19342 } 19343 s/.*/./; q'` 19344 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19345 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19346 | $MAKE -f - am--depfiles" >&5 19347 (cd "$am_dirpart" \ 19348 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19349 | $MAKE -f - am--depfiles) >&5 2>&5 19350 ac_status=$? 19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19352 (exit $ac_status); } || am_rc=$? 19353 done 19354 if test $am_rc -ne 0; then 19355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19356printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19357as_fn_error $? "Something went wrong bootstrapping makefile fragments 19358 for automatic dependency tracking. If GNU make was not used, consider 19359 re-running the configure script with MAKE=\"gmake\" (or whatever is 19360 necessary). You can also try re-running configure with the 19361 '--disable-dependency-tracking' option to at least be able to build 19362 the package (albeit without support for automatic dependency tracking). 19363See \`config.log' for more details" "$LINENO" 5; } 19364 fi 19365 { am_dirpart=; unset am_dirpart;} 19366 { am_filepart=; unset am_filepart;} 19367 { am_mf=; unset am_mf;} 19368 { am_rc=; unset am_rc;} 19369 rm -f conftest-deps.mk 19370} 19371 ;; 19372 "libtool":C) 19373 19374 # See if we are running on zsh, and set the options that allow our 19375 # commands through without removal of \ escapes. 19376 if test -n "${ZSH_VERSION+set}"; then 19377 setopt NO_GLOB_SUBST 19378 fi 19379 19380 cfgfile=${ofile}T 19381 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19382 $RM "$cfgfile" 19383 19384 cat <<_LT_EOF >> "$cfgfile" 19385#! $SHELL 19386# Generated automatically by $as_me ($PACKAGE) $VERSION 19387# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19388 19389# Provide generalized library-building support services. 19390# Written by Gordon Matzigkeit, 1996 19391 19392# Copyright (C) 2014 Free Software Foundation, Inc. 19393# This is free software; see the source for copying conditions. There is NO 19394# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19395 19396# GNU Libtool is free software; you can redistribute it and/or modify 19397# it under the terms of the GNU General Public License as published by 19398# the Free Software Foundation; either version 2 of of the License, or 19399# (at your option) any later version. 19400# 19401# As a special exception to the GNU General Public License, if you 19402# distribute this file as part of a program or library that is built 19403# using GNU Libtool, you may include this file under the same 19404# distribution terms that you use for the rest of that program. 19405# 19406# GNU Libtool is distributed in the hope that it will be useful, but 19407# WITHOUT ANY WARRANTY; without even the implied warranty of 19408# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19409# GNU General Public License for more details. 19410# 19411# You should have received a copy of the GNU General Public License 19412# along with this program. If not, see <http://www.gnu.org/licenses/>. 19413 19414 19415# The names of the tagged configurations supported by this script. 19416available_tags='CXX ' 19417 19418# Configured defaults for sys_lib_dlsearch_path munging. 19419: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19420 19421# ### BEGIN LIBTOOL CONFIG 19422 19423# Which release of libtool.m4 was used? 19424macro_version=$macro_version 19425macro_revision=$macro_revision 19426 19427# Whether or not to build shared libraries. 19428build_libtool_libs=$enable_shared 19429 19430# Whether or not to build static libraries. 19431build_old_libs=$enable_static 19432 19433# What type of objects to build. 19434pic_mode=$pic_mode 19435 19436# Whether or not to optimize for fast installation. 19437fast_install=$enable_fast_install 19438 19439# Shared archive member basename,for filename based shared library versioning on AIX. 19440shared_archive_member_spec=$shared_archive_member_spec 19441 19442# Shell to use when invoking shell scripts. 19443SHELL=$lt_SHELL 19444 19445# An echo program that protects backslashes. 19446ECHO=$lt_ECHO 19447 19448# The PATH separator for the build system. 19449PATH_SEPARATOR=$lt_PATH_SEPARATOR 19450 19451# The host system. 19452host_alias=$host_alias 19453host=$host 19454host_os=$host_os 19455 19456# The build system. 19457build_alias=$build_alias 19458build=$build 19459build_os=$build_os 19460 19461# A sed program that does not truncate output. 19462SED=$lt_SED 19463 19464# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19465Xsed="\$SED -e 1s/^X//" 19466 19467# A grep program that handles long lines. 19468GREP=$lt_GREP 19469 19470# An ERE matcher. 19471EGREP=$lt_EGREP 19472 19473# A literal string matcher. 19474FGREP=$lt_FGREP 19475 19476# A BSD- or MS-compatible name lister. 19477NM=$lt_NM 19478 19479# Whether we need soft or hard links. 19480LN_S=$lt_LN_S 19481 19482# What is the maximum length of a command? 19483max_cmd_len=$max_cmd_len 19484 19485# Object file suffix (normally "o"). 19486objext=$ac_objext 19487 19488# Executable file suffix (normally ""). 19489exeext=$exeext 19490 19491# whether the shell understands "unset". 19492lt_unset=$lt_unset 19493 19494# turn spaces into newlines. 19495SP2NL=$lt_lt_SP2NL 19496 19497# turn newlines into spaces. 19498NL2SP=$lt_lt_NL2SP 19499 19500# convert \$build file names to \$host format. 19501to_host_file_cmd=$lt_cv_to_host_file_cmd 19502 19503# convert \$build files to toolchain format. 19504to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19505 19506# An object symbol dumper. 19507OBJDUMP=$lt_OBJDUMP 19508 19509# Method to check whether dependent libraries are shared objects. 19510deplibs_check_method=$lt_deplibs_check_method 19511 19512# Command to use when deplibs_check_method = "file_magic". 19513file_magic_cmd=$lt_file_magic_cmd 19514 19515# How to find potential files when deplibs_check_method = "file_magic". 19516file_magic_glob=$lt_file_magic_glob 19517 19518# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19519want_nocaseglob=$lt_want_nocaseglob 19520 19521# DLL creation program. 19522DLLTOOL=$lt_DLLTOOL 19523 19524# Command to associate shared and link libraries. 19525sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19526 19527# The archiver. 19528AR=$lt_AR 19529 19530# Flags to create an archive (by configure). 19531lt_ar_flags=$lt_ar_flags 19532 19533# Flags to create an archive. 19534AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 19535 19536# How to feed a file listing to the archiver. 19537archiver_list_spec=$lt_archiver_list_spec 19538 19539# A symbol stripping program. 19540STRIP=$lt_STRIP 19541 19542# Commands used to install an old-style archive. 19543RANLIB=$lt_RANLIB 19544old_postinstall_cmds=$lt_old_postinstall_cmds 19545old_postuninstall_cmds=$lt_old_postuninstall_cmds 19546 19547# Whether to use a lock for old archive extraction. 19548lock_old_archive_extraction=$lock_old_archive_extraction 19549 19550# A C compiler. 19551LTCC=$lt_CC 19552 19553# LTCC compiler flags. 19554LTCFLAGS=$lt_CFLAGS 19555 19556# Take the output of nm and produce a listing of raw symbols and C names. 19557global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19558 19559# Transform the output of nm in a proper C declaration. 19560global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19561 19562# Transform the output of nm into a list of symbols to manually relocate. 19563global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19564 19565# Transform the output of nm in a C name address pair. 19566global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19567 19568# Transform the output of nm in a C name address pair when lib prefix is needed. 19569global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19570 19571# The name lister interface. 19572nm_interface=$lt_lt_cv_nm_interface 19573 19574# Specify filename containing input files for \$NM. 19575nm_file_list_spec=$lt_nm_file_list_spec 19576 19577# The root where to search for dependent libraries,and where our libraries should be installed. 19578lt_sysroot=$lt_sysroot 19579 19580# Command to truncate a binary pipe. 19581lt_truncate_bin=$lt_lt_cv_truncate_bin 19582 19583# The name of the directory that contains temporary libtool files. 19584objdir=$objdir 19585 19586# Used to examine libraries when file_magic_cmd begins with "file". 19587MAGIC_CMD=$MAGIC_CMD 19588 19589# Must we lock files when doing compilation? 19590need_locks=$lt_need_locks 19591 19592# Manifest tool. 19593MANIFEST_TOOL=$lt_MANIFEST_TOOL 19594 19595# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19596DSYMUTIL=$lt_DSYMUTIL 19597 19598# Tool to change global to local symbols on Mac OS X. 19599NMEDIT=$lt_NMEDIT 19600 19601# Tool to manipulate fat objects and archives on Mac OS X. 19602LIPO=$lt_LIPO 19603 19604# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19605OTOOL=$lt_OTOOL 19606 19607# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19608OTOOL64=$lt_OTOOL64 19609 19610# Old archive suffix (normally "a"). 19611libext=$libext 19612 19613# Shared library suffix (normally ".so"). 19614shrext_cmds=$lt_shrext_cmds 19615 19616# The commands to extract the exported symbol list from a shared archive. 19617extract_expsyms_cmds=$lt_extract_expsyms_cmds 19618 19619# Variables whose values should be saved in libtool wrapper scripts and 19620# restored at link time. 19621variables_saved_for_relink=$lt_variables_saved_for_relink 19622 19623# Do we need the "lib" prefix for modules? 19624need_lib_prefix=$need_lib_prefix 19625 19626# Do we need a version for libraries? 19627need_version=$need_version 19628 19629# Library versioning type. 19630version_type=$version_type 19631 19632# Shared library runtime path variable. 19633runpath_var=$runpath_var 19634 19635# Shared library path variable. 19636shlibpath_var=$shlibpath_var 19637 19638# Is shlibpath searched before the hard-coded library search path? 19639shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19640 19641# Format of library name prefix. 19642libname_spec=$lt_libname_spec 19643 19644# List of archive names. First name is the real one, the rest are links. 19645# The last name is the one that the linker finds with -lNAME 19646library_names_spec=$lt_library_names_spec 19647 19648# The coded name of the library, if different from the real name. 19649soname_spec=$lt_soname_spec 19650 19651# Permission mode override for installation of shared libraries. 19652install_override_mode=$lt_install_override_mode 19653 19654# Command to use after installation of a shared archive. 19655postinstall_cmds=$lt_postinstall_cmds 19656 19657# Command to use after uninstallation of a shared archive. 19658postuninstall_cmds=$lt_postuninstall_cmds 19659 19660# Commands used to finish a libtool library installation in a directory. 19661finish_cmds=$lt_finish_cmds 19662 19663# As "finish_cmds", except a single script fragment to be evaled but 19664# not shown. 19665finish_eval=$lt_finish_eval 19666 19667# Whether we should hardcode library paths into libraries. 19668hardcode_into_libs=$hardcode_into_libs 19669 19670# Compile-time system search path for libraries. 19671sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19672 19673# Detected run-time system search path for libraries. 19674sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19675 19676# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19677configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19678 19679# Whether dlopen is supported. 19680dlopen_support=$enable_dlopen 19681 19682# Whether dlopen of programs is supported. 19683dlopen_self=$enable_dlopen_self 19684 19685# Whether dlopen of statically linked programs is supported. 19686dlopen_self_static=$enable_dlopen_self_static 19687 19688# Commands to strip libraries. 19689old_striplib=$lt_old_striplib 19690striplib=$lt_striplib 19691 19692 19693# The linker used to build libraries. 19694LD=$lt_LD 19695 19696# How to create reloadable object files. 19697reload_flag=$lt_reload_flag 19698reload_cmds=$lt_reload_cmds 19699 19700# Commands used to build an old-style archive. 19701old_archive_cmds=$lt_old_archive_cmds 19702 19703# A language specific compiler. 19704CC=$lt_compiler 19705 19706# Is the compiler the GNU compiler? 19707with_gcc=$GCC 19708 19709# Compiler flag to turn off builtin functions. 19710no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19711 19712# Additional compiler flags for building library objects. 19713pic_flag=$lt_lt_prog_compiler_pic 19714 19715# How to pass a linker flag through the compiler. 19716wl=$lt_lt_prog_compiler_wl 19717 19718# Compiler flag to prevent dynamic linking. 19719link_static_flag=$lt_lt_prog_compiler_static 19720 19721# Does compiler simultaneously support -c and -o options? 19722compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19723 19724# Whether or not to add -lc for building shared libraries. 19725build_libtool_need_lc=$archive_cmds_need_lc 19726 19727# Whether or not to disallow shared libs when runtime libs are static. 19728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19729 19730# Compiler flag to allow reflexive dlopens. 19731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19732 19733# Compiler flag to generate shared objects directly from archives. 19734whole_archive_flag_spec=$lt_whole_archive_flag_spec 19735 19736# Whether the compiler copes with passing no objects directly. 19737compiler_needs_object=$lt_compiler_needs_object 19738 19739# Create an old-style archive from a shared archive. 19740old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19741 19742# Create a temporary old-style archive to link instead of a shared archive. 19743old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19744 19745# Commands used to build a shared archive. 19746archive_cmds=$lt_archive_cmds 19747archive_expsym_cmds=$lt_archive_expsym_cmds 19748 19749# Commands used to build a loadable module if different from building 19750# a shared archive. 19751module_cmds=$lt_module_cmds 19752module_expsym_cmds=$lt_module_expsym_cmds 19753 19754# Whether we are building with GNU ld or not. 19755with_gnu_ld=$lt_with_gnu_ld 19756 19757# Flag that allows shared libraries with undefined symbols to be built. 19758allow_undefined_flag=$lt_allow_undefined_flag 19759 19760# Flag that enforces no undefined symbols. 19761no_undefined_flag=$lt_no_undefined_flag 19762 19763# Flag to hardcode \$libdir into a binary during linking. 19764# This must work even if \$libdir does not exist 19765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19766 19767# Whether we need a single "-rpath" flag with a separated argument. 19768hardcode_libdir_separator=$lt_hardcode_libdir_separator 19769 19770# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19771# DIR into the resulting binary. 19772hardcode_direct=$hardcode_direct 19773 19774# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19775# DIR into the resulting binary and the resulting library dependency is 19776# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19777# library is relocated. 19778hardcode_direct_absolute=$hardcode_direct_absolute 19779 19780# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19781# into the resulting binary. 19782hardcode_minus_L=$hardcode_minus_L 19783 19784# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19785# into the resulting binary. 19786hardcode_shlibpath_var=$hardcode_shlibpath_var 19787 19788# Set to "yes" if building a shared library automatically hardcodes DIR 19789# into the library and all subsequent libraries and executables linked 19790# against it. 19791hardcode_automatic=$hardcode_automatic 19792 19793# Set to yes if linker adds runtime paths of dependent libraries 19794# to runtime path list. 19795inherit_rpath=$inherit_rpath 19796 19797# Whether libtool must link a program against all its dependency libraries. 19798link_all_deplibs=$link_all_deplibs 19799 19800# Set to "yes" if exported symbols are required. 19801always_export_symbols=$always_export_symbols 19802 19803# The commands to list exported symbols. 19804export_symbols_cmds=$lt_export_symbols_cmds 19805 19806# Symbols that should not be listed in the preloaded symbols. 19807exclude_expsyms=$lt_exclude_expsyms 19808 19809# Symbols that must always be exported. 19810include_expsyms=$lt_include_expsyms 19811 19812# Commands necessary for linking programs (against libraries) with templates. 19813prelink_cmds=$lt_prelink_cmds 19814 19815# Commands necessary for finishing linking programs. 19816postlink_cmds=$lt_postlink_cmds 19817 19818# Specify filename containing input files. 19819file_list_spec=$lt_file_list_spec 19820 19821# How to hardcode a shared library path into an executable. 19822hardcode_action=$hardcode_action 19823 19824# The directories searched by this compiler when creating a shared library. 19825compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19826 19827# Dependencies to place before and after the objects being linked to 19828# create a shared library. 19829predep_objects=$lt_predep_objects 19830postdep_objects=$lt_postdep_objects 19831predeps=$lt_predeps 19832postdeps=$lt_postdeps 19833 19834# The library search path used internally by the compiler when linking 19835# a shared library. 19836compiler_lib_search_path=$lt_compiler_lib_search_path 19837 19838# ### END LIBTOOL CONFIG 19839 19840_LT_EOF 19841 19842 cat <<'_LT_EOF' >> "$cfgfile" 19843 19844# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19845 19846# func_munge_path_list VARIABLE PATH 19847# ----------------------------------- 19848# VARIABLE is name of variable containing _space_ separated list of 19849# directories to be munged by the contents of PATH, which is string 19850# having a format: 19851# "DIR[:DIR]:" 19852# string "DIR[ DIR]" will be prepended to VARIABLE 19853# ":DIR[:DIR]" 19854# string "DIR[ DIR]" will be appended to VARIABLE 19855# "DIRP[:DIRP]::[DIRA:]DIRA" 19856# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19857# "DIRA[ DIRA]" will be appended to VARIABLE 19858# "DIR[:DIR]" 19859# VARIABLE will be replaced by "DIR[ DIR]" 19860func_munge_path_list () 19861{ 19862 case x$2 in 19863 x) 19864 ;; 19865 *:) 19866 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19867 ;; 19868 x:*) 19869 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19870 ;; 19871 *::*) 19872 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19873 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19874 ;; 19875 *) 19876 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19877 ;; 19878 esac 19879} 19880 19881 19882# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19883func_cc_basename () 19884{ 19885 for cc_temp in $*""; do 19886 case $cc_temp in 19887 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19888 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19889 \-*) ;; 19890 *) break;; 19891 esac 19892 done 19893 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19894} 19895 19896 19897# ### END FUNCTIONS SHARED WITH CONFIGURE 19898 19899_LT_EOF 19900 19901 case $host_os in 19902 aix3*) 19903 cat <<\_LT_EOF >> "$cfgfile" 19904# AIX sometimes has problems with the GCC collect2 program. For some 19905# reason, if we set the COLLECT_NAMES environment variable, the problems 19906# vanish in a puff of smoke. 19907if test set != "${COLLECT_NAMES+set}"; then 19908 COLLECT_NAMES= 19909 export COLLECT_NAMES 19910fi 19911_LT_EOF 19912 ;; 19913 esac 19914 19915 19916 19917ltmain=$ac_aux_dir/ltmain.sh 19918 19919 19920 # We use sed instead of cat because bash on DJGPP gets confused if 19921 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19922 # text mode, it properly converts lines to CR/LF. This bash problem 19923 # is reportedly fixed, but why not run on old versions too? 19924 sed '$q' "$ltmain" >> "$cfgfile" \ 19925 || (rm -f "$cfgfile"; exit 1) 19926 19927 mv -f "$cfgfile" "$ofile" || 19928 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19929 chmod +x "$ofile" 19930 19931 19932 cat <<_LT_EOF >> "$ofile" 19933 19934# ### BEGIN LIBTOOL TAG CONFIG: CXX 19935 19936# The linker used to build libraries. 19937LD=$lt_LD_CXX 19938 19939# How to create reloadable object files. 19940reload_flag=$lt_reload_flag_CXX 19941reload_cmds=$lt_reload_cmds_CXX 19942 19943# Commands used to build an old-style archive. 19944old_archive_cmds=$lt_old_archive_cmds_CXX 19945 19946# A language specific compiler. 19947CC=$lt_compiler_CXX 19948 19949# Is the compiler the GNU compiler? 19950with_gcc=$GCC_CXX 19951 19952# Compiler flag to turn off builtin functions. 19953no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19954 19955# Additional compiler flags for building library objects. 19956pic_flag=$lt_lt_prog_compiler_pic_CXX 19957 19958# How to pass a linker flag through the compiler. 19959wl=$lt_lt_prog_compiler_wl_CXX 19960 19961# Compiler flag to prevent dynamic linking. 19962link_static_flag=$lt_lt_prog_compiler_static_CXX 19963 19964# Does compiler simultaneously support -c and -o options? 19965compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19966 19967# Whether or not to add -lc for building shared libraries. 19968build_libtool_need_lc=$archive_cmds_need_lc_CXX 19969 19970# Whether or not to disallow shared libs when runtime libs are static. 19971allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19972 19973# Compiler flag to allow reflexive dlopens. 19974export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19975 19976# Compiler flag to generate shared objects directly from archives. 19977whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19978 19979# Whether the compiler copes with passing no objects directly. 19980compiler_needs_object=$lt_compiler_needs_object_CXX 19981 19982# Create an old-style archive from a shared archive. 19983old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19984 19985# Create a temporary old-style archive to link instead of a shared archive. 19986old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19987 19988# Commands used to build a shared archive. 19989archive_cmds=$lt_archive_cmds_CXX 19990archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19991 19992# Commands used to build a loadable module if different from building 19993# a shared archive. 19994module_cmds=$lt_module_cmds_CXX 19995module_expsym_cmds=$lt_module_expsym_cmds_CXX 19996 19997# Whether we are building with GNU ld or not. 19998with_gnu_ld=$lt_with_gnu_ld_CXX 19999 20000# Flag that allows shared libraries with undefined symbols to be built. 20001allow_undefined_flag=$lt_allow_undefined_flag_CXX 20002 20003# Flag that enforces no undefined symbols. 20004no_undefined_flag=$lt_no_undefined_flag_CXX 20005 20006# Flag to hardcode \$libdir into a binary during linking. 20007# This must work even if \$libdir does not exist 20008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20009 20010# Whether we need a single "-rpath" flag with a separated argument. 20011hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20012 20013# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20014# DIR into the resulting binary. 20015hardcode_direct=$hardcode_direct_CXX 20016 20017# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20018# DIR into the resulting binary and the resulting library dependency is 20019# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20020# library is relocated. 20021hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20022 20023# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20024# into the resulting binary. 20025hardcode_minus_L=$hardcode_minus_L_CXX 20026 20027# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20028# into the resulting binary. 20029hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20030 20031# Set to "yes" if building a shared library automatically hardcodes DIR 20032# into the library and all subsequent libraries and executables linked 20033# against it. 20034hardcode_automatic=$hardcode_automatic_CXX 20035 20036# Set to yes if linker adds runtime paths of dependent libraries 20037# to runtime path list. 20038inherit_rpath=$inherit_rpath_CXX 20039 20040# Whether libtool must link a program against all its dependency libraries. 20041link_all_deplibs=$link_all_deplibs_CXX 20042 20043# Set to "yes" if exported symbols are required. 20044always_export_symbols=$always_export_symbols_CXX 20045 20046# The commands to list exported symbols. 20047export_symbols_cmds=$lt_export_symbols_cmds_CXX 20048 20049# Symbols that should not be listed in the preloaded symbols. 20050exclude_expsyms=$lt_exclude_expsyms_CXX 20051 20052# Symbols that must always be exported. 20053include_expsyms=$lt_include_expsyms_CXX 20054 20055# Commands necessary for linking programs (against libraries) with templates. 20056prelink_cmds=$lt_prelink_cmds_CXX 20057 20058# Commands necessary for finishing linking programs. 20059postlink_cmds=$lt_postlink_cmds_CXX 20060 20061# Specify filename containing input files. 20062file_list_spec=$lt_file_list_spec_CXX 20063 20064# How to hardcode a shared library path into an executable. 20065hardcode_action=$hardcode_action_CXX 20066 20067# The directories searched by this compiler when creating a shared library. 20068compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20069 20070# Dependencies to place before and after the objects being linked to 20071# create a shared library. 20072predep_objects=$lt_predep_objects_CXX 20073postdep_objects=$lt_postdep_objects_CXX 20074predeps=$lt_predeps_CXX 20075postdeps=$lt_postdeps_CXX 20076 20077# The library search path used internally by the compiler when linking 20078# a shared library. 20079compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20080 20081# ### END LIBTOOL TAG CONFIG: CXX 20082_LT_EOF 20083 20084 ;; 20085 20086 esac 20087done # for ac_tag 20088 20089 20090as_fn_exit 0 20091_ACEOF 20092ac_clean_files=$ac_clean_files_save 20093 20094test $ac_write_fail = 0 || 20095 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20096 20097 20098# configure is writing to config.log, and then calls config.status. 20099# config.status does its own redirection, appending to config.log. 20100# Unfortunately, on DOS this fails, as config.log is still kept open 20101# by configure, so config.status won't be able to write to it; its 20102# output is simply discarded. So we exec the FD to /dev/null, 20103# effectively closing config.log, so it can be properly (re)opened and 20104# appended to by config.status. When coming back to configure, we 20105# need to make the FD available again. 20106if test "$no_create" != yes; then 20107 ac_cs_success=: 20108 ac_config_status_args= 20109 test "$silent" = yes && 20110 ac_config_status_args="$ac_config_status_args --quiet" 20111 exec 5>/dev/null 20112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20113 exec 5>>config.log 20114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20115 # would make configure fail if this is the last instruction. 20116 $ac_cs_success || as_fn_exit 1 20117fi 20118if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20120printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20121fi 20122 20123 20124