1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for audiofile 0.3.6. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='audiofile' 589PACKAGE_TARNAME='audiofile' 590PACKAGE_VERSION='0.3.6' 591PACKAGE_STRING='audiofile 0.3.6' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="libaudiofile/AIFF.cpp" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636ENABLE_FLAC_FALSE 637ENABLE_FLAC_TRUE 638FLAC_LIBS 639FLAC_CFLAGS 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643ASCIIDOC 644A2X 645ENABLE_DOCUMENTATION_FALSE 646ENABLE_DOCUMENTATION_TRUE 647VALGRIND 648ENABLE_VALGRIND_FALSE 649ENABLE_VALGRIND_TRUE 650GENHTML 651LCOV 652COVERAGE_LIBS 653COVERAGE_CFLAGS 654ENABLE_COVERAGE_FALSE 655ENABLE_COVERAGE_TRUE 656WERROR_CFLAGS 657ENABLE_WERROR_FALSE 658ENABLE_WERROR_TRUE 659TEST_BIN 660CXXCPP 661CPP 662OTOOL64 663OTOOL 664LIPO 665NMEDIT 666DSYMUTIL 667MANIFEST_TOOL 668RANLIB 669ac_ct_AR 670AR 671DLLTOOL 672OBJDUMP 673LN_S 674NM 675ac_ct_DUMPBIN 676DUMPBIN 677LD 678FGREP 679EGREP 680GREP 681SED 682host_os 683host_vendor 684host_cpu 685host 686build_os 687build_vendor 688build_cpu 689build 690LIBTOOL 691am__fastdepCXX_FALSE 692am__fastdepCXX_TRUE 693CXXDEPMODE 694ac_ct_CXX 695CXXFLAGS 696CXX 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__quote 705am__include 706DEPDIR 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737AUDIOFILE_VERSION_INFO 738AUDIOFILE_VERSION 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_dependency_tracking 781enable_shared 782enable_static 783with_pic 784enable_fast_install 785with_gnu_ld 786with_sysroot 787enable_libtool_lock 788enable_largefile 789enable_werror 790enable_coverage 791enable_valgrind 792enable_docs 793enable_examples 794enable_flac 795' 796 ac_precious_vars='build_alias 797host_alias 798target_alias 799CC 800CFLAGS 801LDFLAGS 802LIBS 803CPPFLAGS 804CXX 805CXXFLAGS 806CCC 807CPP 808CXXCPP 809PKG_CONFIG 810PKG_CONFIG_PATH 811PKG_CONFIG_LIBDIR 812FLAC_CFLAGS 813FLAC_LIBS' 814 815 816# Initialize some variables set by options. 817ac_init_help= 818ac_init_version=false 819ac_unrecognized_opts= 820ac_unrecognized_sep= 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *=) ac_optarg= ;; 878 *) ac_optarg=yes ;; 879 esac 880 881 # Accept the important Cygnus configure options, so we can diagnose typos. 882 883 case $ac_dashdash$ac_option in 884 --) 885 ac_dashdash=yes ;; 886 887 -bindir | --bindir | --bindi | --bind | --bin | --bi) 888 ac_prev=bindir ;; 889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 890 bindir=$ac_optarg ;; 891 892 -build | --build | --buil | --bui | --bu) 893 ac_prev=build_alias ;; 894 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 895 build_alias=$ac_optarg ;; 896 897 -cache-file | --cache-file | --cache-fil | --cache-fi \ 898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 899 ac_prev=cache_file ;; 900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 902 cache_file=$ac_optarg ;; 903 904 --config-cache | -C) 905 cache_file=config.cache ;; 906 907 -datadir | --datadir | --datadi | --datad) 908 ac_prev=datadir ;; 909 -datadir=* | --datadir=* | --datadi=* | --datad=*) 910 datadir=$ac_optarg ;; 911 912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 913 | --dataroo | --dataro | --datar) 914 ac_prev=datarootdir ;; 915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 917 datarootdir=$ac_optarg ;; 918 919 -disable-* | --disable-*) 920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 921 # Reject names that are not valid shell variable names. 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 923 as_fn_error $? "invalid feature name: $ac_useropt" 924 ac_useropt_orig=$ac_useropt 925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 926 case $ac_user_opts in 927 *" 928"enable_$ac_useropt" 929"*) ;; 930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 931 ac_unrecognized_sep=', ';; 932 esac 933 eval enable_$ac_useropt=no ;; 934 935 -docdir | --docdir | --docdi | --doc | --do) 936 ac_prev=docdir ;; 937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 938 docdir=$ac_optarg ;; 939 940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 941 ac_prev=dvidir ;; 942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 943 dvidir=$ac_optarg ;; 944 945 -enable-* | --enable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error $? "invalid feature name: $ac_useropt" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954"enable_$ac_useropt" 955"*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=\$ac_optarg ;; 960 961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 963 | --exec | --exe | --ex) 964 ac_prev=exec_prefix ;; 965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 967 | --exec=* | --exe=* | --ex=*) 968 exec_prefix=$ac_optarg ;; 969 970 -gas | --gas | --ga | --g) 971 # Obsolete; use --with-gas. 972 with_gas=yes ;; 973 974 -help | --help | --hel | --he | -h) 975 ac_init_help=long ;; 976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 977 ac_init_help=recursive ;; 978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 979 ac_init_help=short ;; 980 981 -host | --host | --hos | --ho) 982 ac_prev=host_alias ;; 983 -host=* | --host=* | --hos=* | --ho=*) 984 host_alias=$ac_optarg ;; 985 986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 987 ac_prev=htmldir ;; 988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 989 | --ht=*) 990 htmldir=$ac_optarg ;; 991 992 -includedir | --includedir | --includedi | --included | --include \ 993 | --includ | --inclu | --incl | --inc) 994 ac_prev=includedir ;; 995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 996 | --includ=* | --inclu=* | --incl=* | --inc=*) 997 includedir=$ac_optarg ;; 998 999 -infodir | --infodir | --infodi | --infod | --info | --inf) 1000 ac_prev=infodir ;; 1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1002 infodir=$ac_optarg ;; 1003 1004 -libdir | --libdir | --libdi | --libd) 1005 ac_prev=libdir ;; 1006 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1007 libdir=$ac_optarg ;; 1008 1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1010 | --libexe | --libex | --libe) 1011 ac_prev=libexecdir ;; 1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1013 | --libexe=* | --libex=* | --libe=*) 1014 libexecdir=$ac_optarg ;; 1015 1016 -localedir | --localedir | --localedi | --localed | --locale) 1017 ac_prev=localedir ;; 1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1019 localedir=$ac_optarg ;; 1020 1021 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1022 | --localstate | --localstat | --localsta | --localst | --locals) 1023 ac_prev=localstatedir ;; 1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1026 localstatedir=$ac_optarg ;; 1027 1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1029 ac_prev=mandir ;; 1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1031 mandir=$ac_optarg ;; 1032 1033 -nfp | --nfp | --nf) 1034 # Obsolete; use --without-fp. 1035 with_fp=no ;; 1036 1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1038 | --no-cr | --no-c | -n) 1039 no_create=yes ;; 1040 1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1043 no_recursion=yes ;; 1044 1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1047 | --oldin | --oldi | --old | --ol | --o) 1048 ac_prev=oldincludedir ;; 1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1052 oldincludedir=$ac_optarg ;; 1053 1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1055 ac_prev=prefix ;; 1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1057 prefix=$ac_optarg ;; 1058 1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1060 | --program-pre | --program-pr | --program-p) 1061 ac_prev=program_prefix ;; 1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1064 program_prefix=$ac_optarg ;; 1065 1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1067 | --program-suf | --program-su | --program-s) 1068 ac_prev=program_suffix ;; 1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1071 program_suffix=$ac_optarg ;; 1072 1073 -program-transform-name | --program-transform-name \ 1074 | --program-transform-nam | --program-transform-na \ 1075 | --program-transform-n | --program-transform- \ 1076 | --program-transform | --program-transfor \ 1077 | --program-transfo | --program-transf \ 1078 | --program-trans | --program-tran \ 1079 | --progr-tra | --program-tr | --program-t) 1080 ac_prev=program_transform_name ;; 1081 -program-transform-name=* | --program-transform-name=* \ 1082 | --program-transform-nam=* | --program-transform-na=* \ 1083 | --program-transform-n=* | --program-transform-=* \ 1084 | --program-transform=* | --program-transfor=* \ 1085 | --program-transfo=* | --program-transf=* \ 1086 | --program-trans=* | --program-tran=* \ 1087 | --progr-tra=* | --program-tr=* | --program-t=*) 1088 program_transform_name=$ac_optarg ;; 1089 1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1091 ac_prev=pdfdir ;; 1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1093 pdfdir=$ac_optarg ;; 1094 1095 -psdir | --psdir | --psdi | --psd | --ps) 1096 ac_prev=psdir ;; 1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1098 psdir=$ac_optarg ;; 1099 1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1101 | -silent | --silent | --silen | --sile | --sil) 1102 silent=yes ;; 1103 1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1105 ac_prev=sbindir ;; 1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1107 | --sbi=* | --sb=*) 1108 sbindir=$ac_optarg ;; 1109 1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1112 | --sharedst | --shareds | --shared | --share | --shar \ 1113 | --sha | --sh) 1114 ac_prev=sharedstatedir ;; 1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1118 | --sha=* | --sh=*) 1119 sharedstatedir=$ac_optarg ;; 1120 1121 -site | --site | --sit) 1122 ac_prev=site ;; 1123 -site=* | --site=* | --sit=*) 1124 site=$ac_optarg ;; 1125 1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1127 ac_prev=srcdir ;; 1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1129 srcdir=$ac_optarg ;; 1130 1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1132 | --syscon | --sysco | --sysc | --sys | --sy) 1133 ac_prev=sysconfdir ;; 1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1136 sysconfdir=$ac_optarg ;; 1137 1138 -target | --target | --targe | --targ | --tar | --ta | --t) 1139 ac_prev=target_alias ;; 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1141 target_alias=$ac_optarg ;; 1142 1143 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1144 verbose=yes ;; 1145 1146 -version | --version | --versio | --versi | --vers | -V) 1147 ac_init_version=: ;; 1148 1149 -with-* | --with-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: $ac_useropt" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=\$ac_optarg ;; 1164 1165 -without-* | --without-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: $ac_useropt" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174"with_$ac_useropt" 1175"*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=no ;; 1180 1181 --x) 1182 # Obsolete; use --with-x. 1183 with_x=yes ;; 1184 1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1186 | --x-incl | --x-inc | --x-in | --x-i) 1187 ac_prev=x_includes ;; 1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1190 x_includes=$ac_optarg ;; 1191 1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1194 ac_prev=x_libraries ;; 1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1197 x_libraries=$ac_optarg ;; 1198 1199 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1200Try \`$0 --help' for more information" 1201 ;; 1202 1203 *=*) 1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1205 # Reject names that are not valid shell variable names. 1206 case $ac_envvar in #( 1207 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1209 esac 1210 eval $ac_envvar=\$ac_optarg 1211 export $ac_envvar ;; 1212 1213 *) 1214 # FIXME: should be removed in autoconf 3.0. 1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1219 ;; 1220 1221 esac 1222done 1223 1224if test -n "$ac_prev"; then 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1226 as_fn_error $? "missing argument to $ac_option" 1227fi 1228 1229if test -n "$ac_unrecognized_opts"; then 1230 case $enable_option_checking in 1231 no) ;; 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1234 esac 1235fi 1236 1237# Check all directory arguments for consistency. 1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1239 datadir sysconfdir sharedstatedir localstatedir includedir \ 1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1241 libdir localedir mandir 1242do 1243 eval ac_val=\$$ac_var 1244 # Remove trailing slashes. 1245 case $ac_val in 1246 */ ) 1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1248 eval $ac_var=\$ac_val;; 1249 esac 1250 # Be sure to have absolute directory names. 1251 case $ac_val in 1252 [\\/$]* | ?:[\\/]* ) continue;; 1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1254 esac 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1256done 1257 1258# There might be people who depend on the old broken behavior: `$host' 1259# used to hold the argument of --host etc. 1260# FIXME: To remove some day. 1261build=$build_alias 1262host=$host_alias 1263target=$target_alias 1264 1265# FIXME: To remove some day. 1266if test "x$host_alias" != x; then 1267 if test "x$build_alias" = x; then 1268 cross_compiling=maybe 1269 elif test "x$build_alias" != "x$host_alias"; then 1270 cross_compiling=yes 1271 fi 1272fi 1273 1274ac_tool_prefix= 1275test -n "$host_alias" && ac_tool_prefix=$host_alias- 1276 1277test "$silent" = yes && exec 6>/dev/null 1278 1279 1280ac_pwd=`pwd` && test -n "$ac_pwd" && 1281ac_ls_di=`ls -di .` && 1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1283 as_fn_error $? "working directory cannot be determined" 1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1285 as_fn_error $? "pwd does not report name of working directory" 1286 1287 1288# Find the source files, if location was not specified. 1289if test -z "$srcdir"; then 1290 ac_srcdir_defaulted=yes 1291 # Try the directory containing this script, then the parent directory. 1292 ac_confdir=`$as_dirname -- "$as_myself" || 1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1294 X"$as_myself" : 'X\(//\)[^/]' \| \ 1295 X"$as_myself" : 'X\(//\)$' \| \ 1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1297$as_echo X"$as_myself" | 1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)[^/].*/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)$/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\).*/{ 1311 s//\1/ 1312 q 1313 } 1314 s/.*/./; q'` 1315 srcdir=$ac_confdir 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 srcdir=.. 1318 fi 1319else 1320 ac_srcdir_defaulted=no 1321fi 1322if test ! -r "$srcdir/$ac_unique_file"; then 1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1325fi 1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1327ac_abs_confdir=`( 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1329 pwd)` 1330# When building in place, set srcdir=. 1331if test "$ac_abs_confdir" = "$ac_pwd"; then 1332 srcdir=. 1333fi 1334# Remove unnecessary trailing slashes from srcdir. 1335# Double slashes in file names in object file debugging info 1336# mess up M-x gdb in Emacs. 1337case $srcdir in 1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1339esac 1340for ac_var in $ac_precious_vars; do 1341 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_env_${ac_var}_value=\$${ac_var} 1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1345done 1346 1347# 1348# Report the --help message. 1349# 1350if test "$ac_init_help" = "long"; then 1351 # Omit some internal or obsolete options to make the list less imposing. 1352 # This message is too long to be a string in the A/UX 3.1 sh. 1353 cat <<_ACEOF 1354\`configure' configures audiofile 0.3.6 to adapt to many kinds of systems. 1355 1356Usage: $0 [OPTION]... [VAR=VALUE]... 1357 1358To assign environment variables (e.g., CC, CFLAGS...), specify them as 1359VAR=VALUE. See below for descriptions of some of the useful variables. 1360 1361Defaults for the options are specified in brackets. 1362 1363Configuration: 1364 -h, --help display this help and exit 1365 --help=short display options specific to this package 1366 --help=recursive display the short help of all the included packages 1367 -V, --version display version information and exit 1368 -q, --quiet, --silent do not print \`checking ...' messages 1369 --cache-file=FILE cache test results in FILE [disabled] 1370 -C, --config-cache alias for \`--cache-file=config.cache' 1371 -n, --no-create do not create output files 1372 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1373 1374Installation directories: 1375 --prefix=PREFIX install architecture-independent files in PREFIX 1376 [$ac_default_prefix] 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1378 [PREFIX] 1379 1380By default, \`make install' will install all the files in 1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1382an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1383for instance \`--prefix=\$HOME'. 1384 1385For better control, use the options below. 1386 1387Fine tuning of the installation directories: 1388 --bindir=DIR user executables [EPREFIX/bin] 1389 --sbindir=DIR system admin executables [EPREFIX/sbin] 1390 --libexecdir=DIR program executables [EPREFIX/libexec] 1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1394 --libdir=DIR object code libraries [EPREFIX/lib] 1395 --includedir=DIR C header files [PREFIX/include] 1396 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1399 --infodir=DIR info documentation [DATAROOTDIR/info] 1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1401 --mandir=DIR man documentation [DATAROOTDIR/man] 1402 --docdir=DIR documentation root [DATAROOTDIR/doc/audiofile] 1403 --htmldir=DIR html documentation [DOCDIR] 1404 --dvidir=DIR dvi documentation [DOCDIR] 1405 --pdfdir=DIR pdf documentation [DOCDIR] 1406 --psdir=DIR ps documentation [DOCDIR] 1407_ACEOF 1408 1409 cat <<\_ACEOF 1410 1411Program names: 1412 --program-prefix=PREFIX prepend PREFIX to installed program names 1413 --program-suffix=SUFFIX append SUFFIX to installed program names 1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1415 1416System types: 1417 --build=BUILD configure for building on BUILD [guessed] 1418 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1419_ACEOF 1420fi 1421 1422if test -n "$ac_init_help"; then 1423 case $ac_init_help in 1424 short | recursive ) echo "Configuration of audiofile 0.3.6:";; 1425 esac 1426 cat <<\_ACEOF 1427 1428Optional Features: 1429 --disable-option-checking ignore unrecognized --enable/--with options 1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1432 --disable-dependency-tracking speeds up one-time build 1433 --enable-dependency-tracking do not reject slow dependency extractors 1434 --enable-shared[=PKGS] build shared libraries [default=yes] 1435 --enable-static[=PKGS] build static libraries [default=yes] 1436 --enable-fast-install[=PKGS] 1437 optimize for fast installation [default=yes] 1438 --disable-libtool-lock avoid locking (might break parallel builds) 1439 --disable-largefile omit support for large files 1440 --enable-werror treat compiler warnings as errors 1441 --enable-coverage enable code coverage 1442 --enable-valgrind enable testing with Valgrind 1443 --disable-docs disable documentation 1444 --disable-examples disable examples 1445 --disable-flac disable FLAC 1446 1447Optional Packages: 1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1450 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1451 both] 1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1453 --with-sysroot=DIR Search for dependent libraries within DIR 1454 (or the compiler's sysroot if not specified). 1455 1456Some influential environment variables: 1457 CC C compiler command 1458 CFLAGS C compiler flags 1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1460 nonstandard directory <lib dir> 1461 LIBS libraries to pass to the linker, e.g. -l<library> 1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1463 you have headers in a nonstandard directory <include dir> 1464 CXX C++ compiler command 1465 CXXFLAGS C++ compiler flags 1466 CPP C preprocessor 1467 CXXCPP C++ preprocessor 1468 PKG_CONFIG path to pkg-config utility 1469 PKG_CONFIG_PATH 1470 directories to add to pkg-config's search path 1471 PKG_CONFIG_LIBDIR 1472 path overriding pkg-config's built-in search path 1473 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config 1474 FLAC_LIBS linker flags for FLAC, overriding pkg-config 1475 1476Use these variables to override the choices made by `configure' or to help 1477it to find libraries and programs with nonstandard names/locations. 1478 1479Report bugs to the package provider. 1480_ACEOF 1481ac_status=$? 1482fi 1483 1484if test "$ac_init_help" = "recursive"; then 1485 # If there are subdirs, report their specific --help. 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1487 test -d "$ac_dir" || 1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1489 continue 1490 ac_builddir=. 1491 1492case "$ac_dir" in 1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494*) 1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1496 # A ".." for each directory in $ac_dir_suffix. 1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1498 case $ac_top_builddir_sub in 1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1501 esac ;; 1502esac 1503ac_abs_top_builddir=$ac_pwd 1504ac_abs_builddir=$ac_pwd$ac_dir_suffix 1505# for backward compatibility: 1506ac_top_builddir=$ac_top_build_prefix 1507 1508case $srcdir in 1509 .) # We are building in place. 1510 ac_srcdir=. 1511 ac_top_srcdir=$ac_top_builddir_sub 1512 ac_abs_top_srcdir=$ac_pwd ;; 1513 [\\/]* | ?:[\\/]* ) # Absolute name. 1514 ac_srcdir=$srcdir$ac_dir_suffix; 1515 ac_top_srcdir=$srcdir 1516 ac_abs_top_srcdir=$srcdir ;; 1517 *) # Relative name. 1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1519 ac_top_srcdir=$ac_top_build_prefix$srcdir 1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1521esac 1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1523 1524 cd "$ac_dir" || { ac_status=$?; continue; } 1525 # Check for guested configure. 1526 if test -f "$ac_srcdir/configure.gnu"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1529 elif test -f "$ac_srcdir/configure"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure" --help=recursive 1532 else 1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1534 fi || ac_status=$? 1535 cd "$ac_pwd" || { ac_status=$?; break; } 1536 done 1537fi 1538 1539test -n "$ac_init_help" && exit $ac_status 1540if $ac_init_version; then 1541 cat <<\_ACEOF 1542audiofile configure 0.3.6 1543generated by GNU Autoconf 2.69 1544 1545Copyright (C) 2012 Free Software Foundation, Inc. 1546This configure script is free software; the Free Software Foundation 1547gives unlimited permission to copy, distribute and modify it. 1548_ACEOF 1549 exit 1550fi 1551 1552## ------------------------ ## 1553## Autoconf initialization. ## 1554## ------------------------ ## 1555 1556# ac_fn_c_try_compile LINENO 1557# -------------------------- 1558# Try to compile conftest.$ac_ext, and return whether this succeeded. 1559ac_fn_c_try_compile () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 rm -f conftest.$ac_objext 1563 if { { ac_try="$ac_compile" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_compile") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } && { 1579 test -z "$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 } && test -s conftest.$ac_objext; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_compile 1593 1594# ac_fn_cxx_try_compile LINENO 1595# ---------------------------- 1596# Try to compile conftest.$ac_ext, and return whether this succeeded. 1597ac_fn_cxx_try_compile () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext 1601 if { { ac_try="$ac_compile" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_compile") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } && { 1617 test -z "$ac_cxx_werror_flag" || 1618 test ! -s conftest.err 1619 } && test -s conftest.$ac_objext; then : 1620 ac_retval=0 1621else 1622 $as_echo "$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_cxx_try_compile 1631 1632# ac_fn_c_try_link LINENO 1633# ----------------------- 1634# Try to link conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_c_try_link () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext conftest$ac_exeext 1639 if { { ac_try="$ac_link" 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\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_link") 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 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest$ac_exeext && { 1658 test "$cross_compiling" = yes || 1659 test -x conftest$ac_exeext 1660 }; then : 1661 ac_retval=0 1662else 1663 $as_echo "$as_me: failed program was:" >&5 1664sed 's/^/| /' conftest.$ac_ext >&5 1665 1666 ac_retval=1 1667fi 1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1670 # interfere with the next link command; also delete a directory that is 1671 # left behind by Apple's compiler. We do this before executing the actions. 1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 as_fn_set_status $ac_retval 1675 1676} # ac_fn_c_try_link 1677 1678# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1679# ------------------------------------------------------- 1680# Tests whether HEADER exists and can be compiled using the include files in 1681# INCLUDES, setting the cache variable VAR accordingly. 1682ac_fn_c_check_header_compile () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1686$as_echo_n "checking for $2... " >&6; } 1687if eval \${$3+:} false; then : 1688 $as_echo_n "(cached) " >&6 1689else 1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1691/* end confdefs.h. */ 1692$4 1693#include <$2> 1694_ACEOF 1695if ac_fn_c_try_compile "$LINENO"; then : 1696 eval "$3=yes" 1697else 1698 eval "$3=no" 1699fi 1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1701fi 1702eval ac_res=\$$3 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1704$as_echo "$ac_res" >&6; } 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 1707} # ac_fn_c_check_header_compile 1708 1709# ac_fn_c_try_cpp LINENO 1710# ---------------------- 1711# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1712ac_fn_c_try_cpp () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 if { { ac_try="$ac_cpp conftest.$ac_ext" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } > conftest.i && { 1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 }; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740fi 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_cpp 1745 1746# ac_fn_c_try_run LINENO 1747# ---------------------- 1748# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1749# that executables *can* be run. 1750ac_fn_c_try_run () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if { { ac_try="$ac_link" 1754case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_link") 2>&5 1761 ac_status=$? 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1764 { { case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_try") 2>&5 1771 ac_status=$? 1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1773 test $ac_status = 0; }; }; then : 1774 ac_retval=0 1775else 1776 $as_echo "$as_me: program exited with status $ac_status" >&5 1777 $as_echo "$as_me: failed program was:" >&5 1778sed 's/^/| /' conftest.$ac_ext >&5 1779 1780 ac_retval=$ac_status 1781fi 1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786} # ac_fn_c_try_run 1787 1788# ac_fn_c_check_func LINENO FUNC VAR 1789# ---------------------------------- 1790# Tests whether FUNC exists, setting the cache variable VAR accordingly 1791ac_fn_c_check_func () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1803#define $2 innocuous_$2 1804 1805/* System header to define __stub macros and hopefully few prototypes, 1806 which can conflict with char $2 (); below. 1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1808 <limits.h> exists even on freestanding compilers. */ 1809 1810#ifdef __STDC__ 1811# include <limits.h> 1812#else 1813# include <assert.h> 1814#endif 1815 1816#undef $2 1817 1818/* Override any GCC internal prototype to avoid an error. 1819 Use char because int might match the return type of a GCC 1820 builtin and then its argument prototype would still apply. */ 1821#ifdef __cplusplus 1822extern "C" 1823#endif 1824char $2 (); 1825/* The GNU C library defines this for functions which it implements 1826 to always fail with ENOSYS. Some functions are actually named 1827 something starting with __ and the normal name is an alias. */ 1828#if defined __stub_$2 || defined __stub___$2 1829choke me 1830#endif 1831 1832int 1833main () 1834{ 1835return $2 (); 1836 ; 1837 return 0; 1838} 1839_ACEOF 1840if ac_fn_c_try_link "$LINENO"; then : 1841 eval "$3=yes" 1842else 1843 eval "$3=no" 1844fi 1845rm -f core conftest.err conftest.$ac_objext \ 1846 conftest$ac_exeext conftest.$ac_ext 1847fi 1848eval ac_res=\$$3 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1850$as_echo "$ac_res" >&6; } 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 1853} # ac_fn_c_check_func 1854 1855# ac_fn_cxx_try_cpp LINENO 1856# ------------------------ 1857# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1858ac_fn_cxx_try_cpp () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 if { { ac_try="$ac_cpp conftest.$ac_ext" 1862case "(($ac_try" in 1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1864 *) ac_try_echo=$ac_try;; 1865esac 1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1867$as_echo "$ac_try_echo"; } >&5 1868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1869 ac_status=$? 1870 if test -s conftest.err; then 1871 grep -v '^ *+' conftest.err >conftest.er1 1872 cat conftest.er1 >&5 1873 mv -f conftest.er1 conftest.err 1874 fi 1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1876 test $ac_status = 0; } > conftest.i && { 1877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1878 test ! -s conftest.err 1879 }; then : 1880 ac_retval=0 1881else 1882 $as_echo "$as_me: failed program was:" >&5 1883sed 's/^/| /' conftest.$ac_ext >&5 1884 1885 ac_retval=1 1886fi 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 as_fn_set_status $ac_retval 1889 1890} # ac_fn_cxx_try_cpp 1891 1892# ac_fn_cxx_try_link LINENO 1893# ------------------------- 1894# Try to link conftest.$ac_ext, and return whether this succeeded. 1895ac_fn_cxx_try_link () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 rm -f conftest.$ac_objext conftest$ac_exeext 1899 if { { ac_try="$ac_link" 1900case "(($ac_try" in 1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1902 *) ac_try_echo=$ac_try;; 1903esac 1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1905$as_echo "$ac_try_echo"; } >&5 1906 (eval "$ac_link") 2>conftest.err 1907 ac_status=$? 1908 if test -s conftest.err; then 1909 grep -v '^ *+' conftest.err >conftest.er1 1910 cat conftest.er1 >&5 1911 mv -f conftest.er1 conftest.err 1912 fi 1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1914 test $ac_status = 0; } && { 1915 test -z "$ac_cxx_werror_flag" || 1916 test ! -s conftest.err 1917 } && test -s conftest$ac_exeext && { 1918 test "$cross_compiling" = yes || 1919 test -x conftest$ac_exeext 1920 }; then : 1921 ac_retval=0 1922else 1923 $as_echo "$as_me: failed program was:" >&5 1924sed 's/^/| /' conftest.$ac_ext >&5 1925 1926 ac_retval=1 1927fi 1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1930 # interfere with the next link command; also delete a directory that is 1931 # left behind by Apple's compiler. We do this before executing the actions. 1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 as_fn_set_status $ac_retval 1935 1936} # ac_fn_cxx_try_link 1937 1938# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1939# ------------------------------------------------------- 1940# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1941# the include files in INCLUDES and setting the cache variable VAR 1942# accordingly. 1943ac_fn_c_check_header_mongrel () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 if eval \${$3+:} false; then : 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1948$as_echo_n "checking for $2... " >&6; } 1949if eval \${$3+:} false; then : 1950 $as_echo_n "(cached) " >&6 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955else 1956 # Is the header compilable? 1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1958$as_echo_n "checking $2 usability... " >&6; } 1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962#include <$2> 1963_ACEOF 1964if ac_fn_c_try_compile "$LINENO"; then : 1965 ac_header_compiler=yes 1966else 1967 ac_header_compiler=no 1968fi 1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1971$as_echo "$ac_header_compiler" >&6; } 1972 1973# Is the header present? 1974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1975$as_echo_n "checking $2 presence... " >&6; } 1976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977/* end confdefs.h. */ 1978#include <$2> 1979_ACEOF 1980if ac_fn_c_try_cpp "$LINENO"; then : 1981 ac_header_preproc=yes 1982else 1983 ac_header_preproc=no 1984fi 1985rm -f conftest.err conftest.i conftest.$ac_ext 1986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1987$as_echo "$ac_header_preproc" >&6; } 1988 1989# So? What about this header? 1990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1991 yes:no: ) 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1993$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1996 ;; 1997 no:yes:* ) 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1999$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2001$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2003$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2005$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2007$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2008 ;; 2009esac 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2011$as_echo_n "checking for $2... " >&6; } 2012if eval \${$3+:} false; then : 2013 $as_echo_n "(cached) " >&6 2014else 2015 eval "$3=\$ac_header_compiler" 2016fi 2017eval ac_res=\$$3 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2019$as_echo "$ac_res" >&6; } 2020fi 2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2022 2023} # ac_fn_c_check_header_mongrel 2024 2025# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2026# ------------------------------------------- 2027# Tests whether TYPE exists after having included INCLUDES, setting cache 2028# variable VAR accordingly. 2029ac_fn_c_check_type () 2030{ 2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2033$as_echo_n "checking for $2... " >&6; } 2034if eval \${$3+:} false; then : 2035 $as_echo_n "(cached) " >&6 2036else 2037 eval "$3=no" 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041int 2042main () 2043{ 2044if (sizeof ($2)) 2045 return 0; 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054int 2055main () 2056{ 2057if (sizeof (($2))) 2058 return 0; 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO"; then : 2064 2065else 2066 eval "$3=yes" 2067fi 2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2069fi 2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2071fi 2072eval ac_res=\$$3 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2074$as_echo "$ac_res" >&6; } 2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2076 2077} # ac_fn_c_check_type 2078cat >config.log <<_ACEOF 2079This file contains any messages produced by compilers while 2080running configure, to aid debugging if configure makes a mistake. 2081 2082It was created by audiofile $as_me 0.3.6, which was 2083generated by GNU Autoconf 2.69. Invocation command line was 2084 2085 $ $0 $@ 2086 2087_ACEOF 2088exec 5>>config.log 2089{ 2090cat <<_ASUNAME 2091## --------- ## 2092## Platform. ## 2093## --------- ## 2094 2095hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2096uname -m = `(uname -m) 2>/dev/null || echo unknown` 2097uname -r = `(uname -r) 2>/dev/null || echo unknown` 2098uname -s = `(uname -s) 2>/dev/null || echo unknown` 2099uname -v = `(uname -v) 2>/dev/null || echo unknown` 2100 2101/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2102/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2103 2104/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2105/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2106/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2107/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2108/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2109/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2110/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2111 2112_ASUNAME 2113 2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2115for as_dir in $PATH 2116do 2117 IFS=$as_save_IFS 2118 test -z "$as_dir" && as_dir=. 2119 $as_echo "PATH: $as_dir" 2120 done 2121IFS=$as_save_IFS 2122 2123} >&5 2124 2125cat >&5 <<_ACEOF 2126 2127 2128## ----------- ## 2129## Core tests. ## 2130## ----------- ## 2131 2132_ACEOF 2133 2134 2135# Keep a trace of the command line. 2136# Strip out --no-create and --no-recursion so they do not pile up. 2137# Strip out --silent because we don't want to record it for future runs. 2138# Also quote any args containing shell meta-characters. 2139# Make two passes to allow for proper duplicate-argument suppression. 2140ac_configure_args= 2141ac_configure_args0= 2142ac_configure_args1= 2143ac_must_keep_next=false 2144for ac_pass in 1 2 2145do 2146 for ac_arg 2147 do 2148 case $ac_arg in 2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2151 | -silent | --silent | --silen | --sile | --sil) 2152 continue ;; 2153 *\'*) 2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2155 esac 2156 case $ac_pass in 2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2158 2) 2159 as_fn_append ac_configure_args1 " '$ac_arg'" 2160 if test $ac_must_keep_next = true; then 2161 ac_must_keep_next=false # Got value, back to normal. 2162 else 2163 case $ac_arg in 2164 *=* | --config-cache | -C | -disable-* | --disable-* \ 2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2167 | -with-* | --with-* | -without-* | --without-* | --x) 2168 case "$ac_configure_args0 " in 2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2170 esac 2171 ;; 2172 -* ) ac_must_keep_next=true ;; 2173 esac 2174 fi 2175 as_fn_append ac_configure_args " '$ac_arg'" 2176 ;; 2177 esac 2178 done 2179done 2180{ ac_configure_args0=; unset ac_configure_args0;} 2181{ ac_configure_args1=; unset ac_configure_args1;} 2182 2183# When interrupted or exit'd, cleanup temporary files, and complete 2184# config.log. We remove comments because anyway the quotes in there 2185# would cause problems or look ugly. 2186# WARNING: Use '\'' to represent an apostrophe within the trap. 2187# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2188trap 'exit_status=$? 2189 # Save into config.log some information that might help in debugging. 2190 { 2191 echo 2192 2193 $as_echo "## ---------------- ## 2194## Cache variables. ## 2195## ---------------- ##" 2196 echo 2197 # The following way of writing the cache mishandles newlines in values, 2198( 2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2200 eval ac_val=\$$ac_var 2201 case $ac_val in #( 2202 *${as_nl}*) 2203 case $ac_var in #( 2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2205$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2206 esac 2207 case $ac_var in #( 2208 _ | IFS | as_nl) ;; #( 2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2210 *) { eval $ac_var=; unset $ac_var;} ;; 2211 esac ;; 2212 esac 2213 done 2214 (set) 2>&1 | 2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2216 *${as_nl}ac_space=\ *) 2217 sed -n \ 2218 "s/'\''/'\''\\\\'\'''\''/g; 2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2220 ;; #( 2221 *) 2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2223 ;; 2224 esac | 2225 sort 2226) 2227 echo 2228 2229 $as_echo "## ----------------- ## 2230## Output variables. ## 2231## ----------------- ##" 2232 echo 2233 for ac_var in $ac_subst_vars 2234 do 2235 eval ac_val=\$$ac_var 2236 case $ac_val in 2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2238 esac 2239 $as_echo "$ac_var='\''$ac_val'\''" 2240 done | sort 2241 echo 2242 2243 if test -n "$ac_subst_files"; then 2244 $as_echo "## ------------------- ## 2245## File substitutions. ## 2246## ------------------- ##" 2247 echo 2248 for ac_var in $ac_subst_files 2249 do 2250 eval ac_val=\$$ac_var 2251 case $ac_val in 2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2253 esac 2254 $as_echo "$ac_var='\''$ac_val'\''" 2255 done | sort 2256 echo 2257 fi 2258 2259 if test -s confdefs.h; then 2260 $as_echo "## ----------- ## 2261## confdefs.h. ## 2262## ----------- ##" 2263 echo 2264 cat confdefs.h 2265 echo 2266 fi 2267 test "$ac_signal" != 0 && 2268 $as_echo "$as_me: caught signal $ac_signal" 2269 $as_echo "$as_me: exit $exit_status" 2270 } >&5 2271 rm -f core *.core core.conftest.* && 2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2273 exit $exit_status 2274' 0 2275for ac_signal in 1 2 13 15; do 2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2277done 2278ac_signal=0 2279 2280# confdefs.h avoids OS command line length limits that DEFS can exceed. 2281rm -f -r conftest* confdefs.h 2282 2283$as_echo "/* confdefs.h */" > confdefs.h 2284 2285# Predefined preprocessor variables. 2286 2287cat >>confdefs.h <<_ACEOF 2288#define PACKAGE_NAME "$PACKAGE_NAME" 2289_ACEOF 2290 2291cat >>confdefs.h <<_ACEOF 2292#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2293_ACEOF 2294 2295cat >>confdefs.h <<_ACEOF 2296#define PACKAGE_VERSION "$PACKAGE_VERSION" 2297_ACEOF 2298 2299cat >>confdefs.h <<_ACEOF 2300#define PACKAGE_STRING "$PACKAGE_STRING" 2301_ACEOF 2302 2303cat >>confdefs.h <<_ACEOF 2304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2305_ACEOF 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_URL "$PACKAGE_URL" 2309_ACEOF 2310 2311 2312# Let the site file select an alternate cache file if it wants to. 2313# Prefer an explicitly selected file to automatically selected ones. 2314ac_site_file1=NONE 2315ac_site_file2=NONE 2316if test -n "$CONFIG_SITE"; then 2317 # We do not want a PATH search for config.site. 2318 case $CONFIG_SITE in #(( 2319 -*) ac_site_file1=./$CONFIG_SITE;; 2320 */*) ac_site_file1=$CONFIG_SITE;; 2321 *) ac_site_file1=./$CONFIG_SITE;; 2322 esac 2323elif test "x$prefix" != xNONE; then 2324 ac_site_file1=$prefix/share/config.site 2325 ac_site_file2=$prefix/etc/config.site 2326else 2327 ac_site_file1=$ac_default_prefix/share/config.site 2328 ac_site_file2=$ac_default_prefix/etc/config.site 2329fi 2330for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2331do 2332 test "x$ac_site_file" = xNONE && continue 2333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2335$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2336 sed 's/^/| /' "$ac_site_file" >&5 2337 . "$ac_site_file" \ 2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2340as_fn_error $? "failed to load site script $ac_site_file 2341See \`config.log' for more details" "$LINENO" 5; } 2342 fi 2343done 2344 2345if test -r "$cache_file"; then 2346 # Some versions of bash will fail to source /dev/null (special files 2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2350$as_echo "$as_me: loading cache $cache_file" >&6;} 2351 case $cache_file in 2352 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2353 *) . "./$cache_file";; 2354 esac 2355 fi 2356else 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2358$as_echo "$as_me: creating cache $cache_file" >&6;} 2359 >$cache_file 2360fi 2361 2362# Check that the precious variables saved in the cache have kept the same 2363# value. 2364ac_cache_corrupted=false 2365for ac_var in $ac_precious_vars; do 2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2367 eval ac_new_set=\$ac_env_${ac_var}_set 2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2369 eval ac_new_val=\$ac_env_${ac_var}_value 2370 case $ac_old_set,$ac_new_set in 2371 set,) 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2373$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2374 ac_cache_corrupted=: ;; 2375 ,set) 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2377$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2378 ac_cache_corrupted=: ;; 2379 ,);; 2380 *) 2381 if test "x$ac_old_val" != "x$ac_new_val"; then 2382 # differences in whitespace do not lead to failure. 2383 ac_old_val_w=`echo x $ac_old_val` 2384 ac_new_val_w=`echo x $ac_new_val` 2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2387$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2388 ac_cache_corrupted=: 2389 else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2391$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2392 eval $ac_var=\$ac_old_val 2393 fi 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2395$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2397$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2398 fi;; 2399 esac 2400 # Pass precious variables to config.status. 2401 if test "$ac_new_set" = set; then 2402 case $ac_new_val in 2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2404 *) ac_arg=$ac_var=$ac_new_val ;; 2405 esac 2406 case " $ac_configure_args " in 2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2409 esac 2410 fi 2411done 2412if $ac_cache_corrupted; then 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2416$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2418fi 2419## -------------------- ## 2420## Main body of script. ## 2421## -------------------- ## 2422 2423ac_ext=c 2424ac_cpp='$CPP $CPPFLAGS' 2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2427ac_compiler_gnu=$ac_cv_c_compiler_gnu 2428 2429 2430 2431 2432AUDIOFILE_VERSION_INFO=1:0:0 2433AUDIOFILE_VERSION=$PACKAGE_VERSION 2434 2435 2436 2437 2438am__api_version='1.11' 2439 2440ac_aux_dir= 2441for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2442 if test -f "$ac_dir/install-sh"; then 2443 ac_aux_dir=$ac_dir 2444 ac_install_sh="$ac_aux_dir/install-sh -c" 2445 break 2446 elif test -f "$ac_dir/install.sh"; then 2447 ac_aux_dir=$ac_dir 2448 ac_install_sh="$ac_aux_dir/install.sh -c" 2449 break 2450 elif test -f "$ac_dir/shtool"; then 2451 ac_aux_dir=$ac_dir 2452 ac_install_sh="$ac_aux_dir/shtool install -c" 2453 break 2454 fi 2455done 2456if test -z "$ac_aux_dir"; then 2457 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2458fi 2459 2460# These three variables are undocumented and unsupported, 2461# and are intended to be withdrawn in a future Autoconf release. 2462# They can cause serious problems if a builder's source tree is in a directory 2463# whose full name contains unusual characters. 2464ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2465ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2466ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2467 2468 2469# Find a good install program. We prefer a C program (faster), 2470# so one script is as good as another. But avoid the broken or 2471# incompatible versions: 2472# SysV /etc/install, /usr/sbin/install 2473# SunOS /usr/etc/install 2474# IRIX /sbin/install 2475# AIX /bin/install 2476# AmigaOS /C/install, which installs bootblocks on floppy discs 2477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2478# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2480# OS/2's system install, which has a completely different semantic 2481# ./install, which can be erroneously created by make from ./install.sh. 2482# Reject install programs that cannot install multiple files. 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2484$as_echo_n "checking for a BSD-compatible install... " >&6; } 2485if test -z "$INSTALL"; then 2486if ${ac_cv_path_install+:} false; then : 2487 $as_echo_n "(cached) " >&6 2488else 2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 # Account for people who put trailing slashes in PATH elements. 2495case $as_dir/ in #(( 2496 ./ | .// | /[cC]/* | \ 2497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2499 /usr/ucb/* ) ;; 2500 *) 2501 # OSF1 and SCO ODT 3.0 have their own names for install. 2502 # Don't use installbsd from OSF since it installs stuff as root 2503 # by default. 2504 for ac_prog in ginstall scoinst install; do 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2507 if test $ac_prog = install && 2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2509 # AIX install. It has an incompatible calling convention. 2510 : 2511 elif test $ac_prog = install && 2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2513 # program-specific install script used by HP pwplus--don't use. 2514 : 2515 else 2516 rm -rf conftest.one conftest.two conftest.dir 2517 echo one > conftest.one 2518 echo two > conftest.two 2519 mkdir conftest.dir 2520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2521 test -s conftest.one && test -s conftest.two && 2522 test -s conftest.dir/conftest.one && 2523 test -s conftest.dir/conftest.two 2524 then 2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2526 break 3 2527 fi 2528 fi 2529 fi 2530 done 2531 done 2532 ;; 2533esac 2534 2535 done 2536IFS=$as_save_IFS 2537 2538rm -rf conftest.one conftest.two conftest.dir 2539 2540fi 2541 if test "${ac_cv_path_install+set}" = set; then 2542 INSTALL=$ac_cv_path_install 2543 else 2544 # As a last resort, use the slow shell script. Don't cache a 2545 # value for INSTALL within a source directory, because that will 2546 # break other packages using the cache if that directory is 2547 # removed, or if the value is a relative name. 2548 INSTALL=$ac_install_sh 2549 fi 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2552$as_echo "$INSTALL" >&6; } 2553 2554# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2555# It thinks the first close brace ends the variable substitution. 2556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2557 2558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2559 2560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2561 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2563$as_echo_n "checking whether build environment is sane... " >&6; } 2564# Just in case 2565sleep 1 2566echo timestamp > conftest.file 2567# Reject unsafe characters in $srcdir or the absolute working directory 2568# name. Accept space and tab only in the latter. 2569am_lf=' 2570' 2571case `pwd` in 2572 *[\\\"\#\$\&\'\`$am_lf]*) 2573 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2574esac 2575case $srcdir in 2576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2577 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2578esac 2579 2580# Do `set' in a subshell so we don't clobber the current shell's 2581# arguments. Must try -L first in case configure is actually a 2582# symlink; some systems play weird games with the mod time of symlinks 2583# (eg FreeBSD returns the mod time of the symlink's containing 2584# directory). 2585if ( 2586 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2587 if test "$*" = "X"; then 2588 # -L didn't work. 2589 set X `ls -t "$srcdir/configure" conftest.file` 2590 fi 2591 rm -f conftest.file 2592 if test "$*" != "X $srcdir/configure conftest.file" \ 2593 && test "$*" != "X conftest.file $srcdir/configure"; then 2594 2595 # If neither matched, then we have a broken ls. This can happen 2596 # if, for instance, CONFIG_SHELL is bash and it inherits a 2597 # broken ls alias from the environment. This has actually 2598 # happened. Such a system could not be considered "sane". 2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2600alias in your environment" "$LINENO" 5 2601 fi 2602 2603 test "$2" = conftest.file 2604 ) 2605then 2606 # Ok. 2607 : 2608else 2609 as_fn_error $? "newly created file is older than distributed files! 2610Check your system clock" "$LINENO" 5 2611fi 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2613$as_echo "yes" >&6; } 2614test "$program_prefix" != NONE && 2615 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2616# Use a double $ so make ignores it. 2617test "$program_suffix" != NONE && 2618 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2619# Double any \ or $. 2620# By default was `s,x,x', remove it if useless. 2621ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2622program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2623 2624# expand $ac_aux_dir to an absolute path 2625am_aux_dir=`cd $ac_aux_dir && pwd` 2626 2627if test x"${MISSING+set}" != xset; then 2628 case $am_aux_dir in 2629 *\ * | *\ *) 2630 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2631 *) 2632 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2633 esac 2634fi 2635# Use eval to expand $SHELL 2636if eval "$MISSING --run true"; then 2637 am_missing_run="$MISSING --run " 2638else 2639 am_missing_run= 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2641$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2642fi 2643 2644if test x"${install_sh}" != xset; then 2645 case $am_aux_dir in 2646 *\ * | *\ *) 2647 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2648 *) 2649 install_sh="\${SHELL} $am_aux_dir/install-sh" 2650 esac 2651fi 2652 2653# Installed binaries are usually stripped using `strip' when the user 2654# run `make install-strip'. However `strip' might not be the right 2655# tool to use in cross-compilation environments, therefore Automake 2656# will honor the `STRIP' environment variable to overrule this program. 2657if test "$cross_compiling" != no; then 2658 if test -n "$ac_tool_prefix"; then 2659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2660set dummy ${ac_tool_prefix}strip; ac_word=$2 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2662$as_echo_n "checking for $ac_word... " >&6; } 2663if ${ac_cv_prog_STRIP+:} false; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 if test -n "$STRIP"; then 2667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2668else 2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2676 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2678 break 2 2679 fi 2680done 2681 done 2682IFS=$as_save_IFS 2683 2684fi 2685fi 2686STRIP=$ac_cv_prog_STRIP 2687if test -n "$STRIP"; then 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2689$as_echo "$STRIP" >&6; } 2690else 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2692$as_echo "no" >&6; } 2693fi 2694 2695 2696fi 2697if test -z "$ac_cv_prog_STRIP"; then 2698 ac_ct_STRIP=$STRIP 2699 # Extract the first word of "strip", so it can be a program name with args. 2700set dummy strip; ac_word=$2 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2702$as_echo_n "checking for $ac_word... " >&6; } 2703if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2704 $as_echo_n "(cached) " >&6 2705else 2706 if test -n "$ac_ct_STRIP"; then 2707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2716 ac_cv_prog_ac_ct_STRIP="strip" 2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721 done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2727if test -n "$ac_ct_STRIP"; then 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2729$as_echo "$ac_ct_STRIP" >&6; } 2730else 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2732$as_echo "no" >&6; } 2733fi 2734 2735 if test "x$ac_ct_STRIP" = x; then 2736 STRIP=":" 2737 else 2738 case $cross_compiling:$ac_tool_warned in 2739yes:) 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2742ac_tool_warned=yes ;; 2743esac 2744 STRIP=$ac_ct_STRIP 2745 fi 2746else 2747 STRIP="$ac_cv_prog_STRIP" 2748fi 2749 2750fi 2751INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2752 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2754$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2755if test -z "$MKDIR_P"; then 2756 if ${ac_cv_path_mkdir+:} false; then : 2757 $as_echo_n "(cached) " >&6 2758else 2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2761do 2762 IFS=$as_save_IFS 2763 test -z "$as_dir" && as_dir=. 2764 for ac_prog in mkdir gmkdir; do 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2767 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2768 'mkdir (GNU coreutils) '* | \ 2769 'mkdir (coreutils) '* | \ 2770 'mkdir (fileutils) '4.1*) 2771 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2772 break 3;; 2773 esac 2774 done 2775 done 2776 done 2777IFS=$as_save_IFS 2778 2779fi 2780 2781 test -d ./--version && rmdir ./--version 2782 if test "${ac_cv_path_mkdir+set}" = set; then 2783 MKDIR_P="$ac_cv_path_mkdir -p" 2784 else 2785 # As a last resort, use the slow shell script. Don't cache a 2786 # value for MKDIR_P within a source directory, because that will 2787 # break other packages using the cache if that directory is 2788 # removed, or if the value is a relative name. 2789 MKDIR_P="$ac_install_sh -d" 2790 fi 2791fi 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2793$as_echo "$MKDIR_P" >&6; } 2794 2795mkdir_p="$MKDIR_P" 2796case $mkdir_p in 2797 [\\/$]* | ?:[\\/]*) ;; 2798 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2799esac 2800 2801for ac_prog in gawk mawk nawk awk 2802do 2803 # Extract the first word of "$ac_prog", so it can be a program name with args. 2804set dummy $ac_prog; ac_word=$2 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806$as_echo_n "checking for $ac_word... " >&6; } 2807if ${ac_cv_prog_AWK+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 if test -n "$AWK"; then 2811 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2812else 2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH 2815do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2820 ac_cv_prog_AWK="$ac_prog" 2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824done 2825 done 2826IFS=$as_save_IFS 2827 2828fi 2829fi 2830AWK=$ac_cv_prog_AWK 2831if test -n "$AWK"; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2833$as_echo "$AWK" >&6; } 2834else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836$as_echo "no" >&6; } 2837fi 2838 2839 2840 test -n "$AWK" && break 2841done 2842 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2844$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2845set x ${MAKE-make} 2846ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2847if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 cat >conftest.make <<\_ACEOF 2851SHELL = /bin/sh 2852all: 2853 @echo '@@@%%%=$(MAKE)=@@@%%%' 2854_ACEOF 2855# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2856case `${MAKE-make} -f conftest.make 2>/dev/null` in 2857 *@@@%%%=?*=@@@%%%*) 2858 eval ac_cv_prog_make_${ac_make}_set=yes;; 2859 *) 2860 eval ac_cv_prog_make_${ac_make}_set=no;; 2861esac 2862rm -f conftest.make 2863fi 2864if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2866$as_echo "yes" >&6; } 2867 SET_MAKE= 2868else 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2870$as_echo "no" >&6; } 2871 SET_MAKE="MAKE=${MAKE-make}" 2872fi 2873 2874rm -rf .tst 2>/dev/null 2875mkdir .tst 2>/dev/null 2876if test -d .tst; then 2877 am__leading_dot=. 2878else 2879 am__leading_dot=_ 2880fi 2881rmdir .tst 2>/dev/null 2882 2883if test "`cd $srcdir && pwd`" != "`pwd`"; then 2884 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2885 # is not polluted with repeated "-I." 2886 am__isrc=' -I$(srcdir)' 2887 # test to see if srcdir already configured 2888 if test -f $srcdir/config.status; then 2889 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2890 fi 2891fi 2892 2893# test whether we have cygpath 2894if test -z "$CYGPATH_W"; then 2895 if (cygpath --version) >/dev/null 2>/dev/null; then 2896 CYGPATH_W='cygpath -w' 2897 else 2898 CYGPATH_W=echo 2899 fi 2900fi 2901 2902 2903# Define the identity of the package. 2904 PACKAGE=$PACKAGE_NAME 2905 VERSION=$PACKAGE_VERSION 2906 2907 2908cat >>confdefs.h <<_ACEOF 2909#define PACKAGE "$PACKAGE" 2910_ACEOF 2911 2912 2913cat >>confdefs.h <<_ACEOF 2914#define VERSION "$VERSION" 2915_ACEOF 2916 2917# Some tools Automake needs. 2918 2919ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2920 2921 2922AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2923 2924 2925AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2926 2927 2928AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2929 2930 2931MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2932 2933# We need awk for the "check" target. The system "awk" is bad on 2934# some platforms. 2935# Always define AMTAR for backward compatibility. Yes, it's still used 2936# in the wild :-( We should find a proper way to deprecate it ... 2937AMTAR='$${TAR-tar}' 2938 2939am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2940 2941 2942 2943 2944 2945ac_config_headers="$ac_config_headers config.h" 2946 2947 2948DEPDIR="${am__leading_dot}deps" 2949 2950ac_config_commands="$ac_config_commands depfiles" 2951 2952 2953am_make=${MAKE-make} 2954cat > confinc << 'END' 2955am__doit: 2956 @echo this is the am__doit target 2957.PHONY: am__doit 2958END 2959# If we don't find an include directive, just comment out the code. 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2961$as_echo_n "checking for style of include used by $am_make... " >&6; } 2962am__include="#" 2963am__quote= 2964_am_result=none 2965# First try GNU make style include. 2966echo "include confinc" > confmf 2967# Ignore all kinds of additional output from `make'. 2968case `$am_make -s -f confmf 2> /dev/null` in #( 2969*the\ am__doit\ target*) 2970 am__include=include 2971 am__quote= 2972 _am_result=GNU 2973 ;; 2974esac 2975# Now try BSD make style include. 2976if test "$am__include" = "#"; then 2977 echo '.include "confinc"' > confmf 2978 case `$am_make -s -f confmf 2> /dev/null` in #( 2979 *the\ am__doit\ target*) 2980 am__include=.include 2981 am__quote="\"" 2982 _am_result=BSD 2983 ;; 2984 esac 2985fi 2986 2987 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2989$as_echo "$_am_result" >&6; } 2990rm -f confinc confmf 2991 2992# Check whether --enable-dependency-tracking was given. 2993if test "${enable_dependency_tracking+set}" = set; then : 2994 enableval=$enable_dependency_tracking; 2995fi 2996 2997if test "x$enable_dependency_tracking" != xno; then 2998 am_depcomp="$ac_aux_dir/depcomp" 2999 AMDEPBACKSLASH='\' 3000 am__nodep='_no' 3001fi 3002 if test "x$enable_dependency_tracking" != xno; then 3003 AMDEP_TRUE= 3004 AMDEP_FALSE='#' 3005else 3006 AMDEP_TRUE='#' 3007 AMDEP_FALSE= 3008fi 3009 3010 3011ac_ext=c 3012ac_cpp='$CPP $CPPFLAGS' 3013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3015ac_compiler_gnu=$ac_cv_c_compiler_gnu 3016if test -n "$ac_tool_prefix"; then 3017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3018set dummy ${ac_tool_prefix}gcc; ac_word=$2 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3020$as_echo_n "checking for $ac_word... " >&6; } 3021if ${ac_cv_prog_CC+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if test -n "$CC"; then 3025 ac_cv_prog_CC="$CC" # Let the user override the test. 3026else 3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028for as_dir in $PATH 3029do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_exec_ext in '' $ac_executable_extensions; do 3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3034 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3036 break 2 3037 fi 3038done 3039 done 3040IFS=$as_save_IFS 3041 3042fi 3043fi 3044CC=$ac_cv_prog_CC 3045if test -n "$CC"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3047$as_echo "$CC" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054fi 3055if test -z "$ac_cv_prog_CC"; then 3056 ac_ct_CC=$CC 3057 # Extract the first word of "gcc", so it can be a program name with args. 3058set dummy gcc; ac_word=$2 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3060$as_echo_n "checking for $ac_word... " >&6; } 3061if ${ac_cv_prog_ac_ct_CC+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 if test -n "$ac_ct_CC"; then 3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3066else 3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3068for as_dir in $PATH 3069do 3070 IFS=$as_save_IFS 3071 test -z "$as_dir" && as_dir=. 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3074 ac_cv_prog_ac_ct_CC="gcc" 3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078done 3079 done 3080IFS=$as_save_IFS 3081 3082fi 3083fi 3084ac_ct_CC=$ac_cv_prog_ac_ct_CC 3085if test -n "$ac_ct_CC"; then 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3087$as_echo "$ac_ct_CC" >&6; } 3088else 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3090$as_echo "no" >&6; } 3091fi 3092 3093 if test "x$ac_ct_CC" = x; then 3094 CC="" 3095 else 3096 case $cross_compiling:$ac_tool_warned in 3097yes:) 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3100ac_tool_warned=yes ;; 3101esac 3102 CC=$ac_ct_CC 3103 fi 3104else 3105 CC="$ac_cv_prog_CC" 3106fi 3107 3108if test -z "$CC"; then 3109 if test -n "$ac_tool_prefix"; then 3110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3111set dummy ${ac_tool_prefix}cc; ac_word=$2 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3113$as_echo_n "checking for $ac_word... " >&6; } 3114if ${ac_cv_prog_CC+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 if test -n "$CC"; then 3118 ac_cv_prog_CC="$CC" # Let the user override the test. 3119else 3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121for as_dir in $PATH 3122do 3123 IFS=$as_save_IFS 3124 test -z "$as_dir" && as_dir=. 3125 for ac_exec_ext in '' $ac_executable_extensions; do 3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3127 ac_cv_prog_CC="${ac_tool_prefix}cc" 3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3129 break 2 3130 fi 3131done 3132 done 3133IFS=$as_save_IFS 3134 3135fi 3136fi 3137CC=$ac_cv_prog_CC 3138if test -n "$CC"; then 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3140$as_echo "$CC" >&6; } 3141else 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3143$as_echo "no" >&6; } 3144fi 3145 3146 3147 fi 3148fi 3149if test -z "$CC"; then 3150 # Extract the first word of "cc", so it can be a program name with args. 3151set dummy cc; ac_word=$2 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3153$as_echo_n "checking for $ac_word... " >&6; } 3154if ${ac_cv_prog_CC+:} false; then : 3155 $as_echo_n "(cached) " >&6 3156else 3157 if test -n "$CC"; then 3158 ac_cv_prog_CC="$CC" # Let the user override the test. 3159else 3160 ac_prog_rejected=no 3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3162for as_dir in $PATH 3163do 3164 IFS=$as_save_IFS 3165 test -z "$as_dir" && as_dir=. 3166 for ac_exec_ext in '' $ac_executable_extensions; do 3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3169 ac_prog_rejected=yes 3170 continue 3171 fi 3172 ac_cv_prog_CC="cc" 3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3174 break 2 3175 fi 3176done 3177 done 3178IFS=$as_save_IFS 3179 3180if test $ac_prog_rejected = yes; then 3181 # We found a bogon in the path, so make sure we never use it. 3182 set dummy $ac_cv_prog_CC 3183 shift 3184 if test $# != 0; then 3185 # We chose a different compiler from the bogus one. 3186 # However, it has the same basename, so the bogon will be chosen 3187 # first if we set CC to just the basename; use the full file name. 3188 shift 3189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3190 fi 3191fi 3192fi 3193fi 3194CC=$ac_cv_prog_CC 3195if test -n "$CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3197$as_echo "$CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 3204fi 3205if test -z "$CC"; then 3206 if test -n "$ac_tool_prefix"; then 3207 for ac_prog in cl.exe 3208 do 3209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3210set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3212$as_echo_n "checking for $ac_word... " >&6; } 3213if ${ac_cv_prog_CC+:} false; then : 3214 $as_echo_n "(cached) " >&6 3215else 3216 if test -n "$CC"; then 3217 ac_cv_prog_CC="$CC" # Let the user override the test. 3218else 3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220for as_dir in $PATH 3221do 3222 IFS=$as_save_IFS 3223 test -z "$as_dir" && as_dir=. 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239$as_echo "$CC" >&6; } 3240else 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242$as_echo "no" >&6; } 3243fi 3244 3245 3246 test -n "$CC" && break 3247 done 3248fi 3249if test -z "$CC"; then 3250 ac_ct_CC=$CC 3251 for ac_prog in cl.exe 3252do 3253 # Extract the first word of "$ac_prog", so it can be a program name with args. 3254set dummy $ac_prog; ac_word=$2 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3256$as_echo_n "checking for $ac_word... " >&6; } 3257if ${ac_cv_prog_ac_ct_CC+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if test -n "$ac_ct_CC"; then 3261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3262else 3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3264for as_dir in $PATH 3265do 3266 IFS=$as_save_IFS 3267 test -z "$as_dir" && as_dir=. 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3270 ac_cv_prog_ac_ct_CC="$ac_prog" 3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3272 break 2 3273 fi 3274done 3275 done 3276IFS=$as_save_IFS 3277 3278fi 3279fi 3280ac_ct_CC=$ac_cv_prog_ac_ct_CC 3281if test -n "$ac_ct_CC"; then 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3283$as_echo "$ac_ct_CC" >&6; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287fi 3288 3289 3290 test -n "$ac_ct_CC" && break 3291done 3292 3293 if test "x$ac_ct_CC" = x; then 3294 CC="" 3295 else 3296 case $cross_compiling:$ac_tool_warned in 3297yes:) 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3300ac_tool_warned=yes ;; 3301esac 3302 CC=$ac_ct_CC 3303 fi 3304fi 3305 3306fi 3307 3308 3309test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3311as_fn_error $? "no acceptable C compiler found in \$PATH 3312See \`config.log' for more details" "$LINENO" 5; } 3313 3314# Provide some information about the compiler. 3315$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3316set X $ac_compile 3317ac_compiler=$2 3318for ac_option in --version -v -V -qversion; do 3319 { { ac_try="$ac_compiler $ac_option >&5" 3320case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323esac 3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3325$as_echo "$ac_try_echo"; } >&5 3326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3327 ac_status=$? 3328 if test -s conftest.err; then 3329 sed '10a\ 3330... rest of stderr output deleted ... 3331 10q' conftest.err >conftest.er1 3332 cat conftest.er1 >&5 3333 fi 3334 rm -f conftest.er1 conftest.err 3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336 test $ac_status = 0; } 3337done 3338 3339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341 3342int 3343main () 3344{ 3345 3346 ; 3347 return 0; 3348} 3349_ACEOF 3350ac_clean_files_save=$ac_clean_files 3351ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3352# Try to create an executable without -o first, disregard a.out. 3353# It will help us diagnose broken compilers, and finding out an intuition 3354# of exeext. 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3356$as_echo_n "checking whether the C compiler works... " >&6; } 3357ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3358 3359# The possible output files: 3360ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3361 3362ac_rmfiles= 3363for ac_file in $ac_files 3364do 3365 case $ac_file in 3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3367 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3368 esac 3369done 3370rm -f $ac_rmfiles 3371 3372if { { ac_try="$ac_link_default" 3373case "(($ac_try" in 3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3375 *) ac_try_echo=$ac_try;; 3376esac 3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3378$as_echo "$ac_try_echo"; } >&5 3379 (eval "$ac_link_default") 2>&5 3380 ac_status=$? 3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3382 test $ac_status = 0; }; then : 3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3384# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3385# in a Makefile. We should not override ac_cv_exeext if it was cached, 3386# so that the user can short-circuit this test for compilers unknown to 3387# Autoconf. 3388for ac_file in $ac_files '' 3389do 3390 test -f "$ac_file" || continue 3391 case $ac_file in 3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3393 ;; 3394 [ab].out ) 3395 # We found the default executable, but exeext='' is most 3396 # certainly right. 3397 break;; 3398 *.* ) 3399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3400 then :; else 3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3402 fi 3403 # We set ac_cv_exeext here because the later test for it is not 3404 # safe: cross compilers may not add the suffix if given an `-o' 3405 # argument, so we may need to know it at that point already. 3406 # Even if this section looks crufty: it has the advantage of 3407 # actually working. 3408 break;; 3409 * ) 3410 break;; 3411 esac 3412done 3413test "$ac_cv_exeext" = no && ac_cv_exeext= 3414 3415else 3416 ac_file='' 3417fi 3418if test -z "$ac_file"; then : 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420$as_echo "no" >&6; } 3421$as_echo "$as_me: failed program was:" >&5 3422sed 's/^/| /' conftest.$ac_ext >&5 3423 3424{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3426as_fn_error 77 "C compiler cannot create executables 3427See \`config.log' for more details" "$LINENO" 5; } 3428else 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3430$as_echo "yes" >&6; } 3431fi 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3433$as_echo_n "checking for C compiler default output file name... " >&6; } 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3435$as_echo "$ac_file" >&6; } 3436ac_exeext=$ac_cv_exeext 3437 3438rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3439ac_clean_files=$ac_clean_files_save 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3441$as_echo_n "checking for suffix of executables... " >&6; } 3442if { { ac_try="$ac_link" 3443case "(($ac_try" in 3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3445 *) ac_try_echo=$ac_try;; 3446esac 3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3448$as_echo "$ac_try_echo"; } >&5 3449 (eval "$ac_link") 2>&5 3450 ac_status=$? 3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3452 test $ac_status = 0; }; then : 3453 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3454# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3455# work properly (i.e., refer to `conftest.exe'), while it won't with 3456# `rm'. 3457for ac_file in conftest.exe conftest conftest.*; do 3458 test -f "$ac_file" || continue 3459 case $ac_file in 3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3462 break;; 3463 * ) break;; 3464 esac 3465done 3466else 3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3469as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3470See \`config.log' for more details" "$LINENO" 5; } 3471fi 3472rm -f conftest conftest$ac_cv_exeext 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3474$as_echo "$ac_cv_exeext" >&6; } 3475 3476rm -f conftest.$ac_ext 3477EXEEXT=$ac_cv_exeext 3478ac_exeext=$EXEEXT 3479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3480/* end confdefs.h. */ 3481#include <stdio.h> 3482int 3483main () 3484{ 3485FILE *f = fopen ("conftest.out", "w"); 3486 return ferror (f) || fclose (f) != 0; 3487 3488 ; 3489 return 0; 3490} 3491_ACEOF 3492ac_clean_files="$ac_clean_files conftest.out" 3493# Check that the compiler produces executables we can run. If not, either 3494# the compiler is broken, or we cross compile. 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3496$as_echo_n "checking whether we are cross compiling... " >&6; } 3497if test "$cross_compiling" != yes; then 3498 { { ac_try="$ac_link" 3499case "(($ac_try" in 3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3501 *) ac_try_echo=$ac_try;; 3502esac 3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3504$as_echo "$ac_try_echo"; } >&5 3505 (eval "$ac_link") 2>&5 3506 ac_status=$? 3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3508 test $ac_status = 0; } 3509 if { ac_try='./conftest$ac_cv_exeext' 3510 { { case "(($ac_try" in 3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3512 *) ac_try_echo=$ac_try;; 3513esac 3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3515$as_echo "$ac_try_echo"; } >&5 3516 (eval "$ac_try") 2>&5 3517 ac_status=$? 3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3519 test $ac_status = 0; }; }; then 3520 cross_compiling=no 3521 else 3522 if test "$cross_compiling" = maybe; then 3523 cross_compiling=yes 3524 else 3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3527as_fn_error $? "cannot run C compiled programs. 3528If you meant to cross compile, use \`--host'. 3529See \`config.log' for more details" "$LINENO" 5; } 3530 fi 3531 fi 3532fi 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3534$as_echo "$cross_compiling" >&6; } 3535 3536rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3537ac_clean_files=$ac_clean_files_save 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3539$as_echo_n "checking for suffix of object files... " >&6; } 3540if ${ac_cv_objext+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545 3546int 3547main () 3548{ 3549 3550 ; 3551 return 0; 3552} 3553_ACEOF 3554rm -f conftest.o conftest.obj 3555if { { ac_try="$ac_compile" 3556case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3561$as_echo "$ac_try_echo"; } >&5 3562 (eval "$ac_compile") 2>&5 3563 ac_status=$? 3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3565 test $ac_status = 0; }; then : 3566 for ac_file in conftest.o conftest.obj conftest.*; do 3567 test -f "$ac_file" || continue; 3568 case $ac_file in 3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3571 break;; 3572 esac 3573done 3574else 3575 $as_echo "$as_me: failed program was:" >&5 3576sed 's/^/| /' conftest.$ac_ext >&5 3577 3578{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3580as_fn_error $? "cannot compute suffix of object files: cannot compile 3581See \`config.log' for more details" "$LINENO" 5; } 3582fi 3583rm -f conftest.$ac_cv_objext conftest.$ac_ext 3584fi 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3586$as_echo "$ac_cv_objext" >&6; } 3587OBJEXT=$ac_cv_objext 3588ac_objext=$OBJEXT 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3590$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3591if ${ac_cv_c_compiler_gnu+:} false; then : 3592 $as_echo_n "(cached) " >&6 3593else 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600#ifndef __GNUC__ 3601 choke me 3602#endif 3603 3604 ; 3605 return 0; 3606} 3607_ACEOF 3608if ac_fn_c_try_compile "$LINENO"; then : 3609 ac_compiler_gnu=yes 3610else 3611 ac_compiler_gnu=no 3612fi 3613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3614ac_cv_c_compiler_gnu=$ac_compiler_gnu 3615 3616fi 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3618$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3619if test $ac_compiler_gnu = yes; then 3620 GCC=yes 3621else 3622 GCC= 3623fi 3624ac_test_CFLAGS=${CFLAGS+set} 3625ac_save_CFLAGS=$CFLAGS 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3627$as_echo_n "checking whether $CC accepts -g... " >&6; } 3628if ${ac_cv_prog_cc_g+:} false; then : 3629 $as_echo_n "(cached) " >&6 3630else 3631 ac_save_c_werror_flag=$ac_c_werror_flag 3632 ac_c_werror_flag=yes 3633 ac_cv_prog_cc_g=no 3634 CFLAGS="-g" 3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3636/* end confdefs.h. */ 3637 3638int 3639main () 3640{ 3641 3642 ; 3643 return 0; 3644} 3645_ACEOF 3646if ac_fn_c_try_compile "$LINENO"; then : 3647 ac_cv_prog_cc_g=yes 3648else 3649 CFLAGS="" 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652 3653int 3654main () 3655{ 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661if ac_fn_c_try_compile "$LINENO"; then : 3662 3663else 3664 ac_c_werror_flag=$ac_save_c_werror_flag 3665 CFLAGS="-g" 3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668 3669int 3670main () 3671{ 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677if ac_fn_c_try_compile "$LINENO"; then : 3678 ac_cv_prog_cc_g=yes 3679fi 3680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3681fi 3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3683fi 3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3685 ac_c_werror_flag=$ac_save_c_werror_flag 3686fi 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3688$as_echo "$ac_cv_prog_cc_g" >&6; } 3689if test "$ac_test_CFLAGS" = set; then 3690 CFLAGS=$ac_save_CFLAGS 3691elif test $ac_cv_prog_cc_g = yes; then 3692 if test "$GCC" = yes; then 3693 CFLAGS="-g -O2" 3694 else 3695 CFLAGS="-g" 3696 fi 3697else 3698 if test "$GCC" = yes; then 3699 CFLAGS="-O2" 3700 else 3701 CFLAGS= 3702 fi 3703fi 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3705$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3706if ${ac_cv_prog_cc_c89+:} false; then : 3707 $as_echo_n "(cached) " >&6 3708else 3709 ac_cv_prog_cc_c89=no 3710ac_save_CC=$CC 3711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713#include <stdarg.h> 3714#include <stdio.h> 3715struct stat; 3716/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3717struct buf { int x; }; 3718FILE * (*rcsopen) (struct buf *, struct stat *, int); 3719static char *e (p, i) 3720 char **p; 3721 int i; 3722{ 3723 return p[i]; 3724} 3725static char *f (char * (*g) (char **, int), char **p, ...) 3726{ 3727 char *s; 3728 va_list v; 3729 va_start (v,p); 3730 s = g (p, va_arg (v,int)); 3731 va_end (v); 3732 return s; 3733} 3734 3735/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3736 function prototypes and stuff, but not '\xHH' hex character constants. 3737 These don't provoke an error unfortunately, instead are silently treated 3738 as 'x'. The following induces an error, until -std is added to get 3739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3740 array size at least. It's necessary to write '\x00'==0 to get something 3741 that's true only with -std. */ 3742int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3743 3744/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3745 inside strings and character constants. */ 3746#define FOO(x) 'x' 3747int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3748 3749int test (int i, double x); 3750struct s1 {int (*f) (int a);}; 3751struct s2 {int (*f) (double a);}; 3752int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3753int argc; 3754char **argv; 3755int 3756main () 3757{ 3758return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3759 ; 3760 return 0; 3761} 3762_ACEOF 3763for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3765do 3766 CC="$ac_save_CC $ac_arg" 3767 if ac_fn_c_try_compile "$LINENO"; then : 3768 ac_cv_prog_cc_c89=$ac_arg 3769fi 3770rm -f core conftest.err conftest.$ac_objext 3771 test "x$ac_cv_prog_cc_c89" != "xno" && break 3772done 3773rm -f conftest.$ac_ext 3774CC=$ac_save_CC 3775 3776fi 3777# AC_CACHE_VAL 3778case "x$ac_cv_prog_cc_c89" in 3779 x) 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3781$as_echo "none needed" >&6; } ;; 3782 xno) 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3784$as_echo "unsupported" >&6; } ;; 3785 *) 3786 CC="$CC $ac_cv_prog_cc_c89" 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3788$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3789esac 3790if test "x$ac_cv_prog_cc_c89" != xno; then : 3791 3792fi 3793 3794ac_ext=c 3795ac_cpp='$CPP $CPPFLAGS' 3796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3798ac_compiler_gnu=$ac_cv_c_compiler_gnu 3799 3800depcc="$CC" am_compiler_list= 3801 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3803$as_echo_n "checking dependency style of $depcc... " >&6; } 3804if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3805 $as_echo_n "(cached) " >&6 3806else 3807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3808 # We make a subdir and do the tests there. Otherwise we can end up 3809 # making bogus files that we don't know about and never remove. For 3810 # instance it was reported that on HP-UX the gcc test will end up 3811 # making a dummy file named `D' -- because `-MD' means `put the output 3812 # in D'. 3813 rm -rf conftest.dir 3814 mkdir conftest.dir 3815 # Copy depcomp to subdir because otherwise we won't find it if we're 3816 # using a relative directory. 3817 cp "$am_depcomp" conftest.dir 3818 cd conftest.dir 3819 # We will build objects and dependencies in a subdirectory because 3820 # it helps to detect inapplicable dependency modes. For instance 3821 # both Tru64's cc and ICC support -MD to output dependencies as a 3822 # side effect of compilation, but ICC will put the dependencies in 3823 # the current directory while Tru64 will put them in the object 3824 # directory. 3825 mkdir sub 3826 3827 am_cv_CC_dependencies_compiler_type=none 3828 if test "$am_compiler_list" = ""; then 3829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3830 fi 3831 am__universal=false 3832 case " $depcc " in #( 3833 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3834 esac 3835 3836 for depmode in $am_compiler_list; do 3837 # Setup a source with many dependencies, because some compilers 3838 # like to wrap large dependency lists on column 80 (with \), and 3839 # we should not choose a depcomp mode which is confused by this. 3840 # 3841 # We need to recreate these files for each test, as the compiler may 3842 # overwrite some of them when testing with obscure command lines. 3843 # This happens at least with the AIX C compiler. 3844 : > sub/conftest.c 3845 for i in 1 2 3 4 5 6; do 3846 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3847 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3848 # Solaris 8's {/usr,}/bin/sh. 3849 touch sub/conftst$i.h 3850 done 3851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3852 3853 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3854 # mode. It turns out that the SunPro C++ compiler does not properly 3855 # handle `-M -o', and we need to detect this. Also, some Intel 3856 # versions had trouble with output in subdirs 3857 am__obj=sub/conftest.${OBJEXT-o} 3858 am__minus_obj="-o $am__obj" 3859 case $depmode in 3860 gcc) 3861 # This depmode causes a compiler race in universal mode. 3862 test "$am__universal" = false || continue 3863 ;; 3864 nosideeffect) 3865 # after this tag, mechanisms are not by side-effect, so they'll 3866 # only be used when explicitly requested 3867 if test "x$enable_dependency_tracking" = xyes; then 3868 continue 3869 else 3870 break 3871 fi 3872 ;; 3873 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3874 # This compiler won't grok `-c -o', but also, the minuso test has 3875 # not run yet. These depmodes are late enough in the game, and 3876 # so weak that their functioning should not be impacted. 3877 am__obj=conftest.${OBJEXT-o} 3878 am__minus_obj= 3879 ;; 3880 none) break ;; 3881 esac 3882 if depmode=$depmode \ 3883 source=sub/conftest.c object=$am__obj \ 3884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3886 >/dev/null 2>conftest.err && 3887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3891 # icc doesn't choke on unknown options, it will just issue warnings 3892 # or remarks (even with -Werror). So we grep stderr for any message 3893 # that says an option was ignored or not supported. 3894 # When given -MP, icc 7.0 and 7.1 complain thusly: 3895 # icc: Command line warning: ignoring option '-M'; no argument required 3896 # The diagnosis changed in icc 8.0: 3897 # icc: Command line remark: option '-MP' not supported 3898 if (grep 'ignoring option' conftest.err || 3899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3900 am_cv_CC_dependencies_compiler_type=$depmode 3901 break 3902 fi 3903 fi 3904 done 3905 3906 cd .. 3907 rm -rf conftest.dir 3908else 3909 am_cv_CC_dependencies_compiler_type=none 3910fi 3911 3912fi 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3914$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3915CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3916 3917 if 3918 test "x$enable_dependency_tracking" != xno \ 3919 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3920 am__fastdepCC_TRUE= 3921 am__fastdepCC_FALSE='#' 3922else 3923 am__fastdepCC_TRUE='#' 3924 am__fastdepCC_FALSE= 3925fi 3926 3927 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3929$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3930if ${ac_cv_prog_cc_c99+:} false; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 ac_cv_prog_cc_c99=no 3934ac_save_CC=$CC 3935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937#include <stdarg.h> 3938#include <stdbool.h> 3939#include <stdlib.h> 3940#include <wchar.h> 3941#include <stdio.h> 3942 3943// Check varargs macros. These examples are taken from C99 6.10.3.5. 3944#define debug(...) fprintf (stderr, __VA_ARGS__) 3945#define showlist(...) puts (#__VA_ARGS__) 3946#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3947static void 3948test_varargs_macros (void) 3949{ 3950 int x = 1234; 3951 int y = 5678; 3952 debug ("Flag"); 3953 debug ("X = %d\n", x); 3954 showlist (The first, second, and third items.); 3955 report (x>y, "x is %d but y is %d", x, y); 3956} 3957 3958// Check long long types. 3959#define BIG64 18446744073709551615ull 3960#define BIG32 4294967295ul 3961#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3962#if !BIG_OK 3963 your preprocessor is broken; 3964#endif 3965#if BIG_OK 3966#else 3967 your preprocessor is broken; 3968#endif 3969static long long int bignum = -9223372036854775807LL; 3970static unsigned long long int ubignum = BIG64; 3971 3972struct incomplete_array 3973{ 3974 int datasize; 3975 double data[]; 3976}; 3977 3978struct named_init { 3979 int number; 3980 const wchar_t *name; 3981 double average; 3982}; 3983 3984typedef const char *ccp; 3985 3986static inline int 3987test_restrict (ccp restrict text) 3988{ 3989 // See if C++-style comments work. 3990 // Iterate through items via the restricted pointer. 3991 // Also check for declarations in for loops. 3992 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3993 continue; 3994 return 0; 3995} 3996 3997// Check varargs and va_copy. 3998static void 3999test_varargs (const char *format, ...) 4000{ 4001 va_list args; 4002 va_start (args, format); 4003 va_list args_copy; 4004 va_copy (args_copy, args); 4005 4006 const char *str; 4007 int number; 4008 float fnumber; 4009 4010 while (*format) 4011 { 4012 switch (*format++) 4013 { 4014 case 's': // string 4015 str = va_arg (args_copy, const char *); 4016 break; 4017 case 'd': // int 4018 number = va_arg (args_copy, int); 4019 break; 4020 case 'f': // float 4021 fnumber = va_arg (args_copy, double); 4022 break; 4023 default: 4024 break; 4025 } 4026 } 4027 va_end (args_copy); 4028 va_end (args); 4029} 4030 4031int 4032main () 4033{ 4034 4035 // Check bool. 4036 _Bool success = false; 4037 4038 // Check restrict. 4039 if (test_restrict ("String literal") == 0) 4040 success = true; 4041 char *restrict newvar = "Another string"; 4042 4043 // Check varargs. 4044 test_varargs ("s, d' f .", "string", 65, 34.234); 4045 test_varargs_macros (); 4046 4047 // Check flexible array members. 4048 struct incomplete_array *ia = 4049 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4050 ia->datasize = 10; 4051 for (int i = 0; i < ia->datasize; ++i) 4052 ia->data[i] = i * 1.234; 4053 4054 // Check named initializers. 4055 struct named_init ni = { 4056 .number = 34, 4057 .name = L"Test wide string", 4058 .average = 543.34343, 4059 }; 4060 4061 ni.number = 58; 4062 4063 int dynamic_array[ni.number]; 4064 dynamic_array[ni.number - 1] = 543; 4065 4066 // work around unused variable warnings 4067 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4068 || dynamic_array[ni.number - 1] != 543); 4069 4070 ; 4071 return 0; 4072} 4073_ACEOF 4074for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4075do 4076 CC="$ac_save_CC $ac_arg" 4077 if ac_fn_c_try_compile "$LINENO"; then : 4078 ac_cv_prog_cc_c99=$ac_arg 4079fi 4080rm -f core conftest.err conftest.$ac_objext 4081 test "x$ac_cv_prog_cc_c99" != "xno" && break 4082done 4083rm -f conftest.$ac_ext 4084CC=$ac_save_CC 4085 4086fi 4087# AC_CACHE_VAL 4088case "x$ac_cv_prog_cc_c99" in 4089 x) 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4091$as_echo "none needed" >&6; } ;; 4092 xno) 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4094$as_echo "unsupported" >&6; } ;; 4095 *) 4096 CC="$CC $ac_cv_prog_cc_c99" 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4098$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4099esac 4100if test "x$ac_cv_prog_cc_c99" != xno; then : 4101 4102fi 4103 4104 4105ac_ext=cpp 4106ac_cpp='$CXXCPP $CPPFLAGS' 4107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4110if test -z "$CXX"; then 4111 if test -n "$CCC"; then 4112 CXX=$CCC 4113 else 4114 if test -n "$ac_tool_prefix"; then 4115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4116 do 4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4118set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4120$as_echo_n "checking for $ac_word... " >&6; } 4121if ${ac_cv_prog_CXX+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 if test -n "$CXX"; then 4125 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4126else 4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4128for as_dir in $PATH 4129do 4130 IFS=$as_save_IFS 4131 test -z "$as_dir" && as_dir=. 4132 for ac_exec_ext in '' $ac_executable_extensions; do 4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4136 break 2 4137 fi 4138done 4139 done 4140IFS=$as_save_IFS 4141 4142fi 4143fi 4144CXX=$ac_cv_prog_CXX 4145if test -n "$CXX"; then 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4147$as_echo "$CXX" >&6; } 4148else 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4150$as_echo "no" >&6; } 4151fi 4152 4153 4154 test -n "$CXX" && break 4155 done 4156fi 4157if test -z "$CXX"; then 4158 ac_ct_CXX=$CXX 4159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4160do 4161 # Extract the first word of "$ac_prog", so it can be a program name with args. 4162set dummy $ac_prog; ac_word=$2 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4164$as_echo_n "checking for $ac_word... " >&6; } 4165if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 if test -n "$ac_ct_CXX"; then 4169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4170else 4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4172for as_dir in $PATH 4173do 4174 IFS=$as_save_IFS 4175 test -z "$as_dir" && as_dir=. 4176 for ac_exec_ext in '' $ac_executable_extensions; do 4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4178 ac_cv_prog_ac_ct_CXX="$ac_prog" 4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4180 break 2 4181 fi 4182done 4183 done 4184IFS=$as_save_IFS 4185 4186fi 4187fi 4188ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4189if test -n "$ac_ct_CXX"; then 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4191$as_echo "$ac_ct_CXX" >&6; } 4192else 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4194$as_echo "no" >&6; } 4195fi 4196 4197 4198 test -n "$ac_ct_CXX" && break 4199done 4200 4201 if test "x$ac_ct_CXX" = x; then 4202 CXX="g++" 4203 else 4204 case $cross_compiling:$ac_tool_warned in 4205yes:) 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4208ac_tool_warned=yes ;; 4209esac 4210 CXX=$ac_ct_CXX 4211 fi 4212fi 4213 4214 fi 4215fi 4216# Provide some information about the compiler. 4217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4218set X $ac_compile 4219ac_compiler=$2 4220for ac_option in --version -v -V -qversion; do 4221 { { ac_try="$ac_compiler $ac_option >&5" 4222case "(($ac_try" in 4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4224 *) ac_try_echo=$ac_try;; 4225esac 4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4227$as_echo "$ac_try_echo"; } >&5 4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4229 ac_status=$? 4230 if test -s conftest.err; then 4231 sed '10a\ 4232... rest of stderr output deleted ... 4233 10q' conftest.err >conftest.er1 4234 cat conftest.er1 >&5 4235 fi 4236 rm -f conftest.er1 conftest.err 4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4238 test $ac_status = 0; } 4239done 4240 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4242$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4243if ${ac_cv_cxx_compiler_gnu+:} false; then : 4244 $as_echo_n "(cached) " >&6 4245else 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248 4249int 4250main () 4251{ 4252#ifndef __GNUC__ 4253 choke me 4254#endif 4255 4256 ; 4257 return 0; 4258} 4259_ACEOF 4260if ac_fn_cxx_try_compile "$LINENO"; then : 4261 ac_compiler_gnu=yes 4262else 4263 ac_compiler_gnu=no 4264fi 4265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4266ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4267 4268fi 4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4270$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4271if test $ac_compiler_gnu = yes; then 4272 GXX=yes 4273else 4274 GXX= 4275fi 4276ac_test_CXXFLAGS=${CXXFLAGS+set} 4277ac_save_CXXFLAGS=$CXXFLAGS 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4279$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4280if ${ac_cv_prog_cxx_g+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4284 ac_cxx_werror_flag=yes 4285 ac_cv_prog_cxx_g=no 4286 CXXFLAGS="-g" 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288/* end confdefs.h. */ 4289 4290int 4291main () 4292{ 4293 4294 ; 4295 return 0; 4296} 4297_ACEOF 4298if ac_fn_cxx_try_compile "$LINENO"; then : 4299 ac_cv_prog_cxx_g=yes 4300else 4301 CXXFLAGS="" 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304 4305int 4306main () 4307{ 4308 4309 ; 4310 return 0; 4311} 4312_ACEOF 4313if ac_fn_cxx_try_compile "$LINENO"; then : 4314 4315else 4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4317 CXXFLAGS="-g" 4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4319/* end confdefs.h. */ 4320 4321int 4322main () 4323{ 4324 4325 ; 4326 return 0; 4327} 4328_ACEOF 4329if ac_fn_cxx_try_compile "$LINENO"; then : 4330 ac_cv_prog_cxx_g=yes 4331fi 4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4333fi 4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4335fi 4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4338fi 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4340$as_echo "$ac_cv_prog_cxx_g" >&6; } 4341if test "$ac_test_CXXFLAGS" = set; then 4342 CXXFLAGS=$ac_save_CXXFLAGS 4343elif test $ac_cv_prog_cxx_g = yes; then 4344 if test "$GXX" = yes; then 4345 CXXFLAGS="-g -O2" 4346 else 4347 CXXFLAGS="-g" 4348 fi 4349else 4350 if test "$GXX" = yes; then 4351 CXXFLAGS="-O2" 4352 else 4353 CXXFLAGS= 4354 fi 4355fi 4356ac_ext=c 4357ac_cpp='$CPP $CPPFLAGS' 4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4360ac_compiler_gnu=$ac_cv_c_compiler_gnu 4361 4362depcc="$CXX" am_compiler_list= 4363 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4365$as_echo_n "checking dependency style of $depcc... " >&6; } 4366if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4367 $as_echo_n "(cached) " >&6 4368else 4369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4370 # We make a subdir and do the tests there. Otherwise we can end up 4371 # making bogus files that we don't know about and never remove. For 4372 # instance it was reported that on HP-UX the gcc test will end up 4373 # making a dummy file named `D' -- because `-MD' means `put the output 4374 # in D'. 4375 rm -rf conftest.dir 4376 mkdir conftest.dir 4377 # Copy depcomp to subdir because otherwise we won't find it if we're 4378 # using a relative directory. 4379 cp "$am_depcomp" conftest.dir 4380 cd conftest.dir 4381 # We will build objects and dependencies in a subdirectory because 4382 # it helps to detect inapplicable dependency modes. For instance 4383 # both Tru64's cc and ICC support -MD to output dependencies as a 4384 # side effect of compilation, but ICC will put the dependencies in 4385 # the current directory while Tru64 will put them in the object 4386 # directory. 4387 mkdir sub 4388 4389 am_cv_CXX_dependencies_compiler_type=none 4390 if test "$am_compiler_list" = ""; then 4391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4392 fi 4393 am__universal=false 4394 case " $depcc " in #( 4395 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4396 esac 4397 4398 for depmode in $am_compiler_list; do 4399 # Setup a source with many dependencies, because some compilers 4400 # like to wrap large dependency lists on column 80 (with \), and 4401 # we should not choose a depcomp mode which is confused by this. 4402 # 4403 # We need to recreate these files for each test, as the compiler may 4404 # overwrite some of them when testing with obscure command lines. 4405 # This happens at least with the AIX C compiler. 4406 : > sub/conftest.c 4407 for i in 1 2 3 4 5 6; do 4408 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4409 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4410 # Solaris 8's {/usr,}/bin/sh. 4411 touch sub/conftst$i.h 4412 done 4413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4414 4415 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4416 # mode. It turns out that the SunPro C++ compiler does not properly 4417 # handle `-M -o', and we need to detect this. Also, some Intel 4418 # versions had trouble with output in subdirs 4419 am__obj=sub/conftest.${OBJEXT-o} 4420 am__minus_obj="-o $am__obj" 4421 case $depmode in 4422 gcc) 4423 # This depmode causes a compiler race in universal mode. 4424 test "$am__universal" = false || continue 4425 ;; 4426 nosideeffect) 4427 # after this tag, mechanisms are not by side-effect, so they'll 4428 # only be used when explicitly requested 4429 if test "x$enable_dependency_tracking" = xyes; then 4430 continue 4431 else 4432 break 4433 fi 4434 ;; 4435 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4436 # This compiler won't grok `-c -o', but also, the minuso test has 4437 # not run yet. These depmodes are late enough in the game, and 4438 # so weak that their functioning should not be impacted. 4439 am__obj=conftest.${OBJEXT-o} 4440 am__minus_obj= 4441 ;; 4442 none) break ;; 4443 esac 4444 if depmode=$depmode \ 4445 source=sub/conftest.c object=$am__obj \ 4446 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4447 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4448 >/dev/null 2>conftest.err && 4449 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4451 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4453 # icc doesn't choke on unknown options, it will just issue warnings 4454 # or remarks (even with -Werror). So we grep stderr for any message 4455 # that says an option was ignored or not supported. 4456 # When given -MP, icc 7.0 and 7.1 complain thusly: 4457 # icc: Command line warning: ignoring option '-M'; no argument required 4458 # The diagnosis changed in icc 8.0: 4459 # icc: Command line remark: option '-MP' not supported 4460 if (grep 'ignoring option' conftest.err || 4461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4462 am_cv_CXX_dependencies_compiler_type=$depmode 4463 break 4464 fi 4465 fi 4466 done 4467 4468 cd .. 4469 rm -rf conftest.dir 4470else 4471 am_cv_CXX_dependencies_compiler_type=none 4472fi 4473 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4476$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4477CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4478 4479 if 4480 test "x$enable_dependency_tracking" != xno \ 4481 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4482 am__fastdepCXX_TRUE= 4483 am__fastdepCXX_FALSE='#' 4484else 4485 am__fastdepCXX_TRUE='#' 4486 am__fastdepCXX_FALSE= 4487fi 4488 4489 4490 4491case `pwd` in 4492 *\ * | *\ *) 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4494$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4495esac 4496 4497 4498 4499macro_version='2.4.2' 4500macro_revision='1.3337' 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514ltmain="$ac_aux_dir/ltmain.sh" 4515 4516# Make sure we can run config.sub. 4517$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4518 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4519 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4521$as_echo_n "checking build system type... " >&6; } 4522if ${ac_cv_build+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 ac_build_alias=$build_alias 4526test "x$ac_build_alias" = x && 4527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4528test "x$ac_build_alias" = x && 4529 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4530ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4532 4533fi 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4535$as_echo "$ac_cv_build" >&6; } 4536case $ac_cv_build in 4537*-*-*) ;; 4538*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4539esac 4540build=$ac_cv_build 4541ac_save_IFS=$IFS; IFS='-' 4542set x $ac_cv_build 4543shift 4544build_cpu=$1 4545build_vendor=$2 4546shift; shift 4547# Remember, the first character of IFS is used to create $*, 4548# except with old shells: 4549build_os=$* 4550IFS=$ac_save_IFS 4551case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4552 4553 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4555$as_echo_n "checking host system type... " >&6; } 4556if ${ac_cv_host+:} false; then : 4557 $as_echo_n "(cached) " >&6 4558else 4559 if test "x$host_alias" = x; then 4560 ac_cv_host=$ac_cv_build 4561else 4562 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4564fi 4565 4566fi 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4568$as_echo "$ac_cv_host" >&6; } 4569case $ac_cv_host in 4570*-*-*) ;; 4571*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4572esac 4573host=$ac_cv_host 4574ac_save_IFS=$IFS; IFS='-' 4575set x $ac_cv_host 4576shift 4577host_cpu=$1 4578host_vendor=$2 4579shift; shift 4580# Remember, the first character of IFS is used to create $*, 4581# except with old shells: 4582host_os=$* 4583IFS=$ac_save_IFS 4584case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4585 4586 4587# Backslashify metacharacters that are still active within 4588# double-quoted strings. 4589sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4590 4591# Same as above, but do not quote variable references. 4592double_quote_subst='s/\(["`\\]\)/\\\1/g' 4593 4594# Sed substitution to delay expansion of an escaped shell variable in a 4595# double_quote_subst'ed string. 4596delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4597 4598# Sed substitution to delay expansion of an escaped single quote. 4599delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4600 4601# Sed substitution to avoid accidental globbing in evaled expressions 4602no_glob_subst='s/\*/\\\*/g' 4603 4604ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4605ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4606ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4607 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4609$as_echo_n "checking how to print strings... " >&6; } 4610# Test print first, because it will be a builtin if present. 4611if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4612 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4613 ECHO='print -r --' 4614elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4615 ECHO='printf %s\n' 4616else 4617 # Use this function as a fallback that always works. 4618 func_fallback_echo () 4619 { 4620 eval 'cat <<_LTECHO_EOF 4621$1 4622_LTECHO_EOF' 4623 } 4624 ECHO='func_fallback_echo' 4625fi 4626 4627# func_echo_all arg... 4628# Invoke $ECHO with all args, space-separated. 4629func_echo_all () 4630{ 4631 $ECHO "" 4632} 4633 4634case "$ECHO" in 4635 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4636$as_echo "printf" >&6; } ;; 4637 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4638$as_echo "print -r" >&6; } ;; 4639 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4640$as_echo "cat" >&6; } ;; 4641esac 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4657$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4658if ${ac_cv_path_SED+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4662 for ac_i in 1 2 3 4 5 6 7; do 4663 ac_script="$ac_script$as_nl$ac_script" 4664 done 4665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4666 { ac_script=; unset ac_script;} 4667 if test -z "$SED"; then 4668 ac_path_SED_found=false 4669 # Loop through the user's path and test for each of PROGNAME-LIST 4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_prog in sed gsed; do 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4678 as_fn_executable_p "$ac_path_SED" || continue 4679# Check for GNU ac_path_SED and select it if it is found. 4680 # Check for GNU $ac_path_SED 4681case `"$ac_path_SED" --version 2>&1` in 4682*GNU*) 4683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4684*) 4685 ac_count=0 4686 $as_echo_n 0123456789 >"conftest.in" 4687 while : 4688 do 4689 cat "conftest.in" "conftest.in" >"conftest.tmp" 4690 mv "conftest.tmp" "conftest.in" 4691 cp "conftest.in" "conftest.nl" 4692 $as_echo '' >> "conftest.nl" 4693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4695 as_fn_arith $ac_count + 1 && ac_count=$as_val 4696 if test $ac_count -gt ${ac_path_SED_max-0}; then 4697 # Best one so far, save it but keep looking for a better one 4698 ac_cv_path_SED="$ac_path_SED" 4699 ac_path_SED_max=$ac_count 4700 fi 4701 # 10*(2^10) chars as input seems more than enough 4702 test $ac_count -gt 10 && break 4703 done 4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4705esac 4706 4707 $ac_path_SED_found && break 3 4708 done 4709 done 4710 done 4711IFS=$as_save_IFS 4712 if test -z "$ac_cv_path_SED"; then 4713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4714 fi 4715else 4716 ac_cv_path_SED=$SED 4717fi 4718 4719fi 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4721$as_echo "$ac_cv_path_SED" >&6; } 4722 SED="$ac_cv_path_SED" 4723 rm -f conftest.sed 4724 4725test -z "$SED" && SED=sed 4726Xsed="$SED -e 1s/^X//" 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4739$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4740if ${ac_cv_path_GREP+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742else 4743 if test -z "$GREP"; then 4744 ac_path_GREP_found=false 4745 # Loop through the user's path and test for each of PROGNAME-LIST 4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4748do 4749 IFS=$as_save_IFS 4750 test -z "$as_dir" && as_dir=. 4751 for ac_prog in grep ggrep; do 4752 for ac_exec_ext in '' $ac_executable_extensions; do 4753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4754 as_fn_executable_p "$ac_path_GREP" || continue 4755# Check for GNU ac_path_GREP and select it if it is found. 4756 # Check for GNU $ac_path_GREP 4757case `"$ac_path_GREP" --version 2>&1` in 4758*GNU*) 4759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4760*) 4761 ac_count=0 4762 $as_echo_n 0123456789 >"conftest.in" 4763 while : 4764 do 4765 cat "conftest.in" "conftest.in" >"conftest.tmp" 4766 mv "conftest.tmp" "conftest.in" 4767 cp "conftest.in" "conftest.nl" 4768 $as_echo 'GREP' >> "conftest.nl" 4769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4771 as_fn_arith $ac_count + 1 && ac_count=$as_val 4772 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4773 # Best one so far, save it but keep looking for a better one 4774 ac_cv_path_GREP="$ac_path_GREP" 4775 ac_path_GREP_max=$ac_count 4776 fi 4777 # 10*(2^10) chars as input seems more than enough 4778 test $ac_count -gt 10 && break 4779 done 4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4781esac 4782 4783 $ac_path_GREP_found && break 3 4784 done 4785 done 4786 done 4787IFS=$as_save_IFS 4788 if test -z "$ac_cv_path_GREP"; then 4789 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4790 fi 4791else 4792 ac_cv_path_GREP=$GREP 4793fi 4794 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4797$as_echo "$ac_cv_path_GREP" >&6; } 4798 GREP="$ac_cv_path_GREP" 4799 4800 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4802$as_echo_n "checking for egrep... " >&6; } 4803if ${ac_cv_path_EGREP+:} false; then : 4804 $as_echo_n "(cached) " >&6 4805else 4806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4807 then ac_cv_path_EGREP="$GREP -E" 4808 else 4809 if test -z "$EGREP"; then 4810 ac_path_EGREP_found=false 4811 # Loop through the user's path and test for each of PROGNAME-LIST 4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4813for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4814do 4815 IFS=$as_save_IFS 4816 test -z "$as_dir" && as_dir=. 4817 for ac_prog in egrep; do 4818 for ac_exec_ext in '' $ac_executable_extensions; do 4819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4820 as_fn_executable_p "$ac_path_EGREP" || continue 4821# Check for GNU ac_path_EGREP and select it if it is found. 4822 # Check for GNU $ac_path_EGREP 4823case `"$ac_path_EGREP" --version 2>&1` in 4824*GNU*) 4825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4826*) 4827 ac_count=0 4828 $as_echo_n 0123456789 >"conftest.in" 4829 while : 4830 do 4831 cat "conftest.in" "conftest.in" >"conftest.tmp" 4832 mv "conftest.tmp" "conftest.in" 4833 cp "conftest.in" "conftest.nl" 4834 $as_echo 'EGREP' >> "conftest.nl" 4835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4837 as_fn_arith $ac_count + 1 && ac_count=$as_val 4838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4839 # Best one so far, save it but keep looking for a better one 4840 ac_cv_path_EGREP="$ac_path_EGREP" 4841 ac_path_EGREP_max=$ac_count 4842 fi 4843 # 10*(2^10) chars as input seems more than enough 4844 test $ac_count -gt 10 && break 4845 done 4846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4847esac 4848 4849 $ac_path_EGREP_found && break 3 4850 done 4851 done 4852 done 4853IFS=$as_save_IFS 4854 if test -z "$ac_cv_path_EGREP"; then 4855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4856 fi 4857else 4858 ac_cv_path_EGREP=$EGREP 4859fi 4860 4861 fi 4862fi 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4864$as_echo "$ac_cv_path_EGREP" >&6; } 4865 EGREP="$ac_cv_path_EGREP" 4866 4867 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4869$as_echo_n "checking for fgrep... " >&6; } 4870if ${ac_cv_path_FGREP+:} false; then : 4871 $as_echo_n "(cached) " >&6 4872else 4873 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4874 then ac_cv_path_FGREP="$GREP -F" 4875 else 4876 if test -z "$FGREP"; then 4877 ac_path_FGREP_found=false 4878 # Loop through the user's path and test for each of PROGNAME-LIST 4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4881do 4882 IFS=$as_save_IFS 4883 test -z "$as_dir" && as_dir=. 4884 for ac_prog in fgrep; do 4885 for ac_exec_ext in '' $ac_executable_extensions; do 4886 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4887 as_fn_executable_p "$ac_path_FGREP" || continue 4888# Check for GNU ac_path_FGREP and select it if it is found. 4889 # Check for GNU $ac_path_FGREP 4890case `"$ac_path_FGREP" --version 2>&1` in 4891*GNU*) 4892 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4893*) 4894 ac_count=0 4895 $as_echo_n 0123456789 >"conftest.in" 4896 while : 4897 do 4898 cat "conftest.in" "conftest.in" >"conftest.tmp" 4899 mv "conftest.tmp" "conftest.in" 4900 cp "conftest.in" "conftest.nl" 4901 $as_echo 'FGREP' >> "conftest.nl" 4902 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4904 as_fn_arith $ac_count + 1 && ac_count=$as_val 4905 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4906 # Best one so far, save it but keep looking for a better one 4907 ac_cv_path_FGREP="$ac_path_FGREP" 4908 ac_path_FGREP_max=$ac_count 4909 fi 4910 # 10*(2^10) chars as input seems more than enough 4911 test $ac_count -gt 10 && break 4912 done 4913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4914esac 4915 4916 $ac_path_FGREP_found && break 3 4917 done 4918 done 4919 done 4920IFS=$as_save_IFS 4921 if test -z "$ac_cv_path_FGREP"; then 4922 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4923 fi 4924else 4925 ac_cv_path_FGREP=$FGREP 4926fi 4927 4928 fi 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4931$as_echo "$ac_cv_path_FGREP" >&6; } 4932 FGREP="$ac_cv_path_FGREP" 4933 4934 4935test -z "$GREP" && GREP=grep 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955# Check whether --with-gnu-ld was given. 4956if test "${with_gnu_ld+set}" = set; then : 4957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4958else 4959 with_gnu_ld=no 4960fi 4961 4962ac_prog=ld 4963if test "$GCC" = yes; then 4964 # Check if gcc -print-prog-name=ld gives a path. 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4966$as_echo_n "checking for ld used by $CC... " >&6; } 4967 case $host in 4968 *-*-mingw*) 4969 # gcc leaves a trailing carriage return which upsets mingw 4970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4971 *) 4972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4973 esac 4974 case $ac_prog in 4975 # Accept absolute paths. 4976 [\\/]* | ?:[\\/]*) 4977 re_direlt='/[^/][^/]*/\.\./' 4978 # Canonicalize the pathname of ld 4979 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4980 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4981 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4982 done 4983 test -z "$LD" && LD="$ac_prog" 4984 ;; 4985 "") 4986 # If it fails, then pretend we aren't using GCC. 4987 ac_prog=ld 4988 ;; 4989 *) 4990 # If it is relative, then search for the first ld in PATH. 4991 with_gnu_ld=unknown 4992 ;; 4993 esac 4994elif test "$with_gnu_ld" = yes; then 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4996$as_echo_n "checking for GNU ld... " >&6; } 4997else 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4999$as_echo_n "checking for non-GNU ld... " >&6; } 5000fi 5001if ${lt_cv_path_LD+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test -z "$LD"; then 5005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5006 for ac_dir in $PATH; do 5007 IFS="$lt_save_ifs" 5008 test -z "$ac_dir" && ac_dir=. 5009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5010 lt_cv_path_LD="$ac_dir/$ac_prog" 5011 # Check to see if the program is GNU ld. I'd rather use --version, 5012 # but apparently some variants of GNU ld only accept -v. 5013 # Break only if it was the GNU/non-GNU ld that we prefer. 5014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5015 *GNU* | *'with BFD'*) 5016 test "$with_gnu_ld" != no && break 5017 ;; 5018 *) 5019 test "$with_gnu_ld" != yes && break 5020 ;; 5021 esac 5022 fi 5023 done 5024 IFS="$lt_save_ifs" 5025else 5026 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5027fi 5028fi 5029 5030LD="$lt_cv_path_LD" 5031if test -n "$LD"; then 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5033$as_echo "$LD" >&6; } 5034else 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5036$as_echo "no" >&6; } 5037fi 5038test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5040$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5041if ${lt_cv_prog_gnu_ld+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5045case `$LD -v 2>&1 </dev/null` in 5046*GNU* | *'with BFD'*) 5047 lt_cv_prog_gnu_ld=yes 5048 ;; 5049*) 5050 lt_cv_prog_gnu_ld=no 5051 ;; 5052esac 5053fi 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5055$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5056with_gnu_ld=$lt_cv_prog_gnu_ld 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5067$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5068if ${lt_cv_path_NM+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 if test -n "$NM"; then 5072 # Let the user override the test. 5073 lt_cv_path_NM="$NM" 5074else 5075 lt_nm_to_check="${ac_tool_prefix}nm" 5076 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5077 lt_nm_to_check="$lt_nm_to_check nm" 5078 fi 5079 for lt_tmp_nm in $lt_nm_to_check; do 5080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5081 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5082 IFS="$lt_save_ifs" 5083 test -z "$ac_dir" && ac_dir=. 5084 tmp_nm="$ac_dir/$lt_tmp_nm" 5085 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5086 # Check to see if the nm accepts a BSD-compat flag. 5087 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5088 # nm: unknown option "B" ignored 5089 # Tru64's nm complains that /dev/null is an invalid object file 5090 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5091 */dev/null* | *'Invalid file or object type'*) 5092 lt_cv_path_NM="$tmp_nm -B" 5093 break 5094 ;; 5095 *) 5096 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5097 */dev/null*) 5098 lt_cv_path_NM="$tmp_nm -p" 5099 break 5100 ;; 5101 *) 5102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5103 continue # so that we can try to find one that supports BSD flags 5104 ;; 5105 esac 5106 ;; 5107 esac 5108 fi 5109 done 5110 IFS="$lt_save_ifs" 5111 done 5112 : ${lt_cv_path_NM=no} 5113fi 5114fi 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5116$as_echo "$lt_cv_path_NM" >&6; } 5117if test "$lt_cv_path_NM" != "no"; then 5118 NM="$lt_cv_path_NM" 5119else 5120 # Didn't find any BSD compatible name lister, look for dumpbin. 5121 if test -n "$DUMPBIN"; then : 5122 # Let the user override the test. 5123 else 5124 if test -n "$ac_tool_prefix"; then 5125 for ac_prog in dumpbin "link -dump" 5126 do 5127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5130$as_echo_n "checking for $ac_word... " >&6; } 5131if ${ac_cv_prog_DUMPBIN+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 if test -n "$DUMPBIN"; then 5135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5136else 5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5138for as_dir in $PATH 5139do 5140 IFS=$as_save_IFS 5141 test -z "$as_dir" && as_dir=. 5142 for ac_exec_ext in '' $ac_executable_extensions; do 5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5146 break 2 5147 fi 5148done 5149 done 5150IFS=$as_save_IFS 5151 5152fi 5153fi 5154DUMPBIN=$ac_cv_prog_DUMPBIN 5155if test -n "$DUMPBIN"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5157$as_echo "$DUMPBIN" >&6; } 5158else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5160$as_echo "no" >&6; } 5161fi 5162 5163 5164 test -n "$DUMPBIN" && break 5165 done 5166fi 5167if test -z "$DUMPBIN"; then 5168 ac_ct_DUMPBIN=$DUMPBIN 5169 for ac_prog in dumpbin "link -dump" 5170do 5171 # Extract the first word of "$ac_prog", so it can be a program name with args. 5172set dummy $ac_prog; ac_word=$2 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5174$as_echo_n "checking for $ac_word... " >&6; } 5175if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5176 $as_echo_n "(cached) " >&6 5177else 5178 if test -n "$ac_ct_DUMPBIN"; then 5179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5180else 5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5190 break 2 5191 fi 5192done 5193 done 5194IFS=$as_save_IFS 5195 5196fi 5197fi 5198ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5199if test -n "$ac_ct_DUMPBIN"; then 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5201$as_echo "$ac_ct_DUMPBIN" >&6; } 5202else 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5204$as_echo "no" >&6; } 5205fi 5206 5207 5208 test -n "$ac_ct_DUMPBIN" && break 5209done 5210 5211 if test "x$ac_ct_DUMPBIN" = x; then 5212 DUMPBIN=":" 5213 else 5214 case $cross_compiling:$ac_tool_warned in 5215yes:) 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5218ac_tool_warned=yes ;; 5219esac 5220 DUMPBIN=$ac_ct_DUMPBIN 5221 fi 5222fi 5223 5224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5225 *COFF*) 5226 DUMPBIN="$DUMPBIN -symbols" 5227 ;; 5228 *) 5229 DUMPBIN=: 5230 ;; 5231 esac 5232 fi 5233 5234 if test "$DUMPBIN" != ":"; then 5235 NM="$DUMPBIN" 5236 fi 5237fi 5238test -z "$NM" && NM=nm 5239 5240 5241 5242 5243 5244 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5246$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5247if ${lt_cv_nm_interface+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249else 5250 lt_cv_nm_interface="BSD nm" 5251 echo "int some_variable = 0;" > conftest.$ac_ext 5252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5253 (eval "$ac_compile" 2>conftest.err) 5254 cat conftest.err >&5 5255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5257 cat conftest.err >&5 5258 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5259 cat conftest.out >&5 5260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5261 lt_cv_nm_interface="MS dumpbin" 5262 fi 5263 rm -f conftest* 5264fi 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5266$as_echo "$lt_cv_nm_interface" >&6; } 5267 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5269$as_echo_n "checking whether ln -s works... " >&6; } 5270LN_S=$as_ln_s 5271if test "$LN_S" = "ln -s"; then 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5273$as_echo "yes" >&6; } 5274else 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5276$as_echo "no, using $LN_S" >&6; } 5277fi 5278 5279# find the maximum length of command line arguments 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5281$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5282if ${lt_cv_sys_max_cmd_len+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 i=0 5286 teststring="ABCD" 5287 5288 case $build_os in 5289 msdosdjgpp*) 5290 # On DJGPP, this test can blow up pretty badly due to problems in libc 5291 # (any single argument exceeding 2000 bytes causes a buffer overrun 5292 # during glob expansion). Even if it were fixed, the result of this 5293 # check would be larger than it should be. 5294 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5295 ;; 5296 5297 gnu*) 5298 # Under GNU Hurd, this test is not required because there is 5299 # no limit to the length of command line arguments. 5300 # Libtool will interpret -1 as no limit whatsoever 5301 lt_cv_sys_max_cmd_len=-1; 5302 ;; 5303 5304 cygwin* | mingw* | cegcc*) 5305 # On Win9x/ME, this test blows up -- it succeeds, but takes 5306 # about 5 minutes as the teststring grows exponentially. 5307 # Worse, since 9x/ME are not pre-emptively multitasking, 5308 # you end up with a "frozen" computer, even though with patience 5309 # the test eventually succeeds (with a max line length of 256k). 5310 # Instead, let's just punt: use the minimum linelength reported by 5311 # all of the supported platforms: 8192 (on NT/2K/XP). 5312 lt_cv_sys_max_cmd_len=8192; 5313 ;; 5314 5315 mint*) 5316 # On MiNT this can take a long time and run out of memory. 5317 lt_cv_sys_max_cmd_len=8192; 5318 ;; 5319 5320 amigaos*) 5321 # On AmigaOS with pdksh, this test takes hours, literally. 5322 # So we just punt and use a minimum line length of 8192. 5323 lt_cv_sys_max_cmd_len=8192; 5324 ;; 5325 5326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5327 # This has been around since 386BSD, at least. Likely further. 5328 if test -x /sbin/sysctl; then 5329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5330 elif test -x /usr/sbin/sysctl; then 5331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5332 else 5333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5334 fi 5335 # And add a safety zone 5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5338 ;; 5339 5340 interix*) 5341 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5342 lt_cv_sys_max_cmd_len=196608 5343 ;; 5344 5345 os2*) 5346 # The test takes a long time on OS/2. 5347 lt_cv_sys_max_cmd_len=8192 5348 ;; 5349 5350 osf*) 5351 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5352 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5353 # nice to cause kernel panics so lets avoid the loop below. 5354 # First set a reasonable default. 5355 lt_cv_sys_max_cmd_len=16384 5356 # 5357 if test -x /sbin/sysconfig; then 5358 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5359 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5360 esac 5361 fi 5362 ;; 5363 sco3.2v5*) 5364 lt_cv_sys_max_cmd_len=102400 5365 ;; 5366 sysv5* | sco5v6* | sysv4.2uw2*) 5367 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5368 if test -n "$kargmax"; then 5369 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5370 else 5371 lt_cv_sys_max_cmd_len=32768 5372 fi 5373 ;; 5374 *) 5375 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5376 if test -n "$lt_cv_sys_max_cmd_len"; then 5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5379 else 5380 # Make teststring a little bigger before we do anything with it. 5381 # a 1K string should be a reasonable start. 5382 for i in 1 2 3 4 5 6 7 8 ; do 5383 teststring=$teststring$teststring 5384 done 5385 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5386 # If test is not a shell built-in, we'll probably end up computing a 5387 # maximum length that is only half of the actual maximum length, but 5388 # we can't tell. 5389 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5390 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5391 test $i != 17 # 1/2 MB should be enough 5392 do 5393 i=`expr $i + 1` 5394 teststring=$teststring$teststring 5395 done 5396 # Only check the string length outside the loop. 5397 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5398 teststring= 5399 # Add a significant safety factor because C++ compilers can tack on 5400 # massive amounts of additional arguments before passing them to the 5401 # linker. It appears as though 1/2 is a usable value. 5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5403 fi 5404 ;; 5405 esac 5406 5407fi 5408 5409if test -n $lt_cv_sys_max_cmd_len ; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5411$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5412else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5414$as_echo "none" >&6; } 5415fi 5416max_cmd_len=$lt_cv_sys_max_cmd_len 5417 5418 5419 5420 5421 5422 5423: ${CP="cp -f"} 5424: ${MV="mv -f"} 5425: ${RM="rm -f"} 5426 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5428$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5429# Try some XSI features 5430xsi_shell=no 5431( _lt_dummy="a/b/c" 5432 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5433 = c,a/b,b/c, \ 5434 && eval 'test $(( 1 + 1 )) -eq 2 \ 5435 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5436 && xsi_shell=yes 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5438$as_echo "$xsi_shell" >&6; } 5439 5440 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5442$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5443lt_shell_append=no 5444( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5445 >/dev/null 2>&1 \ 5446 && lt_shell_append=yes 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5448$as_echo "$lt_shell_append" >&6; } 5449 5450 5451if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5452 lt_unset=unset 5453else 5454 lt_unset=false 5455fi 5456 5457 5458 5459 5460 5461# test EBCDIC or ASCII 5462case `echo X|tr X '\101'` in 5463 A) # ASCII based system 5464 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5465 lt_SP2NL='tr \040 \012' 5466 lt_NL2SP='tr \015\012 \040\040' 5467 ;; 5468 *) # EBCDIC based system 5469 lt_SP2NL='tr \100 \n' 5470 lt_NL2SP='tr \r\n \100\100' 5471 ;; 5472esac 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5483$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5484if ${lt_cv_to_host_file_cmd+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486else 5487 case $host in 5488 *-*-mingw* ) 5489 case $build in 5490 *-*-mingw* ) # actually msys 5491 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5492 ;; 5493 *-*-cygwin* ) 5494 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5495 ;; 5496 * ) # otherwise, assume *nix 5497 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5498 ;; 5499 esac 5500 ;; 5501 *-*-cygwin* ) 5502 case $build in 5503 *-*-mingw* ) # actually msys 5504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5505 ;; 5506 *-*-cygwin* ) 5507 lt_cv_to_host_file_cmd=func_convert_file_noop 5508 ;; 5509 * ) # otherwise, assume *nix 5510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5511 ;; 5512 esac 5513 ;; 5514 * ) # unhandled hosts (and "normal" native builds) 5515 lt_cv_to_host_file_cmd=func_convert_file_noop 5516 ;; 5517esac 5518 5519fi 5520 5521to_host_file_cmd=$lt_cv_to_host_file_cmd 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5523$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5524 5525 5526 5527 5528 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5530$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5531if ${lt_cv_to_tool_file_cmd+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 #assume ordinary cross tools, or native build. 5535lt_cv_to_tool_file_cmd=func_convert_file_noop 5536case $host in 5537 *-*-mingw* ) 5538 case $build in 5539 *-*-mingw* ) # actually msys 5540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5541 ;; 5542 esac 5543 ;; 5544esac 5545 5546fi 5547 5548to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5550$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5551 5552 5553 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5557$as_echo_n "checking for $LD option to reload object files... " >&6; } 5558if ${lt_cv_ld_reload_flag+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 lt_cv_ld_reload_flag='-r' 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5564$as_echo "$lt_cv_ld_reload_flag" >&6; } 5565reload_flag=$lt_cv_ld_reload_flag 5566case $reload_flag in 5567"" | " "*) ;; 5568*) reload_flag=" $reload_flag" ;; 5569esac 5570reload_cmds='$LD$reload_flag -o $output$reload_objs' 5571case $host_os in 5572 cygwin* | mingw* | pw32* | cegcc*) 5573 if test "$GCC" != yes; then 5574 reload_cmds=false 5575 fi 5576 ;; 5577 darwin*) 5578 if test "$GCC" = yes; then 5579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5580 else 5581 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5582 fi 5583 ;; 5584esac 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594if test -n "$ac_tool_prefix"; then 5595 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5596set dummy ${ac_tool_prefix}objdump; ac_word=$2 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5598$as_echo_n "checking for $ac_word... " >&6; } 5599if ${ac_cv_prog_OBJDUMP+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 if test -n "$OBJDUMP"; then 5603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5604else 5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5606for as_dir in $PATH 5607do 5608 IFS=$as_save_IFS 5609 test -z "$as_dir" && as_dir=. 5610 for ac_exec_ext in '' $ac_executable_extensions; do 5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5612 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5614 break 2 5615 fi 5616done 5617 done 5618IFS=$as_save_IFS 5619 5620fi 5621fi 5622OBJDUMP=$ac_cv_prog_OBJDUMP 5623if test -n "$OBJDUMP"; then 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5625$as_echo "$OBJDUMP" >&6; } 5626else 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5628$as_echo "no" >&6; } 5629fi 5630 5631 5632fi 5633if test -z "$ac_cv_prog_OBJDUMP"; then 5634 ac_ct_OBJDUMP=$OBJDUMP 5635 # Extract the first word of "objdump", so it can be a program name with args. 5636set dummy objdump; ac_word=$2 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5638$as_echo_n "checking for $ac_word... " >&6; } 5639if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 if test -n "$ac_ct_OBJDUMP"; then 5643 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5644else 5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5646for as_dir in $PATH 5647do 5648 IFS=$as_save_IFS 5649 test -z "$as_dir" && as_dir=. 5650 for ac_exec_ext in '' $ac_executable_extensions; do 5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5652 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5654 break 2 5655 fi 5656done 5657 done 5658IFS=$as_save_IFS 5659 5660fi 5661fi 5662ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5663if test -n "$ac_ct_OBJDUMP"; then 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5665$as_echo "$ac_ct_OBJDUMP" >&6; } 5666else 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5668$as_echo "no" >&6; } 5669fi 5670 5671 if test "x$ac_ct_OBJDUMP" = x; then 5672 OBJDUMP="false" 5673 else 5674 case $cross_compiling:$ac_tool_warned in 5675yes:) 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5678ac_tool_warned=yes ;; 5679esac 5680 OBJDUMP=$ac_ct_OBJDUMP 5681 fi 5682else 5683 OBJDUMP="$ac_cv_prog_OBJDUMP" 5684fi 5685 5686test -z "$OBJDUMP" && OBJDUMP=objdump 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5697$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5698if ${lt_cv_deplibs_check_method+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 lt_cv_file_magic_cmd='$MAGIC_CMD' 5702lt_cv_file_magic_test_file= 5703lt_cv_deplibs_check_method='unknown' 5704# Need to set the preceding variable on all platforms that support 5705# interlibrary dependencies. 5706# 'none' -- dependencies not supported. 5707# `unknown' -- same as none, but documents that we really don't know. 5708# 'pass_all' -- all dependencies passed with no checks. 5709# 'test_compile' -- check by making test program. 5710# 'file_magic [[regex]]' -- check by looking for files in library path 5711# which responds to the $file_magic_cmd with a given extended regex. 5712# If you have `file' or equivalent on your system and you're not sure 5713# whether `pass_all' will *always* work, you probably want this one. 5714 5715case $host_os in 5716aix[4-9]*) 5717 lt_cv_deplibs_check_method=pass_all 5718 ;; 5719 5720beos*) 5721 lt_cv_deplibs_check_method=pass_all 5722 ;; 5723 5724bsdi[45]*) 5725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5726 lt_cv_file_magic_cmd='/usr/bin/file -L' 5727 lt_cv_file_magic_test_file=/shlib/libc.so 5728 ;; 5729 5730cygwin*) 5731 # func_win32_libid is a shell function defined in ltmain.sh 5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5733 lt_cv_file_magic_cmd='func_win32_libid' 5734 ;; 5735 5736mingw* | pw32*) 5737 # Base MSYS/MinGW do not provide the 'file' command needed by 5738 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5739 # unless we find 'file', for example because we are cross-compiling. 5740 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5741 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5743 lt_cv_file_magic_cmd='func_win32_libid' 5744 else 5745 # Keep this pattern in sync with the one in func_win32_libid. 5746 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5747 lt_cv_file_magic_cmd='$OBJDUMP -f' 5748 fi 5749 ;; 5750 5751cegcc*) 5752 # use the weaker test based on 'objdump'. See mingw*. 5753 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5754 lt_cv_file_magic_cmd='$OBJDUMP -f' 5755 ;; 5756 5757darwin* | rhapsody*) 5758 lt_cv_deplibs_check_method=pass_all 5759 ;; 5760 5761freebsd* | dragonfly*) 5762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5763 case $host_cpu in 5764 i*86 ) 5765 # Not sure whether the presence of OpenBSD here was a mistake. 5766 # Let's accept both of them until this is cleared up. 5767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5768 lt_cv_file_magic_cmd=/usr/bin/file 5769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5770 ;; 5771 esac 5772 else 5773 lt_cv_deplibs_check_method=pass_all 5774 fi 5775 ;; 5776 5777gnu*) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 5781haiku*) 5782 lt_cv_deplibs_check_method=pass_all 5783 ;; 5784 5785hpux10.20* | hpux11*) 5786 lt_cv_file_magic_cmd=/usr/bin/file 5787 case $host_cpu in 5788 ia64*) 5789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5790 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5791 ;; 5792 hppa*64*) 5793 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]' 5794 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5795 ;; 5796 *) 5797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5798 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5799 ;; 5800 esac 5801 ;; 5802 5803interix[3-9]*) 5804 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5806 ;; 5807 5808irix5* | irix6* | nonstopux*) 5809 case $LD in 5810 *-32|*"-32 ") libmagic=32-bit;; 5811 *-n32|*"-n32 ") libmagic=N32;; 5812 *-64|*"-64 ") libmagic=64-bit;; 5813 *) libmagic=never-match;; 5814 esac 5815 lt_cv_deplibs_check_method=pass_all 5816 ;; 5817 5818# This must be glibc/ELF. 5819linux* | k*bsd*-gnu | kopensolaris*-gnu) 5820 lt_cv_deplibs_check_method=pass_all 5821 ;; 5822 5823netbsd* | netbsdelf*-gnu) 5824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5826 else 5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5828 fi 5829 ;; 5830 5831newos6*) 5832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5833 lt_cv_file_magic_cmd=/usr/bin/file 5834 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5835 ;; 5836 5837*nto* | *qnx*) 5838 lt_cv_deplibs_check_method=pass_all 5839 ;; 5840 5841openbsd*) 5842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5844 else 5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5846 fi 5847 ;; 5848 5849osf3* | osf4* | osf5*) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 5853rdos*) 5854 lt_cv_deplibs_check_method=pass_all 5855 ;; 5856 5857solaris*) 5858 lt_cv_deplibs_check_method=pass_all 5859 ;; 5860 5861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5862 lt_cv_deplibs_check_method=pass_all 5863 ;; 5864 5865sysv4 | sysv4.3*) 5866 case $host_vendor in 5867 motorola) 5868 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]' 5869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5870 ;; 5871 ncr) 5872 lt_cv_deplibs_check_method=pass_all 5873 ;; 5874 sequent) 5875 lt_cv_file_magic_cmd='/bin/file' 5876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5877 ;; 5878 sni) 5879 lt_cv_file_magic_cmd='/bin/file' 5880 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5881 lt_cv_file_magic_test_file=/lib/libc.so 5882 ;; 5883 siemens) 5884 lt_cv_deplibs_check_method=pass_all 5885 ;; 5886 pc) 5887 lt_cv_deplibs_check_method=pass_all 5888 ;; 5889 esac 5890 ;; 5891 5892tpf*) 5893 lt_cv_deplibs_check_method=pass_all 5894 ;; 5895esac 5896 5897fi 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5899$as_echo "$lt_cv_deplibs_check_method" >&6; } 5900 5901file_magic_glob= 5902want_nocaseglob=no 5903if test "$build" = "$host"; then 5904 case $host_os in 5905 mingw* | pw32*) 5906 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5907 want_nocaseglob=yes 5908 else 5909 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5910 fi 5911 ;; 5912 esac 5913fi 5914 5915file_magic_cmd=$lt_cv_file_magic_cmd 5916deplibs_check_method=$lt_cv_deplibs_check_method 5917test -z "$deplibs_check_method" && deplibs_check_method=unknown 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940if test -n "$ac_tool_prefix"; then 5941 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5942set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5944$as_echo_n "checking for $ac_word... " >&6; } 5945if ${ac_cv_prog_DLLTOOL+:} false; then : 5946 $as_echo_n "(cached) " >&6 5947else 5948 if test -n "$DLLTOOL"; then 5949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5950else 5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5952for as_dir in $PATH 5953do 5954 IFS=$as_save_IFS 5955 test -z "$as_dir" && as_dir=. 5956 for ac_exec_ext in '' $ac_executable_extensions; do 5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5958 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5960 break 2 5961 fi 5962done 5963 done 5964IFS=$as_save_IFS 5965 5966fi 5967fi 5968DLLTOOL=$ac_cv_prog_DLLTOOL 5969if test -n "$DLLTOOL"; then 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5971$as_echo "$DLLTOOL" >&6; } 5972else 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5974$as_echo "no" >&6; } 5975fi 5976 5977 5978fi 5979if test -z "$ac_cv_prog_DLLTOOL"; then 5980 ac_ct_DLLTOOL=$DLLTOOL 5981 # Extract the first word of "dlltool", so it can be a program name with args. 5982set dummy dlltool; ac_word=$2 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5984$as_echo_n "checking for $ac_word... " >&6; } 5985if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 if test -n "$ac_ct_DLLTOOL"; then 5989 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 test -z "$as_dir" && as_dir=. 5996 for ac_exec_ext in '' $ac_executable_extensions; do 5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5998 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6000 break 2 6001 fi 6002done 6003 done 6004IFS=$as_save_IFS 6005 6006fi 6007fi 6008ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6009if test -n "$ac_ct_DLLTOOL"; then 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6011$as_echo "$ac_ct_DLLTOOL" >&6; } 6012else 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6014$as_echo "no" >&6; } 6015fi 6016 6017 if test "x$ac_ct_DLLTOOL" = x; then 6018 DLLTOOL="false" 6019 else 6020 case $cross_compiling:$ac_tool_warned in 6021yes:) 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6024ac_tool_warned=yes ;; 6025esac 6026 DLLTOOL=$ac_ct_DLLTOOL 6027 fi 6028else 6029 DLLTOOL="$ac_cv_prog_DLLTOOL" 6030fi 6031 6032test -z "$DLLTOOL" && DLLTOOL=dlltool 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6044$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6045if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 lt_cv_sharedlib_from_linklib_cmd='unknown' 6049 6050case $host_os in 6051cygwin* | mingw* | pw32* | cegcc*) 6052 # two different shell functions defined in ltmain.sh 6053 # decide which to use based on capabilities of $DLLTOOL 6054 case `$DLLTOOL --help 2>&1` in 6055 *--identify-strict*) 6056 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6057 ;; 6058 *) 6059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6060 ;; 6061 esac 6062 ;; 6063*) 6064 # fallback: assume linklib IS sharedlib 6065 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6066 ;; 6067esac 6068 6069fi 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6071$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6072sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6073test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6074 6075 6076 6077 6078 6079 6080 6081 6082if test -n "$ac_tool_prefix"; then 6083 for ac_prog in ar 6084 do 6085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6086set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088$as_echo_n "checking for $ac_word... " >&6; } 6089if ${ac_cv_prog_AR+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 if test -n "$AR"; then 6093 ac_cv_prog_AR="$AR" # Let the user override the test. 6094else 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107 done 6108IFS=$as_save_IFS 6109 6110fi 6111fi 6112AR=$ac_cv_prog_AR 6113if test -n "$AR"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6115$as_echo "$AR" >&6; } 6116else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118$as_echo "no" >&6; } 6119fi 6120 6121 6122 test -n "$AR" && break 6123 done 6124fi 6125if test -z "$AR"; then 6126 ac_ct_AR=$AR 6127 for ac_prog in ar 6128do 6129 # Extract the first word of "$ac_prog", so it can be a program name with args. 6130set dummy $ac_prog; ac_word=$2 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6132$as_echo_n "checking for $ac_word... " >&6; } 6133if ${ac_cv_prog_ac_ct_AR+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 if test -n "$ac_ct_AR"; then 6137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6138else 6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 test -z "$as_dir" && as_dir=. 6144 for ac_exec_ext in '' $ac_executable_extensions; do 6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6146 ac_cv_prog_ac_ct_AR="$ac_prog" 6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6148 break 2 6149 fi 6150done 6151 done 6152IFS=$as_save_IFS 6153 6154fi 6155fi 6156ac_ct_AR=$ac_cv_prog_ac_ct_AR 6157if test -n "$ac_ct_AR"; then 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6159$as_echo "$ac_ct_AR" >&6; } 6160else 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6162$as_echo "no" >&6; } 6163fi 6164 6165 6166 test -n "$ac_ct_AR" && break 6167done 6168 6169 if test "x$ac_ct_AR" = x; then 6170 AR="false" 6171 else 6172 case $cross_compiling:$ac_tool_warned in 6173yes:) 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6176ac_tool_warned=yes ;; 6177esac 6178 AR=$ac_ct_AR 6179 fi 6180fi 6181 6182: ${AR=ar} 6183: ${AR_FLAGS=cru} 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6196$as_echo_n "checking for archiver @FILE support... " >&6; } 6197if ${lt_cv_ar_at_file+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 lt_cv_ar_at_file=no 6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6202/* end confdefs.h. */ 6203 6204int 6205main () 6206{ 6207 6208 ; 6209 return 0; 6210} 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 echo conftest.$ac_objext > conftest.lst 6214 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6216 (eval $lt_ar_try) 2>&5 6217 ac_status=$? 6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6219 test $ac_status = 0; } 6220 if test "$ac_status" -eq 0; then 6221 # Ensure the archiver fails upon bogus file names. 6222 rm -f conftest.$ac_objext libconftest.a 6223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6224 (eval $lt_ar_try) 2>&5 6225 ac_status=$? 6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6227 test $ac_status = 0; } 6228 if test "$ac_status" -ne 0; then 6229 lt_cv_ar_at_file=@ 6230 fi 6231 fi 6232 rm -f conftest.* libconftest.a 6233 6234fi 6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6236 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6239$as_echo "$lt_cv_ar_at_file" >&6; } 6240 6241if test "x$lt_cv_ar_at_file" = xno; then 6242 archiver_list_spec= 6243else 6244 archiver_list_spec=$lt_cv_ar_at_file 6245fi 6246 6247 6248 6249 6250 6251 6252 6253if test -n "$ac_tool_prefix"; then 6254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6255set dummy ${ac_tool_prefix}strip; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if ${ac_cv_prog_STRIP+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$STRIP"; then 6262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281STRIP=$ac_cv_prog_STRIP 6282if test -n "$STRIP"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6284$as_echo "$STRIP" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 6291fi 6292if test -z "$ac_cv_prog_STRIP"; then 6293 ac_ct_STRIP=$STRIP 6294 # Extract the first word of "strip", so it can be a program name with args. 6295set dummy strip; ac_word=$2 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297$as_echo_n "checking for $ac_word... " >&6; } 6298if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 if test -n "$ac_ct_STRIP"; then 6302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6303else 6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305for as_dir in $PATH 6306do 6307 IFS=$as_save_IFS 6308 test -z "$as_dir" && as_dir=. 6309 for ac_exec_ext in '' $ac_executable_extensions; do 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6311 ac_cv_prog_ac_ct_STRIP="strip" 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6313 break 2 6314 fi 6315done 6316 done 6317IFS=$as_save_IFS 6318 6319fi 6320fi 6321ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6322if test -n "$ac_ct_STRIP"; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6324$as_echo "$ac_ct_STRIP" >&6; } 6325else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6327$as_echo "no" >&6; } 6328fi 6329 6330 if test "x$ac_ct_STRIP" = x; then 6331 STRIP=":" 6332 else 6333 case $cross_compiling:$ac_tool_warned in 6334yes:) 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6337ac_tool_warned=yes ;; 6338esac 6339 STRIP=$ac_ct_STRIP 6340 fi 6341else 6342 STRIP="$ac_cv_prog_STRIP" 6343fi 6344 6345test -z "$STRIP" && STRIP=: 6346 6347 6348 6349 6350 6351 6352if test -n "$ac_tool_prefix"; then 6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6354set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6356$as_echo_n "checking for $ac_word... " >&6; } 6357if ${ac_cv_prog_RANLIB+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 if test -n "$RANLIB"; then 6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6362else 6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6364for as_dir in $PATH 6365do 6366 IFS=$as_save_IFS 6367 test -z "$as_dir" && as_dir=. 6368 for ac_exec_ext in '' $ac_executable_extensions; do 6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6372 break 2 6373 fi 6374done 6375 done 6376IFS=$as_save_IFS 6377 6378fi 6379fi 6380RANLIB=$ac_cv_prog_RANLIB 6381if test -n "$RANLIB"; then 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6383$as_echo "$RANLIB" >&6; } 6384else 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6386$as_echo "no" >&6; } 6387fi 6388 6389 6390fi 6391if test -z "$ac_cv_prog_RANLIB"; then 6392 ac_ct_RANLIB=$RANLIB 6393 # Extract the first word of "ranlib", so it can be a program name with args. 6394set dummy ranlib; ac_word=$2 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6396$as_echo_n "checking for $ac_word... " >&6; } 6397if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 if test -n "$ac_ct_RANLIB"; then 6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6402else 6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6404for as_dir in $PATH 6405do 6406 IFS=$as_save_IFS 6407 test -z "$as_dir" && as_dir=. 6408 for ac_exec_ext in '' $ac_executable_extensions; do 6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6410 ac_cv_prog_ac_ct_RANLIB="ranlib" 6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6412 break 2 6413 fi 6414done 6415 done 6416IFS=$as_save_IFS 6417 6418fi 6419fi 6420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6421if test -n "$ac_ct_RANLIB"; then 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6423$as_echo "$ac_ct_RANLIB" >&6; } 6424else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426$as_echo "no" >&6; } 6427fi 6428 6429 if test "x$ac_ct_RANLIB" = x; then 6430 RANLIB=":" 6431 else 6432 case $cross_compiling:$ac_tool_warned in 6433yes:) 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6436ac_tool_warned=yes ;; 6437esac 6438 RANLIB=$ac_ct_RANLIB 6439 fi 6440else 6441 RANLIB="$ac_cv_prog_RANLIB" 6442fi 6443 6444test -z "$RANLIB" && RANLIB=: 6445 6446 6447 6448 6449 6450 6451# Determine commands to create old-style static archives. 6452old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6453old_postinstall_cmds='chmod 644 $oldlib' 6454old_postuninstall_cmds= 6455 6456if test -n "$RANLIB"; then 6457 case $host_os in 6458 openbsd*) 6459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6460 ;; 6461 *) 6462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6463 ;; 6464 esac 6465 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6466fi 6467 6468case $host_os in 6469 darwin*) 6470 lock_old_archive_extraction=yes ;; 6471 *) 6472 lock_old_archive_extraction=no ;; 6473esac 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513# If no C compiler was specified, use CC. 6514LTCC=${LTCC-"$CC"} 6515 6516# If no C compiler flags were specified, use CFLAGS. 6517LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6518 6519# Allow CC to be a program name with arguments. 6520compiler=$CC 6521 6522 6523# Check for command to grab the raw symbol name followed by C symbol from nm. 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6525$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6526if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 6530# These are sane defaults that work on at least a few old systems. 6531# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6532 6533# Character class describing NM global symbol codes. 6534symcode='[BCDEGRST]' 6535 6536# Regexp to match symbols that can be accessed directly from C. 6537sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6538 6539# Define system-specific variables. 6540case $host_os in 6541aix*) 6542 symcode='[BCDT]' 6543 ;; 6544cygwin* | mingw* | pw32* | cegcc*) 6545 symcode='[ABCDGISTW]' 6546 ;; 6547hpux*) 6548 if test "$host_cpu" = ia64; then 6549 symcode='[ABCDEGRST]' 6550 fi 6551 ;; 6552irix* | nonstopux*) 6553 symcode='[BCDEGRST]' 6554 ;; 6555osf*) 6556 symcode='[BCDEGQRST]' 6557 ;; 6558solaris*) 6559 symcode='[BDRT]' 6560 ;; 6561sco3.2v5*) 6562 symcode='[DT]' 6563 ;; 6564sysv4.2uw2*) 6565 symcode='[DT]' 6566 ;; 6567sysv5* | sco5v6* | unixware* | OpenUNIX*) 6568 symcode='[ABDT]' 6569 ;; 6570sysv4) 6571 symcode='[DFNSTU]' 6572 ;; 6573esac 6574 6575# If we're using GNU nm, then use its standard symbol codes. 6576case `$NM -V 2>&1` in 6577*GNU* | *'with BFD'*) 6578 symcode='[ABCDGIRSTW]' ;; 6579esac 6580 6581# Transform an extracted symbol line into a proper C declaration. 6582# Some systems (esp. on ia64) link data and code symbols differently, 6583# so use this general approach. 6584lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6585 6586# Transform an extracted symbol line into symbol name and symbol address 6587lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6588lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6589 6590# Handle CRLF in mingw tool chain 6591opt_cr= 6592case $build_os in 6593mingw*) 6594 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6595 ;; 6596esac 6597 6598# Try without a prefix underscore, then with it. 6599for ac_symprfx in "" "_"; do 6600 6601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6602 symxfrm="\\1 $ac_symprfx\\2 \\2" 6603 6604 # Write the raw and C identifiers. 6605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6606 # Fake it for dumpbin and say T for any non-static function 6607 # and D for any global variable. 6608 # Also find C++ and __fastcall symbols from MSVC++, 6609 # which start with @ or ?. 6610 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6611" {last_section=section; section=\$ 3};"\ 6612" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6613" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6614" \$ 0!~/External *\|/{next};"\ 6615" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6616" {if(hide[section]) next};"\ 6617" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6618" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6619" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6620" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6621" ' prfx=^$ac_symprfx" 6622 else 6623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6624 fi 6625 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6626 6627 # Check to see that the pipe works correctly. 6628 pipe_works=no 6629 6630 rm -f conftest* 6631 cat > conftest.$ac_ext <<_LT_EOF 6632#ifdef __cplusplus 6633extern "C" { 6634#endif 6635char nm_test_var; 6636void nm_test_func(void); 6637void nm_test_func(void){} 6638#ifdef __cplusplus 6639} 6640#endif 6641int main(){nm_test_var='a';nm_test_func();return(0);} 6642_LT_EOF 6643 6644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6645 (eval $ac_compile) 2>&5 6646 ac_status=$? 6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6648 test $ac_status = 0; }; then 6649 # Now try to grab the symbols. 6650 nlist=conftest.nm 6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6652 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6653 ac_status=$? 6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6655 test $ac_status = 0; } && test -s "$nlist"; then 6656 # Try sorting and uniquifying the output. 6657 if sort "$nlist" | uniq > "$nlist"T; then 6658 mv -f "$nlist"T "$nlist" 6659 else 6660 rm -f "$nlist"T 6661 fi 6662 6663 # Make sure that we snagged all the symbols we need. 6664 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6665 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6666 cat <<_LT_EOF > conftest.$ac_ext 6667/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6668#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6669/* DATA imports from DLLs on WIN32 con't be const, because runtime 6670 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6671# define LT_DLSYM_CONST 6672#elif defined(__osf__) 6673/* This system does not cope well with relocations in const data. */ 6674# define LT_DLSYM_CONST 6675#else 6676# define LT_DLSYM_CONST const 6677#endif 6678 6679#ifdef __cplusplus 6680extern "C" { 6681#endif 6682 6683_LT_EOF 6684 # Now generate the symbol file. 6685 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6686 6687 cat <<_LT_EOF >> conftest.$ac_ext 6688 6689/* The mapping between symbol names and symbols. */ 6690LT_DLSYM_CONST struct { 6691 const char *name; 6692 void *address; 6693} 6694lt__PROGRAM__LTX_preloaded_symbols[] = 6695{ 6696 { "@PROGRAM@", (void *) 0 }, 6697_LT_EOF 6698 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6699 cat <<\_LT_EOF >> conftest.$ac_ext 6700 {0, (void *) 0} 6701}; 6702 6703/* This works around a problem in FreeBSD linker */ 6704#ifdef FREEBSD_WORKAROUND 6705static const void *lt_preloaded_setup() { 6706 return lt__PROGRAM__LTX_preloaded_symbols; 6707} 6708#endif 6709 6710#ifdef __cplusplus 6711} 6712#endif 6713_LT_EOF 6714 # Now try linking the two files. 6715 mv conftest.$ac_objext conftstm.$ac_objext 6716 lt_globsym_save_LIBS=$LIBS 6717 lt_globsym_save_CFLAGS=$CFLAGS 6718 LIBS="conftstm.$ac_objext" 6719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6721 (eval $ac_link) 2>&5 6722 ac_status=$? 6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6724 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6725 pipe_works=yes 6726 fi 6727 LIBS=$lt_globsym_save_LIBS 6728 CFLAGS=$lt_globsym_save_CFLAGS 6729 else 6730 echo "cannot find nm_test_func in $nlist" >&5 6731 fi 6732 else 6733 echo "cannot find nm_test_var in $nlist" >&5 6734 fi 6735 else 6736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6737 fi 6738 else 6739 echo "$progname: failed program was:" >&5 6740 cat conftest.$ac_ext >&5 6741 fi 6742 rm -rf conftest* conftst* 6743 6744 # Do not use the global_symbol_pipe unless it works. 6745 if test "$pipe_works" = yes; then 6746 break 6747 else 6748 lt_cv_sys_global_symbol_pipe= 6749 fi 6750done 6751 6752fi 6753 6754if test -z "$lt_cv_sys_global_symbol_pipe"; then 6755 lt_cv_sys_global_symbol_to_cdecl= 6756fi 6757if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6759$as_echo "failed" >&6; } 6760else 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6762$as_echo "ok" >&6; } 6763fi 6764 6765# Response file support. 6766if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6767 nm_file_list_spec='@' 6768elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6769 nm_file_list_spec='@' 6770fi 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6799$as_echo_n "checking for sysroot... " >&6; } 6800 6801# Check whether --with-sysroot was given. 6802if test "${with_sysroot+set}" = set; then : 6803 withval=$with_sysroot; 6804else 6805 with_sysroot=no 6806fi 6807 6808 6809lt_sysroot= 6810case ${with_sysroot} in #( 6811 yes) 6812 if test "$GCC" = yes; then 6813 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6814 fi 6815 ;; #( 6816 /*) 6817 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6818 ;; #( 6819 no|'') 6820 ;; #( 6821 *) 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6823$as_echo "${with_sysroot}" >&6; } 6824 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6825 ;; 6826esac 6827 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6829$as_echo "${lt_sysroot:-no}" >&6; } 6830 6831 6832 6833 6834 6835# Check whether --enable-libtool-lock was given. 6836if test "${enable_libtool_lock+set}" = set; then : 6837 enableval=$enable_libtool_lock; 6838fi 6839 6840test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6841 6842# Some flags need to be propagated to the compiler or linker for good 6843# libtool support. 6844case $host in 6845ia64-*-hpux*) 6846 # Find out which ABI we are using. 6847 echo 'int i;' > conftest.$ac_ext 6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6849 (eval $ac_compile) 2>&5 6850 ac_status=$? 6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6852 test $ac_status = 0; }; then 6853 case `/usr/bin/file conftest.$ac_objext` in 6854 *ELF-32*) 6855 HPUX_IA64_MODE="32" 6856 ;; 6857 *ELF-64*) 6858 HPUX_IA64_MODE="64" 6859 ;; 6860 esac 6861 fi 6862 rm -rf conftest* 6863 ;; 6864*-*-irix6*) 6865 # Find out which ABI we are using. 6866 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6868 (eval $ac_compile) 2>&5 6869 ac_status=$? 6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6871 test $ac_status = 0; }; then 6872 if test "$lt_cv_prog_gnu_ld" = yes; then 6873 case `/usr/bin/file conftest.$ac_objext` in 6874 *32-bit*) 6875 LD="${LD-ld} -melf32bsmip" 6876 ;; 6877 *N32*) 6878 LD="${LD-ld} -melf32bmipn32" 6879 ;; 6880 *64-bit*) 6881 LD="${LD-ld} -melf64bmip" 6882 ;; 6883 esac 6884 else 6885 case `/usr/bin/file conftest.$ac_objext` in 6886 *32-bit*) 6887 LD="${LD-ld} -32" 6888 ;; 6889 *N32*) 6890 LD="${LD-ld} -n32" 6891 ;; 6892 *64-bit*) 6893 LD="${LD-ld} -64" 6894 ;; 6895 esac 6896 fi 6897 fi 6898 rm -rf conftest* 6899 ;; 6900 6901x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6902s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6903 # Find out which ABI we are using. 6904 echo 'int i;' > conftest.$ac_ext 6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6906 (eval $ac_compile) 2>&5 6907 ac_status=$? 6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6909 test $ac_status = 0; }; then 6910 case `/usr/bin/file conftest.o` in 6911 *32-bit*) 6912 case $host in 6913 x86_64-*kfreebsd*-gnu) 6914 LD="${LD-ld} -m elf_i386_fbsd" 6915 ;; 6916 x86_64-*linux*) 6917 LD="${LD-ld} -m elf_i386" 6918 ;; 6919 ppc64-*linux*|powerpc64-*linux*) 6920 LD="${LD-ld} -m elf32ppclinux" 6921 ;; 6922 s390x-*linux*) 6923 LD="${LD-ld} -m elf_s390" 6924 ;; 6925 sparc64-*linux*) 6926 LD="${LD-ld} -m elf32_sparc" 6927 ;; 6928 esac 6929 ;; 6930 *64-bit*) 6931 case $host in 6932 x86_64-*kfreebsd*-gnu) 6933 LD="${LD-ld} -m elf_x86_64_fbsd" 6934 ;; 6935 x86_64-*linux*) 6936 LD="${LD-ld} -m elf_x86_64" 6937 ;; 6938 ppc*-*linux*|powerpc*-*linux*) 6939 LD="${LD-ld} -m elf64ppc" 6940 ;; 6941 s390*-*linux*|s390*-*tpf*) 6942 LD="${LD-ld} -m elf64_s390" 6943 ;; 6944 sparc*-*linux*) 6945 LD="${LD-ld} -m elf64_sparc" 6946 ;; 6947 esac 6948 ;; 6949 esac 6950 fi 6951 rm -rf conftest* 6952 ;; 6953 6954*-*-sco3.2v5*) 6955 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6956 SAVE_CFLAGS="$CFLAGS" 6957 CFLAGS="$CFLAGS -belf" 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6959$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6960if ${lt_cv_cc_needs_belf+:} false; then : 6961 $as_echo_n "(cached) " >&6 6962else 6963 ac_ext=c 6964ac_cpp='$CPP $CPPFLAGS' 6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6967ac_compiler_gnu=$ac_cv_c_compiler_gnu 6968 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971 6972int 6973main () 6974{ 6975 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980if ac_fn_c_try_link "$LINENO"; then : 6981 lt_cv_cc_needs_belf=yes 6982else 6983 lt_cv_cc_needs_belf=no 6984fi 6985rm -f core conftest.err conftest.$ac_objext \ 6986 conftest$ac_exeext conftest.$ac_ext 6987 ac_ext=c 6988ac_cpp='$CPP $CPPFLAGS' 6989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6991ac_compiler_gnu=$ac_cv_c_compiler_gnu 6992 6993fi 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6995$as_echo "$lt_cv_cc_needs_belf" >&6; } 6996 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6997 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6998 CFLAGS="$SAVE_CFLAGS" 6999 fi 7000 ;; 7001*-*solaris*) 7002 # Find out which ABI we are using. 7003 echo 'int i;' > conftest.$ac_ext 7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7005 (eval $ac_compile) 2>&5 7006 ac_status=$? 7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7008 test $ac_status = 0; }; then 7009 case `/usr/bin/file conftest.o` in 7010 *64-bit*) 7011 case $lt_cv_prog_gnu_ld in 7012 yes*) 7013 case $host in 7014 i?86-*-solaris*) 7015 LD="${LD-ld} -m elf_x86_64" 7016 ;; 7017 sparc*-*-solaris*) 7018 LD="${LD-ld} -m elf64_sparc" 7019 ;; 7020 esac 7021 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7022 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7023 LD="${LD-ld}_sol2" 7024 fi 7025 ;; 7026 *) 7027 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7028 LD="${LD-ld} -64" 7029 fi 7030 ;; 7031 esac 7032 ;; 7033 esac 7034 fi 7035 rm -rf conftest* 7036 ;; 7037esac 7038 7039need_locks="$enable_libtool_lock" 7040 7041if test -n "$ac_tool_prefix"; then 7042 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7043set dummy ${ac_tool_prefix}mt; ac_word=$2 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7045$as_echo_n "checking for $ac_word... " >&6; } 7046if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 if test -n "$MANIFEST_TOOL"; then 7050 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7051else 7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7053for as_dir in $PATH 7054do 7055 IFS=$as_save_IFS 7056 test -z "$as_dir" && as_dir=. 7057 for ac_exec_ext in '' $ac_executable_extensions; do 7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7059 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7061 break 2 7062 fi 7063done 7064 done 7065IFS=$as_save_IFS 7066 7067fi 7068fi 7069MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7070if test -n "$MANIFEST_TOOL"; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7072$as_echo "$MANIFEST_TOOL" >&6; } 7073else 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7075$as_echo "no" >&6; } 7076fi 7077 7078 7079fi 7080if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7081 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7082 # Extract the first word of "mt", so it can be a program name with args. 7083set dummy mt; ac_word=$2 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7085$as_echo_n "checking for $ac_word... " >&6; } 7086if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 if test -n "$ac_ct_MANIFEST_TOOL"; then 7090 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7091else 7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7093for as_dir in $PATH 7094do 7095 IFS=$as_save_IFS 7096 test -z "$as_dir" && as_dir=. 7097 for ac_exec_ext in '' $ac_executable_extensions; do 7098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7099 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7101 break 2 7102 fi 7103done 7104 done 7105IFS=$as_save_IFS 7106 7107fi 7108fi 7109ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7110if test -n "$ac_ct_MANIFEST_TOOL"; then 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7112$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7113else 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7115$as_echo "no" >&6; } 7116fi 7117 7118 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7119 MANIFEST_TOOL=":" 7120 else 7121 case $cross_compiling:$ac_tool_warned in 7122yes:) 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7125ac_tool_warned=yes ;; 7126esac 7127 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7128 fi 7129else 7130 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7131fi 7132 7133test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7135$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7136if ${lt_cv_path_mainfest_tool+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 lt_cv_path_mainfest_tool=no 7140 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7141 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7142 cat conftest.err >&5 7143 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7144 lt_cv_path_mainfest_tool=yes 7145 fi 7146 rm -f conftest* 7147fi 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7149$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7150if test "x$lt_cv_path_mainfest_tool" != xyes; then 7151 MANIFEST_TOOL=: 7152fi 7153 7154 7155 7156 7157 7158 7159 case $host_os in 7160 rhapsody* | darwin*) 7161 if test -n "$ac_tool_prefix"; then 7162 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7163set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165$as_echo_n "checking for $ac_word... " >&6; } 7166if ${ac_cv_prog_DSYMUTIL+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 if test -n "$DSYMUTIL"; then 7170 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7171else 7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173for as_dir in $PATH 7174do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7179 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183done 7184 done 7185IFS=$as_save_IFS 7186 7187fi 7188fi 7189DSYMUTIL=$ac_cv_prog_DSYMUTIL 7190if test -n "$DSYMUTIL"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7192$as_echo "$DSYMUTIL" >&6; } 7193else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195$as_echo "no" >&6; } 7196fi 7197 7198 7199fi 7200if test -z "$ac_cv_prog_DSYMUTIL"; then 7201 ac_ct_DSYMUTIL=$DSYMUTIL 7202 # Extract the first word of "dsymutil", so it can be a program name with args. 7203set dummy dsymutil; ac_word=$2 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7205$as_echo_n "checking for $ac_word... " >&6; } 7206if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 if test -n "$ac_ct_DSYMUTIL"; then 7210 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7211else 7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213for as_dir in $PATH 7214do 7215 IFS=$as_save_IFS 7216 test -z "$as_dir" && as_dir=. 7217 for ac_exec_ext in '' $ac_executable_extensions; do 7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7219 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7221 break 2 7222 fi 7223done 7224 done 7225IFS=$as_save_IFS 7226 7227fi 7228fi 7229ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7230if test -n "$ac_ct_DSYMUTIL"; then 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7232$as_echo "$ac_ct_DSYMUTIL" >&6; } 7233else 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7235$as_echo "no" >&6; } 7236fi 7237 7238 if test "x$ac_ct_DSYMUTIL" = x; then 7239 DSYMUTIL=":" 7240 else 7241 case $cross_compiling:$ac_tool_warned in 7242yes:) 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7245ac_tool_warned=yes ;; 7246esac 7247 DSYMUTIL=$ac_ct_DSYMUTIL 7248 fi 7249else 7250 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7251fi 7252 7253 if test -n "$ac_tool_prefix"; then 7254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7255set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7257$as_echo_n "checking for $ac_word... " >&6; } 7258if ${ac_cv_prog_NMEDIT+:} false; then : 7259 $as_echo_n "(cached) " >&6 7260else 7261 if test -n "$NMEDIT"; then 7262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7263else 7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7265for as_dir in $PATH 7266do 7267 IFS=$as_save_IFS 7268 test -z "$as_dir" && as_dir=. 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7271 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275done 7276 done 7277IFS=$as_save_IFS 7278 7279fi 7280fi 7281NMEDIT=$ac_cv_prog_NMEDIT 7282if test -n "$NMEDIT"; then 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7284$as_echo "$NMEDIT" >&6; } 7285else 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7287$as_echo "no" >&6; } 7288fi 7289 7290 7291fi 7292if test -z "$ac_cv_prog_NMEDIT"; then 7293 ac_ct_NMEDIT=$NMEDIT 7294 # Extract the first word of "nmedit", so it can be a program name with args. 7295set dummy nmedit; ac_word=$2 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7297$as_echo_n "checking for $ac_word... " >&6; } 7298if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 if test -n "$ac_ct_NMEDIT"; then 7302 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7303else 7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7305for as_dir in $PATH 7306do 7307 IFS=$as_save_IFS 7308 test -z "$as_dir" && as_dir=. 7309 for ac_exec_ext in '' $ac_executable_extensions; do 7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7311 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7313 break 2 7314 fi 7315done 7316 done 7317IFS=$as_save_IFS 7318 7319fi 7320fi 7321ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7322if test -n "$ac_ct_NMEDIT"; then 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7324$as_echo "$ac_ct_NMEDIT" >&6; } 7325else 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7327$as_echo "no" >&6; } 7328fi 7329 7330 if test "x$ac_ct_NMEDIT" = x; then 7331 NMEDIT=":" 7332 else 7333 case $cross_compiling:$ac_tool_warned in 7334yes:) 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7337ac_tool_warned=yes ;; 7338esac 7339 NMEDIT=$ac_ct_NMEDIT 7340 fi 7341else 7342 NMEDIT="$ac_cv_prog_NMEDIT" 7343fi 7344 7345 if test -n "$ac_tool_prefix"; then 7346 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7347set dummy ${ac_tool_prefix}lipo; ac_word=$2 7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7349$as_echo_n "checking for $ac_word... " >&6; } 7350if ${ac_cv_prog_LIPO+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 if test -n "$LIPO"; then 7354 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7355else 7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7357for as_dir in $PATH 7358do 7359 IFS=$as_save_IFS 7360 test -z "$as_dir" && as_dir=. 7361 for ac_exec_ext in '' $ac_executable_extensions; do 7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7363 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7365 break 2 7366 fi 7367done 7368 done 7369IFS=$as_save_IFS 7370 7371fi 7372fi 7373LIPO=$ac_cv_prog_LIPO 7374if test -n "$LIPO"; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7376$as_echo "$LIPO" >&6; } 7377else 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7379$as_echo "no" >&6; } 7380fi 7381 7382 7383fi 7384if test -z "$ac_cv_prog_LIPO"; then 7385 ac_ct_LIPO=$LIPO 7386 # Extract the first word of "lipo", so it can be a program name with args. 7387set dummy lipo; ac_word=$2 7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7389$as_echo_n "checking for $ac_word... " >&6; } 7390if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392else 7393 if test -n "$ac_ct_LIPO"; then 7394 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7395else 7396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7397for as_dir in $PATH 7398do 7399 IFS=$as_save_IFS 7400 test -z "$as_dir" && as_dir=. 7401 for ac_exec_ext in '' $ac_executable_extensions; do 7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7403 ac_cv_prog_ac_ct_LIPO="lipo" 7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7405 break 2 7406 fi 7407done 7408 done 7409IFS=$as_save_IFS 7410 7411fi 7412fi 7413ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7414if test -n "$ac_ct_LIPO"; then 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7416$as_echo "$ac_ct_LIPO" >&6; } 7417else 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7419$as_echo "no" >&6; } 7420fi 7421 7422 if test "x$ac_ct_LIPO" = x; then 7423 LIPO=":" 7424 else 7425 case $cross_compiling:$ac_tool_warned in 7426yes:) 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7429ac_tool_warned=yes ;; 7430esac 7431 LIPO=$ac_ct_LIPO 7432 fi 7433else 7434 LIPO="$ac_cv_prog_LIPO" 7435fi 7436 7437 if test -n "$ac_tool_prefix"; then 7438 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7439set dummy ${ac_tool_prefix}otool; ac_word=$2 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7441$as_echo_n "checking for $ac_word... " >&6; } 7442if ${ac_cv_prog_OTOOL+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444else 7445 if test -n "$OTOOL"; then 7446 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7447else 7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7449for as_dir in $PATH 7450do 7451 IFS=$as_save_IFS 7452 test -z "$as_dir" && as_dir=. 7453 for ac_exec_ext in '' $ac_executable_extensions; do 7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7455 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7457 break 2 7458 fi 7459done 7460 done 7461IFS=$as_save_IFS 7462 7463fi 7464fi 7465OTOOL=$ac_cv_prog_OTOOL 7466if test -n "$OTOOL"; then 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7468$as_echo "$OTOOL" >&6; } 7469else 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7471$as_echo "no" >&6; } 7472fi 7473 7474 7475fi 7476if test -z "$ac_cv_prog_OTOOL"; then 7477 ac_ct_OTOOL=$OTOOL 7478 # Extract the first word of "otool", so it can be a program name with args. 7479set dummy otool; ac_word=$2 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481$as_echo_n "checking for $ac_word... " >&6; } 7482if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484else 7485 if test -n "$ac_ct_OTOOL"; then 7486 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7487else 7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7489for as_dir in $PATH 7490do 7491 IFS=$as_save_IFS 7492 test -z "$as_dir" && as_dir=. 7493 for ac_exec_ext in '' $ac_executable_extensions; do 7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7495 ac_cv_prog_ac_ct_OTOOL="otool" 7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7497 break 2 7498 fi 7499done 7500 done 7501IFS=$as_save_IFS 7502 7503fi 7504fi 7505ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7506if test -n "$ac_ct_OTOOL"; then 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7508$as_echo "$ac_ct_OTOOL" >&6; } 7509else 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7511$as_echo "no" >&6; } 7512fi 7513 7514 if test "x$ac_ct_OTOOL" = x; then 7515 OTOOL=":" 7516 else 7517 case $cross_compiling:$ac_tool_warned in 7518yes:) 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7521ac_tool_warned=yes ;; 7522esac 7523 OTOOL=$ac_ct_OTOOL 7524 fi 7525else 7526 OTOOL="$ac_cv_prog_OTOOL" 7527fi 7528 7529 if test -n "$ac_tool_prefix"; then 7530 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7531set dummy ${ac_tool_prefix}otool64; ac_word=$2 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7533$as_echo_n "checking for $ac_word... " >&6; } 7534if ${ac_cv_prog_OTOOL64+:} false; then : 7535 $as_echo_n "(cached) " >&6 7536else 7537 if test -n "$OTOOL64"; then 7538 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7539else 7540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7541for as_dir in $PATH 7542do 7543 IFS=$as_save_IFS 7544 test -z "$as_dir" && as_dir=. 7545 for ac_exec_ext in '' $ac_executable_extensions; do 7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7547 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7549 break 2 7550 fi 7551done 7552 done 7553IFS=$as_save_IFS 7554 7555fi 7556fi 7557OTOOL64=$ac_cv_prog_OTOOL64 7558if test -n "$OTOOL64"; then 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7560$as_echo "$OTOOL64" >&6; } 7561else 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7563$as_echo "no" >&6; } 7564fi 7565 7566 7567fi 7568if test -z "$ac_cv_prog_OTOOL64"; then 7569 ac_ct_OTOOL64=$OTOOL64 7570 # Extract the first word of "otool64", so it can be a program name with args. 7571set dummy otool64; ac_word=$2 7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7573$as_echo_n "checking for $ac_word... " >&6; } 7574if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7575 $as_echo_n "(cached) " >&6 7576else 7577 if test -n "$ac_ct_OTOOL64"; then 7578 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7579else 7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7581for as_dir in $PATH 7582do 7583 IFS=$as_save_IFS 7584 test -z "$as_dir" && as_dir=. 7585 for ac_exec_ext in '' $ac_executable_extensions; do 7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7587 ac_cv_prog_ac_ct_OTOOL64="otool64" 7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7589 break 2 7590 fi 7591done 7592 done 7593IFS=$as_save_IFS 7594 7595fi 7596fi 7597ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7598if test -n "$ac_ct_OTOOL64"; then 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7600$as_echo "$ac_ct_OTOOL64" >&6; } 7601else 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7603$as_echo "no" >&6; } 7604fi 7605 7606 if test "x$ac_ct_OTOOL64" = x; then 7607 OTOOL64=":" 7608 else 7609 case $cross_compiling:$ac_tool_warned in 7610yes:) 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7613ac_tool_warned=yes ;; 7614esac 7615 OTOOL64=$ac_ct_OTOOL64 7616 fi 7617else 7618 OTOOL64="$ac_cv_prog_OTOOL64" 7619fi 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7648$as_echo_n "checking for -single_module linker flag... " >&6; } 7649if ${lt_cv_apple_cc_single_mod+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 lt_cv_apple_cc_single_mod=no 7653 if test -z "${LT_MULTI_MODULE}"; then 7654 # By default we will add the -single_module flag. You can override 7655 # by either setting the environment variable LT_MULTI_MODULE 7656 # non-empty at configure time, or by adding -multi_module to the 7657 # link flags. 7658 rm -rf libconftest.dylib* 7659 echo "int foo(void){return 1;}" > conftest.c 7660 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7661-dynamiclib -Wl,-single_module conftest.c" >&5 7662 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7663 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7664 _lt_result=$? 7665 # If there is a non-empty error log, and "single_module" 7666 # appears in it, assume the flag caused a linker warning 7667 if test -s conftest.err && $GREP single_module conftest.err; then 7668 cat conftest.err >&5 7669 # Otherwise, if the output was created with a 0 exit code from 7670 # the compiler, it worked. 7671 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7672 lt_cv_apple_cc_single_mod=yes 7673 else 7674 cat conftest.err >&5 7675 fi 7676 rm -rf libconftest.dylib* 7677 rm -f conftest.* 7678 fi 7679fi 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7681$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7682 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7684$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7685if ${lt_cv_ld_exported_symbols_list+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 lt_cv_ld_exported_symbols_list=no 7689 save_LDFLAGS=$LDFLAGS 7690 echo "_main" > conftest.sym 7691 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694 7695int 7696main () 7697{ 7698 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703if ac_fn_c_try_link "$LINENO"; then : 7704 lt_cv_ld_exported_symbols_list=yes 7705else 7706 lt_cv_ld_exported_symbols_list=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext \ 7709 conftest$ac_exeext conftest.$ac_ext 7710 LDFLAGS="$save_LDFLAGS" 7711 7712fi 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7714$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7715 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7717$as_echo_n "checking for -force_load linker flag... " >&6; } 7718if ${lt_cv_ld_force_load+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 lt_cv_ld_force_load=no 7722 cat > conftest.c << _LT_EOF 7723int forced_loaded() { return 2;} 7724_LT_EOF 7725 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7726 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7727 echo "$AR cru libconftest.a conftest.o" >&5 7728 $AR cru libconftest.a conftest.o 2>&5 7729 echo "$RANLIB libconftest.a" >&5 7730 $RANLIB libconftest.a 2>&5 7731 cat > conftest.c << _LT_EOF 7732int main() { return 0;} 7733_LT_EOF 7734 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7735 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7736 _lt_result=$? 7737 if test -s conftest.err && $GREP force_load conftest.err; then 7738 cat conftest.err >&5 7739 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7740 lt_cv_ld_force_load=yes 7741 else 7742 cat conftest.err >&5 7743 fi 7744 rm -f conftest.err libconftest.a conftest conftest.c 7745 rm -rf conftest.dSYM 7746 7747fi 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7749$as_echo "$lt_cv_ld_force_load" >&6; } 7750 case $host_os in 7751 rhapsody* | darwin1.[012]) 7752 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7753 darwin1.*) 7754 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7755 darwin*) # darwin 5.x on 7756 # if running on 10.5 or later, the deployment target defaults 7757 # to the OS version, if on x86, and 10.4, the deployment 7758 # target defaults to 10.4. Don't you love it? 7759 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7760 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7761 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7762 10.[012]*) 7763 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7764 10.*) 7765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7766 esac 7767 ;; 7768 esac 7769 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7770 _lt_dar_single_mod='$single_module' 7771 fi 7772 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7773 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7774 else 7775 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7776 fi 7777 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7778 _lt_dsymutil='~$DSYMUTIL $lib || :' 7779 else 7780 _lt_dsymutil= 7781 fi 7782 ;; 7783 esac 7784 7785ac_ext=c 7786ac_cpp='$CPP $CPPFLAGS' 7787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7789ac_compiler_gnu=$ac_cv_c_compiler_gnu 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7791$as_echo_n "checking how to run the C preprocessor... " >&6; } 7792# On Suns, sometimes $CPP names a directory. 7793if test -n "$CPP" && test -d "$CPP"; then 7794 CPP= 7795fi 7796if test -z "$CPP"; then 7797 if ${ac_cv_prog_CPP+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 # Double quotes because CPP needs to be expanded 7801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7802 do 7803 ac_preproc_ok=false 7804for ac_c_preproc_warn_flag in '' yes 7805do 7806 # Use a header file that comes with gcc, so configuring glibc 7807 # with a fresh cross-compiler works. 7808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7809 # <limits.h> exists even on freestanding compilers. 7810 # On the NeXT, cc -E runs the code through the compiler's parser, 7811 # not just through cpp. "Syntax error" is here to catch this case. 7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7813/* end confdefs.h. */ 7814#ifdef __STDC__ 7815# include <limits.h> 7816#else 7817# include <assert.h> 7818#endif 7819 Syntax error 7820_ACEOF 7821if ac_fn_c_try_cpp "$LINENO"; then : 7822 7823else 7824 # Broken: fails on valid input. 7825continue 7826fi 7827rm -f conftest.err conftest.i conftest.$ac_ext 7828 7829 # OK, works on sane cases. Now check whether nonexistent headers 7830 # can be detected and how. 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833#include <ac_nonexistent.h> 7834_ACEOF 7835if ac_fn_c_try_cpp "$LINENO"; then : 7836 # Broken: success on invalid input. 7837continue 7838else 7839 # Passes both tests. 7840ac_preproc_ok=: 7841break 7842fi 7843rm -f conftest.err conftest.i conftest.$ac_ext 7844 7845done 7846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7847rm -f conftest.i conftest.err conftest.$ac_ext 7848if $ac_preproc_ok; then : 7849 break 7850fi 7851 7852 done 7853 ac_cv_prog_CPP=$CPP 7854 7855fi 7856 CPP=$ac_cv_prog_CPP 7857else 7858 ac_cv_prog_CPP=$CPP 7859fi 7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7861$as_echo "$CPP" >&6; } 7862ac_preproc_ok=false 7863for ac_c_preproc_warn_flag in '' yes 7864do 7865 # Use a header file that comes with gcc, so configuring glibc 7866 # with a fresh cross-compiler works. 7867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7868 # <limits.h> exists even on freestanding compilers. 7869 # On the NeXT, cc -E runs the code through the compiler's parser, 7870 # not just through cpp. "Syntax error" is here to catch this case. 7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872/* end confdefs.h. */ 7873#ifdef __STDC__ 7874# include <limits.h> 7875#else 7876# include <assert.h> 7877#endif 7878 Syntax error 7879_ACEOF 7880if ac_fn_c_try_cpp "$LINENO"; then : 7881 7882else 7883 # Broken: fails on valid input. 7884continue 7885fi 7886rm -f conftest.err conftest.i conftest.$ac_ext 7887 7888 # OK, works on sane cases. Now check whether nonexistent headers 7889 # can be detected and how. 7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7891/* end confdefs.h. */ 7892#include <ac_nonexistent.h> 7893_ACEOF 7894if ac_fn_c_try_cpp "$LINENO"; then : 7895 # Broken: success on invalid input. 7896continue 7897else 7898 # Passes both tests. 7899ac_preproc_ok=: 7900break 7901fi 7902rm -f conftest.err conftest.i conftest.$ac_ext 7903 7904done 7905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7906rm -f conftest.i conftest.err conftest.$ac_ext 7907if $ac_preproc_ok; then : 7908 7909else 7910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7912as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7913See \`config.log' for more details" "$LINENO" 5; } 7914fi 7915 7916ac_ext=c 7917ac_cpp='$CPP $CPPFLAGS' 7918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7920ac_compiler_gnu=$ac_cv_c_compiler_gnu 7921 7922 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7924$as_echo_n "checking for ANSI C header files... " >&6; } 7925if ${ac_cv_header_stdc+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7929/* end confdefs.h. */ 7930#include <stdlib.h> 7931#include <stdarg.h> 7932#include <string.h> 7933#include <float.h> 7934 7935int 7936main () 7937{ 7938 7939 ; 7940 return 0; 7941} 7942_ACEOF 7943if ac_fn_c_try_compile "$LINENO"; then : 7944 ac_cv_header_stdc=yes 7945else 7946 ac_cv_header_stdc=no 7947fi 7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7949 7950if test $ac_cv_header_stdc = yes; then 7951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954#include <string.h> 7955 7956_ACEOF 7957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7958 $EGREP "memchr" >/dev/null 2>&1; then : 7959 7960else 7961 ac_cv_header_stdc=no 7962fi 7963rm -f conftest* 7964 7965fi 7966 7967if test $ac_cv_header_stdc = yes; then 7968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971#include <stdlib.h> 7972 7973_ACEOF 7974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7975 $EGREP "free" >/dev/null 2>&1; then : 7976 7977else 7978 ac_cv_header_stdc=no 7979fi 7980rm -f conftest* 7981 7982fi 7983 7984if test $ac_cv_header_stdc = yes; then 7985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7986 if test "$cross_compiling" = yes; then : 7987 : 7988else 7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990/* end confdefs.h. */ 7991#include <ctype.h> 7992#include <stdlib.h> 7993#if ((' ' & 0x0FF) == 0x020) 7994# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7995# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7996#else 7997# define ISLOWER(c) \ 7998 (('a' <= (c) && (c) <= 'i') \ 7999 || ('j' <= (c) && (c) <= 'r') \ 8000 || ('s' <= (c) && (c) <= 'z')) 8001# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8002#endif 8003 8004#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8005int 8006main () 8007{ 8008 int i; 8009 for (i = 0; i < 256; i++) 8010 if (XOR (islower (i), ISLOWER (i)) 8011 || toupper (i) != TOUPPER (i)) 8012 return 2; 8013 return 0; 8014} 8015_ACEOF 8016if ac_fn_c_try_run "$LINENO"; then : 8017 8018else 8019 ac_cv_header_stdc=no 8020fi 8021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8022 conftest.$ac_objext conftest.beam conftest.$ac_ext 8023fi 8024 8025fi 8026fi 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8028$as_echo "$ac_cv_header_stdc" >&6; } 8029if test $ac_cv_header_stdc = yes; then 8030 8031$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8032 8033fi 8034 8035# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8036for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8037 inttypes.h stdint.h unistd.h 8038do : 8039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8040ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8041" 8042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8043 cat >>confdefs.h <<_ACEOF 8044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8045_ACEOF 8046 8047fi 8048 8049done 8050 8051 8052for ac_header in dlfcn.h 8053do : 8054 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8055" 8056if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8057 cat >>confdefs.h <<_ACEOF 8058#define HAVE_DLFCN_H 1 8059_ACEOF 8060 8061fi 8062 8063done 8064 8065 8066 8067 8068func_stripname_cnf () 8069{ 8070 case ${2} in 8071 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8072 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8073 esac 8074} # func_stripname_cnf 8075 8076 8077 8078 8079 8080# Set options 8081 8082 8083 8084 enable_dlopen=no 8085 8086 8087 enable_win32_dll=no 8088 8089 8090 # Check whether --enable-shared was given. 8091if test "${enable_shared+set}" = set; then : 8092 enableval=$enable_shared; p=${PACKAGE-default} 8093 case $enableval in 8094 yes) enable_shared=yes ;; 8095 no) enable_shared=no ;; 8096 *) 8097 enable_shared=no 8098 # Look at the argument we got. We use all the common list separators. 8099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8100 for pkg in $enableval; do 8101 IFS="$lt_save_ifs" 8102 if test "X$pkg" = "X$p"; then 8103 enable_shared=yes 8104 fi 8105 done 8106 IFS="$lt_save_ifs" 8107 ;; 8108 esac 8109else 8110 enable_shared=yes 8111fi 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 # Check whether --enable-static was given. 8122if test "${enable_static+set}" = set; then : 8123 enableval=$enable_static; p=${PACKAGE-default} 8124 case $enableval in 8125 yes) enable_static=yes ;; 8126 no) enable_static=no ;; 8127 *) 8128 enable_static=no 8129 # Look at the argument we got. We use all the common list separators. 8130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8131 for pkg in $enableval; do 8132 IFS="$lt_save_ifs" 8133 if test "X$pkg" = "X$p"; then 8134 enable_static=yes 8135 fi 8136 done 8137 IFS="$lt_save_ifs" 8138 ;; 8139 esac 8140else 8141 enable_static=yes 8142fi 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153# Check whether --with-pic was given. 8154if test "${with_pic+set}" = set; then : 8155 withval=$with_pic; lt_p=${PACKAGE-default} 8156 case $withval in 8157 yes|no) pic_mode=$withval ;; 8158 *) 8159 pic_mode=default 8160 # Look at the argument we got. We use all the common list separators. 8161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8162 for lt_pkg in $withval; do 8163 IFS="$lt_save_ifs" 8164 if test "X$lt_pkg" = "X$lt_p"; then 8165 pic_mode=yes 8166 fi 8167 done 8168 IFS="$lt_save_ifs" 8169 ;; 8170 esac 8171else 8172 pic_mode=default 8173fi 8174 8175 8176test -z "$pic_mode" && pic_mode=default 8177 8178 8179 8180 8181 8182 8183 8184 # Check whether --enable-fast-install was given. 8185if test "${enable_fast_install+set}" = set; then : 8186 enableval=$enable_fast_install; p=${PACKAGE-default} 8187 case $enableval in 8188 yes) enable_fast_install=yes ;; 8189 no) enable_fast_install=no ;; 8190 *) 8191 enable_fast_install=no 8192 # Look at the argument we got. We use all the common list separators. 8193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8194 for pkg in $enableval; do 8195 IFS="$lt_save_ifs" 8196 if test "X$pkg" = "X$p"; then 8197 enable_fast_install=yes 8198 fi 8199 done 8200 IFS="$lt_save_ifs" 8201 ;; 8202 esac 8203else 8204 enable_fast_install=yes 8205fi 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217# This can be used to rebuild libtool when needed 8218LIBTOOL_DEPS="$ltmain" 8219 8220# Always use our own libtool. 8221LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252test -z "$LN_S" && LN_S="ln -s" 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267if test -n "${ZSH_VERSION+set}" ; then 8268 setopt NO_GLOB_SUBST 8269fi 8270 8271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8272$as_echo_n "checking for objdir... " >&6; } 8273if ${lt_cv_objdir+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 rm -f .libs 2>/dev/null 8277mkdir .libs 2>/dev/null 8278if test -d .libs; then 8279 lt_cv_objdir=.libs 8280else 8281 # MS-DOS does not allow filenames that begin with a dot. 8282 lt_cv_objdir=_libs 8283fi 8284rmdir .libs 2>/dev/null 8285fi 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8287$as_echo "$lt_cv_objdir" >&6; } 8288objdir=$lt_cv_objdir 8289 8290 8291 8292 8293 8294cat >>confdefs.h <<_ACEOF 8295#define LT_OBJDIR "$lt_cv_objdir/" 8296_ACEOF 8297 8298 8299 8300 8301case $host_os in 8302aix3*) 8303 # AIX sometimes has problems with the GCC collect2 program. For some 8304 # reason, if we set the COLLECT_NAMES environment variable, the problems 8305 # vanish in a puff of smoke. 8306 if test "X${COLLECT_NAMES+set}" != Xset; then 8307 COLLECT_NAMES= 8308 export COLLECT_NAMES 8309 fi 8310 ;; 8311esac 8312 8313# Global variables: 8314ofile=libtool 8315can_build_shared=yes 8316 8317# All known linkers require a `.a' archive for static linking (except MSVC, 8318# which needs '.lib'). 8319libext=a 8320 8321with_gnu_ld="$lt_cv_prog_gnu_ld" 8322 8323old_CC="$CC" 8324old_CFLAGS="$CFLAGS" 8325 8326# Set sane defaults for various variables 8327test -z "$CC" && CC=cc 8328test -z "$LTCC" && LTCC=$CC 8329test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8330test -z "$LD" && LD=ld 8331test -z "$ac_objext" && ac_objext=o 8332 8333for cc_temp in $compiler""; do 8334 case $cc_temp in 8335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8337 \-*) ;; 8338 *) break;; 8339 esac 8340done 8341cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8342 8343 8344# Only perform the check for file, if the check method requires it 8345test -z "$MAGIC_CMD" && MAGIC_CMD=file 8346case $deplibs_check_method in 8347file_magic*) 8348 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8350$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8351if ${lt_cv_path_MAGIC_CMD+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353else 8354 case $MAGIC_CMD in 8355[\\/*] | ?:[\\/]*) 8356 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8357 ;; 8358*) 8359 lt_save_MAGIC_CMD="$MAGIC_CMD" 8360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8361 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8362 for ac_dir in $ac_dummy; do 8363 IFS="$lt_save_ifs" 8364 test -z "$ac_dir" && ac_dir=. 8365 if test -f $ac_dir/${ac_tool_prefix}file; then 8366 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8367 if test -n "$file_magic_test_file"; then 8368 case $deplibs_check_method in 8369 "file_magic "*) 8370 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8372 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8373 $EGREP "$file_magic_regex" > /dev/null; then 8374 : 8375 else 8376 cat <<_LT_EOF 1>&2 8377 8378*** Warning: the command libtool uses to detect shared libraries, 8379*** $file_magic_cmd, produces output that libtool cannot recognize. 8380*** The result is that libtool may fail to recognize shared libraries 8381*** as such. This will affect the creation of libtool libraries that 8382*** depend on shared libraries, but programs linked with such libtool 8383*** libraries will work regardless of this problem. Nevertheless, you 8384*** may want to report the problem to your system manager and/or to 8385*** bug-libtool@gnu.org 8386 8387_LT_EOF 8388 fi ;; 8389 esac 8390 fi 8391 break 8392 fi 8393 done 8394 IFS="$lt_save_ifs" 8395 MAGIC_CMD="$lt_save_MAGIC_CMD" 8396 ;; 8397esac 8398fi 8399 8400MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8401if test -n "$MAGIC_CMD"; then 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8403$as_echo "$MAGIC_CMD" >&6; } 8404else 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8406$as_echo "no" >&6; } 8407fi 8408 8409 8410 8411 8412 8413if test -z "$lt_cv_path_MAGIC_CMD"; then 8414 if test -n "$ac_tool_prefix"; then 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8416$as_echo_n "checking for file... " >&6; } 8417if ${lt_cv_path_MAGIC_CMD+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 case $MAGIC_CMD in 8421[\\/*] | ?:[\\/]*) 8422 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8423 ;; 8424*) 8425 lt_save_MAGIC_CMD="$MAGIC_CMD" 8426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8427 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8428 for ac_dir in $ac_dummy; do 8429 IFS="$lt_save_ifs" 8430 test -z "$ac_dir" && ac_dir=. 8431 if test -f $ac_dir/file; then 8432 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8433 if test -n "$file_magic_test_file"; then 8434 case $deplibs_check_method in 8435 "file_magic "*) 8436 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8438 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8439 $EGREP "$file_magic_regex" > /dev/null; then 8440 : 8441 else 8442 cat <<_LT_EOF 1>&2 8443 8444*** Warning: the command libtool uses to detect shared libraries, 8445*** $file_magic_cmd, produces output that libtool cannot recognize. 8446*** The result is that libtool may fail to recognize shared libraries 8447*** as such. This will affect the creation of libtool libraries that 8448*** depend on shared libraries, but programs linked with such libtool 8449*** libraries will work regardless of this problem. Nevertheless, you 8450*** may want to report the problem to your system manager and/or to 8451*** bug-libtool@gnu.org 8452 8453_LT_EOF 8454 fi ;; 8455 esac 8456 fi 8457 break 8458 fi 8459 done 8460 IFS="$lt_save_ifs" 8461 MAGIC_CMD="$lt_save_MAGIC_CMD" 8462 ;; 8463esac 8464fi 8465 8466MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8467if test -n "$MAGIC_CMD"; then 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8469$as_echo "$MAGIC_CMD" >&6; } 8470else 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8472$as_echo "no" >&6; } 8473fi 8474 8475 8476 else 8477 MAGIC_CMD=: 8478 fi 8479fi 8480 8481 fi 8482 ;; 8483esac 8484 8485# Use C for the default configuration in the libtool script 8486 8487lt_save_CC="$CC" 8488ac_ext=c 8489ac_cpp='$CPP $CPPFLAGS' 8490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8492ac_compiler_gnu=$ac_cv_c_compiler_gnu 8493 8494 8495# Source file extension for C test sources. 8496ac_ext=c 8497 8498# Object file extension for compiled C test sources. 8499objext=o 8500objext=$objext 8501 8502# Code to be used in simple compile tests 8503lt_simple_compile_test_code="int some_variable = 0;" 8504 8505# Code to be used in simple link tests 8506lt_simple_link_test_code='int main(){return(0);}' 8507 8508 8509 8510 8511 8512 8513 8514# If no C compiler was specified, use CC. 8515LTCC=${LTCC-"$CC"} 8516 8517# If no C compiler flags were specified, use CFLAGS. 8518LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8519 8520# Allow CC to be a program name with arguments. 8521compiler=$CC 8522 8523# Save the default compiler, since it gets overwritten when the other 8524# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8525compiler_DEFAULT=$CC 8526 8527# save warnings/boilerplate of simple test code 8528ac_outfile=conftest.$ac_objext 8529echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8530eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8531_lt_compiler_boilerplate=`cat conftest.err` 8532$RM conftest* 8533 8534ac_outfile=conftest.$ac_objext 8535echo "$lt_simple_link_test_code" >conftest.$ac_ext 8536eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8537_lt_linker_boilerplate=`cat conftest.err` 8538$RM -r conftest* 8539 8540 8541if test -n "$compiler"; then 8542 8543lt_prog_compiler_no_builtin_flag= 8544 8545if test "$GCC" = yes; then 8546 case $cc_basename in 8547 nvcc*) 8548 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8549 *) 8550 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8551 esac 8552 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8554$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8555if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 lt_cv_prog_compiler_rtti_exceptions=no 8559 ac_outfile=conftest.$ac_objext 8560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8561 lt_compiler_flag="-fno-rtti -fno-exceptions" 8562 # Insert the option either (1) after the last *FLAGS variable, or 8563 # (2) before a word containing "conftest.", or (3) at the end. 8564 # Note that $ac_compile itself does not contain backslashes and begins 8565 # with a dollar sign (not a hyphen), so the echo should work correctly. 8566 # The option is referenced via a variable to avoid confusing sed. 8567 lt_compile=`echo "$ac_compile" | $SED \ 8568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8570 -e 's:$: $lt_compiler_flag:'` 8571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8572 (eval "$lt_compile" 2>conftest.err) 8573 ac_status=$? 8574 cat conftest.err >&5 8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8576 if (exit $ac_status) && test -s "$ac_outfile"; then 8577 # The compiler can only warn and ignore the option if not recognized 8578 # So say no if there are warnings other than the usual output. 8579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8582 lt_cv_prog_compiler_rtti_exceptions=yes 8583 fi 8584 fi 8585 $RM conftest* 8586 8587fi 8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8589$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8590 8591if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8593else 8594 : 8595fi 8596 8597fi 8598 8599 8600 8601 8602 8603 8604 lt_prog_compiler_wl= 8605lt_prog_compiler_pic= 8606lt_prog_compiler_static= 8607 8608 8609 if test "$GCC" = yes; then 8610 lt_prog_compiler_wl='-Wl,' 8611 lt_prog_compiler_static='-static' 8612 8613 case $host_os in 8614 aix*) 8615 # All AIX code is PIC. 8616 if test "$host_cpu" = ia64; then 8617 # AIX 5 now supports IA64 processor 8618 lt_prog_compiler_static='-Bstatic' 8619 fi 8620 ;; 8621 8622 amigaos*) 8623 case $host_cpu in 8624 powerpc) 8625 # see comment about AmigaOS4 .so support 8626 lt_prog_compiler_pic='-fPIC' 8627 ;; 8628 m68k) 8629 # FIXME: we need at least 68020 code to build shared libraries, but 8630 # adding the `-m68020' flag to GCC prevents building anything better, 8631 # like `-m68040'. 8632 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8633 ;; 8634 esac 8635 ;; 8636 8637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8638 # PIC is the default for these OSes. 8639 ;; 8640 8641 mingw* | cygwin* | pw32* | os2* | cegcc*) 8642 # This hack is so that the source file can tell whether it is being 8643 # built for inclusion in a dll (and should export symbols for example). 8644 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8645 # (--disable-auto-import) libraries 8646 lt_prog_compiler_pic='-DDLL_EXPORT' 8647 ;; 8648 8649 darwin* | rhapsody*) 8650 # PIC is the default on this platform 8651 # Common symbols not allowed in MH_DYLIB files 8652 lt_prog_compiler_pic='-fno-common' 8653 ;; 8654 8655 haiku*) 8656 # PIC is the default for Haiku. 8657 # The "-static" flag exists, but is broken. 8658 lt_prog_compiler_static= 8659 ;; 8660 8661 hpux*) 8662 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8663 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8664 # sets the default TLS model and affects inlining. 8665 case $host_cpu in 8666 hppa*64*) 8667 # +Z the default 8668 ;; 8669 *) 8670 lt_prog_compiler_pic='-fPIC' 8671 ;; 8672 esac 8673 ;; 8674 8675 interix[3-9]*) 8676 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8677 # Instead, we relocate shared libraries at runtime. 8678 ;; 8679 8680 msdosdjgpp*) 8681 # Just because we use GCC doesn't mean we suddenly get shared libraries 8682 # on systems that don't support them. 8683 lt_prog_compiler_can_build_shared=no 8684 enable_shared=no 8685 ;; 8686 8687 *nto* | *qnx*) 8688 # QNX uses GNU C++, but need to define -shared option too, otherwise 8689 # it will coredump. 8690 lt_prog_compiler_pic='-fPIC -shared' 8691 ;; 8692 8693 sysv4*MP*) 8694 if test -d /usr/nec; then 8695 lt_prog_compiler_pic=-Kconform_pic 8696 fi 8697 ;; 8698 8699 *) 8700 lt_prog_compiler_pic='-fPIC' 8701 ;; 8702 esac 8703 8704 case $cc_basename in 8705 nvcc*) # Cuda Compiler Driver 2.2 8706 lt_prog_compiler_wl='-Xlinker ' 8707 if test -n "$lt_prog_compiler_pic"; then 8708 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8709 fi 8710 ;; 8711 esac 8712 else 8713 # PORTME Check for flag to pass linker flags through the system compiler. 8714 case $host_os in 8715 aix*) 8716 lt_prog_compiler_wl='-Wl,' 8717 if test "$host_cpu" = ia64; then 8718 # AIX 5 now supports IA64 processor 8719 lt_prog_compiler_static='-Bstatic' 8720 else 8721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8722 fi 8723 ;; 8724 8725 mingw* | cygwin* | pw32* | os2* | cegcc*) 8726 # This hack is so that the source file can tell whether it is being 8727 # built for inclusion in a dll (and should export symbols for example). 8728 lt_prog_compiler_pic='-DDLL_EXPORT' 8729 ;; 8730 8731 hpux9* | hpux10* | hpux11*) 8732 lt_prog_compiler_wl='-Wl,' 8733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8734 # not for PA HP-UX. 8735 case $host_cpu in 8736 hppa*64*|ia64*) 8737 # +Z the default 8738 ;; 8739 *) 8740 lt_prog_compiler_pic='+Z' 8741 ;; 8742 esac 8743 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8744 lt_prog_compiler_static='${wl}-a ${wl}archive' 8745 ;; 8746 8747 irix5* | irix6* | nonstopux*) 8748 lt_prog_compiler_wl='-Wl,' 8749 # PIC (with -KPIC) is the default. 8750 lt_prog_compiler_static='-non_shared' 8751 ;; 8752 8753 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8754 case $cc_basename in 8755 # old Intel for x86_64 which still supported -KPIC. 8756 ecc*) 8757 lt_prog_compiler_wl='-Wl,' 8758 lt_prog_compiler_pic='-KPIC' 8759 lt_prog_compiler_static='-static' 8760 ;; 8761 # icc used to be incompatible with GCC. 8762 # ICC 10 doesn't accept -KPIC any more. 8763 icc* | ifort*) 8764 lt_prog_compiler_wl='-Wl,' 8765 lt_prog_compiler_pic='-fPIC' 8766 lt_prog_compiler_static='-static' 8767 ;; 8768 # Lahey Fortran 8.1. 8769 lf95*) 8770 lt_prog_compiler_wl='-Wl,' 8771 lt_prog_compiler_pic='--shared' 8772 lt_prog_compiler_static='--static' 8773 ;; 8774 nagfor*) 8775 # NAG Fortran compiler 8776 lt_prog_compiler_wl='-Wl,-Wl,,' 8777 lt_prog_compiler_pic='-PIC' 8778 lt_prog_compiler_static='-Bstatic' 8779 ;; 8780 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8781 # Portland Group compilers (*not* the Pentium gcc compiler, 8782 # which looks to be a dead project) 8783 lt_prog_compiler_wl='-Wl,' 8784 lt_prog_compiler_pic='-fpic' 8785 lt_prog_compiler_static='-Bstatic' 8786 ;; 8787 ccc*) 8788 lt_prog_compiler_wl='-Wl,' 8789 # All Alpha code is PIC. 8790 lt_prog_compiler_static='-non_shared' 8791 ;; 8792 xl* | bgxl* | bgf* | mpixl*) 8793 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8794 lt_prog_compiler_wl='-Wl,' 8795 lt_prog_compiler_pic='-qpic' 8796 lt_prog_compiler_static='-qstaticlink' 8797 ;; 8798 *) 8799 case `$CC -V 2>&1 | sed 5q` in 8800 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8801 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8802 lt_prog_compiler_pic='-KPIC' 8803 lt_prog_compiler_static='-Bstatic' 8804 lt_prog_compiler_wl='' 8805 ;; 8806 *Sun\ F* | *Sun*Fortran*) 8807 lt_prog_compiler_pic='-KPIC' 8808 lt_prog_compiler_static='-Bstatic' 8809 lt_prog_compiler_wl='-Qoption ld ' 8810 ;; 8811 *Sun\ C*) 8812 # Sun C 5.9 8813 lt_prog_compiler_pic='-KPIC' 8814 lt_prog_compiler_static='-Bstatic' 8815 lt_prog_compiler_wl='-Wl,' 8816 ;; 8817 *Intel*\ [CF]*Compiler*) 8818 lt_prog_compiler_wl='-Wl,' 8819 lt_prog_compiler_pic='-fPIC' 8820 lt_prog_compiler_static='-static' 8821 ;; 8822 *Portland\ Group*) 8823 lt_prog_compiler_wl='-Wl,' 8824 lt_prog_compiler_pic='-fpic' 8825 lt_prog_compiler_static='-Bstatic' 8826 ;; 8827 esac 8828 ;; 8829 esac 8830 ;; 8831 8832 newsos6) 8833 lt_prog_compiler_pic='-KPIC' 8834 lt_prog_compiler_static='-Bstatic' 8835 ;; 8836 8837 *nto* | *qnx*) 8838 # QNX uses GNU C++, but need to define -shared option too, otherwise 8839 # it will coredump. 8840 lt_prog_compiler_pic='-fPIC -shared' 8841 ;; 8842 8843 osf3* | osf4* | osf5*) 8844 lt_prog_compiler_wl='-Wl,' 8845 # All OSF/1 code is PIC. 8846 lt_prog_compiler_static='-non_shared' 8847 ;; 8848 8849 rdos*) 8850 lt_prog_compiler_static='-non_shared' 8851 ;; 8852 8853 solaris*) 8854 lt_prog_compiler_pic='-KPIC' 8855 lt_prog_compiler_static='-Bstatic' 8856 case $cc_basename in 8857 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8858 lt_prog_compiler_wl='-Qoption ld ';; 8859 *) 8860 lt_prog_compiler_wl='-Wl,';; 8861 esac 8862 ;; 8863 8864 sunos4*) 8865 lt_prog_compiler_wl='-Qoption ld ' 8866 lt_prog_compiler_pic='-PIC' 8867 lt_prog_compiler_static='-Bstatic' 8868 ;; 8869 8870 sysv4 | sysv4.2uw2* | sysv4.3*) 8871 lt_prog_compiler_wl='-Wl,' 8872 lt_prog_compiler_pic='-KPIC' 8873 lt_prog_compiler_static='-Bstatic' 8874 ;; 8875 8876 sysv4*MP*) 8877 if test -d /usr/nec ;then 8878 lt_prog_compiler_pic='-Kconform_pic' 8879 lt_prog_compiler_static='-Bstatic' 8880 fi 8881 ;; 8882 8883 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8884 lt_prog_compiler_wl='-Wl,' 8885 lt_prog_compiler_pic='-KPIC' 8886 lt_prog_compiler_static='-Bstatic' 8887 ;; 8888 8889 unicos*) 8890 lt_prog_compiler_wl='-Wl,' 8891 lt_prog_compiler_can_build_shared=no 8892 ;; 8893 8894 uts4*) 8895 lt_prog_compiler_pic='-pic' 8896 lt_prog_compiler_static='-Bstatic' 8897 ;; 8898 8899 *) 8900 lt_prog_compiler_can_build_shared=no 8901 ;; 8902 esac 8903 fi 8904 8905case $host_os in 8906 # For platforms which do not support PIC, -DPIC is meaningless: 8907 *djgpp*) 8908 lt_prog_compiler_pic= 8909 ;; 8910 *) 8911 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8912 ;; 8913esac 8914 8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8916$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8917if ${lt_cv_prog_compiler_pic+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8921fi 8922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8923$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8924lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8925 8926# 8927# Check to make sure the PIC flag actually works. 8928# 8929if test -n "$lt_prog_compiler_pic"; then 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8931$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8932if ${lt_cv_prog_compiler_pic_works+:} false; then : 8933 $as_echo_n "(cached) " >&6 8934else 8935 lt_cv_prog_compiler_pic_works=no 8936 ac_outfile=conftest.$ac_objext 8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8938 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8939 # Insert the option either (1) after the last *FLAGS variable, or 8940 # (2) before a word containing "conftest.", or (3) at the end. 8941 # Note that $ac_compile itself does not contain backslashes and begins 8942 # with a dollar sign (not a hyphen), so the echo should work correctly. 8943 # The option is referenced via a variable to avoid confusing sed. 8944 lt_compile=`echo "$ac_compile" | $SED \ 8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8947 -e 's:$: $lt_compiler_flag:'` 8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8949 (eval "$lt_compile" 2>conftest.err) 8950 ac_status=$? 8951 cat conftest.err >&5 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 if (exit $ac_status) && test -s "$ac_outfile"; then 8954 # The compiler can only warn and ignore the option if not recognized 8955 # So say no if there are warnings other than the usual output. 8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8959 lt_cv_prog_compiler_pic_works=yes 8960 fi 8961 fi 8962 $RM conftest* 8963 8964fi 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8966$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8967 8968if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8969 case $lt_prog_compiler_pic in 8970 "" | " "*) ;; 8971 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8972 esac 8973else 8974 lt_prog_compiler_pic= 8975 lt_prog_compiler_can_build_shared=no 8976fi 8977 8978fi 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990# 8991# Check to make sure the static flag actually works. 8992# 8993wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8995$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8996if ${lt_cv_prog_compiler_static_works+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998else 8999 lt_cv_prog_compiler_static_works=no 9000 save_LDFLAGS="$LDFLAGS" 9001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9002 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9004 # The linker can only warn and ignore the option if not recognized 9005 # So say no if there are warnings 9006 if test -s conftest.err; then 9007 # Append any errors to the config.log. 9008 cat conftest.err 1>&5 9009 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9011 if diff conftest.exp conftest.er2 >/dev/null; then 9012 lt_cv_prog_compiler_static_works=yes 9013 fi 9014 else 9015 lt_cv_prog_compiler_static_works=yes 9016 fi 9017 fi 9018 $RM -r conftest* 9019 LDFLAGS="$save_LDFLAGS" 9020 9021fi 9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9023$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9024 9025if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9026 : 9027else 9028 lt_prog_compiler_static= 9029fi 9030 9031 9032 9033 9034 9035 9036 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9038$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9039if ${lt_cv_prog_compiler_c_o+:} false; then : 9040 $as_echo_n "(cached) " >&6 9041else 9042 lt_cv_prog_compiler_c_o=no 9043 $RM -r conftest 2>/dev/null 9044 mkdir conftest 9045 cd conftest 9046 mkdir out 9047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9048 9049 lt_compiler_flag="-o out/conftest2.$ac_objext" 9050 # Insert the option either (1) after the last *FLAGS variable, or 9051 # (2) before a word containing "conftest.", or (3) at the end. 9052 # Note that $ac_compile itself does not contain backslashes and begins 9053 # with a dollar sign (not a hyphen), so the echo should work correctly. 9054 lt_compile=`echo "$ac_compile" | $SED \ 9055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9057 -e 's:$: $lt_compiler_flag:'` 9058 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9059 (eval "$lt_compile" 2>out/conftest.err) 9060 ac_status=$? 9061 cat out/conftest.err >&5 9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9063 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9064 then 9065 # The compiler can only warn and ignore the option if not recognized 9066 # So say no if there are warnings 9067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9070 lt_cv_prog_compiler_c_o=yes 9071 fi 9072 fi 9073 chmod u+w . 2>&5 9074 $RM conftest* 9075 # SGI C++ compiler will create directory out/ii_files/ for 9076 # template instantiation 9077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9078 $RM out/* && rmdir out 9079 cd .. 9080 $RM -r conftest 9081 $RM conftest* 9082 9083fi 9084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9085$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9086 9087 9088 9089 9090 9091 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9093$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9094if ${lt_cv_prog_compiler_c_o+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 lt_cv_prog_compiler_c_o=no 9098 $RM -r conftest 2>/dev/null 9099 mkdir conftest 9100 cd conftest 9101 mkdir out 9102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9103 9104 lt_compiler_flag="-o out/conftest2.$ac_objext" 9105 # Insert the option either (1) after the last *FLAGS variable, or 9106 # (2) before a word containing "conftest.", or (3) at the end. 9107 # Note that $ac_compile itself does not contain backslashes and begins 9108 # with a dollar sign (not a hyphen), so the echo should work correctly. 9109 lt_compile=`echo "$ac_compile" | $SED \ 9110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9112 -e 's:$: $lt_compiler_flag:'` 9113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9114 (eval "$lt_compile" 2>out/conftest.err) 9115 ac_status=$? 9116 cat out/conftest.err >&5 9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9118 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9119 then 9120 # The compiler can only warn and ignore the option if not recognized 9121 # So say no if there are warnings 9122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9125 lt_cv_prog_compiler_c_o=yes 9126 fi 9127 fi 9128 chmod u+w . 2>&5 9129 $RM conftest* 9130 # SGI C++ compiler will create directory out/ii_files/ for 9131 # template instantiation 9132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9133 $RM out/* && rmdir out 9134 cd .. 9135 $RM -r conftest 9136 $RM conftest* 9137 9138fi 9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9140$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9141 9142 9143 9144 9145hard_links="nottested" 9146if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9147 # do not overwrite the value of need_locks provided by the user 9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9149$as_echo_n "checking if we can lock with hard links... " >&6; } 9150 hard_links=yes 9151 $RM conftest* 9152 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9153 touch conftest.a 9154 ln conftest.a conftest.b 2>&5 || hard_links=no 9155 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9157$as_echo "$hard_links" >&6; } 9158 if test "$hard_links" = no; then 9159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9160$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9161 need_locks=warn 9162 fi 9163else 9164 need_locks=no 9165fi 9166 9167 9168 9169 9170 9171 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9173$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9174 9175 runpath_var= 9176 allow_undefined_flag= 9177 always_export_symbols=no 9178 archive_cmds= 9179 archive_expsym_cmds= 9180 compiler_needs_object=no 9181 enable_shared_with_static_runtimes=no 9182 export_dynamic_flag_spec= 9183 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9184 hardcode_automatic=no 9185 hardcode_direct=no 9186 hardcode_direct_absolute=no 9187 hardcode_libdir_flag_spec= 9188 hardcode_libdir_separator= 9189 hardcode_minus_L=no 9190 hardcode_shlibpath_var=unsupported 9191 inherit_rpath=no 9192 link_all_deplibs=unknown 9193 module_cmds= 9194 module_expsym_cmds= 9195 old_archive_from_new_cmds= 9196 old_archive_from_expsyms_cmds= 9197 thread_safe_flag_spec= 9198 whole_archive_flag_spec= 9199 # include_expsyms should be a list of space-separated symbols to be *always* 9200 # included in the symbol list 9201 include_expsyms= 9202 # exclude_expsyms can be an extended regexp of symbols to exclude 9203 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9205 # as well as any symbol that contains `d'. 9206 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9208 # platforms (ab)use it in PIC code, but their linkers get confused if 9209 # the symbol is explicitly referenced. Since portable code cannot 9210 # rely on this symbol name, it's probably fine to never include it in 9211 # preloaded symbol tables. 9212 # Exclude shared library initialization/finalization symbols. 9213 extract_expsyms_cmds= 9214 9215 case $host_os in 9216 cygwin* | mingw* | pw32* | cegcc*) 9217 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9218 # When not using gcc, we currently assume that we are using 9219 # Microsoft Visual C++. 9220 if test "$GCC" != yes; then 9221 with_gnu_ld=no 9222 fi 9223 ;; 9224 interix*) 9225 # we just hope/assume this is gcc and not c89 (= MSVC++) 9226 with_gnu_ld=yes 9227 ;; 9228 openbsd*) 9229 with_gnu_ld=no 9230 ;; 9231 linux* | k*bsd*-gnu | gnu*) 9232 link_all_deplibs=no 9233 ;; 9234 esac 9235 9236 ld_shlibs=yes 9237 9238 # On some targets, GNU ld is compatible enough with the native linker 9239 # that we're better off using the native interface for both. 9240 lt_use_gnu_ld_interface=no 9241 if test "$with_gnu_ld" = yes; then 9242 case $host_os in 9243 aix*) 9244 # The AIX port of GNU ld has always aspired to compatibility 9245 # with the native linker. However, as the warning in the GNU ld 9246 # block says, versions before 2.19.5* couldn't really create working 9247 # shared libraries, regardless of the interface used. 9248 case `$LD -v 2>&1` in 9249 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9250 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9251 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9252 *) 9253 lt_use_gnu_ld_interface=yes 9254 ;; 9255 esac 9256 ;; 9257 *) 9258 lt_use_gnu_ld_interface=yes 9259 ;; 9260 esac 9261 fi 9262 9263 if test "$lt_use_gnu_ld_interface" = yes; then 9264 # If archive_cmds runs LD, not CC, wlarc should be empty 9265 wlarc='${wl}' 9266 9267 # Set some defaults for GNU ld with shared library support. These 9268 # are reset later if shared libraries are not supported. Putting them 9269 # here allows them to be overridden if necessary. 9270 runpath_var=LD_RUN_PATH 9271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9272 export_dynamic_flag_spec='${wl}--export-dynamic' 9273 # ancient GNU ld didn't support --whole-archive et. al. 9274 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9276 else 9277 whole_archive_flag_spec= 9278 fi 9279 supports_anon_versioning=no 9280 case `$LD -v 2>&1` in 9281 *GNU\ gold*) supports_anon_versioning=yes ;; 9282 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9285 *\ 2.11.*) ;; # other 2.11 versions 9286 *) supports_anon_versioning=yes ;; 9287 esac 9288 9289 # See if GNU ld supports shared libraries. 9290 case $host_os in 9291 aix[3-9]*) 9292 # On AIX/PPC, the GNU linker is very broken 9293 if test "$host_cpu" != ia64; then 9294 ld_shlibs=no 9295 cat <<_LT_EOF 1>&2 9296 9297*** Warning: the GNU linker, at least up to release 2.19, is reported 9298*** to be unable to reliably create shared libraries on AIX. 9299*** Therefore, libtool is disabling shared libraries support. If you 9300*** really care for shared libraries, you may want to install binutils 9301*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9302*** You will then need to restart the configuration process. 9303 9304_LT_EOF 9305 fi 9306 ;; 9307 9308 amigaos*) 9309 case $host_cpu in 9310 powerpc) 9311 # see comment about AmigaOS4 .so support 9312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9313 archive_expsym_cmds='' 9314 ;; 9315 m68k) 9316 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)' 9317 hardcode_libdir_flag_spec='-L$libdir' 9318 hardcode_minus_L=yes 9319 ;; 9320 esac 9321 ;; 9322 9323 beos*) 9324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9325 allow_undefined_flag=unsupported 9326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9327 # support --undefined. This deserves some investigation. FIXME 9328 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9329 else 9330 ld_shlibs=no 9331 fi 9332 ;; 9333 9334 cygwin* | mingw* | pw32* | cegcc*) 9335 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9336 # as there is no search path for DLLs. 9337 hardcode_libdir_flag_spec='-L$libdir' 9338 export_dynamic_flag_spec='${wl}--export-all-symbols' 9339 allow_undefined_flag=unsupported 9340 always_export_symbols=no 9341 enable_shared_with_static_runtimes=yes 9342 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' 9343 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9344 9345 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9347 # If the export-symbols file already is a .def file (1st line 9348 # is EXPORTS), use it as is; otherwise, prepend... 9349 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9350 cp $export_symbols $output_objdir/$soname.def; 9351 else 9352 echo EXPORTS > $output_objdir/$soname.def; 9353 cat $export_symbols >> $output_objdir/$soname.def; 9354 fi~ 9355 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9356 else 9357 ld_shlibs=no 9358 fi 9359 ;; 9360 9361 haiku*) 9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9363 link_all_deplibs=yes 9364 ;; 9365 9366 interix[3-9]*) 9367 hardcode_direct=no 9368 hardcode_shlibpath_var=no 9369 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9370 export_dynamic_flag_spec='${wl}-E' 9371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9372 # Instead, shared libraries are loaded at an image base (0x10000000 by 9373 # default) and relocated if they conflict, which is a slow very memory 9374 # consuming and fragmenting process. To avoid this, we pick a random, 9375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9376 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9378 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' 9379 ;; 9380 9381 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9382 tmp_diet=no 9383 if test "$host_os" = linux-dietlibc; then 9384 case $cc_basename in 9385 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9386 esac 9387 fi 9388 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9389 && test "$tmp_diet" = no 9390 then 9391 tmp_addflag=' $pic_flag' 9392 tmp_sharedflag='-shared' 9393 case $cc_basename,$host_cpu in 9394 pgcc*) # Portland Group C compiler 9395 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' 9396 tmp_addflag=' $pic_flag' 9397 ;; 9398 pgf77* | pgf90* | pgf95* | pgfortran*) 9399 # Portland Group f77 and f90 compilers 9400 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' 9401 tmp_addflag=' $pic_flag -Mnomain' ;; 9402 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9403 tmp_addflag=' -i_dynamic' ;; 9404 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9405 tmp_addflag=' -i_dynamic -nofor_main' ;; 9406 ifc* | ifort*) # Intel Fortran compiler 9407 tmp_addflag=' -nofor_main' ;; 9408 lf95*) # Lahey Fortran 8.1 9409 whole_archive_flag_spec= 9410 tmp_sharedflag='--shared' ;; 9411 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9412 tmp_sharedflag='-qmkshrobj' 9413 tmp_addflag= ;; 9414 nvcc*) # Cuda Compiler Driver 2.2 9415 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' 9416 compiler_needs_object=yes 9417 ;; 9418 esac 9419 case `$CC -V 2>&1 | sed 5q` in 9420 *Sun\ C*) # Sun C 5.9 9421 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' 9422 compiler_needs_object=yes 9423 tmp_sharedflag='-G' ;; 9424 *Sun\ F*) # Sun Fortran 8.3 9425 tmp_sharedflag='-G' ;; 9426 esac 9427 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9428 9429 if test "x$supports_anon_versioning" = xyes; then 9430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9432 echo "local: *; };" >> $output_objdir/$libname.ver~ 9433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9434 fi 9435 9436 case $cc_basename in 9437 xlf* | bgf* | bgxlf* | mpixlf*) 9438 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9439 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9441 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9442 if test "x$supports_anon_versioning" = xyes; then 9443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9445 echo "local: *; };" >> $output_objdir/$libname.ver~ 9446 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9447 fi 9448 ;; 9449 esac 9450 else 9451 ld_shlibs=no 9452 fi 9453 ;; 9454 9455 netbsd* | netbsdelf*-gnu) 9456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9458 wlarc= 9459 else 9460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9461 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9462 fi 9463 ;; 9464 9465 solaris*) 9466 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9467 ld_shlibs=no 9468 cat <<_LT_EOF 1>&2 9469 9470*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9471*** create shared libraries on Solaris systems. Therefore, libtool 9472*** is disabling shared libraries support. We urge you to upgrade GNU 9473*** binutils to release 2.9.1 or newer. Another option is to modify 9474*** your PATH or compiler configuration so that the native linker is 9475*** used, and then restart. 9476 9477_LT_EOF 9478 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9481 else 9482 ld_shlibs=no 9483 fi 9484 ;; 9485 9486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9487 case `$LD -v 2>&1` in 9488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9489 ld_shlibs=no 9490 cat <<_LT_EOF 1>&2 9491 9492*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9493*** reliably create shared libraries on SCO systems. Therefore, libtool 9494*** is disabling shared libraries support. We urge you to upgrade GNU 9495*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9496*** your PATH or compiler configuration so that the native linker is 9497*** used, and then restart. 9498 9499_LT_EOF 9500 ;; 9501 *) 9502 # For security reasons, it is highly recommended that you always 9503 # use absolute paths for naming shared libraries, and exclude the 9504 # DT_RUNPATH tag from executables and libraries. But doing so 9505 # requires that you compile everything twice, which is a pain. 9506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9510 else 9511 ld_shlibs=no 9512 fi 9513 ;; 9514 esac 9515 ;; 9516 9517 sunos4*) 9518 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9519 wlarc= 9520 hardcode_direct=yes 9521 hardcode_shlibpath_var=no 9522 ;; 9523 9524 *) 9525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9527 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9528 else 9529 ld_shlibs=no 9530 fi 9531 ;; 9532 esac 9533 9534 if test "$ld_shlibs" = no; then 9535 runpath_var= 9536 hardcode_libdir_flag_spec= 9537 export_dynamic_flag_spec= 9538 whole_archive_flag_spec= 9539 fi 9540 else 9541 # PORTME fill in a description of your system's linker (not GNU ld) 9542 case $host_os in 9543 aix3*) 9544 allow_undefined_flag=unsupported 9545 always_export_symbols=yes 9546 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' 9547 # Note: this linker hardcodes the directories in LIBPATH if there 9548 # are no directories specified by -L. 9549 hardcode_minus_L=yes 9550 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9551 # Neither direct hardcoding nor static linking is supported with a 9552 # broken collect2. 9553 hardcode_direct=unsupported 9554 fi 9555 ;; 9556 9557 aix[4-9]*) 9558 if test "$host_cpu" = ia64; then 9559 # On IA64, the linker does run time linking by default, so we don't 9560 # have to do anything special. 9561 aix_use_runtimelinking=no 9562 exp_sym_flag='-Bexport' 9563 no_entry_flag="" 9564 else 9565 # If we're using GNU nm, then we don't want the "-C" option. 9566 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9567 # Also, AIX nm treats weak defined symbols like other global 9568 # defined symbols, whereas GNU nm marks them as "W". 9569 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9570 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9571 else 9572 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9573 fi 9574 aix_use_runtimelinking=no 9575 9576 # Test if we are trying to use run time linking or normal 9577 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9578 # need to do runtime linking. 9579 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9580 for ld_flag in $LDFLAGS; do 9581 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9582 aix_use_runtimelinking=yes 9583 break 9584 fi 9585 done 9586 ;; 9587 esac 9588 9589 exp_sym_flag='-bexport' 9590 no_entry_flag='-bnoentry' 9591 fi 9592 9593 # When large executables or shared objects are built, AIX ld can 9594 # have problems creating the table of contents. If linking a library 9595 # or program results in "error TOC overflow" add -mminimal-toc to 9596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9598 9599 archive_cmds='' 9600 hardcode_direct=yes 9601 hardcode_direct_absolute=yes 9602 hardcode_libdir_separator=':' 9603 link_all_deplibs=yes 9604 file_list_spec='${wl}-f,' 9605 9606 if test "$GCC" = yes; then 9607 case $host_os in aix4.[012]|aix4.[012].*) 9608 # We only want to do this on AIX 4.2 and lower, the check 9609 # below for broken collect2 doesn't work under 4.3+ 9610 collect2name=`${CC} -print-prog-name=collect2` 9611 if test -f "$collect2name" && 9612 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9613 then 9614 # We have reworked collect2 9615 : 9616 else 9617 # We have old collect2 9618 hardcode_direct=unsupported 9619 # It fails to find uninstalled libraries when the uninstalled 9620 # path is not listed in the libpath. Setting hardcode_minus_L 9621 # to unsupported forces relinking 9622 hardcode_minus_L=yes 9623 hardcode_libdir_flag_spec='-L$libdir' 9624 hardcode_libdir_separator= 9625 fi 9626 ;; 9627 esac 9628 shared_flag='-shared' 9629 if test "$aix_use_runtimelinking" = yes; then 9630 shared_flag="$shared_flag "'${wl}-G' 9631 fi 9632 link_all_deplibs=no 9633 else 9634 # not using gcc 9635 if test "$host_cpu" = ia64; then 9636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9637 # chokes on -Wl,-G. The following line is correct: 9638 shared_flag='-G' 9639 else 9640 if test "$aix_use_runtimelinking" = yes; then 9641 shared_flag='${wl}-G' 9642 else 9643 shared_flag='${wl}-bM:SRE' 9644 fi 9645 fi 9646 fi 9647 9648 export_dynamic_flag_spec='${wl}-bexpall' 9649 # It seems that -bexpall does not export symbols beginning with 9650 # underscore (_), so it is better to generate a list of symbols to export. 9651 always_export_symbols=yes 9652 if test "$aix_use_runtimelinking" = yes; then 9653 # Warning - without using the other runtime loading flags (-brtl), 9654 # -berok will link without error, but may produce a broken library. 9655 allow_undefined_flag='-berok' 9656 # Determine the default libpath from the value encoded in an 9657 # empty executable. 9658 if test "${lt_cv_aix_libpath+set}" = set; then 9659 aix_libpath=$lt_cv_aix_libpath 9660else 9661 if ${lt_cv_aix_libpath_+:} false; then : 9662 $as_echo_n "(cached) " >&6 9663else 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665/* end confdefs.h. */ 9666 9667int 9668main () 9669{ 9670 9671 ; 9672 return 0; 9673} 9674_ACEOF 9675if ac_fn_c_try_link "$LINENO"; then : 9676 9677 lt_aix_libpath_sed=' 9678 /Import File Strings/,/^$/ { 9679 /^0/ { 9680 s/^0 *\([^ ]*\) *$/\1/ 9681 p 9682 } 9683 }' 9684 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9685 # Check for a 64-bit object if we didn't find anything. 9686 if test -z "$lt_cv_aix_libpath_"; then 9687 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9688 fi 9689fi 9690rm -f core conftest.err conftest.$ac_objext \ 9691 conftest$ac_exeext conftest.$ac_ext 9692 if test -z "$lt_cv_aix_libpath_"; then 9693 lt_cv_aix_libpath_="/usr/lib:/lib" 9694 fi 9695 9696fi 9697 9698 aix_libpath=$lt_cv_aix_libpath_ 9699fi 9700 9701 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9702 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9703 else 9704 if test "$host_cpu" = ia64; then 9705 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9706 allow_undefined_flag="-z nodefs" 9707 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" 9708 else 9709 # Determine the default libpath from the value encoded in an 9710 # empty executable. 9711 if test "${lt_cv_aix_libpath+set}" = set; then 9712 aix_libpath=$lt_cv_aix_libpath 9713else 9714 if ${lt_cv_aix_libpath_+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716else 9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9718/* end confdefs.h. */ 9719 9720int 9721main () 9722{ 9723 9724 ; 9725 return 0; 9726} 9727_ACEOF 9728if ac_fn_c_try_link "$LINENO"; then : 9729 9730 lt_aix_libpath_sed=' 9731 /Import File Strings/,/^$/ { 9732 /^0/ { 9733 s/^0 *\([^ ]*\) *$/\1/ 9734 p 9735 } 9736 }' 9737 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9738 # Check for a 64-bit object if we didn't find anything. 9739 if test -z "$lt_cv_aix_libpath_"; then 9740 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9741 fi 9742fi 9743rm -f core conftest.err conftest.$ac_objext \ 9744 conftest$ac_exeext conftest.$ac_ext 9745 if test -z "$lt_cv_aix_libpath_"; then 9746 lt_cv_aix_libpath_="/usr/lib:/lib" 9747 fi 9748 9749fi 9750 9751 aix_libpath=$lt_cv_aix_libpath_ 9752fi 9753 9754 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9755 # Warning - without using the other run time loading flags, 9756 # -berok will link without error, but may produce a broken library. 9757 no_undefined_flag=' ${wl}-bernotok' 9758 allow_undefined_flag=' ${wl}-berok' 9759 if test "$with_gnu_ld" = yes; then 9760 # We only use this code for GNU lds that support --whole-archive. 9761 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9762 else 9763 # Exported symbols can be pulled into shared objects from archives 9764 whole_archive_flag_spec='$convenience' 9765 fi 9766 archive_cmds_need_lc=yes 9767 # This is similar to how AIX traditionally builds its shared libraries. 9768 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9769 fi 9770 fi 9771 ;; 9772 9773 amigaos*) 9774 case $host_cpu in 9775 powerpc) 9776 # see comment about AmigaOS4 .so support 9777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9778 archive_expsym_cmds='' 9779 ;; 9780 m68k) 9781 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)' 9782 hardcode_libdir_flag_spec='-L$libdir' 9783 hardcode_minus_L=yes 9784 ;; 9785 esac 9786 ;; 9787 9788 bsdi[45]*) 9789 export_dynamic_flag_spec=-rdynamic 9790 ;; 9791 9792 cygwin* | mingw* | pw32* | cegcc*) 9793 # When not using gcc, we currently assume that we are using 9794 # Microsoft Visual C++. 9795 # hardcode_libdir_flag_spec is actually meaningless, as there is 9796 # no search path for DLLs. 9797 case $cc_basename in 9798 cl*) 9799 # Native MSVC 9800 hardcode_libdir_flag_spec=' ' 9801 allow_undefined_flag=unsupported 9802 always_export_symbols=yes 9803 file_list_spec='@' 9804 # Tell ltmain to make .lib files, not .a files. 9805 libext=lib 9806 # Tell ltmain to make .dll files, not .so files. 9807 shrext_cmds=".dll" 9808 # FIXME: Setting linknames here is a bad hack. 9809 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9810 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9811 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9812 else 9813 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9814 fi~ 9815 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9816 linknames=' 9817 # The linker will not automatically build a static lib if we build a DLL. 9818 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9819 enable_shared_with_static_runtimes=yes 9820 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9821 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9822 # Don't use ranlib 9823 old_postinstall_cmds='chmod 644 $oldlib' 9824 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9825 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9826 case $lt_outputfile in 9827 *.exe|*.EXE) ;; 9828 *) 9829 lt_outputfile="$lt_outputfile.exe" 9830 lt_tool_outputfile="$lt_tool_outputfile.exe" 9831 ;; 9832 esac~ 9833 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9834 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9835 $RM "$lt_outputfile.manifest"; 9836 fi' 9837 ;; 9838 *) 9839 # Assume MSVC wrapper 9840 hardcode_libdir_flag_spec=' ' 9841 allow_undefined_flag=unsupported 9842 # Tell ltmain to make .lib files, not .a files. 9843 libext=lib 9844 # Tell ltmain to make .dll files, not .so files. 9845 shrext_cmds=".dll" 9846 # FIXME: Setting linknames here is a bad hack. 9847 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9848 # The linker will automatically build a .lib file if we build a DLL. 9849 old_archive_from_new_cmds='true' 9850 # FIXME: Should let the user specify the lib program. 9851 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9852 enable_shared_with_static_runtimes=yes 9853 ;; 9854 esac 9855 ;; 9856 9857 darwin* | rhapsody*) 9858 9859 9860 archive_cmds_need_lc=no 9861 hardcode_direct=no 9862 hardcode_automatic=yes 9863 hardcode_shlibpath_var=unsupported 9864 if test "$lt_cv_ld_force_load" = "yes"; then 9865 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\"`' 9866 9867 else 9868 whole_archive_flag_spec='' 9869 fi 9870 link_all_deplibs=yes 9871 allow_undefined_flag="$_lt_dar_allow_undefined" 9872 case $cc_basename in 9873 ifort*) _lt_dar_can_shared=yes ;; 9874 *) _lt_dar_can_shared=$GCC ;; 9875 esac 9876 if test "$_lt_dar_can_shared" = "yes"; then 9877 output_verbose_link_cmd=func_echo_all 9878 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9879 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9880 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}" 9881 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}" 9882 9883 else 9884 ld_shlibs=no 9885 fi 9886 9887 ;; 9888 9889 dgux*) 9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9891 hardcode_libdir_flag_spec='-L$libdir' 9892 hardcode_shlibpath_var=no 9893 ;; 9894 9895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9896 # support. Future versions do this automatically, but an explicit c++rt0.o 9897 # does not break anything, and helps significantly (at the cost of a little 9898 # extra space). 9899 freebsd2.2*) 9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9901 hardcode_libdir_flag_spec='-R$libdir' 9902 hardcode_direct=yes 9903 hardcode_shlibpath_var=no 9904 ;; 9905 9906 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9907 freebsd2.*) 9908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9909 hardcode_direct=yes 9910 hardcode_minus_L=yes 9911 hardcode_shlibpath_var=no 9912 ;; 9913 9914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9915 freebsd* | dragonfly*) 9916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9917 hardcode_libdir_flag_spec='-R$libdir' 9918 hardcode_direct=yes 9919 hardcode_shlibpath_var=no 9920 ;; 9921 9922 hpux9*) 9923 if test "$GCC" = yes; then 9924 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9925 else 9926 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9927 fi 9928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9929 hardcode_libdir_separator=: 9930 hardcode_direct=yes 9931 9932 # hardcode_minus_L: Not really in the search PATH, 9933 # but as the default location of the library. 9934 hardcode_minus_L=yes 9935 export_dynamic_flag_spec='${wl}-E' 9936 ;; 9937 9938 hpux10*) 9939 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9940 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9941 else 9942 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9943 fi 9944 if test "$with_gnu_ld" = no; then 9945 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9946 hardcode_libdir_separator=: 9947 hardcode_direct=yes 9948 hardcode_direct_absolute=yes 9949 export_dynamic_flag_spec='${wl}-E' 9950 # hardcode_minus_L: Not really in the search PATH, 9951 # but as the default location of the library. 9952 hardcode_minus_L=yes 9953 fi 9954 ;; 9955 9956 hpux11*) 9957 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9958 case $host_cpu in 9959 hppa*64*) 9960 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9961 ;; 9962 ia64*) 9963 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9964 ;; 9965 *) 9966 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9967 ;; 9968 esac 9969 else 9970 case $host_cpu in 9971 hppa*64*) 9972 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9973 ;; 9974 ia64*) 9975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9976 ;; 9977 *) 9978 9979 # Older versions of the 11.00 compiler do not understand -b yet 9980 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9982$as_echo_n "checking if $CC understands -b... " >&6; } 9983if ${lt_cv_prog_compiler__b+:} false; then : 9984 $as_echo_n "(cached) " >&6 9985else 9986 lt_cv_prog_compiler__b=no 9987 save_LDFLAGS="$LDFLAGS" 9988 LDFLAGS="$LDFLAGS -b" 9989 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9991 # The linker can only warn and ignore the option if not recognized 9992 # So say no if there are warnings 9993 if test -s conftest.err; then 9994 # Append any errors to the config.log. 9995 cat conftest.err 1>&5 9996 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9998 if diff conftest.exp conftest.er2 >/dev/null; then 9999 lt_cv_prog_compiler__b=yes 10000 fi 10001 else 10002 lt_cv_prog_compiler__b=yes 10003 fi 10004 fi 10005 $RM -r conftest* 10006 LDFLAGS="$save_LDFLAGS" 10007 10008fi 10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10010$as_echo "$lt_cv_prog_compiler__b" >&6; } 10011 10012if test x"$lt_cv_prog_compiler__b" = xyes; then 10013 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10014else 10015 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10016fi 10017 10018 ;; 10019 esac 10020 fi 10021 if test "$with_gnu_ld" = no; then 10022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10023 hardcode_libdir_separator=: 10024 10025 case $host_cpu in 10026 hppa*64*|ia64*) 10027 hardcode_direct=no 10028 hardcode_shlibpath_var=no 10029 ;; 10030 *) 10031 hardcode_direct=yes 10032 hardcode_direct_absolute=yes 10033 export_dynamic_flag_spec='${wl}-E' 10034 10035 # hardcode_minus_L: Not really in the search PATH, 10036 # but as the default location of the library. 10037 hardcode_minus_L=yes 10038 ;; 10039 esac 10040 fi 10041 ;; 10042 10043 irix5* | irix6* | nonstopux*) 10044 if test "$GCC" = yes; then 10045 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' 10046 # Try to use the -exported_symbol ld option, if it does not 10047 # work, assume that -exports_file does not work either and 10048 # implicitly export all symbols. 10049 # This should be the same for all languages, so no per-tag cache variable. 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10051$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10052if ${lt_cv_irix_exported_symbol+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 save_LDFLAGS="$LDFLAGS" 10056 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058/* end confdefs.h. */ 10059int foo (void) { return 0; } 10060_ACEOF 10061if ac_fn_c_try_link "$LINENO"; then : 10062 lt_cv_irix_exported_symbol=yes 10063else 10064 lt_cv_irix_exported_symbol=no 10065fi 10066rm -f core conftest.err conftest.$ac_objext \ 10067 conftest$ac_exeext conftest.$ac_ext 10068 LDFLAGS="$save_LDFLAGS" 10069fi 10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10071$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10072 if test "$lt_cv_irix_exported_symbol" = yes; then 10073 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' 10074 fi 10075 else 10076 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' 10077 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' 10078 fi 10079 archive_cmds_need_lc='no' 10080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10081 hardcode_libdir_separator=: 10082 inherit_rpath=yes 10083 link_all_deplibs=yes 10084 ;; 10085 10086 netbsd* | netbsdelf*-gnu) 10087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10089 else 10090 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10091 fi 10092 hardcode_libdir_flag_spec='-R$libdir' 10093 hardcode_direct=yes 10094 hardcode_shlibpath_var=no 10095 ;; 10096 10097 newsos6) 10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10099 hardcode_direct=yes 10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10101 hardcode_libdir_separator=: 10102 hardcode_shlibpath_var=no 10103 ;; 10104 10105 *nto* | *qnx*) 10106 ;; 10107 10108 openbsd*) 10109 if test -f /usr/libexec/ld.so; then 10110 hardcode_direct=yes 10111 hardcode_shlibpath_var=no 10112 hardcode_direct_absolute=yes 10113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10114 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10115 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10117 export_dynamic_flag_spec='${wl}-E' 10118 else 10119 case $host_os in 10120 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10122 hardcode_libdir_flag_spec='-R$libdir' 10123 ;; 10124 *) 10125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10127 ;; 10128 esac 10129 fi 10130 else 10131 ld_shlibs=no 10132 fi 10133 ;; 10134 10135 os2*) 10136 hardcode_libdir_flag_spec='-L$libdir' 10137 hardcode_minus_L=yes 10138 allow_undefined_flag=unsupported 10139 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10140 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10141 ;; 10142 10143 osf3*) 10144 if test "$GCC" = yes; then 10145 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10146 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' 10147 else 10148 allow_undefined_flag=' -expect_unresolved \*' 10149 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' 10150 fi 10151 archive_cmds_need_lc='no' 10152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10153 hardcode_libdir_separator=: 10154 ;; 10155 10156 osf4* | osf5*) # as osf3* with the addition of -msym flag 10157 if test "$GCC" = yes; then 10158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10159 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' 10160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10161 else 10162 allow_undefined_flag=' -expect_unresolved \*' 10163 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' 10164 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~ 10165 $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' 10166 10167 # Both c and cxx compiler support -rpath directly 10168 hardcode_libdir_flag_spec='-rpath $libdir' 10169 fi 10170 archive_cmds_need_lc='no' 10171 hardcode_libdir_separator=: 10172 ;; 10173 10174 solaris*) 10175 no_undefined_flag=' -z defs' 10176 if test "$GCC" = yes; then 10177 wlarc='${wl}' 10178 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10180 $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' 10181 else 10182 case `$CC -V 2>&1` in 10183 *"Compilers 5.0"*) 10184 wlarc='' 10185 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10186 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10187 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10188 ;; 10189 *) 10190 wlarc='${wl}' 10191 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10193 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10194 ;; 10195 esac 10196 fi 10197 hardcode_libdir_flag_spec='-R$libdir' 10198 hardcode_shlibpath_var=no 10199 case $host_os in 10200 solaris2.[0-5] | solaris2.[0-5].*) ;; 10201 *) 10202 # The compiler driver will combine and reorder linker options, 10203 # but understands `-z linker_flag'. GCC discards it without `$wl', 10204 # but is careful enough not to reorder. 10205 # Supported since Solaris 2.6 (maybe 2.5.1?) 10206 if test "$GCC" = yes; then 10207 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10208 else 10209 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10210 fi 10211 ;; 10212 esac 10213 link_all_deplibs=yes 10214 ;; 10215 10216 sunos4*) 10217 if test "x$host_vendor" = xsequent; then 10218 # Use $CC to link under sequent, because it throws in some extra .o 10219 # files that make .init and .fini sections work. 10220 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10221 else 10222 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10223 fi 10224 hardcode_libdir_flag_spec='-L$libdir' 10225 hardcode_direct=yes 10226 hardcode_minus_L=yes 10227 hardcode_shlibpath_var=no 10228 ;; 10229 10230 sysv4) 10231 case $host_vendor in 10232 sni) 10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10234 hardcode_direct=yes # is this really true??? 10235 ;; 10236 siemens) 10237 ## LD is ld it makes a PLAMLIB 10238 ## CC just makes a GrossModule. 10239 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10240 reload_cmds='$CC -r -o $output$reload_objs' 10241 hardcode_direct=no 10242 ;; 10243 motorola) 10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10245 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10246 ;; 10247 esac 10248 runpath_var='LD_RUN_PATH' 10249 hardcode_shlibpath_var=no 10250 ;; 10251 10252 sysv4.3*) 10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10254 hardcode_shlibpath_var=no 10255 export_dynamic_flag_spec='-Bexport' 10256 ;; 10257 10258 sysv4*MP*) 10259 if test -d /usr/nec; then 10260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10261 hardcode_shlibpath_var=no 10262 runpath_var=LD_RUN_PATH 10263 hardcode_runpath_var=yes 10264 ld_shlibs=yes 10265 fi 10266 ;; 10267 10268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10269 no_undefined_flag='${wl}-z,text' 10270 archive_cmds_need_lc=no 10271 hardcode_shlibpath_var=no 10272 runpath_var='LD_RUN_PATH' 10273 10274 if test "$GCC" = yes; then 10275 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10276 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10277 else 10278 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10279 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10280 fi 10281 ;; 10282 10283 sysv5* | sco3.2v5* | sco5v6*) 10284 # Note: We can NOT use -z defs as we might desire, because we do not 10285 # link with -lc, and that would cause any symbols used from libc to 10286 # always be unresolved, which means just about no library would 10287 # ever link correctly. If we're not using GNU ld we use -z text 10288 # though, which does catch some bad symbols but isn't as heavy-handed 10289 # as -z defs. 10290 no_undefined_flag='${wl}-z,text' 10291 allow_undefined_flag='${wl}-z,nodefs' 10292 archive_cmds_need_lc=no 10293 hardcode_shlibpath_var=no 10294 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10295 hardcode_libdir_separator=':' 10296 link_all_deplibs=yes 10297 export_dynamic_flag_spec='${wl}-Bexport' 10298 runpath_var='LD_RUN_PATH' 10299 10300 if test "$GCC" = yes; then 10301 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10303 else 10304 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10305 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10306 fi 10307 ;; 10308 10309 uts4*) 10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10311 hardcode_libdir_flag_spec='-L$libdir' 10312 hardcode_shlibpath_var=no 10313 ;; 10314 10315 *) 10316 ld_shlibs=no 10317 ;; 10318 esac 10319 10320 if test x$host_vendor = xsni; then 10321 case $host in 10322 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10323 export_dynamic_flag_spec='${wl}-Blargedynsym' 10324 ;; 10325 esac 10326 fi 10327 fi 10328 10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10330$as_echo "$ld_shlibs" >&6; } 10331test "$ld_shlibs" = no && can_build_shared=no 10332 10333with_gnu_ld=$with_gnu_ld 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349# 10350# Do we need to explicitly link libc? 10351# 10352case "x$archive_cmds_need_lc" in 10353x|xyes) 10354 # Assume -lc should be added 10355 archive_cmds_need_lc=yes 10356 10357 if test "$enable_shared" = yes && test "$GCC" = yes; then 10358 case $archive_cmds in 10359 *'~'*) 10360 # FIXME: we may have to deal with multi-command sequences. 10361 ;; 10362 '$CC '*) 10363 # Test whether the compiler implicitly links with -lc since on some 10364 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10365 # to ld, don't add -lc before -lgcc. 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10367$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10368if ${lt_cv_archive_cmds_need_lc+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 $RM conftest* 10372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10373 10374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10375 (eval $ac_compile) 2>&5 10376 ac_status=$? 10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10378 test $ac_status = 0; } 2>conftest.err; then 10379 soname=conftest 10380 lib=conftest 10381 libobjs=conftest.$ac_objext 10382 deplibs= 10383 wl=$lt_prog_compiler_wl 10384 pic_flag=$lt_prog_compiler_pic 10385 compiler_flags=-v 10386 linker_flags=-v 10387 verstring= 10388 output_objdir=. 10389 libname=conftest 10390 lt_save_allow_undefined_flag=$allow_undefined_flag 10391 allow_undefined_flag= 10392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10393 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10394 ac_status=$? 10395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10396 test $ac_status = 0; } 10397 then 10398 lt_cv_archive_cmds_need_lc=no 10399 else 10400 lt_cv_archive_cmds_need_lc=yes 10401 fi 10402 allow_undefined_flag=$lt_save_allow_undefined_flag 10403 else 10404 cat conftest.err 1>&5 10405 fi 10406 $RM conftest* 10407 10408fi 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10410$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10411 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10412 ;; 10413 esac 10414 fi 10415 ;; 10416esac 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10570$as_echo_n "checking dynamic linker characteristics... " >&6; } 10571 10572if test "$GCC" = yes; then 10573 case $host_os in 10574 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10575 *) lt_awk_arg="/^libraries:/" ;; 10576 esac 10577 case $host_os in 10578 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10579 *) lt_sed_strip_eq="s,=/,/,g" ;; 10580 esac 10581 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10582 case $lt_search_path_spec in 10583 *\;*) 10584 # if the path contains ";" then we assume it to be the separator 10585 # otherwise default to the standard path separator (i.e. ":") - it is 10586 # assumed that no part of a normal pathname contains ";" but that should 10587 # okay in the real world where ";" in dirpaths is itself problematic. 10588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10589 ;; 10590 *) 10591 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10592 ;; 10593 esac 10594 # Ok, now we have the path, separated by spaces, we can step through it 10595 # and add multilib dir if necessary. 10596 lt_tmp_lt_search_path_spec= 10597 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10598 for lt_sys_path in $lt_search_path_spec; do 10599 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10601 else 10602 test -d "$lt_sys_path" && \ 10603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10604 fi 10605 done 10606 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10607BEGIN {RS=" "; FS="/|\n";} { 10608 lt_foo=""; 10609 lt_count=0; 10610 for (lt_i = NF; lt_i > 0; lt_i--) { 10611 if ($lt_i != "" && $lt_i != ".") { 10612 if ($lt_i == "..") { 10613 lt_count++; 10614 } else { 10615 if (lt_count == 0) { 10616 lt_foo="/" $lt_i lt_foo; 10617 } else { 10618 lt_count--; 10619 } 10620 } 10621 } 10622 } 10623 if (lt_foo != "") { lt_freq[lt_foo]++; } 10624 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10625}'` 10626 # AWK program above erroneously prepends '/' to C:/dos/paths 10627 # for these hosts. 10628 case $host_os in 10629 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10630 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10631 esac 10632 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10633else 10634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10635fi 10636library_names_spec= 10637libname_spec='lib$name' 10638soname_spec= 10639shrext_cmds=".so" 10640postinstall_cmds= 10641postuninstall_cmds= 10642finish_cmds= 10643finish_eval= 10644shlibpath_var= 10645shlibpath_overrides_runpath=unknown 10646version_type=none 10647dynamic_linker="$host_os ld.so" 10648sys_lib_dlsearch_path_spec="/lib /usr/lib" 10649need_lib_prefix=unknown 10650hardcode_into_libs=no 10651 10652# when you set need_version to no, make sure it does not cause -set_version 10653# flags to be left without arguments 10654need_version=unknown 10655 10656case $host_os in 10657aix3*) 10658 version_type=linux # correct to gnu/linux during the next big refactor 10659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10660 shlibpath_var=LIBPATH 10661 10662 # AIX 3 has no versioning support, so we append a major version to the name. 10663 soname_spec='${libname}${release}${shared_ext}$major' 10664 ;; 10665 10666aix[4-9]*) 10667 version_type=linux # correct to gnu/linux during the next big refactor 10668 need_lib_prefix=no 10669 need_version=no 10670 hardcode_into_libs=yes 10671 if test "$host_cpu" = ia64; then 10672 # AIX 5 supports IA64 10673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10674 shlibpath_var=LD_LIBRARY_PATH 10675 else 10676 # With GCC up to 2.95.x, collect2 would create an import file 10677 # for dependence libraries. The import file would start with 10678 # the line `#! .'. This would cause the generated library to 10679 # depend on `.', always an invalid library. This was fixed in 10680 # development snapshots of GCC prior to 3.0. 10681 case $host_os in 10682 aix4 | aix4.[01] | aix4.[01].*) 10683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10684 echo ' yes ' 10685 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10686 : 10687 else 10688 can_build_shared=no 10689 fi 10690 ;; 10691 esac 10692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10693 # soname into executable. Probably we can add versioning support to 10694 # collect2, so additional links can be useful in future. 10695 if test "$aix_use_runtimelinking" = yes; then 10696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10697 # instead of lib<name>.a to let people know that these are not 10698 # typical AIX shared libraries. 10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10700 else 10701 # We preserve .a as extension for shared libraries through AIX4.2 10702 # and later when we are not doing run time linking. 10703 library_names_spec='${libname}${release}.a $libname.a' 10704 soname_spec='${libname}${release}${shared_ext}$major' 10705 fi 10706 shlibpath_var=LIBPATH 10707 fi 10708 ;; 10709 10710amigaos*) 10711 case $host_cpu in 10712 powerpc) 10713 # Since July 2007 AmigaOS4 officially supports .so libraries. 10714 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10716 ;; 10717 m68k) 10718 library_names_spec='$libname.ixlibrary $libname.a' 10719 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10720 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10721 ;; 10722 esac 10723 ;; 10724 10725beos*) 10726 library_names_spec='${libname}${shared_ext}' 10727 dynamic_linker="$host_os ld.so" 10728 shlibpath_var=LIBRARY_PATH 10729 ;; 10730 10731bsdi[45]*) 10732 version_type=linux # correct to gnu/linux during the next big refactor 10733 need_version=no 10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10735 soname_spec='${libname}${release}${shared_ext}$major' 10736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10737 shlibpath_var=LD_LIBRARY_PATH 10738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10740 # the default ld.so.conf also contains /usr/contrib/lib and 10741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10742 # libtool to hard-code these into programs 10743 ;; 10744 10745cygwin* | mingw* | pw32* | cegcc*) 10746 version_type=windows 10747 shrext_cmds=".dll" 10748 need_version=no 10749 need_lib_prefix=no 10750 10751 case $GCC,$cc_basename in 10752 yes,*) 10753 # gcc 10754 library_names_spec='$libname.dll.a' 10755 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10756 postinstall_cmds='base_file=`basename \${file}`~ 10757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10758 dldir=$destdir/`dirname \$dlpath`~ 10759 test -d \$dldir || mkdir -p \$dldir~ 10760 $install_prog $dir/$dlname \$dldir/$dlname~ 10761 chmod a+x \$dldir/$dlname~ 10762 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10763 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10764 fi' 10765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10766 dlpath=$dir/\$dldll~ 10767 $RM \$dlpath' 10768 shlibpath_overrides_runpath=yes 10769 10770 case $host_os in 10771 cygwin*) 10772 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10774 10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10776 ;; 10777 mingw* | cegcc*) 10778 # MinGW DLLs use traditional 'lib' prefix 10779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10780 ;; 10781 pw32*) 10782 # pw32 DLLs use 'pw' prefix rather than 'lib' 10783 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10784 ;; 10785 esac 10786 dynamic_linker='Win32 ld.exe' 10787 ;; 10788 10789 *,cl*) 10790 # Native MSVC 10791 libname_spec='$name' 10792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10793 library_names_spec='${libname}.dll.lib' 10794 10795 case $build_os in 10796 mingw*) 10797 sys_lib_search_path_spec= 10798 lt_save_ifs=$IFS 10799 IFS=';' 10800 for lt_path in $LIB 10801 do 10802 IFS=$lt_save_ifs 10803 # Let DOS variable expansion print the short 8.3 style file name. 10804 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10805 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10806 done 10807 IFS=$lt_save_ifs 10808 # Convert to MSYS style. 10809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10810 ;; 10811 cygwin*) 10812 # Convert to unix form, then to dos form, then back to unix form 10813 # but this time dos style (no spaces!) so that the unix form looks 10814 # like /cygdrive/c/PROGRA~1:/cygdr... 10815 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10816 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10817 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10818 ;; 10819 *) 10820 sys_lib_search_path_spec="$LIB" 10821 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10822 # It is most probably a Windows format PATH. 10823 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10824 else 10825 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10826 fi 10827 # FIXME: find the short name or the path components, as spaces are 10828 # common. (e.g. "Program Files" -> "PROGRA~1") 10829 ;; 10830 esac 10831 10832 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10833 postinstall_cmds='base_file=`basename \${file}`~ 10834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10835 dldir=$destdir/`dirname \$dlpath`~ 10836 test -d \$dldir || mkdir -p \$dldir~ 10837 $install_prog $dir/$dlname \$dldir/$dlname' 10838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10839 dlpath=$dir/\$dldll~ 10840 $RM \$dlpath' 10841 shlibpath_overrides_runpath=yes 10842 dynamic_linker='Win32 link.exe' 10843 ;; 10844 10845 *) 10846 # Assume MSVC wrapper 10847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10848 dynamic_linker='Win32 ld.exe' 10849 ;; 10850 esac 10851 # FIXME: first we should search . and the directory the executable is in 10852 shlibpath_var=PATH 10853 ;; 10854 10855darwin* | rhapsody*) 10856 dynamic_linker="$host_os dyld" 10857 version_type=darwin 10858 need_lib_prefix=no 10859 need_version=no 10860 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10861 soname_spec='${libname}${release}${major}$shared_ext' 10862 shlibpath_overrides_runpath=yes 10863 shlibpath_var=DYLD_LIBRARY_PATH 10864 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10865 10866 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10868 ;; 10869 10870dgux*) 10871 version_type=linux # correct to gnu/linux during the next big refactor 10872 need_lib_prefix=no 10873 need_version=no 10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10875 soname_spec='${libname}${release}${shared_ext}$major' 10876 shlibpath_var=LD_LIBRARY_PATH 10877 ;; 10878 10879freebsd* | dragonfly*) 10880 # DragonFly does not have aout. When/if they implement a new 10881 # versioning mechanism, adjust this. 10882 if test -x /usr/bin/objformat; then 10883 objformat=`/usr/bin/objformat` 10884 else 10885 case $host_os in 10886 freebsd[23].*) objformat=aout ;; 10887 *) objformat=elf ;; 10888 esac 10889 fi 10890 version_type=freebsd-$objformat 10891 case $version_type in 10892 freebsd-elf*) 10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10894 need_version=no 10895 need_lib_prefix=no 10896 ;; 10897 freebsd-*) 10898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10899 need_version=yes 10900 ;; 10901 esac 10902 shlibpath_var=LD_LIBRARY_PATH 10903 case $host_os in 10904 freebsd2.*) 10905 shlibpath_overrides_runpath=yes 10906 ;; 10907 freebsd3.[01]* | freebsdelf3.[01]*) 10908 shlibpath_overrides_runpath=yes 10909 hardcode_into_libs=yes 10910 ;; 10911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10913 shlibpath_overrides_runpath=no 10914 hardcode_into_libs=yes 10915 ;; 10916 *) # from 4.6 on, and DragonFly 10917 shlibpath_overrides_runpath=yes 10918 hardcode_into_libs=yes 10919 ;; 10920 esac 10921 ;; 10922 10923gnu*) 10924 version_type=linux # correct to gnu/linux during the next big refactor 10925 need_lib_prefix=no 10926 need_version=no 10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10928 soname_spec='${libname}${release}${shared_ext}$major' 10929 shlibpath_var=LD_LIBRARY_PATH 10930 shlibpath_overrides_runpath=no 10931 hardcode_into_libs=yes 10932 ;; 10933 10934haiku*) 10935 version_type=linux # correct to gnu/linux during the next big refactor 10936 need_lib_prefix=no 10937 need_version=no 10938 dynamic_linker="$host_os runtime_loader" 10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10940 soname_spec='${libname}${release}${shared_ext}$major' 10941 shlibpath_var=LIBRARY_PATH 10942 shlibpath_overrides_runpath=yes 10943 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10944 hardcode_into_libs=yes 10945 ;; 10946 10947hpux9* | hpux10* | hpux11*) 10948 # Give a soname corresponding to the major version so that dld.sl refuses to 10949 # link against other versions. 10950 version_type=sunos 10951 need_lib_prefix=no 10952 need_version=no 10953 case $host_cpu in 10954 ia64*) 10955 shrext_cmds='.so' 10956 hardcode_into_libs=yes 10957 dynamic_linker="$host_os dld.so" 10958 shlibpath_var=LD_LIBRARY_PATH 10959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10961 soname_spec='${libname}${release}${shared_ext}$major' 10962 if test "X$HPUX_IA64_MODE" = X32; then 10963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10964 else 10965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10966 fi 10967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10968 ;; 10969 hppa*64*) 10970 shrext_cmds='.sl' 10971 hardcode_into_libs=yes 10972 dynamic_linker="$host_os dld.sl" 10973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10976 soname_spec='${libname}${release}${shared_ext}$major' 10977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10979 ;; 10980 *) 10981 shrext_cmds='.sl' 10982 dynamic_linker="$host_os dld.sl" 10983 shlibpath_var=SHLIB_PATH 10984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10986 soname_spec='${libname}${release}${shared_ext}$major' 10987 ;; 10988 esac 10989 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10990 postinstall_cmds='chmod 555 $lib' 10991 # or fails outright, so override atomically: 10992 install_override_mode=555 10993 ;; 10994 10995interix[3-9]*) 10996 version_type=linux # correct to gnu/linux during the next big refactor 10997 need_lib_prefix=no 10998 need_version=no 10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11000 soname_spec='${libname}${release}${shared_ext}$major' 11001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11002 shlibpath_var=LD_LIBRARY_PATH 11003 shlibpath_overrides_runpath=no 11004 hardcode_into_libs=yes 11005 ;; 11006 11007irix5* | irix6* | nonstopux*) 11008 case $host_os in 11009 nonstopux*) version_type=nonstopux ;; 11010 *) 11011 if test "$lt_cv_prog_gnu_ld" = yes; then 11012 version_type=linux # correct to gnu/linux during the next big refactor 11013 else 11014 version_type=irix 11015 fi ;; 11016 esac 11017 need_lib_prefix=no 11018 need_version=no 11019 soname_spec='${libname}${release}${shared_ext}$major' 11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11021 case $host_os in 11022 irix5* | nonstopux*) 11023 libsuff= shlibsuff= 11024 ;; 11025 *) 11026 case $LD in # libtool.m4 will add one of these switches to LD 11027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11028 libsuff= shlibsuff= libmagic=32-bit;; 11029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11030 libsuff=32 shlibsuff=N32 libmagic=N32;; 11031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11032 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11033 *) libsuff= shlibsuff= libmagic=never-match;; 11034 esac 11035 ;; 11036 esac 11037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11038 shlibpath_overrides_runpath=no 11039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11041 hardcode_into_libs=yes 11042 ;; 11043 11044# No shared lib support for Linux oldld, aout, or coff. 11045linux*oldld* | linux*aout* | linux*coff*) 11046 dynamic_linker=no 11047 ;; 11048 11049# This must be glibc/ELF. 11050linux* | k*bsd*-gnu | kopensolaris*-gnu) 11051 version_type=linux # correct to gnu/linux during the next big refactor 11052 need_lib_prefix=no 11053 need_version=no 11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11055 soname_spec='${libname}${release}${shared_ext}$major' 11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11057 shlibpath_var=LD_LIBRARY_PATH 11058 shlibpath_overrides_runpath=no 11059 11060 # Some binutils ld are patched to set DT_RUNPATH 11061 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11062 $as_echo_n "(cached) " >&6 11063else 11064 lt_cv_shlibpath_overrides_runpath=no 11065 save_LDFLAGS=$LDFLAGS 11066 save_libdir=$libdir 11067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11070/* end confdefs.h. */ 11071 11072int 11073main () 11074{ 11075 11076 ; 11077 return 0; 11078} 11079_ACEOF 11080if ac_fn_c_try_link "$LINENO"; then : 11081 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11082 lt_cv_shlibpath_overrides_runpath=yes 11083fi 11084fi 11085rm -f core conftest.err conftest.$ac_objext \ 11086 conftest$ac_exeext conftest.$ac_ext 11087 LDFLAGS=$save_LDFLAGS 11088 libdir=$save_libdir 11089 11090fi 11091 11092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11093 11094 # This implies no fast_install, which is unacceptable. 11095 # Some rework will be needed to allow for fast_install 11096 # before this can be enabled. 11097 hardcode_into_libs=yes 11098 11099 # Append ld.so.conf contents to the search path 11100 if test -f /etc/ld.so.conf; then 11101 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' ' '` 11102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11103 fi 11104 11105 # We used to test for /lib/ld.so.1 and disable shared libraries on 11106 # powerpc, because MkLinux only supported shared libraries with the 11107 # GNU dynamic linker. Since this was broken with cross compilers, 11108 # most powerpc-linux boxes support dynamic linking these days and 11109 # people can always --disable-shared, the test was removed, and we 11110 # assume the GNU/Linux dynamic linker is in use. 11111 dynamic_linker='GNU/Linux ld.so' 11112 ;; 11113 11114netbsdelf*-gnu) 11115 version_type=linux 11116 need_lib_prefix=no 11117 need_version=no 11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11119 soname_spec='${libname}${release}${shared_ext}$major' 11120 shlibpath_var=LD_LIBRARY_PATH 11121 shlibpath_overrides_runpath=no 11122 hardcode_into_libs=yes 11123 dynamic_linker='NetBSD ld.elf_so' 11124 ;; 11125 11126netbsd*) 11127 version_type=sunos 11128 need_lib_prefix=no 11129 need_version=no 11130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11133 dynamic_linker='NetBSD (a.out) ld.so' 11134 else 11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11136 soname_spec='${libname}${release}${shared_ext}$major' 11137 dynamic_linker='NetBSD ld.elf_so' 11138 fi 11139 shlibpath_var=LD_LIBRARY_PATH 11140 shlibpath_overrides_runpath=yes 11141 hardcode_into_libs=yes 11142 ;; 11143 11144newsos6) 11145 version_type=linux # correct to gnu/linux during the next big refactor 11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11147 shlibpath_var=LD_LIBRARY_PATH 11148 shlibpath_overrides_runpath=yes 11149 ;; 11150 11151*nto* | *qnx*) 11152 version_type=qnx 11153 need_lib_prefix=no 11154 need_version=no 11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11156 soname_spec='${libname}${release}${shared_ext}$major' 11157 shlibpath_var=LD_LIBRARY_PATH 11158 shlibpath_overrides_runpath=no 11159 hardcode_into_libs=yes 11160 dynamic_linker='ldqnx.so' 11161 ;; 11162 11163openbsd*) 11164 version_type=sunos 11165 sys_lib_dlsearch_path_spec="/usr/lib" 11166 need_lib_prefix=no 11167 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11168 case $host_os in 11169 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11170 *) need_version=no ;; 11171 esac 11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11174 shlibpath_var=LD_LIBRARY_PATH 11175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11176 case $host_os in 11177 openbsd2.[89] | openbsd2.[89].*) 11178 shlibpath_overrides_runpath=no 11179 ;; 11180 *) 11181 shlibpath_overrides_runpath=yes 11182 ;; 11183 esac 11184 else 11185 shlibpath_overrides_runpath=yes 11186 fi 11187 ;; 11188 11189os2*) 11190 libname_spec='$name' 11191 shrext_cmds=".dll" 11192 need_lib_prefix=no 11193 library_names_spec='$libname${shared_ext} $libname.a' 11194 dynamic_linker='OS/2 ld.exe' 11195 shlibpath_var=LIBPATH 11196 ;; 11197 11198osf3* | osf4* | osf5*) 11199 version_type=osf 11200 need_lib_prefix=no 11201 need_version=no 11202 soname_spec='${libname}${release}${shared_ext}$major' 11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11204 shlibpath_var=LD_LIBRARY_PATH 11205 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11206 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11207 ;; 11208 11209rdos*) 11210 dynamic_linker=no 11211 ;; 11212 11213solaris*) 11214 version_type=linux # correct to gnu/linux during the next big refactor 11215 need_lib_prefix=no 11216 need_version=no 11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11218 soname_spec='${libname}${release}${shared_ext}$major' 11219 shlibpath_var=LD_LIBRARY_PATH 11220 shlibpath_overrides_runpath=yes 11221 hardcode_into_libs=yes 11222 # ldd complains unless libraries are executable 11223 postinstall_cmds='chmod +x $lib' 11224 ;; 11225 11226sunos4*) 11227 version_type=sunos 11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11229 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11230 shlibpath_var=LD_LIBRARY_PATH 11231 shlibpath_overrides_runpath=yes 11232 if test "$with_gnu_ld" = yes; then 11233 need_lib_prefix=no 11234 fi 11235 need_version=yes 11236 ;; 11237 11238sysv4 | sysv4.3*) 11239 version_type=linux # correct to gnu/linux during the next big refactor 11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11241 soname_spec='${libname}${release}${shared_ext}$major' 11242 shlibpath_var=LD_LIBRARY_PATH 11243 case $host_vendor in 11244 sni) 11245 shlibpath_overrides_runpath=no 11246 need_lib_prefix=no 11247 runpath_var=LD_RUN_PATH 11248 ;; 11249 siemens) 11250 need_lib_prefix=no 11251 ;; 11252 motorola) 11253 need_lib_prefix=no 11254 need_version=no 11255 shlibpath_overrides_runpath=no 11256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11257 ;; 11258 esac 11259 ;; 11260 11261sysv4*MP*) 11262 if test -d /usr/nec ;then 11263 version_type=linux # correct to gnu/linux during the next big refactor 11264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11265 soname_spec='$libname${shared_ext}.$major' 11266 shlibpath_var=LD_LIBRARY_PATH 11267 fi 11268 ;; 11269 11270sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11271 version_type=freebsd-elf 11272 need_lib_prefix=no 11273 need_version=no 11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11275 soname_spec='${libname}${release}${shared_ext}$major' 11276 shlibpath_var=LD_LIBRARY_PATH 11277 shlibpath_overrides_runpath=yes 11278 hardcode_into_libs=yes 11279 if test "$with_gnu_ld" = yes; then 11280 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11281 else 11282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11283 case $host_os in 11284 sco3.2v5*) 11285 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11286 ;; 11287 esac 11288 fi 11289 sys_lib_dlsearch_path_spec='/usr/lib' 11290 ;; 11291 11292tpf*) 11293 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11294 version_type=linux # correct to gnu/linux during the next big refactor 11295 need_lib_prefix=no 11296 need_version=no 11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11298 shlibpath_var=LD_LIBRARY_PATH 11299 shlibpath_overrides_runpath=no 11300 hardcode_into_libs=yes 11301 ;; 11302 11303uts4*) 11304 version_type=linux # correct to gnu/linux during the next big refactor 11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11306 soname_spec='${libname}${release}${shared_ext}$major' 11307 shlibpath_var=LD_LIBRARY_PATH 11308 ;; 11309 11310*) 11311 dynamic_linker=no 11312 ;; 11313esac 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11315$as_echo "$dynamic_linker" >&6; } 11316test "$dynamic_linker" = no && can_build_shared=no 11317 11318variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11319if test "$GCC" = yes; then 11320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11321fi 11322 11323if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11324 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11325fi 11326if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11327 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11328fi 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11422$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11423hardcode_action= 11424if test -n "$hardcode_libdir_flag_spec" || 11425 test -n "$runpath_var" || 11426 test "X$hardcode_automatic" = "Xyes" ; then 11427 11428 # We can hardcode non-existent directories. 11429 if test "$hardcode_direct" != no && 11430 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11431 # have to relink, otherwise we might link with an installed library 11432 # when we should be linking with a yet-to-be-installed one 11433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11434 test "$hardcode_minus_L" != no; then 11435 # Linking always hardcodes the temporary library directory. 11436 hardcode_action=relink 11437 else 11438 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11439 hardcode_action=immediate 11440 fi 11441else 11442 # We cannot hardcode anything, or else we can only hardcode existing 11443 # directories. 11444 hardcode_action=unsupported 11445fi 11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11447$as_echo "$hardcode_action" >&6; } 11448 11449if test "$hardcode_action" = relink || 11450 test "$inherit_rpath" = yes; then 11451 # Fast installation is not supported 11452 enable_fast_install=no 11453elif test "$shlibpath_overrides_runpath" = yes || 11454 test "$enable_shared" = no; then 11455 # Fast installation is not necessary 11456 enable_fast_install=needless 11457fi 11458 11459 11460 11461 11462 11463 11464 if test "x$enable_dlopen" != xyes; then 11465 enable_dlopen=unknown 11466 enable_dlopen_self=unknown 11467 enable_dlopen_self_static=unknown 11468else 11469 lt_cv_dlopen=no 11470 lt_cv_dlopen_libs= 11471 11472 case $host_os in 11473 beos*) 11474 lt_cv_dlopen="load_add_on" 11475 lt_cv_dlopen_libs= 11476 lt_cv_dlopen_self=yes 11477 ;; 11478 11479 mingw* | pw32* | cegcc*) 11480 lt_cv_dlopen="LoadLibrary" 11481 lt_cv_dlopen_libs= 11482 ;; 11483 11484 cygwin*) 11485 lt_cv_dlopen="dlopen" 11486 lt_cv_dlopen_libs= 11487 ;; 11488 11489 darwin*) 11490 # if libdl is installed we need to link against it 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11492$as_echo_n "checking for dlopen in -ldl... " >&6; } 11493if ${ac_cv_lib_dl_dlopen+:} false; then : 11494 $as_echo_n "(cached) " >&6 11495else 11496 ac_check_lib_save_LIBS=$LIBS 11497LIBS="-ldl $LIBS" 11498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11499/* end confdefs.h. */ 11500 11501/* Override any GCC internal prototype to avoid an error. 11502 Use char because int might match the return type of a GCC 11503 builtin and then its argument prototype would still apply. */ 11504#ifdef __cplusplus 11505extern "C" 11506#endif 11507char dlopen (); 11508int 11509main () 11510{ 11511return dlopen (); 11512 ; 11513 return 0; 11514} 11515_ACEOF 11516if ac_fn_c_try_link "$LINENO"; then : 11517 ac_cv_lib_dl_dlopen=yes 11518else 11519 ac_cv_lib_dl_dlopen=no 11520fi 11521rm -f core conftest.err conftest.$ac_objext \ 11522 conftest$ac_exeext conftest.$ac_ext 11523LIBS=$ac_check_lib_save_LIBS 11524fi 11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11526$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11527if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11529else 11530 11531 lt_cv_dlopen="dyld" 11532 lt_cv_dlopen_libs= 11533 lt_cv_dlopen_self=yes 11534 11535fi 11536 11537 ;; 11538 11539 *) 11540 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11541if test "x$ac_cv_func_shl_load" = xyes; then : 11542 lt_cv_dlopen="shl_load" 11543else 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11545$as_echo_n "checking for shl_load in -ldld... " >&6; } 11546if ${ac_cv_lib_dld_shl_load+:} false; then : 11547 $as_echo_n "(cached) " >&6 11548else 11549 ac_check_lib_save_LIBS=$LIBS 11550LIBS="-ldld $LIBS" 11551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11552/* end confdefs.h. */ 11553 11554/* Override any GCC internal prototype to avoid an error. 11555 Use char because int might match the return type of a GCC 11556 builtin and then its argument prototype would still apply. */ 11557#ifdef __cplusplus 11558extern "C" 11559#endif 11560char shl_load (); 11561int 11562main () 11563{ 11564return shl_load (); 11565 ; 11566 return 0; 11567} 11568_ACEOF 11569if ac_fn_c_try_link "$LINENO"; then : 11570 ac_cv_lib_dld_shl_load=yes 11571else 11572 ac_cv_lib_dld_shl_load=no 11573fi 11574rm -f core conftest.err conftest.$ac_objext \ 11575 conftest$ac_exeext conftest.$ac_ext 11576LIBS=$ac_check_lib_save_LIBS 11577fi 11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11579$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11580if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11582else 11583 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11584if test "x$ac_cv_func_dlopen" = xyes; then : 11585 lt_cv_dlopen="dlopen" 11586else 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11588$as_echo_n "checking for dlopen in -ldl... " >&6; } 11589if ${ac_cv_lib_dl_dlopen+:} false; then : 11590 $as_echo_n "(cached) " >&6 11591else 11592 ac_check_lib_save_LIBS=$LIBS 11593LIBS="-ldl $LIBS" 11594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11595/* end confdefs.h. */ 11596 11597/* Override any GCC internal prototype to avoid an error. 11598 Use char because int might match the return type of a GCC 11599 builtin and then its argument prototype would still apply. */ 11600#ifdef __cplusplus 11601extern "C" 11602#endif 11603char dlopen (); 11604int 11605main () 11606{ 11607return dlopen (); 11608 ; 11609 return 0; 11610} 11611_ACEOF 11612if ac_fn_c_try_link "$LINENO"; then : 11613 ac_cv_lib_dl_dlopen=yes 11614else 11615 ac_cv_lib_dl_dlopen=no 11616fi 11617rm -f core conftest.err conftest.$ac_objext \ 11618 conftest$ac_exeext conftest.$ac_ext 11619LIBS=$ac_check_lib_save_LIBS 11620fi 11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11622$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11623if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11625else 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11627$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11628if ${ac_cv_lib_svld_dlopen+:} false; then : 11629 $as_echo_n "(cached) " >&6 11630else 11631 ac_check_lib_save_LIBS=$LIBS 11632LIBS="-lsvld $LIBS" 11633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11634/* end confdefs.h. */ 11635 11636/* Override any GCC internal prototype to avoid an error. 11637 Use char because int might match the return type of a GCC 11638 builtin and then its argument prototype would still apply. */ 11639#ifdef __cplusplus 11640extern "C" 11641#endif 11642char dlopen (); 11643int 11644main () 11645{ 11646return dlopen (); 11647 ; 11648 return 0; 11649} 11650_ACEOF 11651if ac_fn_c_try_link "$LINENO"; then : 11652 ac_cv_lib_svld_dlopen=yes 11653else 11654 ac_cv_lib_svld_dlopen=no 11655fi 11656rm -f core conftest.err conftest.$ac_objext \ 11657 conftest$ac_exeext conftest.$ac_ext 11658LIBS=$ac_check_lib_save_LIBS 11659fi 11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11661$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11662if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11664else 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11666$as_echo_n "checking for dld_link in -ldld... " >&6; } 11667if ${ac_cv_lib_dld_dld_link+:} false; then : 11668 $as_echo_n "(cached) " >&6 11669else 11670 ac_check_lib_save_LIBS=$LIBS 11671LIBS="-ldld $LIBS" 11672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11673/* end confdefs.h. */ 11674 11675/* Override any GCC internal prototype to avoid an error. 11676 Use char because int might match the return type of a GCC 11677 builtin and then its argument prototype would still apply. */ 11678#ifdef __cplusplus 11679extern "C" 11680#endif 11681char dld_link (); 11682int 11683main () 11684{ 11685return dld_link (); 11686 ; 11687 return 0; 11688} 11689_ACEOF 11690if ac_fn_c_try_link "$LINENO"; then : 11691 ac_cv_lib_dld_dld_link=yes 11692else 11693 ac_cv_lib_dld_dld_link=no 11694fi 11695rm -f core conftest.err conftest.$ac_objext \ 11696 conftest$ac_exeext conftest.$ac_ext 11697LIBS=$ac_check_lib_save_LIBS 11698fi 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11700$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11701if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11702 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11703fi 11704 11705 11706fi 11707 11708 11709fi 11710 11711 11712fi 11713 11714 11715fi 11716 11717 11718fi 11719 11720 ;; 11721 esac 11722 11723 if test "x$lt_cv_dlopen" != xno; then 11724 enable_dlopen=yes 11725 else 11726 enable_dlopen=no 11727 fi 11728 11729 case $lt_cv_dlopen in 11730 dlopen) 11731 save_CPPFLAGS="$CPPFLAGS" 11732 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11733 11734 save_LDFLAGS="$LDFLAGS" 11735 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11736 11737 save_LIBS="$LIBS" 11738 LIBS="$lt_cv_dlopen_libs $LIBS" 11739 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11741$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11742if ${lt_cv_dlopen_self+:} false; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 if test "$cross_compiling" = yes; then : 11746 lt_cv_dlopen_self=cross 11747else 11748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11749 lt_status=$lt_dlunknown 11750 cat > conftest.$ac_ext <<_LT_EOF 11751#line $LINENO "configure" 11752#include "confdefs.h" 11753 11754#if HAVE_DLFCN_H 11755#include <dlfcn.h> 11756#endif 11757 11758#include <stdio.h> 11759 11760#ifdef RTLD_GLOBAL 11761# define LT_DLGLOBAL RTLD_GLOBAL 11762#else 11763# ifdef DL_GLOBAL 11764# define LT_DLGLOBAL DL_GLOBAL 11765# else 11766# define LT_DLGLOBAL 0 11767# endif 11768#endif 11769 11770/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11771 find out it does not work in some platform. */ 11772#ifndef LT_DLLAZY_OR_NOW 11773# ifdef RTLD_LAZY 11774# define LT_DLLAZY_OR_NOW RTLD_LAZY 11775# else 11776# ifdef DL_LAZY 11777# define LT_DLLAZY_OR_NOW DL_LAZY 11778# else 11779# ifdef RTLD_NOW 11780# define LT_DLLAZY_OR_NOW RTLD_NOW 11781# else 11782# ifdef DL_NOW 11783# define LT_DLLAZY_OR_NOW DL_NOW 11784# else 11785# define LT_DLLAZY_OR_NOW 0 11786# endif 11787# endif 11788# endif 11789# endif 11790#endif 11791 11792/* When -fvisbility=hidden is used, assume the code has been annotated 11793 correspondingly for the symbols needed. */ 11794#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11795int fnord () __attribute__((visibility("default"))); 11796#endif 11797 11798int fnord () { return 42; } 11799int main () 11800{ 11801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11802 int status = $lt_dlunknown; 11803 11804 if (self) 11805 { 11806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11807 else 11808 { 11809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11810 else puts (dlerror ()); 11811 } 11812 /* dlclose (self); */ 11813 } 11814 else 11815 puts (dlerror ()); 11816 11817 return status; 11818} 11819_LT_EOF 11820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11821 (eval $ac_link) 2>&5 11822 ac_status=$? 11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11825 (./conftest; exit; ) >&5 2>/dev/null 11826 lt_status=$? 11827 case x$lt_status in 11828 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11829 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11830 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11831 esac 11832 else : 11833 # compilation failed 11834 lt_cv_dlopen_self=no 11835 fi 11836fi 11837rm -fr conftest* 11838 11839 11840fi 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11842$as_echo "$lt_cv_dlopen_self" >&6; } 11843 11844 if test "x$lt_cv_dlopen_self" = xyes; then 11845 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11847$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11848if ${lt_cv_dlopen_self_static+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850else 11851 if test "$cross_compiling" = yes; then : 11852 lt_cv_dlopen_self_static=cross 11853else 11854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11855 lt_status=$lt_dlunknown 11856 cat > conftest.$ac_ext <<_LT_EOF 11857#line $LINENO "configure" 11858#include "confdefs.h" 11859 11860#if HAVE_DLFCN_H 11861#include <dlfcn.h> 11862#endif 11863 11864#include <stdio.h> 11865 11866#ifdef RTLD_GLOBAL 11867# define LT_DLGLOBAL RTLD_GLOBAL 11868#else 11869# ifdef DL_GLOBAL 11870# define LT_DLGLOBAL DL_GLOBAL 11871# else 11872# define LT_DLGLOBAL 0 11873# endif 11874#endif 11875 11876/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11877 find out it does not work in some platform. */ 11878#ifndef LT_DLLAZY_OR_NOW 11879# ifdef RTLD_LAZY 11880# define LT_DLLAZY_OR_NOW RTLD_LAZY 11881# else 11882# ifdef DL_LAZY 11883# define LT_DLLAZY_OR_NOW DL_LAZY 11884# else 11885# ifdef RTLD_NOW 11886# define LT_DLLAZY_OR_NOW RTLD_NOW 11887# else 11888# ifdef DL_NOW 11889# define LT_DLLAZY_OR_NOW DL_NOW 11890# else 11891# define LT_DLLAZY_OR_NOW 0 11892# endif 11893# endif 11894# endif 11895# endif 11896#endif 11897 11898/* When -fvisbility=hidden is used, assume the code has been annotated 11899 correspondingly for the symbols needed. */ 11900#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11901int fnord () __attribute__((visibility("default"))); 11902#endif 11903 11904int fnord () { return 42; } 11905int main () 11906{ 11907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11908 int status = $lt_dlunknown; 11909 11910 if (self) 11911 { 11912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11913 else 11914 { 11915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11916 else puts (dlerror ()); 11917 } 11918 /* dlclose (self); */ 11919 } 11920 else 11921 puts (dlerror ()); 11922 11923 return status; 11924} 11925_LT_EOF 11926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11927 (eval $ac_link) 2>&5 11928 ac_status=$? 11929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11931 (./conftest; exit; ) >&5 2>/dev/null 11932 lt_status=$? 11933 case x$lt_status in 11934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11936 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11937 esac 11938 else : 11939 # compilation failed 11940 lt_cv_dlopen_self_static=no 11941 fi 11942fi 11943rm -fr conftest* 11944 11945 11946fi 11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11948$as_echo "$lt_cv_dlopen_self_static" >&6; } 11949 fi 11950 11951 CPPFLAGS="$save_CPPFLAGS" 11952 LDFLAGS="$save_LDFLAGS" 11953 LIBS="$save_LIBS" 11954 ;; 11955 esac 11956 11957 case $lt_cv_dlopen_self in 11958 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11959 *) enable_dlopen_self=unknown ;; 11960 esac 11961 11962 case $lt_cv_dlopen_self_static in 11963 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11964 *) enable_dlopen_self_static=unknown ;; 11965 esac 11966fi 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984striplib= 11985old_striplib= 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11987$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11988if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11989 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11990 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11992$as_echo "yes" >&6; } 11993else 11994# FIXME - insert some real tests, host_os isn't really good enough 11995 case $host_os in 11996 darwin*) 11997 if test -n "$STRIP" ; then 11998 striplib="$STRIP -x" 11999 old_striplib="$STRIP -S" 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12001$as_echo "yes" >&6; } 12002 else 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12004$as_echo "no" >&6; } 12005 fi 12006 ;; 12007 *) 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12009$as_echo "no" >&6; } 12010 ;; 12011 esac 12012fi 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 # Report which library types will actually be built 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12027$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12029$as_echo "$can_build_shared" >&6; } 12030 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12032$as_echo_n "checking whether to build shared libraries... " >&6; } 12033 test "$can_build_shared" = "no" && enable_shared=no 12034 12035 # On AIX, shared libraries and static libraries use the same namespace, and 12036 # are all built from PIC. 12037 case $host_os in 12038 aix3*) 12039 test "$enable_shared" = yes && enable_static=no 12040 if test -n "$RANLIB"; then 12041 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12042 postinstall_cmds='$RANLIB $lib' 12043 fi 12044 ;; 12045 12046 aix[4-9]*) 12047 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12048 test "$enable_shared" = yes && enable_static=no 12049 fi 12050 ;; 12051 esac 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12053$as_echo "$enable_shared" >&6; } 12054 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12056$as_echo_n "checking whether to build static libraries... " >&6; } 12057 # Make sure either enable_shared or enable_static is yes. 12058 test "$enable_shared" = yes || enable_static=yes 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12060$as_echo "$enable_static" >&6; } 12061 12062 12063 12064 12065fi 12066ac_ext=c 12067ac_cpp='$CPP $CPPFLAGS' 12068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12070ac_compiler_gnu=$ac_cv_c_compiler_gnu 12071 12072CC="$lt_save_CC" 12073 12074 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12075 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12076 (test "X$CXX" != "Xg++"))) ; then 12077 ac_ext=cpp 12078ac_cpp='$CXXCPP $CPPFLAGS' 12079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12083$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12084if test -z "$CXXCPP"; then 12085 if ${ac_cv_prog_CXXCPP+:} false; then : 12086 $as_echo_n "(cached) " >&6 12087else 12088 # Double quotes because CXXCPP needs to be expanded 12089 for CXXCPP in "$CXX -E" "/lib/cpp" 12090 do 12091 ac_preproc_ok=false 12092for ac_cxx_preproc_warn_flag in '' yes 12093do 12094 # Use a header file that comes with gcc, so configuring glibc 12095 # with a fresh cross-compiler works. 12096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12097 # <limits.h> exists even on freestanding compilers. 12098 # On the NeXT, cc -E runs the code through the compiler's parser, 12099 # not just through cpp. "Syntax error" is here to catch this case. 12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12101/* end confdefs.h. */ 12102#ifdef __STDC__ 12103# include <limits.h> 12104#else 12105# include <assert.h> 12106#endif 12107 Syntax error 12108_ACEOF 12109if ac_fn_cxx_try_cpp "$LINENO"; then : 12110 12111else 12112 # Broken: fails on valid input. 12113continue 12114fi 12115rm -f conftest.err conftest.i conftest.$ac_ext 12116 12117 # OK, works on sane cases. Now check whether nonexistent headers 12118 # can be detected and how. 12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12120/* end confdefs.h. */ 12121#include <ac_nonexistent.h> 12122_ACEOF 12123if ac_fn_cxx_try_cpp "$LINENO"; then : 12124 # Broken: success on invalid input. 12125continue 12126else 12127 # Passes both tests. 12128ac_preproc_ok=: 12129break 12130fi 12131rm -f conftest.err conftest.i conftest.$ac_ext 12132 12133done 12134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12135rm -f conftest.i conftest.err conftest.$ac_ext 12136if $ac_preproc_ok; then : 12137 break 12138fi 12139 12140 done 12141 ac_cv_prog_CXXCPP=$CXXCPP 12142 12143fi 12144 CXXCPP=$ac_cv_prog_CXXCPP 12145else 12146 ac_cv_prog_CXXCPP=$CXXCPP 12147fi 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12149$as_echo "$CXXCPP" >&6; } 12150ac_preproc_ok=false 12151for ac_cxx_preproc_warn_flag in '' yes 12152do 12153 # Use a header file that comes with gcc, so configuring glibc 12154 # with a fresh cross-compiler works. 12155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12156 # <limits.h> exists even on freestanding compilers. 12157 # On the NeXT, cc -E runs the code through the compiler's parser, 12158 # not just through cpp. "Syntax error" is here to catch this case. 12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12160/* end confdefs.h. */ 12161#ifdef __STDC__ 12162# include <limits.h> 12163#else 12164# include <assert.h> 12165#endif 12166 Syntax error 12167_ACEOF 12168if ac_fn_cxx_try_cpp "$LINENO"; then : 12169 12170else 12171 # Broken: fails on valid input. 12172continue 12173fi 12174rm -f conftest.err conftest.i conftest.$ac_ext 12175 12176 # OK, works on sane cases. Now check whether nonexistent headers 12177 # can be detected and how. 12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12179/* end confdefs.h. */ 12180#include <ac_nonexistent.h> 12181_ACEOF 12182if ac_fn_cxx_try_cpp "$LINENO"; then : 12183 # Broken: success on invalid input. 12184continue 12185else 12186 # Passes both tests. 12187ac_preproc_ok=: 12188break 12189fi 12190rm -f conftest.err conftest.i conftest.$ac_ext 12191 12192done 12193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12194rm -f conftest.i conftest.err conftest.$ac_ext 12195if $ac_preproc_ok; then : 12196 12197else 12198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12200as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12201See \`config.log' for more details" "$LINENO" 5; } 12202fi 12203 12204ac_ext=c 12205ac_cpp='$CPP $CPPFLAGS' 12206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12208ac_compiler_gnu=$ac_cv_c_compiler_gnu 12209 12210else 12211 _lt_caught_CXX_error=yes 12212fi 12213 12214ac_ext=cpp 12215ac_cpp='$CXXCPP $CPPFLAGS' 12216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12219 12220archive_cmds_need_lc_CXX=no 12221allow_undefined_flag_CXX= 12222always_export_symbols_CXX=no 12223archive_expsym_cmds_CXX= 12224compiler_needs_object_CXX=no 12225export_dynamic_flag_spec_CXX= 12226hardcode_direct_CXX=no 12227hardcode_direct_absolute_CXX=no 12228hardcode_libdir_flag_spec_CXX= 12229hardcode_libdir_separator_CXX= 12230hardcode_minus_L_CXX=no 12231hardcode_shlibpath_var_CXX=unsupported 12232hardcode_automatic_CXX=no 12233inherit_rpath_CXX=no 12234module_cmds_CXX= 12235module_expsym_cmds_CXX= 12236link_all_deplibs_CXX=unknown 12237old_archive_cmds_CXX=$old_archive_cmds 12238reload_flag_CXX=$reload_flag 12239reload_cmds_CXX=$reload_cmds 12240no_undefined_flag_CXX= 12241whole_archive_flag_spec_CXX= 12242enable_shared_with_static_runtimes_CXX=no 12243 12244# Source file extension for C++ test sources. 12245ac_ext=cpp 12246 12247# Object file extension for compiled C++ test sources. 12248objext=o 12249objext_CXX=$objext 12250 12251# No sense in running all these tests if we already determined that 12252# the CXX compiler isn't working. Some variables (like enable_shared) 12253# are currently assumed to apply to all compilers on this platform, 12254# and will be corrupted by setting them based on a non-working compiler. 12255if test "$_lt_caught_CXX_error" != yes; then 12256 # Code to be used in simple compile tests 12257 lt_simple_compile_test_code="int some_variable = 0;" 12258 12259 # Code to be used in simple link tests 12260 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12261 12262 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12263 12264 12265 12266 12267 12268 12269# If no C compiler was specified, use CC. 12270LTCC=${LTCC-"$CC"} 12271 12272# If no C compiler flags were specified, use CFLAGS. 12273LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12274 12275# Allow CC to be a program name with arguments. 12276compiler=$CC 12277 12278 12279 # save warnings/boilerplate of simple test code 12280 ac_outfile=conftest.$ac_objext 12281echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12283_lt_compiler_boilerplate=`cat conftest.err` 12284$RM conftest* 12285 12286 ac_outfile=conftest.$ac_objext 12287echo "$lt_simple_link_test_code" >conftest.$ac_ext 12288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12289_lt_linker_boilerplate=`cat conftest.err` 12290$RM -r conftest* 12291 12292 12293 # Allow CC to be a program name with arguments. 12294 lt_save_CC=$CC 12295 lt_save_CFLAGS=$CFLAGS 12296 lt_save_LD=$LD 12297 lt_save_GCC=$GCC 12298 GCC=$GXX 12299 lt_save_with_gnu_ld=$with_gnu_ld 12300 lt_save_path_LD=$lt_cv_path_LD 12301 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12302 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12303 else 12304 $as_unset lt_cv_prog_gnu_ld 12305 fi 12306 if test -n "${lt_cv_path_LDCXX+set}"; then 12307 lt_cv_path_LD=$lt_cv_path_LDCXX 12308 else 12309 $as_unset lt_cv_path_LD 12310 fi 12311 test -z "${LDCXX+set}" || LD=$LDCXX 12312 CC=${CXX-"c++"} 12313 CFLAGS=$CXXFLAGS 12314 compiler=$CC 12315 compiler_CXX=$CC 12316 for cc_temp in $compiler""; do 12317 case $cc_temp in 12318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12320 \-*) ;; 12321 *) break;; 12322 esac 12323done 12324cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12325 12326 12327 if test -n "$compiler"; then 12328 # We don't want -fno-exception when compiling C++ code, so set the 12329 # no_builtin_flag separately 12330 if test "$GXX" = yes; then 12331 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12332 else 12333 lt_prog_compiler_no_builtin_flag_CXX= 12334 fi 12335 12336 if test "$GXX" = yes; then 12337 # Set up default GNU C++ configuration 12338 12339 12340 12341# Check whether --with-gnu-ld was given. 12342if test "${with_gnu_ld+set}" = set; then : 12343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12344else 12345 with_gnu_ld=no 12346fi 12347 12348ac_prog=ld 12349if test "$GCC" = yes; then 12350 # Check if gcc -print-prog-name=ld gives a path. 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12352$as_echo_n "checking for ld used by $CC... " >&6; } 12353 case $host in 12354 *-*-mingw*) 12355 # gcc leaves a trailing carriage return which upsets mingw 12356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12357 *) 12358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12359 esac 12360 case $ac_prog in 12361 # Accept absolute paths. 12362 [\\/]* | ?:[\\/]*) 12363 re_direlt='/[^/][^/]*/\.\./' 12364 # Canonicalize the pathname of ld 12365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12367 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12368 done 12369 test -z "$LD" && LD="$ac_prog" 12370 ;; 12371 "") 12372 # If it fails, then pretend we aren't using GCC. 12373 ac_prog=ld 12374 ;; 12375 *) 12376 # If it is relative, then search for the first ld in PATH. 12377 with_gnu_ld=unknown 12378 ;; 12379 esac 12380elif test "$with_gnu_ld" = yes; then 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12382$as_echo_n "checking for GNU ld... " >&6; } 12383else 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12385$as_echo_n "checking for non-GNU ld... " >&6; } 12386fi 12387if ${lt_cv_path_LD+:} false; then : 12388 $as_echo_n "(cached) " >&6 12389else 12390 if test -z "$LD"; then 12391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12392 for ac_dir in $PATH; do 12393 IFS="$lt_save_ifs" 12394 test -z "$ac_dir" && ac_dir=. 12395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12396 lt_cv_path_LD="$ac_dir/$ac_prog" 12397 # Check to see if the program is GNU ld. I'd rather use --version, 12398 # but apparently some variants of GNU ld only accept -v. 12399 # Break only if it was the GNU/non-GNU ld that we prefer. 12400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12401 *GNU* | *'with BFD'*) 12402 test "$with_gnu_ld" != no && break 12403 ;; 12404 *) 12405 test "$with_gnu_ld" != yes && break 12406 ;; 12407 esac 12408 fi 12409 done 12410 IFS="$lt_save_ifs" 12411else 12412 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12413fi 12414fi 12415 12416LD="$lt_cv_path_LD" 12417if test -n "$LD"; then 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12419$as_echo "$LD" >&6; } 12420else 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12422$as_echo "no" >&6; } 12423fi 12424test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12426$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12427if ${lt_cv_prog_gnu_ld+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12431case `$LD -v 2>&1 </dev/null` in 12432*GNU* | *'with BFD'*) 12433 lt_cv_prog_gnu_ld=yes 12434 ;; 12435*) 12436 lt_cv_prog_gnu_ld=no 12437 ;; 12438esac 12439fi 12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12441$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12442with_gnu_ld=$lt_cv_prog_gnu_ld 12443 12444 12445 12446 12447 12448 12449 12450 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12451 # archiving commands below assume that GNU ld is being used. 12452 if test "$with_gnu_ld" = yes; then 12453 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12454 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' 12455 12456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12458 12459 # If archive_cmds runs LD, not CC, wlarc should be empty 12460 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12461 # investigate it a little bit more. (MM) 12462 wlarc='${wl}' 12463 12464 # ancient GNU ld didn't support --whole-archive et. al. 12465 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12466 $GREP 'no-whole-archive' > /dev/null; then 12467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12468 else 12469 whole_archive_flag_spec_CXX= 12470 fi 12471 else 12472 with_gnu_ld=no 12473 wlarc= 12474 12475 # A generic and very simple default shared library creation 12476 # command for GNU C++ for the case where it uses the native 12477 # linker, instead of GNU ld. If possible, this setting should 12478 # overridden to take advantage of the native linker features on 12479 # the platform it is being used on. 12480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12481 fi 12482 12483 # Commands to make compiler produce verbose output that lists 12484 # what "hidden" libraries, object files and flags are used when 12485 # linking a shared library. 12486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12487 12488 else 12489 GXX=no 12490 with_gnu_ld=no 12491 wlarc= 12492 fi 12493 12494 # PORTME: fill in a description of your system's C++ link characteristics 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12496$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12497 ld_shlibs_CXX=yes 12498 case $host_os in 12499 aix3*) 12500 # FIXME: insert proper C++ library support 12501 ld_shlibs_CXX=no 12502 ;; 12503 aix[4-9]*) 12504 if test "$host_cpu" = ia64; then 12505 # On IA64, the linker does run time linking by default, so we don't 12506 # have to do anything special. 12507 aix_use_runtimelinking=no 12508 exp_sym_flag='-Bexport' 12509 no_entry_flag="" 12510 else 12511 aix_use_runtimelinking=no 12512 12513 # Test if we are trying to use run time linking or normal 12514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12515 # need to do runtime linking. 12516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12517 for ld_flag in $LDFLAGS; do 12518 case $ld_flag in 12519 *-brtl*) 12520 aix_use_runtimelinking=yes 12521 break 12522 ;; 12523 esac 12524 done 12525 ;; 12526 esac 12527 12528 exp_sym_flag='-bexport' 12529 no_entry_flag='-bnoentry' 12530 fi 12531 12532 # When large executables or shared objects are built, AIX ld can 12533 # have problems creating the table of contents. If linking a library 12534 # or program results in "error TOC overflow" add -mminimal-toc to 12535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12537 12538 archive_cmds_CXX='' 12539 hardcode_direct_CXX=yes 12540 hardcode_direct_absolute_CXX=yes 12541 hardcode_libdir_separator_CXX=':' 12542 link_all_deplibs_CXX=yes 12543 file_list_spec_CXX='${wl}-f,' 12544 12545 if test "$GXX" = yes; then 12546 case $host_os in aix4.[012]|aix4.[012].*) 12547 # We only want to do this on AIX 4.2 and lower, the check 12548 # below for broken collect2 doesn't work under 4.3+ 12549 collect2name=`${CC} -print-prog-name=collect2` 12550 if test -f "$collect2name" && 12551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12552 then 12553 # We have reworked collect2 12554 : 12555 else 12556 # We have old collect2 12557 hardcode_direct_CXX=unsupported 12558 # It fails to find uninstalled libraries when the uninstalled 12559 # path is not listed in the libpath. Setting hardcode_minus_L 12560 # to unsupported forces relinking 12561 hardcode_minus_L_CXX=yes 12562 hardcode_libdir_flag_spec_CXX='-L$libdir' 12563 hardcode_libdir_separator_CXX= 12564 fi 12565 esac 12566 shared_flag='-shared' 12567 if test "$aix_use_runtimelinking" = yes; then 12568 shared_flag="$shared_flag "'${wl}-G' 12569 fi 12570 else 12571 # not using gcc 12572 if test "$host_cpu" = ia64; then 12573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12574 # chokes on -Wl,-G. The following line is correct: 12575 shared_flag='-G' 12576 else 12577 if test "$aix_use_runtimelinking" = yes; then 12578 shared_flag='${wl}-G' 12579 else 12580 shared_flag='${wl}-bM:SRE' 12581 fi 12582 fi 12583 fi 12584 12585 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12586 # It seems that -bexpall does not export symbols beginning with 12587 # underscore (_), so it is better to generate a list of symbols to 12588 # export. 12589 always_export_symbols_CXX=yes 12590 if test "$aix_use_runtimelinking" = yes; then 12591 # Warning - without using the other runtime loading flags (-brtl), 12592 # -berok will link without error, but may produce a broken library. 12593 allow_undefined_flag_CXX='-berok' 12594 # Determine the default libpath from the value encoded in an empty 12595 # executable. 12596 if test "${lt_cv_aix_libpath+set}" = set; then 12597 aix_libpath=$lt_cv_aix_libpath 12598else 12599 if ${lt_cv_aix_libpath__CXX+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12603/* end confdefs.h. */ 12604 12605int 12606main () 12607{ 12608 12609 ; 12610 return 0; 12611} 12612_ACEOF 12613if ac_fn_cxx_try_link "$LINENO"; then : 12614 12615 lt_aix_libpath_sed=' 12616 /Import File Strings/,/^$/ { 12617 /^0/ { 12618 s/^0 *\([^ ]*\) *$/\1/ 12619 p 12620 } 12621 }' 12622 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12623 # Check for a 64-bit object if we didn't find anything. 12624 if test -z "$lt_cv_aix_libpath__CXX"; then 12625 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12626 fi 12627fi 12628rm -f core conftest.err conftest.$ac_objext \ 12629 conftest$ac_exeext conftest.$ac_ext 12630 if test -z "$lt_cv_aix_libpath__CXX"; then 12631 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12632 fi 12633 12634fi 12635 12636 aix_libpath=$lt_cv_aix_libpath__CXX 12637fi 12638 12639 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12640 12641 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12642 else 12643 if test "$host_cpu" = ia64; then 12644 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12645 allow_undefined_flag_CXX="-z nodefs" 12646 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" 12647 else 12648 # Determine the default libpath from the value encoded in an 12649 # empty executable. 12650 if test "${lt_cv_aix_libpath+set}" = set; then 12651 aix_libpath=$lt_cv_aix_libpath 12652else 12653 if ${lt_cv_aix_libpath__CXX+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12657/* end confdefs.h. */ 12658 12659int 12660main () 12661{ 12662 12663 ; 12664 return 0; 12665} 12666_ACEOF 12667if ac_fn_cxx_try_link "$LINENO"; then : 12668 12669 lt_aix_libpath_sed=' 12670 /Import File Strings/,/^$/ { 12671 /^0/ { 12672 s/^0 *\([^ ]*\) *$/\1/ 12673 p 12674 } 12675 }' 12676 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12677 # Check for a 64-bit object if we didn't find anything. 12678 if test -z "$lt_cv_aix_libpath__CXX"; then 12679 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12680 fi 12681fi 12682rm -f core conftest.err conftest.$ac_objext \ 12683 conftest$ac_exeext conftest.$ac_ext 12684 if test -z "$lt_cv_aix_libpath__CXX"; then 12685 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12686 fi 12687 12688fi 12689 12690 aix_libpath=$lt_cv_aix_libpath__CXX 12691fi 12692 12693 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12694 # Warning - without using the other run time loading flags, 12695 # -berok will link without error, but may produce a broken library. 12696 no_undefined_flag_CXX=' ${wl}-bernotok' 12697 allow_undefined_flag_CXX=' ${wl}-berok' 12698 if test "$with_gnu_ld" = yes; then 12699 # We only use this code for GNU lds that support --whole-archive. 12700 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12701 else 12702 # Exported symbols can be pulled into shared objects from archives 12703 whole_archive_flag_spec_CXX='$convenience' 12704 fi 12705 archive_cmds_need_lc_CXX=yes 12706 # This is similar to how AIX traditionally builds its shared 12707 # libraries. 12708 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12709 fi 12710 fi 12711 ;; 12712 12713 beos*) 12714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12715 allow_undefined_flag_CXX=unsupported 12716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12717 # support --undefined. This deserves some investigation. FIXME 12718 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12719 else 12720 ld_shlibs_CXX=no 12721 fi 12722 ;; 12723 12724 chorus*) 12725 case $cc_basename in 12726 *) 12727 # FIXME: insert proper C++ library support 12728 ld_shlibs_CXX=no 12729 ;; 12730 esac 12731 ;; 12732 12733 cygwin* | mingw* | pw32* | cegcc*) 12734 case $GXX,$cc_basename in 12735 ,cl* | no,cl*) 12736 # Native MSVC 12737 # hardcode_libdir_flag_spec is actually meaningless, as there is 12738 # no search path for DLLs. 12739 hardcode_libdir_flag_spec_CXX=' ' 12740 allow_undefined_flag_CXX=unsupported 12741 always_export_symbols_CXX=yes 12742 file_list_spec_CXX='@' 12743 # Tell ltmain to make .lib files, not .a files. 12744 libext=lib 12745 # Tell ltmain to make .dll files, not .so files. 12746 shrext_cmds=".dll" 12747 # FIXME: Setting linknames here is a bad hack. 12748 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12749 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12750 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12751 else 12752 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12753 fi~ 12754 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12755 linknames=' 12756 # The linker will not automatically build a static lib if we build a DLL. 12757 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12758 enable_shared_with_static_runtimes_CXX=yes 12759 # Don't use ranlib 12760 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12761 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12762 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12763 case $lt_outputfile in 12764 *.exe|*.EXE) ;; 12765 *) 12766 lt_outputfile="$lt_outputfile.exe" 12767 lt_tool_outputfile="$lt_tool_outputfile.exe" 12768 ;; 12769 esac~ 12770 func_to_tool_file "$lt_outputfile"~ 12771 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12772 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12773 $RM "$lt_outputfile.manifest"; 12774 fi' 12775 ;; 12776 *) 12777 # g++ 12778 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12779 # as there is no search path for DLLs. 12780 hardcode_libdir_flag_spec_CXX='-L$libdir' 12781 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12782 allow_undefined_flag_CXX=unsupported 12783 always_export_symbols_CXX=no 12784 enable_shared_with_static_runtimes_CXX=yes 12785 12786 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12787 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' 12788 # If the export-symbols file already is a .def file (1st line 12789 # is EXPORTS), use it as is; otherwise, prepend... 12790 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12791 cp $export_symbols $output_objdir/$soname.def; 12792 else 12793 echo EXPORTS > $output_objdir/$soname.def; 12794 cat $export_symbols >> $output_objdir/$soname.def; 12795 fi~ 12796 $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' 12797 else 12798 ld_shlibs_CXX=no 12799 fi 12800 ;; 12801 esac 12802 ;; 12803 darwin* | rhapsody*) 12804 12805 12806 archive_cmds_need_lc_CXX=no 12807 hardcode_direct_CXX=no 12808 hardcode_automatic_CXX=yes 12809 hardcode_shlibpath_var_CXX=unsupported 12810 if test "$lt_cv_ld_force_load" = "yes"; then 12811 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\"`' 12812 12813 else 12814 whole_archive_flag_spec_CXX='' 12815 fi 12816 link_all_deplibs_CXX=yes 12817 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12818 case $cc_basename in 12819 ifort*) _lt_dar_can_shared=yes ;; 12820 *) _lt_dar_can_shared=$GCC ;; 12821 esac 12822 if test "$_lt_dar_can_shared" = "yes"; then 12823 output_verbose_link_cmd=func_echo_all 12824 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}" 12825 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12826 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}" 12827 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}" 12828 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12829 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}" 12830 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}" 12831 fi 12832 12833 else 12834 ld_shlibs_CXX=no 12835 fi 12836 12837 ;; 12838 12839 dgux*) 12840 case $cc_basename in 12841 ec++*) 12842 # FIXME: insert proper C++ library support 12843 ld_shlibs_CXX=no 12844 ;; 12845 ghcx*) 12846 # Green Hills C++ Compiler 12847 # FIXME: insert proper C++ library support 12848 ld_shlibs_CXX=no 12849 ;; 12850 *) 12851 # FIXME: insert proper C++ library support 12852 ld_shlibs_CXX=no 12853 ;; 12854 esac 12855 ;; 12856 12857 freebsd2.*) 12858 # C++ shared libraries reported to be fairly broken before 12859 # switch to ELF 12860 ld_shlibs_CXX=no 12861 ;; 12862 12863 freebsd-elf*) 12864 archive_cmds_need_lc_CXX=no 12865 ;; 12866 12867 freebsd* | dragonfly*) 12868 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12869 # conventions 12870 ld_shlibs_CXX=yes 12871 ;; 12872 12873 gnu*) 12874 ;; 12875 12876 haiku*) 12877 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12878 link_all_deplibs_CXX=yes 12879 ;; 12880 12881 hpux9*) 12882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12883 hardcode_libdir_separator_CXX=: 12884 export_dynamic_flag_spec_CXX='${wl}-E' 12885 hardcode_direct_CXX=yes 12886 hardcode_minus_L_CXX=yes # Not in the search PATH, 12887 # but as the default 12888 # location of the library. 12889 12890 case $cc_basename in 12891 CC*) 12892 # FIXME: insert proper C++ library support 12893 ld_shlibs_CXX=no 12894 ;; 12895 aCC*) 12896 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12897 # Commands to make compiler produce verbose output that lists 12898 # what "hidden" libraries, object files and flags are used when 12899 # linking a shared library. 12900 # 12901 # There doesn't appear to be a way to prevent this compiler from 12902 # explicitly linking system object files so we need to strip them 12903 # from the output so that they don't get included in the library 12904 # dependencies. 12905 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"' 12906 ;; 12907 *) 12908 if test "$GXX" = yes; then 12909 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12910 else 12911 # FIXME: insert proper C++ library support 12912 ld_shlibs_CXX=no 12913 fi 12914 ;; 12915 esac 12916 ;; 12917 12918 hpux10*|hpux11*) 12919 if test $with_gnu_ld = no; then 12920 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12921 hardcode_libdir_separator_CXX=: 12922 12923 case $host_cpu in 12924 hppa*64*|ia64*) 12925 ;; 12926 *) 12927 export_dynamic_flag_spec_CXX='${wl}-E' 12928 ;; 12929 esac 12930 fi 12931 case $host_cpu in 12932 hppa*64*|ia64*) 12933 hardcode_direct_CXX=no 12934 hardcode_shlibpath_var_CXX=no 12935 ;; 12936 *) 12937 hardcode_direct_CXX=yes 12938 hardcode_direct_absolute_CXX=yes 12939 hardcode_minus_L_CXX=yes # Not in the search PATH, 12940 # but as the default 12941 # location of the library. 12942 ;; 12943 esac 12944 12945 case $cc_basename in 12946 CC*) 12947 # FIXME: insert proper C++ library support 12948 ld_shlibs_CXX=no 12949 ;; 12950 aCC*) 12951 case $host_cpu in 12952 hppa*64*) 12953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12954 ;; 12955 ia64*) 12956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12957 ;; 12958 *) 12959 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12960 ;; 12961 esac 12962 # Commands to make compiler produce verbose output that lists 12963 # what "hidden" libraries, object files and flags are used when 12964 # linking a shared library. 12965 # 12966 # There doesn't appear to be a way to prevent this compiler from 12967 # explicitly linking system object files so we need to strip them 12968 # from the output so that they don't get included in the library 12969 # dependencies. 12970 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"' 12971 ;; 12972 *) 12973 if test "$GXX" = yes; then 12974 if test $with_gnu_ld = no; then 12975 case $host_cpu in 12976 hppa*64*) 12977 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12978 ;; 12979 ia64*) 12980 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12981 ;; 12982 *) 12983 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' 12984 ;; 12985 esac 12986 fi 12987 else 12988 # FIXME: insert proper C++ library support 12989 ld_shlibs_CXX=no 12990 fi 12991 ;; 12992 esac 12993 ;; 12994 12995 interix[3-9]*) 12996 hardcode_direct_CXX=no 12997 hardcode_shlibpath_var_CXX=no 12998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12999 export_dynamic_flag_spec_CXX='${wl}-E' 13000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13001 # Instead, shared libraries are loaded at an image base (0x10000000 by 13002 # default) and relocated if they conflict, which is a slow very memory 13003 # consuming and fragmenting process. To avoid this, we pick a random, 13004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13005 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13006 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' 13007 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' 13008 ;; 13009 irix5* | irix6*) 13010 case $cc_basename in 13011 CC*) 13012 # SGI C++ 13013 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' 13014 13015 # Archives containing C++ object files must be created using 13016 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13017 # necessary to make sure instantiated templates are included 13018 # in the archive. 13019 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13020 ;; 13021 *) 13022 if test "$GXX" = yes; then 13023 if test "$with_gnu_ld" = no; then 13024 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' 13025 else 13026 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' 13027 fi 13028 fi 13029 link_all_deplibs_CXX=yes 13030 ;; 13031 esac 13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13033 hardcode_libdir_separator_CXX=: 13034 inherit_rpath_CXX=yes 13035 ;; 13036 13037 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13038 case $cc_basename in 13039 KCC*) 13040 # Kuck and Associates, Inc. (KAI) C++ Compiler 13041 13042 # KCC will only create a shared library if the output file 13043 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13044 # to its proper name (with version) after linking. 13045 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' 13046 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' 13047 # Commands to make compiler produce verbose output that lists 13048 # what "hidden" libraries, object files and flags are used when 13049 # linking a shared library. 13050 # 13051 # There doesn't appear to be a way to prevent this compiler from 13052 # explicitly linking system object files so we need to strip them 13053 # from the output so that they don't get included in the library 13054 # dependencies. 13055 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"' 13056 13057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13058 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13059 13060 # Archives containing C++ object files must be created using 13061 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13062 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13063 ;; 13064 icpc* | ecpc* ) 13065 # Intel C++ 13066 with_gnu_ld=yes 13067 # version 8.0 and above of icpc choke on multiply defined symbols 13068 # if we add $predep_objects and $postdep_objects, however 7.1 and 13069 # earlier do not add the objects themselves. 13070 case `$CC -V 2>&1` in 13071 *"Version 7."*) 13072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13073 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' 13074 ;; 13075 *) # Version 8.0 or newer 13076 tmp_idyn= 13077 case $host_cpu in 13078 ia64*) tmp_idyn=' -i_dynamic';; 13079 esac 13080 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13081 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' 13082 ;; 13083 esac 13084 archive_cmds_need_lc_CXX=no 13085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13087 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13088 ;; 13089 pgCC* | pgcpp*) 13090 # Portland Group C++ compiler 13091 case `$CC -V` in 13092 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13093 prelink_cmds_CXX='tpldir=Template.dir~ 13094 rm -rf $tpldir~ 13095 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13096 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13097 old_archive_cmds_CXX='tpldir=Template.dir~ 13098 rm -rf $tpldir~ 13099 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13100 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13101 $RANLIB $oldlib' 13102 archive_cmds_CXX='tpldir=Template.dir~ 13103 rm -rf $tpldir~ 13104 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13105 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13106 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13107 rm -rf $tpldir~ 13108 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13109 $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' 13110 ;; 13111 *) # Version 6 and above use weak symbols 13112 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13113 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' 13114 ;; 13115 esac 13116 13117 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13119 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' 13120 ;; 13121 cxx*) 13122 # Compaq C++ 13123 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13124 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' 13125 13126 runpath_var=LD_RUN_PATH 13127 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13128 hardcode_libdir_separator_CXX=: 13129 13130 # Commands to make compiler produce verbose output that lists 13131 # what "hidden" libraries, object files and flags are used when 13132 # linking a shared library. 13133 # 13134 # There doesn't appear to be a way to prevent this compiler from 13135 # explicitly linking system object files so we need to strip them 13136 # from the output so that they don't get included in the library 13137 # dependencies. 13138 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' 13139 ;; 13140 xl* | mpixl* | bgxl*) 13141 # IBM XL 8.0 on PPC, with GNU ld 13142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13144 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13145 if test "x$supports_anon_versioning" = xyes; then 13146 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13148 echo "local: *; };" >> $output_objdir/$libname.ver~ 13149 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13150 fi 13151 ;; 13152 *) 13153 case `$CC -V 2>&1 | sed 5q` in 13154 *Sun\ C*) 13155 # Sun C++ 5.9 13156 no_undefined_flag_CXX=' -zdefs' 13157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13158 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' 13159 hardcode_libdir_flag_spec_CXX='-R$libdir' 13160 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' 13161 compiler_needs_object_CXX=yes 13162 13163 # Not sure whether something based on 13164 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13165 # would be better. 13166 output_verbose_link_cmd='func_echo_all' 13167 13168 # Archives containing C++ object files must be created using 13169 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13170 # necessary to make sure instantiated templates are included 13171 # in the archive. 13172 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13173 ;; 13174 esac 13175 ;; 13176 esac 13177 ;; 13178 13179 lynxos*) 13180 # FIXME: insert proper C++ library support 13181 ld_shlibs_CXX=no 13182 ;; 13183 13184 m88k*) 13185 # FIXME: insert proper C++ library support 13186 ld_shlibs_CXX=no 13187 ;; 13188 13189 mvs*) 13190 case $cc_basename in 13191 cxx*) 13192 # FIXME: insert proper C++ library support 13193 ld_shlibs_CXX=no 13194 ;; 13195 *) 13196 # FIXME: insert proper C++ library support 13197 ld_shlibs_CXX=no 13198 ;; 13199 esac 13200 ;; 13201 13202 netbsd*) 13203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13204 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13205 wlarc= 13206 hardcode_libdir_flag_spec_CXX='-R$libdir' 13207 hardcode_direct_CXX=yes 13208 hardcode_shlibpath_var_CXX=no 13209 fi 13210 # Workaround some broken pre-1.5 toolchains 13211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13212 ;; 13213 13214 *nto* | *qnx*) 13215 ld_shlibs_CXX=yes 13216 ;; 13217 13218 openbsd2*) 13219 # C++ shared libraries are fairly broken 13220 ld_shlibs_CXX=no 13221 ;; 13222 13223 openbsd*) 13224 if test -f /usr/libexec/ld.so; then 13225 hardcode_direct_CXX=yes 13226 hardcode_shlibpath_var_CXX=no 13227 hardcode_direct_absolute_CXX=yes 13228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13231 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13232 export_dynamic_flag_spec_CXX='${wl}-E' 13233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13234 fi 13235 output_verbose_link_cmd=func_echo_all 13236 else 13237 ld_shlibs_CXX=no 13238 fi 13239 ;; 13240 13241 osf3* | osf4* | osf5*) 13242 case $cc_basename in 13243 KCC*) 13244 # Kuck and Associates, Inc. (KAI) C++ Compiler 13245 13246 # KCC will only create a shared library if the output file 13247 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13248 # to its proper name (with version) after linking. 13249 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' 13250 13251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13252 hardcode_libdir_separator_CXX=: 13253 13254 # Archives containing C++ object files must be created using 13255 # the KAI C++ compiler. 13256 case $host in 13257 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13258 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13259 esac 13260 ;; 13261 RCC*) 13262 # Rational C++ 2.4.1 13263 # FIXME: insert proper C++ library support 13264 ld_shlibs_CXX=no 13265 ;; 13266 cxx*) 13267 case $host in 13268 osf3*) 13269 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13270 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' 13271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13272 ;; 13273 *) 13274 allow_undefined_flag_CXX=' -expect_unresolved \*' 13275 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' 13276 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13277 echo "-hidden">> $lib.exp~ 13278 $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~ 13279 $RM $lib.exp' 13280 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13281 ;; 13282 esac 13283 13284 hardcode_libdir_separator_CXX=: 13285 13286 # Commands to make compiler produce verbose output that lists 13287 # what "hidden" libraries, object files and flags are used when 13288 # linking a shared library. 13289 # 13290 # There doesn't appear to be a way to prevent this compiler from 13291 # explicitly linking system object files so we need to strip them 13292 # from the output so that they don't get included in the library 13293 # dependencies. 13294 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"' 13295 ;; 13296 *) 13297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13299 case $host in 13300 osf3*) 13301 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' 13302 ;; 13303 *) 13304 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' 13305 ;; 13306 esac 13307 13308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13309 hardcode_libdir_separator_CXX=: 13310 13311 # Commands to make compiler produce verbose output that lists 13312 # what "hidden" libraries, object files and flags are used when 13313 # linking a shared library. 13314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13315 13316 else 13317 # FIXME: insert proper C++ library support 13318 ld_shlibs_CXX=no 13319 fi 13320 ;; 13321 esac 13322 ;; 13323 13324 psos*) 13325 # FIXME: insert proper C++ library support 13326 ld_shlibs_CXX=no 13327 ;; 13328 13329 sunos4*) 13330 case $cc_basename in 13331 CC*) 13332 # Sun C++ 4.x 13333 # FIXME: insert proper C++ library support 13334 ld_shlibs_CXX=no 13335 ;; 13336 lcc*) 13337 # Lucid 13338 # FIXME: insert proper C++ library support 13339 ld_shlibs_CXX=no 13340 ;; 13341 *) 13342 # FIXME: insert proper C++ library support 13343 ld_shlibs_CXX=no 13344 ;; 13345 esac 13346 ;; 13347 13348 solaris*) 13349 case $cc_basename in 13350 CC* | sunCC*) 13351 # Sun C++ 4.2, 5.x and Centerline C++ 13352 archive_cmds_need_lc_CXX=yes 13353 no_undefined_flag_CXX=' -zdefs' 13354 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13355 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13356 $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' 13357 13358 hardcode_libdir_flag_spec_CXX='-R$libdir' 13359 hardcode_shlibpath_var_CXX=no 13360 case $host_os in 13361 solaris2.[0-5] | solaris2.[0-5].*) ;; 13362 *) 13363 # The compiler driver will combine and reorder linker options, 13364 # but understands `-z linker_flag'. 13365 # Supported since Solaris 2.6 (maybe 2.5.1?) 13366 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13367 ;; 13368 esac 13369 link_all_deplibs_CXX=yes 13370 13371 output_verbose_link_cmd='func_echo_all' 13372 13373 # Archives containing C++ object files must be created using 13374 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13375 # necessary to make sure instantiated templates are included 13376 # in the archive. 13377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13378 ;; 13379 gcx*) 13380 # Green Hills C++ Compiler 13381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13382 13383 # The C++ compiler must be used to create the archive. 13384 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13385 ;; 13386 *) 13387 # GNU C++ compiler with Solaris linker 13388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13389 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13390 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13391 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13392 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13393 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13394 13395 # Commands to make compiler produce verbose output that lists 13396 # what "hidden" libraries, object files and flags are used when 13397 # linking a shared library. 13398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13399 else 13400 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13401 # platform. 13402 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13403 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13405 13406 # Commands to make compiler produce verbose output that lists 13407 # what "hidden" libraries, object files and flags are used when 13408 # linking a shared library. 13409 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13410 fi 13411 13412 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13413 case $host_os in 13414 solaris2.[0-5] | solaris2.[0-5].*) ;; 13415 *) 13416 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13417 ;; 13418 esac 13419 fi 13420 ;; 13421 esac 13422 ;; 13423 13424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13425 no_undefined_flag_CXX='${wl}-z,text' 13426 archive_cmds_need_lc_CXX=no 13427 hardcode_shlibpath_var_CXX=no 13428 runpath_var='LD_RUN_PATH' 13429 13430 case $cc_basename in 13431 CC*) 13432 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13433 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13434 ;; 13435 *) 13436 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13437 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13438 ;; 13439 esac 13440 ;; 13441 13442 sysv5* | sco3.2v5* | sco5v6*) 13443 # Note: We can NOT use -z defs as we might desire, because we do not 13444 # link with -lc, and that would cause any symbols used from libc to 13445 # always be unresolved, which means just about no library would 13446 # ever link correctly. If we're not using GNU ld we use -z text 13447 # though, which does catch some bad symbols but isn't as heavy-handed 13448 # as -z defs. 13449 no_undefined_flag_CXX='${wl}-z,text' 13450 allow_undefined_flag_CXX='${wl}-z,nodefs' 13451 archive_cmds_need_lc_CXX=no 13452 hardcode_shlibpath_var_CXX=no 13453 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13454 hardcode_libdir_separator_CXX=':' 13455 link_all_deplibs_CXX=yes 13456 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13457 runpath_var='LD_RUN_PATH' 13458 13459 case $cc_basename in 13460 CC*) 13461 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13462 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13463 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13464 '"$old_archive_cmds_CXX" 13465 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13466 '"$reload_cmds_CXX" 13467 ;; 13468 *) 13469 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13470 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13471 ;; 13472 esac 13473 ;; 13474 13475 tandem*) 13476 case $cc_basename in 13477 NCC*) 13478 # NonStop-UX NCC 3.20 13479 # FIXME: insert proper C++ library support 13480 ld_shlibs_CXX=no 13481 ;; 13482 *) 13483 # FIXME: insert proper C++ library support 13484 ld_shlibs_CXX=no 13485 ;; 13486 esac 13487 ;; 13488 13489 vxworks*) 13490 # FIXME: insert proper C++ library support 13491 ld_shlibs_CXX=no 13492 ;; 13493 13494 *) 13495 # FIXME: insert proper C++ library support 13496 ld_shlibs_CXX=no 13497 ;; 13498 esac 13499 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13501$as_echo "$ld_shlibs_CXX" >&6; } 13502 test "$ld_shlibs_CXX" = no && can_build_shared=no 13503 13504 GCC_CXX="$GXX" 13505 LD_CXX="$LD" 13506 13507 ## CAVEAT EMPTOR: 13508 ## There is no encapsulation within the following macros, do not change 13509 ## the running order or otherwise move them around unless you know exactly 13510 ## what you are doing... 13511 # Dependencies to place before and after the object being linked: 13512predep_objects_CXX= 13513postdep_objects_CXX= 13514predeps_CXX= 13515postdeps_CXX= 13516compiler_lib_search_path_CXX= 13517 13518cat > conftest.$ac_ext <<_LT_EOF 13519class Foo 13520{ 13521public: 13522 Foo (void) { a = 0; } 13523private: 13524 int a; 13525}; 13526_LT_EOF 13527 13528 13529_lt_libdeps_save_CFLAGS=$CFLAGS 13530case "$CC $CFLAGS " in #( 13531*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13532*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13533*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13534esac 13535 13536if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13537 (eval $ac_compile) 2>&5 13538 ac_status=$? 13539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13540 test $ac_status = 0; }; then 13541 # Parse the compiler output and extract the necessary 13542 # objects, libraries and library flags. 13543 13544 # Sentinel used to keep track of whether or not we are before 13545 # the conftest object file. 13546 pre_test_object_deps_done=no 13547 13548 for p in `eval "$output_verbose_link_cmd"`; do 13549 case ${prev}${p} in 13550 13551 -L* | -R* | -l*) 13552 # Some compilers place space between "-{L,R}" and the path. 13553 # Remove the space. 13554 if test $p = "-L" || 13555 test $p = "-R"; then 13556 prev=$p 13557 continue 13558 fi 13559 13560 # Expand the sysroot to ease extracting the directories later. 13561 if test -z "$prev"; then 13562 case $p in 13563 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13564 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13565 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13566 esac 13567 fi 13568 case $p in 13569 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13570 esac 13571 if test "$pre_test_object_deps_done" = no; then 13572 case ${prev} in 13573 -L | -R) 13574 # Internal compiler library paths should come after those 13575 # provided the user. The postdeps already come after the 13576 # user supplied libs so there is no need to process them. 13577 if test -z "$compiler_lib_search_path_CXX"; then 13578 compiler_lib_search_path_CXX="${prev}${p}" 13579 else 13580 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13581 fi 13582 ;; 13583 # The "-l" case would never come before the object being 13584 # linked, so don't bother handling this case. 13585 esac 13586 else 13587 if test -z "$postdeps_CXX"; then 13588 postdeps_CXX="${prev}${p}" 13589 else 13590 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13591 fi 13592 fi 13593 prev= 13594 ;; 13595 13596 *.lto.$objext) ;; # Ignore GCC LTO objects 13597 *.$objext) 13598 # This assumes that the test object file only shows up 13599 # once in the compiler output. 13600 if test "$p" = "conftest.$objext"; then 13601 pre_test_object_deps_done=yes 13602 continue 13603 fi 13604 13605 if test "$pre_test_object_deps_done" = no; then 13606 if test -z "$predep_objects_CXX"; then 13607 predep_objects_CXX="$p" 13608 else 13609 predep_objects_CXX="$predep_objects_CXX $p" 13610 fi 13611 else 13612 if test -z "$postdep_objects_CXX"; then 13613 postdep_objects_CXX="$p" 13614 else 13615 postdep_objects_CXX="$postdep_objects_CXX $p" 13616 fi 13617 fi 13618 ;; 13619 13620 *) ;; # Ignore the rest. 13621 13622 esac 13623 done 13624 13625 # Clean up. 13626 rm -f a.out a.exe 13627else 13628 echo "libtool.m4: error: problem compiling CXX test program" 13629fi 13630 13631$RM -f confest.$objext 13632CFLAGS=$_lt_libdeps_save_CFLAGS 13633 13634# PORTME: override above test on systems where it is broken 13635case $host_os in 13636interix[3-9]*) 13637 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13638 # hack all around it, let's just trust "g++" to DTRT. 13639 predep_objects_CXX= 13640 postdep_objects_CXX= 13641 postdeps_CXX= 13642 ;; 13643 13644linux*) 13645 case `$CC -V 2>&1 | sed 5q` in 13646 *Sun\ C*) 13647 # Sun C++ 5.9 13648 13649 # The more standards-conforming stlport4 library is 13650 # incompatible with the Cstd library. Avoid specifying 13651 # it if it's in CXXFLAGS. Ignore libCrun as 13652 # -library=stlport4 depends on it. 13653 case " $CXX $CXXFLAGS " in 13654 *" -library=stlport4 "*) 13655 solaris_use_stlport4=yes 13656 ;; 13657 esac 13658 13659 if test "$solaris_use_stlport4" != yes; then 13660 postdeps_CXX='-library=Cstd -library=Crun' 13661 fi 13662 ;; 13663 esac 13664 ;; 13665 13666solaris*) 13667 case $cc_basename in 13668 CC* | sunCC*) 13669 # The more standards-conforming stlport4 library is 13670 # incompatible with the Cstd library. Avoid specifying 13671 # it if it's in CXXFLAGS. Ignore libCrun as 13672 # -library=stlport4 depends on it. 13673 case " $CXX $CXXFLAGS " in 13674 *" -library=stlport4 "*) 13675 solaris_use_stlport4=yes 13676 ;; 13677 esac 13678 13679 # Adding this requires a known-good setup of shared libraries for 13680 # Sun compiler versions before 5.6, else PIC objects from an old 13681 # archive will be linked into the output, leading to subtle bugs. 13682 if test "$solaris_use_stlport4" != yes; then 13683 postdeps_CXX='-library=Cstd -library=Crun' 13684 fi 13685 ;; 13686 esac 13687 ;; 13688esac 13689 13690 13691case " $postdeps_CXX " in 13692*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13693esac 13694 compiler_lib_search_dirs_CXX= 13695if test -n "${compiler_lib_search_path_CXX}"; then 13696 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13697fi 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 lt_prog_compiler_wl_CXX= 13730lt_prog_compiler_pic_CXX= 13731lt_prog_compiler_static_CXX= 13732 13733 13734 # C++ specific cases for pic, static, wl, etc. 13735 if test "$GXX" = yes; then 13736 lt_prog_compiler_wl_CXX='-Wl,' 13737 lt_prog_compiler_static_CXX='-static' 13738 13739 case $host_os in 13740 aix*) 13741 # All AIX code is PIC. 13742 if test "$host_cpu" = ia64; then 13743 # AIX 5 now supports IA64 processor 13744 lt_prog_compiler_static_CXX='-Bstatic' 13745 fi 13746 ;; 13747 13748 amigaos*) 13749 case $host_cpu in 13750 powerpc) 13751 # see comment about AmigaOS4 .so support 13752 lt_prog_compiler_pic_CXX='-fPIC' 13753 ;; 13754 m68k) 13755 # FIXME: we need at least 68020 code to build shared libraries, but 13756 # adding the `-m68020' flag to GCC prevents building anything better, 13757 # like `-m68040'. 13758 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13759 ;; 13760 esac 13761 ;; 13762 13763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13764 # PIC is the default for these OSes. 13765 ;; 13766 mingw* | cygwin* | os2* | pw32* | cegcc*) 13767 # This hack is so that the source file can tell whether it is being 13768 # built for inclusion in a dll (and should export symbols for example). 13769 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13770 # (--disable-auto-import) libraries 13771 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13772 ;; 13773 darwin* | rhapsody*) 13774 # PIC is the default on this platform 13775 # Common symbols not allowed in MH_DYLIB files 13776 lt_prog_compiler_pic_CXX='-fno-common' 13777 ;; 13778 *djgpp*) 13779 # DJGPP does not support shared libraries at all 13780 lt_prog_compiler_pic_CXX= 13781 ;; 13782 haiku*) 13783 # PIC is the default for Haiku. 13784 # The "-static" flag exists, but is broken. 13785 lt_prog_compiler_static_CXX= 13786 ;; 13787 interix[3-9]*) 13788 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13789 # Instead, we relocate shared libraries at runtime. 13790 ;; 13791 sysv4*MP*) 13792 if test -d /usr/nec; then 13793 lt_prog_compiler_pic_CXX=-Kconform_pic 13794 fi 13795 ;; 13796 hpux*) 13797 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13798 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13799 # sets the default TLS model and affects inlining. 13800 case $host_cpu in 13801 hppa*64*) 13802 ;; 13803 *) 13804 lt_prog_compiler_pic_CXX='-fPIC' 13805 ;; 13806 esac 13807 ;; 13808 *qnx* | *nto*) 13809 # QNX uses GNU C++, but need to define -shared option too, otherwise 13810 # it will coredump. 13811 lt_prog_compiler_pic_CXX='-fPIC -shared' 13812 ;; 13813 *) 13814 lt_prog_compiler_pic_CXX='-fPIC' 13815 ;; 13816 esac 13817 else 13818 case $host_os in 13819 aix[4-9]*) 13820 # All AIX code is PIC. 13821 if test "$host_cpu" = ia64; then 13822 # AIX 5 now supports IA64 processor 13823 lt_prog_compiler_static_CXX='-Bstatic' 13824 else 13825 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13826 fi 13827 ;; 13828 chorus*) 13829 case $cc_basename in 13830 cxch68*) 13831 # Green Hills C++ Compiler 13832 # _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" 13833 ;; 13834 esac 13835 ;; 13836 mingw* | cygwin* | os2* | pw32* | cegcc*) 13837 # This hack is so that the source file can tell whether it is being 13838 # built for inclusion in a dll (and should export symbols for example). 13839 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13840 ;; 13841 dgux*) 13842 case $cc_basename in 13843 ec++*) 13844 lt_prog_compiler_pic_CXX='-KPIC' 13845 ;; 13846 ghcx*) 13847 # Green Hills C++ Compiler 13848 lt_prog_compiler_pic_CXX='-pic' 13849 ;; 13850 *) 13851 ;; 13852 esac 13853 ;; 13854 freebsd* | dragonfly*) 13855 # FreeBSD uses GNU C++ 13856 ;; 13857 hpux9* | hpux10* | hpux11*) 13858 case $cc_basename in 13859 CC*) 13860 lt_prog_compiler_wl_CXX='-Wl,' 13861 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13862 if test "$host_cpu" != ia64; then 13863 lt_prog_compiler_pic_CXX='+Z' 13864 fi 13865 ;; 13866 aCC*) 13867 lt_prog_compiler_wl_CXX='-Wl,' 13868 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13869 case $host_cpu in 13870 hppa*64*|ia64*) 13871 # +Z the default 13872 ;; 13873 *) 13874 lt_prog_compiler_pic_CXX='+Z' 13875 ;; 13876 esac 13877 ;; 13878 *) 13879 ;; 13880 esac 13881 ;; 13882 interix*) 13883 # This is c89, which is MS Visual C++ (no shared libs) 13884 # Anyone wants to do a port? 13885 ;; 13886 irix5* | irix6* | nonstopux*) 13887 case $cc_basename in 13888 CC*) 13889 lt_prog_compiler_wl_CXX='-Wl,' 13890 lt_prog_compiler_static_CXX='-non_shared' 13891 # CC pic flag -KPIC is the default. 13892 ;; 13893 *) 13894 ;; 13895 esac 13896 ;; 13897 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13898 case $cc_basename in 13899 KCC*) 13900 # KAI C++ Compiler 13901 lt_prog_compiler_wl_CXX='--backend -Wl,' 13902 lt_prog_compiler_pic_CXX='-fPIC' 13903 ;; 13904 ecpc* ) 13905 # old Intel C++ for x86_64 which still supported -KPIC. 13906 lt_prog_compiler_wl_CXX='-Wl,' 13907 lt_prog_compiler_pic_CXX='-KPIC' 13908 lt_prog_compiler_static_CXX='-static' 13909 ;; 13910 icpc* ) 13911 # Intel C++, used to be incompatible with GCC. 13912 # ICC 10 doesn't accept -KPIC any more. 13913 lt_prog_compiler_wl_CXX='-Wl,' 13914 lt_prog_compiler_pic_CXX='-fPIC' 13915 lt_prog_compiler_static_CXX='-static' 13916 ;; 13917 pgCC* | pgcpp*) 13918 # Portland Group C++ compiler 13919 lt_prog_compiler_wl_CXX='-Wl,' 13920 lt_prog_compiler_pic_CXX='-fpic' 13921 lt_prog_compiler_static_CXX='-Bstatic' 13922 ;; 13923 cxx*) 13924 # Compaq C++ 13925 # Make sure the PIC flag is empty. It appears that all Alpha 13926 # Linux and Compaq Tru64 Unix objects are PIC. 13927 lt_prog_compiler_pic_CXX= 13928 lt_prog_compiler_static_CXX='-non_shared' 13929 ;; 13930 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13931 # IBM XL 8.0, 9.0 on PPC and BlueGene 13932 lt_prog_compiler_wl_CXX='-Wl,' 13933 lt_prog_compiler_pic_CXX='-qpic' 13934 lt_prog_compiler_static_CXX='-qstaticlink' 13935 ;; 13936 *) 13937 case `$CC -V 2>&1 | sed 5q` in 13938 *Sun\ C*) 13939 # Sun C++ 5.9 13940 lt_prog_compiler_pic_CXX='-KPIC' 13941 lt_prog_compiler_static_CXX='-Bstatic' 13942 lt_prog_compiler_wl_CXX='-Qoption ld ' 13943 ;; 13944 esac 13945 ;; 13946 esac 13947 ;; 13948 lynxos*) 13949 ;; 13950 m88k*) 13951 ;; 13952 mvs*) 13953 case $cc_basename in 13954 cxx*) 13955 lt_prog_compiler_pic_CXX='-W c,exportall' 13956 ;; 13957 *) 13958 ;; 13959 esac 13960 ;; 13961 netbsd* | netbsdelf*-gnu) 13962 ;; 13963 *qnx* | *nto*) 13964 # QNX uses GNU C++, but need to define -shared option too, otherwise 13965 # it will coredump. 13966 lt_prog_compiler_pic_CXX='-fPIC -shared' 13967 ;; 13968 osf3* | osf4* | osf5*) 13969 case $cc_basename in 13970 KCC*) 13971 lt_prog_compiler_wl_CXX='--backend -Wl,' 13972 ;; 13973 RCC*) 13974 # Rational C++ 2.4.1 13975 lt_prog_compiler_pic_CXX='-pic' 13976 ;; 13977 cxx*) 13978 # Digital/Compaq C++ 13979 lt_prog_compiler_wl_CXX='-Wl,' 13980 # Make sure the PIC flag is empty. It appears that all Alpha 13981 # Linux and Compaq Tru64 Unix objects are PIC. 13982 lt_prog_compiler_pic_CXX= 13983 lt_prog_compiler_static_CXX='-non_shared' 13984 ;; 13985 *) 13986 ;; 13987 esac 13988 ;; 13989 psos*) 13990 ;; 13991 solaris*) 13992 case $cc_basename in 13993 CC* | sunCC*) 13994 # Sun C++ 4.2, 5.x and Centerline C++ 13995 lt_prog_compiler_pic_CXX='-KPIC' 13996 lt_prog_compiler_static_CXX='-Bstatic' 13997 lt_prog_compiler_wl_CXX='-Qoption ld ' 13998 ;; 13999 gcx*) 14000 # Green Hills C++ Compiler 14001 lt_prog_compiler_pic_CXX='-PIC' 14002 ;; 14003 *) 14004 ;; 14005 esac 14006 ;; 14007 sunos4*) 14008 case $cc_basename in 14009 CC*) 14010 # Sun C++ 4.x 14011 lt_prog_compiler_pic_CXX='-pic' 14012 lt_prog_compiler_static_CXX='-Bstatic' 14013 ;; 14014 lcc*) 14015 # Lucid 14016 lt_prog_compiler_pic_CXX='-pic' 14017 ;; 14018 *) 14019 ;; 14020 esac 14021 ;; 14022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14023 case $cc_basename in 14024 CC*) 14025 lt_prog_compiler_wl_CXX='-Wl,' 14026 lt_prog_compiler_pic_CXX='-KPIC' 14027 lt_prog_compiler_static_CXX='-Bstatic' 14028 ;; 14029 esac 14030 ;; 14031 tandem*) 14032 case $cc_basename in 14033 NCC*) 14034 # NonStop-UX NCC 3.20 14035 lt_prog_compiler_pic_CXX='-KPIC' 14036 ;; 14037 *) 14038 ;; 14039 esac 14040 ;; 14041 vxworks*) 14042 ;; 14043 *) 14044 lt_prog_compiler_can_build_shared_CXX=no 14045 ;; 14046 esac 14047 fi 14048 14049case $host_os in 14050 # For platforms which do not support PIC, -DPIC is meaningless: 14051 *djgpp*) 14052 lt_prog_compiler_pic_CXX= 14053 ;; 14054 *) 14055 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14056 ;; 14057esac 14058 14059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14060$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14061if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14062 $as_echo_n "(cached) " >&6 14063else 14064 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14065fi 14066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14067$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14068lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14069 14070# 14071# Check to make sure the PIC flag actually works. 14072# 14073if test -n "$lt_prog_compiler_pic_CXX"; then 14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14075$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14076if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14077 $as_echo_n "(cached) " >&6 14078else 14079 lt_cv_prog_compiler_pic_works_CXX=no 14080 ac_outfile=conftest.$ac_objext 14081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14082 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14083 # Insert the option either (1) after the last *FLAGS variable, or 14084 # (2) before a word containing "conftest.", or (3) at the end. 14085 # Note that $ac_compile itself does not contain backslashes and begins 14086 # with a dollar sign (not a hyphen), so the echo should work correctly. 14087 # The option is referenced via a variable to avoid confusing sed. 14088 lt_compile=`echo "$ac_compile" | $SED \ 14089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14091 -e 's:$: $lt_compiler_flag:'` 14092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14093 (eval "$lt_compile" 2>conftest.err) 14094 ac_status=$? 14095 cat conftest.err >&5 14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14097 if (exit $ac_status) && test -s "$ac_outfile"; then 14098 # The compiler can only warn and ignore the option if not recognized 14099 # So say no if there are warnings other than the usual output. 14100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14103 lt_cv_prog_compiler_pic_works_CXX=yes 14104 fi 14105 fi 14106 $RM conftest* 14107 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14110$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14111 14112if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14113 case $lt_prog_compiler_pic_CXX in 14114 "" | " "*) ;; 14115 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14116 esac 14117else 14118 lt_prog_compiler_pic_CXX= 14119 lt_prog_compiler_can_build_shared_CXX=no 14120fi 14121 14122fi 14123 14124 14125 14126 14127 14128# 14129# Check to make sure the static flag actually works. 14130# 14131wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14133$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14134if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14135 $as_echo_n "(cached) " >&6 14136else 14137 lt_cv_prog_compiler_static_works_CXX=no 14138 save_LDFLAGS="$LDFLAGS" 14139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14140 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14142 # The linker can only warn and ignore the option if not recognized 14143 # So say no if there are warnings 14144 if test -s conftest.err; then 14145 # Append any errors to the config.log. 14146 cat conftest.err 1>&5 14147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14149 if diff conftest.exp conftest.er2 >/dev/null; then 14150 lt_cv_prog_compiler_static_works_CXX=yes 14151 fi 14152 else 14153 lt_cv_prog_compiler_static_works_CXX=yes 14154 fi 14155 fi 14156 $RM -r conftest* 14157 LDFLAGS="$save_LDFLAGS" 14158 14159fi 14160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14161$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14162 14163if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14164 : 14165else 14166 lt_prog_compiler_static_CXX= 14167fi 14168 14169 14170 14171 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14173$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14174if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14175 $as_echo_n "(cached) " >&6 14176else 14177 lt_cv_prog_compiler_c_o_CXX=no 14178 $RM -r conftest 2>/dev/null 14179 mkdir conftest 14180 cd conftest 14181 mkdir out 14182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14183 14184 lt_compiler_flag="-o out/conftest2.$ac_objext" 14185 # Insert the option either (1) after the last *FLAGS variable, or 14186 # (2) before a word containing "conftest.", or (3) at the end. 14187 # Note that $ac_compile itself does not contain backslashes and begins 14188 # with a dollar sign (not a hyphen), so the echo should work correctly. 14189 lt_compile=`echo "$ac_compile" | $SED \ 14190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14192 -e 's:$: $lt_compiler_flag:'` 14193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14194 (eval "$lt_compile" 2>out/conftest.err) 14195 ac_status=$? 14196 cat out/conftest.err >&5 14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14198 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14199 then 14200 # The compiler can only warn and ignore the option if not recognized 14201 # So say no if there are warnings 14202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14205 lt_cv_prog_compiler_c_o_CXX=yes 14206 fi 14207 fi 14208 chmod u+w . 2>&5 14209 $RM conftest* 14210 # SGI C++ compiler will create directory out/ii_files/ for 14211 # template instantiation 14212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14213 $RM out/* && rmdir out 14214 cd .. 14215 $RM -r conftest 14216 $RM conftest* 14217 14218fi 14219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14220$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14221 14222 14223 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14226if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14227 $as_echo_n "(cached) " >&6 14228else 14229 lt_cv_prog_compiler_c_o_CXX=no 14230 $RM -r conftest 2>/dev/null 14231 mkdir conftest 14232 cd conftest 14233 mkdir out 14234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14235 14236 lt_compiler_flag="-o out/conftest2.$ac_objext" 14237 # Insert the option either (1) after the last *FLAGS variable, or 14238 # (2) before a word containing "conftest.", or (3) at the end. 14239 # Note that $ac_compile itself does not contain backslashes and begins 14240 # with a dollar sign (not a hyphen), so the echo should work correctly. 14241 lt_compile=`echo "$ac_compile" | $SED \ 14242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14244 -e 's:$: $lt_compiler_flag:'` 14245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14246 (eval "$lt_compile" 2>out/conftest.err) 14247 ac_status=$? 14248 cat out/conftest.err >&5 14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14250 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14251 then 14252 # The compiler can only warn and ignore the option if not recognized 14253 # So say no if there are warnings 14254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14257 lt_cv_prog_compiler_c_o_CXX=yes 14258 fi 14259 fi 14260 chmod u+w . 2>&5 14261 $RM conftest* 14262 # SGI C++ compiler will create directory out/ii_files/ for 14263 # template instantiation 14264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14265 $RM out/* && rmdir out 14266 cd .. 14267 $RM -r conftest 14268 $RM conftest* 14269 14270fi 14271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14272$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14273 14274 14275 14276 14277hard_links="nottested" 14278if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14279 # do not overwrite the value of need_locks provided by the user 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14281$as_echo_n "checking if we can lock with hard links... " >&6; } 14282 hard_links=yes 14283 $RM conftest* 14284 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14285 touch conftest.a 14286 ln conftest.a conftest.b 2>&5 || hard_links=no 14287 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14289$as_echo "$hard_links" >&6; } 14290 if test "$hard_links" = no; then 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14292$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14293 need_locks=warn 14294 fi 14295else 14296 need_locks=no 14297fi 14298 14299 14300 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14302$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14303 14304 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14305 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14306 case $host_os in 14307 aix[4-9]*) 14308 # If we're using GNU nm, then we don't want the "-C" option. 14309 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14310 # Also, AIX nm treats weak defined symbols like other global defined 14311 # symbols, whereas GNU nm marks them as "W". 14312 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14313 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14314 else 14315 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14316 fi 14317 ;; 14318 pw32*) 14319 export_symbols_cmds_CXX="$ltdll_cmds" 14320 ;; 14321 cygwin* | mingw* | cegcc*) 14322 case $cc_basename in 14323 cl*) 14324 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14325 ;; 14326 *) 14327 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' 14328 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14329 ;; 14330 esac 14331 ;; 14332 linux* | k*bsd*-gnu | gnu*) 14333 link_all_deplibs_CXX=no 14334 ;; 14335 *) 14336 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14337 ;; 14338 esac 14339 14340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14341$as_echo "$ld_shlibs_CXX" >&6; } 14342test "$ld_shlibs_CXX" = no && can_build_shared=no 14343 14344with_gnu_ld_CXX=$with_gnu_ld 14345 14346 14347 14348 14349 14350 14351# 14352# Do we need to explicitly link libc? 14353# 14354case "x$archive_cmds_need_lc_CXX" in 14355x|xyes) 14356 # Assume -lc should be added 14357 archive_cmds_need_lc_CXX=yes 14358 14359 if test "$enable_shared" = yes && test "$GCC" = yes; then 14360 case $archive_cmds_CXX in 14361 *'~'*) 14362 # FIXME: we may have to deal with multi-command sequences. 14363 ;; 14364 '$CC '*) 14365 # Test whether the compiler implicitly links with -lc since on some 14366 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14367 # to ld, don't add -lc before -lgcc. 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14369$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14370if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14371 $as_echo_n "(cached) " >&6 14372else 14373 $RM conftest* 14374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14375 14376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14377 (eval $ac_compile) 2>&5 14378 ac_status=$? 14379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14380 test $ac_status = 0; } 2>conftest.err; then 14381 soname=conftest 14382 lib=conftest 14383 libobjs=conftest.$ac_objext 14384 deplibs= 14385 wl=$lt_prog_compiler_wl_CXX 14386 pic_flag=$lt_prog_compiler_pic_CXX 14387 compiler_flags=-v 14388 linker_flags=-v 14389 verstring= 14390 output_objdir=. 14391 libname=conftest 14392 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14393 allow_undefined_flag_CXX= 14394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14395 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14396 ac_status=$? 14397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14398 test $ac_status = 0; } 14399 then 14400 lt_cv_archive_cmds_need_lc_CXX=no 14401 else 14402 lt_cv_archive_cmds_need_lc_CXX=yes 14403 fi 14404 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14405 else 14406 cat conftest.err 1>&5 14407 fi 14408 $RM conftest* 14409 14410fi 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14412$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14413 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14414 ;; 14415 esac 14416 fi 14417 ;; 14418esac 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14482$as_echo_n "checking dynamic linker characteristics... " >&6; } 14483 14484library_names_spec= 14485libname_spec='lib$name' 14486soname_spec= 14487shrext_cmds=".so" 14488postinstall_cmds= 14489postuninstall_cmds= 14490finish_cmds= 14491finish_eval= 14492shlibpath_var= 14493shlibpath_overrides_runpath=unknown 14494version_type=none 14495dynamic_linker="$host_os ld.so" 14496sys_lib_dlsearch_path_spec="/lib /usr/lib" 14497need_lib_prefix=unknown 14498hardcode_into_libs=no 14499 14500# when you set need_version to no, make sure it does not cause -set_version 14501# flags to be left without arguments 14502need_version=unknown 14503 14504case $host_os in 14505aix3*) 14506 version_type=linux # correct to gnu/linux during the next big refactor 14507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14508 shlibpath_var=LIBPATH 14509 14510 # AIX 3 has no versioning support, so we append a major version to the name. 14511 soname_spec='${libname}${release}${shared_ext}$major' 14512 ;; 14513 14514aix[4-9]*) 14515 version_type=linux # correct to gnu/linux during the next big refactor 14516 need_lib_prefix=no 14517 need_version=no 14518 hardcode_into_libs=yes 14519 if test "$host_cpu" = ia64; then 14520 # AIX 5 supports IA64 14521 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14522 shlibpath_var=LD_LIBRARY_PATH 14523 else 14524 # With GCC up to 2.95.x, collect2 would create an import file 14525 # for dependence libraries. The import file would start with 14526 # the line `#! .'. This would cause the generated library to 14527 # depend on `.', always an invalid library. This was fixed in 14528 # development snapshots of GCC prior to 3.0. 14529 case $host_os in 14530 aix4 | aix4.[01] | aix4.[01].*) 14531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14532 echo ' yes ' 14533 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14534 : 14535 else 14536 can_build_shared=no 14537 fi 14538 ;; 14539 esac 14540 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14541 # soname into executable. Probably we can add versioning support to 14542 # collect2, so additional links can be useful in future. 14543 if test "$aix_use_runtimelinking" = yes; then 14544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14545 # instead of lib<name>.a to let people know that these are not 14546 # typical AIX shared libraries. 14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14548 else 14549 # We preserve .a as extension for shared libraries through AIX4.2 14550 # and later when we are not doing run time linking. 14551 library_names_spec='${libname}${release}.a $libname.a' 14552 soname_spec='${libname}${release}${shared_ext}$major' 14553 fi 14554 shlibpath_var=LIBPATH 14555 fi 14556 ;; 14557 14558amigaos*) 14559 case $host_cpu in 14560 powerpc) 14561 # Since July 2007 AmigaOS4 officially supports .so libraries. 14562 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14564 ;; 14565 m68k) 14566 library_names_spec='$libname.ixlibrary $libname.a' 14567 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14568 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 14569 ;; 14570 esac 14571 ;; 14572 14573beos*) 14574 library_names_spec='${libname}${shared_ext}' 14575 dynamic_linker="$host_os ld.so" 14576 shlibpath_var=LIBRARY_PATH 14577 ;; 14578 14579bsdi[45]*) 14580 version_type=linux # correct to gnu/linux during the next big refactor 14581 need_version=no 14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14583 soname_spec='${libname}${release}${shared_ext}$major' 14584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14585 shlibpath_var=LD_LIBRARY_PATH 14586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14588 # the default ld.so.conf also contains /usr/contrib/lib and 14589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14590 # libtool to hard-code these into programs 14591 ;; 14592 14593cygwin* | mingw* | pw32* | cegcc*) 14594 version_type=windows 14595 shrext_cmds=".dll" 14596 need_version=no 14597 need_lib_prefix=no 14598 14599 case $GCC,$cc_basename in 14600 yes,*) 14601 # gcc 14602 library_names_spec='$libname.dll.a' 14603 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14604 postinstall_cmds='base_file=`basename \${file}`~ 14605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14606 dldir=$destdir/`dirname \$dlpath`~ 14607 test -d \$dldir || mkdir -p \$dldir~ 14608 $install_prog $dir/$dlname \$dldir/$dlname~ 14609 chmod a+x \$dldir/$dlname~ 14610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14612 fi' 14613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14614 dlpath=$dir/\$dldll~ 14615 $RM \$dlpath' 14616 shlibpath_overrides_runpath=yes 14617 14618 case $host_os in 14619 cygwin*) 14620 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14622 14623 ;; 14624 mingw* | cegcc*) 14625 # MinGW DLLs use traditional 'lib' prefix 14626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14627 ;; 14628 pw32*) 14629 # pw32 DLLs use 'pw' prefix rather than 'lib' 14630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14631 ;; 14632 esac 14633 dynamic_linker='Win32 ld.exe' 14634 ;; 14635 14636 *,cl*) 14637 # Native MSVC 14638 libname_spec='$name' 14639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14640 library_names_spec='${libname}.dll.lib' 14641 14642 case $build_os in 14643 mingw*) 14644 sys_lib_search_path_spec= 14645 lt_save_ifs=$IFS 14646 IFS=';' 14647 for lt_path in $LIB 14648 do 14649 IFS=$lt_save_ifs 14650 # Let DOS variable expansion print the short 8.3 style file name. 14651 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14652 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14653 done 14654 IFS=$lt_save_ifs 14655 # Convert to MSYS style. 14656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14657 ;; 14658 cygwin*) 14659 # Convert to unix form, then to dos form, then back to unix form 14660 # but this time dos style (no spaces!) so that the unix form looks 14661 # like /cygdrive/c/PROGRA~1:/cygdr... 14662 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14663 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14664 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14665 ;; 14666 *) 14667 sys_lib_search_path_spec="$LIB" 14668 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14669 # It is most probably a Windows format PATH. 14670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14671 else 14672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14673 fi 14674 # FIXME: find the short name or the path components, as spaces are 14675 # common. (e.g. "Program Files" -> "PROGRA~1") 14676 ;; 14677 esac 14678 14679 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14680 postinstall_cmds='base_file=`basename \${file}`~ 14681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14682 dldir=$destdir/`dirname \$dlpath`~ 14683 test -d \$dldir || mkdir -p \$dldir~ 14684 $install_prog $dir/$dlname \$dldir/$dlname' 14685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14686 dlpath=$dir/\$dldll~ 14687 $RM \$dlpath' 14688 shlibpath_overrides_runpath=yes 14689 dynamic_linker='Win32 link.exe' 14690 ;; 14691 14692 *) 14693 # Assume MSVC wrapper 14694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14695 dynamic_linker='Win32 ld.exe' 14696 ;; 14697 esac 14698 # FIXME: first we should search . and the directory the executable is in 14699 shlibpath_var=PATH 14700 ;; 14701 14702darwin* | rhapsody*) 14703 dynamic_linker="$host_os dyld" 14704 version_type=darwin 14705 need_lib_prefix=no 14706 need_version=no 14707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14708 soname_spec='${libname}${release}${major}$shared_ext' 14709 shlibpath_overrides_runpath=yes 14710 shlibpath_var=DYLD_LIBRARY_PATH 14711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14712 14713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14714 ;; 14715 14716dgux*) 14717 version_type=linux # correct to gnu/linux during the next big refactor 14718 need_lib_prefix=no 14719 need_version=no 14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14721 soname_spec='${libname}${release}${shared_ext}$major' 14722 shlibpath_var=LD_LIBRARY_PATH 14723 ;; 14724 14725freebsd* | dragonfly*) 14726 # DragonFly does not have aout. When/if they implement a new 14727 # versioning mechanism, adjust this. 14728 if test -x /usr/bin/objformat; then 14729 objformat=`/usr/bin/objformat` 14730 else 14731 case $host_os in 14732 freebsd[23].*) objformat=aout ;; 14733 *) objformat=elf ;; 14734 esac 14735 fi 14736 version_type=freebsd-$objformat 14737 case $version_type in 14738 freebsd-elf*) 14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14740 need_version=no 14741 need_lib_prefix=no 14742 ;; 14743 freebsd-*) 14744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14745 need_version=yes 14746 ;; 14747 esac 14748 shlibpath_var=LD_LIBRARY_PATH 14749 case $host_os in 14750 freebsd2.*) 14751 shlibpath_overrides_runpath=yes 14752 ;; 14753 freebsd3.[01]* | freebsdelf3.[01]*) 14754 shlibpath_overrides_runpath=yes 14755 hardcode_into_libs=yes 14756 ;; 14757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14759 shlibpath_overrides_runpath=no 14760 hardcode_into_libs=yes 14761 ;; 14762 *) # from 4.6 on, and DragonFly 14763 shlibpath_overrides_runpath=yes 14764 hardcode_into_libs=yes 14765 ;; 14766 esac 14767 ;; 14768 14769gnu*) 14770 version_type=linux # correct to gnu/linux during the next big refactor 14771 need_lib_prefix=no 14772 need_version=no 14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14774 soname_spec='${libname}${release}${shared_ext}$major' 14775 shlibpath_var=LD_LIBRARY_PATH 14776 shlibpath_overrides_runpath=no 14777 hardcode_into_libs=yes 14778 ;; 14779 14780haiku*) 14781 version_type=linux # correct to gnu/linux during the next big refactor 14782 need_lib_prefix=no 14783 need_version=no 14784 dynamic_linker="$host_os runtime_loader" 14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14786 soname_spec='${libname}${release}${shared_ext}$major' 14787 shlibpath_var=LIBRARY_PATH 14788 shlibpath_overrides_runpath=yes 14789 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14790 hardcode_into_libs=yes 14791 ;; 14792 14793hpux9* | hpux10* | hpux11*) 14794 # Give a soname corresponding to the major version so that dld.sl refuses to 14795 # link against other versions. 14796 version_type=sunos 14797 need_lib_prefix=no 14798 need_version=no 14799 case $host_cpu in 14800 ia64*) 14801 shrext_cmds='.so' 14802 hardcode_into_libs=yes 14803 dynamic_linker="$host_os dld.so" 14804 shlibpath_var=LD_LIBRARY_PATH 14805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14807 soname_spec='${libname}${release}${shared_ext}$major' 14808 if test "X$HPUX_IA64_MODE" = X32; then 14809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14810 else 14811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14812 fi 14813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14814 ;; 14815 hppa*64*) 14816 shrext_cmds='.sl' 14817 hardcode_into_libs=yes 14818 dynamic_linker="$host_os dld.sl" 14819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14822 soname_spec='${libname}${release}${shared_ext}$major' 14823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14825 ;; 14826 *) 14827 shrext_cmds='.sl' 14828 dynamic_linker="$host_os dld.sl" 14829 shlibpath_var=SHLIB_PATH 14830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14832 soname_spec='${libname}${release}${shared_ext}$major' 14833 ;; 14834 esac 14835 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14836 postinstall_cmds='chmod 555 $lib' 14837 # or fails outright, so override atomically: 14838 install_override_mode=555 14839 ;; 14840 14841interix[3-9]*) 14842 version_type=linux # correct to gnu/linux during the next big refactor 14843 need_lib_prefix=no 14844 need_version=no 14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14846 soname_spec='${libname}${release}${shared_ext}$major' 14847 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14848 shlibpath_var=LD_LIBRARY_PATH 14849 shlibpath_overrides_runpath=no 14850 hardcode_into_libs=yes 14851 ;; 14852 14853irix5* | irix6* | nonstopux*) 14854 case $host_os in 14855 nonstopux*) version_type=nonstopux ;; 14856 *) 14857 if test "$lt_cv_prog_gnu_ld" = yes; then 14858 version_type=linux # correct to gnu/linux during the next big refactor 14859 else 14860 version_type=irix 14861 fi ;; 14862 esac 14863 need_lib_prefix=no 14864 need_version=no 14865 soname_spec='${libname}${release}${shared_ext}$major' 14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14867 case $host_os in 14868 irix5* | nonstopux*) 14869 libsuff= shlibsuff= 14870 ;; 14871 *) 14872 case $LD in # libtool.m4 will add one of these switches to LD 14873 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14874 libsuff= shlibsuff= libmagic=32-bit;; 14875 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14876 libsuff=32 shlibsuff=N32 libmagic=N32;; 14877 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14878 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14879 *) libsuff= shlibsuff= libmagic=never-match;; 14880 esac 14881 ;; 14882 esac 14883 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14884 shlibpath_overrides_runpath=no 14885 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14886 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14887 hardcode_into_libs=yes 14888 ;; 14889 14890# No shared lib support for Linux oldld, aout, or coff. 14891linux*oldld* | linux*aout* | linux*coff*) 14892 dynamic_linker=no 14893 ;; 14894 14895# This must be glibc/ELF. 14896linux* | k*bsd*-gnu | kopensolaris*-gnu) 14897 version_type=linux # correct to gnu/linux during the next big refactor 14898 need_lib_prefix=no 14899 need_version=no 14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14901 soname_spec='${libname}${release}${shared_ext}$major' 14902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14903 shlibpath_var=LD_LIBRARY_PATH 14904 shlibpath_overrides_runpath=no 14905 14906 # Some binutils ld are patched to set DT_RUNPATH 14907 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14908 $as_echo_n "(cached) " >&6 14909else 14910 lt_cv_shlibpath_overrides_runpath=no 14911 save_LDFLAGS=$LDFLAGS 14912 save_libdir=$libdir 14913 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14914 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916/* end confdefs.h. */ 14917 14918int 14919main () 14920{ 14921 14922 ; 14923 return 0; 14924} 14925_ACEOF 14926if ac_fn_cxx_try_link "$LINENO"; then : 14927 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14928 lt_cv_shlibpath_overrides_runpath=yes 14929fi 14930fi 14931rm -f core conftest.err conftest.$ac_objext \ 14932 conftest$ac_exeext conftest.$ac_ext 14933 LDFLAGS=$save_LDFLAGS 14934 libdir=$save_libdir 14935 14936fi 14937 14938 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14939 14940 # This implies no fast_install, which is unacceptable. 14941 # Some rework will be needed to allow for fast_install 14942 # before this can be enabled. 14943 hardcode_into_libs=yes 14944 14945 # Append ld.so.conf contents to the search path 14946 if test -f /etc/ld.so.conf; then 14947 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' ' '` 14948 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14949 fi 14950 14951 # We used to test for /lib/ld.so.1 and disable shared libraries on 14952 # powerpc, because MkLinux only supported shared libraries with the 14953 # GNU dynamic linker. Since this was broken with cross compilers, 14954 # most powerpc-linux boxes support dynamic linking these days and 14955 # people can always --disable-shared, the test was removed, and we 14956 # assume the GNU/Linux dynamic linker is in use. 14957 dynamic_linker='GNU/Linux ld.so' 14958 ;; 14959 14960netbsdelf*-gnu) 14961 version_type=linux 14962 need_lib_prefix=no 14963 need_version=no 14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14965 soname_spec='${libname}${release}${shared_ext}$major' 14966 shlibpath_var=LD_LIBRARY_PATH 14967 shlibpath_overrides_runpath=no 14968 hardcode_into_libs=yes 14969 dynamic_linker='NetBSD ld.elf_so' 14970 ;; 14971 14972netbsd*) 14973 version_type=sunos 14974 need_lib_prefix=no 14975 need_version=no 14976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14979 dynamic_linker='NetBSD (a.out) ld.so' 14980 else 14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14982 soname_spec='${libname}${release}${shared_ext}$major' 14983 dynamic_linker='NetBSD ld.elf_so' 14984 fi 14985 shlibpath_var=LD_LIBRARY_PATH 14986 shlibpath_overrides_runpath=yes 14987 hardcode_into_libs=yes 14988 ;; 14989 14990newsos6) 14991 version_type=linux # correct to gnu/linux during the next big refactor 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14993 shlibpath_var=LD_LIBRARY_PATH 14994 shlibpath_overrides_runpath=yes 14995 ;; 14996 14997*nto* | *qnx*) 14998 version_type=qnx 14999 need_lib_prefix=no 15000 need_version=no 15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15002 soname_spec='${libname}${release}${shared_ext}$major' 15003 shlibpath_var=LD_LIBRARY_PATH 15004 shlibpath_overrides_runpath=no 15005 hardcode_into_libs=yes 15006 dynamic_linker='ldqnx.so' 15007 ;; 15008 15009openbsd*) 15010 version_type=sunos 15011 sys_lib_dlsearch_path_spec="/usr/lib" 15012 need_lib_prefix=no 15013 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15014 case $host_os in 15015 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15016 *) need_version=no ;; 15017 esac 15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15020 shlibpath_var=LD_LIBRARY_PATH 15021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15022 case $host_os in 15023 openbsd2.[89] | openbsd2.[89].*) 15024 shlibpath_overrides_runpath=no 15025 ;; 15026 *) 15027 shlibpath_overrides_runpath=yes 15028 ;; 15029 esac 15030 else 15031 shlibpath_overrides_runpath=yes 15032 fi 15033 ;; 15034 15035os2*) 15036 libname_spec='$name' 15037 shrext_cmds=".dll" 15038 need_lib_prefix=no 15039 library_names_spec='$libname${shared_ext} $libname.a' 15040 dynamic_linker='OS/2 ld.exe' 15041 shlibpath_var=LIBPATH 15042 ;; 15043 15044osf3* | osf4* | osf5*) 15045 version_type=osf 15046 need_lib_prefix=no 15047 need_version=no 15048 soname_spec='${libname}${release}${shared_ext}$major' 15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15050 shlibpath_var=LD_LIBRARY_PATH 15051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15053 ;; 15054 15055rdos*) 15056 dynamic_linker=no 15057 ;; 15058 15059solaris*) 15060 version_type=linux # correct to gnu/linux during the next big refactor 15061 need_lib_prefix=no 15062 need_version=no 15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15064 soname_spec='${libname}${release}${shared_ext}$major' 15065 shlibpath_var=LD_LIBRARY_PATH 15066 shlibpath_overrides_runpath=yes 15067 hardcode_into_libs=yes 15068 # ldd complains unless libraries are executable 15069 postinstall_cmds='chmod +x $lib' 15070 ;; 15071 15072sunos4*) 15073 version_type=sunos 15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15076 shlibpath_var=LD_LIBRARY_PATH 15077 shlibpath_overrides_runpath=yes 15078 if test "$with_gnu_ld" = yes; then 15079 need_lib_prefix=no 15080 fi 15081 need_version=yes 15082 ;; 15083 15084sysv4 | sysv4.3*) 15085 version_type=linux # correct to gnu/linux during the next big refactor 15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15087 soname_spec='${libname}${release}${shared_ext}$major' 15088 shlibpath_var=LD_LIBRARY_PATH 15089 case $host_vendor in 15090 sni) 15091 shlibpath_overrides_runpath=no 15092 need_lib_prefix=no 15093 runpath_var=LD_RUN_PATH 15094 ;; 15095 siemens) 15096 need_lib_prefix=no 15097 ;; 15098 motorola) 15099 need_lib_prefix=no 15100 need_version=no 15101 shlibpath_overrides_runpath=no 15102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15103 ;; 15104 esac 15105 ;; 15106 15107sysv4*MP*) 15108 if test -d /usr/nec ;then 15109 version_type=linux # correct to gnu/linux during the next big refactor 15110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15111 soname_spec='$libname${shared_ext}.$major' 15112 shlibpath_var=LD_LIBRARY_PATH 15113 fi 15114 ;; 15115 15116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15117 version_type=freebsd-elf 15118 need_lib_prefix=no 15119 need_version=no 15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15121 soname_spec='${libname}${release}${shared_ext}$major' 15122 shlibpath_var=LD_LIBRARY_PATH 15123 shlibpath_overrides_runpath=yes 15124 hardcode_into_libs=yes 15125 if test "$with_gnu_ld" = yes; then 15126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15127 else 15128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15129 case $host_os in 15130 sco3.2v5*) 15131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15132 ;; 15133 esac 15134 fi 15135 sys_lib_dlsearch_path_spec='/usr/lib' 15136 ;; 15137 15138tpf*) 15139 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15140 version_type=linux # correct to gnu/linux during the next big refactor 15141 need_lib_prefix=no 15142 need_version=no 15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15144 shlibpath_var=LD_LIBRARY_PATH 15145 shlibpath_overrides_runpath=no 15146 hardcode_into_libs=yes 15147 ;; 15148 15149uts4*) 15150 version_type=linux # correct to gnu/linux during the next big refactor 15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15152 soname_spec='${libname}${release}${shared_ext}$major' 15153 shlibpath_var=LD_LIBRARY_PATH 15154 ;; 15155 15156*) 15157 dynamic_linker=no 15158 ;; 15159esac 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15161$as_echo "$dynamic_linker" >&6; } 15162test "$dynamic_linker" = no && can_build_shared=no 15163 15164variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15165if test "$GCC" = yes; then 15166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15167fi 15168 15169if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15170 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15171fi 15172if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15173 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15174fi 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15214$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15215hardcode_action_CXX= 15216if test -n "$hardcode_libdir_flag_spec_CXX" || 15217 test -n "$runpath_var_CXX" || 15218 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15219 15220 # We can hardcode non-existent directories. 15221 if test "$hardcode_direct_CXX" != no && 15222 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15223 # have to relink, otherwise we might link with an installed library 15224 # when we should be linking with a yet-to-be-installed one 15225 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15226 test "$hardcode_minus_L_CXX" != no; then 15227 # Linking always hardcodes the temporary library directory. 15228 hardcode_action_CXX=relink 15229 else 15230 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15231 hardcode_action_CXX=immediate 15232 fi 15233else 15234 # We cannot hardcode anything, or else we can only hardcode existing 15235 # directories. 15236 hardcode_action_CXX=unsupported 15237fi 15238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15239$as_echo "$hardcode_action_CXX" >&6; } 15240 15241if test "$hardcode_action_CXX" = relink || 15242 test "$inherit_rpath_CXX" = yes; then 15243 # Fast installation is not supported 15244 enable_fast_install=no 15245elif test "$shlibpath_overrides_runpath" = yes || 15246 test "$enable_shared" = no; then 15247 # Fast installation is not necessary 15248 enable_fast_install=needless 15249fi 15250 15251 15252 15253 15254 15255 15256 15257 fi # test -n "$compiler" 15258 15259 CC=$lt_save_CC 15260 CFLAGS=$lt_save_CFLAGS 15261 LDCXX=$LD 15262 LD=$lt_save_LD 15263 GCC=$lt_save_GCC 15264 with_gnu_ld=$lt_save_with_gnu_ld 15265 lt_cv_path_LDCXX=$lt_cv_path_LD 15266 lt_cv_path_LD=$lt_save_path_LD 15267 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15268 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15269fi # test "$_lt_caught_CXX_error" != yes 15270 15271ac_ext=c 15272ac_cpp='$CPP $CPPFLAGS' 15273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15275ac_compiler_gnu=$ac_cv_c_compiler_gnu 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 ac_config_commands="$ac_config_commands libtool" 15292 15293 15294 15295 15296# Only expand once: 15297 15298 15299 15300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15301$as_echo_n "checking for ANSI C header files... " >&6; } 15302if ${ac_cv_header_stdc+:} false; then : 15303 $as_echo_n "(cached) " >&6 15304else 15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15306/* end confdefs.h. */ 15307#include <stdlib.h> 15308#include <stdarg.h> 15309#include <string.h> 15310#include <float.h> 15311 15312int 15313main () 15314{ 15315 15316 ; 15317 return 0; 15318} 15319_ACEOF 15320if ac_fn_c_try_compile "$LINENO"; then : 15321 ac_cv_header_stdc=yes 15322else 15323 ac_cv_header_stdc=no 15324fi 15325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15326 15327if test $ac_cv_header_stdc = yes; then 15328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15330/* end confdefs.h. */ 15331#include <string.h> 15332 15333_ACEOF 15334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15335 $EGREP "memchr" >/dev/null 2>&1; then : 15336 15337else 15338 ac_cv_header_stdc=no 15339fi 15340rm -f conftest* 15341 15342fi 15343 15344if test $ac_cv_header_stdc = yes; then 15345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347/* end confdefs.h. */ 15348#include <stdlib.h> 15349 15350_ACEOF 15351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15352 $EGREP "free" >/dev/null 2>&1; then : 15353 15354else 15355 ac_cv_header_stdc=no 15356fi 15357rm -f conftest* 15358 15359fi 15360 15361if test $ac_cv_header_stdc = yes; then 15362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15363 if test "$cross_compiling" = yes; then : 15364 : 15365else 15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15367/* end confdefs.h. */ 15368#include <ctype.h> 15369#include <stdlib.h> 15370#if ((' ' & 0x0FF) == 0x020) 15371# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15372# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15373#else 15374# define ISLOWER(c) \ 15375 (('a' <= (c) && (c) <= 'i') \ 15376 || ('j' <= (c) && (c) <= 'r') \ 15377 || ('s' <= (c) && (c) <= 'z')) 15378# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15379#endif 15380 15381#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15382int 15383main () 15384{ 15385 int i; 15386 for (i = 0; i < 256; i++) 15387 if (XOR (islower (i), ISLOWER (i)) 15388 || toupper (i) != TOUPPER (i)) 15389 return 2; 15390 return 0; 15391} 15392_ACEOF 15393if ac_fn_c_try_run "$LINENO"; then : 15394 15395else 15396 ac_cv_header_stdc=no 15397fi 15398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15399 conftest.$ac_objext conftest.beam conftest.$ac_ext 15400fi 15401 15402fi 15403fi 15404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15405$as_echo "$ac_cv_header_stdc" >&6; } 15406if test $ac_cv_header_stdc = yes; then 15407 15408$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15409 15410fi 15411 15412for ac_header in fcntl.h unistd.h 15413do : 15414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15415ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15417 cat >>confdefs.h <<_ACEOF 15418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15419_ACEOF 15420 15421fi 15422 15423done 15424 15425 15426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15427$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15428if ${ac_cv_c_const+:} false; then : 15429 $as_echo_n "(cached) " >&6 15430else 15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432/* end confdefs.h. */ 15433 15434int 15435main () 15436{ 15437 15438#ifndef __cplusplus 15439 /* Ultrix mips cc rejects this sort of thing. */ 15440 typedef int charset[2]; 15441 const charset cs = { 0, 0 }; 15442 /* SunOS 4.1.1 cc rejects this. */ 15443 char const *const *pcpcc; 15444 char **ppc; 15445 /* NEC SVR4.0.2 mips cc rejects this. */ 15446 struct point {int x, y;}; 15447 static struct point const zero = {0,0}; 15448 /* AIX XL C 1.02.0.0 rejects this. 15449 It does not let you subtract one const X* pointer from another in 15450 an arm of an if-expression whose if-part is not a constant 15451 expression */ 15452 const char *g = "string"; 15453 pcpcc = &g + (g ? g-g : 0); 15454 /* HPUX 7.0 cc rejects these. */ 15455 ++pcpcc; 15456 ppc = (char**) pcpcc; 15457 pcpcc = (char const *const *) ppc; 15458 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15459 char tx; 15460 char *t = &tx; 15461 char const *s = 0 ? (char *) 0 : (char const *) 0; 15462 15463 *t++ = 0; 15464 if (s) return 0; 15465 } 15466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15467 int x[] = {25, 17}; 15468 const int *foo = &x[0]; 15469 ++foo; 15470 } 15471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15472 typedef const int *iptr; 15473 iptr p = 0; 15474 ++p; 15475 } 15476 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 15477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15478 struct s { int j; const int *ap[3]; } bx; 15479 struct s *b = &bx; b->j = 5; 15480 } 15481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15482 const int foo = 10; 15483 if (!foo) return 0; 15484 } 15485 return !cs[0] && !zero.x; 15486#endif 15487 15488 ; 15489 return 0; 15490} 15491_ACEOF 15492if ac_fn_c_try_compile "$LINENO"; then : 15493 ac_cv_c_const=yes 15494else 15495 ac_cv_c_const=no 15496fi 15497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15498fi 15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15500$as_echo "$ac_cv_c_const" >&6; } 15501if test $ac_cv_c_const = no; then 15502 15503$as_echo "#define const /**/" >>confdefs.h 15504 15505fi 15506 15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15508$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15509if ${ac_cv_c_bigendian+:} false; then : 15510 $as_echo_n "(cached) " >&6 15511else 15512 ac_cv_c_bigendian=unknown 15513 # See if we're dealing with a universal compiler. 15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15515/* end confdefs.h. */ 15516#ifndef __APPLE_CC__ 15517 not a universal capable compiler 15518 #endif 15519 typedef int dummy; 15520 15521_ACEOF 15522if ac_fn_c_try_compile "$LINENO"; then : 15523 15524 # Check for potential -arch flags. It is not universal unless 15525 # there are at least two -arch flags with different values. 15526 ac_arch= 15527 ac_prev= 15528 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15529 if test -n "$ac_prev"; then 15530 case $ac_word in 15531 i?86 | x86_64 | ppc | ppc64) 15532 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15533 ac_arch=$ac_word 15534 else 15535 ac_cv_c_bigendian=universal 15536 break 15537 fi 15538 ;; 15539 esac 15540 ac_prev= 15541 elif test "x$ac_word" = "x-arch"; then 15542 ac_prev=arch 15543 fi 15544 done 15545fi 15546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15547 if test $ac_cv_c_bigendian = unknown; then 15548 # See if sys/param.h defines the BYTE_ORDER macro. 15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15550/* end confdefs.h. */ 15551#include <sys/types.h> 15552 #include <sys/param.h> 15553 15554int 15555main () 15556{ 15557#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15558 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15559 && LITTLE_ENDIAN) 15560 bogus endian macros 15561 #endif 15562 15563 ; 15564 return 0; 15565} 15566_ACEOF 15567if ac_fn_c_try_compile "$LINENO"; then : 15568 # It does; now see whether it defined to BIG_ENDIAN or not. 15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15570/* end confdefs.h. */ 15571#include <sys/types.h> 15572 #include <sys/param.h> 15573 15574int 15575main () 15576{ 15577#if BYTE_ORDER != BIG_ENDIAN 15578 not big endian 15579 #endif 15580 15581 ; 15582 return 0; 15583} 15584_ACEOF 15585if ac_fn_c_try_compile "$LINENO"; then : 15586 ac_cv_c_bigendian=yes 15587else 15588 ac_cv_c_bigendian=no 15589fi 15590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15591fi 15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15593 fi 15594 if test $ac_cv_c_bigendian = unknown; then 15595 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15597/* end confdefs.h. */ 15598#include <limits.h> 15599 15600int 15601main () 15602{ 15603#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15604 bogus endian macros 15605 #endif 15606 15607 ; 15608 return 0; 15609} 15610_ACEOF 15611if ac_fn_c_try_compile "$LINENO"; then : 15612 # It does; now see whether it defined to _BIG_ENDIAN or not. 15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15614/* end confdefs.h. */ 15615#include <limits.h> 15616 15617int 15618main () 15619{ 15620#ifndef _BIG_ENDIAN 15621 not big endian 15622 #endif 15623 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628if ac_fn_c_try_compile "$LINENO"; then : 15629 ac_cv_c_bigendian=yes 15630else 15631 ac_cv_c_bigendian=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15634fi 15635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15636 fi 15637 if test $ac_cv_c_bigendian = unknown; then 15638 # Compile a test program. 15639 if test "$cross_compiling" = yes; then : 15640 # Try to guess by grepping values from an object file. 15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15642/* end confdefs.h. */ 15643short int ascii_mm[] = 15644 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15645 short int ascii_ii[] = 15646 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15647 int use_ascii (int i) { 15648 return ascii_mm[i] + ascii_ii[i]; 15649 } 15650 short int ebcdic_ii[] = 15651 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15652 short int ebcdic_mm[] = 15653 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15654 int use_ebcdic (int i) { 15655 return ebcdic_mm[i] + ebcdic_ii[i]; 15656 } 15657 extern int foo; 15658 15659int 15660main () 15661{ 15662return use_ascii (foo) == use_ebcdic (foo); 15663 ; 15664 return 0; 15665} 15666_ACEOF 15667if ac_fn_c_try_compile "$LINENO"; then : 15668 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15669 ac_cv_c_bigendian=yes 15670 fi 15671 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15672 if test "$ac_cv_c_bigendian" = unknown; then 15673 ac_cv_c_bigendian=no 15674 else 15675 # finding both strings is unlikely to happen, but who knows? 15676 ac_cv_c_bigendian=unknown 15677 fi 15678 fi 15679fi 15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15681else 15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15683/* end confdefs.h. */ 15684$ac_includes_default 15685int 15686main () 15687{ 15688 15689 /* Are we little or big endian? From Harbison&Steele. */ 15690 union 15691 { 15692 long int l; 15693 char c[sizeof (long int)]; 15694 } u; 15695 u.l = 1; 15696 return u.c[sizeof (long int) - 1] == 1; 15697 15698 ; 15699 return 0; 15700} 15701_ACEOF 15702if ac_fn_c_try_run "$LINENO"; then : 15703 ac_cv_c_bigendian=no 15704else 15705 ac_cv_c_bigendian=yes 15706fi 15707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15708 conftest.$ac_objext conftest.beam conftest.$ac_ext 15709fi 15710 15711 fi 15712fi 15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15714$as_echo "$ac_cv_c_bigendian" >&6; } 15715 case $ac_cv_c_bigendian in #( 15716 yes) 15717 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15718;; #( 15719 no) 15720 ;; #( 15721 universal) 15722 15723$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15724 15725 ;; #( 15726 *) 15727 as_fn_error $? "unknown endianness 15728 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15729 esac 15730 15731 15732# Check whether --enable-largefile was given. 15733if test "${enable_largefile+set}" = set; then : 15734 enableval=$enable_largefile; 15735fi 15736 15737if test "$enable_largefile" != no; then 15738 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15740$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15741if ${ac_cv_sys_largefile_CC+:} false; then : 15742 $as_echo_n "(cached) " >&6 15743else 15744 ac_cv_sys_largefile_CC=no 15745 if test "$GCC" != yes; then 15746 ac_save_CC=$CC 15747 while :; do 15748 # IRIX 6.2 and later do not support large files by default, 15749 # so use the C compiler's -n32 option if that helps. 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752#include <sys/types.h> 15753 /* Check that off_t can represent 2**63 - 1 correctly. 15754 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15755 since some C++ compilers masquerading as C compilers 15756 incorrectly reject 9223372036854775807. */ 15757#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15759 && LARGE_OFF_T % 2147483647 == 1) 15760 ? 1 : -1]; 15761int 15762main () 15763{ 15764 15765 ; 15766 return 0; 15767} 15768_ACEOF 15769 if ac_fn_c_try_compile "$LINENO"; then : 15770 break 15771fi 15772rm -f core conftest.err conftest.$ac_objext 15773 CC="$CC -n32" 15774 if ac_fn_c_try_compile "$LINENO"; then : 15775 ac_cv_sys_largefile_CC=' -n32'; break 15776fi 15777rm -f core conftest.err conftest.$ac_objext 15778 break 15779 done 15780 CC=$ac_save_CC 15781 rm -f conftest.$ac_ext 15782 fi 15783fi 15784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15785$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15786 if test "$ac_cv_sys_largefile_CC" != no; then 15787 CC=$CC$ac_cv_sys_largefile_CC 15788 fi 15789 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15791$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15792if ${ac_cv_sys_file_offset_bits+:} false; then : 15793 $as_echo_n "(cached) " >&6 15794else 15795 while :; do 15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15797/* end confdefs.h. */ 15798#include <sys/types.h> 15799 /* Check that off_t can represent 2**63 - 1 correctly. 15800 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15801 since some C++ compilers masquerading as C compilers 15802 incorrectly reject 9223372036854775807. */ 15803#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15805 && LARGE_OFF_T % 2147483647 == 1) 15806 ? 1 : -1]; 15807int 15808main () 15809{ 15810 15811 ; 15812 return 0; 15813} 15814_ACEOF 15815if ac_fn_c_try_compile "$LINENO"; then : 15816 ac_cv_sys_file_offset_bits=no; break 15817fi 15818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15820/* end confdefs.h. */ 15821#define _FILE_OFFSET_BITS 64 15822#include <sys/types.h> 15823 /* Check that off_t can represent 2**63 - 1 correctly. 15824 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15825 since some C++ compilers masquerading as C compilers 15826 incorrectly reject 9223372036854775807. */ 15827#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15829 && LARGE_OFF_T % 2147483647 == 1) 15830 ? 1 : -1]; 15831int 15832main () 15833{ 15834 15835 ; 15836 return 0; 15837} 15838_ACEOF 15839if ac_fn_c_try_compile "$LINENO"; then : 15840 ac_cv_sys_file_offset_bits=64; break 15841fi 15842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15843 ac_cv_sys_file_offset_bits=unknown 15844 break 15845done 15846fi 15847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15848$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15849case $ac_cv_sys_file_offset_bits in #( 15850 no | unknown) ;; 15851 *) 15852cat >>confdefs.h <<_ACEOF 15853#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15854_ACEOF 15855;; 15856esac 15857rm -rf conftest* 15858 if test $ac_cv_sys_file_offset_bits = unknown; then 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15860$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15861if ${ac_cv_sys_large_files+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 while :; do 15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15866/* end confdefs.h. */ 15867#include <sys/types.h> 15868 /* Check that off_t can represent 2**63 - 1 correctly. 15869 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15870 since some C++ compilers masquerading as C compilers 15871 incorrectly reject 9223372036854775807. */ 15872#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15874 && LARGE_OFF_T % 2147483647 == 1) 15875 ? 1 : -1]; 15876int 15877main () 15878{ 15879 15880 ; 15881 return 0; 15882} 15883_ACEOF 15884if ac_fn_c_try_compile "$LINENO"; then : 15885 ac_cv_sys_large_files=no; break 15886fi 15887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15889/* end confdefs.h. */ 15890#define _LARGE_FILES 1 15891#include <sys/types.h> 15892 /* Check that off_t can represent 2**63 - 1 correctly. 15893 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15894 since some C++ compilers masquerading as C compilers 15895 incorrectly reject 9223372036854775807. */ 15896#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15898 && LARGE_OFF_T % 2147483647 == 1) 15899 ? 1 : -1]; 15900int 15901main () 15902{ 15903 15904 ; 15905 return 0; 15906} 15907_ACEOF 15908if ac_fn_c_try_compile "$LINENO"; then : 15909 ac_cv_sys_large_files=1; break 15910fi 15911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15912 ac_cv_sys_large_files=unknown 15913 break 15914done 15915fi 15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15917$as_echo "$ac_cv_sys_large_files" >&6; } 15918case $ac_cv_sys_large_files in #( 15919 no | unknown) ;; 15920 *) 15921cat >>confdefs.h <<_ACEOF 15922#define _LARGE_FILES $ac_cv_sys_large_files 15923_ACEOF 15924;; 15925esac 15926rm -rf conftest* 15927 fi 15928 15929 15930fi 15931 15932ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 15933if test "x$ac_cv_type_off_t" = xyes; then : 15934 15935else 15936 15937cat >>confdefs.h <<_ACEOF 15938#define off_t long int 15939_ACEOF 15940 15941fi 15942 15943ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15944if test "x$ac_cv_type_size_t" = xyes; then : 15945 15946else 15947 15948cat >>confdefs.h <<_ACEOF 15949#define size_t unsigned int 15950_ACEOF 15951 15952fi 15953 15954 15955platform=none 15956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform specific tests to compile" >&5 15957$as_echo_n "checking for platform specific tests to compile... " >&6; } 15958case "$host_os" in 15959 linux*) 15960 TEST_BIN="linuxtest alsaplay" 15961 platform=linux 15962 ;; 15963 irix5* | irix6*) 15964 TEST_BIN="irixread irixtestloop" 15965 platform=irix 15966 ;; 15967 darwin*) 15968 if test -e /System/Library/Frameworks/CoreAudio.framework; then 15969 TEST_BIN="osxplay" 15970 platform="Mac OS X" 15971 fi 15972 ;; 15973esac 15974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform" >&5 15975$as_echo "$platform" >&6; } 15976 15977 15978# Check whether --enable-werror was given. 15979if test "${enable_werror+set}" = set; then : 15980 enableval=$enable_werror; enable_werror=$enableval 15981else 15982 enable_werror=no 15983fi 15984 15985 if test "$enable_werror" = "yes"; then 15986 ENABLE_WERROR_TRUE= 15987 ENABLE_WERROR_FALSE='#' 15988else 15989 ENABLE_WERROR_TRUE='#' 15990 ENABLE_WERROR_FALSE= 15991fi 15992 15993 15994if test "$enable_werror" = "yes"; then : 15995 WERROR_CFLAGS="-Werror" 15996 15997fi 15998 15999# Check whether --enable-coverage was given. 16000if test "${enable_coverage+set}" = set; then : 16001 enableval=$enable_coverage; enable_coverage=$enableval 16002else 16003 enable_coverage=no 16004fi 16005 16006 if test "$enable_coverage" = "yes"; then 16007 ENABLE_COVERAGE_TRUE= 16008 ENABLE_COVERAGE_FALSE='#' 16009else 16010 ENABLE_COVERAGE_TRUE='#' 16011 ENABLE_COVERAGE_FALSE= 16012fi 16013 16014 16015if test "$enable_coverage" = "yes"; then : 16016 COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" 16017 COVERAGE_LIBS="-lgcov" 16018 16019 16020 16021 # Extract the first word of "lcov", so it can be a program name with args. 16022set dummy lcov; ac_word=$2 16023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16024$as_echo_n "checking for $ac_word... " >&6; } 16025if ${ac_cv_path_LCOV+:} false; then : 16026 $as_echo_n "(cached) " >&6 16027else 16028 case $LCOV in 16029 [\\/]* | ?:[\\/]*) 16030 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. 16031 ;; 16032 *) 16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16034for as_dir in $PATH 16035do 16036 IFS=$as_save_IFS 16037 test -z "$as_dir" && as_dir=. 16038 for ac_exec_ext in '' $ac_executable_extensions; do 16039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16040 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" 16041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16042 break 2 16043 fi 16044done 16045 done 16046IFS=$as_save_IFS 16047 16048 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV=":" 16049 ;; 16050esac 16051fi 16052LCOV=$ac_cv_path_LCOV 16053if test -n "$LCOV"; then 16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 16055$as_echo "$LCOV" >&6; } 16056else 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16058$as_echo "no" >&6; } 16059fi 16060 16061 16062 # Extract the first word of "genhtml", so it can be a program name with args. 16063set dummy genhtml; ac_word=$2 16064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16065$as_echo_n "checking for $ac_word... " >&6; } 16066if ${ac_cv_path_GENHTML+:} false; then : 16067 $as_echo_n "(cached) " >&6 16068else 16069 case $GENHTML in 16070 [\\/]* | ?:[\\/]*) 16071 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. 16072 ;; 16073 *) 16074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16075for as_dir in $PATH 16076do 16077 IFS=$as_save_IFS 16078 test -z "$as_dir" && as_dir=. 16079 for ac_exec_ext in '' $ac_executable_extensions; do 16080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16081 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" 16082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16083 break 2 16084 fi 16085done 16086 done 16087IFS=$as_save_IFS 16088 16089 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML=":" 16090 ;; 16091esac 16092fi 16093GENHTML=$ac_cv_path_GENHTML 16094if test -n "$GENHTML"; then 16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 16096$as_echo "$GENHTML" >&6; } 16097else 16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16099$as_echo "no" >&6; } 16100fi 16101 16102 16103 16104 16105 if test "$LCOV" = :; then : 16106 as_fn_error $? "lcov must be installed for code coverage: http://ltp.sourceforge.net/coverage/lcov.php" "$LINENO" 5 16107 16108fi 16109 16110fi 16111 16112# Check whether --enable-valgrind was given. 16113if test "${enable_valgrind+set}" = set; then : 16114 enableval=$enable_valgrind; enable_valgrind=$enableval 16115else 16116 enable_valgrind=no 16117fi 16118 16119 if test "$enable_valgrind" = "yes"; then 16120 ENABLE_VALGRIND_TRUE= 16121 ENABLE_VALGRIND_FALSE='#' 16122else 16123 ENABLE_VALGRIND_TRUE='#' 16124 ENABLE_VALGRIND_FALSE= 16125fi 16126 16127 16128if test "$enable_valgrind" = "yes"; then : 16129 # Extract the first word of "valgrind", so it can be a program name with args. 16130set dummy valgrind; ac_word=$2 16131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16132$as_echo_n "checking for $ac_word... " >&6; } 16133if ${ac_cv_path_VALGRIND+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 case $VALGRIND in 16137 [\\/]* | ?:[\\/]*) 16138 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. 16139 ;; 16140 *) 16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16142for as_dir in $PATH 16143do 16144 IFS=$as_save_IFS 16145 test -z "$as_dir" && as_dir=. 16146 for ac_exec_ext in '' $ac_executable_extensions; do 16147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16148 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" 16149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16150 break 2 16151 fi 16152done 16153 done 16154IFS=$as_save_IFS 16155 16156 test -z "$ac_cv_path_VALGRIND" && ac_cv_path_VALGRIND=":" 16157 ;; 16158esac 16159fi 16160VALGRIND=$ac_cv_path_VALGRIND 16161if test -n "$VALGRIND"; then 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 16163$as_echo "$VALGRIND" >&6; } 16164else 16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16166$as_echo "no" >&6; } 16167fi 16168 16169 16170 16171 if test "$VALGRIND" = :; then : 16172 as_fn_error $? "Could not find Valgrind." "$LINENO" 5 16173 16174fi 16175 16176fi 16177 16178# Check whether --enable-docs was given. 16179if test "${enable_docs+set}" = set; then : 16180 enableval=$enable_docs; enable_documentation=$enableval 16181else 16182 enable_documentation=yes 16183fi 16184 16185 16186 if test "$enable_documentation" = "yes"; then 16187 ENABLE_DOCUMENTATION_TRUE= 16188 ENABLE_DOCUMENTATION_FALSE='#' 16189else 16190 ENABLE_DOCUMENTATION_TRUE='#' 16191 ENABLE_DOCUMENTATION_FALSE= 16192fi 16193 16194 16195if test "$enable_documentation" = "yes"; then : 16196 # Extract the first word of "a2x", so it can be a program name with args. 16197set dummy a2x; ac_word=$2 16198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16199$as_echo_n "checking for $ac_word... " >&6; } 16200if ${ac_cv_path_A2X+:} false; then : 16201 $as_echo_n "(cached) " >&6 16202else 16203 case $A2X in 16204 [\\/]* | ?:[\\/]*) 16205 ac_cv_path_A2X="$A2X" # Let the user override the test with a path. 16206 ;; 16207 *) 16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16209for as_dir in $PATH 16210do 16211 IFS=$as_save_IFS 16212 test -z "$as_dir" && as_dir=. 16213 for ac_exec_ext in '' $ac_executable_extensions; do 16214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16215 ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext" 16216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16217 break 2 16218 fi 16219done 16220 done 16221IFS=$as_save_IFS 16222 16223 test -z "$ac_cv_path_A2X" && ac_cv_path_A2X=":" 16224 ;; 16225esac 16226fi 16227A2X=$ac_cv_path_A2X 16228if test -n "$A2X"; then 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5 16230$as_echo "$A2X" >&6; } 16231else 16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16233$as_echo "no" >&6; } 16234fi 16235 16236 16237 # Extract the first word of "asciidoc", so it can be a program name with args. 16238set dummy asciidoc; ac_word=$2 16239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16240$as_echo_n "checking for $ac_word... " >&6; } 16241if ${ac_cv_path_ASCIIDOC+:} false; then : 16242 $as_echo_n "(cached) " >&6 16243else 16244 case $ASCIIDOC in 16245 [\\/]* | ?:[\\/]*) 16246 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 16247 ;; 16248 *) 16249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16250for as_dir in $PATH 16251do 16252 IFS=$as_save_IFS 16253 test -z "$as_dir" && as_dir=. 16254 for ac_exec_ext in '' $ac_executable_extensions; do 16255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16256 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 16257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16258 break 2 16259 fi 16260done 16261 done 16262IFS=$as_save_IFS 16263 16264 test -z "$ac_cv_path_ASCIIDOC" && ac_cv_path_ASCIIDOC=":" 16265 ;; 16266esac 16267fi 16268ASCIIDOC=$ac_cv_path_ASCIIDOC 16269if test -n "$ASCIIDOC"; then 16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 16271$as_echo "$ASCIIDOC" >&6; } 16272else 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16274$as_echo "no" >&6; } 16275fi 16276 16277 16278 if test "$A2X" = :; then : 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a2x." >&5 16280$as_echo "$as_me: WARNING: Could not find a2x." >&2;} 16281 16282fi 16283 if test "$ASCIIDOC" = :; then : 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find asciidoc." >&5 16285$as_echo "$as_me: WARNING: Could not find asciidoc." >&2;} 16286 16287fi 16288 16289fi 16290 16291# Check whether --enable-examples was given. 16292if test "${enable_examples+set}" = set; then : 16293 enableval=$enable_examples; enable_examples=$enableval 16294else 16295 enable_examples=yes 16296fi 16297 16298if test "$enable_examples" != "yes"; then : 16299 TEST_BIN="" 16300fi 16301 16302# Check whether --enable-flac was given. 16303if test "${enable_flac+set}" = set; then : 16304 enableval=$enable_flac; enable_flac=$enableval 16305else 16306 enable_flac=yes 16307fi 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16318 if test -n "$ac_tool_prefix"; then 16319 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16320set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16322$as_echo_n "checking for $ac_word... " >&6; } 16323if ${ac_cv_path_PKG_CONFIG+:} false; then : 16324 $as_echo_n "(cached) " >&6 16325else 16326 case $PKG_CONFIG in 16327 [\\/]* | ?:[\\/]*) 16328 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16329 ;; 16330 *) 16331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16332for as_dir in $PATH 16333do 16334 IFS=$as_save_IFS 16335 test -z "$as_dir" && as_dir=. 16336 for ac_exec_ext in '' $ac_executable_extensions; do 16337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16338 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16340 break 2 16341 fi 16342done 16343 done 16344IFS=$as_save_IFS 16345 16346 ;; 16347esac 16348fi 16349PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16350if test -n "$PKG_CONFIG"; then 16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16352$as_echo "$PKG_CONFIG" >&6; } 16353else 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16355$as_echo "no" >&6; } 16356fi 16357 16358 16359fi 16360if test -z "$ac_cv_path_PKG_CONFIG"; then 16361 ac_pt_PKG_CONFIG=$PKG_CONFIG 16362 # Extract the first word of "pkg-config", so it can be a program name with args. 16363set dummy pkg-config; ac_word=$2 16364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16365$as_echo_n "checking for $ac_word... " >&6; } 16366if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16367 $as_echo_n "(cached) " >&6 16368else 16369 case $ac_pt_PKG_CONFIG in 16370 [\\/]* | ?:[\\/]*) 16371 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16372 ;; 16373 *) 16374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16375for as_dir in $PATH 16376do 16377 IFS=$as_save_IFS 16378 test -z "$as_dir" && as_dir=. 16379 for ac_exec_ext in '' $ac_executable_extensions; do 16380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16381 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16383 break 2 16384 fi 16385done 16386 done 16387IFS=$as_save_IFS 16388 16389 ;; 16390esac 16391fi 16392ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16393if test -n "$ac_pt_PKG_CONFIG"; then 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16395$as_echo "$ac_pt_PKG_CONFIG" >&6; } 16396else 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16398$as_echo "no" >&6; } 16399fi 16400 16401 if test "x$ac_pt_PKG_CONFIG" = x; then 16402 PKG_CONFIG="" 16403 else 16404 case $cross_compiling:$ac_tool_warned in 16405yes:) 16406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16408ac_tool_warned=yes ;; 16409esac 16410 PKG_CONFIG=$ac_pt_PKG_CONFIG 16411 fi 16412else 16413 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16414fi 16415 16416fi 16417if test -n "$PKG_CONFIG"; then 16418 _pkg_min_version=0.9.0 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16420$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16421 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16423$as_echo "yes" >&6; } 16424 else 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16426$as_echo "no" >&6; } 16427 PKG_CONFIG="" 16428 fi 16429fi 16430 16431FLAC_CFLAGS="" 16432FLAC_LIBS="" 16433 16434if test -n "$PKG_CONFIG" ; then 16435 if test "$enable_flac" = "yes" ; then 16436 16437pkg_failed=no 16438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC" >&5 16439$as_echo_n "checking for FLAC... " >&6; } 16440 16441if test -n "$FLAC_CFLAGS"; then 16442 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS" 16443 elif test -n "$PKG_CONFIG"; then 16444 if test -n "$PKG_CONFIG" && \ 16445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5 16446 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5 16447 ac_status=$? 16448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16449 test $ac_status = 0; }; then 16450 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.2.1" 2>/dev/null` 16451 test "x$?" != "x0" && pkg_failed=yes 16452else 16453 pkg_failed=yes 16454fi 16455 else 16456 pkg_failed=untried 16457fi 16458if test -n "$FLAC_LIBS"; then 16459 pkg_cv_FLAC_LIBS="$FLAC_LIBS" 16460 elif test -n "$PKG_CONFIG"; then 16461 if test -n "$PKG_CONFIG" && \ 16462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5 16463 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5 16464 ac_status=$? 16465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16466 test $ac_status = 0; }; then 16467 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.2.1" 2>/dev/null` 16468 test "x$?" != "x0" && pkg_failed=yes 16469else 16470 pkg_failed=yes 16471fi 16472 else 16473 pkg_failed=untried 16474fi 16475 16476 16477 16478if test $pkg_failed = yes; then 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16480$as_echo "no" >&6; } 16481 16482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16483 _pkg_short_errors_supported=yes 16484else 16485 _pkg_short_errors_supported=no 16486fi 16487 if test $_pkg_short_errors_supported = yes; then 16488 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flac >= 1.2.1" 2>&1` 16489 else 16490 FLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flac >= 1.2.1" 2>&1` 16491 fi 16492 # Put the nasty error message in config.log where it belongs 16493 echo "$FLAC_PKG_ERRORS" >&5 16494 16495 ac_cv_flac=no 16496elif test $pkg_failed = untried; then 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16498$as_echo "no" >&6; } 16499 ac_cv_flac=no 16500else 16501 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS 16502 FLAC_LIBS=$pkg_cv_FLAC_LIBS 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16504$as_echo "yes" >&6; } 16505 ac_cv_flac=yes 16506fi 16507 FLAC_CFLAGS=`echo $FLAC_CFLAGS | $SED "s/FLAC$//"` 16508 if test "$ac_cv_flac" = "no" ; then 16509 enable_flac=no 16510 fi 16511 fi 16512else 16513 enable_flac=no 16514fi 16515 16516 16517 16518 16519 if test "$enable_flac" = "yes"; then 16520 ENABLE_FLAC_TRUE= 16521 ENABLE_FLAC_FALSE='#' 16522else 16523 ENABLE_FLAC_TRUE='#' 16524 ENABLE_FLAC_FALSE= 16525fi 16526 16527if test "$enable_flac" = "yes" ; then 16528 16529cat >>confdefs.h <<_ACEOF 16530#define ENABLE_FLAC 1 16531_ACEOF 16532 16533else 16534 16535cat >>confdefs.h <<_ACEOF 16536#define ENABLE_FLAC 0 16537_ACEOF 16538 16539fi 16540 16541ac_config_files="$ac_config_files audiofile.spec audiofile.pc audiofile-uninstalled.pc sfcommands/Makefile test/Makefile gtest/Makefile examples/Makefile libaudiofile/Makefile libaudiofile/alac/Makefile libaudiofile/modules/Makefile docs/Makefile Makefile" 16542 16543cat >confcache <<\_ACEOF 16544# This file is a shell script that caches the results of configure 16545# tests run on this system so they can be shared between configure 16546# scripts and configure runs, see configure's option --config-cache. 16547# It is not useful on other systems. If it contains results you don't 16548# want to keep, you may remove or edit it. 16549# 16550# config.status only pays attention to the cache file if you give it 16551# the --recheck option to rerun configure. 16552# 16553# `ac_cv_env_foo' variables (set or unset) will be overridden when 16554# loading this file, other *unset* `ac_cv_foo' will be assigned the 16555# following values. 16556 16557_ACEOF 16558 16559# The following way of writing the cache mishandles newlines in values, 16560# but we know of no workaround that is simple, portable, and efficient. 16561# So, we kill variables containing newlines. 16562# Ultrix sh set writes to stderr and can't be redirected directly, 16563# and sets the high bit in the cache file unless we assign to the vars. 16564( 16565 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16566 eval ac_val=\$$ac_var 16567 case $ac_val in #( 16568 *${as_nl}*) 16569 case $ac_var in #( 16570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16571$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16572 esac 16573 case $ac_var in #( 16574 _ | IFS | as_nl) ;; #( 16575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16576 *) { eval $ac_var=; unset $ac_var;} ;; 16577 esac ;; 16578 esac 16579 done 16580 16581 (set) 2>&1 | 16582 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16583 *${as_nl}ac_space=\ *) 16584 # `set' does not quote correctly, so add quotes: double-quote 16585 # substitution turns \\\\ into \\, and sed turns \\ into \. 16586 sed -n \ 16587 "s/'/'\\\\''/g; 16588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16589 ;; #( 16590 *) 16591 # `set' quotes correctly as required by POSIX, so do not add quotes. 16592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16593 ;; 16594 esac | 16595 sort 16596) | 16597 sed ' 16598 /^ac_cv_env_/b end 16599 t clear 16600 :clear 16601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16602 t end 16603 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16604 :end' >>confcache 16605if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16606 if test -w "$cache_file"; then 16607 if test "x$cache_file" != "x/dev/null"; then 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16609$as_echo "$as_me: updating cache $cache_file" >&6;} 16610 if test ! -f "$cache_file" || test -h "$cache_file"; then 16611 cat confcache >"$cache_file" 16612 else 16613 case $cache_file in #( 16614 */* | ?:*) 16615 mv -f confcache "$cache_file"$$ && 16616 mv -f "$cache_file"$$ "$cache_file" ;; #( 16617 *) 16618 mv -f confcache "$cache_file" ;; 16619 esac 16620 fi 16621 fi 16622 else 16623 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16624$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16625 fi 16626fi 16627rm -f confcache 16628 16629test "x$prefix" = xNONE && prefix=$ac_default_prefix 16630# Let make expand exec_prefix. 16631test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16632 16633DEFS=-DHAVE_CONFIG_H 16634 16635ac_libobjs= 16636ac_ltlibobjs= 16637U= 16638for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16639 # 1. Remove the extension, and $U if already installed. 16640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16641 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16643 # will be set to the directory where LIBOBJS objects are built. 16644 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16645 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16646done 16647LIBOBJS=$ac_libobjs 16648 16649LTLIBOBJS=$ac_ltlibobjs 16650 16651 16652 if test -n "$EXEEXT"; then 16653 am__EXEEXT_TRUE= 16654 am__EXEEXT_FALSE='#' 16655else 16656 am__EXEEXT_TRUE='#' 16657 am__EXEEXT_FALSE= 16658fi 16659 16660if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16661 as_fn_error $? "conditional \"AMDEP\" was never defined. 16662Usually this means the macro was only invoked conditionally." "$LINENO" 5 16663fi 16664if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16665 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16666Usually this means the macro was only invoked conditionally." "$LINENO" 5 16667fi 16668if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16669 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16670Usually this means the macro was only invoked conditionally." "$LINENO" 5 16671fi 16672 16673if test -z "${ENABLE_WERROR_TRUE}" && test -z "${ENABLE_WERROR_FALSE}"; then 16674 as_fn_error $? "conditional \"ENABLE_WERROR\" was never defined. 16675Usually this means the macro was only invoked conditionally." "$LINENO" 5 16676fi 16677if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then 16678 as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined. 16679Usually this means the macro was only invoked conditionally." "$LINENO" 5 16680fi 16681if test -z "${ENABLE_VALGRIND_TRUE}" && test -z "${ENABLE_VALGRIND_FALSE}"; then 16682 as_fn_error $? "conditional \"ENABLE_VALGRIND\" was never defined. 16683Usually this means the macro was only invoked conditionally." "$LINENO" 5 16684fi 16685if test -z "${ENABLE_DOCUMENTATION_TRUE}" && test -z "${ENABLE_DOCUMENTATION_FALSE}"; then 16686 as_fn_error $? "conditional \"ENABLE_DOCUMENTATION\" was never defined. 16687Usually this means the macro was only invoked conditionally." "$LINENO" 5 16688fi 16689if test -z "${ENABLE_FLAC_TRUE}" && test -z "${ENABLE_FLAC_FALSE}"; then 16690 as_fn_error $? "conditional \"ENABLE_FLAC\" was never defined. 16691Usually this means the macro was only invoked conditionally." "$LINENO" 5 16692fi 16693 16694: "${CONFIG_STATUS=./config.status}" 16695ac_write_fail=0 16696ac_clean_files_save=$ac_clean_files 16697ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16698{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16699$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16700as_write_fail=0 16701cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16702#! $SHELL 16703# Generated by $as_me. 16704# Run this file to recreate the current configuration. 16705# Compiler output produced by configure, useful for debugging 16706# configure, is in config.log if it exists. 16707 16708debug=false 16709ac_cs_recheck=false 16710ac_cs_silent=false 16711 16712SHELL=\${CONFIG_SHELL-$SHELL} 16713export SHELL 16714_ASEOF 16715cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16716## -------------------- ## 16717## M4sh Initialization. ## 16718## -------------------- ## 16719 16720# Be more Bourne compatible 16721DUALCASE=1; export DUALCASE # for MKS sh 16722if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16723 emulate sh 16724 NULLCMD=: 16725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16726 # is contrary to our usage. Disable this feature. 16727 alias -g '${1+"$@"}'='"$@"' 16728 setopt NO_GLOB_SUBST 16729else 16730 case `(set -o) 2>/dev/null` in #( 16731 *posix*) : 16732 set -o posix ;; #( 16733 *) : 16734 ;; 16735esac 16736fi 16737 16738 16739as_nl=' 16740' 16741export as_nl 16742# Printing a long string crashes Solaris 7 /usr/bin/printf. 16743as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16744as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16745as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16746# Prefer a ksh shell builtin over an external printf program on Solaris, 16747# but without wasting forks for bash or zsh. 16748if test -z "$BASH_VERSION$ZSH_VERSION" \ 16749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16750 as_echo='print -r --' 16751 as_echo_n='print -rn --' 16752elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16753 as_echo='printf %s\n' 16754 as_echo_n='printf %s' 16755else 16756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16758 as_echo_n='/usr/ucb/echo -n' 16759 else 16760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16761 as_echo_n_body='eval 16762 arg=$1; 16763 case $arg in #( 16764 *"$as_nl"*) 16765 expr "X$arg" : "X\\(.*\\)$as_nl"; 16766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16767 esac; 16768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16769 ' 16770 export as_echo_n_body 16771 as_echo_n='sh -c $as_echo_n_body as_echo' 16772 fi 16773 export as_echo_body 16774 as_echo='sh -c $as_echo_body as_echo' 16775fi 16776 16777# The user is always right. 16778if test "${PATH_SEPARATOR+set}" != set; then 16779 PATH_SEPARATOR=: 16780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16782 PATH_SEPARATOR=';' 16783 } 16784fi 16785 16786 16787# IFS 16788# We need space, tab and new line, in precisely that order. Quoting is 16789# there to prevent editors from complaining about space-tab. 16790# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16791# splitting by setting IFS to empty value.) 16792IFS=" "" $as_nl" 16793 16794# Find who we are. Look in the path if we contain no directory separator. 16795as_myself= 16796case $0 in #(( 16797 *[\\/]* ) as_myself=$0 ;; 16798 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16799for as_dir in $PATH 16800do 16801 IFS=$as_save_IFS 16802 test -z "$as_dir" && as_dir=. 16803 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16804 done 16805IFS=$as_save_IFS 16806 16807 ;; 16808esac 16809# We did not find ourselves, most probably we were run as `sh COMMAND' 16810# in which case we are not to be found in the path. 16811if test "x$as_myself" = x; then 16812 as_myself=$0 16813fi 16814if test ! -f "$as_myself"; then 16815 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16816 exit 1 16817fi 16818 16819# Unset variables that we do not need and which cause bugs (e.g. in 16820# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16821# suppresses any "Segmentation fault" message there. '((' could 16822# trigger a bug in pdksh 5.2.14. 16823for as_var in BASH_ENV ENV MAIL MAILPATH 16824do eval test x\${$as_var+set} = xset \ 16825 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16826done 16827PS1='$ ' 16828PS2='> ' 16829PS4='+ ' 16830 16831# NLS nuisances. 16832LC_ALL=C 16833export LC_ALL 16834LANGUAGE=C 16835export LANGUAGE 16836 16837# CDPATH. 16838(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16839 16840 16841# as_fn_error STATUS ERROR [LINENO LOG_FD] 16842# ---------------------------------------- 16843# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16844# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16845# script with STATUS, using 1 if that was 0. 16846as_fn_error () 16847{ 16848 as_status=$1; test $as_status -eq 0 && as_status=1 16849 if test "$4"; then 16850 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16851 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16852 fi 16853 $as_echo "$as_me: error: $2" >&2 16854 as_fn_exit $as_status 16855} # as_fn_error 16856 16857 16858# as_fn_set_status STATUS 16859# ----------------------- 16860# Set $? to STATUS, without forking. 16861as_fn_set_status () 16862{ 16863 return $1 16864} # as_fn_set_status 16865 16866# as_fn_exit STATUS 16867# ----------------- 16868# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16869as_fn_exit () 16870{ 16871 set +e 16872 as_fn_set_status $1 16873 exit $1 16874} # as_fn_exit 16875 16876# as_fn_unset VAR 16877# --------------- 16878# Portably unset VAR. 16879as_fn_unset () 16880{ 16881 { eval $1=; unset $1;} 16882} 16883as_unset=as_fn_unset 16884# as_fn_append VAR VALUE 16885# ---------------------- 16886# Append the text in VALUE to the end of the definition contained in VAR. Take 16887# advantage of any shell optimizations that allow amortized linear growth over 16888# repeated appends, instead of the typical quadratic growth present in naive 16889# implementations. 16890if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16891 eval 'as_fn_append () 16892 { 16893 eval $1+=\$2 16894 }' 16895else 16896 as_fn_append () 16897 { 16898 eval $1=\$$1\$2 16899 } 16900fi # as_fn_append 16901 16902# as_fn_arith ARG... 16903# ------------------ 16904# Perform arithmetic evaluation on the ARGs, and store the result in the 16905# global $as_val. Take advantage of shells that can avoid forks. The arguments 16906# must be portable across $(()) and expr. 16907if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16908 eval 'as_fn_arith () 16909 { 16910 as_val=$(( $* )) 16911 }' 16912else 16913 as_fn_arith () 16914 { 16915 as_val=`expr "$@" || test $? -eq 1` 16916 } 16917fi # as_fn_arith 16918 16919 16920if expr a : '\(a\)' >/dev/null 2>&1 && 16921 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16922 as_expr=expr 16923else 16924 as_expr=false 16925fi 16926 16927if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16928 as_basename=basename 16929else 16930 as_basename=false 16931fi 16932 16933if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16934 as_dirname=dirname 16935else 16936 as_dirname=false 16937fi 16938 16939as_me=`$as_basename -- "$0" || 16940$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16941 X"$0" : 'X\(//\)$' \| \ 16942 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16943$as_echo X/"$0" | 16944 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16945 s//\1/ 16946 q 16947 } 16948 /^X\/\(\/\/\)$/{ 16949 s//\1/ 16950 q 16951 } 16952 /^X\/\(\/\).*/{ 16953 s//\1/ 16954 q 16955 } 16956 s/.*/./; q'` 16957 16958# Avoid depending upon Character Ranges. 16959as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16960as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16961as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16962as_cr_digits='0123456789' 16963as_cr_alnum=$as_cr_Letters$as_cr_digits 16964 16965ECHO_C= ECHO_N= ECHO_T= 16966case `echo -n x` in #((((( 16967-n*) 16968 case `echo 'xy\c'` in 16969 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16970 xy) ECHO_C='\c';; 16971 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16972 ECHO_T=' ';; 16973 esac;; 16974*) 16975 ECHO_N='-n';; 16976esac 16977 16978rm -f conf$$ conf$$.exe conf$$.file 16979if test -d conf$$.dir; then 16980 rm -f conf$$.dir/conf$$.file 16981else 16982 rm -f conf$$.dir 16983 mkdir conf$$.dir 2>/dev/null 16984fi 16985if (echo >conf$$.file) 2>/dev/null; then 16986 if ln -s conf$$.file conf$$ 2>/dev/null; then 16987 as_ln_s='ln -s' 16988 # ... but there are two gotchas: 16989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16991 # In both cases, we have to default to `cp -pR'. 16992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16993 as_ln_s='cp -pR' 16994 elif ln conf$$.file conf$$ 2>/dev/null; then 16995 as_ln_s=ln 16996 else 16997 as_ln_s='cp -pR' 16998 fi 16999else 17000 as_ln_s='cp -pR' 17001fi 17002rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17003rmdir conf$$.dir 2>/dev/null 17004 17005 17006# as_fn_mkdir_p 17007# ------------- 17008# Create "$as_dir" as a directory, including parents if necessary. 17009as_fn_mkdir_p () 17010{ 17011 17012 case $as_dir in #( 17013 -*) as_dir=./$as_dir;; 17014 esac 17015 test -d "$as_dir" || eval $as_mkdir_p || { 17016 as_dirs= 17017 while :; do 17018 case $as_dir in #( 17019 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17020 *) as_qdir=$as_dir;; 17021 esac 17022 as_dirs="'$as_qdir' $as_dirs" 17023 as_dir=`$as_dirname -- "$as_dir" || 17024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17025 X"$as_dir" : 'X\(//\)[^/]' \| \ 17026 X"$as_dir" : 'X\(//\)$' \| \ 17027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17028$as_echo X"$as_dir" | 17029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17030 s//\1/ 17031 q 17032 } 17033 /^X\(\/\/\)[^/].*/{ 17034 s//\1/ 17035 q 17036 } 17037 /^X\(\/\/\)$/{ 17038 s//\1/ 17039 q 17040 } 17041 /^X\(\/\).*/{ 17042 s//\1/ 17043 q 17044 } 17045 s/.*/./; q'` 17046 test -d "$as_dir" && break 17047 done 17048 test -z "$as_dirs" || eval "mkdir $as_dirs" 17049 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17050 17051 17052} # as_fn_mkdir_p 17053if mkdir -p . 2>/dev/null; then 17054 as_mkdir_p='mkdir -p "$as_dir"' 17055else 17056 test -d ./-p && rmdir ./-p 17057 as_mkdir_p=false 17058fi 17059 17060 17061# as_fn_executable_p FILE 17062# ----------------------- 17063# Test if FILE is an executable regular file. 17064as_fn_executable_p () 17065{ 17066 test -f "$1" && test -x "$1" 17067} # as_fn_executable_p 17068as_test_x='test -x' 17069as_executable_p=as_fn_executable_p 17070 17071# Sed expression to map a string onto a valid CPP name. 17072as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17073 17074# Sed expression to map a string onto a valid variable name. 17075as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17076 17077 17078exec 6>&1 17079## ----------------------------------- ## 17080## Main body of $CONFIG_STATUS script. ## 17081## ----------------------------------- ## 17082_ASEOF 17083test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17084 17085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17086# Save the log message, to keep $0 and so on meaningful, and to 17087# report actual input values of CONFIG_FILES etc. instead of their 17088# values after options handling. 17089ac_log=" 17090This file was extended by audiofile $as_me 0.3.6, which was 17091generated by GNU Autoconf 2.69. Invocation command line was 17092 17093 CONFIG_FILES = $CONFIG_FILES 17094 CONFIG_HEADERS = $CONFIG_HEADERS 17095 CONFIG_LINKS = $CONFIG_LINKS 17096 CONFIG_COMMANDS = $CONFIG_COMMANDS 17097 $ $0 $@ 17098 17099on `(hostname || uname -n) 2>/dev/null | sed 1q` 17100" 17101 17102_ACEOF 17103 17104case $ac_config_files in *" 17105"*) set x $ac_config_files; shift; ac_config_files=$*;; 17106esac 17107 17108case $ac_config_headers in *" 17109"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17110esac 17111 17112 17113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17114# Files that config.status was made for. 17115config_files="$ac_config_files" 17116config_headers="$ac_config_headers" 17117config_commands="$ac_config_commands" 17118 17119_ACEOF 17120 17121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17122ac_cs_usage="\ 17123\`$as_me' instantiates files and other configuration actions 17124from templates according to the current configuration. Unless the files 17125and actions are specified as TAGs, all are instantiated by default. 17126 17127Usage: $0 [OPTION]... [TAG]... 17128 17129 -h, --help print this help, then exit 17130 -V, --version print version number and configuration settings, then exit 17131 --config print configuration, then exit 17132 -q, --quiet, --silent 17133 do not print progress messages 17134 -d, --debug don't remove temporary files 17135 --recheck update $as_me by reconfiguring in the same conditions 17136 --file=FILE[:TEMPLATE] 17137 instantiate the configuration file FILE 17138 --header=FILE[:TEMPLATE] 17139 instantiate the configuration header FILE 17140 17141Configuration files: 17142$config_files 17143 17144Configuration headers: 17145$config_headers 17146 17147Configuration commands: 17148$config_commands 17149 17150Report bugs to the package provider." 17151 17152_ACEOF 17153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17154ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17155ac_cs_version="\\ 17156audiofile config.status 0.3.6 17157configured by $0, generated by GNU Autoconf 2.69, 17158 with options \\"\$ac_cs_config\\" 17159 17160Copyright (C) 2012 Free Software Foundation, Inc. 17161This config.status script is free software; the Free Software Foundation 17162gives unlimited permission to copy, distribute and modify it." 17163 17164ac_pwd='$ac_pwd' 17165srcdir='$srcdir' 17166INSTALL='$INSTALL' 17167MKDIR_P='$MKDIR_P' 17168AWK='$AWK' 17169test -n "\$AWK" || AWK=awk 17170_ACEOF 17171 17172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17173# The default lists apply if the user does not specify any file. 17174ac_need_defaults=: 17175while test $# != 0 17176do 17177 case $1 in 17178 --*=?*) 17179 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17181 ac_shift=: 17182 ;; 17183 --*=) 17184 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17185 ac_optarg= 17186 ac_shift=: 17187 ;; 17188 *) 17189 ac_option=$1 17190 ac_optarg=$2 17191 ac_shift=shift 17192 ;; 17193 esac 17194 17195 case $ac_option in 17196 # Handling of the options. 17197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17198 ac_cs_recheck=: ;; 17199 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17200 $as_echo "$ac_cs_version"; exit ;; 17201 --config | --confi | --conf | --con | --co | --c ) 17202 $as_echo "$ac_cs_config"; exit ;; 17203 --debug | --debu | --deb | --de | --d | -d ) 17204 debug=: ;; 17205 --file | --fil | --fi | --f ) 17206 $ac_shift 17207 case $ac_optarg in 17208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17209 '') as_fn_error $? "missing file argument" ;; 17210 esac 17211 as_fn_append CONFIG_FILES " '$ac_optarg'" 17212 ac_need_defaults=false;; 17213 --header | --heade | --head | --hea ) 17214 $ac_shift 17215 case $ac_optarg in 17216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17217 esac 17218 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17219 ac_need_defaults=false;; 17220 --he | --h) 17221 # Conflict between --help and --header 17222 as_fn_error $? "ambiguous option: \`$1' 17223Try \`$0 --help' for more information.";; 17224 --help | --hel | -h ) 17225 $as_echo "$ac_cs_usage"; exit ;; 17226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17227 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17228 ac_cs_silent=: ;; 17229 17230 # This is an error. 17231 -*) as_fn_error $? "unrecognized option: \`$1' 17232Try \`$0 --help' for more information." ;; 17233 17234 *) as_fn_append ac_config_targets " $1" 17235 ac_need_defaults=false ;; 17236 17237 esac 17238 shift 17239done 17240 17241ac_configure_extra_args= 17242 17243if $ac_cs_silent; then 17244 exec 6>/dev/null 17245 ac_configure_extra_args="$ac_configure_extra_args --silent" 17246fi 17247 17248_ACEOF 17249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17250if \$ac_cs_recheck; then 17251 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17252 shift 17253 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17254 CONFIG_SHELL='$SHELL' 17255 export CONFIG_SHELL 17256 exec "\$@" 17257fi 17258 17259_ACEOF 17260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17261exec 5>>config.log 17262{ 17263 echo 17264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17265## Running $as_me. ## 17266_ASBOX 17267 $as_echo "$ac_log" 17268} >&5 17269 17270_ACEOF 17271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17272# 17273# INIT-COMMANDS 17274# 17275AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17276 17277 17278# The HP-UX ksh and POSIX shell print the target directory to stdout 17279# if CDPATH is set. 17280(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17281 17282sed_quote_subst='$sed_quote_subst' 17283double_quote_subst='$double_quote_subst' 17284delay_variable_subst='$delay_variable_subst' 17285macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17286macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17287enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17288enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17289pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17290enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17291SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17292ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17293PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17294host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17295host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17296host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17297build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17298build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17299build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17300SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17301Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17302GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17303EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17304FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17305LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17306NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17307LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17308max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17309ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17310exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17311lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17312lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17313lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17314lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17315lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17316reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17317reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17318OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17319deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17320file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17321file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17322want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17323DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17324sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17325AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17326AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17327archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17328STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17329RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17330old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17331old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17332old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17333lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17334CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17335CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17336compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17337GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17338lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17339lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17340lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17341lt_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"`' 17342nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17343lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17344objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17345MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17346lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17347lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17348lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17349lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17350lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17351need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17352MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17353DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17354NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17355LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17356OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17357OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17358libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17359shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17360extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17361archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17362enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17363export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17364whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17365compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17366old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17367old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17368archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17369archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17370module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17371module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17372with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17373allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17374no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17375hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17376hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17377hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17378hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17379hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17380hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17381hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17382inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17383link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17384always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17385export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17386exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17387include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17388prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17389postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17390file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17391variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17392need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17393need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17394version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17395runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17396shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17397shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17398libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17399library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17400soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17401install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17402postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17403postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17404finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17405finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17406hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17407sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17408sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17409hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17410enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17411enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17412enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17413old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17414striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17415compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17416predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17417postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17418predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17419postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17420compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17421LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17422reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17423reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17424old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17425compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17426GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17427lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17428lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17429lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17430lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17431lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17432archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17433enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17434export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17435whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17436compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17437old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17438old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17439archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17440archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17441module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17442module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17443with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17444allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17445no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17446hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17447hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17448hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17449hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17450hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17451hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17452hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17453inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17454link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17455always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17456export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17457exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17458include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17459prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17460postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17461file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17462hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17463compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17464predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17465postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17466predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17467postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17468compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17469 17470LTCC='$LTCC' 17471LTCFLAGS='$LTCFLAGS' 17472compiler='$compiler_DEFAULT' 17473 17474# A function that is used when there is no print builtin or printf. 17475func_fallback_echo () 17476{ 17477 eval 'cat <<_LTECHO_EOF 17478\$1 17479_LTECHO_EOF' 17480} 17481 17482# Quote evaled strings. 17483for var in SHELL \ 17484ECHO \ 17485PATH_SEPARATOR \ 17486SED \ 17487GREP \ 17488EGREP \ 17489FGREP \ 17490LD \ 17491NM \ 17492LN_S \ 17493lt_SP2NL \ 17494lt_NL2SP \ 17495reload_flag \ 17496OBJDUMP \ 17497deplibs_check_method \ 17498file_magic_cmd \ 17499file_magic_glob \ 17500want_nocaseglob \ 17501DLLTOOL \ 17502sharedlib_from_linklib_cmd \ 17503AR \ 17504AR_FLAGS \ 17505archiver_list_spec \ 17506STRIP \ 17507RANLIB \ 17508CC \ 17509CFLAGS \ 17510compiler \ 17511lt_cv_sys_global_symbol_pipe \ 17512lt_cv_sys_global_symbol_to_cdecl \ 17513lt_cv_sys_global_symbol_to_c_name_address \ 17514lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17515nm_file_list_spec \ 17516lt_prog_compiler_no_builtin_flag \ 17517lt_prog_compiler_pic \ 17518lt_prog_compiler_wl \ 17519lt_prog_compiler_static \ 17520lt_cv_prog_compiler_c_o \ 17521need_locks \ 17522MANIFEST_TOOL \ 17523DSYMUTIL \ 17524NMEDIT \ 17525LIPO \ 17526OTOOL \ 17527OTOOL64 \ 17528shrext_cmds \ 17529export_dynamic_flag_spec \ 17530whole_archive_flag_spec \ 17531compiler_needs_object \ 17532with_gnu_ld \ 17533allow_undefined_flag \ 17534no_undefined_flag \ 17535hardcode_libdir_flag_spec \ 17536hardcode_libdir_separator \ 17537exclude_expsyms \ 17538include_expsyms \ 17539file_list_spec \ 17540variables_saved_for_relink \ 17541libname_spec \ 17542library_names_spec \ 17543soname_spec \ 17544install_override_mode \ 17545finish_eval \ 17546old_striplib \ 17547striplib \ 17548compiler_lib_search_dirs \ 17549predep_objects \ 17550postdep_objects \ 17551predeps \ 17552postdeps \ 17553compiler_lib_search_path \ 17554LD_CXX \ 17555reload_flag_CXX \ 17556compiler_CXX \ 17557lt_prog_compiler_no_builtin_flag_CXX \ 17558lt_prog_compiler_pic_CXX \ 17559lt_prog_compiler_wl_CXX \ 17560lt_prog_compiler_static_CXX \ 17561lt_cv_prog_compiler_c_o_CXX \ 17562export_dynamic_flag_spec_CXX \ 17563whole_archive_flag_spec_CXX \ 17564compiler_needs_object_CXX \ 17565with_gnu_ld_CXX \ 17566allow_undefined_flag_CXX \ 17567no_undefined_flag_CXX \ 17568hardcode_libdir_flag_spec_CXX \ 17569hardcode_libdir_separator_CXX \ 17570exclude_expsyms_CXX \ 17571include_expsyms_CXX \ 17572file_list_spec_CXX \ 17573compiler_lib_search_dirs_CXX \ 17574predep_objects_CXX \ 17575postdep_objects_CXX \ 17576predeps_CXX \ 17577postdeps_CXX \ 17578compiler_lib_search_path_CXX; do 17579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17580 *[\\\\\\\`\\"\\\$]*) 17581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17582 ;; 17583 *) 17584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17585 ;; 17586 esac 17587done 17588 17589# Double-quote double-evaled strings. 17590for var in reload_cmds \ 17591old_postinstall_cmds \ 17592old_postuninstall_cmds \ 17593old_archive_cmds \ 17594extract_expsyms_cmds \ 17595old_archive_from_new_cmds \ 17596old_archive_from_expsyms_cmds \ 17597archive_cmds \ 17598archive_expsym_cmds \ 17599module_cmds \ 17600module_expsym_cmds \ 17601export_symbols_cmds \ 17602prelink_cmds \ 17603postlink_cmds \ 17604postinstall_cmds \ 17605postuninstall_cmds \ 17606finish_cmds \ 17607sys_lib_search_path_spec \ 17608sys_lib_dlsearch_path_spec \ 17609reload_cmds_CXX \ 17610old_archive_cmds_CXX \ 17611old_archive_from_new_cmds_CXX \ 17612old_archive_from_expsyms_cmds_CXX \ 17613archive_cmds_CXX \ 17614archive_expsym_cmds_CXX \ 17615module_cmds_CXX \ 17616module_expsym_cmds_CXX \ 17617export_symbols_cmds_CXX \ 17618prelink_cmds_CXX \ 17619postlink_cmds_CXX; do 17620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17621 *[\\\\\\\`\\"\\\$]*) 17622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17623 ;; 17624 *) 17625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17626 ;; 17627 esac 17628done 17629 17630ac_aux_dir='$ac_aux_dir' 17631xsi_shell='$xsi_shell' 17632lt_shell_append='$lt_shell_append' 17633 17634# See if we are running on zsh, and set the options which allow our 17635# commands through without removal of \ escapes INIT. 17636if test -n "\${ZSH_VERSION+set}" ; then 17637 setopt NO_GLOB_SUBST 17638fi 17639 17640 17641 PACKAGE='$PACKAGE' 17642 VERSION='$VERSION' 17643 TIMESTAMP='$TIMESTAMP' 17644 RM='$RM' 17645 ofile='$ofile' 17646 17647 17648 17649 17650 17651 17652_ACEOF 17653 17654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17655 17656# Handling of arguments. 17657for ac_config_target in $ac_config_targets 17658do 17659 case $ac_config_target in 17660 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17661 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17662 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17663 "audiofile.spec") CONFIG_FILES="$CONFIG_FILES audiofile.spec" ;; 17664 "audiofile.pc") CONFIG_FILES="$CONFIG_FILES audiofile.pc" ;; 17665 "audiofile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES audiofile-uninstalled.pc" ;; 17666 "sfcommands/Makefile") CONFIG_FILES="$CONFIG_FILES sfcommands/Makefile" ;; 17667 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 17668 "gtest/Makefile") CONFIG_FILES="$CONFIG_FILES gtest/Makefile" ;; 17669 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 17670 "libaudiofile/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/Makefile" ;; 17671 "libaudiofile/alac/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/alac/Makefile" ;; 17672 "libaudiofile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/modules/Makefile" ;; 17673 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 17674 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17675 17676 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17677 esac 17678done 17679 17680 17681# If the user did not use the arguments to specify the items to instantiate, 17682# then the envvar interface is used. Set only those that are not. 17683# We use the long form for the default assignment because of an extremely 17684# bizarre bug on SunOS 4.1.3. 17685if $ac_need_defaults; then 17686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17688 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17689fi 17690 17691# Have a temporary directory for convenience. Make it in the build tree 17692# simply because there is no reason against having it here, and in addition, 17693# creating and moving files from /tmp can sometimes cause problems. 17694# Hook for its removal unless debugging. 17695# Note that there is a small window in which the directory will not be cleaned: 17696# after its creation but before its name has been assigned to `$tmp'. 17697$debug || 17698{ 17699 tmp= ac_tmp= 17700 trap 'exit_status=$? 17701 : "${ac_tmp:=$tmp}" 17702 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17703' 0 17704 trap 'as_fn_exit 1' 1 2 13 15 17705} 17706# Create a (secure) tmp directory for tmp files. 17707 17708{ 17709 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17710 test -d "$tmp" 17711} || 17712{ 17713 tmp=./conf$$-$RANDOM 17714 (umask 077 && mkdir "$tmp") 17715} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17716ac_tmp=$tmp 17717 17718# Set up the scripts for CONFIG_FILES section. 17719# No need to generate them if there are no CONFIG_FILES. 17720# This happens for instance with `./config.status config.h'. 17721if test -n "$CONFIG_FILES"; then 17722 17723 17724ac_cr=`echo X | tr X '\015'` 17725# On cygwin, bash can eat \r inside `` if the user requested igncr. 17726# But we know of no other shell where ac_cr would be empty at this 17727# point, so we can use a bashism as a fallback. 17728if test "x$ac_cr" = x; then 17729 eval ac_cr=\$\'\\r\' 17730fi 17731ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17732if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17733 ac_cs_awk_cr='\\r' 17734else 17735 ac_cs_awk_cr=$ac_cr 17736fi 17737 17738echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17739_ACEOF 17740 17741 17742{ 17743 echo "cat >conf$$subs.awk <<_ACEOF" && 17744 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17745 echo "_ACEOF" 17746} >conf$$subs.sh || 17747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17748ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17749ac_delim='%!_!# ' 17750for ac_last_try in false false false false false :; do 17751 . ./conf$$subs.sh || 17752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17753 17754 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17755 if test $ac_delim_n = $ac_delim_num; then 17756 break 17757 elif $ac_last_try; then 17758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17759 else 17760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17761 fi 17762done 17763rm -f conf$$subs.sh 17764 17765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17766cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17767_ACEOF 17768sed -n ' 17769h 17770s/^/S["/; s/!.*/"]=/ 17771p 17772g 17773s/^[^!]*!// 17774:repl 17775t repl 17776s/'"$ac_delim"'$// 17777t delim 17778:nl 17779h 17780s/\(.\{148\}\)..*/\1/ 17781t more1 17782s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17783p 17784n 17785b repl 17786:more1 17787s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17788p 17789g 17790s/.\{148\}// 17791t nl 17792:delim 17793h 17794s/\(.\{148\}\)..*/\1/ 17795t more2 17796s/["\\]/\\&/g; s/^/"/; s/$/"/ 17797p 17798b 17799:more2 17800s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17801p 17802g 17803s/.\{148\}// 17804t delim 17805' <conf$$subs.awk | sed ' 17806/^[^""]/{ 17807 N 17808 s/\n// 17809} 17810' >>$CONFIG_STATUS || ac_write_fail=1 17811rm -f conf$$subs.awk 17812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17813_ACAWK 17814cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17815 for (key in S) S_is_set[key] = 1 17816 FS = "" 17817 17818} 17819{ 17820 line = $ 0 17821 nfields = split(line, field, "@") 17822 substed = 0 17823 len = length(field[1]) 17824 for (i = 2; i < nfields; i++) { 17825 key = field[i] 17826 keylen = length(key) 17827 if (S_is_set[key]) { 17828 value = S[key] 17829 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17830 len += length(value) + length(field[++i]) 17831 substed = 1 17832 } else 17833 len += 1 + keylen 17834 } 17835 17836 print line 17837} 17838 17839_ACAWK 17840_ACEOF 17841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17842if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17843 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17844else 17845 cat 17846fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17847 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17848_ACEOF 17849 17850# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17851# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17852# trailing colons and then remove the whole line if VPATH becomes empty 17853# (actually we leave an empty line to preserve line numbers). 17854if test "x$srcdir" = x.; then 17855 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17856h 17857s/// 17858s/^/:/ 17859s/[ ]*$/:/ 17860s/:\$(srcdir):/:/g 17861s/:\${srcdir}:/:/g 17862s/:@srcdir@:/:/g 17863s/^:*// 17864s/:*$// 17865x 17866s/\(=[ ]*\).*/\1/ 17867G 17868s/\n// 17869s/^[^=]*=[ ]*$// 17870}' 17871fi 17872 17873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17874fi # test -n "$CONFIG_FILES" 17875 17876# Set up the scripts for CONFIG_HEADERS section. 17877# No need to generate them if there are no CONFIG_HEADERS. 17878# This happens for instance with `./config.status Makefile'. 17879if test -n "$CONFIG_HEADERS"; then 17880cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17881BEGIN { 17882_ACEOF 17883 17884# Transform confdefs.h into an awk script `defines.awk', embedded as 17885# here-document in config.status, that substitutes the proper values into 17886# config.h.in to produce config.h. 17887 17888# Create a delimiter string that does not exist in confdefs.h, to ease 17889# handling of long lines. 17890ac_delim='%!_!# ' 17891for ac_last_try in false false :; do 17892 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17893 if test -z "$ac_tt"; then 17894 break 17895 elif $ac_last_try; then 17896 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17897 else 17898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17899 fi 17900done 17901 17902# For the awk script, D is an array of macro values keyed by name, 17903# likewise P contains macro parameters if any. Preserve backslash 17904# newline sequences. 17905 17906ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17907sed -n ' 17908s/.\{148\}/&'"$ac_delim"'/g 17909t rset 17910:rset 17911s/^[ ]*#[ ]*define[ ][ ]*/ / 17912t def 17913d 17914:def 17915s/\\$// 17916t bsnl 17917s/["\\]/\\&/g 17918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17919D["\1"]=" \3"/p 17920s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17921d 17922:bsnl 17923s/["\\]/\\&/g 17924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17925D["\1"]=" \3\\\\\\n"\\/p 17926t cont 17927s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17928t cont 17929d 17930:cont 17931n 17932s/.\{148\}/&'"$ac_delim"'/g 17933t clear 17934:clear 17935s/\\$// 17936t bsnlc 17937s/["\\]/\\&/g; s/^/"/; s/$/"/p 17938d 17939:bsnlc 17940s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17941b cont 17942' <confdefs.h | sed ' 17943s/'"$ac_delim"'/"\\\ 17944"/g' >>$CONFIG_STATUS || ac_write_fail=1 17945 17946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17947 for (key in D) D_is_set[key] = 1 17948 FS = "" 17949} 17950/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17951 line = \$ 0 17952 split(line, arg, " ") 17953 if (arg[1] == "#") { 17954 defundef = arg[2] 17955 mac1 = arg[3] 17956 } else { 17957 defundef = substr(arg[1], 2) 17958 mac1 = arg[2] 17959 } 17960 split(mac1, mac2, "(") #) 17961 macro = mac2[1] 17962 prefix = substr(line, 1, index(line, defundef) - 1) 17963 if (D_is_set[macro]) { 17964 # Preserve the white space surrounding the "#". 17965 print prefix "define", macro P[macro] D[macro] 17966 next 17967 } else { 17968 # Replace #undef with comments. This is necessary, for example, 17969 # in the case of _POSIX_SOURCE, which is predefined and required 17970 # on some systems where configure will not decide to define it. 17971 if (defundef == "undef") { 17972 print "/*", prefix defundef, macro, "*/" 17973 next 17974 } 17975 } 17976} 17977{ print } 17978_ACAWK 17979_ACEOF 17980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17981 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17982fi # test -n "$CONFIG_HEADERS" 17983 17984 17985eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17986shift 17987for ac_tag 17988do 17989 case $ac_tag in 17990 :[FHLC]) ac_mode=$ac_tag; continue;; 17991 esac 17992 case $ac_mode$ac_tag in 17993 :[FHL]*:*);; 17994 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17995 :[FH]-) ac_tag=-:-;; 17996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17997 esac 17998 ac_save_IFS=$IFS 17999 IFS=: 18000 set x $ac_tag 18001 IFS=$ac_save_IFS 18002 shift 18003 ac_file=$1 18004 shift 18005 18006 case $ac_mode in 18007 :L) ac_source=$1;; 18008 :[FH]) 18009 ac_file_inputs= 18010 for ac_f 18011 do 18012 case $ac_f in 18013 -) ac_f="$ac_tmp/stdin";; 18014 *) # Look for the file first in the build tree, then in the source tree 18015 # (if the path is not absolute). The absolute path cannot be DOS-style, 18016 # because $ac_f cannot contain `:'. 18017 test -f "$ac_f" || 18018 case $ac_f in 18019 [\\/$]*) false;; 18020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18021 esac || 18022 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18023 esac 18024 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18025 as_fn_append ac_file_inputs " '$ac_f'" 18026 done 18027 18028 # Let's still pretend it is `configure' which instantiates (i.e., don't 18029 # use $as_me), people would be surprised to read: 18030 # /* config.h. Generated by config.status. */ 18031 configure_input='Generated from '` 18032 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18033 `' by configure.' 18034 if test x"$ac_file" != x-; then 18035 configure_input="$ac_file. $configure_input" 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18037$as_echo "$as_me: creating $ac_file" >&6;} 18038 fi 18039 # Neutralize special characters interpreted by sed in replacement strings. 18040 case $configure_input in #( 18041 *\&* | *\|* | *\\* ) 18042 ac_sed_conf_input=`$as_echo "$configure_input" | 18043 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18044 *) ac_sed_conf_input=$configure_input;; 18045 esac 18046 18047 case $ac_tag in 18048 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18050 esac 18051 ;; 18052 esac 18053 18054 ac_dir=`$as_dirname -- "$ac_file" || 18055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18056 X"$ac_file" : 'X\(//\)[^/]' \| \ 18057 X"$ac_file" : 'X\(//\)$' \| \ 18058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18059$as_echo X"$ac_file" | 18060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18061 s//\1/ 18062 q 18063 } 18064 /^X\(\/\/\)[^/].*/{ 18065 s//\1/ 18066 q 18067 } 18068 /^X\(\/\/\)$/{ 18069 s//\1/ 18070 q 18071 } 18072 /^X\(\/\).*/{ 18073 s//\1/ 18074 q 18075 } 18076 s/.*/./; q'` 18077 as_dir="$ac_dir"; as_fn_mkdir_p 18078 ac_builddir=. 18079 18080case "$ac_dir" in 18081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18082*) 18083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18084 # A ".." for each directory in $ac_dir_suffix. 18085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18086 case $ac_top_builddir_sub in 18087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18089 esac ;; 18090esac 18091ac_abs_top_builddir=$ac_pwd 18092ac_abs_builddir=$ac_pwd$ac_dir_suffix 18093# for backward compatibility: 18094ac_top_builddir=$ac_top_build_prefix 18095 18096case $srcdir in 18097 .) # We are building in place. 18098 ac_srcdir=. 18099 ac_top_srcdir=$ac_top_builddir_sub 18100 ac_abs_top_srcdir=$ac_pwd ;; 18101 [\\/]* | ?:[\\/]* ) # Absolute name. 18102 ac_srcdir=$srcdir$ac_dir_suffix; 18103 ac_top_srcdir=$srcdir 18104 ac_abs_top_srcdir=$srcdir ;; 18105 *) # Relative name. 18106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18107 ac_top_srcdir=$ac_top_build_prefix$srcdir 18108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18109esac 18110ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18111 18112 18113 case $ac_mode in 18114 :F) 18115 # 18116 # CONFIG_FILE 18117 # 18118 18119 case $INSTALL in 18120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18122 esac 18123 ac_MKDIR_P=$MKDIR_P 18124 case $MKDIR_P in 18125 [\\/$]* | ?:[\\/]* ) ;; 18126 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18127 esac 18128_ACEOF 18129 18130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18131# If the template does not know about datarootdir, expand it. 18132# FIXME: This hack should be removed a few years after 2.60. 18133ac_datarootdir_hack=; ac_datarootdir_seen= 18134ac_sed_dataroot=' 18135/datarootdir/ { 18136 p 18137 q 18138} 18139/@datadir@/p 18140/@docdir@/p 18141/@infodir@/p 18142/@localedir@/p 18143/@mandir@/p' 18144case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18145*datarootdir*) ac_datarootdir_seen=yes;; 18146*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18148$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18149_ACEOF 18150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18151 ac_datarootdir_hack=' 18152 s&@datadir@&$datadir&g 18153 s&@docdir@&$docdir&g 18154 s&@infodir@&$infodir&g 18155 s&@localedir@&$localedir&g 18156 s&@mandir@&$mandir&g 18157 s&\\\${datarootdir}&$datarootdir&g' ;; 18158esac 18159_ACEOF 18160 18161# Neutralize VPATH when `$srcdir' = `.'. 18162# Shell code in configure.ac might set extrasub. 18163# FIXME: do we really want to maintain this feature? 18164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18165ac_sed_extra="$ac_vpsub 18166$extrasub 18167_ACEOF 18168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18169:t 18170/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18171s|@configure_input@|$ac_sed_conf_input|;t t 18172s&@top_builddir@&$ac_top_builddir_sub&;t t 18173s&@top_build_prefix@&$ac_top_build_prefix&;t t 18174s&@srcdir@&$ac_srcdir&;t t 18175s&@abs_srcdir@&$ac_abs_srcdir&;t t 18176s&@top_srcdir@&$ac_top_srcdir&;t t 18177s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18178s&@builddir@&$ac_builddir&;t t 18179s&@abs_builddir@&$ac_abs_builddir&;t t 18180s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18181s&@INSTALL@&$ac_INSTALL&;t t 18182s&@MKDIR_P@&$ac_MKDIR_P&;t t 18183$ac_datarootdir_hack 18184" 18185eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18186 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18187 18188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18189 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18191 "$ac_tmp/out"`; test -z "$ac_out"; } && 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18193which seems to be undefined. Please make sure it is defined" >&5 18194$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18195which seems to be undefined. Please make sure it is defined" >&2;} 18196 18197 rm -f "$ac_tmp/stdin" 18198 case $ac_file in 18199 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18200 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18201 esac \ 18202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18203 ;; 18204 :H) 18205 # 18206 # CONFIG_HEADER 18207 # 18208 if test x"$ac_file" != x-; then 18209 { 18210 $as_echo "/* $configure_input */" \ 18211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18212 } >"$ac_tmp/config.h" \ 18213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18214 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18216$as_echo "$as_me: $ac_file is unchanged" >&6;} 18217 else 18218 rm -f "$ac_file" 18219 mv "$ac_tmp/config.h" "$ac_file" \ 18220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18221 fi 18222 else 18223 $as_echo "/* $configure_input */" \ 18224 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18225 || as_fn_error $? "could not create -" "$LINENO" 5 18226 fi 18227# Compute "$ac_file"'s index in $config_headers. 18228_am_arg="$ac_file" 18229_am_stamp_count=1 18230for _am_header in $config_headers :; do 18231 case $_am_header in 18232 $_am_arg | $_am_arg:* ) 18233 break ;; 18234 * ) 18235 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18236 esac 18237done 18238echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18239$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18240 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18241 X"$_am_arg" : 'X\(//\)$' \| \ 18242 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18243$as_echo X"$_am_arg" | 18244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18245 s//\1/ 18246 q 18247 } 18248 /^X\(\/\/\)[^/].*/{ 18249 s//\1/ 18250 q 18251 } 18252 /^X\(\/\/\)$/{ 18253 s//\1/ 18254 q 18255 } 18256 /^X\(\/\).*/{ 18257 s//\1/ 18258 q 18259 } 18260 s/.*/./; q'`/stamp-h$_am_stamp_count 18261 ;; 18262 18263 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18264$as_echo "$as_me: executing $ac_file commands" >&6;} 18265 ;; 18266 esac 18267 18268 18269 case $ac_file$ac_mode in 18270 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18271 # Autoconf 2.62 quotes --file arguments for eval, but not when files 18272 # are listed without --file. Let's play safe and only enable the eval 18273 # if we detect the quoting. 18274 case $CONFIG_FILES in 18275 *\'*) eval set x "$CONFIG_FILES" ;; 18276 *) set x $CONFIG_FILES ;; 18277 esac 18278 shift 18279 for mf 18280 do 18281 # Strip MF so we end up with the name of the file. 18282 mf=`echo "$mf" | sed -e 's/:.*$//'` 18283 # Check whether this is an Automake generated Makefile or not. 18284 # We used to match only the files named `Makefile.in', but 18285 # some people rename them; so instead we look at the file content. 18286 # Grep'ing the first line is not enough: some people post-process 18287 # each Makefile.in and add a new line on top of each file to say so. 18288 # Grep'ing the whole file is not good either: AIX grep has a line 18289 # limit of 2048, but all sed's we know have understand at least 4000. 18290 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18291 dirpart=`$as_dirname -- "$mf" || 18292$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18293 X"$mf" : 'X\(//\)[^/]' \| \ 18294 X"$mf" : 'X\(//\)$' \| \ 18295 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18296$as_echo X"$mf" | 18297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18298 s//\1/ 18299 q 18300 } 18301 /^X\(\/\/\)[^/].*/{ 18302 s//\1/ 18303 q 18304 } 18305 /^X\(\/\/\)$/{ 18306 s//\1/ 18307 q 18308 } 18309 /^X\(\/\).*/{ 18310 s//\1/ 18311 q 18312 } 18313 s/.*/./; q'` 18314 else 18315 continue 18316 fi 18317 # Extract the definition of DEPDIR, am__include, and am__quote 18318 # from the Makefile without running `make'. 18319 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18320 test -z "$DEPDIR" && continue 18321 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18322 test -z "am__include" && continue 18323 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18324 # When using ansi2knr, U may be empty or an underscore; expand it 18325 U=`sed -n 's/^U = //p' < "$mf"` 18326 # Find all dependency output files, they are included files with 18327 # $(DEPDIR) in their names. We invoke sed twice because it is the 18328 # simplest approach to changing $(DEPDIR) to its actual value in the 18329 # expansion. 18330 for file in `sed -n " 18331 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 18333 # Make sure the directory exists. 18334 test -f "$dirpart/$file" && continue 18335 fdir=`$as_dirname -- "$file" || 18336$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18337 X"$file" : 'X\(//\)[^/]' \| \ 18338 X"$file" : 'X\(//\)$' \| \ 18339 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18340$as_echo X"$file" | 18341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18342 s//\1/ 18343 q 18344 } 18345 /^X\(\/\/\)[^/].*/{ 18346 s//\1/ 18347 q 18348 } 18349 /^X\(\/\/\)$/{ 18350 s//\1/ 18351 q 18352 } 18353 /^X\(\/\).*/{ 18354 s//\1/ 18355 q 18356 } 18357 s/.*/./; q'` 18358 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18359 # echo "creating $dirpart/$file" 18360 echo '# dummy' > "$dirpart/$file" 18361 done 18362 done 18363} 18364 ;; 18365 "libtool":C) 18366 18367 # See if we are running on zsh, and set the options which allow our 18368 # commands through without removal of \ escapes. 18369 if test -n "${ZSH_VERSION+set}" ; then 18370 setopt NO_GLOB_SUBST 18371 fi 18372 18373 cfgfile="${ofile}T" 18374 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18375 $RM "$cfgfile" 18376 18377 cat <<_LT_EOF >> "$cfgfile" 18378#! $SHELL 18379 18380# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18381# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18382# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18383# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18384# 18385# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18386# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18387# Foundation, Inc. 18388# Written by Gordon Matzigkeit, 1996 18389# 18390# This file is part of GNU Libtool. 18391# 18392# GNU Libtool is free software; you can redistribute it and/or 18393# modify it under the terms of the GNU General Public License as 18394# published by the Free Software Foundation; either version 2 of 18395# the License, or (at your option) any later version. 18396# 18397# As a special exception to the GNU General Public License, 18398# if you distribute this file as part of a program or library that 18399# is built using GNU Libtool, you may include this file under the 18400# same distribution terms that you use for the rest of that program. 18401# 18402# GNU Libtool is distributed in the hope that it will be useful, 18403# but WITHOUT ANY WARRANTY; without even the implied warranty of 18404# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18405# GNU General Public License for more details. 18406# 18407# You should have received a copy of the GNU General Public License 18408# along with GNU Libtool; see the file COPYING. If not, a copy 18409# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18410# obtained by writing to the Free Software Foundation, Inc., 18411# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18412 18413 18414# The names of the tagged configurations supported by this script. 18415available_tags="CXX " 18416 18417# ### BEGIN LIBTOOL CONFIG 18418 18419# Which release of libtool.m4 was used? 18420macro_version=$macro_version 18421macro_revision=$macro_revision 18422 18423# Whether or not to build shared libraries. 18424build_libtool_libs=$enable_shared 18425 18426# Whether or not to build static libraries. 18427build_old_libs=$enable_static 18428 18429# What type of objects to build. 18430pic_mode=$pic_mode 18431 18432# Whether or not to optimize for fast installation. 18433fast_install=$enable_fast_install 18434 18435# Shell to use when invoking shell scripts. 18436SHELL=$lt_SHELL 18437 18438# An echo program that protects backslashes. 18439ECHO=$lt_ECHO 18440 18441# The PATH separator for the build system. 18442PATH_SEPARATOR=$lt_PATH_SEPARATOR 18443 18444# The host system. 18445host_alias=$host_alias 18446host=$host 18447host_os=$host_os 18448 18449# The build system. 18450build_alias=$build_alias 18451build=$build 18452build_os=$build_os 18453 18454# A sed program that does not truncate output. 18455SED=$lt_SED 18456 18457# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18458Xsed="\$SED -e 1s/^X//" 18459 18460# A grep program that handles long lines. 18461GREP=$lt_GREP 18462 18463# An ERE matcher. 18464EGREP=$lt_EGREP 18465 18466# A literal string matcher. 18467FGREP=$lt_FGREP 18468 18469# A BSD- or MS-compatible name lister. 18470NM=$lt_NM 18471 18472# Whether we need soft or hard links. 18473LN_S=$lt_LN_S 18474 18475# What is the maximum length of a command? 18476max_cmd_len=$max_cmd_len 18477 18478# Object file suffix (normally "o"). 18479objext=$ac_objext 18480 18481# Executable file suffix (normally ""). 18482exeext=$exeext 18483 18484# whether the shell understands "unset". 18485lt_unset=$lt_unset 18486 18487# turn spaces into newlines. 18488SP2NL=$lt_lt_SP2NL 18489 18490# turn newlines into spaces. 18491NL2SP=$lt_lt_NL2SP 18492 18493# convert \$build file names to \$host format. 18494to_host_file_cmd=$lt_cv_to_host_file_cmd 18495 18496# convert \$build files to toolchain format. 18497to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18498 18499# An object symbol dumper. 18500OBJDUMP=$lt_OBJDUMP 18501 18502# Method to check whether dependent libraries are shared objects. 18503deplibs_check_method=$lt_deplibs_check_method 18504 18505# Command to use when deplibs_check_method = "file_magic". 18506file_magic_cmd=$lt_file_magic_cmd 18507 18508# How to find potential files when deplibs_check_method = "file_magic". 18509file_magic_glob=$lt_file_magic_glob 18510 18511# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18512want_nocaseglob=$lt_want_nocaseglob 18513 18514# DLL creation program. 18515DLLTOOL=$lt_DLLTOOL 18516 18517# Command to associate shared and link libraries. 18518sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18519 18520# The archiver. 18521AR=$lt_AR 18522 18523# Flags to create an archive. 18524AR_FLAGS=$lt_AR_FLAGS 18525 18526# How to feed a file listing to the archiver. 18527archiver_list_spec=$lt_archiver_list_spec 18528 18529# A symbol stripping program. 18530STRIP=$lt_STRIP 18531 18532# Commands used to install an old-style archive. 18533RANLIB=$lt_RANLIB 18534old_postinstall_cmds=$lt_old_postinstall_cmds 18535old_postuninstall_cmds=$lt_old_postuninstall_cmds 18536 18537# Whether to use a lock for old archive extraction. 18538lock_old_archive_extraction=$lock_old_archive_extraction 18539 18540# A C compiler. 18541LTCC=$lt_CC 18542 18543# LTCC compiler flags. 18544LTCFLAGS=$lt_CFLAGS 18545 18546# Take the output of nm and produce a listing of raw symbols and C names. 18547global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18548 18549# Transform the output of nm in a proper C declaration. 18550global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18551 18552# Transform the output of nm in a C name address pair. 18553global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18554 18555# Transform the output of nm in a C name address pair when lib prefix is needed. 18556global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18557 18558# Specify filename containing input files for \$NM. 18559nm_file_list_spec=$lt_nm_file_list_spec 18560 18561# The root where to search for dependent libraries,and in which our libraries should be installed. 18562lt_sysroot=$lt_sysroot 18563 18564# The name of the directory that contains temporary libtool files. 18565objdir=$objdir 18566 18567# Used to examine libraries when file_magic_cmd begins with "file". 18568MAGIC_CMD=$MAGIC_CMD 18569 18570# Must we lock files when doing compilation? 18571need_locks=$lt_need_locks 18572 18573# Manifest tool. 18574MANIFEST_TOOL=$lt_MANIFEST_TOOL 18575 18576# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18577DSYMUTIL=$lt_DSYMUTIL 18578 18579# Tool to change global to local symbols on Mac OS X. 18580NMEDIT=$lt_NMEDIT 18581 18582# Tool to manipulate fat objects and archives on Mac OS X. 18583LIPO=$lt_LIPO 18584 18585# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18586OTOOL=$lt_OTOOL 18587 18588# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18589OTOOL64=$lt_OTOOL64 18590 18591# Old archive suffix (normally "a"). 18592libext=$libext 18593 18594# Shared library suffix (normally ".so"). 18595shrext_cmds=$lt_shrext_cmds 18596 18597# The commands to extract the exported symbol list from a shared archive. 18598extract_expsyms_cmds=$lt_extract_expsyms_cmds 18599 18600# Variables whose values should be saved in libtool wrapper scripts and 18601# restored at link time. 18602variables_saved_for_relink=$lt_variables_saved_for_relink 18603 18604# Do we need the "lib" prefix for modules? 18605need_lib_prefix=$need_lib_prefix 18606 18607# Do we need a version for libraries? 18608need_version=$need_version 18609 18610# Library versioning type. 18611version_type=$version_type 18612 18613# Shared library runtime path variable. 18614runpath_var=$runpath_var 18615 18616# Shared library path variable. 18617shlibpath_var=$shlibpath_var 18618 18619# Is shlibpath searched before the hard-coded library search path? 18620shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18621 18622# Format of library name prefix. 18623libname_spec=$lt_libname_spec 18624 18625# List of archive names. First name is the real one, the rest are links. 18626# The last name is the one that the linker finds with -lNAME 18627library_names_spec=$lt_library_names_spec 18628 18629# The coded name of the library, if different from the real name. 18630soname_spec=$lt_soname_spec 18631 18632# Permission mode override for installation of shared libraries. 18633install_override_mode=$lt_install_override_mode 18634 18635# Command to use after installation of a shared archive. 18636postinstall_cmds=$lt_postinstall_cmds 18637 18638# Command to use after uninstallation of a shared archive. 18639postuninstall_cmds=$lt_postuninstall_cmds 18640 18641# Commands used to finish a libtool library installation in a directory. 18642finish_cmds=$lt_finish_cmds 18643 18644# As "finish_cmds", except a single script fragment to be evaled but 18645# not shown. 18646finish_eval=$lt_finish_eval 18647 18648# Whether we should hardcode library paths into libraries. 18649hardcode_into_libs=$hardcode_into_libs 18650 18651# Compile-time system search path for libraries. 18652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18653 18654# Run-time system search path for libraries. 18655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18656 18657# Whether dlopen is supported. 18658dlopen_support=$enable_dlopen 18659 18660# Whether dlopen of programs is supported. 18661dlopen_self=$enable_dlopen_self 18662 18663# Whether dlopen of statically linked programs is supported. 18664dlopen_self_static=$enable_dlopen_self_static 18665 18666# Commands to strip libraries. 18667old_striplib=$lt_old_striplib 18668striplib=$lt_striplib 18669 18670 18671# The linker used to build libraries. 18672LD=$lt_LD 18673 18674# How to create reloadable object files. 18675reload_flag=$lt_reload_flag 18676reload_cmds=$lt_reload_cmds 18677 18678# Commands used to build an old-style archive. 18679old_archive_cmds=$lt_old_archive_cmds 18680 18681# A language specific compiler. 18682CC=$lt_compiler 18683 18684# Is the compiler the GNU compiler? 18685with_gcc=$GCC 18686 18687# Compiler flag to turn off builtin functions. 18688no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18689 18690# Additional compiler flags for building library objects. 18691pic_flag=$lt_lt_prog_compiler_pic 18692 18693# How to pass a linker flag through the compiler. 18694wl=$lt_lt_prog_compiler_wl 18695 18696# Compiler flag to prevent dynamic linking. 18697link_static_flag=$lt_lt_prog_compiler_static 18698 18699# Does compiler simultaneously support -c and -o options? 18700compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18701 18702# Whether or not to add -lc for building shared libraries. 18703build_libtool_need_lc=$archive_cmds_need_lc 18704 18705# Whether or not to disallow shared libs when runtime libs are static. 18706allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18707 18708# Compiler flag to allow reflexive dlopens. 18709export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18710 18711# Compiler flag to generate shared objects directly from archives. 18712whole_archive_flag_spec=$lt_whole_archive_flag_spec 18713 18714# Whether the compiler copes with passing no objects directly. 18715compiler_needs_object=$lt_compiler_needs_object 18716 18717# Create an old-style archive from a shared archive. 18718old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18719 18720# Create a temporary old-style archive to link instead of a shared archive. 18721old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18722 18723# Commands used to build a shared archive. 18724archive_cmds=$lt_archive_cmds 18725archive_expsym_cmds=$lt_archive_expsym_cmds 18726 18727# Commands used to build a loadable module if different from building 18728# a shared archive. 18729module_cmds=$lt_module_cmds 18730module_expsym_cmds=$lt_module_expsym_cmds 18731 18732# Whether we are building with GNU ld or not. 18733with_gnu_ld=$lt_with_gnu_ld 18734 18735# Flag that allows shared libraries with undefined symbols to be built. 18736allow_undefined_flag=$lt_allow_undefined_flag 18737 18738# Flag that enforces no undefined symbols. 18739no_undefined_flag=$lt_no_undefined_flag 18740 18741# Flag to hardcode \$libdir into a binary during linking. 18742# This must work even if \$libdir does not exist 18743hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18744 18745# Whether we need a single "-rpath" flag with a separated argument. 18746hardcode_libdir_separator=$lt_hardcode_libdir_separator 18747 18748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18749# DIR into the resulting binary. 18750hardcode_direct=$hardcode_direct 18751 18752# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18753# DIR into the resulting binary and the resulting library dependency is 18754# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18755# library is relocated. 18756hardcode_direct_absolute=$hardcode_direct_absolute 18757 18758# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18759# into the resulting binary. 18760hardcode_minus_L=$hardcode_minus_L 18761 18762# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18763# into the resulting binary. 18764hardcode_shlibpath_var=$hardcode_shlibpath_var 18765 18766# Set to "yes" if building a shared library automatically hardcodes DIR 18767# into the library and all subsequent libraries and executables linked 18768# against it. 18769hardcode_automatic=$hardcode_automatic 18770 18771# Set to yes if linker adds runtime paths of dependent libraries 18772# to runtime path list. 18773inherit_rpath=$inherit_rpath 18774 18775# Whether libtool must link a program against all its dependency libraries. 18776link_all_deplibs=$link_all_deplibs 18777 18778# Set to "yes" if exported symbols are required. 18779always_export_symbols=$always_export_symbols 18780 18781# The commands to list exported symbols. 18782export_symbols_cmds=$lt_export_symbols_cmds 18783 18784# Symbols that should not be listed in the preloaded symbols. 18785exclude_expsyms=$lt_exclude_expsyms 18786 18787# Symbols that must always be exported. 18788include_expsyms=$lt_include_expsyms 18789 18790# Commands necessary for linking programs (against libraries) with templates. 18791prelink_cmds=$lt_prelink_cmds 18792 18793# Commands necessary for finishing linking programs. 18794postlink_cmds=$lt_postlink_cmds 18795 18796# Specify filename containing input files. 18797file_list_spec=$lt_file_list_spec 18798 18799# How to hardcode a shared library path into an executable. 18800hardcode_action=$hardcode_action 18801 18802# The directories searched by this compiler when creating a shared library. 18803compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18804 18805# Dependencies to place before and after the objects being linked to 18806# create a shared library. 18807predep_objects=$lt_predep_objects 18808postdep_objects=$lt_postdep_objects 18809predeps=$lt_predeps 18810postdeps=$lt_postdeps 18811 18812# The library search path used internally by the compiler when linking 18813# a shared library. 18814compiler_lib_search_path=$lt_compiler_lib_search_path 18815 18816# ### END LIBTOOL CONFIG 18817 18818_LT_EOF 18819 18820 case $host_os in 18821 aix3*) 18822 cat <<\_LT_EOF >> "$cfgfile" 18823# AIX sometimes has problems with the GCC collect2 program. For some 18824# reason, if we set the COLLECT_NAMES environment variable, the problems 18825# vanish in a puff of smoke. 18826if test "X${COLLECT_NAMES+set}" != Xset; then 18827 COLLECT_NAMES= 18828 export COLLECT_NAMES 18829fi 18830_LT_EOF 18831 ;; 18832 esac 18833 18834 18835ltmain="$ac_aux_dir/ltmain.sh" 18836 18837 18838 # We use sed instead of cat because bash on DJGPP gets confused if 18839 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18840 # text mode, it properly converts lines to CR/LF. This bash problem 18841 # is reportedly fixed, but why not run on old versions too? 18842 sed '$q' "$ltmain" >> "$cfgfile" \ 18843 || (rm -f "$cfgfile"; exit 1) 18844 18845 if test x"$xsi_shell" = xyes; then 18846 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18847func_dirname ()\ 18848{\ 18849\ case ${1} in\ 18850\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18851\ * ) func_dirname_result="${3}" ;;\ 18852\ esac\ 18853} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18854 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18856test 0 -eq $? || _lt_function_replace_fail=: 18857 18858 18859 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18860func_basename ()\ 18861{\ 18862\ func_basename_result="${1##*/}"\ 18863} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18864 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18866test 0 -eq $? || _lt_function_replace_fail=: 18867 18868 18869 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18870func_dirname_and_basename ()\ 18871{\ 18872\ case ${1} in\ 18873\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18874\ * ) func_dirname_result="${3}" ;;\ 18875\ esac\ 18876\ func_basename_result="${1##*/}"\ 18877} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18878 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18880test 0 -eq $? || _lt_function_replace_fail=: 18881 18882 18883 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18884func_stripname ()\ 18885{\ 18886\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18887\ # positional parameters, so assign one to ordinary parameter first.\ 18888\ func_stripname_result=${3}\ 18889\ func_stripname_result=${func_stripname_result#"${1}"}\ 18890\ func_stripname_result=${func_stripname_result%"${2}"}\ 18891} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18892 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18894test 0 -eq $? || _lt_function_replace_fail=: 18895 18896 18897 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18898func_split_long_opt ()\ 18899{\ 18900\ func_split_long_opt_name=${1%%=*}\ 18901\ func_split_long_opt_arg=${1#*=}\ 18902} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18903 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18905test 0 -eq $? || _lt_function_replace_fail=: 18906 18907 18908 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18909func_split_short_opt ()\ 18910{\ 18911\ func_split_short_opt_arg=${1#??}\ 18912\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18913} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18914 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18916test 0 -eq $? || _lt_function_replace_fail=: 18917 18918 18919 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18920func_lo2o ()\ 18921{\ 18922\ case ${1} in\ 18923\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18924\ *) func_lo2o_result=${1} ;;\ 18925\ esac\ 18926} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18927 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18929test 0 -eq $? || _lt_function_replace_fail=: 18930 18931 18932 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18933func_xform ()\ 18934{\ 18935 func_xform_result=${1%.*}.lo\ 18936} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18937 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18939test 0 -eq $? || _lt_function_replace_fail=: 18940 18941 18942 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18943func_arith ()\ 18944{\ 18945 func_arith_result=$(( $* ))\ 18946} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18947 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18949test 0 -eq $? || _lt_function_replace_fail=: 18950 18951 18952 sed -e '/^func_len ()$/,/^} # func_len /c\ 18953func_len ()\ 18954{\ 18955 func_len_result=${#1}\ 18956} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18957 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18959test 0 -eq $? || _lt_function_replace_fail=: 18960 18961fi 18962 18963if test x"$lt_shell_append" = xyes; then 18964 sed -e '/^func_append ()$/,/^} # func_append /c\ 18965func_append ()\ 18966{\ 18967 eval "${1}+=\\${2}"\ 18968} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18969 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18971test 0 -eq $? || _lt_function_replace_fail=: 18972 18973 18974 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18975func_append_quoted ()\ 18976{\ 18977\ func_quote_for_eval "${2}"\ 18978\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18979} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18980 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18982test 0 -eq $? || _lt_function_replace_fail=: 18983 18984 18985 # Save a `func_append' function call where possible by direct use of '+=' 18986 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18987 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18989 test 0 -eq $? || _lt_function_replace_fail=: 18990else 18991 # Save a `func_append' function call even when '+=' is not available 18992 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18993 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18995 test 0 -eq $? || _lt_function_replace_fail=: 18996fi 18997 18998if test x"$_lt_function_replace_fail" = x":"; then 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19000$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19001fi 19002 19003 19004 mv -f "$cfgfile" "$ofile" || 19005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19006 chmod +x "$ofile" 19007 19008 19009 cat <<_LT_EOF >> "$ofile" 19010 19011# ### BEGIN LIBTOOL TAG CONFIG: CXX 19012 19013# The linker used to build libraries. 19014LD=$lt_LD_CXX 19015 19016# How to create reloadable object files. 19017reload_flag=$lt_reload_flag_CXX 19018reload_cmds=$lt_reload_cmds_CXX 19019 19020# Commands used to build an old-style archive. 19021old_archive_cmds=$lt_old_archive_cmds_CXX 19022 19023# A language specific compiler. 19024CC=$lt_compiler_CXX 19025 19026# Is the compiler the GNU compiler? 19027with_gcc=$GCC_CXX 19028 19029# Compiler flag to turn off builtin functions. 19030no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19031 19032# Additional compiler flags for building library objects. 19033pic_flag=$lt_lt_prog_compiler_pic_CXX 19034 19035# How to pass a linker flag through the compiler. 19036wl=$lt_lt_prog_compiler_wl_CXX 19037 19038# Compiler flag to prevent dynamic linking. 19039link_static_flag=$lt_lt_prog_compiler_static_CXX 19040 19041# Does compiler simultaneously support -c and -o options? 19042compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19043 19044# Whether or not to add -lc for building shared libraries. 19045build_libtool_need_lc=$archive_cmds_need_lc_CXX 19046 19047# Whether or not to disallow shared libs when runtime libs are static. 19048allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19049 19050# Compiler flag to allow reflexive dlopens. 19051export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19052 19053# Compiler flag to generate shared objects directly from archives. 19054whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19055 19056# Whether the compiler copes with passing no objects directly. 19057compiler_needs_object=$lt_compiler_needs_object_CXX 19058 19059# Create an old-style archive from a shared archive. 19060old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19061 19062# Create a temporary old-style archive to link instead of a shared archive. 19063old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19064 19065# Commands used to build a shared archive. 19066archive_cmds=$lt_archive_cmds_CXX 19067archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19068 19069# Commands used to build a loadable module if different from building 19070# a shared archive. 19071module_cmds=$lt_module_cmds_CXX 19072module_expsym_cmds=$lt_module_expsym_cmds_CXX 19073 19074# Whether we are building with GNU ld or not. 19075with_gnu_ld=$lt_with_gnu_ld_CXX 19076 19077# Flag that allows shared libraries with undefined symbols to be built. 19078allow_undefined_flag=$lt_allow_undefined_flag_CXX 19079 19080# Flag that enforces no undefined symbols. 19081no_undefined_flag=$lt_no_undefined_flag_CXX 19082 19083# Flag to hardcode \$libdir into a binary during linking. 19084# This must work even if \$libdir does not exist 19085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19086 19087# Whether we need a single "-rpath" flag with a separated argument. 19088hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19089 19090# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19091# DIR into the resulting binary. 19092hardcode_direct=$hardcode_direct_CXX 19093 19094# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19095# DIR into the resulting binary and the resulting library dependency is 19096# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19097# library is relocated. 19098hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19099 19100# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19101# into the resulting binary. 19102hardcode_minus_L=$hardcode_minus_L_CXX 19103 19104# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19105# into the resulting binary. 19106hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19107 19108# Set to "yes" if building a shared library automatically hardcodes DIR 19109# into the library and all subsequent libraries and executables linked 19110# against it. 19111hardcode_automatic=$hardcode_automatic_CXX 19112 19113# Set to yes if linker adds runtime paths of dependent libraries 19114# to runtime path list. 19115inherit_rpath=$inherit_rpath_CXX 19116 19117# Whether libtool must link a program against all its dependency libraries. 19118link_all_deplibs=$link_all_deplibs_CXX 19119 19120# Set to "yes" if exported symbols are required. 19121always_export_symbols=$always_export_symbols_CXX 19122 19123# The commands to list exported symbols. 19124export_symbols_cmds=$lt_export_symbols_cmds_CXX 19125 19126# Symbols that should not be listed in the preloaded symbols. 19127exclude_expsyms=$lt_exclude_expsyms_CXX 19128 19129# Symbols that must always be exported. 19130include_expsyms=$lt_include_expsyms_CXX 19131 19132# Commands necessary for linking programs (against libraries) with templates. 19133prelink_cmds=$lt_prelink_cmds_CXX 19134 19135# Commands necessary for finishing linking programs. 19136postlink_cmds=$lt_postlink_cmds_CXX 19137 19138# Specify filename containing input files. 19139file_list_spec=$lt_file_list_spec_CXX 19140 19141# How to hardcode a shared library path into an executable. 19142hardcode_action=$hardcode_action_CXX 19143 19144# The directories searched by this compiler when creating a shared library. 19145compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19146 19147# Dependencies to place before and after the objects being linked to 19148# create a shared library. 19149predep_objects=$lt_predep_objects_CXX 19150postdep_objects=$lt_postdep_objects_CXX 19151predeps=$lt_predeps_CXX 19152postdeps=$lt_postdeps_CXX 19153 19154# The library search path used internally by the compiler when linking 19155# a shared library. 19156compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19157 19158# ### END LIBTOOL TAG CONFIG: CXX 19159_LT_EOF 19160 19161 ;; 19162 19163 esac 19164done # for ac_tag 19165 19166 19167as_fn_exit 0 19168_ACEOF 19169ac_clean_files=$ac_clean_files_save 19170 19171test $ac_write_fail = 0 || 19172 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19173 19174 19175# configure is writing to config.log, and then calls config.status. 19176# config.status does its own redirection, appending to config.log. 19177# Unfortunately, on DOS this fails, as config.log is still kept open 19178# by configure, so config.status won't be able to write to it; its 19179# output is simply discarded. So we exec the FD to /dev/null, 19180# effectively closing config.log, so it can be properly (re)opened and 19181# appended to by config.status. When coming back to configure, we 19182# need to make the FD available again. 19183if test "$no_create" != yes; then 19184 ac_cs_success=: 19185 ac_config_status_args= 19186 test "$silent" = yes && 19187 ac_config_status_args="$ac_config_status_args --quiet" 19188 exec 5>/dev/null 19189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19190 exec 5>>config.log 19191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19192 # would make configure fail if this is the last instruction. 19193 $ac_cs_success || as_fn_exit 1 19194fi 19195if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19197$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19198fi 19199 19200