1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Icecast 2.4.0-kh15. 4# 5# Report bugs to <karl@kheyes.plus.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: karl@kheyes.plus.com about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='Icecast' 592PACKAGE_TARNAME='icecast' 593PACKAGE_VERSION='2.4.0-kh15' 594PACKAGE_STRING='Icecast 2.4.0-kh15' 595PACKAGE_BUGREPORT='karl@kheyes.plus.com' 596PACKAGE_URL='' 597 598ac_unique_file="src/main.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639KATE_LIBS 640HAVE_KATE 641ICECAST_OPTIONAL 642PROFILE 643DEBUG 644LIBTOOL_DEPS 645XIPH_LDFLAGS 646XIPH_LIBS 647XIPH_CFLAGS 648XIPH_CPPFLAGS 649PKGCONFIG 650CURL_LIBS 651CURL_CFLAGS 652CURL_CONFIG 653PTHREAD_CPPFLAGS 654PTHREAD_CFLAGS 655PTHREAD_LIBS 656PTHREAD_CC 657acx_pthread_config 658SPEEX_LIBS 659SPEEX_LDFLAGS 660SPEEX_CFLAGS 661SPEEX 662THEORA_LIBS 663THEORA_LDFLAGS 664THEORA_CFLAGS 665THEORA 666VORBISENC_LIBS 667VORBISFILE_LIBS 668VORBIS_LIBS 669VORBIS_LDFLAGS 670VORBIS_CFLAGS 671VORBIS_PREFIX 672OGG_LDFLAGS 673OGG_CFLAGS 674OGG_LIBS 675OGG_PREFIX 676XSLTCONFIG 677ICY_CHARSET 678WIN32_FALSE 679WIN32_TRUE 680CXXCPP 681am__fastdepCXX_FALSE 682am__fastdepCXX_TRUE 683CXXDEPMODE 684ac_ct_CXX 685CXXFLAGS 686CXX 687CPP 688LT_SYS_LIBRARY_PATH 689OTOOL64 690OTOOL 691LIPO 692NMEDIT 693DSYMUTIL 694MANIFEST_TOOL 695RANLIB 696ac_ct_AR 697AR 698DLLTOOL 699OBJDUMP 700LN_S 701NM 702ac_ct_DUMPBIN 703DUMPBIN 704LD 705FGREP 706EGREP 707GREP 708SED 709am__fastdepCC_FALSE 710am__fastdepCC_TRUE 711CCDEPMODE 712am__nodep 713AMDEPBACKSLASH 714AMDEP_FALSE 715AMDEP_TRUE 716am__include 717DEPDIR 718OBJEXT 719EXEEXT 720ac_ct_CC 721CPPFLAGS 722LDFLAGS 723CFLAGS 724CC 725host_os 726host_vendor 727host_cpu 728host 729build_os 730build_vendor 731build_cpu 732build 733LIBTOOL 734MAINT 735MAINTAINER_MODE_FALSE 736MAINTAINER_MODE_TRUE 737AM_BACKSLASH 738AM_DEFAULT_VERBOSITY 739AM_DEFAULT_V 740AM_V 741am__untar 742am__tar 743AMTAR 744am__leading_dot 745SET_MAKE 746AWK 747mkdir_p 748MKDIR_P 749INSTALL_STRIP_PROGRAM 750STRIP 751install_sh 752MAKEINFO 753AUTOHEADER 754AUTOMAKE 755AUTOCONF 756ACLOCAL 757VERSION 758PACKAGE 759CYGPATH_W 760am__isrc 761INSTALL_DATA 762INSTALL_SCRIPT 763INSTALL_PROGRAM 764target_alias 765host_alias 766build_alias 767LIBS 768ECHO_T 769ECHO_N 770ECHO_C 771DEFS 772mandir 773localedir 774libdir 775psdir 776pdfdir 777dvidir 778htmldir 779infodir 780docdir 781oldincludedir 782includedir 783localstatedir 784sharedstatedir 785sysconfdir 786datadir 787datarootdir 788libexecdir 789sbindir 790bindir 791program_transform_name 792prefix 793exec_prefix 794PACKAGE_URL 795PACKAGE_BUGREPORT 796PACKAGE_STRING 797PACKAGE_VERSION 798PACKAGE_TARNAME 799PACKAGE_NAME 800PATH_SEPARATOR 801SHELL 802am__quote' 803ac_subst_files='' 804ac_user_opts=' 805enable_option_checking 806enable_silent_rules 807enable_maintainer_mode 808enable_shared 809enable_static 810with_pic 811enable_fast_install 812with_aix_soname 813enable_dependency_tracking 814with_gnu_ld 815with_sysroot 816enable_libtool_lock 817enable_largefile 818with_xslt_config 819with_ogg 820with_vorbis 821with_theora 822with_speex 823with_curl 824with_curl_config 825with_kate 826enable_yp 827with_openssl 828' 829 ac_precious_vars='build_alias 830host_alias 831target_alias 832CC 833CFLAGS 834LDFLAGS 835LIBS 836CPPFLAGS 837LT_SYS_LIBRARY_PATH 838CPP 839CXX 840CXXFLAGS 841CCC 842CXXCPP 843ICY_CHARSET 844XSLTCONFIG 845OGG_PREFIX 846VORBIS_PREFIX 847THEORA 848SPEEX' 849 850 851# Initialize some variables set by options. 852ac_init_help= 853ac_init_version=false 854ac_unrecognized_opts= 855ac_unrecognized_sep= 856# The variables have the same names as the options, with 857# dashes changed to underlines. 858cache_file=/dev/null 859exec_prefix=NONE 860no_create= 861no_recursion= 862prefix=NONE 863program_prefix=NONE 864program_suffix=NONE 865program_transform_name=s,x,x, 866silent= 867site= 868srcdir= 869verbose= 870x_includes=NONE 871x_libraries=NONE 872 873# Installation directory options. 874# These are left unexpanded so users can "make install exec_prefix=/foo" 875# and all the variables that are supposed to be based on exec_prefix 876# by default will actually change. 877# Use braces instead of parens because sh, perl, etc. also accept them. 878# (The list follows the same order as the GNU Coding Standards.) 879bindir='${exec_prefix}/bin' 880sbindir='${exec_prefix}/sbin' 881libexecdir='${exec_prefix}/libexec' 882datarootdir='${prefix}/share' 883datadir='${datarootdir}' 884sysconfdir='${prefix}/etc' 885sharedstatedir='${prefix}/com' 886localstatedir='${prefix}/var' 887includedir='${prefix}/include' 888oldincludedir='/usr/include' 889docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 890infodir='${datarootdir}/info' 891htmldir='${docdir}' 892dvidir='${docdir}' 893pdfdir='${docdir}' 894psdir='${docdir}' 895libdir='${exec_prefix}/lib' 896localedir='${datarootdir}/locale' 897mandir='${datarootdir}/man' 898 899ac_prev= 900ac_dashdash= 901for ac_option 902do 903 # If the previous option needs an argument, assign it. 904 if test -n "$ac_prev"; then 905 eval $ac_prev=\$ac_option 906 ac_prev= 907 continue 908 fi 909 910 case $ac_option in 911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 912 *=) ac_optarg= ;; 913 *) ac_optarg=yes ;; 914 esac 915 916 # Accept the important Cygnus configure options, so we can diagnose typos. 917 918 case $ac_dashdash$ac_option in 919 --) 920 ac_dashdash=yes ;; 921 922 -bindir | --bindir | --bindi | --bind | --bin | --bi) 923 ac_prev=bindir ;; 924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 925 bindir=$ac_optarg ;; 926 927 -build | --build | --buil | --bui | --bu) 928 ac_prev=build_alias ;; 929 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 930 build_alias=$ac_optarg ;; 931 932 -cache-file | --cache-file | --cache-fil | --cache-fi \ 933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 934 ac_prev=cache_file ;; 935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 937 cache_file=$ac_optarg ;; 938 939 --config-cache | -C) 940 cache_file=config.cache ;; 941 942 -datadir | --datadir | --datadi | --datad) 943 ac_prev=datadir ;; 944 -datadir=* | --datadir=* | --datadi=* | --datad=*) 945 datadir=$ac_optarg ;; 946 947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 948 | --dataroo | --dataro | --datar) 949 ac_prev=datarootdir ;; 950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 952 datarootdir=$ac_optarg ;; 953 954 -disable-* | --disable-*) 955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 956 # Reject names that are not valid shell variable names. 957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 958 as_fn_error $? "invalid feature name: $ac_useropt" 959 ac_useropt_orig=$ac_useropt 960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 961 case $ac_user_opts in 962 *" 963"enable_$ac_useropt" 964"*) ;; 965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 966 ac_unrecognized_sep=', ';; 967 esac 968 eval enable_$ac_useropt=no ;; 969 970 -docdir | --docdir | --docdi | --doc | --do) 971 ac_prev=docdir ;; 972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 973 docdir=$ac_optarg ;; 974 975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 976 ac_prev=dvidir ;; 977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 978 dvidir=$ac_optarg ;; 979 980 -enable-* | --enable-*) 981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 982 # Reject names that are not valid shell variable names. 983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 984 as_fn_error $? "invalid feature name: $ac_useropt" 985 ac_useropt_orig=$ac_useropt 986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 987 case $ac_user_opts in 988 *" 989"enable_$ac_useropt" 990"*) ;; 991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 992 ac_unrecognized_sep=', ';; 993 esac 994 eval enable_$ac_useropt=\$ac_optarg ;; 995 996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 998 | --exec | --exe | --ex) 999 ac_prev=exec_prefix ;; 1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1002 | --exec=* | --exe=* | --ex=*) 1003 exec_prefix=$ac_optarg ;; 1004 1005 -gas | --gas | --ga | --g) 1006 # Obsolete; use --with-gas. 1007 with_gas=yes ;; 1008 1009 -help | --help | --hel | --he | -h) 1010 ac_init_help=long ;; 1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1012 ac_init_help=recursive ;; 1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1014 ac_init_help=short ;; 1015 1016 -host | --host | --hos | --ho) 1017 ac_prev=host_alias ;; 1018 -host=* | --host=* | --hos=* | --ho=*) 1019 host_alias=$ac_optarg ;; 1020 1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1022 ac_prev=htmldir ;; 1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1024 | --ht=*) 1025 htmldir=$ac_optarg ;; 1026 1027 -includedir | --includedir | --includedi | --included | --include \ 1028 | --includ | --inclu | --incl | --inc) 1029 ac_prev=includedir ;; 1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1031 | --includ=* | --inclu=* | --incl=* | --inc=*) 1032 includedir=$ac_optarg ;; 1033 1034 -infodir | --infodir | --infodi | --infod | --info | --inf) 1035 ac_prev=infodir ;; 1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1037 infodir=$ac_optarg ;; 1038 1039 -libdir | --libdir | --libdi | --libd) 1040 ac_prev=libdir ;; 1041 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1042 libdir=$ac_optarg ;; 1043 1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1045 | --libexe | --libex | --libe) 1046 ac_prev=libexecdir ;; 1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1048 | --libexe=* | --libex=* | --libe=*) 1049 libexecdir=$ac_optarg ;; 1050 1051 -localedir | --localedir | --localedi | --localed | --locale) 1052 ac_prev=localedir ;; 1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1054 localedir=$ac_optarg ;; 1055 1056 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1057 | --localstate | --localstat | --localsta | --localst | --locals) 1058 ac_prev=localstatedir ;; 1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1061 localstatedir=$ac_optarg ;; 1062 1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1064 ac_prev=mandir ;; 1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1066 mandir=$ac_optarg ;; 1067 1068 -nfp | --nfp | --nf) 1069 # Obsolete; use --without-fp. 1070 with_fp=no ;; 1071 1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1073 | --no-cr | --no-c | -n) 1074 no_create=yes ;; 1075 1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1078 no_recursion=yes ;; 1079 1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1082 | --oldin | --oldi | --old | --ol | --o) 1083 ac_prev=oldincludedir ;; 1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1087 oldincludedir=$ac_optarg ;; 1088 1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1090 ac_prev=prefix ;; 1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1092 prefix=$ac_optarg ;; 1093 1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1095 | --program-pre | --program-pr | --program-p) 1096 ac_prev=program_prefix ;; 1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1099 program_prefix=$ac_optarg ;; 1100 1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1102 | --program-suf | --program-su | --program-s) 1103 ac_prev=program_suffix ;; 1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1106 program_suffix=$ac_optarg ;; 1107 1108 -program-transform-name | --program-transform-name \ 1109 | --program-transform-nam | --program-transform-na \ 1110 | --program-transform-n | --program-transform- \ 1111 | --program-transform | --program-transfor \ 1112 | --program-transfo | --program-transf \ 1113 | --program-trans | --program-tran \ 1114 | --progr-tra | --program-tr | --program-t) 1115 ac_prev=program_transform_name ;; 1116 -program-transform-name=* | --program-transform-name=* \ 1117 | --program-transform-nam=* | --program-transform-na=* \ 1118 | --program-transform-n=* | --program-transform-=* \ 1119 | --program-transform=* | --program-transfor=* \ 1120 | --program-transfo=* | --program-transf=* \ 1121 | --program-trans=* | --program-tran=* \ 1122 | --progr-tra=* | --program-tr=* | --program-t=*) 1123 program_transform_name=$ac_optarg ;; 1124 1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1126 ac_prev=pdfdir ;; 1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1128 pdfdir=$ac_optarg ;; 1129 1130 -psdir | --psdir | --psdi | --psd | --ps) 1131 ac_prev=psdir ;; 1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1133 psdir=$ac_optarg ;; 1134 1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1136 | -silent | --silent | --silen | --sile | --sil) 1137 silent=yes ;; 1138 1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1140 ac_prev=sbindir ;; 1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1142 | --sbi=* | --sb=*) 1143 sbindir=$ac_optarg ;; 1144 1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1147 | --sharedst | --shareds | --shared | --share | --shar \ 1148 | --sha | --sh) 1149 ac_prev=sharedstatedir ;; 1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1153 | --sha=* | --sh=*) 1154 sharedstatedir=$ac_optarg ;; 1155 1156 -site | --site | --sit) 1157 ac_prev=site ;; 1158 -site=* | --site=* | --sit=*) 1159 site=$ac_optarg ;; 1160 1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1162 ac_prev=srcdir ;; 1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1164 srcdir=$ac_optarg ;; 1165 1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1167 | --syscon | --sysco | --sysc | --sys | --sy) 1168 ac_prev=sysconfdir ;; 1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1171 sysconfdir=$ac_optarg ;; 1172 1173 -target | --target | --targe | --targ | --tar | --ta | --t) 1174 ac_prev=target_alias ;; 1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1176 target_alias=$ac_optarg ;; 1177 1178 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1179 verbose=yes ;; 1180 1181 -version | --version | --versio | --versi | --vers | -V) 1182 ac_init_version=: ;; 1183 1184 -with-* | --with-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid package name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"with_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=\$ac_optarg ;; 1199 1200 -without-* | --without-*) 1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1202 # Reject names that are not valid shell variable names. 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1204 as_fn_error $? "invalid package name: $ac_useropt" 1205 ac_useropt_orig=$ac_useropt 1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1207 case $ac_user_opts in 1208 *" 1209"with_$ac_useropt" 1210"*) ;; 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1212 ac_unrecognized_sep=', ';; 1213 esac 1214 eval with_$ac_useropt=no ;; 1215 1216 --x) 1217 # Obsolete; use --with-x. 1218 with_x=yes ;; 1219 1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1221 | --x-incl | --x-inc | --x-in | --x-i) 1222 ac_prev=x_includes ;; 1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1225 x_includes=$ac_optarg ;; 1226 1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1229 ac_prev=x_libraries ;; 1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1232 x_libraries=$ac_optarg ;; 1233 1234 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1235Try \`$0 --help' for more information" 1236 ;; 1237 1238 *=*) 1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1240 # Reject names that are not valid shell variable names. 1241 case $ac_envvar in #( 1242 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1244 esac 1245 eval $ac_envvar=\$ac_optarg 1246 export $ac_envvar ;; 1247 1248 *) 1249 # FIXME: should be removed in autoconf 3.0. 1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1254 ;; 1255 1256 esac 1257done 1258 1259if test -n "$ac_prev"; then 1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1261 as_fn_error $? "missing argument to $ac_option" 1262fi 1263 1264if test -n "$ac_unrecognized_opts"; then 1265 case $enable_option_checking in 1266 no) ;; 1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1269 esac 1270fi 1271 1272# Check all directory arguments for consistency. 1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1274 datadir sysconfdir sharedstatedir localstatedir includedir \ 1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1276 libdir localedir mandir 1277do 1278 eval ac_val=\$$ac_var 1279 # Remove trailing slashes. 1280 case $ac_val in 1281 */ ) 1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1283 eval $ac_var=\$ac_val;; 1284 esac 1285 # Be sure to have absolute directory names. 1286 case $ac_val in 1287 [\\/$]* | ?:[\\/]* ) continue;; 1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1289 esac 1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1291done 1292 1293# There might be people who depend on the old broken behavior: `$host' 1294# used to hold the argument of --host etc. 1295# FIXME: To remove some day. 1296build=$build_alias 1297host=$host_alias 1298target=$target_alias 1299 1300# FIXME: To remove some day. 1301if test "x$host_alias" != x; then 1302 if test "x$build_alias" = x; then 1303 cross_compiling=maybe 1304 elif test "x$build_alias" != "x$host_alias"; then 1305 cross_compiling=yes 1306 fi 1307fi 1308 1309ac_tool_prefix= 1310test -n "$host_alias" && ac_tool_prefix=$host_alias- 1311 1312test "$silent" = yes && exec 6>/dev/null 1313 1314 1315ac_pwd=`pwd` && test -n "$ac_pwd" && 1316ac_ls_di=`ls -di .` && 1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1318 as_fn_error $? "working directory cannot be determined" 1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1320 as_fn_error $? "pwd does not report name of working directory" 1321 1322 1323# Find the source files, if location was not specified. 1324if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$as_myself" || 1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$as_myself" : 'X\(//\)[^/]' \| \ 1330 X"$as_myself" : 'X\(//\)$' \| \ 1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1332$as_echo X"$as_myself" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354else 1355 ac_srcdir_defaulted=no 1356fi 1357if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1360fi 1361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1362ac_abs_confdir=`( 1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1364 pwd)` 1365# When building in place, set srcdir=. 1366if test "$ac_abs_confdir" = "$ac_pwd"; then 1367 srcdir=. 1368fi 1369# Remove unnecessary trailing slashes from srcdir. 1370# Double slashes in file names in object file debugging info 1371# mess up M-x gdb in Emacs. 1372case $srcdir in 1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1374esac 1375for ac_var in $ac_precious_vars; do 1376 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_env_${ac_var}_value=\$${ac_var} 1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1380done 1381 1382# 1383# Report the --help message. 1384# 1385if test "$ac_init_help" = "long"; then 1386 # Omit some internal or obsolete options to make the list less imposing. 1387 # This message is too long to be a string in the A/UX 3.1 sh. 1388 cat <<_ACEOF 1389\`configure' configures Icecast 2.4.0-kh15 to adapt to many kinds of systems. 1390 1391Usage: $0 [OPTION]... [VAR=VALUE]... 1392 1393To assign environment variables (e.g., CC, CFLAGS...), specify them as 1394VAR=VALUE. See below for descriptions of some of the useful variables. 1395 1396Defaults for the options are specified in brackets. 1397 1398Configuration: 1399 -h, --help display this help and exit 1400 --help=short display options specific to this package 1401 --help=recursive display the short help of all the included packages 1402 -V, --version display version information and exit 1403 -q, --quiet, --silent do not print \`checking ...' messages 1404 --cache-file=FILE cache test results in FILE [disabled] 1405 -C, --config-cache alias for \`--cache-file=config.cache' 1406 -n, --no-create do not create output files 1407 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1408 1409Installation directories: 1410 --prefix=PREFIX install architecture-independent files in PREFIX 1411 [$ac_default_prefix] 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1413 [PREFIX] 1414 1415By default, \`make install' will install all the files in 1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1417an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1418for instance \`--prefix=\$HOME'. 1419 1420For better control, use the options below. 1421 1422Fine tuning of the installation directories: 1423 --bindir=DIR user executables [EPREFIX/bin] 1424 --sbindir=DIR system admin executables [EPREFIX/sbin] 1425 --libexecdir=DIR program executables [EPREFIX/libexec] 1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1429 --libdir=DIR object code libraries [EPREFIX/lib] 1430 --includedir=DIR C header files [PREFIX/include] 1431 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1434 --infodir=DIR info documentation [DATAROOTDIR/info] 1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1436 --mandir=DIR man documentation [DATAROOTDIR/man] 1437 --docdir=DIR documentation root [DATAROOTDIR/doc/icecast] 1438 --htmldir=DIR html documentation [DOCDIR] 1439 --dvidir=DIR dvi documentation [DOCDIR] 1440 --pdfdir=DIR pdf documentation [DOCDIR] 1441 --psdir=DIR ps documentation [DOCDIR] 1442_ACEOF 1443 1444 cat <<\_ACEOF 1445 1446Program names: 1447 --program-prefix=PREFIX prepend PREFIX to installed program names 1448 --program-suffix=SUFFIX append SUFFIX to installed program names 1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1450 1451System types: 1452 --build=BUILD configure for building on BUILD [guessed] 1453 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1454_ACEOF 1455fi 1456 1457if test -n "$ac_init_help"; then 1458 case $ac_init_help in 1459 short | recursive ) echo "Configuration of Icecast 2.4.0-kh15:";; 1460 esac 1461 cat <<\_ACEOF 1462 1463Optional Features: 1464 --disable-option-checking ignore unrecognized --enable/--with options 1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1467 --enable-silent-rules less verbose build output (undo: "make V=1") 1468 --disable-silent-rules verbose build output (undo: "make V=0") 1469 --enable-maintainer-mode 1470 enable make rules and dependencies not useful (and 1471 sometimes confusing) to the casual installer 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-static[=PKGS] build static libraries [default=yes] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --enable-dependency-tracking 1477 do not reject slow dependency extractors 1478 --disable-dependency-tracking 1479 speeds up one-time build 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --disable-largefile omit support for large files 1482 --disable-yp disable YP directory support 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-aix-soname=aix|svr4|both 1490 shared library versioning (aka "SONAME") variant to 1491 provide on AIX, [default=aix]. 1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1494 compiler's sysroot if not specified). 1495 --with-xslt-config=PATH use xslt-config in PATH to find libxslt 1496 --with-ogg=PREFIX Prefix where libogg is installed (optional) 1497 --with-vorbis=PREFIX Prefix where libvorbis is installed (optional) 1498 --with-theora=PREFIX Prefix where libtheora is installed (optional) 1499 --with-speex=PREFIX Prefix where libspeex is installed (optional) 1500 --with-curl=PFX Prefix where libcurl is installed (optional) 1501 --with-curl-config=curl-config 1502 Use curl-config to find libcurl 1503 --with-openssl=PFX Prefix where openssl is installed (optional) 1504 1505Some influential environment variables: 1506 CC C compiler command 1507 CFLAGS C compiler flags 1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1509 nonstandard directory <lib dir> 1510 LIBS libraries to pass to the linker, e.g. -l<library> 1511 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1512 you have headers in a nonstandard directory <include dir> 1513 LT_SYS_LIBRARY_PATH 1514 User-defined run-time library search path. 1515 CPP C preprocessor 1516 CXX C++ compiler command 1517 CXXFLAGS C++ compiler flags 1518 CXXCPP C++ preprocessor 1519 ICY_CHARSET Character set used for ICY metadata, default is UTF8 1520 XSLTCONFIG XSLT configuration program 1521 OGG_PREFIX path to ogg installation 1522 VORBIS_PREFIX 1523 path to vorbis installation 1524 THEORA path to theora installation 1525 SPEEX path to speex installation 1526 1527Use these variables to override the choices made by `configure' or to help 1528it to find libraries and programs with nonstandard names/locations. 1529 1530Report bugs to <karl@kheyes.plus.com>. 1531_ACEOF 1532ac_status=$? 1533fi 1534 1535if test "$ac_init_help" = "recursive"; then 1536 # If there are subdirs, report their specific --help. 1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1538 test -d "$ac_dir" || 1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1540 continue 1541 ac_builddir=. 1542 1543case "$ac_dir" in 1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545*) 1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1547 # A ".." for each directory in $ac_dir_suffix. 1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1549 case $ac_top_builddir_sub in 1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1552 esac ;; 1553esac 1554ac_abs_top_builddir=$ac_pwd 1555ac_abs_builddir=$ac_pwd$ac_dir_suffix 1556# for backward compatibility: 1557ac_top_builddir=$ac_top_build_prefix 1558 1559case $srcdir in 1560 .) # We are building in place. 1561 ac_srcdir=. 1562 ac_top_srcdir=$ac_top_builddir_sub 1563 ac_abs_top_srcdir=$ac_pwd ;; 1564 [\\/]* | ?:[\\/]* ) # Absolute name. 1565 ac_srcdir=$srcdir$ac_dir_suffix; 1566 ac_top_srcdir=$srcdir 1567 ac_abs_top_srcdir=$srcdir ;; 1568 *) # Relative name. 1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1570 ac_top_srcdir=$ac_top_build_prefix$srcdir 1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1572esac 1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1574 1575 cd "$ac_dir" || { ac_status=$?; continue; } 1576 # Check for guested configure. 1577 if test -f "$ac_srcdir/configure.gnu"; then 1578 echo && 1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1580 elif test -f "$ac_srcdir/configure"; then 1581 echo && 1582 $SHELL "$ac_srcdir/configure" --help=recursive 1583 else 1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1585 fi || ac_status=$? 1586 cd "$ac_pwd" || { ac_status=$?; break; } 1587 done 1588fi 1589 1590test -n "$ac_init_help" && exit $ac_status 1591if $ac_init_version; then 1592 cat <<\_ACEOF 1593Icecast configure 2.4.0-kh15 1594generated by GNU Autoconf 2.69 1595 1596Copyright (C) 2012 Free Software Foundation, Inc. 1597This configure script is free software; the Free Software Foundation 1598gives unlimited permission to copy, distribute and modify it. 1599_ACEOF 1600 exit 1601fi 1602 1603## ------------------------ ## 1604## Autoconf initialization. ## 1605## ------------------------ ## 1606 1607# ac_fn_c_try_compile LINENO 1608# -------------------------- 1609# Try to compile conftest.$ac_ext, and return whether this succeeded. 1610ac_fn_c_try_compile () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 rm -f conftest.$ac_objext 1614 if { { ac_try="$ac_compile" 1615case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618esac 1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620$as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_compile") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } && { 1630 test -z "$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 } && test -s conftest.$ac_objext; then : 1633 ac_retval=0 1634else 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=1 1639fi 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_compile 1644 1645# ac_fn_c_try_link LINENO 1646# ----------------------- 1647# Try to link conftest.$ac_ext, and return whether this succeeded. 1648ac_fn_c_try_link () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 rm -f conftest.$ac_objext conftest$ac_exeext 1652 if { { ac_try="$ac_link" 1653case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_link") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { 1668 test -z "$ac_c_werror_flag" || 1669 test ! -s conftest.err 1670 } && test -s conftest$ac_exeext && { 1671 test "$cross_compiling" = yes || 1672 test -x conftest$ac_exeext 1673 }; then : 1674 ac_retval=0 1675else 1676 $as_echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680fi 1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1683 # interfere with the next link command; also delete a directory that is 1684 # left behind by Apple's compiler. We do this before executing the actions. 1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 as_fn_set_status $ac_retval 1688 1689} # ac_fn_c_try_link 1690 1691# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1692# ------------------------------------------------------- 1693# Tests whether HEADER exists and can be compiled using the include files in 1694# INCLUDES, setting the cache variable VAR accordingly. 1695ac_fn_c_check_header_compile () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699$as_echo_n "checking for $2... " >&6; } 1700if eval \${$3+:} false; then : 1701 $as_echo_n "(cached) " >&6 1702else 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705$4 1706#include <$2> 1707_ACEOF 1708if ac_fn_c_try_compile "$LINENO"; then : 1709 eval "$3=yes" 1710else 1711 eval "$3=no" 1712fi 1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1714fi 1715eval ac_res=\$$3 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717$as_echo "$ac_res" >&6; } 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 1720} # ac_fn_c_check_header_compile 1721 1722# ac_fn_c_try_cpp LINENO 1723# ---------------------- 1724# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1725ac_fn_c_try_cpp () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 if { { ac_try="$ac_cpp conftest.$ac_ext" 1729case "(($ac_try" in 1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1731 *) ac_try_echo=$ac_try;; 1732esac 1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1734$as_echo "$ac_try_echo"; } >&5 1735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1736 ac_status=$? 1737 if test -s conftest.err; then 1738 grep -v '^ *+' conftest.err >conftest.er1 1739 cat conftest.er1 >&5 1740 mv -f conftest.er1 conftest.err 1741 fi 1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743 test $ac_status = 0; } > conftest.i && { 1744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1745 test ! -s conftest.err 1746 }; then : 1747 ac_retval=0 1748else 1749 $as_echo "$as_me: failed program was:" >&5 1750sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=1 1753fi 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755 as_fn_set_status $ac_retval 1756 1757} # ac_fn_c_try_cpp 1758 1759# ac_fn_c_try_run LINENO 1760# ---------------------- 1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1762# that executables *can* be run. 1763ac_fn_c_try_run () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 if { { ac_try="$ac_link" 1767case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772$as_echo "$ac_try_echo"; } >&5 1773 (eval "$ac_link") 2>&5 1774 ac_status=$? 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1777 { { case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_try") 2>&5 1784 ac_status=$? 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; }; }; then : 1787 ac_retval=0 1788else 1789 $as_echo "$as_me: program exited with status $ac_status" >&5 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=$ac_status 1794fi 1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 as_fn_set_status $ac_retval 1798 1799} # ac_fn_c_try_run 1800 1801# ac_fn_c_check_func LINENO FUNC VAR 1802# ---------------------------------- 1803# Tests whether FUNC exists, setting the cache variable VAR accordingly 1804ac_fn_c_check_func () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1808$as_echo_n "checking for $2... " >&6; } 1809if eval \${$3+:} false; then : 1810 $as_echo_n "(cached) " >&6 1811else 1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813/* end confdefs.h. */ 1814/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1815 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1816#define $2 innocuous_$2 1817 1818/* System header to define __stub macros and hopefully few prototypes, 1819 which can conflict with char $2 (); below. 1820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1821 <limits.h> exists even on freestanding compilers. */ 1822 1823#ifdef __STDC__ 1824# include <limits.h> 1825#else 1826# include <assert.h> 1827#endif 1828 1829#undef $2 1830 1831/* Override any GCC internal prototype to avoid an error. 1832 Use char because int might match the return type of a GCC 1833 builtin and then its argument prototype would still apply. */ 1834#ifdef __cplusplus 1835extern "C" 1836#endif 1837char $2 (); 1838/* The GNU C library defines this for functions which it implements 1839 to always fail with ENOSYS. Some functions are actually named 1840 something starting with __ and the normal name is an alias. */ 1841#if defined __stub_$2 || defined __stub___$2 1842choke me 1843#endif 1844 1845int 1846main () 1847{ 1848return $2 (); 1849 ; 1850 return 0; 1851} 1852_ACEOF 1853if ac_fn_c_try_link "$LINENO"; then : 1854 eval "$3=yes" 1855else 1856 eval "$3=no" 1857fi 1858rm -f core conftest.err conftest.$ac_objext \ 1859 conftest$ac_exeext conftest.$ac_ext 1860fi 1861eval ac_res=\$$3 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1863$as_echo "$ac_res" >&6; } 1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1865 1866} # ac_fn_c_check_func 1867 1868# ac_fn_cxx_try_compile LINENO 1869# ---------------------------- 1870# Try to compile conftest.$ac_ext, and return whether this succeeded. 1871ac_fn_cxx_try_compile () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 rm -f conftest.$ac_objext 1875 if { { ac_try="$ac_compile" 1876case "(($ac_try" in 1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1878 *) ac_try_echo=$ac_try;; 1879esac 1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1881$as_echo "$ac_try_echo"; } >&5 1882 (eval "$ac_compile") 2>conftest.err 1883 ac_status=$? 1884 if test -s conftest.err; then 1885 grep -v '^ *+' conftest.err >conftest.er1 1886 cat conftest.er1 >&5 1887 mv -f conftest.er1 conftest.err 1888 fi 1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1890 test $ac_status = 0; } && { 1891 test -z "$ac_cxx_werror_flag" || 1892 test ! -s conftest.err 1893 } && test -s conftest.$ac_objext; then : 1894 ac_retval=0 1895else 1896 $as_echo "$as_me: failed program was:" >&5 1897sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=1 1900fi 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 as_fn_set_status $ac_retval 1903 1904} # ac_fn_cxx_try_compile 1905 1906# ac_fn_cxx_try_cpp LINENO 1907# ------------------------ 1908# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1909ac_fn_cxx_try_cpp () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 if { { ac_try="$ac_cpp conftest.$ac_ext" 1913case "(($ac_try" in 1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1915 *) ac_try_echo=$ac_try;; 1916esac 1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1918$as_echo "$ac_try_echo"; } >&5 1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1920 ac_status=$? 1921 if test -s conftest.err; then 1922 grep -v '^ *+' conftest.err >conftest.er1 1923 cat conftest.er1 >&5 1924 mv -f conftest.er1 conftest.err 1925 fi 1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1927 test $ac_status = 0; } > conftest.i && { 1928 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1929 test ! -s conftest.err 1930 }; then : 1931 ac_retval=0 1932else 1933 $as_echo "$as_me: failed program was:" >&5 1934sed 's/^/| /' conftest.$ac_ext >&5 1935 1936 ac_retval=1 1937fi 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 as_fn_set_status $ac_retval 1940 1941} # ac_fn_cxx_try_cpp 1942 1943# ac_fn_cxx_try_link LINENO 1944# ------------------------- 1945# Try to link conftest.$ac_ext, and return whether this succeeded. 1946ac_fn_cxx_try_link () 1947{ 1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1949 rm -f conftest.$ac_objext conftest$ac_exeext 1950 if { { ac_try="$ac_link" 1951case "(($ac_try" in 1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1953 *) ac_try_echo=$ac_try;; 1954esac 1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1956$as_echo "$ac_try_echo"; } >&5 1957 (eval "$ac_link") 2>conftest.err 1958 ac_status=$? 1959 if test -s conftest.err; then 1960 grep -v '^ *+' conftest.err >conftest.er1 1961 cat conftest.er1 >&5 1962 mv -f conftest.er1 conftest.err 1963 fi 1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1965 test $ac_status = 0; } && { 1966 test -z "$ac_cxx_werror_flag" || 1967 test ! -s conftest.err 1968 } && test -s conftest$ac_exeext && { 1969 test "$cross_compiling" = yes || 1970 test -x conftest$ac_exeext 1971 }; then : 1972 ac_retval=0 1973else 1974 $as_echo "$as_me: failed program was:" >&5 1975sed 's/^/| /' conftest.$ac_ext >&5 1976 1977 ac_retval=1 1978fi 1979 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1980 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1981 # interfere with the next link command; also delete a directory that is 1982 # left behind by Apple's compiler. We do this before executing the actions. 1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 as_fn_set_status $ac_retval 1986 1987} # ac_fn_cxx_try_link 1988 1989# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1990# ------------------------------------------------------- 1991# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1992# the include files in INCLUDES and setting the cache variable VAR 1993# accordingly. 1994ac_fn_c_check_header_mongrel () 1995{ 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 if eval \${$3+:} false; then : 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1999$as_echo_n "checking for $2... " >&6; } 2000if eval \${$3+:} false; then : 2001 $as_echo_n "(cached) " >&6 2002fi 2003eval ac_res=\$$3 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2005$as_echo "$ac_res" >&6; } 2006else 2007 # Is the header compilable? 2008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2009$as_echo_n "checking $2 usability... " >&6; } 2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013#include <$2> 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 ac_header_compiler=yes 2017else 2018 ac_header_compiler=no 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2022$as_echo "$ac_header_compiler" >&6; } 2023 2024# Is the header present? 2025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2026$as_echo_n "checking $2 presence... " >&6; } 2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029#include <$2> 2030_ACEOF 2031if ac_fn_c_try_cpp "$LINENO"; then : 2032 ac_header_preproc=yes 2033else 2034 ac_header_preproc=no 2035fi 2036rm -f conftest.err conftest.i conftest.$ac_ext 2037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2038$as_echo "$ac_header_preproc" >&6; } 2039 2040# So? What about this header? 2041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2042 yes:no: ) 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2044$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2046$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2047 ;; 2048 no:yes:* ) 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2050$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2052$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2054$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2056$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2058$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2059( $as_echo "## ----------------------------------- ## 2060## Report this to karl@kheyes.plus.com ## 2061## ----------------------------------- ##" 2062 ) | sed "s/^/$as_me: WARNING: /" >&2 2063 ;; 2064esac 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2066$as_echo_n "checking for $2... " >&6; } 2067if eval \${$3+:} false; then : 2068 $as_echo_n "(cached) " >&6 2069else 2070 eval "$3=\$ac_header_compiler" 2071fi 2072eval ac_res=\$$3 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2074$as_echo "$ac_res" >&6; } 2075fi 2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2077 2078} # ac_fn_c_check_header_mongrel 2079 2080# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2081# ------------------------------------------- 2082# Tests whether TYPE exists after having included INCLUDES, setting cache 2083# variable VAR accordingly. 2084ac_fn_c_check_type () 2085{ 2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088$as_echo_n "checking for $2... " >&6; } 2089if eval \${$3+:} false; then : 2090 $as_echo_n "(cached) " >&6 2091else 2092 eval "$3=no" 2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2094/* end confdefs.h. */ 2095$4 2096int 2097main () 2098{ 2099if (sizeof ($2)) 2100 return 0; 2101 ; 2102 return 0; 2103} 2104_ACEOF 2105if ac_fn_c_try_compile "$LINENO"; then : 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109int 2110main () 2111{ 2112if (sizeof (($2))) 2113 return 0; 2114 ; 2115 return 0; 2116} 2117_ACEOF 2118if ac_fn_c_try_compile "$LINENO"; then : 2119 2120else 2121 eval "$3=yes" 2122fi 2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2124fi 2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2126fi 2127eval ac_res=\$$3 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2129$as_echo "$ac_res" >&6; } 2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2131 2132} # ac_fn_c_check_type 2133 2134# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2135# ---------------------------------------------------- 2136# Tries to find if the field MEMBER exists in type AGGR, after including 2137# INCLUDES, setting cache variable VAR accordingly. 2138ac_fn_c_check_member () 2139{ 2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2142$as_echo_n "checking for $2.$3... " >&6; } 2143if eval \${$4+:} false; then : 2144 $as_echo_n "(cached) " >&6 2145else 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147/* end confdefs.h. */ 2148$5 2149int 2150main () 2151{ 2152static $2 ac_aggr; 2153if (ac_aggr.$3) 2154return 0; 2155 ; 2156 return 0; 2157} 2158_ACEOF 2159if ac_fn_c_try_compile "$LINENO"; then : 2160 eval "$4=yes" 2161else 2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163/* end confdefs.h. */ 2164$5 2165int 2166main () 2167{ 2168static $2 ac_aggr; 2169if (sizeof ac_aggr.$3) 2170return 0; 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_compile "$LINENO"; then : 2176 eval "$4=yes" 2177else 2178 eval "$4=no" 2179fi 2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183fi 2184eval ac_res=\$$4 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2186$as_echo "$ac_res" >&6; } 2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2188 2189} # ac_fn_c_check_member 2190 2191# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2192# --------------------------------------------- 2193# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2194# accordingly. 2195ac_fn_c_check_decl () 2196{ 2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2198 as_decl_name=`echo $2|sed 's/ *(.*//'` 2199 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2201$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2202if eval \${$3+:} false; then : 2203 $as_echo_n "(cached) " >&6 2204else 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$4 2208int 2209main () 2210{ 2211#ifndef $as_decl_name 2212#ifdef __cplusplus 2213 (void) $as_decl_use; 2214#else 2215 (void) $as_decl_name; 2216#endif 2217#endif 2218 2219 ; 2220 return 0; 2221} 2222_ACEOF 2223if ac_fn_c_try_compile "$LINENO"; then : 2224 eval "$3=yes" 2225else 2226 eval "$3=no" 2227fi 2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2229fi 2230eval ac_res=\$$3 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2232$as_echo "$ac_res" >&6; } 2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2234 2235} # ac_fn_c_check_decl 2236cat >config.log <<_ACEOF 2237This file contains any messages produced by compilers while 2238running configure, to aid debugging if configure makes a mistake. 2239 2240It was created by Icecast $as_me 2.4.0-kh15, which was 2241generated by GNU Autoconf 2.69. Invocation command line was 2242 2243 $ $0 $@ 2244 2245_ACEOF 2246exec 5>>config.log 2247{ 2248cat <<_ASUNAME 2249## --------- ## 2250## Platform. ## 2251## --------- ## 2252 2253hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2254uname -m = `(uname -m) 2>/dev/null || echo unknown` 2255uname -r = `(uname -r) 2>/dev/null || echo unknown` 2256uname -s = `(uname -s) 2>/dev/null || echo unknown` 2257uname -v = `(uname -v) 2>/dev/null || echo unknown` 2258 2259/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2260/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2261 2262/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2263/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2264/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2265/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2266/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2267/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2268/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2269 2270_ASUNAME 2271 2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2273for as_dir in $PATH 2274do 2275 IFS=$as_save_IFS 2276 test -z "$as_dir" && as_dir=. 2277 $as_echo "PATH: $as_dir" 2278 done 2279IFS=$as_save_IFS 2280 2281} >&5 2282 2283cat >&5 <<_ACEOF 2284 2285 2286## ----------- ## 2287## Core tests. ## 2288## ----------- ## 2289 2290_ACEOF 2291 2292 2293# Keep a trace of the command line. 2294# Strip out --no-create and --no-recursion so they do not pile up. 2295# Strip out --silent because we don't want to record it for future runs. 2296# Also quote any args containing shell meta-characters. 2297# Make two passes to allow for proper duplicate-argument suppression. 2298ac_configure_args= 2299ac_configure_args0= 2300ac_configure_args1= 2301ac_must_keep_next=false 2302for ac_pass in 1 2 2303do 2304 for ac_arg 2305 do 2306 case $ac_arg in 2307 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2309 | -silent | --silent | --silen | --sile | --sil) 2310 continue ;; 2311 *\'*) 2312 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2313 esac 2314 case $ac_pass in 2315 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2316 2) 2317 as_fn_append ac_configure_args1 " '$ac_arg'" 2318 if test $ac_must_keep_next = true; then 2319 ac_must_keep_next=false # Got value, back to normal. 2320 else 2321 case $ac_arg in 2322 *=* | --config-cache | -C | -disable-* | --disable-* \ 2323 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2324 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2325 | -with-* | --with-* | -without-* | --without-* | --x) 2326 case "$ac_configure_args0 " in 2327 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2328 esac 2329 ;; 2330 -* ) ac_must_keep_next=true ;; 2331 esac 2332 fi 2333 as_fn_append ac_configure_args " '$ac_arg'" 2334 ;; 2335 esac 2336 done 2337done 2338{ ac_configure_args0=; unset ac_configure_args0;} 2339{ ac_configure_args1=; unset ac_configure_args1;} 2340 2341# When interrupted or exit'd, cleanup temporary files, and complete 2342# config.log. We remove comments because anyway the quotes in there 2343# would cause problems or look ugly. 2344# WARNING: Use '\'' to represent an apostrophe within the trap. 2345# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2346trap 'exit_status=$? 2347 # Save into config.log some information that might help in debugging. 2348 { 2349 echo 2350 2351 $as_echo "## ---------------- ## 2352## Cache variables. ## 2353## ---------------- ##" 2354 echo 2355 # The following way of writing the cache mishandles newlines in values, 2356( 2357 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2358 eval ac_val=\$$ac_var 2359 case $ac_val in #( 2360 *${as_nl}*) 2361 case $ac_var in #( 2362 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2363$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2364 esac 2365 case $ac_var in #( 2366 _ | IFS | as_nl) ;; #( 2367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2368 *) { eval $ac_var=; unset $ac_var;} ;; 2369 esac ;; 2370 esac 2371 done 2372 (set) 2>&1 | 2373 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2374 *${as_nl}ac_space=\ *) 2375 sed -n \ 2376 "s/'\''/'\''\\\\'\'''\''/g; 2377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2378 ;; #( 2379 *) 2380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2381 ;; 2382 esac | 2383 sort 2384) 2385 echo 2386 2387 $as_echo "## ----------------- ## 2388## Output variables. ## 2389## ----------------- ##" 2390 echo 2391 for ac_var in $ac_subst_vars 2392 do 2393 eval ac_val=\$$ac_var 2394 case $ac_val in 2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2396 esac 2397 $as_echo "$ac_var='\''$ac_val'\''" 2398 done | sort 2399 echo 2400 2401 if test -n "$ac_subst_files"; then 2402 $as_echo "## ------------------- ## 2403## File substitutions. ## 2404## ------------------- ##" 2405 echo 2406 for ac_var in $ac_subst_files 2407 do 2408 eval ac_val=\$$ac_var 2409 case $ac_val in 2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2411 esac 2412 $as_echo "$ac_var='\''$ac_val'\''" 2413 done | sort 2414 echo 2415 fi 2416 2417 if test -s confdefs.h; then 2418 $as_echo "## ----------- ## 2419## confdefs.h. ## 2420## ----------- ##" 2421 echo 2422 cat confdefs.h 2423 echo 2424 fi 2425 test "$ac_signal" != 0 && 2426 $as_echo "$as_me: caught signal $ac_signal" 2427 $as_echo "$as_me: exit $exit_status" 2428 } >&5 2429 rm -f core *.core core.conftest.* && 2430 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2431 exit $exit_status 2432' 0 2433for ac_signal in 1 2 13 15; do 2434 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2435done 2436ac_signal=0 2437 2438# confdefs.h avoids OS command line length limits that DEFS can exceed. 2439rm -f -r conftest* confdefs.h 2440 2441$as_echo "/* confdefs.h */" > confdefs.h 2442 2443# Predefined preprocessor variables. 2444 2445cat >>confdefs.h <<_ACEOF 2446#define PACKAGE_NAME "$PACKAGE_NAME" 2447_ACEOF 2448 2449cat >>confdefs.h <<_ACEOF 2450#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2451_ACEOF 2452 2453cat >>confdefs.h <<_ACEOF 2454#define PACKAGE_VERSION "$PACKAGE_VERSION" 2455_ACEOF 2456 2457cat >>confdefs.h <<_ACEOF 2458#define PACKAGE_STRING "$PACKAGE_STRING" 2459_ACEOF 2460 2461cat >>confdefs.h <<_ACEOF 2462#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2463_ACEOF 2464 2465cat >>confdefs.h <<_ACEOF 2466#define PACKAGE_URL "$PACKAGE_URL" 2467_ACEOF 2468 2469 2470# Let the site file select an alternate cache file if it wants to. 2471# Prefer an explicitly selected file to automatically selected ones. 2472ac_site_file1=NONE 2473ac_site_file2=NONE 2474if test -n "$CONFIG_SITE"; then 2475 # We do not want a PATH search for config.site. 2476 case $CONFIG_SITE in #(( 2477 -*) ac_site_file1=./$CONFIG_SITE;; 2478 */*) ac_site_file1=$CONFIG_SITE;; 2479 *) ac_site_file1=./$CONFIG_SITE;; 2480 esac 2481elif test "x$prefix" != xNONE; then 2482 ac_site_file1=$prefix/share/config.site 2483 ac_site_file2=$prefix/etc/config.site 2484else 2485 ac_site_file1=$ac_default_prefix/share/config.site 2486 ac_site_file2=$ac_default_prefix/etc/config.site 2487fi 2488for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2489do 2490 test "x$ac_site_file" = xNONE && continue 2491 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2493$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2494 sed 's/^/| /' "$ac_site_file" >&5 2495 . "$ac_site_file" \ 2496 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2498as_fn_error $? "failed to load site script $ac_site_file 2499See \`config.log' for more details" "$LINENO" 5; } 2500 fi 2501done 2502 2503if test -r "$cache_file"; then 2504 # Some versions of bash will fail to source /dev/null (special files 2505 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2506 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2508$as_echo "$as_me: loading cache $cache_file" >&6;} 2509 case $cache_file in 2510 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2511 *) . "./$cache_file";; 2512 esac 2513 fi 2514else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2516$as_echo "$as_me: creating cache $cache_file" >&6;} 2517 >$cache_file 2518fi 2519 2520# Check that the precious variables saved in the cache have kept the same 2521# value. 2522ac_cache_corrupted=false 2523for ac_var in $ac_precious_vars; do 2524 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2525 eval ac_new_set=\$ac_env_${ac_var}_set 2526 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2527 eval ac_new_val=\$ac_env_${ac_var}_value 2528 case $ac_old_set,$ac_new_set in 2529 set,) 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2531$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2532 ac_cache_corrupted=: ;; 2533 ,set) 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2535$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2536 ac_cache_corrupted=: ;; 2537 ,);; 2538 *) 2539 if test "x$ac_old_val" != "x$ac_new_val"; then 2540 # differences in whitespace do not lead to failure. 2541 ac_old_val_w=`echo x $ac_old_val` 2542 ac_new_val_w=`echo x $ac_new_val` 2543 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2545$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2546 ac_cache_corrupted=: 2547 else 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2549$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2550 eval $ac_var=\$ac_old_val 2551 fi 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2553$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2555$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2556 fi;; 2557 esac 2558 # Pass precious variables to config.status. 2559 if test "$ac_new_set" = set; then 2560 case $ac_new_val in 2561 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2562 *) ac_arg=$ac_var=$ac_new_val ;; 2563 esac 2564 case " $ac_configure_args " in 2565 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2566 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2567 esac 2568 fi 2569done 2570if $ac_cache_corrupted; then 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2574$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2575 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2576fi 2577## -------------------- ## 2578## Main body of script. ## 2579## -------------------- ## 2580 2581ac_ext=c 2582ac_cpp='$CPP $CPPFLAGS' 2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2585ac_compiler_gnu=$ac_cv_c_compiler_gnu 2586 2587 2588ac_aux_dir= 2589for ac_dir in build-aux "$srcdir"/build-aux; do 2590 if test -f "$ac_dir/install-sh"; then 2591 ac_aux_dir=$ac_dir 2592 ac_install_sh="$ac_aux_dir/install-sh -c" 2593 break 2594 elif test -f "$ac_dir/install.sh"; then 2595 ac_aux_dir=$ac_dir 2596 ac_install_sh="$ac_aux_dir/install.sh -c" 2597 break 2598 elif test -f "$ac_dir/shtool"; then 2599 ac_aux_dir=$ac_dir 2600 ac_install_sh="$ac_aux_dir/shtool install -c" 2601 break 2602 fi 2603done 2604if test -z "$ac_aux_dir"; then 2605 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2606fi 2607 2608# These three variables are undocumented and unsupported, 2609# and are intended to be withdrawn in a future Autoconf release. 2610# They can cause serious problems if a builder's source tree is in a directory 2611# whose full name contains unusual characters. 2612ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2613ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2614ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2615 2616 2617am__api_version='1.16' 2618 2619# Find a good install program. We prefer a C program (faster), 2620# so one script is as good as another. But avoid the broken or 2621# incompatible versions: 2622# SysV /etc/install, /usr/sbin/install 2623# SunOS /usr/etc/install 2624# IRIX /sbin/install 2625# AIX /bin/install 2626# AmigaOS /C/install, which installs bootblocks on floppy discs 2627# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2628# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2629# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2630# OS/2's system install, which has a completely different semantic 2631# ./install, which can be erroneously created by make from ./install.sh. 2632# Reject install programs that cannot install multiple files. 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2634$as_echo_n "checking for a BSD-compatible install... " >&6; } 2635if test -z "$INSTALL"; then 2636if ${ac_cv_path_install+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638else 2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2640for as_dir in $PATH 2641do 2642 IFS=$as_save_IFS 2643 test -z "$as_dir" && as_dir=. 2644 # Account for people who put trailing slashes in PATH elements. 2645case $as_dir/ in #(( 2646 ./ | .// | /[cC]/* | \ 2647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2648 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2649 /usr/ucb/* ) ;; 2650 *) 2651 # OSF1 and SCO ODT 3.0 have their own names for install. 2652 # Don't use installbsd from OSF since it installs stuff as root 2653 # by default. 2654 for ac_prog in ginstall scoinst install; do 2655 for ac_exec_ext in '' $ac_executable_extensions; do 2656 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2657 if test $ac_prog = install && 2658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2659 # AIX install. It has an incompatible calling convention. 2660 : 2661 elif test $ac_prog = install && 2662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2663 # program-specific install script used by HP pwplus--don't use. 2664 : 2665 else 2666 rm -rf conftest.one conftest.two conftest.dir 2667 echo one > conftest.one 2668 echo two > conftest.two 2669 mkdir conftest.dir 2670 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2671 test -s conftest.one && test -s conftest.two && 2672 test -s conftest.dir/conftest.one && 2673 test -s conftest.dir/conftest.two 2674 then 2675 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2676 break 3 2677 fi 2678 fi 2679 fi 2680 done 2681 done 2682 ;; 2683esac 2684 2685 done 2686IFS=$as_save_IFS 2687 2688rm -rf conftest.one conftest.two conftest.dir 2689 2690fi 2691 if test "${ac_cv_path_install+set}" = set; then 2692 INSTALL=$ac_cv_path_install 2693 else 2694 # As a last resort, use the slow shell script. Don't cache a 2695 # value for INSTALL within a source directory, because that will 2696 # break other packages using the cache if that directory is 2697 # removed, or if the value is a relative name. 2698 INSTALL=$ac_install_sh 2699 fi 2700fi 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2702$as_echo "$INSTALL" >&6; } 2703 2704# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2705# It thinks the first close brace ends the variable substitution. 2706test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2707 2708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2709 2710test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2711 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2713$as_echo_n "checking whether build environment is sane... " >&6; } 2714# Reject unsafe characters in $srcdir or the absolute working directory 2715# name. Accept space and tab only in the latter. 2716am_lf=' 2717' 2718case `pwd` in 2719 *[\\\"\#\$\&\'\`$am_lf]*) 2720 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2721esac 2722case $srcdir in 2723 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2724 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2725esac 2726 2727# Do 'set' in a subshell so we don't clobber the current shell's 2728# arguments. Must try -L first in case configure is actually a 2729# symlink; some systems play weird games with the mod time of symlinks 2730# (eg FreeBSD returns the mod time of the symlink's containing 2731# directory). 2732if ( 2733 am_has_slept=no 2734 for am_try in 1 2; do 2735 echo "timestamp, slept: $am_has_slept" > conftest.file 2736 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2737 if test "$*" = "X"; then 2738 # -L didn't work. 2739 set X `ls -t "$srcdir/configure" conftest.file` 2740 fi 2741 if test "$*" != "X $srcdir/configure conftest.file" \ 2742 && test "$*" != "X conftest.file $srcdir/configure"; then 2743 2744 # If neither matched, then we have a broken ls. This can happen 2745 # if, for instance, CONFIG_SHELL is bash and it inherits a 2746 # broken ls alias from the environment. This has actually 2747 # happened. Such a system could not be considered "sane". 2748 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2749 alias in your environment" "$LINENO" 5 2750 fi 2751 if test "$2" = conftest.file || test $am_try -eq 2; then 2752 break 2753 fi 2754 # Just in case. 2755 sleep 1 2756 am_has_slept=yes 2757 done 2758 test "$2" = conftest.file 2759 ) 2760then 2761 # Ok. 2762 : 2763else 2764 as_fn_error $? "newly created file is older than distributed files! 2765Check your system clock" "$LINENO" 5 2766fi 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2768$as_echo "yes" >&6; } 2769# If we didn't sleep, we still need to ensure time stamps of config.status and 2770# generated files are strictly newer. 2771am_sleep_pid= 2772if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2773 ( sleep 1 ) & 2774 am_sleep_pid=$! 2775fi 2776 2777rm -f conftest.file 2778 2779test "$program_prefix" != NONE && 2780 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2781# Use a double $ so make ignores it. 2782test "$program_suffix" != NONE && 2783 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2784# Double any \ or $. 2785# By default was `s,x,x', remove it if useless. 2786ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2787program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2788 2789# Expand $ac_aux_dir to an absolute path. 2790am_aux_dir=`cd "$ac_aux_dir" && pwd` 2791 2792if test x"${MISSING+set}" != xset; then 2793 case $am_aux_dir in 2794 *\ * | *\ *) 2795 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2796 *) 2797 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2798 esac 2799fi 2800# Use eval to expand $SHELL 2801if eval "$MISSING --is-lightweight"; then 2802 am_missing_run="$MISSING " 2803else 2804 am_missing_run= 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2806$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2807fi 2808 2809if test x"${install_sh+set}" != xset; then 2810 case $am_aux_dir in 2811 *\ * | *\ *) 2812 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2813 *) 2814 install_sh="\${SHELL} $am_aux_dir/install-sh" 2815 esac 2816fi 2817 2818# Installed binaries are usually stripped using 'strip' when the user 2819# run "make install-strip". However 'strip' might not be the right 2820# tool to use in cross-compilation environments, therefore Automake 2821# will honor the 'STRIP' environment variable to overrule this program. 2822if test "$cross_compiling" != no; then 2823 if test -n "$ac_tool_prefix"; then 2824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2825set dummy ${ac_tool_prefix}strip; ac_word=$2 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827$as_echo_n "checking for $ac_word... " >&6; } 2828if ${ac_cv_prog_STRIP+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test -n "$STRIP"; then 2832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi 2850fi 2851STRIP=$ac_cv_prog_STRIP 2852if test -n "$STRIP"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2854$as_echo "$STRIP" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 2861fi 2862if test -z "$ac_cv_prog_STRIP"; then 2863 ac_ct_STRIP=$STRIP 2864 # Extract the first word of "strip", so it can be a program name with args. 2865set dummy strip; ac_word=$2 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867$as_echo_n "checking for $ac_word... " >&6; } 2868if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2869 $as_echo_n "(cached) " >&6 2870else 2871 if test -n "$ac_ct_STRIP"; then 2872 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 test -z "$as_dir" && as_dir=. 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_ac_ct_STRIP="strip" 2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2892if test -n "$ac_ct_STRIP"; then 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2894$as_echo "$ac_ct_STRIP" >&6; } 2895else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 if test "x$ac_ct_STRIP" = x; then 2901 STRIP=":" 2902 else 2903 case $cross_compiling:$ac_tool_warned in 2904yes:) 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2907ac_tool_warned=yes ;; 2908esac 2909 STRIP=$ac_ct_STRIP 2910 fi 2911else 2912 STRIP="$ac_cv_prog_STRIP" 2913fi 2914 2915fi 2916INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2917 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2919$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2920if test -z "$MKDIR_P"; then 2921 if ${ac_cv_path_mkdir+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2926do 2927 IFS=$as_save_IFS 2928 test -z "$as_dir" && as_dir=. 2929 for ac_prog in mkdir gmkdir; do 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2932 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2933 'mkdir (GNU coreutils) '* | \ 2934 'mkdir (coreutils) '* | \ 2935 'mkdir (fileutils) '4.1*) 2936 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2937 break 3;; 2938 esac 2939 done 2940 done 2941 done 2942IFS=$as_save_IFS 2943 2944fi 2945 2946 test -d ./--version && rmdir ./--version 2947 if test "${ac_cv_path_mkdir+set}" = set; then 2948 MKDIR_P="$ac_cv_path_mkdir -p" 2949 else 2950 # As a last resort, use the slow shell script. Don't cache a 2951 # value for MKDIR_P within a source directory, because that will 2952 # break other packages using the cache if that directory is 2953 # removed, or if the value is a relative name. 2954 MKDIR_P="$ac_install_sh -d" 2955 fi 2956fi 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2958$as_echo "$MKDIR_P" >&6; } 2959 2960for ac_prog in gawk mawk nawk awk 2961do 2962 # Extract the first word of "$ac_prog", so it can be a program name with args. 2963set dummy $ac_prog; ac_word=$2 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2965$as_echo_n "checking for $ac_word... " >&6; } 2966if ${ac_cv_prog_AWK+:} false; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 if test -n "$AWK"; then 2970 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2971else 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2979 ac_cv_prog_AWK="$ac_prog" 2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2981 break 2 2982 fi 2983done 2984 done 2985IFS=$as_save_IFS 2986 2987fi 2988fi 2989AWK=$ac_cv_prog_AWK 2990if test -n "$AWK"; then 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2992$as_echo "$AWK" >&6; } 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996fi 2997 2998 2999 test -n "$AWK" && break 3000done 3001 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3003$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3004set x ${MAKE-make} 3005ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3006if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 cat >conftest.make <<\_ACEOF 3010SHELL = /bin/sh 3011all: 3012 @echo '@@@%%%=$(MAKE)=@@@%%%' 3013_ACEOF 3014# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3015case `${MAKE-make} -f conftest.make 2>/dev/null` in 3016 *@@@%%%=?*=@@@%%%*) 3017 eval ac_cv_prog_make_${ac_make}_set=yes;; 3018 *) 3019 eval ac_cv_prog_make_${ac_make}_set=no;; 3020esac 3021rm -f conftest.make 3022fi 3023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3025$as_echo "yes" >&6; } 3026 SET_MAKE= 3027else 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3029$as_echo "no" >&6; } 3030 SET_MAKE="MAKE=${MAKE-make}" 3031fi 3032 3033rm -rf .tst 2>/dev/null 3034mkdir .tst 2>/dev/null 3035if test -d .tst; then 3036 am__leading_dot=. 3037else 3038 am__leading_dot=_ 3039fi 3040rmdir .tst 2>/dev/null 3041 3042# Check whether --enable-silent-rules was given. 3043if test "${enable_silent_rules+set}" = set; then : 3044 enableval=$enable_silent_rules; 3045fi 3046 3047case $enable_silent_rules in # ((( 3048 yes) AM_DEFAULT_VERBOSITY=0;; 3049 no) AM_DEFAULT_VERBOSITY=1;; 3050 *) AM_DEFAULT_VERBOSITY=1;; 3051esac 3052am_make=${MAKE-make} 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3054$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3055if ${am_cv_make_support_nested_variables+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057else 3058 if $as_echo 'TRUE=$(BAR$(V)) 3059BAR0=false 3060BAR1=true 3061V=1 3062am__doit: 3063 @$(TRUE) 3064.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3065 am_cv_make_support_nested_variables=yes 3066else 3067 am_cv_make_support_nested_variables=no 3068fi 3069fi 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3071$as_echo "$am_cv_make_support_nested_variables" >&6; } 3072if test $am_cv_make_support_nested_variables = yes; then 3073 AM_V='$(V)' 3074 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3075else 3076 AM_V=$AM_DEFAULT_VERBOSITY 3077 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3078fi 3079AM_BACKSLASH='\' 3080 3081if test "`cd $srcdir && pwd`" != "`pwd`"; then 3082 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3083 # is not polluted with repeated "-I." 3084 am__isrc=' -I$(srcdir)' 3085 # test to see if srcdir already configured 3086 if test -f $srcdir/config.status; then 3087 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3088 fi 3089fi 3090 3091# test whether we have cygpath 3092if test -z "$CYGPATH_W"; then 3093 if (cygpath --version) >/dev/null 2>/dev/null; then 3094 CYGPATH_W='cygpath -w' 3095 else 3096 CYGPATH_W=echo 3097 fi 3098fi 3099 3100 3101# Define the identity of the package. 3102 PACKAGE='icecast' 3103 VERSION='2.4.0-kh15' 3104 3105 3106cat >>confdefs.h <<_ACEOF 3107#define PACKAGE "$PACKAGE" 3108_ACEOF 3109 3110 3111cat >>confdefs.h <<_ACEOF 3112#define VERSION "$VERSION" 3113_ACEOF 3114 3115# Some tools Automake needs. 3116 3117ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3118 3119 3120AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3121 3122 3123AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3124 3125 3126AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3127 3128 3129MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3130 3131# For better backward compatibility. To be removed once Automake 1.9.x 3132# dies out for good. For more background, see: 3133# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3134# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3135mkdir_p='$(MKDIR_P)' 3136 3137# We need awk for the "check" target (and possibly the TAP driver). The 3138# system "awk" is bad on some platforms. 3139# Always define AMTAR for backward compatibility. Yes, it's still used 3140# in the wild :-( We should find a proper way to deprecate it ... 3141AMTAR='$${TAR-tar}' 3142 3143 3144# We'll loop over all known methods to create a tar archive until one works. 3145_am_tools='gnutar pax cpio none' 3146 3147am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3148 3149 3150 3151 3152 3153 3154# POSIX will say in a future version that running "rm -f" with no argument 3155# is OK; and we want to be able to make that assumption in our Makefile 3156# recipes. So use an aggressive probe to check that the usage we want is 3157# actually supported "in the wild" to an acceptable degree. 3158# See automake bug#10828. 3159# To make any issue more visible, cause the running configure to be aborted 3160# by default if the 'rm' program in use doesn't match our expectations; the 3161# user can still override this though. 3162if rm -f && rm -fr && rm -rf; then : OK; else 3163 cat >&2 <<'END' 3164Oops! 3165 3166Your 'rm' program seems unable to run without file operands specified 3167on the command line, even when the '-f' option is present. This is contrary 3168to the behaviour of most rm programs out there, and not conforming with 3169the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3170 3171Please tell bug-automake@gnu.org about your system, including the value 3172of your $PATH and any error possibly output before this message. This 3173can help us improve future automake versions. 3174 3175END 3176 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3177 echo 'Configuration will proceed anyway, since you have set the' >&2 3178 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3179 echo >&2 3180 else 3181 cat >&2 <<'END' 3182Aborting the configuration process, to ensure you take notice of the issue. 3183 3184You can download and install GNU coreutils to get an 'rm' implementation 3185that behaves properly: <https://www.gnu.org/software/coreutils/>. 3186 3187If you want to complete the configuration process using your problematic 3188'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3189to "yes", and re-run configure. 3190 3191END 3192 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3193 fi 3194fi 3195 3196 3197 3198 3199ac_config_headers="$ac_config_headers config.h" 3200 3201 3202 3203 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3205$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3206 # Check whether --enable-maintainer-mode was given. 3207if test "${enable_maintainer_mode+set}" = set; then : 3208 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3209else 3210 USE_MAINTAINER_MODE=no 3211fi 3212 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3214$as_echo "$USE_MAINTAINER_MODE" >&6; } 3215 if test $USE_MAINTAINER_MODE = yes; then 3216 MAINTAINER_MODE_TRUE= 3217 MAINTAINER_MODE_FALSE='#' 3218else 3219 MAINTAINER_MODE_TRUE='#' 3220 MAINTAINER_MODE_FALSE= 3221fi 3222 3223 MAINT=$MAINTAINER_MODE_TRUE 3224 3225 3226# Check whether --enable-silent-rules was given. 3227if test "${enable_silent_rules+set}" = set; then : 3228 enableval=$enable_silent_rules; 3229fi 3230 3231case $enable_silent_rules in # ((( 3232 yes) AM_DEFAULT_VERBOSITY=0;; 3233 no) AM_DEFAULT_VERBOSITY=1;; 3234 *) AM_DEFAULT_VERBOSITY=0;; 3235esac 3236am_make=${MAKE-make} 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3238$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3239if ${am_cv_make_support_nested_variables+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if $as_echo 'TRUE=$(BAR$(V)) 3243BAR0=false 3244BAR1=true 3245V=1 3246am__doit: 3247 @$(TRUE) 3248.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3249 am_cv_make_support_nested_variables=yes 3250else 3251 am_cv_make_support_nested_variables=no 3252fi 3253fi 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3255$as_echo "$am_cv_make_support_nested_variables" >&6; } 3256if test $am_cv_make_support_nested_variables = yes; then 3257 AM_V='$(V)' 3258 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3259else 3260 AM_V=$AM_DEFAULT_VERBOSITY 3261 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3262fi 3263AM_BACKSLASH='\' 3264 3265 3266case `pwd` in 3267 *\ * | *\ *) 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3269$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3270esac 3271 3272 3273 3274macro_version='2.4.6' 3275macro_revision='2.4.6' 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289ltmain=$ac_aux_dir/ltmain.sh 3290 3291# Make sure we can run config.sub. 3292$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3293 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3294 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3296$as_echo_n "checking build system type... " >&6; } 3297if ${ac_cv_build+:} false; then : 3298 $as_echo_n "(cached) " >&6 3299else 3300 ac_build_alias=$build_alias 3301test "x$ac_build_alias" = x && 3302 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3303test "x$ac_build_alias" = x && 3304 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3305ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3306 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3307 3308fi 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3310$as_echo "$ac_cv_build" >&6; } 3311case $ac_cv_build in 3312*-*-*) ;; 3313*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3314esac 3315build=$ac_cv_build 3316ac_save_IFS=$IFS; IFS='-' 3317set x $ac_cv_build 3318shift 3319build_cpu=$1 3320build_vendor=$2 3321shift; shift 3322# Remember, the first character of IFS is used to create $*, 3323# except with old shells: 3324build_os=$* 3325IFS=$ac_save_IFS 3326case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3327 3328 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3330$as_echo_n "checking host system type... " >&6; } 3331if ${ac_cv_host+:} false; then : 3332 $as_echo_n "(cached) " >&6 3333else 3334 if test "x$host_alias" = x; then 3335 ac_cv_host=$ac_cv_build 3336else 3337 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3338 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3339fi 3340 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3343$as_echo "$ac_cv_host" >&6; } 3344case $ac_cv_host in 3345*-*-*) ;; 3346*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3347esac 3348host=$ac_cv_host 3349ac_save_IFS=$IFS; IFS='-' 3350set x $ac_cv_host 3351shift 3352host_cpu=$1 3353host_vendor=$2 3354shift; shift 3355# Remember, the first character of IFS is used to create $*, 3356# except with old shells: 3357host_os=$* 3358IFS=$ac_save_IFS 3359case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3360 3361 3362# Backslashify metacharacters that are still active within 3363# double-quoted strings. 3364sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3365 3366# Same as above, but do not quote variable references. 3367double_quote_subst='s/\(["`\\]\)/\\\1/g' 3368 3369# Sed substitution to delay expansion of an escaped shell variable in a 3370# double_quote_subst'ed string. 3371delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3372 3373# Sed substitution to delay expansion of an escaped single quote. 3374delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3375 3376# Sed substitution to avoid accidental globbing in evaled expressions 3377no_glob_subst='s/\*/\\\*/g' 3378 3379ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3380ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3381ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3382 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3384$as_echo_n "checking how to print strings... " >&6; } 3385# Test print first, because it will be a builtin if present. 3386if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3387 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3388 ECHO='print -r --' 3389elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3390 ECHO='printf %s\n' 3391else 3392 # Use this function as a fallback that always works. 3393 func_fallback_echo () 3394 { 3395 eval 'cat <<_LTECHO_EOF 3396$1 3397_LTECHO_EOF' 3398 } 3399 ECHO='func_fallback_echo' 3400fi 3401 3402# func_echo_all arg... 3403# Invoke $ECHO with all args, space-separated. 3404func_echo_all () 3405{ 3406 $ECHO "" 3407} 3408 3409case $ECHO in 3410 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3411$as_echo "printf" >&6; } ;; 3412 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3413$as_echo "print -r" >&6; } ;; 3414 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3415$as_echo "cat" >&6; } ;; 3416esac 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431DEPDIR="${am__leading_dot}deps" 3432 3433ac_config_commands="$ac_config_commands depfiles" 3434 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3436$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3437cat > confinc.mk << 'END' 3438am__doit: 3439 @echo this is the am__doit target >confinc.out 3440.PHONY: am__doit 3441END 3442am__include="#" 3443am__quote= 3444# BSD make does it like this. 3445echo '.include "confinc.mk" # ignored' > confmf.BSD 3446# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3447echo 'include confinc.mk # ignored' > confmf.GNU 3448_am_result=no 3449for s in GNU BSD; do 3450 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3451 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3452 ac_status=$? 3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 (exit $ac_status); } 3455 case $?:`cat confinc.out 2>/dev/null` in #( 3456 '0:this is the am__doit target') : 3457 case $s in #( 3458 BSD) : 3459 am__include='.include' am__quote='"' ;; #( 3460 *) : 3461 am__include='include' am__quote='' ;; 3462esac ;; #( 3463 *) : 3464 ;; 3465esac 3466 if test "$am__include" != "#"; then 3467 _am_result="yes ($s style)" 3468 break 3469 fi 3470done 3471rm -f confinc.* confmf.* 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3473$as_echo "${_am_result}" >&6; } 3474 3475# Check whether --enable-dependency-tracking was given. 3476if test "${enable_dependency_tracking+set}" = set; then : 3477 enableval=$enable_dependency_tracking; 3478fi 3479 3480if test "x$enable_dependency_tracking" != xno; then 3481 am_depcomp="$ac_aux_dir/depcomp" 3482 AMDEPBACKSLASH='\' 3483 am__nodep='_no' 3484fi 3485 if test "x$enable_dependency_tracking" != xno; then 3486 AMDEP_TRUE= 3487 AMDEP_FALSE='#' 3488else 3489 AMDEP_TRUE='#' 3490 AMDEP_FALSE= 3491fi 3492 3493 3494ac_ext=c 3495ac_cpp='$CPP $CPPFLAGS' 3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3498ac_compiler_gnu=$ac_cv_c_compiler_gnu 3499if test -n "$ac_tool_prefix"; then 3500 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3501set dummy ${ac_tool_prefix}gcc; ac_word=$2 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3503$as_echo_n "checking for $ac_word... " >&6; } 3504if ${ac_cv_prog_CC+:} false; then : 3505 $as_echo_n "(cached) " >&6 3506else 3507 if test -n "$CC"; then 3508 ac_cv_prog_CC="$CC" # Let the user override the test. 3509else 3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511for as_dir in $PATH 3512do 3513 IFS=$as_save_IFS 3514 test -z "$as_dir" && as_dir=. 3515 for ac_exec_ext in '' $ac_executable_extensions; do 3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3517 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521done 3522 done 3523IFS=$as_save_IFS 3524 3525fi 3526fi 3527CC=$ac_cv_prog_CC 3528if test -n "$CC"; then 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3530$as_echo "$CC" >&6; } 3531else 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3533$as_echo "no" >&6; } 3534fi 3535 3536 3537fi 3538if test -z "$ac_cv_prog_CC"; then 3539 ac_ct_CC=$CC 3540 # Extract the first word of "gcc", so it can be a program name with args. 3541set dummy gcc; ac_word=$2 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3543$as_echo_n "checking for $ac_word... " >&6; } 3544if ${ac_cv_prog_ac_ct_CC+:} false; then : 3545 $as_echo_n "(cached) " >&6 3546else 3547 if test -n "$ac_ct_CC"; then 3548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3549else 3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3551for as_dir in $PATH 3552do 3553 IFS=$as_save_IFS 3554 test -z "$as_dir" && as_dir=. 3555 for ac_exec_ext in '' $ac_executable_extensions; do 3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3557 ac_cv_prog_ac_ct_CC="gcc" 3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3559 break 2 3560 fi 3561done 3562 done 3563IFS=$as_save_IFS 3564 3565fi 3566fi 3567ac_ct_CC=$ac_cv_prog_ac_ct_CC 3568if test -n "$ac_ct_CC"; then 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3570$as_echo "$ac_ct_CC" >&6; } 3571else 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573$as_echo "no" >&6; } 3574fi 3575 3576 if test "x$ac_ct_CC" = x; then 3577 CC="" 3578 else 3579 case $cross_compiling:$ac_tool_warned in 3580yes:) 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3583ac_tool_warned=yes ;; 3584esac 3585 CC=$ac_ct_CC 3586 fi 3587else 3588 CC="$ac_cv_prog_CC" 3589fi 3590 3591if test -z "$CC"; then 3592 if test -n "$ac_tool_prefix"; then 3593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3594set dummy ${ac_tool_prefix}cc; ac_word=$2 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3596$as_echo_n "checking for $ac_word... " >&6; } 3597if ${ac_cv_prog_CC+:} false; then : 3598 $as_echo_n "(cached) " >&6 3599else 3600 if test -n "$CC"; then 3601 ac_cv_prog_CC="$CC" # Let the user override the test. 3602else 3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604for as_dir in $PATH 3605do 3606 IFS=$as_save_IFS 3607 test -z "$as_dir" && as_dir=. 3608 for ac_exec_ext in '' $ac_executable_extensions; do 3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3610 ac_cv_prog_CC="${ac_tool_prefix}cc" 3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3612 break 2 3613 fi 3614done 3615 done 3616IFS=$as_save_IFS 3617 3618fi 3619fi 3620CC=$ac_cv_prog_CC 3621if test -n "$CC"; then 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3623$as_echo "$CC" >&6; } 3624else 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3626$as_echo "no" >&6; } 3627fi 3628 3629 3630 fi 3631fi 3632if test -z "$CC"; then 3633 # Extract the first word of "cc", so it can be a program name with args. 3634set dummy cc; ac_word=$2 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3636$as_echo_n "checking for $ac_word... " >&6; } 3637if ${ac_cv_prog_CC+:} false; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 if test -n "$CC"; then 3641 ac_cv_prog_CC="$CC" # Let the user override the test. 3642else 3643 ac_prog_rejected=no 3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH 3646do 3647 IFS=$as_save_IFS 3648 test -z "$as_dir" && as_dir=. 3649 for ac_exec_ext in '' $ac_executable_extensions; do 3650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3652 ac_prog_rejected=yes 3653 continue 3654 fi 3655 ac_cv_prog_CC="cc" 3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3657 break 2 3658 fi 3659done 3660 done 3661IFS=$as_save_IFS 3662 3663if test $ac_prog_rejected = yes; then 3664 # We found a bogon in the path, so make sure we never use it. 3665 set dummy $ac_cv_prog_CC 3666 shift 3667 if test $# != 0; then 3668 # We chose a different compiler from the bogus one. 3669 # However, it has the same basename, so the bogon will be chosen 3670 # first if we set CC to just the basename; use the full file name. 3671 shift 3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3673 fi 3674fi 3675fi 3676fi 3677CC=$ac_cv_prog_CC 3678if test -n "$CC"; then 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3680$as_echo "$CC" >&6; } 3681else 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683$as_echo "no" >&6; } 3684fi 3685 3686 3687fi 3688if test -z "$CC"; then 3689 if test -n "$ac_tool_prefix"; then 3690 for ac_prog in cl.exe 3691 do 3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3693set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3695$as_echo_n "checking for $ac_word... " >&6; } 3696if ${ac_cv_prog_CC+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 if test -n "$CC"; then 3700 ac_cv_prog_CC="$CC" # Let the user override the test. 3701else 3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3703for as_dir in $PATH 3704do 3705 IFS=$as_save_IFS 3706 test -z "$as_dir" && as_dir=. 3707 for ac_exec_ext in '' $ac_executable_extensions; do 3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3711 break 2 3712 fi 3713done 3714 done 3715IFS=$as_save_IFS 3716 3717fi 3718fi 3719CC=$ac_cv_prog_CC 3720if test -n "$CC"; then 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3722$as_echo "$CC" >&6; } 3723else 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3725$as_echo "no" >&6; } 3726fi 3727 3728 3729 test -n "$CC" && break 3730 done 3731fi 3732if test -z "$CC"; then 3733 ac_ct_CC=$CC 3734 for ac_prog in cl.exe 3735do 3736 # Extract the first word of "$ac_prog", so it can be a program name with args. 3737set dummy $ac_prog; ac_word=$2 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739$as_echo_n "checking for $ac_word... " >&6; } 3740if ${ac_cv_prog_ac_ct_CC+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -n "$ac_ct_CC"; then 3744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3745else 3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3747for as_dir in $PATH 3748do 3749 IFS=$as_save_IFS 3750 test -z "$as_dir" && as_dir=. 3751 for ac_exec_ext in '' $ac_executable_extensions; do 3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3753 ac_cv_prog_ac_ct_CC="$ac_prog" 3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3755 break 2 3756 fi 3757done 3758 done 3759IFS=$as_save_IFS 3760 3761fi 3762fi 3763ac_ct_CC=$ac_cv_prog_ac_ct_CC 3764if test -n "$ac_ct_CC"; then 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3766$as_echo "$ac_ct_CC" >&6; } 3767else 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3769$as_echo "no" >&6; } 3770fi 3771 3772 3773 test -n "$ac_ct_CC" && break 3774done 3775 3776 if test "x$ac_ct_CC" = x; then 3777 CC="" 3778 else 3779 case $cross_compiling:$ac_tool_warned in 3780yes:) 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3783ac_tool_warned=yes ;; 3784esac 3785 CC=$ac_ct_CC 3786 fi 3787fi 3788 3789fi 3790 3791 3792test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3794as_fn_error $? "no acceptable C compiler found in \$PATH 3795See \`config.log' for more details" "$LINENO" 5; } 3796 3797# Provide some information about the compiler. 3798$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3799set X $ac_compile 3800ac_compiler=$2 3801for ac_option in --version -v -V -qversion; do 3802 { { ac_try="$ac_compiler $ac_option >&5" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3808$as_echo "$ac_try_echo"; } >&5 3809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3810 ac_status=$? 3811 if test -s conftest.err; then 3812 sed '10a\ 3813... rest of stderr output deleted ... 3814 10q' conftest.err >conftest.er1 3815 cat conftest.er1 >&5 3816 fi 3817 rm -f conftest.er1 conftest.err 3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3819 test $ac_status = 0; } 3820done 3821 3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824 3825int 3826main () 3827{ 3828 3829 ; 3830 return 0; 3831} 3832_ACEOF 3833ac_clean_files_save=$ac_clean_files 3834ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3835# Try to create an executable without -o first, disregard a.out. 3836# It will help us diagnose broken compilers, and finding out an intuition 3837# of exeext. 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3839$as_echo_n "checking whether the C compiler works... " >&6; } 3840ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3841 3842# The possible output files: 3843ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3844 3845ac_rmfiles= 3846for ac_file in $ac_files 3847do 3848 case $ac_file in 3849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3850 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3851 esac 3852done 3853rm -f $ac_rmfiles 3854 3855if { { ac_try="$ac_link_default" 3856case "(($ac_try" in 3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3858 *) ac_try_echo=$ac_try;; 3859esac 3860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3861$as_echo "$ac_try_echo"; } >&5 3862 (eval "$ac_link_default") 2>&5 3863 ac_status=$? 3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3865 test $ac_status = 0; }; then : 3866 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3867# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3868# in a Makefile. We should not override ac_cv_exeext if it was cached, 3869# so that the user can short-circuit this test for compilers unknown to 3870# Autoconf. 3871for ac_file in $ac_files '' 3872do 3873 test -f "$ac_file" || continue 3874 case $ac_file in 3875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3876 ;; 3877 [ab].out ) 3878 # We found the default executable, but exeext='' is most 3879 # certainly right. 3880 break;; 3881 *.* ) 3882 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3883 then :; else 3884 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3885 fi 3886 # We set ac_cv_exeext here because the later test for it is not 3887 # safe: cross compilers may not add the suffix if given an `-o' 3888 # argument, so we may need to know it at that point already. 3889 # Even if this section looks crufty: it has the advantage of 3890 # actually working. 3891 break;; 3892 * ) 3893 break;; 3894 esac 3895done 3896test "$ac_cv_exeext" = no && ac_cv_exeext= 3897 3898else 3899 ac_file='' 3900fi 3901if test -z "$ac_file"; then : 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903$as_echo "no" >&6; } 3904$as_echo "$as_me: failed program was:" >&5 3905sed 's/^/| /' conftest.$ac_ext >&5 3906 3907{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3909as_fn_error 77 "C compiler cannot create executables 3910See \`config.log' for more details" "$LINENO" 5; } 3911else 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3913$as_echo "yes" >&6; } 3914fi 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3916$as_echo_n "checking for C compiler default output file name... " >&6; } 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3918$as_echo "$ac_file" >&6; } 3919ac_exeext=$ac_cv_exeext 3920 3921rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3922ac_clean_files=$ac_clean_files_save 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3924$as_echo_n "checking for suffix of executables... " >&6; } 3925if { { ac_try="$ac_link" 3926case "(($ac_try" in 3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3928 *) ac_try_echo=$ac_try;; 3929esac 3930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3931$as_echo "$ac_try_echo"; } >&5 3932 (eval "$ac_link") 2>&5 3933 ac_status=$? 3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3935 test $ac_status = 0; }; then : 3936 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3937# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3938# work properly (i.e., refer to `conftest.exe'), while it won't with 3939# `rm'. 3940for ac_file in conftest.exe conftest conftest.*; do 3941 test -f "$ac_file" || continue 3942 case $ac_file in 3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3945 break;; 3946 * ) break;; 3947 esac 3948done 3949else 3950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3952as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3953See \`config.log' for more details" "$LINENO" 5; } 3954fi 3955rm -f conftest conftest$ac_cv_exeext 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3957$as_echo "$ac_cv_exeext" >&6; } 3958 3959rm -f conftest.$ac_ext 3960EXEEXT=$ac_cv_exeext 3961ac_exeext=$EXEEXT 3962cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963/* end confdefs.h. */ 3964#include <stdio.h> 3965int 3966main () 3967{ 3968FILE *f = fopen ("conftest.out", "w"); 3969 return ferror (f) || fclose (f) != 0; 3970 3971 ; 3972 return 0; 3973} 3974_ACEOF 3975ac_clean_files="$ac_clean_files conftest.out" 3976# Check that the compiler produces executables we can run. If not, either 3977# the compiler is broken, or we cross compile. 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3979$as_echo_n "checking whether we are cross compiling... " >&6; } 3980if test "$cross_compiling" != yes; then 3981 { { ac_try="$ac_link" 3982case "(($ac_try" in 3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3984 *) ac_try_echo=$ac_try;; 3985esac 3986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3987$as_echo "$ac_try_echo"; } >&5 3988 (eval "$ac_link") 2>&5 3989 ac_status=$? 3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3991 test $ac_status = 0; } 3992 if { ac_try='./conftest$ac_cv_exeext' 3993 { { case "(($ac_try" in 3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3995 *) ac_try_echo=$ac_try;; 3996esac 3997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3998$as_echo "$ac_try_echo"; } >&5 3999 (eval "$ac_try") 2>&5 4000 ac_status=$? 4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4002 test $ac_status = 0; }; }; then 4003 cross_compiling=no 4004 else 4005 if test "$cross_compiling" = maybe; then 4006 cross_compiling=yes 4007 else 4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4010as_fn_error $? "cannot run C compiled programs. 4011If you meant to cross compile, use \`--host'. 4012See \`config.log' for more details" "$LINENO" 5; } 4013 fi 4014 fi 4015fi 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4017$as_echo "$cross_compiling" >&6; } 4018 4019rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4020ac_clean_files=$ac_clean_files_save 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4022$as_echo_n "checking for suffix of object files... " >&6; } 4023if ${ac_cv_objext+:} false; then : 4024 $as_echo_n "(cached) " >&6 4025else 4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4027/* end confdefs.h. */ 4028 4029int 4030main () 4031{ 4032 4033 ; 4034 return 0; 4035} 4036_ACEOF 4037rm -f conftest.o conftest.obj 4038if { { ac_try="$ac_compile" 4039case "(($ac_try" in 4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4041 *) ac_try_echo=$ac_try;; 4042esac 4043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4044$as_echo "$ac_try_echo"; } >&5 4045 (eval "$ac_compile") 2>&5 4046 ac_status=$? 4047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4048 test $ac_status = 0; }; then : 4049 for ac_file in conftest.o conftest.obj conftest.*; do 4050 test -f "$ac_file" || continue; 4051 case $ac_file in 4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4054 break;; 4055 esac 4056done 4057else 4058 $as_echo "$as_me: failed program was:" >&5 4059sed 's/^/| /' conftest.$ac_ext >&5 4060 4061{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4063as_fn_error $? "cannot compute suffix of object files: cannot compile 4064See \`config.log' for more details" "$LINENO" 5; } 4065fi 4066rm -f conftest.$ac_cv_objext conftest.$ac_ext 4067fi 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4069$as_echo "$ac_cv_objext" >&6; } 4070OBJEXT=$ac_cv_objext 4071ac_objext=$OBJEXT 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4073$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4074if ${ac_cv_c_compiler_gnu+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078/* end confdefs.h. */ 4079 4080int 4081main () 4082{ 4083#ifndef __GNUC__ 4084 choke me 4085#endif 4086 4087 ; 4088 return 0; 4089} 4090_ACEOF 4091if ac_fn_c_try_compile "$LINENO"; then : 4092 ac_compiler_gnu=yes 4093else 4094 ac_compiler_gnu=no 4095fi 4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4097ac_cv_c_compiler_gnu=$ac_compiler_gnu 4098 4099fi 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4101$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4102if test $ac_compiler_gnu = yes; then 4103 GCC=yes 4104else 4105 GCC= 4106fi 4107ac_test_CFLAGS=${CFLAGS+set} 4108ac_save_CFLAGS=$CFLAGS 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4110$as_echo_n "checking whether $CC accepts -g... " >&6; } 4111if ${ac_cv_prog_cc_g+:} false; then : 4112 $as_echo_n "(cached) " >&6 4113else 4114 ac_save_c_werror_flag=$ac_c_werror_flag 4115 ac_c_werror_flag=yes 4116 ac_cv_prog_cc_g=no 4117 CFLAGS="-g" 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120 4121int 4122main () 4123{ 4124 4125 ; 4126 return 0; 4127} 4128_ACEOF 4129if ac_fn_c_try_compile "$LINENO"; then : 4130 ac_cv_prog_cc_g=yes 4131else 4132 CFLAGS="" 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135 4136int 4137main () 4138{ 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144if ac_fn_c_try_compile "$LINENO"; then : 4145 4146else 4147 ac_c_werror_flag=$ac_save_c_werror_flag 4148 CFLAGS="-g" 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151 4152int 4153main () 4154{ 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160if ac_fn_c_try_compile "$LINENO"; then : 4161 ac_cv_prog_cc_g=yes 4162fi 4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4164fi 4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4166fi 4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4168 ac_c_werror_flag=$ac_save_c_werror_flag 4169fi 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4171$as_echo "$ac_cv_prog_cc_g" >&6; } 4172if test "$ac_test_CFLAGS" = set; then 4173 CFLAGS=$ac_save_CFLAGS 4174elif test $ac_cv_prog_cc_g = yes; then 4175 if test "$GCC" = yes; then 4176 CFLAGS="-g -O2" 4177 else 4178 CFLAGS="-g" 4179 fi 4180else 4181 if test "$GCC" = yes; then 4182 CFLAGS="-O2" 4183 else 4184 CFLAGS= 4185 fi 4186fi 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4188$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4189if ${ac_cv_prog_cc_c89+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 ac_cv_prog_cc_c89=no 4193ac_save_CC=$CC 4194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195/* end confdefs.h. */ 4196#include <stdarg.h> 4197#include <stdio.h> 4198struct stat; 4199/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4200struct buf { int x; }; 4201FILE * (*rcsopen) (struct buf *, struct stat *, int); 4202static char *e (p, i) 4203 char **p; 4204 int i; 4205{ 4206 return p[i]; 4207} 4208static char *f (char * (*g) (char **, int), char **p, ...) 4209{ 4210 char *s; 4211 va_list v; 4212 va_start (v,p); 4213 s = g (p, va_arg (v,int)); 4214 va_end (v); 4215 return s; 4216} 4217 4218/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4219 function prototypes and stuff, but not '\xHH' hex character constants. 4220 These don't provoke an error unfortunately, instead are silently treated 4221 as 'x'. The following induces an error, until -std is added to get 4222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4223 array size at least. It's necessary to write '\x00'==0 to get something 4224 that's true only with -std. */ 4225int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4226 4227/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4228 inside strings and character constants. */ 4229#define FOO(x) 'x' 4230int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4231 4232int test (int i, double x); 4233struct s1 {int (*f) (int a);}; 4234struct s2 {int (*f) (double a);}; 4235int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4236int argc; 4237char **argv; 4238int 4239main () 4240{ 4241return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4242 ; 4243 return 0; 4244} 4245_ACEOF 4246for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4247 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4248do 4249 CC="$ac_save_CC $ac_arg" 4250 if ac_fn_c_try_compile "$LINENO"; then : 4251 ac_cv_prog_cc_c89=$ac_arg 4252fi 4253rm -f core conftest.err conftest.$ac_objext 4254 test "x$ac_cv_prog_cc_c89" != "xno" && break 4255done 4256rm -f conftest.$ac_ext 4257CC=$ac_save_CC 4258 4259fi 4260# AC_CACHE_VAL 4261case "x$ac_cv_prog_cc_c89" in 4262 x) 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4264$as_echo "none needed" >&6; } ;; 4265 xno) 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4267$as_echo "unsupported" >&6; } ;; 4268 *) 4269 CC="$CC $ac_cv_prog_cc_c89" 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4271$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4272esac 4273if test "x$ac_cv_prog_cc_c89" != xno; then : 4274 4275fi 4276 4277ac_ext=c 4278ac_cpp='$CPP $CPPFLAGS' 4279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4281ac_compiler_gnu=$ac_cv_c_compiler_gnu 4282 4283ac_ext=c 4284ac_cpp='$CPP $CPPFLAGS' 4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4287ac_compiler_gnu=$ac_cv_c_compiler_gnu 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4289$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4290if ${am_cv_prog_cc_c_o+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294/* end confdefs.h. */ 4295 4296int 4297main () 4298{ 4299 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304 # Make sure it works both with $CC and with simple cc. 4305 # Following AC_PROG_CC_C_O, we do the test twice because some 4306 # compilers refuse to overwrite an existing .o file with -o, 4307 # though they will create one. 4308 am_cv_prog_cc_c_o=yes 4309 for am_i in 1 2; do 4310 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4311 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4312 ac_status=$? 4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4314 (exit $ac_status); } \ 4315 && test -f conftest2.$ac_objext; then 4316 : OK 4317 else 4318 am_cv_prog_cc_c_o=no 4319 break 4320 fi 4321 done 4322 rm -f core conftest* 4323 unset am_i 4324fi 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4326$as_echo "$am_cv_prog_cc_c_o" >&6; } 4327if test "$am_cv_prog_cc_c_o" != yes; then 4328 # Losing compiler, so override with the script. 4329 # FIXME: It is wrong to rewrite CC. 4330 # But if we don't then we get into trouble of one sort or another. 4331 # A longer-term fix would be to have automake use am__CC in this case, 4332 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4333 CC="$am_aux_dir/compile $CC" 4334fi 4335ac_ext=c 4336ac_cpp='$CPP $CPPFLAGS' 4337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4339ac_compiler_gnu=$ac_cv_c_compiler_gnu 4340 4341 4342depcc="$CC" am_compiler_list= 4343 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4345$as_echo_n "checking dependency style of $depcc... " >&6; } 4346if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4347 $as_echo_n "(cached) " >&6 4348else 4349 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4350 # We make a subdir and do the tests there. Otherwise we can end up 4351 # making bogus files that we don't know about and never remove. For 4352 # instance it was reported that on HP-UX the gcc test will end up 4353 # making a dummy file named 'D' -- because '-MD' means "put the output 4354 # in D". 4355 rm -rf conftest.dir 4356 mkdir conftest.dir 4357 # Copy depcomp to subdir because otherwise we won't find it if we're 4358 # using a relative directory. 4359 cp "$am_depcomp" conftest.dir 4360 cd conftest.dir 4361 # We will build objects and dependencies in a subdirectory because 4362 # it helps to detect inapplicable dependency modes. For instance 4363 # both Tru64's cc and ICC support -MD to output dependencies as a 4364 # side effect of compilation, but ICC will put the dependencies in 4365 # the current directory while Tru64 will put them in the object 4366 # directory. 4367 mkdir sub 4368 4369 am_cv_CC_dependencies_compiler_type=none 4370 if test "$am_compiler_list" = ""; then 4371 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4372 fi 4373 am__universal=false 4374 case " $depcc " in #( 4375 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4376 esac 4377 4378 for depmode in $am_compiler_list; do 4379 # Setup a source with many dependencies, because some compilers 4380 # like to wrap large dependency lists on column 80 (with \), and 4381 # we should not choose a depcomp mode which is confused by this. 4382 # 4383 # We need to recreate these files for each test, as the compiler may 4384 # overwrite some of them when testing with obscure command lines. 4385 # This happens at least with the AIX C compiler. 4386 : > sub/conftest.c 4387 for i in 1 2 3 4 5 6; do 4388 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4389 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4390 # Solaris 10 /bin/sh. 4391 echo '/* dummy */' > sub/conftst$i.h 4392 done 4393 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4394 4395 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4396 # mode. It turns out that the SunPro C++ compiler does not properly 4397 # handle '-M -o', and we need to detect this. Also, some Intel 4398 # versions had trouble with output in subdirs. 4399 am__obj=sub/conftest.${OBJEXT-o} 4400 am__minus_obj="-o $am__obj" 4401 case $depmode in 4402 gcc) 4403 # This depmode causes a compiler race in universal mode. 4404 test "$am__universal" = false || continue 4405 ;; 4406 nosideeffect) 4407 # After this tag, mechanisms are not by side-effect, so they'll 4408 # only be used when explicitly requested. 4409 if test "x$enable_dependency_tracking" = xyes; then 4410 continue 4411 else 4412 break 4413 fi 4414 ;; 4415 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4416 # This compiler won't grok '-c -o', but also, the minuso test has 4417 # not run yet. These depmodes are late enough in the game, and 4418 # so weak that their functioning should not be impacted. 4419 am__obj=conftest.${OBJEXT-o} 4420 am__minus_obj= 4421 ;; 4422 none) break ;; 4423 esac 4424 if depmode=$depmode \ 4425 source=sub/conftest.c object=$am__obj \ 4426 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4427 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4428 >/dev/null 2>conftest.err && 4429 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4430 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4431 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4432 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4433 # icc doesn't choke on unknown options, it will just issue warnings 4434 # or remarks (even with -Werror). So we grep stderr for any message 4435 # that says an option was ignored or not supported. 4436 # When given -MP, icc 7.0 and 7.1 complain thusly: 4437 # icc: Command line warning: ignoring option '-M'; no argument required 4438 # The diagnosis changed in icc 8.0: 4439 # icc: Command line remark: option '-MP' not supported 4440 if (grep 'ignoring option' conftest.err || 4441 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4442 am_cv_CC_dependencies_compiler_type=$depmode 4443 break 4444 fi 4445 fi 4446 done 4447 4448 cd .. 4449 rm -rf conftest.dir 4450else 4451 am_cv_CC_dependencies_compiler_type=none 4452fi 4453 4454fi 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4456$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4457CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4458 4459 if 4460 test "x$enable_dependency_tracking" != xno \ 4461 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4462 am__fastdepCC_TRUE= 4463 am__fastdepCC_FALSE='#' 4464else 4465 am__fastdepCC_TRUE='#' 4466 am__fastdepCC_FALSE= 4467fi 4468 4469 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4471$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4472if ${ac_cv_path_SED+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474else 4475 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4476 for ac_i in 1 2 3 4 5 6 7; do 4477 ac_script="$ac_script$as_nl$ac_script" 4478 done 4479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4480 { ac_script=; unset ac_script;} 4481 if test -z "$SED"; then 4482 ac_path_SED_found=false 4483 # Loop through the user's path and test for each of PROGNAME-LIST 4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4485for as_dir in $PATH 4486do 4487 IFS=$as_save_IFS 4488 test -z "$as_dir" && as_dir=. 4489 for ac_prog in sed gsed; do 4490 for ac_exec_ext in '' $ac_executable_extensions; do 4491 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4492 as_fn_executable_p "$ac_path_SED" || continue 4493# Check for GNU ac_path_SED and select it if it is found. 4494 # Check for GNU $ac_path_SED 4495case `"$ac_path_SED" --version 2>&1` in 4496*GNU*) 4497 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4498*) 4499 ac_count=0 4500 $as_echo_n 0123456789 >"conftest.in" 4501 while : 4502 do 4503 cat "conftest.in" "conftest.in" >"conftest.tmp" 4504 mv "conftest.tmp" "conftest.in" 4505 cp "conftest.in" "conftest.nl" 4506 $as_echo '' >> "conftest.nl" 4507 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4509 as_fn_arith $ac_count + 1 && ac_count=$as_val 4510 if test $ac_count -gt ${ac_path_SED_max-0}; then 4511 # Best one so far, save it but keep looking for a better one 4512 ac_cv_path_SED="$ac_path_SED" 4513 ac_path_SED_max=$ac_count 4514 fi 4515 # 10*(2^10) chars as input seems more than enough 4516 test $ac_count -gt 10 && break 4517 done 4518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4519esac 4520 4521 $ac_path_SED_found && break 3 4522 done 4523 done 4524 done 4525IFS=$as_save_IFS 4526 if test -z "$ac_cv_path_SED"; then 4527 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4528 fi 4529else 4530 ac_cv_path_SED=$SED 4531fi 4532 4533fi 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4535$as_echo "$ac_cv_path_SED" >&6; } 4536 SED="$ac_cv_path_SED" 4537 rm -f conftest.sed 4538 4539test -z "$SED" && SED=sed 4540Xsed="$SED -e 1s/^X//" 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4553$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4554if ${ac_cv_path_GREP+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 if test -z "$GREP"; then 4558 ac_path_GREP_found=false 4559 # Loop through the user's path and test for each of PROGNAME-LIST 4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4562do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_prog in grep ggrep; do 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4568 as_fn_executable_p "$ac_path_GREP" || continue 4569# Check for GNU ac_path_GREP and select it if it is found. 4570 # Check for GNU $ac_path_GREP 4571case `"$ac_path_GREP" --version 2>&1` in 4572*GNU*) 4573 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4574*) 4575 ac_count=0 4576 $as_echo_n 0123456789 >"conftest.in" 4577 while : 4578 do 4579 cat "conftest.in" "conftest.in" >"conftest.tmp" 4580 mv "conftest.tmp" "conftest.in" 4581 cp "conftest.in" "conftest.nl" 4582 $as_echo 'GREP' >> "conftest.nl" 4583 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4585 as_fn_arith $ac_count + 1 && ac_count=$as_val 4586 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4587 # Best one so far, save it but keep looking for a better one 4588 ac_cv_path_GREP="$ac_path_GREP" 4589 ac_path_GREP_max=$ac_count 4590 fi 4591 # 10*(2^10) chars as input seems more than enough 4592 test $ac_count -gt 10 && break 4593 done 4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4595esac 4596 4597 $ac_path_GREP_found && break 3 4598 done 4599 done 4600 done 4601IFS=$as_save_IFS 4602 if test -z "$ac_cv_path_GREP"; then 4603 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4604 fi 4605else 4606 ac_cv_path_GREP=$GREP 4607fi 4608 4609fi 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4611$as_echo "$ac_cv_path_GREP" >&6; } 4612 GREP="$ac_cv_path_GREP" 4613 4614 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4616$as_echo_n "checking for egrep... " >&6; } 4617if ${ac_cv_path_EGREP+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4621 then ac_cv_path_EGREP="$GREP -E" 4622 else 4623 if test -z "$EGREP"; then 4624 ac_path_EGREP_found=false 4625 # Loop through the user's path and test for each of PROGNAME-LIST 4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4628do 4629 IFS=$as_save_IFS 4630 test -z "$as_dir" && as_dir=. 4631 for ac_prog in egrep; do 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4634 as_fn_executable_p "$ac_path_EGREP" || continue 4635# Check for GNU ac_path_EGREP and select it if it is found. 4636 # Check for GNU $ac_path_EGREP 4637case `"$ac_path_EGREP" --version 2>&1` in 4638*GNU*) 4639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4640*) 4641 ac_count=0 4642 $as_echo_n 0123456789 >"conftest.in" 4643 while : 4644 do 4645 cat "conftest.in" "conftest.in" >"conftest.tmp" 4646 mv "conftest.tmp" "conftest.in" 4647 cp "conftest.in" "conftest.nl" 4648 $as_echo 'EGREP' >> "conftest.nl" 4649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4651 as_fn_arith $ac_count + 1 && ac_count=$as_val 4652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4653 # Best one so far, save it but keep looking for a better one 4654 ac_cv_path_EGREP="$ac_path_EGREP" 4655 ac_path_EGREP_max=$ac_count 4656 fi 4657 # 10*(2^10) chars as input seems more than enough 4658 test $ac_count -gt 10 && break 4659 done 4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4661esac 4662 4663 $ac_path_EGREP_found && break 3 4664 done 4665 done 4666 done 4667IFS=$as_save_IFS 4668 if test -z "$ac_cv_path_EGREP"; then 4669 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4670 fi 4671else 4672 ac_cv_path_EGREP=$EGREP 4673fi 4674 4675 fi 4676fi 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4678$as_echo "$ac_cv_path_EGREP" >&6; } 4679 EGREP="$ac_cv_path_EGREP" 4680 4681 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4683$as_echo_n "checking for fgrep... " >&6; } 4684if ${ac_cv_path_FGREP+:} false; then : 4685 $as_echo_n "(cached) " >&6 4686else 4687 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4688 then ac_cv_path_FGREP="$GREP -F" 4689 else 4690 if test -z "$FGREP"; then 4691 ac_path_FGREP_found=false 4692 # Loop through the user's path and test for each of PROGNAME-LIST 4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4694for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4695do 4696 IFS=$as_save_IFS 4697 test -z "$as_dir" && as_dir=. 4698 for ac_prog in fgrep; do 4699 for ac_exec_ext in '' $ac_executable_extensions; do 4700 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4701 as_fn_executable_p "$ac_path_FGREP" || continue 4702# Check for GNU ac_path_FGREP and select it if it is found. 4703 # Check for GNU $ac_path_FGREP 4704case `"$ac_path_FGREP" --version 2>&1` in 4705*GNU*) 4706 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4707*) 4708 ac_count=0 4709 $as_echo_n 0123456789 >"conftest.in" 4710 while : 4711 do 4712 cat "conftest.in" "conftest.in" >"conftest.tmp" 4713 mv "conftest.tmp" "conftest.in" 4714 cp "conftest.in" "conftest.nl" 4715 $as_echo 'FGREP' >> "conftest.nl" 4716 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4718 as_fn_arith $ac_count + 1 && ac_count=$as_val 4719 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4720 # Best one so far, save it but keep looking for a better one 4721 ac_cv_path_FGREP="$ac_path_FGREP" 4722 ac_path_FGREP_max=$ac_count 4723 fi 4724 # 10*(2^10) chars as input seems more than enough 4725 test $ac_count -gt 10 && break 4726 done 4727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4728esac 4729 4730 $ac_path_FGREP_found && break 3 4731 done 4732 done 4733 done 4734IFS=$as_save_IFS 4735 if test -z "$ac_cv_path_FGREP"; then 4736 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4737 fi 4738else 4739 ac_cv_path_FGREP=$FGREP 4740fi 4741 4742 fi 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4745$as_echo "$ac_cv_path_FGREP" >&6; } 4746 FGREP="$ac_cv_path_FGREP" 4747 4748 4749test -z "$GREP" && GREP=grep 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769# Check whether --with-gnu-ld was given. 4770if test "${with_gnu_ld+set}" = set; then : 4771 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4772else 4773 with_gnu_ld=no 4774fi 4775 4776ac_prog=ld 4777if test yes = "$GCC"; then 4778 # Check if gcc -print-prog-name=ld gives a path. 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4780$as_echo_n "checking for ld used by $CC... " >&6; } 4781 case $host in 4782 *-*-mingw*) 4783 # gcc leaves a trailing carriage return, which upsets mingw 4784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4785 *) 4786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4787 esac 4788 case $ac_prog in 4789 # Accept absolute paths. 4790 [\\/]* | ?:[\\/]*) 4791 re_direlt='/[^/][^/]*/\.\./' 4792 # Canonicalize the pathname of ld 4793 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4794 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4795 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4796 done 4797 test -z "$LD" && LD=$ac_prog 4798 ;; 4799 "") 4800 # If it fails, then pretend we aren't using GCC. 4801 ac_prog=ld 4802 ;; 4803 *) 4804 # If it is relative, then search for the first ld in PATH. 4805 with_gnu_ld=unknown 4806 ;; 4807 esac 4808elif test yes = "$with_gnu_ld"; then 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4810$as_echo_n "checking for GNU ld... " >&6; } 4811else 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4813$as_echo_n "checking for non-GNU ld... " >&6; } 4814fi 4815if ${lt_cv_path_LD+:} false; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 if test -z "$LD"; then 4819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4820 for ac_dir in $PATH; do 4821 IFS=$lt_save_ifs 4822 test -z "$ac_dir" && ac_dir=. 4823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4824 lt_cv_path_LD=$ac_dir/$ac_prog 4825 # Check to see if the program is GNU ld. I'd rather use --version, 4826 # but apparently some variants of GNU ld only accept -v. 4827 # Break only if it was the GNU/non-GNU ld that we prefer. 4828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4829 *GNU* | *'with BFD'*) 4830 test no != "$with_gnu_ld" && break 4831 ;; 4832 *) 4833 test yes != "$with_gnu_ld" && break 4834 ;; 4835 esac 4836 fi 4837 done 4838 IFS=$lt_save_ifs 4839else 4840 lt_cv_path_LD=$LD # Let the user override the test with a path. 4841fi 4842fi 4843 4844LD=$lt_cv_path_LD 4845if test -n "$LD"; then 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4847$as_echo "$LD" >&6; } 4848else 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4850$as_echo "no" >&6; } 4851fi 4852test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4854$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4855if ${lt_cv_prog_gnu_ld+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4859case `$LD -v 2>&1 </dev/null` in 4860*GNU* | *'with BFD'*) 4861 lt_cv_prog_gnu_ld=yes 4862 ;; 4863*) 4864 lt_cv_prog_gnu_ld=no 4865 ;; 4866esac 4867fi 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4869$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4870with_gnu_ld=$lt_cv_prog_gnu_ld 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4881$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4882if ${lt_cv_path_NM+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 if test -n "$NM"; then 4886 # Let the user override the test. 4887 lt_cv_path_NM=$NM 4888else 4889 lt_nm_to_check=${ac_tool_prefix}nm 4890 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4891 lt_nm_to_check="$lt_nm_to_check nm" 4892 fi 4893 for lt_tmp_nm in $lt_nm_to_check; do 4894 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4895 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4896 IFS=$lt_save_ifs 4897 test -z "$ac_dir" && ac_dir=. 4898 tmp_nm=$ac_dir/$lt_tmp_nm 4899 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4900 # Check to see if the nm accepts a BSD-compat flag. 4901 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4902 # nm: unknown option "B" ignored 4903 # Tru64's nm complains that /dev/null is an invalid object file 4904 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4905 case $build_os in 4906 mingw*) lt_bad_file=conftest.nm/nofile ;; 4907 *) lt_bad_file=/dev/null ;; 4908 esac 4909 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4910 *$lt_bad_file* | *'Invalid file or object type'*) 4911 lt_cv_path_NM="$tmp_nm -B" 4912 break 2 4913 ;; 4914 *) 4915 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4916 */dev/null*) 4917 lt_cv_path_NM="$tmp_nm -p" 4918 break 2 4919 ;; 4920 *) 4921 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4922 continue # so that we can try to find one that supports BSD flags 4923 ;; 4924 esac 4925 ;; 4926 esac 4927 fi 4928 done 4929 IFS=$lt_save_ifs 4930 done 4931 : ${lt_cv_path_NM=no} 4932fi 4933fi 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4935$as_echo "$lt_cv_path_NM" >&6; } 4936if test no != "$lt_cv_path_NM"; then 4937 NM=$lt_cv_path_NM 4938else 4939 # Didn't find any BSD compatible name lister, look for dumpbin. 4940 if test -n "$DUMPBIN"; then : 4941 # Let the user override the test. 4942 else 4943 if test -n "$ac_tool_prefix"; then 4944 for ac_prog in dumpbin "link -dump" 4945 do 4946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4947set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4949$as_echo_n "checking for $ac_word... " >&6; } 4950if ${ac_cv_prog_DUMPBIN+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 if test -n "$DUMPBIN"; then 4954 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4955else 4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4957for as_dir in $PATH 4958do 4959 IFS=$as_save_IFS 4960 test -z "$as_dir" && as_dir=. 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4963 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4965 break 2 4966 fi 4967done 4968 done 4969IFS=$as_save_IFS 4970 4971fi 4972fi 4973DUMPBIN=$ac_cv_prog_DUMPBIN 4974if test -n "$DUMPBIN"; then 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4976$as_echo "$DUMPBIN" >&6; } 4977else 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4979$as_echo "no" >&6; } 4980fi 4981 4982 4983 test -n "$DUMPBIN" && break 4984 done 4985fi 4986if test -z "$DUMPBIN"; then 4987 ac_ct_DUMPBIN=$DUMPBIN 4988 for ac_prog in dumpbin "link -dump" 4989do 4990 # Extract the first word of "$ac_prog", so it can be a program name with args. 4991set dummy $ac_prog; ac_word=$2 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4993$as_echo_n "checking for $ac_word... " >&6; } 4994if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 if test -n "$ac_ct_DUMPBIN"; then 4998 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4999else 5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5001for as_dir in $PATH 5002do 5003 IFS=$as_save_IFS 5004 test -z "$as_dir" && as_dir=. 5005 for ac_exec_ext in '' $ac_executable_extensions; do 5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5007 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5009 break 2 5010 fi 5011done 5012 done 5013IFS=$as_save_IFS 5014 5015fi 5016fi 5017ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5018if test -n "$ac_ct_DUMPBIN"; then 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5020$as_echo "$ac_ct_DUMPBIN" >&6; } 5021else 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5023$as_echo "no" >&6; } 5024fi 5025 5026 5027 test -n "$ac_ct_DUMPBIN" && break 5028done 5029 5030 if test "x$ac_ct_DUMPBIN" = x; then 5031 DUMPBIN=":" 5032 else 5033 case $cross_compiling:$ac_tool_warned in 5034yes:) 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5037ac_tool_warned=yes ;; 5038esac 5039 DUMPBIN=$ac_ct_DUMPBIN 5040 fi 5041fi 5042 5043 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5044 *COFF*) 5045 DUMPBIN="$DUMPBIN -symbols -headers" 5046 ;; 5047 *) 5048 DUMPBIN=: 5049 ;; 5050 esac 5051 fi 5052 5053 if test : != "$DUMPBIN"; then 5054 NM=$DUMPBIN 5055 fi 5056fi 5057test -z "$NM" && NM=nm 5058 5059 5060 5061 5062 5063 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5065$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5066if ${lt_cv_nm_interface+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 lt_cv_nm_interface="BSD nm" 5070 echo "int some_variable = 0;" > conftest.$ac_ext 5071 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5072 (eval "$ac_compile" 2>conftest.err) 5073 cat conftest.err >&5 5074 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5075 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5076 cat conftest.err >&5 5077 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5078 cat conftest.out >&5 5079 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5080 lt_cv_nm_interface="MS dumpbin" 5081 fi 5082 rm -f conftest* 5083fi 5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5085$as_echo "$lt_cv_nm_interface" >&6; } 5086 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5088$as_echo_n "checking whether ln -s works... " >&6; } 5089LN_S=$as_ln_s 5090if test "$LN_S" = "ln -s"; then 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5092$as_echo "yes" >&6; } 5093else 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5095$as_echo "no, using $LN_S" >&6; } 5096fi 5097 5098# find the maximum length of command line arguments 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5100$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5101if ${lt_cv_sys_max_cmd_len+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103else 5104 i=0 5105 teststring=ABCD 5106 5107 case $build_os in 5108 msdosdjgpp*) 5109 # On DJGPP, this test can blow up pretty badly due to problems in libc 5110 # (any single argument exceeding 2000 bytes causes a buffer overrun 5111 # during glob expansion). Even if it were fixed, the result of this 5112 # check would be larger than it should be. 5113 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5114 ;; 5115 5116 gnu*) 5117 # Under GNU Hurd, this test is not required because there is 5118 # no limit to the length of command line arguments. 5119 # Libtool will interpret -1 as no limit whatsoever 5120 lt_cv_sys_max_cmd_len=-1; 5121 ;; 5122 5123 cygwin* | mingw* | cegcc*) 5124 # On Win9x/ME, this test blows up -- it succeeds, but takes 5125 # about 5 minutes as the teststring grows exponentially. 5126 # Worse, since 9x/ME are not pre-emptively multitasking, 5127 # you end up with a "frozen" computer, even though with patience 5128 # the test eventually succeeds (with a max line length of 256k). 5129 # Instead, let's just punt: use the minimum linelength reported by 5130 # all of the supported platforms: 8192 (on NT/2K/XP). 5131 lt_cv_sys_max_cmd_len=8192; 5132 ;; 5133 5134 mint*) 5135 # On MiNT this can take a long time and run out of memory. 5136 lt_cv_sys_max_cmd_len=8192; 5137 ;; 5138 5139 amigaos*) 5140 # On AmigaOS with pdksh, this test takes hours, literally. 5141 # So we just punt and use a minimum line length of 8192. 5142 lt_cv_sys_max_cmd_len=8192; 5143 ;; 5144 5145 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5146 # This has been around since 386BSD, at least. Likely further. 5147 if test -x /sbin/sysctl; then 5148 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5149 elif test -x /usr/sbin/sysctl; then 5150 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5151 else 5152 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5153 fi 5154 # And add a safety zone 5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5157 ;; 5158 5159 interix*) 5160 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5161 lt_cv_sys_max_cmd_len=196608 5162 ;; 5163 5164 os2*) 5165 # The test takes a long time on OS/2. 5166 lt_cv_sys_max_cmd_len=8192 5167 ;; 5168 5169 osf*) 5170 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5171 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5172 # nice to cause kernel panics so lets avoid the loop below. 5173 # First set a reasonable default. 5174 lt_cv_sys_max_cmd_len=16384 5175 # 5176 if test -x /sbin/sysconfig; then 5177 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5178 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5179 esac 5180 fi 5181 ;; 5182 sco3.2v5*) 5183 lt_cv_sys_max_cmd_len=102400 5184 ;; 5185 sysv5* | sco5v6* | sysv4.2uw2*) 5186 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5187 if test -n "$kargmax"; then 5188 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5189 else 5190 lt_cv_sys_max_cmd_len=32768 5191 fi 5192 ;; 5193 *) 5194 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5195 if test -n "$lt_cv_sys_max_cmd_len" && \ 5196 test undefined != "$lt_cv_sys_max_cmd_len"; then 5197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5199 else 5200 # Make teststring a little bigger before we do anything with it. 5201 # a 1K string should be a reasonable start. 5202 for i in 1 2 3 4 5 6 7 8; do 5203 teststring=$teststring$teststring 5204 done 5205 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5206 # If test is not a shell built-in, we'll probably end up computing a 5207 # maximum length that is only half of the actual maximum length, but 5208 # we can't tell. 5209 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5210 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5211 test 17 != "$i" # 1/2 MB should be enough 5212 do 5213 i=`expr $i + 1` 5214 teststring=$teststring$teststring 5215 done 5216 # Only check the string length outside the loop. 5217 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5218 teststring= 5219 # Add a significant safety factor because C++ compilers can tack on 5220 # massive amounts of additional arguments before passing them to the 5221 # linker. It appears as though 1/2 is a usable value. 5222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5223 fi 5224 ;; 5225 esac 5226 5227fi 5228 5229if test -n "$lt_cv_sys_max_cmd_len"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5231$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5232else 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5234$as_echo "none" >&6; } 5235fi 5236max_cmd_len=$lt_cv_sys_max_cmd_len 5237 5238 5239 5240 5241 5242 5243: ${CP="cp -f"} 5244: ${MV="mv -f"} 5245: ${RM="rm -f"} 5246 5247if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5248 lt_unset=unset 5249else 5250 lt_unset=false 5251fi 5252 5253 5254 5255 5256 5257# test EBCDIC or ASCII 5258case `echo X|tr X '\101'` in 5259 A) # ASCII based system 5260 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5261 lt_SP2NL='tr \040 \012' 5262 lt_NL2SP='tr \015\012 \040\040' 5263 ;; 5264 *) # EBCDIC based system 5265 lt_SP2NL='tr \100 \n' 5266 lt_NL2SP='tr \r\n \100\100' 5267 ;; 5268esac 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5279$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5280if ${lt_cv_to_host_file_cmd+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 case $host in 5284 *-*-mingw* ) 5285 case $build in 5286 *-*-mingw* ) # actually msys 5287 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5288 ;; 5289 *-*-cygwin* ) 5290 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5291 ;; 5292 * ) # otherwise, assume *nix 5293 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5294 ;; 5295 esac 5296 ;; 5297 *-*-cygwin* ) 5298 case $build in 5299 *-*-mingw* ) # actually msys 5300 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5301 ;; 5302 *-*-cygwin* ) 5303 lt_cv_to_host_file_cmd=func_convert_file_noop 5304 ;; 5305 * ) # otherwise, assume *nix 5306 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5307 ;; 5308 esac 5309 ;; 5310 * ) # unhandled hosts (and "normal" native builds) 5311 lt_cv_to_host_file_cmd=func_convert_file_noop 5312 ;; 5313esac 5314 5315fi 5316 5317to_host_file_cmd=$lt_cv_to_host_file_cmd 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5319$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5320 5321 5322 5323 5324 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5326$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5327if ${lt_cv_to_tool_file_cmd+:} false; then : 5328 $as_echo_n "(cached) " >&6 5329else 5330 #assume ordinary cross tools, or native build. 5331lt_cv_to_tool_file_cmd=func_convert_file_noop 5332case $host in 5333 *-*-mingw* ) 5334 case $build in 5335 *-*-mingw* ) # actually msys 5336 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5337 ;; 5338 esac 5339 ;; 5340esac 5341 5342fi 5343 5344to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5346$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5347 5348 5349 5350 5351 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5353$as_echo_n "checking for $LD option to reload object files... " >&6; } 5354if ${lt_cv_ld_reload_flag+:} false; then : 5355 $as_echo_n "(cached) " >&6 5356else 5357 lt_cv_ld_reload_flag='-r' 5358fi 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5360$as_echo "$lt_cv_ld_reload_flag" >&6; } 5361reload_flag=$lt_cv_ld_reload_flag 5362case $reload_flag in 5363"" | " "*) ;; 5364*) reload_flag=" $reload_flag" ;; 5365esac 5366reload_cmds='$LD$reload_flag -o $output$reload_objs' 5367case $host_os in 5368 cygwin* | mingw* | pw32* | cegcc*) 5369 if test yes != "$GCC"; then 5370 reload_cmds=false 5371 fi 5372 ;; 5373 darwin*) 5374 if test yes = "$GCC"; then 5375 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5376 else 5377 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5378 fi 5379 ;; 5380esac 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390if test -n "$ac_tool_prefix"; then 5391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5392set dummy ${ac_tool_prefix}objdump; ac_word=$2 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5394$as_echo_n "checking for $ac_word... " >&6; } 5395if ${ac_cv_prog_OBJDUMP+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 if test -n "$OBJDUMP"; then 5399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5400else 5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5402for as_dir in $PATH 5403do 5404 IFS=$as_save_IFS 5405 test -z "$as_dir" && as_dir=. 5406 for ac_exec_ext in '' $ac_executable_extensions; do 5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5410 break 2 5411 fi 5412done 5413 done 5414IFS=$as_save_IFS 5415 5416fi 5417fi 5418OBJDUMP=$ac_cv_prog_OBJDUMP 5419if test -n "$OBJDUMP"; then 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5421$as_echo "$OBJDUMP" >&6; } 5422else 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5424$as_echo "no" >&6; } 5425fi 5426 5427 5428fi 5429if test -z "$ac_cv_prog_OBJDUMP"; then 5430 ac_ct_OBJDUMP=$OBJDUMP 5431 # Extract the first word of "objdump", so it can be a program name with args. 5432set dummy objdump; ac_word=$2 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5434$as_echo_n "checking for $ac_word... " >&6; } 5435if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 if test -n "$ac_ct_OBJDUMP"; then 5439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5440else 5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5442for as_dir in $PATH 5443do 5444 IFS=$as_save_IFS 5445 test -z "$as_dir" && as_dir=. 5446 for ac_exec_ext in '' $ac_executable_extensions; do 5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5448 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5450 break 2 5451 fi 5452done 5453 done 5454IFS=$as_save_IFS 5455 5456fi 5457fi 5458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5459if test -n "$ac_ct_OBJDUMP"; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5461$as_echo "$ac_ct_OBJDUMP" >&6; } 5462else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5464$as_echo "no" >&6; } 5465fi 5466 5467 if test "x$ac_ct_OBJDUMP" = x; then 5468 OBJDUMP="false" 5469 else 5470 case $cross_compiling:$ac_tool_warned in 5471yes:) 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5474ac_tool_warned=yes ;; 5475esac 5476 OBJDUMP=$ac_ct_OBJDUMP 5477 fi 5478else 5479 OBJDUMP="$ac_cv_prog_OBJDUMP" 5480fi 5481 5482test -z "$OBJDUMP" && OBJDUMP=objdump 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5493$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5494if ${lt_cv_deplibs_check_method+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496else 5497 lt_cv_file_magic_cmd='$MAGIC_CMD' 5498lt_cv_file_magic_test_file= 5499lt_cv_deplibs_check_method='unknown' 5500# Need to set the preceding variable on all platforms that support 5501# interlibrary dependencies. 5502# 'none' -- dependencies not supported. 5503# 'unknown' -- same as none, but documents that we really don't know. 5504# 'pass_all' -- all dependencies passed with no checks. 5505# 'test_compile' -- check by making test program. 5506# 'file_magic [[regex]]' -- check by looking for files in library path 5507# that responds to the $file_magic_cmd with a given extended regex. 5508# If you have 'file' or equivalent on your system and you're not sure 5509# whether 'pass_all' will *always* work, you probably want this one. 5510 5511case $host_os in 5512aix[4-9]*) 5513 lt_cv_deplibs_check_method=pass_all 5514 ;; 5515 5516beos*) 5517 lt_cv_deplibs_check_method=pass_all 5518 ;; 5519 5520bsdi[45]*) 5521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5522 lt_cv_file_magic_cmd='/usr/bin/file -L' 5523 lt_cv_file_magic_test_file=/shlib/libc.so 5524 ;; 5525 5526cygwin*) 5527 # func_win32_libid is a shell function defined in ltmain.sh 5528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5529 lt_cv_file_magic_cmd='func_win32_libid' 5530 ;; 5531 5532mingw* | pw32*) 5533 # Base MSYS/MinGW do not provide the 'file' command needed by 5534 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5535 # unless we find 'file', for example because we are cross-compiling. 5536 if ( file / ) >/dev/null 2>&1; then 5537 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5538 lt_cv_file_magic_cmd='func_win32_libid' 5539 else 5540 # Keep this pattern in sync with the one in func_win32_libid. 5541 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5542 lt_cv_file_magic_cmd='$OBJDUMP -f' 5543 fi 5544 ;; 5545 5546cegcc*) 5547 # use the weaker test based on 'objdump'. See mingw*. 5548 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5549 lt_cv_file_magic_cmd='$OBJDUMP -f' 5550 ;; 5551 5552darwin* | rhapsody*) 5553 lt_cv_deplibs_check_method=pass_all 5554 ;; 5555 5556freebsd* | dragonfly*) 5557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5558 case $host_cpu in 5559 i*86 ) 5560 # Not sure whether the presence of OpenBSD here was a mistake. 5561 # Let's accept both of them until this is cleared up. 5562 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5563 lt_cv_file_magic_cmd=/usr/bin/file 5564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5565 ;; 5566 esac 5567 else 5568 lt_cv_deplibs_check_method=pass_all 5569 fi 5570 ;; 5571 5572haiku*) 5573 lt_cv_deplibs_check_method=pass_all 5574 ;; 5575 5576hpux10.20* | hpux11*) 5577 lt_cv_file_magic_cmd=/usr/bin/file 5578 case $host_cpu in 5579 ia64*) 5580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5581 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5582 ;; 5583 hppa*64*) 5584 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]' 5585 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5586 ;; 5587 *) 5588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5589 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5590 ;; 5591 esac 5592 ;; 5593 5594interix[3-9]*) 5595 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5597 ;; 5598 5599irix5* | irix6* | nonstopux*) 5600 case $LD in 5601 *-32|*"-32 ") libmagic=32-bit;; 5602 *-n32|*"-n32 ") libmagic=N32;; 5603 *-64|*"-64 ") libmagic=64-bit;; 5604 *) libmagic=never-match;; 5605 esac 5606 lt_cv_deplibs_check_method=pass_all 5607 ;; 5608 5609# This must be glibc/ELF. 5610linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5611 lt_cv_deplibs_check_method=pass_all 5612 ;; 5613 5614netbsd*) 5615 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5617 else 5618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5619 fi 5620 ;; 5621 5622newos6*) 5623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5624 lt_cv_file_magic_cmd=/usr/bin/file 5625 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5626 ;; 5627 5628*nto* | *qnx*) 5629 lt_cv_deplibs_check_method=pass_all 5630 ;; 5631 5632openbsd* | bitrig*) 5633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5635 else 5636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5637 fi 5638 ;; 5639 5640osf3* | osf4* | osf5*) 5641 lt_cv_deplibs_check_method=pass_all 5642 ;; 5643 5644rdos*) 5645 lt_cv_deplibs_check_method=pass_all 5646 ;; 5647 5648solaris*) 5649 lt_cv_deplibs_check_method=pass_all 5650 ;; 5651 5652sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5653 lt_cv_deplibs_check_method=pass_all 5654 ;; 5655 5656sysv4 | sysv4.3*) 5657 case $host_vendor in 5658 motorola) 5659 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]' 5660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5661 ;; 5662 ncr) 5663 lt_cv_deplibs_check_method=pass_all 5664 ;; 5665 sequent) 5666 lt_cv_file_magic_cmd='/bin/file' 5667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5668 ;; 5669 sni) 5670 lt_cv_file_magic_cmd='/bin/file' 5671 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5672 lt_cv_file_magic_test_file=/lib/libc.so 5673 ;; 5674 siemens) 5675 lt_cv_deplibs_check_method=pass_all 5676 ;; 5677 pc) 5678 lt_cv_deplibs_check_method=pass_all 5679 ;; 5680 esac 5681 ;; 5682 5683tpf*) 5684 lt_cv_deplibs_check_method=pass_all 5685 ;; 5686os2*) 5687 lt_cv_deplibs_check_method=pass_all 5688 ;; 5689esac 5690 5691fi 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5693$as_echo "$lt_cv_deplibs_check_method" >&6; } 5694 5695file_magic_glob= 5696want_nocaseglob=no 5697if test "$build" = "$host"; then 5698 case $host_os in 5699 mingw* | pw32*) 5700 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5701 want_nocaseglob=yes 5702 else 5703 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5704 fi 5705 ;; 5706 esac 5707fi 5708 5709file_magic_cmd=$lt_cv_file_magic_cmd 5710deplibs_check_method=$lt_cv_deplibs_check_method 5711test -z "$deplibs_check_method" && deplibs_check_method=unknown 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734if test -n "$ac_tool_prefix"; then 5735 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5736set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5738$as_echo_n "checking for $ac_word... " >&6; } 5739if ${ac_cv_prog_DLLTOOL+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 if test -n "$DLLTOOL"; then 5743 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5744else 5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5746for as_dir in $PATH 5747do 5748 IFS=$as_save_IFS 5749 test -z "$as_dir" && as_dir=. 5750 for ac_exec_ext in '' $ac_executable_extensions; do 5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5752 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5754 break 2 5755 fi 5756done 5757 done 5758IFS=$as_save_IFS 5759 5760fi 5761fi 5762DLLTOOL=$ac_cv_prog_DLLTOOL 5763if test -n "$DLLTOOL"; then 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5765$as_echo "$DLLTOOL" >&6; } 5766else 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5768$as_echo "no" >&6; } 5769fi 5770 5771 5772fi 5773if test -z "$ac_cv_prog_DLLTOOL"; then 5774 ac_ct_DLLTOOL=$DLLTOOL 5775 # Extract the first word of "dlltool", so it can be a program name with args. 5776set dummy dlltool; ac_word=$2 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5778$as_echo_n "checking for $ac_word... " >&6; } 5779if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 if test -n "$ac_ct_DLLTOOL"; then 5783 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5784else 5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5786for as_dir in $PATH 5787do 5788 IFS=$as_save_IFS 5789 test -z "$as_dir" && as_dir=. 5790 for ac_exec_ext in '' $ac_executable_extensions; do 5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5792 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5794 break 2 5795 fi 5796done 5797 done 5798IFS=$as_save_IFS 5799 5800fi 5801fi 5802ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5803if test -n "$ac_ct_DLLTOOL"; then 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5805$as_echo "$ac_ct_DLLTOOL" >&6; } 5806else 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5808$as_echo "no" >&6; } 5809fi 5810 5811 if test "x$ac_ct_DLLTOOL" = x; then 5812 DLLTOOL="false" 5813 else 5814 case $cross_compiling:$ac_tool_warned in 5815yes:) 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5818ac_tool_warned=yes ;; 5819esac 5820 DLLTOOL=$ac_ct_DLLTOOL 5821 fi 5822else 5823 DLLTOOL="$ac_cv_prog_DLLTOOL" 5824fi 5825 5826test -z "$DLLTOOL" && DLLTOOL=dlltool 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5838$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5839if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 lt_cv_sharedlib_from_linklib_cmd='unknown' 5843 5844case $host_os in 5845cygwin* | mingw* | pw32* | cegcc*) 5846 # two different shell functions defined in ltmain.sh; 5847 # decide which one to use based on capabilities of $DLLTOOL 5848 case `$DLLTOOL --help 2>&1` in 5849 *--identify-strict*) 5850 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5851 ;; 5852 *) 5853 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5854 ;; 5855 esac 5856 ;; 5857*) 5858 # fallback: assume linklib IS sharedlib 5859 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5860 ;; 5861esac 5862 5863fi 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5865$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5866sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5867test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5868 5869 5870 5871 5872 5873 5874 5875 5876if test -n "$ac_tool_prefix"; then 5877 for ac_prog in ar 5878 do 5879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5880set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5882$as_echo_n "checking for $ac_word... " >&6; } 5883if ${ac_cv_prog_AR+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 if test -n "$AR"; then 5887 ac_cv_prog_AR="$AR" # Let the user override the test. 5888else 5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5890for as_dir in $PATH 5891do 5892 IFS=$as_save_IFS 5893 test -z "$as_dir" && as_dir=. 5894 for ac_exec_ext in '' $ac_executable_extensions; do 5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5896 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5898 break 2 5899 fi 5900done 5901 done 5902IFS=$as_save_IFS 5903 5904fi 5905fi 5906AR=$ac_cv_prog_AR 5907if test -n "$AR"; then 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5909$as_echo "$AR" >&6; } 5910else 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5912$as_echo "no" >&6; } 5913fi 5914 5915 5916 test -n "$AR" && break 5917 done 5918fi 5919if test -z "$AR"; then 5920 ac_ct_AR=$AR 5921 for ac_prog in ar 5922do 5923 # Extract the first word of "$ac_prog", so it can be a program name with args. 5924set dummy $ac_prog; ac_word=$2 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5926$as_echo_n "checking for $ac_word... " >&6; } 5927if ${ac_cv_prog_ac_ct_AR+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 if test -n "$ac_ct_AR"; then 5931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5932else 5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5934for as_dir in $PATH 5935do 5936 IFS=$as_save_IFS 5937 test -z "$as_dir" && as_dir=. 5938 for ac_exec_ext in '' $ac_executable_extensions; do 5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5940 ac_cv_prog_ac_ct_AR="$ac_prog" 5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5942 break 2 5943 fi 5944done 5945 done 5946IFS=$as_save_IFS 5947 5948fi 5949fi 5950ac_ct_AR=$ac_cv_prog_ac_ct_AR 5951if test -n "$ac_ct_AR"; then 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5953$as_echo "$ac_ct_AR" >&6; } 5954else 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5956$as_echo "no" >&6; } 5957fi 5958 5959 5960 test -n "$ac_ct_AR" && break 5961done 5962 5963 if test "x$ac_ct_AR" = x; then 5964 AR="false" 5965 else 5966 case $cross_compiling:$ac_tool_warned in 5967yes:) 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5970ac_tool_warned=yes ;; 5971esac 5972 AR=$ac_ct_AR 5973 fi 5974fi 5975 5976: ${AR=ar} 5977: ${AR_FLAGS=cru} 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5990$as_echo_n "checking for archiver @FILE support... " >&6; } 5991if ${lt_cv_ar_at_file+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 lt_cv_ar_at_file=no 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997 5998int 5999main () 6000{ 6001 6002 ; 6003 return 0; 6004} 6005_ACEOF 6006if ac_fn_c_try_compile "$LINENO"; then : 6007 echo conftest.$ac_objext > conftest.lst 6008 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6010 (eval $lt_ar_try) 2>&5 6011 ac_status=$? 6012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6013 test $ac_status = 0; } 6014 if test 0 -eq "$ac_status"; then 6015 # Ensure the archiver fails upon bogus file names. 6016 rm -f conftest.$ac_objext libconftest.a 6017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6018 (eval $lt_ar_try) 2>&5 6019 ac_status=$? 6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6021 test $ac_status = 0; } 6022 if test 0 -ne "$ac_status"; then 6023 lt_cv_ar_at_file=@ 6024 fi 6025 fi 6026 rm -f conftest.* libconftest.a 6027 6028fi 6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6030 6031fi 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6033$as_echo "$lt_cv_ar_at_file" >&6; } 6034 6035if test no = "$lt_cv_ar_at_file"; then 6036 archiver_list_spec= 6037else 6038 archiver_list_spec=$lt_cv_ar_at_file 6039fi 6040 6041 6042 6043 6044 6045 6046 6047if test -n "$ac_tool_prefix"; then 6048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6049set dummy ${ac_tool_prefix}strip; ac_word=$2 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6051$as_echo_n "checking for $ac_word... " >&6; } 6052if ${ac_cv_prog_STRIP+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -n "$STRIP"; then 6056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6057else 6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6059for as_dir in $PATH 6060do 6061 IFS=$as_save_IFS 6062 test -z "$as_dir" && as_dir=. 6063 for ac_exec_ext in '' $ac_executable_extensions; do 6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6065 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6067 break 2 6068 fi 6069done 6070 done 6071IFS=$as_save_IFS 6072 6073fi 6074fi 6075STRIP=$ac_cv_prog_STRIP 6076if test -n "$STRIP"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6078$as_echo "$STRIP" >&6; } 6079else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081$as_echo "no" >&6; } 6082fi 6083 6084 6085fi 6086if test -z "$ac_cv_prog_STRIP"; then 6087 ac_ct_STRIP=$STRIP 6088 # Extract the first word of "strip", so it can be a program name with args. 6089set dummy strip; ac_word=$2 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6091$as_echo_n "checking for $ac_word... " >&6; } 6092if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 if test -n "$ac_ct_STRIP"; then 6096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 test -z "$as_dir" && as_dir=. 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_ac_ct_STRIP="strip" 6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110 done 6111IFS=$as_save_IFS 6112 6113fi 6114fi 6115ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6116if test -n "$ac_ct_STRIP"; then 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6118$as_echo "$ac_ct_STRIP" >&6; } 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6121$as_echo "no" >&6; } 6122fi 6123 6124 if test "x$ac_ct_STRIP" = x; then 6125 STRIP=":" 6126 else 6127 case $cross_compiling:$ac_tool_warned in 6128yes:) 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6131ac_tool_warned=yes ;; 6132esac 6133 STRIP=$ac_ct_STRIP 6134 fi 6135else 6136 STRIP="$ac_cv_prog_STRIP" 6137fi 6138 6139test -z "$STRIP" && STRIP=: 6140 6141 6142 6143 6144 6145 6146if test -n "$ac_tool_prefix"; then 6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6148set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6150$as_echo_n "checking for $ac_word... " >&6; } 6151if ${ac_cv_prog_RANLIB+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 if test -n "$RANLIB"; then 6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6156else 6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174RANLIB=$ac_cv_prog_RANLIB 6175if test -n "$RANLIB"; then 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6177$as_echo "$RANLIB" >&6; } 6178else 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180$as_echo "no" >&6; } 6181fi 6182 6183 6184fi 6185if test -z "$ac_cv_prog_RANLIB"; then 6186 ac_ct_RANLIB=$RANLIB 6187 # Extract the first word of "ranlib", so it can be a program name with args. 6188set dummy ranlib; ac_word=$2 6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6190$as_echo_n "checking for $ac_word... " >&6; } 6191if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6192 $as_echo_n "(cached) " >&6 6193else 6194 if test -n "$ac_ct_RANLIB"; then 6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6196else 6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6198for as_dir in $PATH 6199do 6200 IFS=$as_save_IFS 6201 test -z "$as_dir" && as_dir=. 6202 for ac_exec_ext in '' $ac_executable_extensions; do 6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6204 ac_cv_prog_ac_ct_RANLIB="ranlib" 6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6206 break 2 6207 fi 6208done 6209 done 6210IFS=$as_save_IFS 6211 6212fi 6213fi 6214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6215if test -n "$ac_ct_RANLIB"; then 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6217$as_echo "$ac_ct_RANLIB" >&6; } 6218else 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6220$as_echo "no" >&6; } 6221fi 6222 6223 if test "x$ac_ct_RANLIB" = x; then 6224 RANLIB=":" 6225 else 6226 case $cross_compiling:$ac_tool_warned in 6227yes:) 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6230ac_tool_warned=yes ;; 6231esac 6232 RANLIB=$ac_ct_RANLIB 6233 fi 6234else 6235 RANLIB="$ac_cv_prog_RANLIB" 6236fi 6237 6238test -z "$RANLIB" && RANLIB=: 6239 6240 6241 6242 6243 6244 6245# Determine commands to create old-style static archives. 6246old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6247old_postinstall_cmds='chmod 644 $oldlib' 6248old_postuninstall_cmds= 6249 6250if test -n "$RANLIB"; then 6251 case $host_os in 6252 bitrig* | openbsd*) 6253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6254 ;; 6255 *) 6256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6257 ;; 6258 esac 6259 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6260fi 6261 6262case $host_os in 6263 darwin*) 6264 lock_old_archive_extraction=yes ;; 6265 *) 6266 lock_old_archive_extraction=no ;; 6267esac 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307# If no C compiler was specified, use CC. 6308LTCC=${LTCC-"$CC"} 6309 6310# If no C compiler flags were specified, use CFLAGS. 6311LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6312 6313# Allow CC to be a program name with arguments. 6314compiler=$CC 6315 6316 6317# Check for command to grab the raw symbol name followed by C symbol from nm. 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6319$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6320if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6321 $as_echo_n "(cached) " >&6 6322else 6323 6324# These are sane defaults that work on at least a few old systems. 6325# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6326 6327# Character class describing NM global symbol codes. 6328symcode='[BCDEGRST]' 6329 6330# Regexp to match symbols that can be accessed directly from C. 6331sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6332 6333# Define system-specific variables. 6334case $host_os in 6335aix*) 6336 symcode='[BCDT]' 6337 ;; 6338cygwin* | mingw* | pw32* | cegcc*) 6339 symcode='[ABCDGISTW]' 6340 ;; 6341hpux*) 6342 if test ia64 = "$host_cpu"; then 6343 symcode='[ABCDEGRST]' 6344 fi 6345 ;; 6346irix* | nonstopux*) 6347 symcode='[BCDEGRST]' 6348 ;; 6349osf*) 6350 symcode='[BCDEGQRST]' 6351 ;; 6352solaris*) 6353 symcode='[BDRT]' 6354 ;; 6355sco3.2v5*) 6356 symcode='[DT]' 6357 ;; 6358sysv4.2uw2*) 6359 symcode='[DT]' 6360 ;; 6361sysv5* | sco5v6* | unixware* | OpenUNIX*) 6362 symcode='[ABDT]' 6363 ;; 6364sysv4) 6365 symcode='[DFNSTU]' 6366 ;; 6367esac 6368 6369# If we're using GNU nm, then use its standard symbol codes. 6370case `$NM -V 2>&1` in 6371*GNU* | *'with BFD'*) 6372 symcode='[ABCDGIRSTW]' ;; 6373esac 6374 6375if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6376 # Gets list of data symbols to import. 6377 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6378 # Adjust the below global symbol transforms to fixup imported variables. 6379 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6380 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6381 lt_c_name_lib_hook="\ 6382 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6383 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6384else 6385 # Disable hooks by default. 6386 lt_cv_sys_global_symbol_to_import= 6387 lt_cdecl_hook= 6388 lt_c_name_hook= 6389 lt_c_name_lib_hook= 6390fi 6391 6392# Transform an extracted symbol line into a proper C declaration. 6393# Some systems (esp. on ia64) link data and code symbols differently, 6394# so use this general approach. 6395lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6396$lt_cdecl_hook\ 6397" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6398" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6399 6400# Transform an extracted symbol line into symbol name and symbol address 6401lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6402$lt_c_name_hook\ 6403" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6404" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6405 6406# Transform an extracted symbol line into symbol name with lib prefix and 6407# symbol address. 6408lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6409$lt_c_name_lib_hook\ 6410" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6411" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6412" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6413 6414# Handle CRLF in mingw tool chain 6415opt_cr= 6416case $build_os in 6417mingw*) 6418 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6419 ;; 6420esac 6421 6422# Try without a prefix underscore, then with it. 6423for ac_symprfx in "" "_"; do 6424 6425 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6426 symxfrm="\\1 $ac_symprfx\\2 \\2" 6427 6428 # Write the raw and C identifiers. 6429 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6430 # Fake it for dumpbin and say T for any non-static function, 6431 # D for any global variable and I for any imported variable. 6432 # Also find C++ and __fastcall symbols from MSVC++, 6433 # which start with @ or ?. 6434 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6435" {last_section=section; section=\$ 3};"\ 6436" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6437" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6438" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6439" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6440" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6441" \$ 0!~/External *\|/{next};"\ 6442" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6443" {if(hide[section]) next};"\ 6444" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6445" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6446" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6447" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6448" ' prfx=^$ac_symprfx" 6449 else 6450 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6451 fi 6452 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6453 6454 # Check to see that the pipe works correctly. 6455 pipe_works=no 6456 6457 rm -f conftest* 6458 cat > conftest.$ac_ext <<_LT_EOF 6459#ifdef __cplusplus 6460extern "C" { 6461#endif 6462char nm_test_var; 6463void nm_test_func(void); 6464void nm_test_func(void){} 6465#ifdef __cplusplus 6466} 6467#endif 6468int main(){nm_test_var='a';nm_test_func();return(0);} 6469_LT_EOF 6470 6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6472 (eval $ac_compile) 2>&5 6473 ac_status=$? 6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6475 test $ac_status = 0; }; then 6476 # Now try to grab the symbols. 6477 nlist=conftest.nm 6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6479 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6480 ac_status=$? 6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6482 test $ac_status = 0; } && test -s "$nlist"; then 6483 # Try sorting and uniquifying the output. 6484 if sort "$nlist" | uniq > "$nlist"T; then 6485 mv -f "$nlist"T "$nlist" 6486 else 6487 rm -f "$nlist"T 6488 fi 6489 6490 # Make sure that we snagged all the symbols we need. 6491 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6492 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6493 cat <<_LT_EOF > conftest.$ac_ext 6494/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6495#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6496/* DATA imports from DLLs on WIN32 can't be const, because runtime 6497 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6498# define LT_DLSYM_CONST 6499#elif defined __osf__ 6500/* This system does not cope well with relocations in const data. */ 6501# define LT_DLSYM_CONST 6502#else 6503# define LT_DLSYM_CONST const 6504#endif 6505 6506#ifdef __cplusplus 6507extern "C" { 6508#endif 6509 6510_LT_EOF 6511 # Now generate the symbol file. 6512 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6513 6514 cat <<_LT_EOF >> conftest.$ac_ext 6515 6516/* The mapping between symbol names and symbols. */ 6517LT_DLSYM_CONST struct { 6518 const char *name; 6519 void *address; 6520} 6521lt__PROGRAM__LTX_preloaded_symbols[] = 6522{ 6523 { "@PROGRAM@", (void *) 0 }, 6524_LT_EOF 6525 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6526 cat <<\_LT_EOF >> conftest.$ac_ext 6527 {0, (void *) 0} 6528}; 6529 6530/* This works around a problem in FreeBSD linker */ 6531#ifdef FREEBSD_WORKAROUND 6532static const void *lt_preloaded_setup() { 6533 return lt__PROGRAM__LTX_preloaded_symbols; 6534} 6535#endif 6536 6537#ifdef __cplusplus 6538} 6539#endif 6540_LT_EOF 6541 # Now try linking the two files. 6542 mv conftest.$ac_objext conftstm.$ac_objext 6543 lt_globsym_save_LIBS=$LIBS 6544 lt_globsym_save_CFLAGS=$CFLAGS 6545 LIBS=conftstm.$ac_objext 6546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6548 (eval $ac_link) 2>&5 6549 ac_status=$? 6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6551 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6552 pipe_works=yes 6553 fi 6554 LIBS=$lt_globsym_save_LIBS 6555 CFLAGS=$lt_globsym_save_CFLAGS 6556 else 6557 echo "cannot find nm_test_func in $nlist" >&5 6558 fi 6559 else 6560 echo "cannot find nm_test_var in $nlist" >&5 6561 fi 6562 else 6563 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6564 fi 6565 else 6566 echo "$progname: failed program was:" >&5 6567 cat conftest.$ac_ext >&5 6568 fi 6569 rm -rf conftest* conftst* 6570 6571 # Do not use the global_symbol_pipe unless it works. 6572 if test yes = "$pipe_works"; then 6573 break 6574 else 6575 lt_cv_sys_global_symbol_pipe= 6576 fi 6577done 6578 6579fi 6580 6581if test -z "$lt_cv_sys_global_symbol_pipe"; then 6582 lt_cv_sys_global_symbol_to_cdecl= 6583fi 6584if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6586$as_echo "failed" >&6; } 6587else 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6589$as_echo "ok" >&6; } 6590fi 6591 6592# Response file support. 6593if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6594 nm_file_list_spec='@' 6595elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6596 nm_file_list_spec='@' 6597fi 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6636$as_echo_n "checking for sysroot... " >&6; } 6637 6638# Check whether --with-sysroot was given. 6639if test "${with_sysroot+set}" = set; then : 6640 withval=$with_sysroot; 6641else 6642 with_sysroot=no 6643fi 6644 6645 6646lt_sysroot= 6647case $with_sysroot in #( 6648 yes) 6649 if test yes = "$GCC"; then 6650 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6651 fi 6652 ;; #( 6653 /*) 6654 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6655 ;; #( 6656 no|'') 6657 ;; #( 6658 *) 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6660$as_echo "$with_sysroot" >&6; } 6661 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6662 ;; 6663esac 6664 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6666$as_echo "${lt_sysroot:-no}" >&6; } 6667 6668 6669 6670 6671 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6673$as_echo_n "checking for a working dd... " >&6; } 6674if ${ac_cv_path_lt_DD+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 printf 0123456789abcdef0123456789abcdef >conftest.i 6678cat conftest.i conftest.i >conftest2.i 6679: ${lt_DD:=$DD} 6680if test -z "$lt_DD"; then 6681 ac_path_lt_DD_found=false 6682 # Loop through the user's path and test for each of PROGNAME-LIST 6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6684for as_dir in $PATH 6685do 6686 IFS=$as_save_IFS 6687 test -z "$as_dir" && as_dir=. 6688 for ac_prog in dd; do 6689 for ac_exec_ext in '' $ac_executable_extensions; do 6690 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6691 as_fn_executable_p "$ac_path_lt_DD" || continue 6692if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6693 cmp -s conftest.i conftest.out \ 6694 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6695fi 6696 $ac_path_lt_DD_found && break 3 6697 done 6698 done 6699 done 6700IFS=$as_save_IFS 6701 if test -z "$ac_cv_path_lt_DD"; then 6702 : 6703 fi 6704else 6705 ac_cv_path_lt_DD=$lt_DD 6706fi 6707 6708rm -f conftest.i conftest2.i conftest.out 6709fi 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6711$as_echo "$ac_cv_path_lt_DD" >&6; } 6712 6713 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6715$as_echo_n "checking how to truncate binary pipes... " >&6; } 6716if ${lt_cv_truncate_bin+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 printf 0123456789abcdef0123456789abcdef >conftest.i 6720cat conftest.i conftest.i >conftest2.i 6721lt_cv_truncate_bin= 6722if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6723 cmp -s conftest.i conftest.out \ 6724 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6725fi 6726rm -f conftest.i conftest2.i conftest.out 6727test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6728fi 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6730$as_echo "$lt_cv_truncate_bin" >&6; } 6731 6732 6733 6734 6735 6736 6737 6738# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6739func_cc_basename () 6740{ 6741 for cc_temp in $*""; do 6742 case $cc_temp in 6743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6745 \-*) ;; 6746 *) break;; 6747 esac 6748 done 6749 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6750} 6751 6752# Check whether --enable-libtool-lock was given. 6753if test "${enable_libtool_lock+set}" = set; then : 6754 enableval=$enable_libtool_lock; 6755fi 6756 6757test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6758 6759# Some flags need to be propagated to the compiler or linker for good 6760# libtool support. 6761case $host in 6762ia64-*-hpux*) 6763 # Find out what ABI is being produced by ac_compile, and set mode 6764 # options accordingly. 6765 echo 'int i;' > conftest.$ac_ext 6766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6767 (eval $ac_compile) 2>&5 6768 ac_status=$? 6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6770 test $ac_status = 0; }; then 6771 case `/usr/bin/file conftest.$ac_objext` in 6772 *ELF-32*) 6773 HPUX_IA64_MODE=32 6774 ;; 6775 *ELF-64*) 6776 HPUX_IA64_MODE=64 6777 ;; 6778 esac 6779 fi 6780 rm -rf conftest* 6781 ;; 6782*-*-irix6*) 6783 # Find out what ABI is being produced by ac_compile, and set linker 6784 # options accordingly. 6785 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6787 (eval $ac_compile) 2>&5 6788 ac_status=$? 6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6790 test $ac_status = 0; }; then 6791 if test yes = "$lt_cv_prog_gnu_ld"; then 6792 case `/usr/bin/file conftest.$ac_objext` in 6793 *32-bit*) 6794 LD="${LD-ld} -melf32bsmip" 6795 ;; 6796 *N32*) 6797 LD="${LD-ld} -melf32bmipn32" 6798 ;; 6799 *64-bit*) 6800 LD="${LD-ld} -melf64bmip" 6801 ;; 6802 esac 6803 else 6804 case `/usr/bin/file conftest.$ac_objext` in 6805 *32-bit*) 6806 LD="${LD-ld} -32" 6807 ;; 6808 *N32*) 6809 LD="${LD-ld} -n32" 6810 ;; 6811 *64-bit*) 6812 LD="${LD-ld} -64" 6813 ;; 6814 esac 6815 fi 6816 fi 6817 rm -rf conftest* 6818 ;; 6819 6820mips64*-*linux*) 6821 # Find out what ABI is being produced by ac_compile, and set linker 6822 # options accordingly. 6823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6825 (eval $ac_compile) 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6828 test $ac_status = 0; }; then 6829 emul=elf 6830 case `/usr/bin/file conftest.$ac_objext` in 6831 *32-bit*) 6832 emul="${emul}32" 6833 ;; 6834 *64-bit*) 6835 emul="${emul}64" 6836 ;; 6837 esac 6838 case `/usr/bin/file conftest.$ac_objext` in 6839 *MSB*) 6840 emul="${emul}btsmip" 6841 ;; 6842 *LSB*) 6843 emul="${emul}ltsmip" 6844 ;; 6845 esac 6846 case `/usr/bin/file conftest.$ac_objext` in 6847 *N32*) 6848 emul="${emul}n32" 6849 ;; 6850 esac 6851 LD="${LD-ld} -m $emul" 6852 fi 6853 rm -rf conftest* 6854 ;; 6855 6856x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6857s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6858 # Find out what ABI is being produced by ac_compile, and set linker 6859 # options accordingly. Note that the listed cases only cover the 6860 # situations where additional linker options are needed (such as when 6861 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6862 # vice versa); the common cases where no linker options are needed do 6863 # not appear in the list. 6864 echo 'int i;' > conftest.$ac_ext 6865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6866 (eval $ac_compile) 2>&5 6867 ac_status=$? 6868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6869 test $ac_status = 0; }; then 6870 case `/usr/bin/file conftest.o` in 6871 *32-bit*) 6872 case $host in 6873 x86_64-*kfreebsd*-gnu) 6874 LD="${LD-ld} -m elf_i386_fbsd" 6875 ;; 6876 x86_64-*linux*) 6877 case `/usr/bin/file conftest.o` in 6878 *x86-64*) 6879 LD="${LD-ld} -m elf32_x86_64" 6880 ;; 6881 *) 6882 LD="${LD-ld} -m elf_i386" 6883 ;; 6884 esac 6885 ;; 6886 powerpc64le-*linux*) 6887 LD="${LD-ld} -m elf32lppclinux" 6888 ;; 6889 powerpc64-*linux*) 6890 LD="${LD-ld} -m elf32ppclinux" 6891 ;; 6892 s390x-*linux*) 6893 LD="${LD-ld} -m elf_s390" 6894 ;; 6895 sparc64-*linux*) 6896 LD="${LD-ld} -m elf32_sparc" 6897 ;; 6898 esac 6899 ;; 6900 *64-bit*) 6901 case $host in 6902 x86_64-*kfreebsd*-gnu) 6903 LD="${LD-ld} -m elf_x86_64_fbsd" 6904 ;; 6905 x86_64-*linux*) 6906 LD="${LD-ld} -m elf_x86_64" 6907 ;; 6908 powerpcle-*linux*) 6909 LD="${LD-ld} -m elf64lppc" 6910 ;; 6911 powerpc-*linux*) 6912 LD="${LD-ld} -m elf64ppc" 6913 ;; 6914 s390*-*linux*|s390*-*tpf*) 6915 LD="${LD-ld} -m elf64_s390" 6916 ;; 6917 sparc*-*linux*) 6918 LD="${LD-ld} -m elf64_sparc" 6919 ;; 6920 esac 6921 ;; 6922 esac 6923 fi 6924 rm -rf conftest* 6925 ;; 6926 6927*-*-sco3.2v5*) 6928 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6929 SAVE_CFLAGS=$CFLAGS 6930 CFLAGS="$CFLAGS -belf" 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6932$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6933if ${lt_cv_cc_needs_belf+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 ac_ext=c 6937ac_cpp='$CPP $CPPFLAGS' 6938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6940ac_compiler_gnu=$ac_cv_c_compiler_gnu 6941 6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6943/* end confdefs.h. */ 6944 6945int 6946main () 6947{ 6948 6949 ; 6950 return 0; 6951} 6952_ACEOF 6953if ac_fn_c_try_link "$LINENO"; then : 6954 lt_cv_cc_needs_belf=yes 6955else 6956 lt_cv_cc_needs_belf=no 6957fi 6958rm -f core conftest.err conftest.$ac_objext \ 6959 conftest$ac_exeext conftest.$ac_ext 6960 ac_ext=c 6961ac_cpp='$CPP $CPPFLAGS' 6962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6964ac_compiler_gnu=$ac_cv_c_compiler_gnu 6965 6966fi 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6968$as_echo "$lt_cv_cc_needs_belf" >&6; } 6969 if test yes != "$lt_cv_cc_needs_belf"; then 6970 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6971 CFLAGS=$SAVE_CFLAGS 6972 fi 6973 ;; 6974*-*solaris*) 6975 # Find out what ABI is being produced by ac_compile, and set linker 6976 # options accordingly. 6977 echo 'int i;' > conftest.$ac_ext 6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6979 (eval $ac_compile) 2>&5 6980 ac_status=$? 6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6982 test $ac_status = 0; }; then 6983 case `/usr/bin/file conftest.o` in 6984 *64-bit*) 6985 case $lt_cv_prog_gnu_ld in 6986 yes*) 6987 case $host in 6988 i?86-*-solaris*|x86_64-*-solaris*) 6989 LD="${LD-ld} -m elf_x86_64" 6990 ;; 6991 sparc*-*-solaris*) 6992 LD="${LD-ld} -m elf64_sparc" 6993 ;; 6994 esac 6995 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6996 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6997 LD=${LD-ld}_sol2 6998 fi 6999 ;; 7000 *) 7001 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7002 LD="${LD-ld} -64" 7003 fi 7004 ;; 7005 esac 7006 ;; 7007 esac 7008 fi 7009 rm -rf conftest* 7010 ;; 7011esac 7012 7013need_locks=$enable_libtool_lock 7014 7015if test -n "$ac_tool_prefix"; then 7016 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7017set dummy ${ac_tool_prefix}mt; ac_word=$2 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7019$as_echo_n "checking for $ac_word... " >&6; } 7020if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 if test -n "$MANIFEST_TOOL"; then 7024 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7025else 7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7033 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037done 7038 done 7039IFS=$as_save_IFS 7040 7041fi 7042fi 7043MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7044if test -n "$MANIFEST_TOOL"; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7046$as_echo "$MANIFEST_TOOL" >&6; } 7047else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049$as_echo "no" >&6; } 7050fi 7051 7052 7053fi 7054if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7055 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7056 # Extract the first word of "mt", so it can be a program name with args. 7057set dummy mt; ac_word=$2 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7059$as_echo_n "checking for $ac_word... " >&6; } 7060if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 if test -n "$ac_ct_MANIFEST_TOOL"; then 7064 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7065else 7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7067for as_dir in $PATH 7068do 7069 IFS=$as_save_IFS 7070 test -z "$as_dir" && as_dir=. 7071 for ac_exec_ext in '' $ac_executable_extensions; do 7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7073 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7075 break 2 7076 fi 7077done 7078 done 7079IFS=$as_save_IFS 7080 7081fi 7082fi 7083ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7084if test -n "$ac_ct_MANIFEST_TOOL"; then 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7086$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7087else 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7089$as_echo "no" >&6; } 7090fi 7091 7092 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7093 MANIFEST_TOOL=":" 7094 else 7095 case $cross_compiling:$ac_tool_warned in 7096yes:) 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7099ac_tool_warned=yes ;; 7100esac 7101 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7102 fi 7103else 7104 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7105fi 7106 7107test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7109$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7110if ${lt_cv_path_mainfest_tool+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 lt_cv_path_mainfest_tool=no 7114 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7115 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7116 cat conftest.err >&5 7117 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7118 lt_cv_path_mainfest_tool=yes 7119 fi 7120 rm -f conftest* 7121fi 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7123$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7124if test yes != "$lt_cv_path_mainfest_tool"; then 7125 MANIFEST_TOOL=: 7126fi 7127 7128 7129 7130 7131 7132 7133 case $host_os in 7134 rhapsody* | darwin*) 7135 if test -n "$ac_tool_prefix"; then 7136 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7137set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7139$as_echo_n "checking for $ac_word... " >&6; } 7140if ${ac_cv_prog_DSYMUTIL+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142else 7143 if test -n "$DSYMUTIL"; then 7144 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7145else 7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7147for as_dir in $PATH 7148do 7149 IFS=$as_save_IFS 7150 test -z "$as_dir" && as_dir=. 7151 for ac_exec_ext in '' $ac_executable_extensions; do 7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7153 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7155 break 2 7156 fi 7157done 7158 done 7159IFS=$as_save_IFS 7160 7161fi 7162fi 7163DSYMUTIL=$ac_cv_prog_DSYMUTIL 7164if test -n "$DSYMUTIL"; then 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7166$as_echo "$DSYMUTIL" >&6; } 7167else 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7169$as_echo "no" >&6; } 7170fi 7171 7172 7173fi 7174if test -z "$ac_cv_prog_DSYMUTIL"; then 7175 ac_ct_DSYMUTIL=$DSYMUTIL 7176 # Extract the first word of "dsymutil", so it can be a program name with args. 7177set dummy dsymutil; ac_word=$2 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7179$as_echo_n "checking for $ac_word... " >&6; } 7180if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 if test -n "$ac_ct_DSYMUTIL"; then 7184 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7185else 7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7187for as_dir in $PATH 7188do 7189 IFS=$as_save_IFS 7190 test -z "$as_dir" && as_dir=. 7191 for ac_exec_ext in '' $ac_executable_extensions; do 7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7193 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7195 break 2 7196 fi 7197done 7198 done 7199IFS=$as_save_IFS 7200 7201fi 7202fi 7203ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7204if test -n "$ac_ct_DSYMUTIL"; then 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7206$as_echo "$ac_ct_DSYMUTIL" >&6; } 7207else 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7209$as_echo "no" >&6; } 7210fi 7211 7212 if test "x$ac_ct_DSYMUTIL" = x; then 7213 DSYMUTIL=":" 7214 else 7215 case $cross_compiling:$ac_tool_warned in 7216yes:) 7217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7219ac_tool_warned=yes ;; 7220esac 7221 DSYMUTIL=$ac_ct_DSYMUTIL 7222 fi 7223else 7224 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7225fi 7226 7227 if test -n "$ac_tool_prefix"; then 7228 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7229set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231$as_echo_n "checking for $ac_word... " >&6; } 7232if ${ac_cv_prog_NMEDIT+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 if test -n "$NMEDIT"; then 7236 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 for ac_exec_ext in '' $ac_executable_extensions; do 7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7245 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7247 break 2 7248 fi 7249done 7250 done 7251IFS=$as_save_IFS 7252 7253fi 7254fi 7255NMEDIT=$ac_cv_prog_NMEDIT 7256if test -n "$NMEDIT"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7258$as_echo "$NMEDIT" >&6; } 7259else 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 7265fi 7266if test -z "$ac_cv_prog_NMEDIT"; then 7267 ac_ct_NMEDIT=$NMEDIT 7268 # Extract the first word of "nmedit", so it can be a program name with args. 7269set dummy nmedit; ac_word=$2 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7271$as_echo_n "checking for $ac_word... " >&6; } 7272if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7273 $as_echo_n "(cached) " >&6 7274else 7275 if test -n "$ac_ct_NMEDIT"; then 7276 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7277else 7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7279for as_dir in $PATH 7280do 7281 IFS=$as_save_IFS 7282 test -z "$as_dir" && as_dir=. 7283 for ac_exec_ext in '' $ac_executable_extensions; do 7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7285 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7287 break 2 7288 fi 7289done 7290 done 7291IFS=$as_save_IFS 7292 7293fi 7294fi 7295ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7296if test -n "$ac_ct_NMEDIT"; then 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7298$as_echo "$ac_ct_NMEDIT" >&6; } 7299else 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7301$as_echo "no" >&6; } 7302fi 7303 7304 if test "x$ac_ct_NMEDIT" = x; then 7305 NMEDIT=":" 7306 else 7307 case $cross_compiling:$ac_tool_warned in 7308yes:) 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7311ac_tool_warned=yes ;; 7312esac 7313 NMEDIT=$ac_ct_NMEDIT 7314 fi 7315else 7316 NMEDIT="$ac_cv_prog_NMEDIT" 7317fi 7318 7319 if test -n "$ac_tool_prefix"; then 7320 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7321set dummy ${ac_tool_prefix}lipo; ac_word=$2 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7323$as_echo_n "checking for $ac_word... " >&6; } 7324if ${ac_cv_prog_LIPO+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 if test -n "$LIPO"; then 7328 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7329else 7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7337 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342 done 7343IFS=$as_save_IFS 7344 7345fi 7346fi 7347LIPO=$ac_cv_prog_LIPO 7348if test -n "$LIPO"; then 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7350$as_echo "$LIPO" >&6; } 7351else 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7353$as_echo "no" >&6; } 7354fi 7355 7356 7357fi 7358if test -z "$ac_cv_prog_LIPO"; then 7359 ac_ct_LIPO=$LIPO 7360 # Extract the first word of "lipo", so it can be a program name with args. 7361set dummy lipo; ac_word=$2 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7363$as_echo_n "checking for $ac_word... " >&6; } 7364if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 if test -n "$ac_ct_LIPO"; then 7368 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7369else 7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7371for as_dir in $PATH 7372do 7373 IFS=$as_save_IFS 7374 test -z "$as_dir" && as_dir=. 7375 for ac_exec_ext in '' $ac_executable_extensions; do 7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7377 ac_cv_prog_ac_ct_LIPO="lipo" 7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7379 break 2 7380 fi 7381done 7382 done 7383IFS=$as_save_IFS 7384 7385fi 7386fi 7387ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7388if test -n "$ac_ct_LIPO"; then 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7390$as_echo "$ac_ct_LIPO" >&6; } 7391else 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7393$as_echo "no" >&6; } 7394fi 7395 7396 if test "x$ac_ct_LIPO" = x; then 7397 LIPO=":" 7398 else 7399 case $cross_compiling:$ac_tool_warned in 7400yes:) 7401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7403ac_tool_warned=yes ;; 7404esac 7405 LIPO=$ac_ct_LIPO 7406 fi 7407else 7408 LIPO="$ac_cv_prog_LIPO" 7409fi 7410 7411 if test -n "$ac_tool_prefix"; then 7412 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7413set dummy ${ac_tool_prefix}otool; ac_word=$2 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7415$as_echo_n "checking for $ac_word... " >&6; } 7416if ${ac_cv_prog_OTOOL+:} false; then : 7417 $as_echo_n "(cached) " >&6 7418else 7419 if test -n "$OTOOL"; then 7420 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7421else 7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7423for as_dir in $PATH 7424do 7425 IFS=$as_save_IFS 7426 test -z "$as_dir" && as_dir=. 7427 for ac_exec_ext in '' $ac_executable_extensions; do 7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7429 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7431 break 2 7432 fi 7433done 7434 done 7435IFS=$as_save_IFS 7436 7437fi 7438fi 7439OTOOL=$ac_cv_prog_OTOOL 7440if test -n "$OTOOL"; then 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7442$as_echo "$OTOOL" >&6; } 7443else 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7445$as_echo "no" >&6; } 7446fi 7447 7448 7449fi 7450if test -z "$ac_cv_prog_OTOOL"; then 7451 ac_ct_OTOOL=$OTOOL 7452 # Extract the first word of "otool", so it can be a program name with args. 7453set dummy otool; ac_word=$2 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7455$as_echo_n "checking for $ac_word... " >&6; } 7456if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 if test -n "$ac_ct_OTOOL"; then 7460 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7461else 7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7463for as_dir in $PATH 7464do 7465 IFS=$as_save_IFS 7466 test -z "$as_dir" && as_dir=. 7467 for ac_exec_ext in '' $ac_executable_extensions; do 7468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7469 ac_cv_prog_ac_ct_OTOOL="otool" 7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7471 break 2 7472 fi 7473done 7474 done 7475IFS=$as_save_IFS 7476 7477fi 7478fi 7479ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7480if test -n "$ac_ct_OTOOL"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7482$as_echo "$ac_ct_OTOOL" >&6; } 7483else 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7485$as_echo "no" >&6; } 7486fi 7487 7488 if test "x$ac_ct_OTOOL" = x; then 7489 OTOOL=":" 7490 else 7491 case $cross_compiling:$ac_tool_warned in 7492yes:) 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7495ac_tool_warned=yes ;; 7496esac 7497 OTOOL=$ac_ct_OTOOL 7498 fi 7499else 7500 OTOOL="$ac_cv_prog_OTOOL" 7501fi 7502 7503 if test -n "$ac_tool_prefix"; then 7504 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7505set dummy ${ac_tool_prefix}otool64; ac_word=$2 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7507$as_echo_n "checking for $ac_word... " >&6; } 7508if ${ac_cv_prog_OTOOL64+:} false; then : 7509 $as_echo_n "(cached) " >&6 7510else 7511 if test -n "$OTOOL64"; then 7512 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7513else 7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7515for as_dir in $PATH 7516do 7517 IFS=$as_save_IFS 7518 test -z "$as_dir" && as_dir=. 7519 for ac_exec_ext in '' $ac_executable_extensions; do 7520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7521 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7523 break 2 7524 fi 7525done 7526 done 7527IFS=$as_save_IFS 7528 7529fi 7530fi 7531OTOOL64=$ac_cv_prog_OTOOL64 7532if test -n "$OTOOL64"; then 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7534$as_echo "$OTOOL64" >&6; } 7535else 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7537$as_echo "no" >&6; } 7538fi 7539 7540 7541fi 7542if test -z "$ac_cv_prog_OTOOL64"; then 7543 ac_ct_OTOOL64=$OTOOL64 7544 # Extract the first word of "otool64", so it can be a program name with args. 7545set dummy otool64; ac_word=$2 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7547$as_echo_n "checking for $ac_word... " >&6; } 7548if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 if test -n "$ac_ct_OTOOL64"; then 7552 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7553else 7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7555for as_dir in $PATH 7556do 7557 IFS=$as_save_IFS 7558 test -z "$as_dir" && as_dir=. 7559 for ac_exec_ext in '' $ac_executable_extensions; do 7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7561 ac_cv_prog_ac_ct_OTOOL64="otool64" 7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7563 break 2 7564 fi 7565done 7566 done 7567IFS=$as_save_IFS 7568 7569fi 7570fi 7571ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7572if test -n "$ac_ct_OTOOL64"; then 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7574$as_echo "$ac_ct_OTOOL64" >&6; } 7575else 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7577$as_echo "no" >&6; } 7578fi 7579 7580 if test "x$ac_ct_OTOOL64" = x; then 7581 OTOOL64=":" 7582 else 7583 case $cross_compiling:$ac_tool_warned in 7584yes:) 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7587ac_tool_warned=yes ;; 7588esac 7589 OTOOL64=$ac_ct_OTOOL64 7590 fi 7591else 7592 OTOOL64="$ac_cv_prog_OTOOL64" 7593fi 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7622$as_echo_n "checking for -single_module linker flag... " >&6; } 7623if ${lt_cv_apple_cc_single_mod+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625else 7626 lt_cv_apple_cc_single_mod=no 7627 if test -z "$LT_MULTI_MODULE"; then 7628 # By default we will add the -single_module flag. You can override 7629 # by either setting the environment variable LT_MULTI_MODULE 7630 # non-empty at configure time, or by adding -multi_module to the 7631 # link flags. 7632 rm -rf libconftest.dylib* 7633 echo "int foo(void){return 1;}" > conftest.c 7634 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7635-dynamiclib -Wl,-single_module conftest.c" >&5 7636 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7637 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7638 _lt_result=$? 7639 # If there is a non-empty error log, and "single_module" 7640 # appears in it, assume the flag caused a linker warning 7641 if test -s conftest.err && $GREP single_module conftest.err; then 7642 cat conftest.err >&5 7643 # Otherwise, if the output was created with a 0 exit code from 7644 # the compiler, it worked. 7645 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7646 lt_cv_apple_cc_single_mod=yes 7647 else 7648 cat conftest.err >&5 7649 fi 7650 rm -rf libconftest.dylib* 7651 rm -f conftest.* 7652 fi 7653fi 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7655$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7656 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7658$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7659if ${lt_cv_ld_exported_symbols_list+:} false; then : 7660 $as_echo_n "(cached) " >&6 7661else 7662 lt_cv_ld_exported_symbols_list=no 7663 save_LDFLAGS=$LDFLAGS 7664 echo "_main" > conftest.sym 7665 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668 7669int 7670main () 7671{ 7672 7673 ; 7674 return 0; 7675} 7676_ACEOF 7677if ac_fn_c_try_link "$LINENO"; then : 7678 lt_cv_ld_exported_symbols_list=yes 7679else 7680 lt_cv_ld_exported_symbols_list=no 7681fi 7682rm -f core conftest.err conftest.$ac_objext \ 7683 conftest$ac_exeext conftest.$ac_ext 7684 LDFLAGS=$save_LDFLAGS 7685 7686fi 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7688$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7689 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7691$as_echo_n "checking for -force_load linker flag... " >&6; } 7692if ${lt_cv_ld_force_load+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 lt_cv_ld_force_load=no 7696 cat > conftest.c << _LT_EOF 7697int forced_loaded() { return 2;} 7698_LT_EOF 7699 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7700 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7701 echo "$AR cru libconftest.a conftest.o" >&5 7702 $AR cru libconftest.a conftest.o 2>&5 7703 echo "$RANLIB libconftest.a" >&5 7704 $RANLIB libconftest.a 2>&5 7705 cat > conftest.c << _LT_EOF 7706int main() { return 0;} 7707_LT_EOF 7708 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7709 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7710 _lt_result=$? 7711 if test -s conftest.err && $GREP force_load conftest.err; then 7712 cat conftest.err >&5 7713 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7714 lt_cv_ld_force_load=yes 7715 else 7716 cat conftest.err >&5 7717 fi 7718 rm -f conftest.err libconftest.a conftest conftest.c 7719 rm -rf conftest.dSYM 7720 7721fi 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7723$as_echo "$lt_cv_ld_force_load" >&6; } 7724 case $host_os in 7725 rhapsody* | darwin1.[012]) 7726 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7727 darwin1.*) 7728 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7729 darwin*) # darwin 5.x on 7730 # if running on 10.5 or later, the deployment target defaults 7731 # to the OS version, if on x86, and 10.4, the deployment 7732 # target defaults to 10.4. Don't you love it? 7733 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7734 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7735 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7736 10.[012][,.]*) 7737 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7738 10.*) 7739 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7740 esac 7741 ;; 7742 esac 7743 if test yes = "$lt_cv_apple_cc_single_mod"; then 7744 _lt_dar_single_mod='$single_module' 7745 fi 7746 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7747 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7748 else 7749 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7750 fi 7751 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7752 _lt_dsymutil='~$DSYMUTIL $lib || :' 7753 else 7754 _lt_dsymutil= 7755 fi 7756 ;; 7757 esac 7758 7759# func_munge_path_list VARIABLE PATH 7760# ----------------------------------- 7761# VARIABLE is name of variable containing _space_ separated list of 7762# directories to be munged by the contents of PATH, which is string 7763# having a format: 7764# "DIR[:DIR]:" 7765# string "DIR[ DIR]" will be prepended to VARIABLE 7766# ":DIR[:DIR]" 7767# string "DIR[ DIR]" will be appended to VARIABLE 7768# "DIRP[:DIRP]::[DIRA:]DIRA" 7769# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7770# "DIRA[ DIRA]" will be appended to VARIABLE 7771# "DIR[:DIR]" 7772# VARIABLE will be replaced by "DIR[ DIR]" 7773func_munge_path_list () 7774{ 7775 case x$2 in 7776 x) 7777 ;; 7778 *:) 7779 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7780 ;; 7781 x:*) 7782 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7783 ;; 7784 *::*) 7785 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7786 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7787 ;; 7788 *) 7789 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7790 ;; 7791 esac 7792} 7793 7794ac_ext=c 7795ac_cpp='$CPP $CPPFLAGS' 7796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7798ac_compiler_gnu=$ac_cv_c_compiler_gnu 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7800$as_echo_n "checking how to run the C preprocessor... " >&6; } 7801# On Suns, sometimes $CPP names a directory. 7802if test -n "$CPP" && test -d "$CPP"; then 7803 CPP= 7804fi 7805if test -z "$CPP"; then 7806 if ${ac_cv_prog_CPP+:} false; then : 7807 $as_echo_n "(cached) " >&6 7808else 7809 # Double quotes because CPP needs to be expanded 7810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7811 do 7812 ac_preproc_ok=false 7813for ac_c_preproc_warn_flag in '' yes 7814do 7815 # Use a header file that comes with gcc, so configuring glibc 7816 # with a fresh cross-compiler works. 7817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7818 # <limits.h> exists even on freestanding compilers. 7819 # On the NeXT, cc -E runs the code through the compiler's parser, 7820 # not just through cpp. "Syntax error" is here to catch this case. 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823#ifdef __STDC__ 7824# include <limits.h> 7825#else 7826# include <assert.h> 7827#endif 7828 Syntax error 7829_ACEOF 7830if ac_fn_c_try_cpp "$LINENO"; then : 7831 7832else 7833 # Broken: fails on valid input. 7834continue 7835fi 7836rm -f conftest.err conftest.i conftest.$ac_ext 7837 7838 # OK, works on sane cases. Now check whether nonexistent headers 7839 # can be detected and how. 7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7841/* end confdefs.h. */ 7842#include <ac_nonexistent.h> 7843_ACEOF 7844if ac_fn_c_try_cpp "$LINENO"; then : 7845 # Broken: success on invalid input. 7846continue 7847else 7848 # Passes both tests. 7849ac_preproc_ok=: 7850break 7851fi 7852rm -f conftest.err conftest.i conftest.$ac_ext 7853 7854done 7855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7856rm -f conftest.i conftest.err conftest.$ac_ext 7857if $ac_preproc_ok; then : 7858 break 7859fi 7860 7861 done 7862 ac_cv_prog_CPP=$CPP 7863 7864fi 7865 CPP=$ac_cv_prog_CPP 7866else 7867 ac_cv_prog_CPP=$CPP 7868fi 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7870$as_echo "$CPP" >&6; } 7871ac_preproc_ok=false 7872for ac_c_preproc_warn_flag in '' yes 7873do 7874 # Use a header file that comes with gcc, so configuring glibc 7875 # with a fresh cross-compiler works. 7876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7877 # <limits.h> exists even on freestanding compilers. 7878 # On the NeXT, cc -E runs the code through the compiler's parser, 7879 # not just through cpp. "Syntax error" is here to catch this case. 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882#ifdef __STDC__ 7883# include <limits.h> 7884#else 7885# include <assert.h> 7886#endif 7887 Syntax error 7888_ACEOF 7889if ac_fn_c_try_cpp "$LINENO"; then : 7890 7891else 7892 # Broken: fails on valid input. 7893continue 7894fi 7895rm -f conftest.err conftest.i conftest.$ac_ext 7896 7897 # OK, works on sane cases. Now check whether nonexistent headers 7898 # can be detected and how. 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900/* end confdefs.h. */ 7901#include <ac_nonexistent.h> 7902_ACEOF 7903if ac_fn_c_try_cpp "$LINENO"; then : 7904 # Broken: success on invalid input. 7905continue 7906else 7907 # Passes both tests. 7908ac_preproc_ok=: 7909break 7910fi 7911rm -f conftest.err conftest.i conftest.$ac_ext 7912 7913done 7914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7915rm -f conftest.i conftest.err conftest.$ac_ext 7916if $ac_preproc_ok; then : 7917 7918else 7919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7921as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7922See \`config.log' for more details" "$LINENO" 5; } 7923fi 7924 7925ac_ext=c 7926ac_cpp='$CPP $CPPFLAGS' 7927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7929ac_compiler_gnu=$ac_cv_c_compiler_gnu 7930 7931 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7933$as_echo_n "checking for ANSI C header files... " >&6; } 7934if ${ac_cv_header_stdc+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938/* end confdefs.h. */ 7939#include <stdlib.h> 7940#include <stdarg.h> 7941#include <string.h> 7942#include <float.h> 7943 7944int 7945main () 7946{ 7947 7948 ; 7949 return 0; 7950} 7951_ACEOF 7952if ac_fn_c_try_compile "$LINENO"; then : 7953 ac_cv_header_stdc=yes 7954else 7955 ac_cv_header_stdc=no 7956fi 7957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7958 7959if test $ac_cv_header_stdc = yes; then 7960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963#include <string.h> 7964 7965_ACEOF 7966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7967 $EGREP "memchr" >/dev/null 2>&1; then : 7968 7969else 7970 ac_cv_header_stdc=no 7971fi 7972rm -f conftest* 7973 7974fi 7975 7976if test $ac_cv_header_stdc = yes; then 7977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980#include <stdlib.h> 7981 7982_ACEOF 7983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7984 $EGREP "free" >/dev/null 2>&1; then : 7985 7986else 7987 ac_cv_header_stdc=no 7988fi 7989rm -f conftest* 7990 7991fi 7992 7993if test $ac_cv_header_stdc = yes; then 7994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7995 if test "$cross_compiling" = yes; then : 7996 : 7997else 7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000#include <ctype.h> 8001#include <stdlib.h> 8002#if ((' ' & 0x0FF) == 0x020) 8003# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8004# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8005#else 8006# define ISLOWER(c) \ 8007 (('a' <= (c) && (c) <= 'i') \ 8008 || ('j' <= (c) && (c) <= 'r') \ 8009 || ('s' <= (c) && (c) <= 'z')) 8010# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8011#endif 8012 8013#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8014int 8015main () 8016{ 8017 int i; 8018 for (i = 0; i < 256; i++) 8019 if (XOR (islower (i), ISLOWER (i)) 8020 || toupper (i) != TOUPPER (i)) 8021 return 2; 8022 return 0; 8023} 8024_ACEOF 8025if ac_fn_c_try_run "$LINENO"; then : 8026 8027else 8028 ac_cv_header_stdc=no 8029fi 8030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8031 conftest.$ac_objext conftest.beam conftest.$ac_ext 8032fi 8033 8034fi 8035fi 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8037$as_echo "$ac_cv_header_stdc" >&6; } 8038if test $ac_cv_header_stdc = yes; then 8039 8040$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8041 8042fi 8043 8044# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8045for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8046 inttypes.h stdint.h unistd.h 8047do : 8048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8049ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8050" 8051if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8052 cat >>confdefs.h <<_ACEOF 8053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8054_ACEOF 8055 8056fi 8057 8058done 8059 8060 8061for ac_header in dlfcn.h 8062do : 8063 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8064" 8065if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8066 cat >>confdefs.h <<_ACEOF 8067#define HAVE_DLFCN_H 1 8068_ACEOF 8069 8070fi 8071 8072done 8073 8074 8075 8076 8077 8078# Set options 8079 8080 8081 8082 enable_dlopen=no 8083 8084 8085 enable_win32_dll=no 8086 8087 8088 # Check whether --enable-shared was given. 8089if test "${enable_shared+set}" = set; then : 8090 enableval=$enable_shared; p=${PACKAGE-default} 8091 case $enableval in 8092 yes) enable_shared=yes ;; 8093 no) enable_shared=no ;; 8094 *) 8095 enable_shared=no 8096 # Look at the argument we got. We use all the common list separators. 8097 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8098 for pkg in $enableval; do 8099 IFS=$lt_save_ifs 8100 if test "X$pkg" = "X$p"; then 8101 enable_shared=yes 8102 fi 8103 done 8104 IFS=$lt_save_ifs 8105 ;; 8106 esac 8107else 8108 enable_shared=yes 8109fi 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 # Check whether --enable-static was given. 8120if test "${enable_static+set}" = set; then : 8121 enableval=$enable_static; p=${PACKAGE-default} 8122 case $enableval in 8123 yes) enable_static=yes ;; 8124 no) enable_static=no ;; 8125 *) 8126 enable_static=no 8127 # Look at the argument we got. We use all the common list separators. 8128 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8129 for pkg in $enableval; do 8130 IFS=$lt_save_ifs 8131 if test "X$pkg" = "X$p"; then 8132 enable_static=yes 8133 fi 8134 done 8135 IFS=$lt_save_ifs 8136 ;; 8137 esac 8138else 8139 enable_static=yes 8140fi 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151# Check whether --with-pic was given. 8152if test "${with_pic+set}" = set; then : 8153 withval=$with_pic; lt_p=${PACKAGE-default} 8154 case $withval in 8155 yes|no) pic_mode=$withval ;; 8156 *) 8157 pic_mode=default 8158 # Look at the argument we got. We use all the common list separators. 8159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8160 for lt_pkg in $withval; do 8161 IFS=$lt_save_ifs 8162 if test "X$lt_pkg" = "X$lt_p"; then 8163 pic_mode=yes 8164 fi 8165 done 8166 IFS=$lt_save_ifs 8167 ;; 8168 esac 8169else 8170 pic_mode=default 8171fi 8172 8173 8174 8175 8176 8177 8178 8179 8180 # Check whether --enable-fast-install was given. 8181if test "${enable_fast_install+set}" = set; then : 8182 enableval=$enable_fast_install; p=${PACKAGE-default} 8183 case $enableval in 8184 yes) enable_fast_install=yes ;; 8185 no) enable_fast_install=no ;; 8186 *) 8187 enable_fast_install=no 8188 # Look at the argument we got. We use all the common list separators. 8189 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8190 for pkg in $enableval; do 8191 IFS=$lt_save_ifs 8192 if test "X$pkg" = "X$p"; then 8193 enable_fast_install=yes 8194 fi 8195 done 8196 IFS=$lt_save_ifs 8197 ;; 8198 esac 8199else 8200 enable_fast_install=yes 8201fi 8202 8203 8204 8205 8206 8207 8208 8209 8210 shared_archive_member_spec= 8211case $host,$enable_shared in 8212power*-*-aix[5-9]*,yes) 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8214$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8215 8216# Check whether --with-aix-soname was given. 8217if test "${with_aix_soname+set}" = set; then : 8218 withval=$with_aix_soname; case $withval in 8219 aix|svr4|both) 8220 ;; 8221 *) 8222 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8223 ;; 8224 esac 8225 lt_cv_with_aix_soname=$with_aix_soname 8226else 8227 if ${lt_cv_with_aix_soname+:} false; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 lt_cv_with_aix_soname=aix 8231fi 8232 8233 with_aix_soname=$lt_cv_with_aix_soname 8234fi 8235 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8237$as_echo "$with_aix_soname" >&6; } 8238 if test aix != "$with_aix_soname"; then 8239 # For the AIX way of multilib, we name the shared archive member 8240 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8241 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8242 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8243 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8244 if test 64 = "${OBJECT_MODE-32}"; then 8245 shared_archive_member_spec=shr_64 8246 else 8247 shared_archive_member_spec=shr 8248 fi 8249 fi 8250 ;; 8251*) 8252 with_aix_soname=aix 8253 ;; 8254esac 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265# This can be used to rebuild libtool when needed 8266LIBTOOL_DEPS=$ltmain 8267 8268# Always use our own libtool. 8269LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300test -z "$LN_S" && LN_S="ln -s" 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315if test -n "${ZSH_VERSION+set}"; then 8316 setopt NO_GLOB_SUBST 8317fi 8318 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8320$as_echo_n "checking for objdir... " >&6; } 8321if ${lt_cv_objdir+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 rm -f .libs 2>/dev/null 8325mkdir .libs 2>/dev/null 8326if test -d .libs; then 8327 lt_cv_objdir=.libs 8328else 8329 # MS-DOS does not allow filenames that begin with a dot. 8330 lt_cv_objdir=_libs 8331fi 8332rmdir .libs 2>/dev/null 8333fi 8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8335$as_echo "$lt_cv_objdir" >&6; } 8336objdir=$lt_cv_objdir 8337 8338 8339 8340 8341 8342cat >>confdefs.h <<_ACEOF 8343#define LT_OBJDIR "$lt_cv_objdir/" 8344_ACEOF 8345 8346 8347 8348 8349case $host_os in 8350aix3*) 8351 # AIX sometimes has problems with the GCC collect2 program. For some 8352 # reason, if we set the COLLECT_NAMES environment variable, the problems 8353 # vanish in a puff of smoke. 8354 if test set != "${COLLECT_NAMES+set}"; then 8355 COLLECT_NAMES= 8356 export COLLECT_NAMES 8357 fi 8358 ;; 8359esac 8360 8361# Global variables: 8362ofile=libtool 8363can_build_shared=yes 8364 8365# All known linkers require a '.a' archive for static linking (except MSVC, 8366# which needs '.lib'). 8367libext=a 8368 8369with_gnu_ld=$lt_cv_prog_gnu_ld 8370 8371old_CC=$CC 8372old_CFLAGS=$CFLAGS 8373 8374# Set sane defaults for various variables 8375test -z "$CC" && CC=cc 8376test -z "$LTCC" && LTCC=$CC 8377test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8378test -z "$LD" && LD=ld 8379test -z "$ac_objext" && ac_objext=o 8380 8381func_cc_basename $compiler 8382cc_basename=$func_cc_basename_result 8383 8384 8385# Only perform the check for file, if the check method requires it 8386test -z "$MAGIC_CMD" && MAGIC_CMD=file 8387case $deplibs_check_method in 8388file_magic*) 8389 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8391$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8392if ${lt_cv_path_MAGIC_CMD+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 case $MAGIC_CMD in 8396[\\/*] | ?:[\\/]*) 8397 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8398 ;; 8399*) 8400 lt_save_MAGIC_CMD=$MAGIC_CMD 8401 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8402 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8403 for ac_dir in $ac_dummy; do 8404 IFS=$lt_save_ifs 8405 test -z "$ac_dir" && ac_dir=. 8406 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8407 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8408 if test -n "$file_magic_test_file"; then 8409 case $deplibs_check_method in 8410 "file_magic "*) 8411 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8412 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8413 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8414 $EGREP "$file_magic_regex" > /dev/null; then 8415 : 8416 else 8417 cat <<_LT_EOF 1>&2 8418 8419*** Warning: the command libtool uses to detect shared libraries, 8420*** $file_magic_cmd, produces output that libtool cannot recognize. 8421*** The result is that libtool may fail to recognize shared libraries 8422*** as such. This will affect the creation of libtool libraries that 8423*** depend on shared libraries, but programs linked with such libtool 8424*** libraries will work regardless of this problem. Nevertheless, you 8425*** may want to report the problem to your system manager and/or to 8426*** bug-libtool@gnu.org 8427 8428_LT_EOF 8429 fi ;; 8430 esac 8431 fi 8432 break 8433 fi 8434 done 8435 IFS=$lt_save_ifs 8436 MAGIC_CMD=$lt_save_MAGIC_CMD 8437 ;; 8438esac 8439fi 8440 8441MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8442if test -n "$MAGIC_CMD"; then 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8444$as_echo "$MAGIC_CMD" >&6; } 8445else 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447$as_echo "no" >&6; } 8448fi 8449 8450 8451 8452 8453 8454if test -z "$lt_cv_path_MAGIC_CMD"; then 8455 if test -n "$ac_tool_prefix"; then 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8457$as_echo_n "checking for file... " >&6; } 8458if ${lt_cv_path_MAGIC_CMD+:} false; then : 8459 $as_echo_n "(cached) " >&6 8460else 8461 case $MAGIC_CMD in 8462[\\/*] | ?:[\\/]*) 8463 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8464 ;; 8465*) 8466 lt_save_MAGIC_CMD=$MAGIC_CMD 8467 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8468 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8469 for ac_dir in $ac_dummy; do 8470 IFS=$lt_save_ifs 8471 test -z "$ac_dir" && ac_dir=. 8472 if test -f "$ac_dir/file"; then 8473 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8474 if test -n "$file_magic_test_file"; then 8475 case $deplibs_check_method in 8476 "file_magic "*) 8477 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8478 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8479 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8480 $EGREP "$file_magic_regex" > /dev/null; then 8481 : 8482 else 8483 cat <<_LT_EOF 1>&2 8484 8485*** Warning: the command libtool uses to detect shared libraries, 8486*** $file_magic_cmd, produces output that libtool cannot recognize. 8487*** The result is that libtool may fail to recognize shared libraries 8488*** as such. This will affect the creation of libtool libraries that 8489*** depend on shared libraries, but programs linked with such libtool 8490*** libraries will work regardless of this problem. Nevertheless, you 8491*** may want to report the problem to your system manager and/or to 8492*** bug-libtool@gnu.org 8493 8494_LT_EOF 8495 fi ;; 8496 esac 8497 fi 8498 break 8499 fi 8500 done 8501 IFS=$lt_save_ifs 8502 MAGIC_CMD=$lt_save_MAGIC_CMD 8503 ;; 8504esac 8505fi 8506 8507MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8508if test -n "$MAGIC_CMD"; then 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8510$as_echo "$MAGIC_CMD" >&6; } 8511else 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8513$as_echo "no" >&6; } 8514fi 8515 8516 8517 else 8518 MAGIC_CMD=: 8519 fi 8520fi 8521 8522 fi 8523 ;; 8524esac 8525 8526# Use C for the default configuration in the libtool script 8527 8528lt_save_CC=$CC 8529ac_ext=c 8530ac_cpp='$CPP $CPPFLAGS' 8531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8533ac_compiler_gnu=$ac_cv_c_compiler_gnu 8534 8535 8536# Source file extension for C test sources. 8537ac_ext=c 8538 8539# Object file extension for compiled C test sources. 8540objext=o 8541objext=$objext 8542 8543# Code to be used in simple compile tests 8544lt_simple_compile_test_code="int some_variable = 0;" 8545 8546# Code to be used in simple link tests 8547lt_simple_link_test_code='int main(){return(0);}' 8548 8549 8550 8551 8552 8553 8554 8555# If no C compiler was specified, use CC. 8556LTCC=${LTCC-"$CC"} 8557 8558# If no C compiler flags were specified, use CFLAGS. 8559LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8560 8561# Allow CC to be a program name with arguments. 8562compiler=$CC 8563 8564# Save the default compiler, since it gets overwritten when the other 8565# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8566compiler_DEFAULT=$CC 8567 8568# save warnings/boilerplate of simple test code 8569ac_outfile=conftest.$ac_objext 8570echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8571eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8572_lt_compiler_boilerplate=`cat conftest.err` 8573$RM conftest* 8574 8575ac_outfile=conftest.$ac_objext 8576echo "$lt_simple_link_test_code" >conftest.$ac_ext 8577eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8578_lt_linker_boilerplate=`cat conftest.err` 8579$RM -r conftest* 8580 8581 8582## CAVEAT EMPTOR: 8583## There is no encapsulation within the following macros, do not change 8584## the running order or otherwise move them around unless you know exactly 8585## what you are doing... 8586if test -n "$compiler"; then 8587 8588lt_prog_compiler_no_builtin_flag= 8589 8590if test yes = "$GCC"; then 8591 case $cc_basename in 8592 nvcc*) 8593 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8594 *) 8595 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8596 esac 8597 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8599$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8600if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 lt_cv_prog_compiler_rtti_exceptions=no 8604 ac_outfile=conftest.$ac_objext 8605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8606 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8607 # Insert the option either (1) after the last *FLAGS variable, or 8608 # (2) before a word containing "conftest.", or (3) at the end. 8609 # Note that $ac_compile itself does not contain backslashes and begins 8610 # with a dollar sign (not a hyphen), so the echo should work correctly. 8611 # The option is referenced via a variable to avoid confusing sed. 8612 lt_compile=`echo "$ac_compile" | $SED \ 8613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8615 -e 's:$: $lt_compiler_flag:'` 8616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8617 (eval "$lt_compile" 2>conftest.err) 8618 ac_status=$? 8619 cat conftest.err >&5 8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8621 if (exit $ac_status) && test -s "$ac_outfile"; then 8622 # The compiler can only warn and ignore the option if not recognized 8623 # So say no if there are warnings other than the usual output. 8624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8626 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8627 lt_cv_prog_compiler_rtti_exceptions=yes 8628 fi 8629 fi 8630 $RM conftest* 8631 8632fi 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8634$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8635 8636if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8637 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8638else 8639 : 8640fi 8641 8642fi 8643 8644 8645 8646 8647 8648 8649 lt_prog_compiler_wl= 8650lt_prog_compiler_pic= 8651lt_prog_compiler_static= 8652 8653 8654 if test yes = "$GCC"; then 8655 lt_prog_compiler_wl='-Wl,' 8656 lt_prog_compiler_static='-static' 8657 8658 case $host_os in 8659 aix*) 8660 # All AIX code is PIC. 8661 if test ia64 = "$host_cpu"; then 8662 # AIX 5 now supports IA64 processor 8663 lt_prog_compiler_static='-Bstatic' 8664 fi 8665 lt_prog_compiler_pic='-fPIC' 8666 ;; 8667 8668 amigaos*) 8669 case $host_cpu in 8670 powerpc) 8671 # see comment about AmigaOS4 .so support 8672 lt_prog_compiler_pic='-fPIC' 8673 ;; 8674 m68k) 8675 # FIXME: we need at least 68020 code to build shared libraries, but 8676 # adding the '-m68020' flag to GCC prevents building anything better, 8677 # like '-m68040'. 8678 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8679 ;; 8680 esac 8681 ;; 8682 8683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8684 # PIC is the default for these OSes. 8685 ;; 8686 8687 mingw* | cygwin* | pw32* | os2* | cegcc*) 8688 # This hack is so that the source file can tell whether it is being 8689 # built for inclusion in a dll (and should export symbols for example). 8690 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8691 # (--disable-auto-import) libraries 8692 lt_prog_compiler_pic='-DDLL_EXPORT' 8693 case $host_os in 8694 os2*) 8695 lt_prog_compiler_static='$wl-static' 8696 ;; 8697 esac 8698 ;; 8699 8700 darwin* | rhapsody*) 8701 # PIC is the default on this platform 8702 # Common symbols not allowed in MH_DYLIB files 8703 lt_prog_compiler_pic='-fno-common' 8704 ;; 8705 8706 haiku*) 8707 # PIC is the default for Haiku. 8708 # The "-static" flag exists, but is broken. 8709 lt_prog_compiler_static= 8710 ;; 8711 8712 hpux*) 8713 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8714 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8715 # sets the default TLS model and affects inlining. 8716 case $host_cpu in 8717 hppa*64*) 8718 # +Z the default 8719 ;; 8720 *) 8721 lt_prog_compiler_pic='-fPIC' 8722 ;; 8723 esac 8724 ;; 8725 8726 interix[3-9]*) 8727 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8728 # Instead, we relocate shared libraries at runtime. 8729 ;; 8730 8731 msdosdjgpp*) 8732 # Just because we use GCC doesn't mean we suddenly get shared libraries 8733 # on systems that don't support them. 8734 lt_prog_compiler_can_build_shared=no 8735 enable_shared=no 8736 ;; 8737 8738 *nto* | *qnx*) 8739 # QNX uses GNU C++, but need to define -shared option too, otherwise 8740 # it will coredump. 8741 lt_prog_compiler_pic='-fPIC -shared' 8742 ;; 8743 8744 sysv4*MP*) 8745 if test -d /usr/nec; then 8746 lt_prog_compiler_pic=-Kconform_pic 8747 fi 8748 ;; 8749 8750 *) 8751 lt_prog_compiler_pic='-fPIC' 8752 ;; 8753 esac 8754 8755 case $cc_basename in 8756 nvcc*) # Cuda Compiler Driver 2.2 8757 lt_prog_compiler_wl='-Xlinker ' 8758 if test -n "$lt_prog_compiler_pic"; then 8759 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8760 fi 8761 ;; 8762 esac 8763 else 8764 # PORTME Check for flag to pass linker flags through the system compiler. 8765 case $host_os in 8766 aix*) 8767 lt_prog_compiler_wl='-Wl,' 8768 if test ia64 = "$host_cpu"; then 8769 # AIX 5 now supports IA64 processor 8770 lt_prog_compiler_static='-Bstatic' 8771 else 8772 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8773 fi 8774 ;; 8775 8776 darwin* | rhapsody*) 8777 # PIC is the default on this platform 8778 # Common symbols not allowed in MH_DYLIB files 8779 lt_prog_compiler_pic='-fno-common' 8780 case $cc_basename in 8781 nagfor*) 8782 # NAG Fortran compiler 8783 lt_prog_compiler_wl='-Wl,-Wl,,' 8784 lt_prog_compiler_pic='-PIC' 8785 lt_prog_compiler_static='-Bstatic' 8786 ;; 8787 esac 8788 ;; 8789 8790 mingw* | cygwin* | pw32* | os2* | cegcc*) 8791 # This hack is so that the source file can tell whether it is being 8792 # built for inclusion in a dll (and should export symbols for example). 8793 lt_prog_compiler_pic='-DDLL_EXPORT' 8794 case $host_os in 8795 os2*) 8796 lt_prog_compiler_static='$wl-static' 8797 ;; 8798 esac 8799 ;; 8800 8801 hpux9* | hpux10* | hpux11*) 8802 lt_prog_compiler_wl='-Wl,' 8803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8804 # not for PA HP-UX. 8805 case $host_cpu in 8806 hppa*64*|ia64*) 8807 # +Z the default 8808 ;; 8809 *) 8810 lt_prog_compiler_pic='+Z' 8811 ;; 8812 esac 8813 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8814 lt_prog_compiler_static='$wl-a ${wl}archive' 8815 ;; 8816 8817 irix5* | irix6* | nonstopux*) 8818 lt_prog_compiler_wl='-Wl,' 8819 # PIC (with -KPIC) is the default. 8820 lt_prog_compiler_static='-non_shared' 8821 ;; 8822 8823 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8824 case $cc_basename in 8825 # old Intel for x86_64, which still supported -KPIC. 8826 ecc*) 8827 lt_prog_compiler_wl='-Wl,' 8828 lt_prog_compiler_pic='-KPIC' 8829 lt_prog_compiler_static='-static' 8830 ;; 8831 # icc used to be incompatible with GCC. 8832 # ICC 10 doesn't accept -KPIC any more. 8833 icc* | ifort*) 8834 lt_prog_compiler_wl='-Wl,' 8835 lt_prog_compiler_pic='-fPIC' 8836 lt_prog_compiler_static='-static' 8837 ;; 8838 # Lahey Fortran 8.1. 8839 lf95*) 8840 lt_prog_compiler_wl='-Wl,' 8841 lt_prog_compiler_pic='--shared' 8842 lt_prog_compiler_static='--static' 8843 ;; 8844 nagfor*) 8845 # NAG Fortran compiler 8846 lt_prog_compiler_wl='-Wl,-Wl,,' 8847 lt_prog_compiler_pic='-PIC' 8848 lt_prog_compiler_static='-Bstatic' 8849 ;; 8850 tcc*) 8851 # Fabrice Bellard et al's Tiny C Compiler 8852 lt_prog_compiler_wl='-Wl,' 8853 lt_prog_compiler_pic='-fPIC' 8854 lt_prog_compiler_static='-static' 8855 ;; 8856 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8857 # Portland Group compilers (*not* the Pentium gcc compiler, 8858 # which looks to be a dead project) 8859 lt_prog_compiler_wl='-Wl,' 8860 lt_prog_compiler_pic='-fpic' 8861 lt_prog_compiler_static='-Bstatic' 8862 ;; 8863 ccc*) 8864 lt_prog_compiler_wl='-Wl,' 8865 # All Alpha code is PIC. 8866 lt_prog_compiler_static='-non_shared' 8867 ;; 8868 xl* | bgxl* | bgf* | mpixl*) 8869 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8870 lt_prog_compiler_wl='-Wl,' 8871 lt_prog_compiler_pic='-qpic' 8872 lt_prog_compiler_static='-qstaticlink' 8873 ;; 8874 *) 8875 case `$CC -V 2>&1 | sed 5q` in 8876 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8877 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8878 lt_prog_compiler_pic='-KPIC' 8879 lt_prog_compiler_static='-Bstatic' 8880 lt_prog_compiler_wl='' 8881 ;; 8882 *Sun\ F* | *Sun*Fortran*) 8883 lt_prog_compiler_pic='-KPIC' 8884 lt_prog_compiler_static='-Bstatic' 8885 lt_prog_compiler_wl='-Qoption ld ' 8886 ;; 8887 *Sun\ C*) 8888 # Sun C 5.9 8889 lt_prog_compiler_pic='-KPIC' 8890 lt_prog_compiler_static='-Bstatic' 8891 lt_prog_compiler_wl='-Wl,' 8892 ;; 8893 *Intel*\ [CF]*Compiler*) 8894 lt_prog_compiler_wl='-Wl,' 8895 lt_prog_compiler_pic='-fPIC' 8896 lt_prog_compiler_static='-static' 8897 ;; 8898 *Portland\ Group*) 8899 lt_prog_compiler_wl='-Wl,' 8900 lt_prog_compiler_pic='-fpic' 8901 lt_prog_compiler_static='-Bstatic' 8902 ;; 8903 esac 8904 ;; 8905 esac 8906 ;; 8907 8908 newsos6) 8909 lt_prog_compiler_pic='-KPIC' 8910 lt_prog_compiler_static='-Bstatic' 8911 ;; 8912 8913 *nto* | *qnx*) 8914 # QNX uses GNU C++, but need to define -shared option too, otherwise 8915 # it will coredump. 8916 lt_prog_compiler_pic='-fPIC -shared' 8917 ;; 8918 8919 osf3* | osf4* | osf5*) 8920 lt_prog_compiler_wl='-Wl,' 8921 # All OSF/1 code is PIC. 8922 lt_prog_compiler_static='-non_shared' 8923 ;; 8924 8925 rdos*) 8926 lt_prog_compiler_static='-non_shared' 8927 ;; 8928 8929 solaris*) 8930 lt_prog_compiler_pic='-KPIC' 8931 lt_prog_compiler_static='-Bstatic' 8932 case $cc_basename in 8933 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8934 lt_prog_compiler_wl='-Qoption ld ';; 8935 *) 8936 lt_prog_compiler_wl='-Wl,';; 8937 esac 8938 ;; 8939 8940 sunos4*) 8941 lt_prog_compiler_wl='-Qoption ld ' 8942 lt_prog_compiler_pic='-PIC' 8943 lt_prog_compiler_static='-Bstatic' 8944 ;; 8945 8946 sysv4 | sysv4.2uw2* | sysv4.3*) 8947 lt_prog_compiler_wl='-Wl,' 8948 lt_prog_compiler_pic='-KPIC' 8949 lt_prog_compiler_static='-Bstatic' 8950 ;; 8951 8952 sysv4*MP*) 8953 if test -d /usr/nec; then 8954 lt_prog_compiler_pic='-Kconform_pic' 8955 lt_prog_compiler_static='-Bstatic' 8956 fi 8957 ;; 8958 8959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8960 lt_prog_compiler_wl='-Wl,' 8961 lt_prog_compiler_pic='-KPIC' 8962 lt_prog_compiler_static='-Bstatic' 8963 ;; 8964 8965 unicos*) 8966 lt_prog_compiler_wl='-Wl,' 8967 lt_prog_compiler_can_build_shared=no 8968 ;; 8969 8970 uts4*) 8971 lt_prog_compiler_pic='-pic' 8972 lt_prog_compiler_static='-Bstatic' 8973 ;; 8974 8975 *) 8976 lt_prog_compiler_can_build_shared=no 8977 ;; 8978 esac 8979 fi 8980 8981case $host_os in 8982 # For platforms that do not support PIC, -DPIC is meaningless: 8983 *djgpp*) 8984 lt_prog_compiler_pic= 8985 ;; 8986 *) 8987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8988 ;; 8989esac 8990 8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8992$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8993if ${lt_cv_prog_compiler_pic+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8997fi 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8999$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9000lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9001 9002# 9003# Check to make sure the PIC flag actually works. 9004# 9005if test -n "$lt_prog_compiler_pic"; then 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9007$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9008if ${lt_cv_prog_compiler_pic_works+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 lt_cv_prog_compiler_pic_works=no 9012 ac_outfile=conftest.$ac_objext 9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9014 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9015 # Insert the option either (1) after the last *FLAGS variable, or 9016 # (2) before a word containing "conftest.", or (3) at the end. 9017 # Note that $ac_compile itself does not contain backslashes and begins 9018 # with a dollar sign (not a hyphen), so the echo should work correctly. 9019 # The option is referenced via a variable to avoid confusing sed. 9020 lt_compile=`echo "$ac_compile" | $SED \ 9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9023 -e 's:$: $lt_compiler_flag:'` 9024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9025 (eval "$lt_compile" 2>conftest.err) 9026 ac_status=$? 9027 cat conftest.err >&5 9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9029 if (exit $ac_status) && test -s "$ac_outfile"; then 9030 # The compiler can only warn and ignore the option if not recognized 9031 # So say no if there are warnings other than the usual output. 9032 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9035 lt_cv_prog_compiler_pic_works=yes 9036 fi 9037 fi 9038 $RM conftest* 9039 9040fi 9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9042$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9043 9044if test yes = "$lt_cv_prog_compiler_pic_works"; then 9045 case $lt_prog_compiler_pic in 9046 "" | " "*) ;; 9047 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9048 esac 9049else 9050 lt_prog_compiler_pic= 9051 lt_prog_compiler_can_build_shared=no 9052fi 9053 9054fi 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066# 9067# Check to make sure the static flag actually works. 9068# 9069wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9071$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9072if ${lt_cv_prog_compiler_static_works+:} false; then : 9073 $as_echo_n "(cached) " >&6 9074else 9075 lt_cv_prog_compiler_static_works=no 9076 save_LDFLAGS=$LDFLAGS 9077 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9078 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9080 # The linker can only warn and ignore the option if not recognized 9081 # So say no if there are warnings 9082 if test -s conftest.err; then 9083 # Append any errors to the config.log. 9084 cat conftest.err 1>&5 9085 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9087 if diff conftest.exp conftest.er2 >/dev/null; then 9088 lt_cv_prog_compiler_static_works=yes 9089 fi 9090 else 9091 lt_cv_prog_compiler_static_works=yes 9092 fi 9093 fi 9094 $RM -r conftest* 9095 LDFLAGS=$save_LDFLAGS 9096 9097fi 9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9099$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9100 9101if test yes = "$lt_cv_prog_compiler_static_works"; then 9102 : 9103else 9104 lt_prog_compiler_static= 9105fi 9106 9107 9108 9109 9110 9111 9112 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9114$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9115if ${lt_cv_prog_compiler_c_o+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 lt_cv_prog_compiler_c_o=no 9119 $RM -r conftest 2>/dev/null 9120 mkdir conftest 9121 cd conftest 9122 mkdir out 9123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9124 9125 lt_compiler_flag="-o out/conftest2.$ac_objext" 9126 # Insert the option either (1) after the last *FLAGS variable, or 9127 # (2) before a word containing "conftest.", or (3) at the end. 9128 # Note that $ac_compile itself does not contain backslashes and begins 9129 # with a dollar sign (not a hyphen), so the echo should work correctly. 9130 lt_compile=`echo "$ac_compile" | $SED \ 9131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9133 -e 's:$: $lt_compiler_flag:'` 9134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9135 (eval "$lt_compile" 2>out/conftest.err) 9136 ac_status=$? 9137 cat out/conftest.err >&5 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9140 then 9141 # The compiler can only warn and ignore the option if not recognized 9142 # So say no if there are warnings 9143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9144 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9145 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9146 lt_cv_prog_compiler_c_o=yes 9147 fi 9148 fi 9149 chmod u+w . 2>&5 9150 $RM conftest* 9151 # SGI C++ compiler will create directory out/ii_files/ for 9152 # template instantiation 9153 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9154 $RM out/* && rmdir out 9155 cd .. 9156 $RM -r conftest 9157 $RM conftest* 9158 9159fi 9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9161$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9162 9163 9164 9165 9166 9167 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9170if ${lt_cv_prog_compiler_c_o+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172else 9173 lt_cv_prog_compiler_c_o=no 9174 $RM -r conftest 2>/dev/null 9175 mkdir conftest 9176 cd conftest 9177 mkdir out 9178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9179 9180 lt_compiler_flag="-o out/conftest2.$ac_objext" 9181 # Insert the option either (1) after the last *FLAGS variable, or 9182 # (2) before a word containing "conftest.", or (3) at the end. 9183 # Note that $ac_compile itself does not contain backslashes and begins 9184 # with a dollar sign (not a hyphen), so the echo should work correctly. 9185 lt_compile=`echo "$ac_compile" | $SED \ 9186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9188 -e 's:$: $lt_compiler_flag:'` 9189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9190 (eval "$lt_compile" 2>out/conftest.err) 9191 ac_status=$? 9192 cat out/conftest.err >&5 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9195 then 9196 # The compiler can only warn and ignore the option if not recognized 9197 # So say no if there are warnings 9198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9201 lt_cv_prog_compiler_c_o=yes 9202 fi 9203 fi 9204 chmod u+w . 2>&5 9205 $RM conftest* 9206 # SGI C++ compiler will create directory out/ii_files/ for 9207 # template instantiation 9208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9209 $RM out/* && rmdir out 9210 cd .. 9211 $RM -r conftest 9212 $RM conftest* 9213 9214fi 9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9216$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9217 9218 9219 9220 9221hard_links=nottested 9222if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9223 # do not overwrite the value of need_locks provided by the user 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9225$as_echo_n "checking if we can lock with hard links... " >&6; } 9226 hard_links=yes 9227 $RM conftest* 9228 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9229 touch conftest.a 9230 ln conftest.a conftest.b 2>&5 || hard_links=no 9231 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9233$as_echo "$hard_links" >&6; } 9234 if test no = "$hard_links"; then 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9236$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9237 need_locks=warn 9238 fi 9239else 9240 need_locks=no 9241fi 9242 9243 9244 9245 9246 9247 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9249$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9250 9251 runpath_var= 9252 allow_undefined_flag= 9253 always_export_symbols=no 9254 archive_cmds= 9255 archive_expsym_cmds= 9256 compiler_needs_object=no 9257 enable_shared_with_static_runtimes=no 9258 export_dynamic_flag_spec= 9259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9260 hardcode_automatic=no 9261 hardcode_direct=no 9262 hardcode_direct_absolute=no 9263 hardcode_libdir_flag_spec= 9264 hardcode_libdir_separator= 9265 hardcode_minus_L=no 9266 hardcode_shlibpath_var=unsupported 9267 inherit_rpath=no 9268 link_all_deplibs=unknown 9269 module_cmds= 9270 module_expsym_cmds= 9271 old_archive_from_new_cmds= 9272 old_archive_from_expsyms_cmds= 9273 thread_safe_flag_spec= 9274 whole_archive_flag_spec= 9275 # include_expsyms should be a list of space-separated symbols to be *always* 9276 # included in the symbol list 9277 include_expsyms= 9278 # exclude_expsyms can be an extended regexp of symbols to exclude 9279 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9280 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9281 # as well as any symbol that contains 'd'. 9282 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9283 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9284 # platforms (ab)use it in PIC code, but their linkers get confused if 9285 # the symbol is explicitly referenced. Since portable code cannot 9286 # rely on this symbol name, it's probably fine to never include it in 9287 # preloaded symbol tables. 9288 # Exclude shared library initialization/finalization symbols. 9289 extract_expsyms_cmds= 9290 9291 case $host_os in 9292 cygwin* | mingw* | pw32* | cegcc*) 9293 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9294 # When not using gcc, we currently assume that we are using 9295 # Microsoft Visual C++. 9296 if test yes != "$GCC"; then 9297 with_gnu_ld=no 9298 fi 9299 ;; 9300 interix*) 9301 # we just hope/assume this is gcc and not c89 (= MSVC++) 9302 with_gnu_ld=yes 9303 ;; 9304 openbsd* | bitrig*) 9305 with_gnu_ld=no 9306 ;; 9307 esac 9308 9309 ld_shlibs=yes 9310 9311 # On some targets, GNU ld is compatible enough with the native linker 9312 # that we're better off using the native interface for both. 9313 lt_use_gnu_ld_interface=no 9314 if test yes = "$with_gnu_ld"; then 9315 case $host_os in 9316 aix*) 9317 # The AIX port of GNU ld has always aspired to compatibility 9318 # with the native linker. However, as the warning in the GNU ld 9319 # block says, versions before 2.19.5* couldn't really create working 9320 # shared libraries, regardless of the interface used. 9321 case `$LD -v 2>&1` in 9322 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9323 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9324 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9325 *) 9326 lt_use_gnu_ld_interface=yes 9327 ;; 9328 esac 9329 ;; 9330 *) 9331 lt_use_gnu_ld_interface=yes 9332 ;; 9333 esac 9334 fi 9335 9336 if test yes = "$lt_use_gnu_ld_interface"; then 9337 # If archive_cmds runs LD, not CC, wlarc should be empty 9338 wlarc='$wl' 9339 9340 # Set some defaults for GNU ld with shared library support. These 9341 # are reset later if shared libraries are not supported. Putting them 9342 # here allows them to be overridden if necessary. 9343 runpath_var=LD_RUN_PATH 9344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9345 export_dynamic_flag_spec='$wl--export-dynamic' 9346 # ancient GNU ld didn't support --whole-archive et. al. 9347 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9348 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9349 else 9350 whole_archive_flag_spec= 9351 fi 9352 supports_anon_versioning=no 9353 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9354 *GNU\ gold*) supports_anon_versioning=yes ;; 9355 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9356 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9357 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9358 *\ 2.11.*) ;; # other 2.11 versions 9359 *) supports_anon_versioning=yes ;; 9360 esac 9361 9362 # See if GNU ld supports shared libraries. 9363 case $host_os in 9364 aix[3-9]*) 9365 # On AIX/PPC, the GNU linker is very broken 9366 if test ia64 != "$host_cpu"; then 9367 ld_shlibs=no 9368 cat <<_LT_EOF 1>&2 9369 9370*** Warning: the GNU linker, at least up to release 2.19, is reported 9371*** to be unable to reliably create shared libraries on AIX. 9372*** Therefore, libtool is disabling shared libraries support. If you 9373*** really care for shared libraries, you may want to install binutils 9374*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9375*** You will then need to restart the configuration process. 9376 9377_LT_EOF 9378 fi 9379 ;; 9380 9381 amigaos*) 9382 case $host_cpu in 9383 powerpc) 9384 # see comment about AmigaOS4 .so support 9385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9386 archive_expsym_cmds='' 9387 ;; 9388 m68k) 9389 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)' 9390 hardcode_libdir_flag_spec='-L$libdir' 9391 hardcode_minus_L=yes 9392 ;; 9393 esac 9394 ;; 9395 9396 beos*) 9397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9398 allow_undefined_flag=unsupported 9399 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9400 # support --undefined. This deserves some investigation. FIXME 9401 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9402 else 9403 ld_shlibs=no 9404 fi 9405 ;; 9406 9407 cygwin* | mingw* | pw32* | cegcc*) 9408 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9409 # as there is no search path for DLLs. 9410 hardcode_libdir_flag_spec='-L$libdir' 9411 export_dynamic_flag_spec='$wl--export-all-symbols' 9412 allow_undefined_flag=unsupported 9413 always_export_symbols=no 9414 enable_shared_with_static_runtimes=yes 9415 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' 9416 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9417 9418 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9420 # If the export-symbols file already is a .def file, use it as 9421 # is; otherwise, prepend EXPORTS... 9422 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9423 cp $export_symbols $output_objdir/$soname.def; 9424 else 9425 echo EXPORTS > $output_objdir/$soname.def; 9426 cat $export_symbols >> $output_objdir/$soname.def; 9427 fi~ 9428 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9429 else 9430 ld_shlibs=no 9431 fi 9432 ;; 9433 9434 haiku*) 9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9436 link_all_deplibs=yes 9437 ;; 9438 9439 os2*) 9440 hardcode_libdir_flag_spec='-L$libdir' 9441 hardcode_minus_L=yes 9442 allow_undefined_flag=unsupported 9443 shrext_cmds=.dll 9444 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9445 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9446 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9447 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9448 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9449 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9450 emximp -o $lib $output_objdir/$libname.def' 9451 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9452 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9453 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9454 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9455 prefix_cmds="$SED"~ 9456 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9457 prefix_cmds="$prefix_cmds -e 1d"; 9458 fi~ 9459 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9460 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9461 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9462 emximp -o $lib $output_objdir/$libname.def' 9463 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9464 enable_shared_with_static_runtimes=yes 9465 ;; 9466 9467 interix[3-9]*) 9468 hardcode_direct=no 9469 hardcode_shlibpath_var=no 9470 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9471 export_dynamic_flag_spec='$wl-E' 9472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9473 # Instead, shared libraries are loaded at an image base (0x10000000 by 9474 # default) and relocated if they conflict, which is a slow very memory 9475 # consuming and fragmenting process. To avoid this, we pick a random, 9476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9477 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9479 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' 9480 ;; 9481 9482 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9483 tmp_diet=no 9484 if test linux-dietlibc = "$host_os"; then 9485 case $cc_basename in 9486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9487 esac 9488 fi 9489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9490 && test no = "$tmp_diet" 9491 then 9492 tmp_addflag=' $pic_flag' 9493 tmp_sharedflag='-shared' 9494 case $cc_basename,$host_cpu in 9495 pgcc*) # Portland Group C compiler 9496 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' 9497 tmp_addflag=' $pic_flag' 9498 ;; 9499 pgf77* | pgf90* | pgf95* | pgfortran*) 9500 # Portland Group f77 and f90 compilers 9501 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' 9502 tmp_addflag=' $pic_flag -Mnomain' ;; 9503 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9504 tmp_addflag=' -i_dynamic' ;; 9505 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9506 tmp_addflag=' -i_dynamic -nofor_main' ;; 9507 ifc* | ifort*) # Intel Fortran compiler 9508 tmp_addflag=' -nofor_main' ;; 9509 lf95*) # Lahey Fortran 8.1 9510 whole_archive_flag_spec= 9511 tmp_sharedflag='--shared' ;; 9512 nagfor*) # NAGFOR 5.3 9513 tmp_sharedflag='-Wl,-shared' ;; 9514 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9515 tmp_sharedflag='-qmkshrobj' 9516 tmp_addflag= ;; 9517 nvcc*) # Cuda Compiler Driver 2.2 9518 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' 9519 compiler_needs_object=yes 9520 ;; 9521 esac 9522 case `$CC -V 2>&1 | sed 5q` in 9523 *Sun\ C*) # Sun C 5.9 9524 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' 9525 compiler_needs_object=yes 9526 tmp_sharedflag='-G' ;; 9527 *Sun\ F*) # Sun Fortran 8.3 9528 tmp_sharedflag='-G' ;; 9529 esac 9530 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9531 9532 if test yes = "$supports_anon_versioning"; then 9533 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9535 echo "local: *; };" >> $output_objdir/$libname.ver~ 9536 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9537 fi 9538 9539 case $cc_basename in 9540 tcc*) 9541 export_dynamic_flag_spec='-rdynamic' 9542 ;; 9543 xlf* | bgf* | bgxlf* | mpixlf*) 9544 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9545 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9546 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9547 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9548 if test yes = "$supports_anon_versioning"; then 9549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9551 echo "local: *; };" >> $output_objdir/$libname.ver~ 9552 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9553 fi 9554 ;; 9555 esac 9556 else 9557 ld_shlibs=no 9558 fi 9559 ;; 9560 9561 netbsd*) 9562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9563 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9564 wlarc= 9565 else 9566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9567 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9568 fi 9569 ;; 9570 9571 solaris*) 9572 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9573 ld_shlibs=no 9574 cat <<_LT_EOF 1>&2 9575 9576*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9577*** create shared libraries on Solaris systems. Therefore, libtool 9578*** is disabling shared libraries support. We urge you to upgrade GNU 9579*** binutils to release 2.9.1 or newer. Another option is to modify 9580*** your PATH or compiler configuration so that the native linker is 9581*** used, and then restart. 9582 9583_LT_EOF 9584 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9586 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9587 else 9588 ld_shlibs=no 9589 fi 9590 ;; 9591 9592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9593 case `$LD -v 2>&1` in 9594 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9595 ld_shlibs=no 9596 cat <<_LT_EOF 1>&2 9597 9598*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9599*** reliably create shared libraries on SCO systems. Therefore, libtool 9600*** is disabling shared libraries support. We urge you to upgrade GNU 9601*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9602*** your PATH or compiler configuration so that the native linker is 9603*** used, and then restart. 9604 9605_LT_EOF 9606 ;; 9607 *) 9608 # For security reasons, it is highly recommended that you always 9609 # use absolute paths for naming shared libraries, and exclude the 9610 # DT_RUNPATH tag from executables and libraries. But doing so 9611 # requires that you compile everything twice, which is a pain. 9612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9613 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9616 else 9617 ld_shlibs=no 9618 fi 9619 ;; 9620 esac 9621 ;; 9622 9623 sunos4*) 9624 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9625 wlarc= 9626 hardcode_direct=yes 9627 hardcode_shlibpath_var=no 9628 ;; 9629 9630 *) 9631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9633 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9634 else 9635 ld_shlibs=no 9636 fi 9637 ;; 9638 esac 9639 9640 if test no = "$ld_shlibs"; then 9641 runpath_var= 9642 hardcode_libdir_flag_spec= 9643 export_dynamic_flag_spec= 9644 whole_archive_flag_spec= 9645 fi 9646 else 9647 # PORTME fill in a description of your system's linker (not GNU ld) 9648 case $host_os in 9649 aix3*) 9650 allow_undefined_flag=unsupported 9651 always_export_symbols=yes 9652 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' 9653 # Note: this linker hardcodes the directories in LIBPATH if there 9654 # are no directories specified by -L. 9655 hardcode_minus_L=yes 9656 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9657 # Neither direct hardcoding nor static linking is supported with a 9658 # broken collect2. 9659 hardcode_direct=unsupported 9660 fi 9661 ;; 9662 9663 aix[4-9]*) 9664 if test ia64 = "$host_cpu"; then 9665 # On IA64, the linker does run time linking by default, so we don't 9666 # have to do anything special. 9667 aix_use_runtimelinking=no 9668 exp_sym_flag='-Bexport' 9669 no_entry_flag= 9670 else 9671 # If we're using GNU nm, then we don't want the "-C" option. 9672 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9673 # Without the "-l" option, or with the "-B" option, AIX nm treats 9674 # weak defined symbols like other global defined symbols, whereas 9675 # GNU nm marks them as "W". 9676 # While the 'weak' keyword is ignored in the Export File, we need 9677 # it in the Import File for the 'aix-soname' feature, so we have 9678 # to replace the "-B" option with "-P" for AIX nm. 9679 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9680 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9681 else 9682 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9683 fi 9684 aix_use_runtimelinking=no 9685 9686 # Test if we are trying to use run time linking or normal 9687 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9688 # have runtime linking enabled, and use it for executables. 9689 # For shared libraries, we enable/disable runtime linking 9690 # depending on the kind of the shared library created - 9691 # when "with_aix_soname,aix_use_runtimelinking" is: 9692 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9693 # "aix,yes" lib.so shared, rtl:yes, for executables 9694 # lib.a static archive 9695 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9696 # lib.a(lib.so.V) shared, rtl:no, for executables 9697 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9698 # lib.a(lib.so.V) shared, rtl:no 9699 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9700 # lib.a static archive 9701 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9702 for ld_flag in $LDFLAGS; do 9703 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9704 aix_use_runtimelinking=yes 9705 break 9706 fi 9707 done 9708 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9709 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9710 # so we don't have lib.a shared libs to link our executables. 9711 # We have to force runtime linking in this case. 9712 aix_use_runtimelinking=yes 9713 LDFLAGS="$LDFLAGS -Wl,-brtl" 9714 fi 9715 ;; 9716 esac 9717 9718 exp_sym_flag='-bexport' 9719 no_entry_flag='-bnoentry' 9720 fi 9721 9722 # When large executables or shared objects are built, AIX ld can 9723 # have problems creating the table of contents. If linking a library 9724 # or program results in "error TOC overflow" add -mminimal-toc to 9725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9727 9728 archive_cmds='' 9729 hardcode_direct=yes 9730 hardcode_direct_absolute=yes 9731 hardcode_libdir_separator=':' 9732 link_all_deplibs=yes 9733 file_list_spec='$wl-f,' 9734 case $with_aix_soname,$aix_use_runtimelinking in 9735 aix,*) ;; # traditional, no import file 9736 svr4,* | *,yes) # use import file 9737 # The Import File defines what to hardcode. 9738 hardcode_direct=no 9739 hardcode_direct_absolute=no 9740 ;; 9741 esac 9742 9743 if test yes = "$GCC"; then 9744 case $host_os in aix4.[012]|aix4.[012].*) 9745 # We only want to do this on AIX 4.2 and lower, the check 9746 # below for broken collect2 doesn't work under 4.3+ 9747 collect2name=`$CC -print-prog-name=collect2` 9748 if test -f "$collect2name" && 9749 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9750 then 9751 # We have reworked collect2 9752 : 9753 else 9754 # We have old collect2 9755 hardcode_direct=unsupported 9756 # It fails to find uninstalled libraries when the uninstalled 9757 # path is not listed in the libpath. Setting hardcode_minus_L 9758 # to unsupported forces relinking 9759 hardcode_minus_L=yes 9760 hardcode_libdir_flag_spec='-L$libdir' 9761 hardcode_libdir_separator= 9762 fi 9763 ;; 9764 esac 9765 shared_flag='-shared' 9766 if test yes = "$aix_use_runtimelinking"; then 9767 shared_flag="$shared_flag "'$wl-G' 9768 fi 9769 # Need to ensure runtime linking is disabled for the traditional 9770 # shared library, or the linker may eventually find shared libraries 9771 # /with/ Import File - we do not want to mix them. 9772 shared_flag_aix='-shared' 9773 shared_flag_svr4='-shared $wl-G' 9774 else 9775 # not using gcc 9776 if test ia64 = "$host_cpu"; then 9777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9778 # chokes on -Wl,-G. The following line is correct: 9779 shared_flag='-G' 9780 else 9781 if test yes = "$aix_use_runtimelinking"; then 9782 shared_flag='$wl-G' 9783 else 9784 shared_flag='$wl-bM:SRE' 9785 fi 9786 shared_flag_aix='$wl-bM:SRE' 9787 shared_flag_svr4='$wl-G' 9788 fi 9789 fi 9790 9791 export_dynamic_flag_spec='$wl-bexpall' 9792 # It seems that -bexpall does not export symbols beginning with 9793 # underscore (_), so it is better to generate a list of symbols to export. 9794 always_export_symbols=yes 9795 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9796 # Warning - without using the other runtime loading flags (-brtl), 9797 # -berok will link without error, but may produce a broken library. 9798 allow_undefined_flag='-berok' 9799 # Determine the default libpath from the value encoded in an 9800 # empty executable. 9801 if test set = "${lt_cv_aix_libpath+set}"; then 9802 aix_libpath=$lt_cv_aix_libpath 9803else 9804 if ${lt_cv_aix_libpath_+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806else 9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9808/* end confdefs.h. */ 9809 9810int 9811main () 9812{ 9813 9814 ; 9815 return 0; 9816} 9817_ACEOF 9818if ac_fn_c_try_link "$LINENO"; then : 9819 9820 lt_aix_libpath_sed=' 9821 /Import File Strings/,/^$/ { 9822 /^0/ { 9823 s/^0 *\([^ ]*\) *$/\1/ 9824 p 9825 } 9826 }' 9827 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9828 # Check for a 64-bit object if we didn't find anything. 9829 if test -z "$lt_cv_aix_libpath_"; then 9830 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9831 fi 9832fi 9833rm -f core conftest.err conftest.$ac_objext \ 9834 conftest$ac_exeext conftest.$ac_ext 9835 if test -z "$lt_cv_aix_libpath_"; then 9836 lt_cv_aix_libpath_=/usr/lib:/lib 9837 fi 9838 9839fi 9840 9841 aix_libpath=$lt_cv_aix_libpath_ 9842fi 9843 9844 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9845 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9846 else 9847 if test ia64 = "$host_cpu"; then 9848 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9849 allow_undefined_flag="-z nodefs" 9850 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" 9851 else 9852 # Determine the default libpath from the value encoded in an 9853 # empty executable. 9854 if test set = "${lt_cv_aix_libpath+set}"; then 9855 aix_libpath=$lt_cv_aix_libpath 9856else 9857 if ${lt_cv_aix_libpath_+:} false; then : 9858 $as_echo_n "(cached) " >&6 9859else 9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9861/* end confdefs.h. */ 9862 9863int 9864main () 9865{ 9866 9867 ; 9868 return 0; 9869} 9870_ACEOF 9871if ac_fn_c_try_link "$LINENO"; then : 9872 9873 lt_aix_libpath_sed=' 9874 /Import File Strings/,/^$/ { 9875 /^0/ { 9876 s/^0 *\([^ ]*\) *$/\1/ 9877 p 9878 } 9879 }' 9880 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9881 # Check for a 64-bit object if we didn't find anything. 9882 if test -z "$lt_cv_aix_libpath_"; then 9883 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9884 fi 9885fi 9886rm -f core conftest.err conftest.$ac_objext \ 9887 conftest$ac_exeext conftest.$ac_ext 9888 if test -z "$lt_cv_aix_libpath_"; then 9889 lt_cv_aix_libpath_=/usr/lib:/lib 9890 fi 9891 9892fi 9893 9894 aix_libpath=$lt_cv_aix_libpath_ 9895fi 9896 9897 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9898 # Warning - without using the other run time loading flags, 9899 # -berok will link without error, but may produce a broken library. 9900 no_undefined_flag=' $wl-bernotok' 9901 allow_undefined_flag=' $wl-berok' 9902 if test yes = "$with_gnu_ld"; then 9903 # We only use this code for GNU lds that support --whole-archive. 9904 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9905 else 9906 # Exported symbols can be pulled into shared objects from archives 9907 whole_archive_flag_spec='$convenience' 9908 fi 9909 archive_cmds_need_lc=yes 9910 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9911 # -brtl affects multiple linker settings, -berok does not and is overridden later 9912 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9913 if test svr4 != "$with_aix_soname"; then 9914 # This is similar to how AIX traditionally builds its shared libraries. 9915 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9916 fi 9917 if test aix != "$with_aix_soname"; then 9918 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9919 else 9920 # used by -dlpreopen to get the symbols 9921 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9922 fi 9923 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9924 fi 9925 fi 9926 ;; 9927 9928 amigaos*) 9929 case $host_cpu in 9930 powerpc) 9931 # see comment about AmigaOS4 .so support 9932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9933 archive_expsym_cmds='' 9934 ;; 9935 m68k) 9936 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)' 9937 hardcode_libdir_flag_spec='-L$libdir' 9938 hardcode_minus_L=yes 9939 ;; 9940 esac 9941 ;; 9942 9943 bsdi[45]*) 9944 export_dynamic_flag_spec=-rdynamic 9945 ;; 9946 9947 cygwin* | mingw* | pw32* | cegcc*) 9948 # When not using gcc, we currently assume that we are using 9949 # Microsoft Visual C++. 9950 # hardcode_libdir_flag_spec is actually meaningless, as there is 9951 # no search path for DLLs. 9952 case $cc_basename in 9953 cl*) 9954 # Native MSVC 9955 hardcode_libdir_flag_spec=' ' 9956 allow_undefined_flag=unsupported 9957 always_export_symbols=yes 9958 file_list_spec='@' 9959 # Tell ltmain to make .lib files, not .a files. 9960 libext=lib 9961 # Tell ltmain to make .dll files, not .so files. 9962 shrext_cmds=.dll 9963 # FIXME: Setting linknames here is a bad hack. 9964 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9965 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9966 cp "$export_symbols" "$output_objdir/$soname.def"; 9967 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9968 else 9969 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9970 fi~ 9971 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9972 linknames=' 9973 # The linker will not automatically build a static lib if we build a DLL. 9974 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9975 enable_shared_with_static_runtimes=yes 9976 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9978 # Don't use ranlib 9979 old_postinstall_cmds='chmod 644 $oldlib' 9980 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9981 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9982 case $lt_outputfile in 9983 *.exe|*.EXE) ;; 9984 *) 9985 lt_outputfile=$lt_outputfile.exe 9986 lt_tool_outputfile=$lt_tool_outputfile.exe 9987 ;; 9988 esac~ 9989 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9990 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9991 $RM "$lt_outputfile.manifest"; 9992 fi' 9993 ;; 9994 *) 9995 # Assume MSVC wrapper 9996 hardcode_libdir_flag_spec=' ' 9997 allow_undefined_flag=unsupported 9998 # Tell ltmain to make .lib files, not .a files. 9999 libext=lib 10000 # Tell ltmain to make .dll files, not .so files. 10001 shrext_cmds=.dll 10002 # FIXME: Setting linknames here is a bad hack. 10003 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10004 # The linker will automatically build a .lib file if we build a DLL. 10005 old_archive_from_new_cmds='true' 10006 # FIXME: Should let the user specify the lib program. 10007 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10008 enable_shared_with_static_runtimes=yes 10009 ;; 10010 esac 10011 ;; 10012 10013 darwin* | rhapsody*) 10014 10015 10016 archive_cmds_need_lc=no 10017 hardcode_direct=no 10018 hardcode_automatic=yes 10019 hardcode_shlibpath_var=unsupported 10020 if test yes = "$lt_cv_ld_force_load"; then 10021 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\"`' 10022 10023 else 10024 whole_archive_flag_spec='' 10025 fi 10026 link_all_deplibs=yes 10027 allow_undefined_flag=$_lt_dar_allow_undefined 10028 case $cc_basename in 10029 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10030 *) _lt_dar_can_shared=$GCC ;; 10031 esac 10032 if test yes = "$_lt_dar_can_shared"; then 10033 output_verbose_link_cmd=func_echo_all 10034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10036 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" 10037 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" 10038 10039 else 10040 ld_shlibs=no 10041 fi 10042 10043 ;; 10044 10045 dgux*) 10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10047 hardcode_libdir_flag_spec='-L$libdir' 10048 hardcode_shlibpath_var=no 10049 ;; 10050 10051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10052 # support. Future versions do this automatically, but an explicit c++rt0.o 10053 # does not break anything, and helps significantly (at the cost of a little 10054 # extra space). 10055 freebsd2.2*) 10056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10057 hardcode_libdir_flag_spec='-R$libdir' 10058 hardcode_direct=yes 10059 hardcode_shlibpath_var=no 10060 ;; 10061 10062 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10063 freebsd2.*) 10064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10065 hardcode_direct=yes 10066 hardcode_minus_L=yes 10067 hardcode_shlibpath_var=no 10068 ;; 10069 10070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10071 freebsd* | dragonfly*) 10072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10073 hardcode_libdir_flag_spec='-R$libdir' 10074 hardcode_direct=yes 10075 hardcode_shlibpath_var=no 10076 ;; 10077 10078 hpux9*) 10079 if test yes = "$GCC"; then 10080 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10081 else 10082 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10083 fi 10084 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10085 hardcode_libdir_separator=: 10086 hardcode_direct=yes 10087 10088 # hardcode_minus_L: Not really in the search PATH, 10089 # but as the default location of the library. 10090 hardcode_minus_L=yes 10091 export_dynamic_flag_spec='$wl-E' 10092 ;; 10093 10094 hpux10*) 10095 if test yes,no = "$GCC,$with_gnu_ld"; then 10096 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10097 else 10098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10099 fi 10100 if test no = "$with_gnu_ld"; then 10101 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10102 hardcode_libdir_separator=: 10103 hardcode_direct=yes 10104 hardcode_direct_absolute=yes 10105 export_dynamic_flag_spec='$wl-E' 10106 # hardcode_minus_L: Not really in the search PATH, 10107 # but as the default location of the library. 10108 hardcode_minus_L=yes 10109 fi 10110 ;; 10111 10112 hpux11*) 10113 if test yes,no = "$GCC,$with_gnu_ld"; then 10114 case $host_cpu in 10115 hppa*64*) 10116 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10117 ;; 10118 ia64*) 10119 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10120 ;; 10121 *) 10122 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10123 ;; 10124 esac 10125 else 10126 case $host_cpu in 10127 hppa*64*) 10128 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10129 ;; 10130 ia64*) 10131 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10132 ;; 10133 *) 10134 10135 # Older versions of the 11.00 compiler do not understand -b yet 10136 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10138$as_echo_n "checking if $CC understands -b... " >&6; } 10139if ${lt_cv_prog_compiler__b+:} false; then : 10140 $as_echo_n "(cached) " >&6 10141else 10142 lt_cv_prog_compiler__b=no 10143 save_LDFLAGS=$LDFLAGS 10144 LDFLAGS="$LDFLAGS -b" 10145 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10147 # The linker can only warn and ignore the option if not recognized 10148 # So say no if there are warnings 10149 if test -s conftest.err; then 10150 # Append any errors to the config.log. 10151 cat conftest.err 1>&5 10152 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10154 if diff conftest.exp conftest.er2 >/dev/null; then 10155 lt_cv_prog_compiler__b=yes 10156 fi 10157 else 10158 lt_cv_prog_compiler__b=yes 10159 fi 10160 fi 10161 $RM -r conftest* 10162 LDFLAGS=$save_LDFLAGS 10163 10164fi 10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10166$as_echo "$lt_cv_prog_compiler__b" >&6; } 10167 10168if test yes = "$lt_cv_prog_compiler__b"; then 10169 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10170else 10171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10172fi 10173 10174 ;; 10175 esac 10176 fi 10177 if test no = "$with_gnu_ld"; then 10178 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10179 hardcode_libdir_separator=: 10180 10181 case $host_cpu in 10182 hppa*64*|ia64*) 10183 hardcode_direct=no 10184 hardcode_shlibpath_var=no 10185 ;; 10186 *) 10187 hardcode_direct=yes 10188 hardcode_direct_absolute=yes 10189 export_dynamic_flag_spec='$wl-E' 10190 10191 # hardcode_minus_L: Not really in the search PATH, 10192 # but as the default location of the library. 10193 hardcode_minus_L=yes 10194 ;; 10195 esac 10196 fi 10197 ;; 10198 10199 irix5* | irix6* | nonstopux*) 10200 if test yes = "$GCC"; then 10201 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' 10202 # Try to use the -exported_symbol ld option, if it does not 10203 # work, assume that -exports_file does not work either and 10204 # implicitly export all symbols. 10205 # This should be the same for all languages, so no per-tag cache variable. 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10207$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10208if ${lt_cv_irix_exported_symbol+:} false; then : 10209 $as_echo_n "(cached) " >&6 10210else 10211 save_LDFLAGS=$LDFLAGS 10212 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214/* end confdefs.h. */ 10215int foo (void) { return 0; } 10216_ACEOF 10217if ac_fn_c_try_link "$LINENO"; then : 10218 lt_cv_irix_exported_symbol=yes 10219else 10220 lt_cv_irix_exported_symbol=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext \ 10223 conftest$ac_exeext conftest.$ac_ext 10224 LDFLAGS=$save_LDFLAGS 10225fi 10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10227$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10228 if test yes = "$lt_cv_irix_exported_symbol"; then 10229 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' 10230 fi 10231 else 10232 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' 10233 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' 10234 fi 10235 archive_cmds_need_lc='no' 10236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10237 hardcode_libdir_separator=: 10238 inherit_rpath=yes 10239 link_all_deplibs=yes 10240 ;; 10241 10242 linux*) 10243 case $cc_basename in 10244 tcc*) 10245 # Fabrice Bellard et al's Tiny C Compiler 10246 ld_shlibs=yes 10247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10248 ;; 10249 esac 10250 ;; 10251 10252 netbsd*) 10253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10255 else 10256 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10257 fi 10258 hardcode_libdir_flag_spec='-R$libdir' 10259 hardcode_direct=yes 10260 hardcode_shlibpath_var=no 10261 ;; 10262 10263 newsos6) 10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10265 hardcode_direct=yes 10266 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10267 hardcode_libdir_separator=: 10268 hardcode_shlibpath_var=no 10269 ;; 10270 10271 *nto* | *qnx*) 10272 ;; 10273 10274 openbsd* | bitrig*) 10275 if test -f /usr/libexec/ld.so; then 10276 hardcode_direct=yes 10277 hardcode_shlibpath_var=no 10278 hardcode_direct_absolute=yes 10279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10281 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10282 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10283 export_dynamic_flag_spec='$wl-E' 10284 else 10285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10286 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10287 fi 10288 else 10289 ld_shlibs=no 10290 fi 10291 ;; 10292 10293 os2*) 10294 hardcode_libdir_flag_spec='-L$libdir' 10295 hardcode_minus_L=yes 10296 allow_undefined_flag=unsupported 10297 shrext_cmds=.dll 10298 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10301 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10302 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10303 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10304 emximp -o $lib $output_objdir/$libname.def' 10305 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10306 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10307 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10308 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10309 prefix_cmds="$SED"~ 10310 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10311 prefix_cmds="$prefix_cmds -e 1d"; 10312 fi~ 10313 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10314 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10316 emximp -o $lib $output_objdir/$libname.def' 10317 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10318 enable_shared_with_static_runtimes=yes 10319 ;; 10320 10321 osf3*) 10322 if test yes = "$GCC"; then 10323 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10324 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' 10325 else 10326 allow_undefined_flag=' -expect_unresolved \*' 10327 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' 10328 fi 10329 archive_cmds_need_lc='no' 10330 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10331 hardcode_libdir_separator=: 10332 ;; 10333 10334 osf4* | osf5*) # as osf3* with the addition of -msym flag 10335 if test yes = "$GCC"; then 10336 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10337 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' 10338 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10339 else 10340 allow_undefined_flag=' -expect_unresolved \*' 10341 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' 10342 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~ 10343 $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' 10344 10345 # Both c and cxx compiler support -rpath directly 10346 hardcode_libdir_flag_spec='-rpath $libdir' 10347 fi 10348 archive_cmds_need_lc='no' 10349 hardcode_libdir_separator=: 10350 ;; 10351 10352 solaris*) 10353 no_undefined_flag=' -z defs' 10354 if test yes = "$GCC"; then 10355 wlarc='$wl' 10356 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10357 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10358 $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' 10359 else 10360 case `$CC -V 2>&1` in 10361 *"Compilers 5.0"*) 10362 wlarc='' 10363 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10364 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10365 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10366 ;; 10367 *) 10368 wlarc='$wl' 10369 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10371 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10372 ;; 10373 esac 10374 fi 10375 hardcode_libdir_flag_spec='-R$libdir' 10376 hardcode_shlibpath_var=no 10377 case $host_os in 10378 solaris2.[0-5] | solaris2.[0-5].*) ;; 10379 *) 10380 # The compiler driver will combine and reorder linker options, 10381 # but understands '-z linker_flag'. GCC discards it without '$wl', 10382 # but is careful enough not to reorder. 10383 # Supported since Solaris 2.6 (maybe 2.5.1?) 10384 if test yes = "$GCC"; then 10385 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10386 else 10387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10388 fi 10389 ;; 10390 esac 10391 link_all_deplibs=yes 10392 ;; 10393 10394 sunos4*) 10395 if test sequent = "$host_vendor"; then 10396 # Use $CC to link under sequent, because it throws in some extra .o 10397 # files that make .init and .fini sections work. 10398 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10399 else 10400 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10401 fi 10402 hardcode_libdir_flag_spec='-L$libdir' 10403 hardcode_direct=yes 10404 hardcode_minus_L=yes 10405 hardcode_shlibpath_var=no 10406 ;; 10407 10408 sysv4) 10409 case $host_vendor in 10410 sni) 10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10412 hardcode_direct=yes # is this really true??? 10413 ;; 10414 siemens) 10415 ## LD is ld it makes a PLAMLIB 10416 ## CC just makes a GrossModule. 10417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10418 reload_cmds='$CC -r -o $output$reload_objs' 10419 hardcode_direct=no 10420 ;; 10421 motorola) 10422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10423 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10424 ;; 10425 esac 10426 runpath_var='LD_RUN_PATH' 10427 hardcode_shlibpath_var=no 10428 ;; 10429 10430 sysv4.3*) 10431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10432 hardcode_shlibpath_var=no 10433 export_dynamic_flag_spec='-Bexport' 10434 ;; 10435 10436 sysv4*MP*) 10437 if test -d /usr/nec; then 10438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10439 hardcode_shlibpath_var=no 10440 runpath_var=LD_RUN_PATH 10441 hardcode_runpath_var=yes 10442 ld_shlibs=yes 10443 fi 10444 ;; 10445 10446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10447 no_undefined_flag='$wl-z,text' 10448 archive_cmds_need_lc=no 10449 hardcode_shlibpath_var=no 10450 runpath_var='LD_RUN_PATH' 10451 10452 if test yes = "$GCC"; then 10453 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10454 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10455 else 10456 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10457 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10458 fi 10459 ;; 10460 10461 sysv5* | sco3.2v5* | sco5v6*) 10462 # Note: We CANNOT use -z defs as we might desire, because we do not 10463 # link with -lc, and that would cause any symbols used from libc to 10464 # always be unresolved, which means just about no library would 10465 # ever link correctly. If we're not using GNU ld we use -z text 10466 # though, which does catch some bad symbols but isn't as heavy-handed 10467 # as -z defs. 10468 no_undefined_flag='$wl-z,text' 10469 allow_undefined_flag='$wl-z,nodefs' 10470 archive_cmds_need_lc=no 10471 hardcode_shlibpath_var=no 10472 hardcode_libdir_flag_spec='$wl-R,$libdir' 10473 hardcode_libdir_separator=':' 10474 link_all_deplibs=yes 10475 export_dynamic_flag_spec='$wl-Bexport' 10476 runpath_var='LD_RUN_PATH' 10477 10478 if test yes = "$GCC"; then 10479 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10480 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10481 else 10482 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10483 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10484 fi 10485 ;; 10486 10487 uts4*) 10488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10489 hardcode_libdir_flag_spec='-L$libdir' 10490 hardcode_shlibpath_var=no 10491 ;; 10492 10493 *) 10494 ld_shlibs=no 10495 ;; 10496 esac 10497 10498 if test sni = "$host_vendor"; then 10499 case $host in 10500 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10501 export_dynamic_flag_spec='$wl-Blargedynsym' 10502 ;; 10503 esac 10504 fi 10505 fi 10506 10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10508$as_echo "$ld_shlibs" >&6; } 10509test no = "$ld_shlibs" && can_build_shared=no 10510 10511with_gnu_ld=$with_gnu_ld 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527# 10528# Do we need to explicitly link libc? 10529# 10530case "x$archive_cmds_need_lc" in 10531x|xyes) 10532 # Assume -lc should be added 10533 archive_cmds_need_lc=yes 10534 10535 if test yes,yes = "$GCC,$enable_shared"; then 10536 case $archive_cmds in 10537 *'~'*) 10538 # FIXME: we may have to deal with multi-command sequences. 10539 ;; 10540 '$CC '*) 10541 # Test whether the compiler implicitly links with -lc since on some 10542 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10543 # to ld, don't add -lc before -lgcc. 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10545$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10546if ${lt_cv_archive_cmds_need_lc+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548else 10549 $RM conftest* 10550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10551 10552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10553 (eval $ac_compile) 2>&5 10554 ac_status=$? 10555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10556 test $ac_status = 0; } 2>conftest.err; then 10557 soname=conftest 10558 lib=conftest 10559 libobjs=conftest.$ac_objext 10560 deplibs= 10561 wl=$lt_prog_compiler_wl 10562 pic_flag=$lt_prog_compiler_pic 10563 compiler_flags=-v 10564 linker_flags=-v 10565 verstring= 10566 output_objdir=. 10567 libname=conftest 10568 lt_save_allow_undefined_flag=$allow_undefined_flag 10569 allow_undefined_flag= 10570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10571 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10572 ac_status=$? 10573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10574 test $ac_status = 0; } 10575 then 10576 lt_cv_archive_cmds_need_lc=no 10577 else 10578 lt_cv_archive_cmds_need_lc=yes 10579 fi 10580 allow_undefined_flag=$lt_save_allow_undefined_flag 10581 else 10582 cat conftest.err 1>&5 10583 fi 10584 $RM conftest* 10585 10586fi 10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10588$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10589 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10590 ;; 10591 esac 10592 fi 10593 ;; 10594esac 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10748$as_echo_n "checking dynamic linker characteristics... " >&6; } 10749 10750if test yes = "$GCC"; then 10751 case $host_os in 10752 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10753 *) lt_awk_arg='/^libraries:/' ;; 10754 esac 10755 case $host_os in 10756 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10757 *) lt_sed_strip_eq='s|=/|/|g' ;; 10758 esac 10759 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10760 case $lt_search_path_spec in 10761 *\;*) 10762 # if the path contains ";" then we assume it to be the separator 10763 # otherwise default to the standard path separator (i.e. ":") - it is 10764 # assumed that no part of a normal pathname contains ";" but that should 10765 # okay in the real world where ";" in dirpaths is itself problematic. 10766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10767 ;; 10768 *) 10769 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10770 ;; 10771 esac 10772 # Ok, now we have the path, separated by spaces, we can step through it 10773 # and add multilib dir if necessary... 10774 lt_tmp_lt_search_path_spec= 10775 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10776 # ...but if some path component already ends with the multilib dir we assume 10777 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10778 case "$lt_multi_os_dir; $lt_search_path_spec " in 10779 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10780 lt_multi_os_dir= 10781 ;; 10782 esac 10783 for lt_sys_path in $lt_search_path_spec; do 10784 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10786 elif test -n "$lt_multi_os_dir"; then 10787 test -d "$lt_sys_path" && \ 10788 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10789 fi 10790 done 10791 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10792BEGIN {RS = " "; FS = "/|\n";} { 10793 lt_foo = ""; 10794 lt_count = 0; 10795 for (lt_i = NF; lt_i > 0; lt_i--) { 10796 if ($lt_i != "" && $lt_i != ".") { 10797 if ($lt_i == "..") { 10798 lt_count++; 10799 } else { 10800 if (lt_count == 0) { 10801 lt_foo = "/" $lt_i lt_foo; 10802 } else { 10803 lt_count--; 10804 } 10805 } 10806 } 10807 } 10808 if (lt_foo != "") { lt_freq[lt_foo]++; } 10809 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10810}'` 10811 # AWK program above erroneously prepends '/' to C:/dos/paths 10812 # for these hosts. 10813 case $host_os in 10814 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10815 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10816 esac 10817 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10818else 10819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10820fi 10821library_names_spec= 10822libname_spec='lib$name' 10823soname_spec= 10824shrext_cmds=.so 10825postinstall_cmds= 10826postuninstall_cmds= 10827finish_cmds= 10828finish_eval= 10829shlibpath_var= 10830shlibpath_overrides_runpath=unknown 10831version_type=none 10832dynamic_linker="$host_os ld.so" 10833sys_lib_dlsearch_path_spec="/lib /usr/lib" 10834need_lib_prefix=unknown 10835hardcode_into_libs=no 10836 10837# when you set need_version to no, make sure it does not cause -set_version 10838# flags to be left without arguments 10839need_version=unknown 10840 10841 10842 10843case $host_os in 10844aix3*) 10845 version_type=linux # correct to gnu/linux during the next big refactor 10846 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10847 shlibpath_var=LIBPATH 10848 10849 # AIX 3 has no versioning support, so we append a major version to the name. 10850 soname_spec='$libname$release$shared_ext$major' 10851 ;; 10852 10853aix[4-9]*) 10854 version_type=linux # correct to gnu/linux during the next big refactor 10855 need_lib_prefix=no 10856 need_version=no 10857 hardcode_into_libs=yes 10858 if test ia64 = "$host_cpu"; then 10859 # AIX 5 supports IA64 10860 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10861 shlibpath_var=LD_LIBRARY_PATH 10862 else 10863 # With GCC up to 2.95.x, collect2 would create an import file 10864 # for dependence libraries. The import file would start with 10865 # the line '#! .'. This would cause the generated library to 10866 # depend on '.', always an invalid library. This was fixed in 10867 # development snapshots of GCC prior to 3.0. 10868 case $host_os in 10869 aix4 | aix4.[01] | aix4.[01].*) 10870 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10871 echo ' yes ' 10872 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10873 : 10874 else 10875 can_build_shared=no 10876 fi 10877 ;; 10878 esac 10879 # Using Import Files as archive members, it is possible to support 10880 # filename-based versioning of shared library archives on AIX. While 10881 # this would work for both with and without runtime linking, it will 10882 # prevent static linking of such archives. So we do filename-based 10883 # shared library versioning with .so extension only, which is used 10884 # when both runtime linking and shared linking is enabled. 10885 # Unfortunately, runtime linking may impact performance, so we do 10886 # not want this to be the default eventually. Also, we use the 10887 # versioned .so libs for executables only if there is the -brtl 10888 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10889 # To allow for filename-based versioning support, we need to create 10890 # libNAME.so.V as an archive file, containing: 10891 # *) an Import File, referring to the versioned filename of the 10892 # archive as well as the shared archive member, telling the 10893 # bitwidth (32 or 64) of that shared object, and providing the 10894 # list of exported symbols of that shared object, eventually 10895 # decorated with the 'weak' keyword 10896 # *) the shared object with the F_LOADONLY flag set, to really avoid 10897 # it being seen by the linker. 10898 # At run time we better use the real file rather than another symlink, 10899 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10900 10901 case $with_aix_soname,$aix_use_runtimelinking in 10902 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10903 # soname into executable. Probably we can add versioning support to 10904 # collect2, so additional links can be useful in future. 10905 aix,yes) # traditional libtool 10906 dynamic_linker='AIX unversionable lib.so' 10907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10908 # instead of lib<name>.a to let people know that these are not 10909 # typical AIX shared libraries. 10910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10911 ;; 10912 aix,no) # traditional AIX only 10913 dynamic_linker='AIX lib.a(lib.so.V)' 10914 # We preserve .a as extension for shared libraries through AIX4.2 10915 # and later when we are not doing run time linking. 10916 library_names_spec='$libname$release.a $libname.a' 10917 soname_spec='$libname$release$shared_ext$major' 10918 ;; 10919 svr4,*) # full svr4 only 10920 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10921 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10922 # We do not specify a path in Import Files, so LIBPATH fires. 10923 shlibpath_overrides_runpath=yes 10924 ;; 10925 *,yes) # both, prefer svr4 10926 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10927 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10928 # unpreferred sharedlib libNAME.a needs extra handling 10929 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10930 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10931 # We do not specify a path in Import Files, so LIBPATH fires. 10932 shlibpath_overrides_runpath=yes 10933 ;; 10934 *,no) # both, prefer aix 10935 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10936 library_names_spec='$libname$release.a $libname.a' 10937 soname_spec='$libname$release$shared_ext$major' 10938 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10939 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10940 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10941 ;; 10942 esac 10943 shlibpath_var=LIBPATH 10944 fi 10945 ;; 10946 10947amigaos*) 10948 case $host_cpu in 10949 powerpc) 10950 # Since July 2007 AmigaOS4 officially supports .so libraries. 10951 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10953 ;; 10954 m68k) 10955 library_names_spec='$libname.ixlibrary $libname.a' 10956 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10957 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10958 ;; 10959 esac 10960 ;; 10961 10962beos*) 10963 library_names_spec='$libname$shared_ext' 10964 dynamic_linker="$host_os ld.so" 10965 shlibpath_var=LIBRARY_PATH 10966 ;; 10967 10968bsdi[45]*) 10969 version_type=linux # correct to gnu/linux during the next big refactor 10970 need_version=no 10971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10972 soname_spec='$libname$release$shared_ext$major' 10973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10974 shlibpath_var=LD_LIBRARY_PATH 10975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10977 # the default ld.so.conf also contains /usr/contrib/lib and 10978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10979 # libtool to hard-code these into programs 10980 ;; 10981 10982cygwin* | mingw* | pw32* | cegcc*) 10983 version_type=windows 10984 shrext_cmds=.dll 10985 need_version=no 10986 need_lib_prefix=no 10987 10988 case $GCC,$cc_basename in 10989 yes,*) 10990 # gcc 10991 library_names_spec='$libname.dll.a' 10992 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10993 postinstall_cmds='base_file=`basename \$file`~ 10994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10995 dldir=$destdir/`dirname \$dlpath`~ 10996 test -d \$dldir || mkdir -p \$dldir~ 10997 $install_prog $dir/$dlname \$dldir/$dlname~ 10998 chmod a+x \$dldir/$dlname~ 10999 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11000 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11001 fi' 11002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11003 dlpath=$dir/\$dldll~ 11004 $RM \$dlpath' 11005 shlibpath_overrides_runpath=yes 11006 11007 case $host_os in 11008 cygwin*) 11009 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11010 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11011 11012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11013 ;; 11014 mingw* | cegcc*) 11015 # MinGW DLLs use traditional 'lib' prefix 11016 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11017 ;; 11018 pw32*) 11019 # pw32 DLLs use 'pw' prefix rather than 'lib' 11020 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11021 ;; 11022 esac 11023 dynamic_linker='Win32 ld.exe' 11024 ;; 11025 11026 *,cl*) 11027 # Native MSVC 11028 libname_spec='$name' 11029 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11030 library_names_spec='$libname.dll.lib' 11031 11032 case $build_os in 11033 mingw*) 11034 sys_lib_search_path_spec= 11035 lt_save_ifs=$IFS 11036 IFS=';' 11037 for lt_path in $LIB 11038 do 11039 IFS=$lt_save_ifs 11040 # Let DOS variable expansion print the short 8.3 style file name. 11041 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11042 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11043 done 11044 IFS=$lt_save_ifs 11045 # Convert to MSYS style. 11046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11047 ;; 11048 cygwin*) 11049 # Convert to unix form, then to dos form, then back to unix form 11050 # but this time dos style (no spaces!) so that the unix form looks 11051 # like /cygdrive/c/PROGRA~1:/cygdr... 11052 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11053 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11054 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11055 ;; 11056 *) 11057 sys_lib_search_path_spec=$LIB 11058 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11059 # It is most probably a Windows format PATH. 11060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11061 else 11062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11063 fi 11064 # FIXME: find the short name or the path components, as spaces are 11065 # common. (e.g. "Program Files" -> "PROGRA~1") 11066 ;; 11067 esac 11068 11069 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11070 postinstall_cmds='base_file=`basename \$file`~ 11071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11072 dldir=$destdir/`dirname \$dlpath`~ 11073 test -d \$dldir || mkdir -p \$dldir~ 11074 $install_prog $dir/$dlname \$dldir/$dlname' 11075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11076 dlpath=$dir/\$dldll~ 11077 $RM \$dlpath' 11078 shlibpath_overrides_runpath=yes 11079 dynamic_linker='Win32 link.exe' 11080 ;; 11081 11082 *) 11083 # Assume MSVC wrapper 11084 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11085 dynamic_linker='Win32 ld.exe' 11086 ;; 11087 esac 11088 # FIXME: first we should search . and the directory the executable is in 11089 shlibpath_var=PATH 11090 ;; 11091 11092darwin* | rhapsody*) 11093 dynamic_linker="$host_os dyld" 11094 version_type=darwin 11095 need_lib_prefix=no 11096 need_version=no 11097 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11098 soname_spec='$libname$release$major$shared_ext' 11099 shlibpath_overrides_runpath=yes 11100 shlibpath_var=DYLD_LIBRARY_PATH 11101 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11102 11103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11104 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11105 ;; 11106 11107dgux*) 11108 version_type=linux # correct to gnu/linux during the next big refactor 11109 need_lib_prefix=no 11110 need_version=no 11111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11112 soname_spec='$libname$release$shared_ext$major' 11113 shlibpath_var=LD_LIBRARY_PATH 11114 ;; 11115 11116freebsd* | dragonfly*) 11117 # DragonFly does not have aout. When/if they implement a new 11118 # versioning mechanism, adjust this. 11119 if test -x /usr/bin/objformat; then 11120 objformat=`/usr/bin/objformat` 11121 else 11122 case $host_os in 11123 freebsd[23].*) objformat=aout ;; 11124 *) objformat=elf ;; 11125 esac 11126 fi 11127 version_type=freebsd-$objformat 11128 case $version_type in 11129 freebsd-elf*) 11130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11131 soname_spec='$libname$release$shared_ext$major' 11132 need_version=no 11133 need_lib_prefix=no 11134 ;; 11135 freebsd-*) 11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11137 need_version=yes 11138 ;; 11139 esac 11140 shlibpath_var=LD_LIBRARY_PATH 11141 case $host_os in 11142 freebsd2.*) 11143 shlibpath_overrides_runpath=yes 11144 ;; 11145 freebsd3.[01]* | freebsdelf3.[01]*) 11146 shlibpath_overrides_runpath=yes 11147 hardcode_into_libs=yes 11148 ;; 11149 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11150 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11151 shlibpath_overrides_runpath=no 11152 hardcode_into_libs=yes 11153 ;; 11154 *) # from 4.6 on, and DragonFly 11155 shlibpath_overrides_runpath=yes 11156 hardcode_into_libs=yes 11157 ;; 11158 esac 11159 ;; 11160 11161haiku*) 11162 version_type=linux # correct to gnu/linux during the next big refactor 11163 need_lib_prefix=no 11164 need_version=no 11165 dynamic_linker="$host_os runtime_loader" 11166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11167 soname_spec='$libname$release$shared_ext$major' 11168 shlibpath_var=LIBRARY_PATH 11169 shlibpath_overrides_runpath=no 11170 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11171 hardcode_into_libs=yes 11172 ;; 11173 11174hpux9* | hpux10* | hpux11*) 11175 # Give a soname corresponding to the major version so that dld.sl refuses to 11176 # link against other versions. 11177 version_type=sunos 11178 need_lib_prefix=no 11179 need_version=no 11180 case $host_cpu in 11181 ia64*) 11182 shrext_cmds='.so' 11183 hardcode_into_libs=yes 11184 dynamic_linker="$host_os dld.so" 11185 shlibpath_var=LD_LIBRARY_PATH 11186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11188 soname_spec='$libname$release$shared_ext$major' 11189 if test 32 = "$HPUX_IA64_MODE"; then 11190 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11191 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11192 else 11193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11194 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11195 fi 11196 ;; 11197 hppa*64*) 11198 shrext_cmds='.sl' 11199 hardcode_into_libs=yes 11200 dynamic_linker="$host_os dld.sl" 11201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11204 soname_spec='$libname$release$shared_ext$major' 11205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11207 ;; 11208 *) 11209 shrext_cmds='.sl' 11210 dynamic_linker="$host_os dld.sl" 11211 shlibpath_var=SHLIB_PATH 11212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11214 soname_spec='$libname$release$shared_ext$major' 11215 ;; 11216 esac 11217 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11218 postinstall_cmds='chmod 555 $lib' 11219 # or fails outright, so override atomically: 11220 install_override_mode=555 11221 ;; 11222 11223interix[3-9]*) 11224 version_type=linux # correct to gnu/linux during the next big refactor 11225 need_lib_prefix=no 11226 need_version=no 11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11228 soname_spec='$libname$release$shared_ext$major' 11229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11230 shlibpath_var=LD_LIBRARY_PATH 11231 shlibpath_overrides_runpath=no 11232 hardcode_into_libs=yes 11233 ;; 11234 11235irix5* | irix6* | nonstopux*) 11236 case $host_os in 11237 nonstopux*) version_type=nonstopux ;; 11238 *) 11239 if test yes = "$lt_cv_prog_gnu_ld"; then 11240 version_type=linux # correct to gnu/linux during the next big refactor 11241 else 11242 version_type=irix 11243 fi ;; 11244 esac 11245 need_lib_prefix=no 11246 need_version=no 11247 soname_spec='$libname$release$shared_ext$major' 11248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11249 case $host_os in 11250 irix5* | nonstopux*) 11251 libsuff= shlibsuff= 11252 ;; 11253 *) 11254 case $LD in # libtool.m4 will add one of these switches to LD 11255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11256 libsuff= shlibsuff= libmagic=32-bit;; 11257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11258 libsuff=32 shlibsuff=N32 libmagic=N32;; 11259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11260 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11261 *) libsuff= shlibsuff= libmagic=never-match;; 11262 esac 11263 ;; 11264 esac 11265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11266 shlibpath_overrides_runpath=no 11267 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11268 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11269 hardcode_into_libs=yes 11270 ;; 11271 11272# No shared lib support for Linux oldld, aout, or coff. 11273linux*oldld* | linux*aout* | linux*coff*) 11274 dynamic_linker=no 11275 ;; 11276 11277linux*android*) 11278 version_type=none # Android doesn't support versioned libraries. 11279 need_lib_prefix=no 11280 need_version=no 11281 library_names_spec='$libname$release$shared_ext' 11282 soname_spec='$libname$release$shared_ext' 11283 finish_cmds= 11284 shlibpath_var=LD_LIBRARY_PATH 11285 shlibpath_overrides_runpath=yes 11286 11287 # This implies no fast_install, which is unacceptable. 11288 # Some rework will be needed to allow for fast_install 11289 # before this can be enabled. 11290 hardcode_into_libs=yes 11291 11292 dynamic_linker='Android linker' 11293 # Don't embed -rpath directories since the linker doesn't support them. 11294 hardcode_libdir_flag_spec='-L$libdir' 11295 ;; 11296 11297# This must be glibc/ELF. 11298linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11299 version_type=linux # correct to gnu/linux during the next big refactor 11300 need_lib_prefix=no 11301 need_version=no 11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11303 soname_spec='$libname$release$shared_ext$major' 11304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11305 shlibpath_var=LD_LIBRARY_PATH 11306 shlibpath_overrides_runpath=no 11307 11308 # Some binutils ld are patched to set DT_RUNPATH 11309 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 lt_cv_shlibpath_overrides_runpath=no 11313 save_LDFLAGS=$LDFLAGS 11314 save_libdir=$libdir 11315 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11316 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11318/* end confdefs.h. */ 11319 11320int 11321main () 11322{ 11323 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328if ac_fn_c_try_link "$LINENO"; then : 11329 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11330 lt_cv_shlibpath_overrides_runpath=yes 11331fi 11332fi 11333rm -f core conftest.err conftest.$ac_objext \ 11334 conftest$ac_exeext conftest.$ac_ext 11335 LDFLAGS=$save_LDFLAGS 11336 libdir=$save_libdir 11337 11338fi 11339 11340 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11341 11342 # This implies no fast_install, which is unacceptable. 11343 # Some rework will be needed to allow for fast_install 11344 # before this can be enabled. 11345 hardcode_into_libs=yes 11346 11347 # Add ABI-specific directories to the system library path. 11348 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11349 11350 # Ideally, we could use ldconfig to report *all* directores which are 11351 # searched for libraries, however this is still not possible. Aside from not 11352 # being certain /sbin/ldconfig is available, command 11353 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11354 # even though it is searched at run-time. Try to do the best guess by 11355 # appending ld.so.conf contents (and includes) to the search path. 11356 if test -f /etc/ld.so.conf; then 11357 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' ' '` 11358 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11359 fi 11360 11361 # We used to test for /lib/ld.so.1 and disable shared libraries on 11362 # powerpc, because MkLinux only supported shared libraries with the 11363 # GNU dynamic linker. Since this was broken with cross compilers, 11364 # most powerpc-linux boxes support dynamic linking these days and 11365 # people can always --disable-shared, the test was removed, and we 11366 # assume the GNU/Linux dynamic linker is in use. 11367 dynamic_linker='GNU/Linux ld.so' 11368 ;; 11369 11370netbsd*) 11371 version_type=sunos 11372 need_lib_prefix=no 11373 need_version=no 11374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11375 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11377 dynamic_linker='NetBSD (a.out) ld.so' 11378 else 11379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11380 soname_spec='$libname$release$shared_ext$major' 11381 dynamic_linker='NetBSD ld.elf_so' 11382 fi 11383 shlibpath_var=LD_LIBRARY_PATH 11384 shlibpath_overrides_runpath=yes 11385 hardcode_into_libs=yes 11386 ;; 11387 11388newsos6) 11389 version_type=linux # correct to gnu/linux during the next big refactor 11390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11391 shlibpath_var=LD_LIBRARY_PATH 11392 shlibpath_overrides_runpath=yes 11393 ;; 11394 11395*nto* | *qnx*) 11396 version_type=qnx 11397 need_lib_prefix=no 11398 need_version=no 11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11400 soname_spec='$libname$release$shared_ext$major' 11401 shlibpath_var=LD_LIBRARY_PATH 11402 shlibpath_overrides_runpath=no 11403 hardcode_into_libs=yes 11404 dynamic_linker='ldqnx.so' 11405 ;; 11406 11407openbsd* | bitrig*) 11408 version_type=sunos 11409 sys_lib_dlsearch_path_spec=/usr/lib 11410 need_lib_prefix=no 11411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11412 need_version=no 11413 else 11414 need_version=yes 11415 fi 11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11418 shlibpath_var=LD_LIBRARY_PATH 11419 shlibpath_overrides_runpath=yes 11420 ;; 11421 11422os2*) 11423 libname_spec='$name' 11424 version_type=windows 11425 shrext_cmds=.dll 11426 need_version=no 11427 need_lib_prefix=no 11428 # OS/2 can only load a DLL with a base name of 8 characters or less. 11429 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11430 v=$($ECHO $release$versuffix | tr -d .-); 11431 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11432 $ECHO $n$v`$shared_ext' 11433 library_names_spec='${libname}_dll.$libext' 11434 dynamic_linker='OS/2 ld.exe' 11435 shlibpath_var=BEGINLIBPATH 11436 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11438 postinstall_cmds='base_file=`basename \$file`~ 11439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11440 dldir=$destdir/`dirname \$dlpath`~ 11441 test -d \$dldir || mkdir -p \$dldir~ 11442 $install_prog $dir/$dlname \$dldir/$dlname~ 11443 chmod a+x \$dldir/$dlname~ 11444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11446 fi' 11447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11448 dlpath=$dir/\$dldll~ 11449 $RM \$dlpath' 11450 ;; 11451 11452osf3* | osf4* | osf5*) 11453 version_type=osf 11454 need_lib_prefix=no 11455 need_version=no 11456 soname_spec='$libname$release$shared_ext$major' 11457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11458 shlibpath_var=LD_LIBRARY_PATH 11459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11461 ;; 11462 11463rdos*) 11464 dynamic_linker=no 11465 ;; 11466 11467solaris*) 11468 version_type=linux # correct to gnu/linux during the next big refactor 11469 need_lib_prefix=no 11470 need_version=no 11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11472 soname_spec='$libname$release$shared_ext$major' 11473 shlibpath_var=LD_LIBRARY_PATH 11474 shlibpath_overrides_runpath=yes 11475 hardcode_into_libs=yes 11476 # ldd complains unless libraries are executable 11477 postinstall_cmds='chmod +x $lib' 11478 ;; 11479 11480sunos4*) 11481 version_type=sunos 11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11484 shlibpath_var=LD_LIBRARY_PATH 11485 shlibpath_overrides_runpath=yes 11486 if test yes = "$with_gnu_ld"; then 11487 need_lib_prefix=no 11488 fi 11489 need_version=yes 11490 ;; 11491 11492sysv4 | sysv4.3*) 11493 version_type=linux # correct to gnu/linux during the next big refactor 11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11495 soname_spec='$libname$release$shared_ext$major' 11496 shlibpath_var=LD_LIBRARY_PATH 11497 case $host_vendor in 11498 sni) 11499 shlibpath_overrides_runpath=no 11500 need_lib_prefix=no 11501 runpath_var=LD_RUN_PATH 11502 ;; 11503 siemens) 11504 need_lib_prefix=no 11505 ;; 11506 motorola) 11507 need_lib_prefix=no 11508 need_version=no 11509 shlibpath_overrides_runpath=no 11510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11511 ;; 11512 esac 11513 ;; 11514 11515sysv4*MP*) 11516 if test -d /usr/nec; then 11517 version_type=linux # correct to gnu/linux during the next big refactor 11518 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11519 soname_spec='$libname$shared_ext.$major' 11520 shlibpath_var=LD_LIBRARY_PATH 11521 fi 11522 ;; 11523 11524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11525 version_type=sco 11526 need_lib_prefix=no 11527 need_version=no 11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11529 soname_spec='$libname$release$shared_ext$major' 11530 shlibpath_var=LD_LIBRARY_PATH 11531 shlibpath_overrides_runpath=yes 11532 hardcode_into_libs=yes 11533 if test yes = "$with_gnu_ld"; then 11534 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11535 else 11536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11537 case $host_os in 11538 sco3.2v5*) 11539 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11540 ;; 11541 esac 11542 fi 11543 sys_lib_dlsearch_path_spec='/usr/lib' 11544 ;; 11545 11546tpf*) 11547 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11548 version_type=linux # correct to gnu/linux during the next big refactor 11549 need_lib_prefix=no 11550 need_version=no 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11552 shlibpath_var=LD_LIBRARY_PATH 11553 shlibpath_overrides_runpath=no 11554 hardcode_into_libs=yes 11555 ;; 11556 11557uts4*) 11558 version_type=linux # correct to gnu/linux during the next big refactor 11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11560 soname_spec='$libname$release$shared_ext$major' 11561 shlibpath_var=LD_LIBRARY_PATH 11562 ;; 11563 11564*) 11565 dynamic_linker=no 11566 ;; 11567esac 11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11569$as_echo "$dynamic_linker" >&6; } 11570test no = "$dynamic_linker" && can_build_shared=no 11571 11572variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11573if test yes = "$GCC"; then 11574 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11575fi 11576 11577if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11578 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11579fi 11580 11581if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11582 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11583fi 11584 11585# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11586configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11587 11588# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11589func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11590 11591# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11592configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11691$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11692hardcode_action= 11693if test -n "$hardcode_libdir_flag_spec" || 11694 test -n "$runpath_var" || 11695 test yes = "$hardcode_automatic"; then 11696 11697 # We can hardcode non-existent directories. 11698 if test no != "$hardcode_direct" && 11699 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11700 # have to relink, otherwise we might link with an installed library 11701 # when we should be linking with a yet-to-be-installed one 11702 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11703 test no != "$hardcode_minus_L"; then 11704 # Linking always hardcodes the temporary library directory. 11705 hardcode_action=relink 11706 else 11707 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11708 hardcode_action=immediate 11709 fi 11710else 11711 # We cannot hardcode anything, or else we can only hardcode existing 11712 # directories. 11713 hardcode_action=unsupported 11714fi 11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11716$as_echo "$hardcode_action" >&6; } 11717 11718if test relink = "$hardcode_action" || 11719 test yes = "$inherit_rpath"; then 11720 # Fast installation is not supported 11721 enable_fast_install=no 11722elif test yes = "$shlibpath_overrides_runpath" || 11723 test no = "$enable_shared"; then 11724 # Fast installation is not necessary 11725 enable_fast_install=needless 11726fi 11727 11728 11729 11730 11731 11732 11733 if test yes != "$enable_dlopen"; then 11734 enable_dlopen=unknown 11735 enable_dlopen_self=unknown 11736 enable_dlopen_self_static=unknown 11737else 11738 lt_cv_dlopen=no 11739 lt_cv_dlopen_libs= 11740 11741 case $host_os in 11742 beos*) 11743 lt_cv_dlopen=load_add_on 11744 lt_cv_dlopen_libs= 11745 lt_cv_dlopen_self=yes 11746 ;; 11747 11748 mingw* | pw32* | cegcc*) 11749 lt_cv_dlopen=LoadLibrary 11750 lt_cv_dlopen_libs= 11751 ;; 11752 11753 cygwin*) 11754 lt_cv_dlopen=dlopen 11755 lt_cv_dlopen_libs= 11756 ;; 11757 11758 darwin*) 11759 # if libdl is installed we need to link against it 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11761$as_echo_n "checking for dlopen in -ldl... " >&6; } 11762if ${ac_cv_lib_dl_dlopen+:} false; then : 11763 $as_echo_n "(cached) " >&6 11764else 11765 ac_check_lib_save_LIBS=$LIBS 11766LIBS="-ldl $LIBS" 11767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11768/* end confdefs.h. */ 11769 11770/* Override any GCC internal prototype to avoid an error. 11771 Use char because int might match the return type of a GCC 11772 builtin and then its argument prototype would still apply. */ 11773#ifdef __cplusplus 11774extern "C" 11775#endif 11776char dlopen (); 11777int 11778main () 11779{ 11780return dlopen (); 11781 ; 11782 return 0; 11783} 11784_ACEOF 11785if ac_fn_c_try_link "$LINENO"; then : 11786 ac_cv_lib_dl_dlopen=yes 11787else 11788 ac_cv_lib_dl_dlopen=no 11789fi 11790rm -f core conftest.err conftest.$ac_objext \ 11791 conftest$ac_exeext conftest.$ac_ext 11792LIBS=$ac_check_lib_save_LIBS 11793fi 11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11795$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11796if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11797 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11798else 11799 11800 lt_cv_dlopen=dyld 11801 lt_cv_dlopen_libs= 11802 lt_cv_dlopen_self=yes 11803 11804fi 11805 11806 ;; 11807 11808 tpf*) 11809 # Don't try to run any link tests for TPF. We know it's impossible 11810 # because TPF is a cross-compiler, and we know how we open DSOs. 11811 lt_cv_dlopen=dlopen 11812 lt_cv_dlopen_libs= 11813 lt_cv_dlopen_self=no 11814 ;; 11815 11816 *) 11817 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11818if test "x$ac_cv_func_shl_load" = xyes; then : 11819 lt_cv_dlopen=shl_load 11820else 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11822$as_echo_n "checking for shl_load in -ldld... " >&6; } 11823if ${ac_cv_lib_dld_shl_load+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 ac_check_lib_save_LIBS=$LIBS 11827LIBS="-ldld $LIBS" 11828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11829/* end confdefs.h. */ 11830 11831/* Override any GCC internal prototype to avoid an error. 11832 Use char because int might match the return type of a GCC 11833 builtin and then its argument prototype would still apply. */ 11834#ifdef __cplusplus 11835extern "C" 11836#endif 11837char shl_load (); 11838int 11839main () 11840{ 11841return shl_load (); 11842 ; 11843 return 0; 11844} 11845_ACEOF 11846if ac_fn_c_try_link "$LINENO"; then : 11847 ac_cv_lib_dld_shl_load=yes 11848else 11849 ac_cv_lib_dld_shl_load=no 11850fi 11851rm -f core conftest.err conftest.$ac_objext \ 11852 conftest$ac_exeext conftest.$ac_ext 11853LIBS=$ac_check_lib_save_LIBS 11854fi 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11856$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11857if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11858 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11859else 11860 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11861if test "x$ac_cv_func_dlopen" = xyes; then : 11862 lt_cv_dlopen=dlopen 11863else 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11865$as_echo_n "checking for dlopen in -ldl... " >&6; } 11866if ${ac_cv_lib_dl_dlopen+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868else 11869 ac_check_lib_save_LIBS=$LIBS 11870LIBS="-ldl $LIBS" 11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11872/* end confdefs.h. */ 11873 11874/* Override any GCC internal prototype to avoid an error. 11875 Use char because int might match the return type of a GCC 11876 builtin and then its argument prototype would still apply. */ 11877#ifdef __cplusplus 11878extern "C" 11879#endif 11880char dlopen (); 11881int 11882main () 11883{ 11884return dlopen (); 11885 ; 11886 return 0; 11887} 11888_ACEOF 11889if ac_fn_c_try_link "$LINENO"; then : 11890 ac_cv_lib_dl_dlopen=yes 11891else 11892 ac_cv_lib_dl_dlopen=no 11893fi 11894rm -f core conftest.err conftest.$ac_objext \ 11895 conftest$ac_exeext conftest.$ac_ext 11896LIBS=$ac_check_lib_save_LIBS 11897fi 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11899$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11900if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11901 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11902else 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11904$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11905if ${ac_cv_lib_svld_dlopen+:} false; then : 11906 $as_echo_n "(cached) " >&6 11907else 11908 ac_check_lib_save_LIBS=$LIBS 11909LIBS="-lsvld $LIBS" 11910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11911/* end confdefs.h. */ 11912 11913/* Override any GCC internal prototype to avoid an error. 11914 Use char because int might match the return type of a GCC 11915 builtin and then its argument prototype would still apply. */ 11916#ifdef __cplusplus 11917extern "C" 11918#endif 11919char dlopen (); 11920int 11921main () 11922{ 11923return dlopen (); 11924 ; 11925 return 0; 11926} 11927_ACEOF 11928if ac_fn_c_try_link "$LINENO"; then : 11929 ac_cv_lib_svld_dlopen=yes 11930else 11931 ac_cv_lib_svld_dlopen=no 11932fi 11933rm -f core conftest.err conftest.$ac_objext \ 11934 conftest$ac_exeext conftest.$ac_ext 11935LIBS=$ac_check_lib_save_LIBS 11936fi 11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11938$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11939if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11940 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11941else 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11943$as_echo_n "checking for dld_link in -ldld... " >&6; } 11944if ${ac_cv_lib_dld_dld_link+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 ac_check_lib_save_LIBS=$LIBS 11948LIBS="-ldld $LIBS" 11949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11950/* end confdefs.h. */ 11951 11952/* Override any GCC internal prototype to avoid an error. 11953 Use char because int might match the return type of a GCC 11954 builtin and then its argument prototype would still apply. */ 11955#ifdef __cplusplus 11956extern "C" 11957#endif 11958char dld_link (); 11959int 11960main () 11961{ 11962return dld_link (); 11963 ; 11964 return 0; 11965} 11966_ACEOF 11967if ac_fn_c_try_link "$LINENO"; then : 11968 ac_cv_lib_dld_dld_link=yes 11969else 11970 ac_cv_lib_dld_dld_link=no 11971fi 11972rm -f core conftest.err conftest.$ac_objext \ 11973 conftest$ac_exeext conftest.$ac_ext 11974LIBS=$ac_check_lib_save_LIBS 11975fi 11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11977$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11978if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11979 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11980fi 11981 11982 11983fi 11984 11985 11986fi 11987 11988 11989fi 11990 11991 11992fi 11993 11994 11995fi 11996 11997 ;; 11998 esac 11999 12000 if test no = "$lt_cv_dlopen"; then 12001 enable_dlopen=no 12002 else 12003 enable_dlopen=yes 12004 fi 12005 12006 case $lt_cv_dlopen in 12007 dlopen) 12008 save_CPPFLAGS=$CPPFLAGS 12009 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12010 12011 save_LDFLAGS=$LDFLAGS 12012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12013 12014 save_LIBS=$LIBS 12015 LIBS="$lt_cv_dlopen_libs $LIBS" 12016 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12018$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12019if ${lt_cv_dlopen_self+:} false; then : 12020 $as_echo_n "(cached) " >&6 12021else 12022 if test yes = "$cross_compiling"; then : 12023 lt_cv_dlopen_self=cross 12024else 12025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12026 lt_status=$lt_dlunknown 12027 cat > conftest.$ac_ext <<_LT_EOF 12028#line $LINENO "configure" 12029#include "confdefs.h" 12030 12031#if HAVE_DLFCN_H 12032#include <dlfcn.h> 12033#endif 12034 12035#include <stdio.h> 12036 12037#ifdef RTLD_GLOBAL 12038# define LT_DLGLOBAL RTLD_GLOBAL 12039#else 12040# ifdef DL_GLOBAL 12041# define LT_DLGLOBAL DL_GLOBAL 12042# else 12043# define LT_DLGLOBAL 0 12044# endif 12045#endif 12046 12047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12048 find out it does not work in some platform. */ 12049#ifndef LT_DLLAZY_OR_NOW 12050# ifdef RTLD_LAZY 12051# define LT_DLLAZY_OR_NOW RTLD_LAZY 12052# else 12053# ifdef DL_LAZY 12054# define LT_DLLAZY_OR_NOW DL_LAZY 12055# else 12056# ifdef RTLD_NOW 12057# define LT_DLLAZY_OR_NOW RTLD_NOW 12058# else 12059# ifdef DL_NOW 12060# define LT_DLLAZY_OR_NOW DL_NOW 12061# else 12062# define LT_DLLAZY_OR_NOW 0 12063# endif 12064# endif 12065# endif 12066# endif 12067#endif 12068 12069/* When -fvisibility=hidden is used, assume the code has been annotated 12070 correspondingly for the symbols needed. */ 12071#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12072int fnord () __attribute__((visibility("default"))); 12073#endif 12074 12075int fnord () { return 42; } 12076int main () 12077{ 12078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12079 int status = $lt_dlunknown; 12080 12081 if (self) 12082 { 12083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12084 else 12085 { 12086 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12087 else puts (dlerror ()); 12088 } 12089 /* dlclose (self); */ 12090 } 12091 else 12092 puts (dlerror ()); 12093 12094 return status; 12095} 12096_LT_EOF 12097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12098 (eval $ac_link) 2>&5 12099 ac_status=$? 12100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12101 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12102 (./conftest; exit; ) >&5 2>/dev/null 12103 lt_status=$? 12104 case x$lt_status in 12105 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12106 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12107 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12108 esac 12109 else : 12110 # compilation failed 12111 lt_cv_dlopen_self=no 12112 fi 12113fi 12114rm -fr conftest* 12115 12116 12117fi 12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12119$as_echo "$lt_cv_dlopen_self" >&6; } 12120 12121 if test yes = "$lt_cv_dlopen_self"; then 12122 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12124$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12125if ${lt_cv_dlopen_self_static+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 if test yes = "$cross_compiling"; then : 12129 lt_cv_dlopen_self_static=cross 12130else 12131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12132 lt_status=$lt_dlunknown 12133 cat > conftest.$ac_ext <<_LT_EOF 12134#line $LINENO "configure" 12135#include "confdefs.h" 12136 12137#if HAVE_DLFCN_H 12138#include <dlfcn.h> 12139#endif 12140 12141#include <stdio.h> 12142 12143#ifdef RTLD_GLOBAL 12144# define LT_DLGLOBAL RTLD_GLOBAL 12145#else 12146# ifdef DL_GLOBAL 12147# define LT_DLGLOBAL DL_GLOBAL 12148# else 12149# define LT_DLGLOBAL 0 12150# endif 12151#endif 12152 12153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12154 find out it does not work in some platform. */ 12155#ifndef LT_DLLAZY_OR_NOW 12156# ifdef RTLD_LAZY 12157# define LT_DLLAZY_OR_NOW RTLD_LAZY 12158# else 12159# ifdef DL_LAZY 12160# define LT_DLLAZY_OR_NOW DL_LAZY 12161# else 12162# ifdef RTLD_NOW 12163# define LT_DLLAZY_OR_NOW RTLD_NOW 12164# else 12165# ifdef DL_NOW 12166# define LT_DLLAZY_OR_NOW DL_NOW 12167# else 12168# define LT_DLLAZY_OR_NOW 0 12169# endif 12170# endif 12171# endif 12172# endif 12173#endif 12174 12175/* When -fvisibility=hidden is used, assume the code has been annotated 12176 correspondingly for the symbols needed. */ 12177#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12178int fnord () __attribute__((visibility("default"))); 12179#endif 12180 12181int fnord () { return 42; } 12182int main () 12183{ 12184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12185 int status = $lt_dlunknown; 12186 12187 if (self) 12188 { 12189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12190 else 12191 { 12192 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12193 else puts (dlerror ()); 12194 } 12195 /* dlclose (self); */ 12196 } 12197 else 12198 puts (dlerror ()); 12199 12200 return status; 12201} 12202_LT_EOF 12203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12204 (eval $ac_link) 2>&5 12205 ac_status=$? 12206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12207 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12208 (./conftest; exit; ) >&5 2>/dev/null 12209 lt_status=$? 12210 case x$lt_status in 12211 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12212 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12213 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12214 esac 12215 else : 12216 # compilation failed 12217 lt_cv_dlopen_self_static=no 12218 fi 12219fi 12220rm -fr conftest* 12221 12222 12223fi 12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12225$as_echo "$lt_cv_dlopen_self_static" >&6; } 12226 fi 12227 12228 CPPFLAGS=$save_CPPFLAGS 12229 LDFLAGS=$save_LDFLAGS 12230 LIBS=$save_LIBS 12231 ;; 12232 esac 12233 12234 case $lt_cv_dlopen_self in 12235 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12236 *) enable_dlopen_self=unknown ;; 12237 esac 12238 12239 case $lt_cv_dlopen_self_static in 12240 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12241 *) enable_dlopen_self_static=unknown ;; 12242 esac 12243fi 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261striplib= 12262old_striplib= 12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12264$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12265if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12266 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12267 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12269$as_echo "yes" >&6; } 12270else 12271# FIXME - insert some real tests, host_os isn't really good enough 12272 case $host_os in 12273 darwin*) 12274 if test -n "$STRIP"; then 12275 striplib="$STRIP -x" 12276 old_striplib="$STRIP -S" 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12278$as_echo "yes" >&6; } 12279 else 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12281$as_echo "no" >&6; } 12282 fi 12283 ;; 12284 *) 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12286$as_echo "no" >&6; } 12287 ;; 12288 esac 12289fi 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 # Report what library types will actually be built 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12304$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12306$as_echo "$can_build_shared" >&6; } 12307 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12309$as_echo_n "checking whether to build shared libraries... " >&6; } 12310 test no = "$can_build_shared" && enable_shared=no 12311 12312 # On AIX, shared libraries and static libraries use the same namespace, and 12313 # are all built from PIC. 12314 case $host_os in 12315 aix3*) 12316 test yes = "$enable_shared" && enable_static=no 12317 if test -n "$RANLIB"; then 12318 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12319 postinstall_cmds='$RANLIB $lib' 12320 fi 12321 ;; 12322 12323 aix[4-9]*) 12324 if test ia64 != "$host_cpu"; then 12325 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12326 yes,aix,yes) ;; # shared object as lib.so file only 12327 yes,svr4,*) ;; # shared object as lib.so archive member only 12328 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12329 esac 12330 fi 12331 ;; 12332 esac 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12334$as_echo "$enable_shared" >&6; } 12335 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12337$as_echo_n "checking whether to build static libraries... " >&6; } 12338 # Make sure either enable_shared or enable_static is yes. 12339 test yes = "$enable_shared" || enable_static=yes 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12341$as_echo "$enable_static" >&6; } 12342 12343 12344 12345 12346fi 12347ac_ext=c 12348ac_cpp='$CPP $CPPFLAGS' 12349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12351ac_compiler_gnu=$ac_cv_c_compiler_gnu 12352 12353CC=$lt_save_CC 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 ac_config_commands="$ac_config_commands libtool" 12370 12371 12372 12373 12374# Only expand once: 12375 12376 12377 12378ac_ext=cpp 12379ac_cpp='$CXXCPP $CPPFLAGS' 12380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12383if test -z "$CXX"; then 12384 if test -n "$CCC"; then 12385 CXX=$CCC 12386 else 12387 if test -n "$ac_tool_prefix"; then 12388 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12389 do 12390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12391set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12393$as_echo_n "checking for $ac_word... " >&6; } 12394if ${ac_cv_prog_CXX+:} false; then : 12395 $as_echo_n "(cached) " >&6 12396else 12397 if test -n "$CXX"; then 12398 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12399else 12400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12401for as_dir in $PATH 12402do 12403 IFS=$as_save_IFS 12404 test -z "$as_dir" && as_dir=. 12405 for ac_exec_ext in '' $ac_executable_extensions; do 12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12407 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12409 break 2 12410 fi 12411done 12412 done 12413IFS=$as_save_IFS 12414 12415fi 12416fi 12417CXX=$ac_cv_prog_CXX 12418if test -n "$CXX"; then 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12420$as_echo "$CXX" >&6; } 12421else 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12423$as_echo "no" >&6; } 12424fi 12425 12426 12427 test -n "$CXX" && break 12428 done 12429fi 12430if test -z "$CXX"; then 12431 ac_ct_CXX=$CXX 12432 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12433do 12434 # Extract the first word of "$ac_prog", so it can be a program name with args. 12435set dummy $ac_prog; ac_word=$2 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12437$as_echo_n "checking for $ac_word... " >&6; } 12438if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12439 $as_echo_n "(cached) " >&6 12440else 12441 if test -n "$ac_ct_CXX"; then 12442 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12443else 12444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12445for as_dir in $PATH 12446do 12447 IFS=$as_save_IFS 12448 test -z "$as_dir" && as_dir=. 12449 for ac_exec_ext in '' $ac_executable_extensions; do 12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12451 ac_cv_prog_ac_ct_CXX="$ac_prog" 12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12453 break 2 12454 fi 12455done 12456 done 12457IFS=$as_save_IFS 12458 12459fi 12460fi 12461ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12462if test -n "$ac_ct_CXX"; then 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12464$as_echo "$ac_ct_CXX" >&6; } 12465else 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12467$as_echo "no" >&6; } 12468fi 12469 12470 12471 test -n "$ac_ct_CXX" && break 12472done 12473 12474 if test "x$ac_ct_CXX" = x; then 12475 CXX="g++" 12476 else 12477 case $cross_compiling:$ac_tool_warned in 12478yes:) 12479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12481ac_tool_warned=yes ;; 12482esac 12483 CXX=$ac_ct_CXX 12484 fi 12485fi 12486 12487 fi 12488fi 12489# Provide some information about the compiler. 12490$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12491set X $ac_compile 12492ac_compiler=$2 12493for ac_option in --version -v -V -qversion; do 12494 { { ac_try="$ac_compiler $ac_option >&5" 12495case "(($ac_try" in 12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12497 *) ac_try_echo=$ac_try;; 12498esac 12499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12500$as_echo "$ac_try_echo"; } >&5 12501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12502 ac_status=$? 12503 if test -s conftest.err; then 12504 sed '10a\ 12505... rest of stderr output deleted ... 12506 10q' conftest.err >conftest.er1 12507 cat conftest.er1 >&5 12508 fi 12509 rm -f conftest.er1 conftest.err 12510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12511 test $ac_status = 0; } 12512done 12513 12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12515$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12516if ${ac_cv_cxx_compiler_gnu+:} false; then : 12517 $as_echo_n "(cached) " >&6 12518else 12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521 12522int 12523main () 12524{ 12525#ifndef __GNUC__ 12526 choke me 12527#endif 12528 12529 ; 12530 return 0; 12531} 12532_ACEOF 12533if ac_fn_cxx_try_compile "$LINENO"; then : 12534 ac_compiler_gnu=yes 12535else 12536 ac_compiler_gnu=no 12537fi 12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12539ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12540 12541fi 12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12543$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12544if test $ac_compiler_gnu = yes; then 12545 GXX=yes 12546else 12547 GXX= 12548fi 12549ac_test_CXXFLAGS=${CXXFLAGS+set} 12550ac_save_CXXFLAGS=$CXXFLAGS 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12552$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12553if ${ac_cv_prog_cxx_g+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555else 12556 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12557 ac_cxx_werror_flag=yes 12558 ac_cv_prog_cxx_g=no 12559 CXXFLAGS="-g" 12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562 12563int 12564main () 12565{ 12566 12567 ; 12568 return 0; 12569} 12570_ACEOF 12571if ac_fn_cxx_try_compile "$LINENO"; then : 12572 ac_cv_prog_cxx_g=yes 12573else 12574 CXXFLAGS="" 12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12576/* end confdefs.h. */ 12577 12578int 12579main () 12580{ 12581 12582 ; 12583 return 0; 12584} 12585_ACEOF 12586if ac_fn_cxx_try_compile "$LINENO"; then : 12587 12588else 12589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12590 CXXFLAGS="-g" 12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12592/* end confdefs.h. */ 12593 12594int 12595main () 12596{ 12597 12598 ; 12599 return 0; 12600} 12601_ACEOF 12602if ac_fn_cxx_try_compile "$LINENO"; then : 12603 ac_cv_prog_cxx_g=yes 12604fi 12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12606fi 12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12608fi 12609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12611fi 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12613$as_echo "$ac_cv_prog_cxx_g" >&6; } 12614if test "$ac_test_CXXFLAGS" = set; then 12615 CXXFLAGS=$ac_save_CXXFLAGS 12616elif test $ac_cv_prog_cxx_g = yes; then 12617 if test "$GXX" = yes; then 12618 CXXFLAGS="-g -O2" 12619 else 12620 CXXFLAGS="-g" 12621 fi 12622else 12623 if test "$GXX" = yes; then 12624 CXXFLAGS="-O2" 12625 else 12626 CXXFLAGS= 12627 fi 12628fi 12629ac_ext=c 12630ac_cpp='$CPP $CPPFLAGS' 12631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12633ac_compiler_gnu=$ac_cv_c_compiler_gnu 12634 12635depcc="$CXX" am_compiler_list= 12636 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12638$as_echo_n "checking dependency style of $depcc... " >&6; } 12639if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12640 $as_echo_n "(cached) " >&6 12641else 12642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12643 # We make a subdir and do the tests there. Otherwise we can end up 12644 # making bogus files that we don't know about and never remove. For 12645 # instance it was reported that on HP-UX the gcc test will end up 12646 # making a dummy file named 'D' -- because '-MD' means "put the output 12647 # in D". 12648 rm -rf conftest.dir 12649 mkdir conftest.dir 12650 # Copy depcomp to subdir because otherwise we won't find it if we're 12651 # using a relative directory. 12652 cp "$am_depcomp" conftest.dir 12653 cd conftest.dir 12654 # We will build objects and dependencies in a subdirectory because 12655 # it helps to detect inapplicable dependency modes. For instance 12656 # both Tru64's cc and ICC support -MD to output dependencies as a 12657 # side effect of compilation, but ICC will put the dependencies in 12658 # the current directory while Tru64 will put them in the object 12659 # directory. 12660 mkdir sub 12661 12662 am_cv_CXX_dependencies_compiler_type=none 12663 if test "$am_compiler_list" = ""; then 12664 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12665 fi 12666 am__universal=false 12667 case " $depcc " in #( 12668 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12669 esac 12670 12671 for depmode in $am_compiler_list; do 12672 # Setup a source with many dependencies, because some compilers 12673 # like to wrap large dependency lists on column 80 (with \), and 12674 # we should not choose a depcomp mode which is confused by this. 12675 # 12676 # We need to recreate these files for each test, as the compiler may 12677 # overwrite some of them when testing with obscure command lines. 12678 # This happens at least with the AIX C compiler. 12679 : > sub/conftest.c 12680 for i in 1 2 3 4 5 6; do 12681 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12682 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12683 # Solaris 10 /bin/sh. 12684 echo '/* dummy */' > sub/conftst$i.h 12685 done 12686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12687 12688 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12689 # mode. It turns out that the SunPro C++ compiler does not properly 12690 # handle '-M -o', and we need to detect this. Also, some Intel 12691 # versions had trouble with output in subdirs. 12692 am__obj=sub/conftest.${OBJEXT-o} 12693 am__minus_obj="-o $am__obj" 12694 case $depmode in 12695 gcc) 12696 # This depmode causes a compiler race in universal mode. 12697 test "$am__universal" = false || continue 12698 ;; 12699 nosideeffect) 12700 # After this tag, mechanisms are not by side-effect, so they'll 12701 # only be used when explicitly requested. 12702 if test "x$enable_dependency_tracking" = xyes; then 12703 continue 12704 else 12705 break 12706 fi 12707 ;; 12708 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12709 # This compiler won't grok '-c -o', but also, the minuso test has 12710 # not run yet. These depmodes are late enough in the game, and 12711 # so weak that their functioning should not be impacted. 12712 am__obj=conftest.${OBJEXT-o} 12713 am__minus_obj= 12714 ;; 12715 none) break ;; 12716 esac 12717 if depmode=$depmode \ 12718 source=sub/conftest.c object=$am__obj \ 12719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12720 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12721 >/dev/null 2>conftest.err && 12722 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12723 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12724 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12725 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12726 # icc doesn't choke on unknown options, it will just issue warnings 12727 # or remarks (even with -Werror). So we grep stderr for any message 12728 # that says an option was ignored or not supported. 12729 # When given -MP, icc 7.0 and 7.1 complain thusly: 12730 # icc: Command line warning: ignoring option '-M'; no argument required 12731 # The diagnosis changed in icc 8.0: 12732 # icc: Command line remark: option '-MP' not supported 12733 if (grep 'ignoring option' conftest.err || 12734 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12735 am_cv_CXX_dependencies_compiler_type=$depmode 12736 break 12737 fi 12738 fi 12739 done 12740 12741 cd .. 12742 rm -rf conftest.dir 12743else 12744 am_cv_CXX_dependencies_compiler_type=none 12745fi 12746 12747fi 12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12749$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12750CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12751 12752 if 12753 test "x$enable_dependency_tracking" != xno \ 12754 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12755 am__fastdepCXX_TRUE= 12756 am__fastdepCXX_FALSE='#' 12757else 12758 am__fastdepCXX_TRUE='#' 12759 am__fastdepCXX_FALSE= 12760fi 12761 12762 12763 12764 12765func_stripname_cnf () 12766{ 12767 case $2 in 12768 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 12769 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 12770 esac 12771} # func_stripname_cnf 12772 12773 if test -n "$CXX" && ( test no != "$CXX" && 12774 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12775 (test g++ != "$CXX"))); then 12776 ac_ext=cpp 12777ac_cpp='$CXXCPP $CPPFLAGS' 12778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12782$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12783if test -z "$CXXCPP"; then 12784 if ${ac_cv_prog_CXXCPP+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 # Double quotes because CXXCPP needs to be expanded 12788 for CXXCPP in "$CXX -E" "/lib/cpp" 12789 do 12790 ac_preproc_ok=false 12791for ac_cxx_preproc_warn_flag in '' yes 12792do 12793 # Use a header file that comes with gcc, so configuring glibc 12794 # with a fresh cross-compiler works. 12795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12796 # <limits.h> exists even on freestanding compilers. 12797 # On the NeXT, cc -E runs the code through the compiler's parser, 12798 # not just through cpp. "Syntax error" is here to catch this case. 12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801#ifdef __STDC__ 12802# include <limits.h> 12803#else 12804# include <assert.h> 12805#endif 12806 Syntax error 12807_ACEOF 12808if ac_fn_cxx_try_cpp "$LINENO"; then : 12809 12810else 12811 # Broken: fails on valid input. 12812continue 12813fi 12814rm -f conftest.err conftest.i conftest.$ac_ext 12815 12816 # OK, works on sane cases. Now check whether nonexistent headers 12817 # can be detected and how. 12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12819/* end confdefs.h. */ 12820#include <ac_nonexistent.h> 12821_ACEOF 12822if ac_fn_cxx_try_cpp "$LINENO"; then : 12823 # Broken: success on invalid input. 12824continue 12825else 12826 # Passes both tests. 12827ac_preproc_ok=: 12828break 12829fi 12830rm -f conftest.err conftest.i conftest.$ac_ext 12831 12832done 12833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12834rm -f conftest.i conftest.err conftest.$ac_ext 12835if $ac_preproc_ok; then : 12836 break 12837fi 12838 12839 done 12840 ac_cv_prog_CXXCPP=$CXXCPP 12841 12842fi 12843 CXXCPP=$ac_cv_prog_CXXCPP 12844else 12845 ac_cv_prog_CXXCPP=$CXXCPP 12846fi 12847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12848$as_echo "$CXXCPP" >&6; } 12849ac_preproc_ok=false 12850for ac_cxx_preproc_warn_flag in '' yes 12851do 12852 # Use a header file that comes with gcc, so configuring glibc 12853 # with a fresh cross-compiler works. 12854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12855 # <limits.h> exists even on freestanding compilers. 12856 # On the NeXT, cc -E runs the code through the compiler's parser, 12857 # not just through cpp. "Syntax error" is here to catch this case. 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860#ifdef __STDC__ 12861# include <limits.h> 12862#else 12863# include <assert.h> 12864#endif 12865 Syntax error 12866_ACEOF 12867if ac_fn_cxx_try_cpp "$LINENO"; then : 12868 12869else 12870 # Broken: fails on valid input. 12871continue 12872fi 12873rm -f conftest.err conftest.i conftest.$ac_ext 12874 12875 # OK, works on sane cases. Now check whether nonexistent headers 12876 # can be detected and how. 12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879#include <ac_nonexistent.h> 12880_ACEOF 12881if ac_fn_cxx_try_cpp "$LINENO"; then : 12882 # Broken: success on invalid input. 12883continue 12884else 12885 # Passes both tests. 12886ac_preproc_ok=: 12887break 12888fi 12889rm -f conftest.err conftest.i conftest.$ac_ext 12890 12891done 12892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12893rm -f conftest.i conftest.err conftest.$ac_ext 12894if $ac_preproc_ok; then : 12895 12896else 12897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12899as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12900See \`config.log' for more details" "$LINENO" 5; } 12901fi 12902 12903ac_ext=c 12904ac_cpp='$CPP $CPPFLAGS' 12905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12907ac_compiler_gnu=$ac_cv_c_compiler_gnu 12908 12909else 12910 _lt_caught_CXX_error=yes 12911fi 12912 12913ac_ext=cpp 12914ac_cpp='$CXXCPP $CPPFLAGS' 12915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12918 12919archive_cmds_need_lc_CXX=no 12920allow_undefined_flag_CXX= 12921always_export_symbols_CXX=no 12922archive_expsym_cmds_CXX= 12923compiler_needs_object_CXX=no 12924export_dynamic_flag_spec_CXX= 12925hardcode_direct_CXX=no 12926hardcode_direct_absolute_CXX=no 12927hardcode_libdir_flag_spec_CXX= 12928hardcode_libdir_separator_CXX= 12929hardcode_minus_L_CXX=no 12930hardcode_shlibpath_var_CXX=unsupported 12931hardcode_automatic_CXX=no 12932inherit_rpath_CXX=no 12933module_cmds_CXX= 12934module_expsym_cmds_CXX= 12935link_all_deplibs_CXX=unknown 12936old_archive_cmds_CXX=$old_archive_cmds 12937reload_flag_CXX=$reload_flag 12938reload_cmds_CXX=$reload_cmds 12939no_undefined_flag_CXX= 12940whole_archive_flag_spec_CXX= 12941enable_shared_with_static_runtimes_CXX=no 12942 12943# Source file extension for C++ test sources. 12944ac_ext=cpp 12945 12946# Object file extension for compiled C++ test sources. 12947objext=o 12948objext_CXX=$objext 12949 12950# No sense in running all these tests if we already determined that 12951# the CXX compiler isn't working. Some variables (like enable_shared) 12952# are currently assumed to apply to all compilers on this platform, 12953# and will be corrupted by setting them based on a non-working compiler. 12954if test yes != "$_lt_caught_CXX_error"; then 12955 # Code to be used in simple compile tests 12956 lt_simple_compile_test_code="int some_variable = 0;" 12957 12958 # Code to be used in simple link tests 12959 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12960 12961 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12962 12963 12964 12965 12966 12967 12968# If no C compiler was specified, use CC. 12969LTCC=${LTCC-"$CC"} 12970 12971# If no C compiler flags were specified, use CFLAGS. 12972LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12973 12974# Allow CC to be a program name with arguments. 12975compiler=$CC 12976 12977 12978 # save warnings/boilerplate of simple test code 12979 ac_outfile=conftest.$ac_objext 12980echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12981eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12982_lt_compiler_boilerplate=`cat conftest.err` 12983$RM conftest* 12984 12985 ac_outfile=conftest.$ac_objext 12986echo "$lt_simple_link_test_code" >conftest.$ac_ext 12987eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12988_lt_linker_boilerplate=`cat conftest.err` 12989$RM -r conftest* 12990 12991 12992 # Allow CC to be a program name with arguments. 12993 lt_save_CC=$CC 12994 lt_save_CFLAGS=$CFLAGS 12995 lt_save_LD=$LD 12996 lt_save_GCC=$GCC 12997 GCC=$GXX 12998 lt_save_with_gnu_ld=$with_gnu_ld 12999 lt_save_path_LD=$lt_cv_path_LD 13000 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13001 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13002 else 13003 $as_unset lt_cv_prog_gnu_ld 13004 fi 13005 if test -n "${lt_cv_path_LDCXX+set}"; then 13006 lt_cv_path_LD=$lt_cv_path_LDCXX 13007 else 13008 $as_unset lt_cv_path_LD 13009 fi 13010 test -z "${LDCXX+set}" || LD=$LDCXX 13011 CC=${CXX-"c++"} 13012 CFLAGS=$CXXFLAGS 13013 compiler=$CC 13014 compiler_CXX=$CC 13015 func_cc_basename $compiler 13016cc_basename=$func_cc_basename_result 13017 13018 13019 if test -n "$compiler"; then 13020 # We don't want -fno-exception when compiling C++ code, so set the 13021 # no_builtin_flag separately 13022 if test yes = "$GXX"; then 13023 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13024 else 13025 lt_prog_compiler_no_builtin_flag_CXX= 13026 fi 13027 13028 if test yes = "$GXX"; then 13029 # Set up default GNU C++ configuration 13030 13031 13032 13033# Check whether --with-gnu-ld was given. 13034if test "${with_gnu_ld+set}" = set; then : 13035 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13036else 13037 with_gnu_ld=no 13038fi 13039 13040ac_prog=ld 13041if test yes = "$GCC"; then 13042 # Check if gcc -print-prog-name=ld gives a path. 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13044$as_echo_n "checking for ld used by $CC... " >&6; } 13045 case $host in 13046 *-*-mingw*) 13047 # gcc leaves a trailing carriage return, which upsets mingw 13048 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13049 *) 13050 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13051 esac 13052 case $ac_prog in 13053 # Accept absolute paths. 13054 [\\/]* | ?:[\\/]*) 13055 re_direlt='/[^/][^/]*/\.\./' 13056 # Canonicalize the pathname of ld 13057 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13058 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13059 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13060 done 13061 test -z "$LD" && LD=$ac_prog 13062 ;; 13063 "") 13064 # If it fails, then pretend we aren't using GCC. 13065 ac_prog=ld 13066 ;; 13067 *) 13068 # If it is relative, then search for the first ld in PATH. 13069 with_gnu_ld=unknown 13070 ;; 13071 esac 13072elif test yes = "$with_gnu_ld"; then 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13074$as_echo_n "checking for GNU ld... " >&6; } 13075else 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13077$as_echo_n "checking for non-GNU ld... " >&6; } 13078fi 13079if ${lt_cv_path_LD+:} false; then : 13080 $as_echo_n "(cached) " >&6 13081else 13082 if test -z "$LD"; then 13083 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13084 for ac_dir in $PATH; do 13085 IFS=$lt_save_ifs 13086 test -z "$ac_dir" && ac_dir=. 13087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13088 lt_cv_path_LD=$ac_dir/$ac_prog 13089 # Check to see if the program is GNU ld. I'd rather use --version, 13090 # but apparently some variants of GNU ld only accept -v. 13091 # Break only if it was the GNU/non-GNU ld that we prefer. 13092 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13093 *GNU* | *'with BFD'*) 13094 test no != "$with_gnu_ld" && break 13095 ;; 13096 *) 13097 test yes != "$with_gnu_ld" && break 13098 ;; 13099 esac 13100 fi 13101 done 13102 IFS=$lt_save_ifs 13103else 13104 lt_cv_path_LD=$LD # Let the user override the test with a path. 13105fi 13106fi 13107 13108LD=$lt_cv_path_LD 13109if test -n "$LD"; then 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13111$as_echo "$LD" >&6; } 13112else 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13114$as_echo "no" >&6; } 13115fi 13116test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13118$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13119if ${lt_cv_prog_gnu_ld+:} false; then : 13120 $as_echo_n "(cached) " >&6 13121else 13122 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13123case `$LD -v 2>&1 </dev/null` in 13124*GNU* | *'with BFD'*) 13125 lt_cv_prog_gnu_ld=yes 13126 ;; 13127*) 13128 lt_cv_prog_gnu_ld=no 13129 ;; 13130esac 13131fi 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13133$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13134with_gnu_ld=$lt_cv_prog_gnu_ld 13135 13136 13137 13138 13139 13140 13141 13142 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13143 # archiving commands below assume that GNU ld is being used. 13144 if test yes = "$with_gnu_ld"; then 13145 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13146 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' 13147 13148 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13149 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13150 13151 # If archive_cmds runs LD, not CC, wlarc should be empty 13152 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13153 # investigate it a little bit more. (MM) 13154 wlarc='$wl' 13155 13156 # ancient GNU ld didn't support --whole-archive et. al. 13157 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13158 $GREP 'no-whole-archive' > /dev/null; then 13159 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13160 else 13161 whole_archive_flag_spec_CXX= 13162 fi 13163 else 13164 with_gnu_ld=no 13165 wlarc= 13166 13167 # A generic and very simple default shared library creation 13168 # command for GNU C++ for the case where it uses the native 13169 # linker, instead of GNU ld. If possible, this setting should 13170 # overridden to take advantage of the native linker features on 13171 # the platform it is being used on. 13172 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13173 fi 13174 13175 # Commands to make compiler produce verbose output that lists 13176 # what "hidden" libraries, object files and flags are used when 13177 # linking a shared library. 13178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13179 13180 else 13181 GXX=no 13182 with_gnu_ld=no 13183 wlarc= 13184 fi 13185 13186 # PORTME: fill in a description of your system's C++ link characteristics 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13188$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13189 ld_shlibs_CXX=yes 13190 case $host_os in 13191 aix3*) 13192 # FIXME: insert proper C++ library support 13193 ld_shlibs_CXX=no 13194 ;; 13195 aix[4-9]*) 13196 if test ia64 = "$host_cpu"; then 13197 # On IA64, the linker does run time linking by default, so we don't 13198 # have to do anything special. 13199 aix_use_runtimelinking=no 13200 exp_sym_flag='-Bexport' 13201 no_entry_flag= 13202 else 13203 aix_use_runtimelinking=no 13204 13205 # Test if we are trying to use run time linking or normal 13206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13207 # have runtime linking enabled, and use it for executables. 13208 # For shared libraries, we enable/disable runtime linking 13209 # depending on the kind of the shared library created - 13210 # when "with_aix_soname,aix_use_runtimelinking" is: 13211 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13212 # "aix,yes" lib.so shared, rtl:yes, for executables 13213 # lib.a static archive 13214 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13215 # lib.a(lib.so.V) shared, rtl:no, for executables 13216 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13217 # lib.a(lib.so.V) shared, rtl:no 13218 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13219 # lib.a static archive 13220 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13221 for ld_flag in $LDFLAGS; do 13222 case $ld_flag in 13223 *-brtl*) 13224 aix_use_runtimelinking=yes 13225 break 13226 ;; 13227 esac 13228 done 13229 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13230 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13231 # so we don't have lib.a shared libs to link our executables. 13232 # We have to force runtime linking in this case. 13233 aix_use_runtimelinking=yes 13234 LDFLAGS="$LDFLAGS -Wl,-brtl" 13235 fi 13236 ;; 13237 esac 13238 13239 exp_sym_flag='-bexport' 13240 no_entry_flag='-bnoentry' 13241 fi 13242 13243 # When large executables or shared objects are built, AIX ld can 13244 # have problems creating the table of contents. If linking a library 13245 # or program results in "error TOC overflow" add -mminimal-toc to 13246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13248 13249 archive_cmds_CXX='' 13250 hardcode_direct_CXX=yes 13251 hardcode_direct_absolute_CXX=yes 13252 hardcode_libdir_separator_CXX=':' 13253 link_all_deplibs_CXX=yes 13254 file_list_spec_CXX='$wl-f,' 13255 case $with_aix_soname,$aix_use_runtimelinking in 13256 aix,*) ;; # no import file 13257 svr4,* | *,yes) # use import file 13258 # The Import File defines what to hardcode. 13259 hardcode_direct_CXX=no 13260 hardcode_direct_absolute_CXX=no 13261 ;; 13262 esac 13263 13264 if test yes = "$GXX"; then 13265 case $host_os in aix4.[012]|aix4.[012].*) 13266 # We only want to do this on AIX 4.2 and lower, the check 13267 # below for broken collect2 doesn't work under 4.3+ 13268 collect2name=`$CC -print-prog-name=collect2` 13269 if test -f "$collect2name" && 13270 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13271 then 13272 # We have reworked collect2 13273 : 13274 else 13275 # We have old collect2 13276 hardcode_direct_CXX=unsupported 13277 # It fails to find uninstalled libraries when the uninstalled 13278 # path is not listed in the libpath. Setting hardcode_minus_L 13279 # to unsupported forces relinking 13280 hardcode_minus_L_CXX=yes 13281 hardcode_libdir_flag_spec_CXX='-L$libdir' 13282 hardcode_libdir_separator_CXX= 13283 fi 13284 esac 13285 shared_flag='-shared' 13286 if test yes = "$aix_use_runtimelinking"; then 13287 shared_flag=$shared_flag' $wl-G' 13288 fi 13289 # Need to ensure runtime linking is disabled for the traditional 13290 # shared library, or the linker may eventually find shared libraries 13291 # /with/ Import File - we do not want to mix them. 13292 shared_flag_aix='-shared' 13293 shared_flag_svr4='-shared $wl-G' 13294 else 13295 # not using gcc 13296 if test ia64 = "$host_cpu"; then 13297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13298 # chokes on -Wl,-G. The following line is correct: 13299 shared_flag='-G' 13300 else 13301 if test yes = "$aix_use_runtimelinking"; then 13302 shared_flag='$wl-G' 13303 else 13304 shared_flag='$wl-bM:SRE' 13305 fi 13306 shared_flag_aix='$wl-bM:SRE' 13307 shared_flag_svr4='$wl-G' 13308 fi 13309 fi 13310 13311 export_dynamic_flag_spec_CXX='$wl-bexpall' 13312 # It seems that -bexpall does not export symbols beginning with 13313 # underscore (_), so it is better to generate a list of symbols to 13314 # export. 13315 always_export_symbols_CXX=yes 13316 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13317 # Warning - without using the other runtime loading flags (-brtl), 13318 # -berok will link without error, but may produce a broken library. 13319 # The "-G" linker flag allows undefined symbols. 13320 no_undefined_flag_CXX='-bernotok' 13321 # Determine the default libpath from the value encoded in an empty 13322 # executable. 13323 if test set = "${lt_cv_aix_libpath+set}"; then 13324 aix_libpath=$lt_cv_aix_libpath 13325else 13326 if ${lt_cv_aix_libpath__CXX+:} false; then : 13327 $as_echo_n "(cached) " >&6 13328else 13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13330/* end confdefs.h. */ 13331 13332int 13333main () 13334{ 13335 13336 ; 13337 return 0; 13338} 13339_ACEOF 13340if ac_fn_cxx_try_link "$LINENO"; then : 13341 13342 lt_aix_libpath_sed=' 13343 /Import File Strings/,/^$/ { 13344 /^0/ { 13345 s/^0 *\([^ ]*\) *$/\1/ 13346 p 13347 } 13348 }' 13349 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13350 # Check for a 64-bit object if we didn't find anything. 13351 if test -z "$lt_cv_aix_libpath__CXX"; then 13352 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13353 fi 13354fi 13355rm -f core conftest.err conftest.$ac_objext \ 13356 conftest$ac_exeext conftest.$ac_ext 13357 if test -z "$lt_cv_aix_libpath__CXX"; then 13358 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13359 fi 13360 13361fi 13362 13363 aix_libpath=$lt_cv_aix_libpath__CXX 13364fi 13365 13366 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13367 13368 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13369 else 13370 if test ia64 = "$host_cpu"; then 13371 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13372 allow_undefined_flag_CXX="-z nodefs" 13373 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" 13374 else 13375 # Determine the default libpath from the value encoded in an 13376 # empty executable. 13377 if test set = "${lt_cv_aix_libpath+set}"; then 13378 aix_libpath=$lt_cv_aix_libpath 13379else 13380 if ${lt_cv_aix_libpath__CXX+:} false; then : 13381 $as_echo_n "(cached) " >&6 13382else 13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13384/* end confdefs.h. */ 13385 13386int 13387main () 13388{ 13389 13390 ; 13391 return 0; 13392} 13393_ACEOF 13394if ac_fn_cxx_try_link "$LINENO"; then : 13395 13396 lt_aix_libpath_sed=' 13397 /Import File Strings/,/^$/ { 13398 /^0/ { 13399 s/^0 *\([^ ]*\) *$/\1/ 13400 p 13401 } 13402 }' 13403 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13404 # Check for a 64-bit object if we didn't find anything. 13405 if test -z "$lt_cv_aix_libpath__CXX"; then 13406 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13407 fi 13408fi 13409rm -f core conftest.err conftest.$ac_objext \ 13410 conftest$ac_exeext conftest.$ac_ext 13411 if test -z "$lt_cv_aix_libpath__CXX"; then 13412 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13413 fi 13414 13415fi 13416 13417 aix_libpath=$lt_cv_aix_libpath__CXX 13418fi 13419 13420 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13421 # Warning - without using the other run time loading flags, 13422 # -berok will link without error, but may produce a broken library. 13423 no_undefined_flag_CXX=' $wl-bernotok' 13424 allow_undefined_flag_CXX=' $wl-berok' 13425 if test yes = "$with_gnu_ld"; then 13426 # We only use this code for GNU lds that support --whole-archive. 13427 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13428 else 13429 # Exported symbols can be pulled into shared objects from archives 13430 whole_archive_flag_spec_CXX='$convenience' 13431 fi 13432 archive_cmds_need_lc_CXX=yes 13433 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13434 # -brtl affects multiple linker settings, -berok does not and is overridden later 13435 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13436 if test svr4 != "$with_aix_soname"; then 13437 # This is similar to how AIX traditionally builds its shared 13438 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13439 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13440 fi 13441 if test aix != "$with_aix_soname"; then 13442 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13443 else 13444 # used by -dlpreopen to get the symbols 13445 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13446 fi 13447 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13448 fi 13449 fi 13450 ;; 13451 13452 beos*) 13453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13454 allow_undefined_flag_CXX=unsupported 13455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13456 # support --undefined. This deserves some investigation. FIXME 13457 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13458 else 13459 ld_shlibs_CXX=no 13460 fi 13461 ;; 13462 13463 chorus*) 13464 case $cc_basename in 13465 *) 13466 # FIXME: insert proper C++ library support 13467 ld_shlibs_CXX=no 13468 ;; 13469 esac 13470 ;; 13471 13472 cygwin* | mingw* | pw32* | cegcc*) 13473 case $GXX,$cc_basename in 13474 ,cl* | no,cl*) 13475 # Native MSVC 13476 # hardcode_libdir_flag_spec is actually meaningless, as there is 13477 # no search path for DLLs. 13478 hardcode_libdir_flag_spec_CXX=' ' 13479 allow_undefined_flag_CXX=unsupported 13480 always_export_symbols_CXX=yes 13481 file_list_spec_CXX='@' 13482 # Tell ltmain to make .lib files, not .a files. 13483 libext=lib 13484 # Tell ltmain to make .dll files, not .so files. 13485 shrext_cmds=.dll 13486 # FIXME: Setting linknames here is a bad hack. 13487 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13488 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13489 cp "$export_symbols" "$output_objdir/$soname.def"; 13490 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13491 else 13492 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13493 fi~ 13494 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13495 linknames=' 13496 # The linker will not automatically build a static lib if we build a DLL. 13497 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13498 enable_shared_with_static_runtimes_CXX=yes 13499 # Don't use ranlib 13500 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13501 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13502 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13503 case $lt_outputfile in 13504 *.exe|*.EXE) ;; 13505 *) 13506 lt_outputfile=$lt_outputfile.exe 13507 lt_tool_outputfile=$lt_tool_outputfile.exe 13508 ;; 13509 esac~ 13510 func_to_tool_file "$lt_outputfile"~ 13511 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13512 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13513 $RM "$lt_outputfile.manifest"; 13514 fi' 13515 ;; 13516 *) 13517 # g++ 13518 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13519 # as there is no search path for DLLs. 13520 hardcode_libdir_flag_spec_CXX='-L$libdir' 13521 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13522 allow_undefined_flag_CXX=unsupported 13523 always_export_symbols_CXX=no 13524 enable_shared_with_static_runtimes_CXX=yes 13525 13526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13527 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' 13528 # If the export-symbols file already is a .def file, use it as 13529 # is; otherwise, prepend EXPORTS... 13530 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13531 cp $export_symbols $output_objdir/$soname.def; 13532 else 13533 echo EXPORTS > $output_objdir/$soname.def; 13534 cat $export_symbols >> $output_objdir/$soname.def; 13535 fi~ 13536 $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' 13537 else 13538 ld_shlibs_CXX=no 13539 fi 13540 ;; 13541 esac 13542 ;; 13543 darwin* | rhapsody*) 13544 13545 13546 archive_cmds_need_lc_CXX=no 13547 hardcode_direct_CXX=no 13548 hardcode_automatic_CXX=yes 13549 hardcode_shlibpath_var_CXX=unsupported 13550 if test yes = "$lt_cv_ld_force_load"; then 13551 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\"`' 13552 13553 else 13554 whole_archive_flag_spec_CXX='' 13555 fi 13556 link_all_deplibs_CXX=yes 13557 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13558 case $cc_basename in 13559 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13560 *) _lt_dar_can_shared=$GCC ;; 13561 esac 13562 if test yes = "$_lt_dar_can_shared"; then 13563 output_verbose_link_cmd=func_echo_all 13564 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" 13565 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13566 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" 13567 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" 13568 if test yes != "$lt_cv_apple_cc_single_mod"; then 13569 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" 13570 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" 13571 fi 13572 13573 else 13574 ld_shlibs_CXX=no 13575 fi 13576 13577 ;; 13578 13579 os2*) 13580 hardcode_libdir_flag_spec_CXX='-L$libdir' 13581 hardcode_minus_L_CXX=yes 13582 allow_undefined_flag_CXX=unsupported 13583 shrext_cmds=.dll 13584 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13585 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13586 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13587 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13588 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13589 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13590 emximp -o $lib $output_objdir/$libname.def' 13591 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13592 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13593 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13594 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13595 prefix_cmds="$SED"~ 13596 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13597 prefix_cmds="$prefix_cmds -e 1d"; 13598 fi~ 13599 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13600 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13601 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13602 emximp -o $lib $output_objdir/$libname.def' 13603 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13604 enable_shared_with_static_runtimes_CXX=yes 13605 ;; 13606 13607 dgux*) 13608 case $cc_basename in 13609 ec++*) 13610 # FIXME: insert proper C++ library support 13611 ld_shlibs_CXX=no 13612 ;; 13613 ghcx*) 13614 # Green Hills C++ Compiler 13615 # FIXME: insert proper C++ library support 13616 ld_shlibs_CXX=no 13617 ;; 13618 *) 13619 # FIXME: insert proper C++ library support 13620 ld_shlibs_CXX=no 13621 ;; 13622 esac 13623 ;; 13624 13625 freebsd2.*) 13626 # C++ shared libraries reported to be fairly broken before 13627 # switch to ELF 13628 ld_shlibs_CXX=no 13629 ;; 13630 13631 freebsd-elf*) 13632 archive_cmds_need_lc_CXX=no 13633 ;; 13634 13635 freebsd* | dragonfly*) 13636 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13637 # conventions 13638 ld_shlibs_CXX=yes 13639 ;; 13640 13641 haiku*) 13642 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13643 link_all_deplibs_CXX=yes 13644 ;; 13645 13646 hpux9*) 13647 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13648 hardcode_libdir_separator_CXX=: 13649 export_dynamic_flag_spec_CXX='$wl-E' 13650 hardcode_direct_CXX=yes 13651 hardcode_minus_L_CXX=yes # Not in the search PATH, 13652 # but as the default 13653 # location of the library. 13654 13655 case $cc_basename in 13656 CC*) 13657 # FIXME: insert proper C++ library support 13658 ld_shlibs_CXX=no 13659 ;; 13660 aCC*) 13661 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13662 # Commands to make compiler produce verbose output that lists 13663 # what "hidden" libraries, object files and flags are used when 13664 # linking a shared library. 13665 # 13666 # There doesn't appear to be a way to prevent this compiler from 13667 # explicitly linking system object files so we need to strip them 13668 # from the output so that they don't get included in the library 13669 # dependencies. 13670 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"' 13671 ;; 13672 *) 13673 if test yes = "$GXX"; then 13674 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13675 else 13676 # FIXME: insert proper C++ library support 13677 ld_shlibs_CXX=no 13678 fi 13679 ;; 13680 esac 13681 ;; 13682 13683 hpux10*|hpux11*) 13684 if test no = "$with_gnu_ld"; then 13685 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13686 hardcode_libdir_separator_CXX=: 13687 13688 case $host_cpu in 13689 hppa*64*|ia64*) 13690 ;; 13691 *) 13692 export_dynamic_flag_spec_CXX='$wl-E' 13693 ;; 13694 esac 13695 fi 13696 case $host_cpu in 13697 hppa*64*|ia64*) 13698 hardcode_direct_CXX=no 13699 hardcode_shlibpath_var_CXX=no 13700 ;; 13701 *) 13702 hardcode_direct_CXX=yes 13703 hardcode_direct_absolute_CXX=yes 13704 hardcode_minus_L_CXX=yes # Not in the search PATH, 13705 # but as the default 13706 # location of the library. 13707 ;; 13708 esac 13709 13710 case $cc_basename in 13711 CC*) 13712 # FIXME: insert proper C++ library support 13713 ld_shlibs_CXX=no 13714 ;; 13715 aCC*) 13716 case $host_cpu in 13717 hppa*64*) 13718 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13719 ;; 13720 ia64*) 13721 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13722 ;; 13723 *) 13724 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13725 ;; 13726 esac 13727 # Commands to make compiler produce verbose output that lists 13728 # what "hidden" libraries, object files and flags are used when 13729 # linking a shared library. 13730 # 13731 # There doesn't appear to be a way to prevent this compiler from 13732 # explicitly linking system object files so we need to strip them 13733 # from the output so that they don't get included in the library 13734 # dependencies. 13735 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"' 13736 ;; 13737 *) 13738 if test yes = "$GXX"; then 13739 if test no = "$with_gnu_ld"; then 13740 case $host_cpu in 13741 hppa*64*) 13742 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13743 ;; 13744 ia64*) 13745 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13746 ;; 13747 *) 13748 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' 13749 ;; 13750 esac 13751 fi 13752 else 13753 # FIXME: insert proper C++ library support 13754 ld_shlibs_CXX=no 13755 fi 13756 ;; 13757 esac 13758 ;; 13759 13760 interix[3-9]*) 13761 hardcode_direct_CXX=no 13762 hardcode_shlibpath_var_CXX=no 13763 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13764 export_dynamic_flag_spec_CXX='$wl-E' 13765 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13766 # Instead, shared libraries are loaded at an image base (0x10000000 by 13767 # default) and relocated if they conflict, which is a slow very memory 13768 # consuming and fragmenting process. To avoid this, we pick a random, 13769 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13770 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13771 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' 13772 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' 13773 ;; 13774 irix5* | irix6*) 13775 case $cc_basename in 13776 CC*) 13777 # SGI C++ 13778 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' 13779 13780 # Archives containing C++ object files must be created using 13781 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13782 # necessary to make sure instantiated templates are included 13783 # in the archive. 13784 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13785 ;; 13786 *) 13787 if test yes = "$GXX"; then 13788 if test no = "$with_gnu_ld"; then 13789 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' 13790 else 13791 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' 13792 fi 13793 fi 13794 link_all_deplibs_CXX=yes 13795 ;; 13796 esac 13797 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13798 hardcode_libdir_separator_CXX=: 13799 inherit_rpath_CXX=yes 13800 ;; 13801 13802 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13803 case $cc_basename in 13804 KCC*) 13805 # Kuck and Associates, Inc. (KAI) C++ Compiler 13806 13807 # KCC will only create a shared library if the output file 13808 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13809 # to its proper name (with version) after linking. 13810 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' 13811 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' 13812 # Commands to make compiler produce verbose output that lists 13813 # what "hidden" libraries, object files and flags are used when 13814 # linking a shared library. 13815 # 13816 # There doesn't appear to be a way to prevent this compiler from 13817 # explicitly linking system object files so we need to strip them 13818 # from the output so that they don't get included in the library 13819 # dependencies. 13820 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"' 13821 13822 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13823 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13824 13825 # Archives containing C++ object files must be created using 13826 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13827 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13828 ;; 13829 icpc* | ecpc* ) 13830 # Intel C++ 13831 with_gnu_ld=yes 13832 # version 8.0 and above of icpc choke on multiply defined symbols 13833 # if we add $predep_objects and $postdep_objects, however 7.1 and 13834 # earlier do not add the objects themselves. 13835 case `$CC -V 2>&1` in 13836 *"Version 7."*) 13837 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13838 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' 13839 ;; 13840 *) # Version 8.0 or newer 13841 tmp_idyn= 13842 case $host_cpu in 13843 ia64*) tmp_idyn=' -i_dynamic';; 13844 esac 13845 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13846 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' 13847 ;; 13848 esac 13849 archive_cmds_need_lc_CXX=no 13850 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13851 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13852 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13853 ;; 13854 pgCC* | pgcpp*) 13855 # Portland Group C++ compiler 13856 case `$CC -V` in 13857 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13858 prelink_cmds_CXX='tpldir=Template.dir~ 13859 rm -rf $tpldir~ 13860 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13861 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13862 old_archive_cmds_CXX='tpldir=Template.dir~ 13863 rm -rf $tpldir~ 13864 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13865 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13866 $RANLIB $oldlib' 13867 archive_cmds_CXX='tpldir=Template.dir~ 13868 rm -rf $tpldir~ 13869 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13870 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13871 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13872 rm -rf $tpldir~ 13873 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13874 $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' 13875 ;; 13876 *) # Version 6 and above use weak symbols 13877 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13878 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' 13879 ;; 13880 esac 13881 13882 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13883 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13884 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' 13885 ;; 13886 cxx*) 13887 # Compaq C++ 13888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13889 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' 13890 13891 runpath_var=LD_RUN_PATH 13892 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13893 hardcode_libdir_separator_CXX=: 13894 13895 # Commands to make compiler produce verbose output that lists 13896 # what "hidden" libraries, object files and flags are used when 13897 # linking a shared library. 13898 # 13899 # There doesn't appear to be a way to prevent this compiler from 13900 # explicitly linking system object files so we need to strip them 13901 # from the output so that they don't get included in the library 13902 # dependencies. 13903 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' 13904 ;; 13905 xl* | mpixl* | bgxl*) 13906 # IBM XL 8.0 on PPC, with GNU ld 13907 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13908 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13909 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13910 if test yes = "$supports_anon_versioning"; then 13911 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13913 echo "local: *; };" >> $output_objdir/$libname.ver~ 13914 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13915 fi 13916 ;; 13917 *) 13918 case `$CC -V 2>&1 | sed 5q` in 13919 *Sun\ C*) 13920 # Sun C++ 5.9 13921 no_undefined_flag_CXX=' -zdefs' 13922 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13923 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' 13924 hardcode_libdir_flag_spec_CXX='-R$libdir' 13925 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' 13926 compiler_needs_object_CXX=yes 13927 13928 # Not sure whether something based on 13929 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13930 # would be better. 13931 output_verbose_link_cmd='func_echo_all' 13932 13933 # Archives containing C++ object files must be created using 13934 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13935 # necessary to make sure instantiated templates are included 13936 # in the archive. 13937 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13938 ;; 13939 esac 13940 ;; 13941 esac 13942 ;; 13943 13944 lynxos*) 13945 # FIXME: insert proper C++ library support 13946 ld_shlibs_CXX=no 13947 ;; 13948 13949 m88k*) 13950 # FIXME: insert proper C++ library support 13951 ld_shlibs_CXX=no 13952 ;; 13953 13954 mvs*) 13955 case $cc_basename in 13956 cxx*) 13957 # FIXME: insert proper C++ library support 13958 ld_shlibs_CXX=no 13959 ;; 13960 *) 13961 # FIXME: insert proper C++ library support 13962 ld_shlibs_CXX=no 13963 ;; 13964 esac 13965 ;; 13966 13967 netbsd*) 13968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13969 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13970 wlarc= 13971 hardcode_libdir_flag_spec_CXX='-R$libdir' 13972 hardcode_direct_CXX=yes 13973 hardcode_shlibpath_var_CXX=no 13974 fi 13975 # Workaround some broken pre-1.5 toolchains 13976 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13977 ;; 13978 13979 *nto* | *qnx*) 13980 ld_shlibs_CXX=yes 13981 ;; 13982 13983 openbsd* | bitrig*) 13984 if test -f /usr/libexec/ld.so; then 13985 hardcode_direct_CXX=yes 13986 hardcode_shlibpath_var_CXX=no 13987 hardcode_direct_absolute_CXX=yes 13988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13989 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13991 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13992 export_dynamic_flag_spec_CXX='$wl-E' 13993 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13994 fi 13995 output_verbose_link_cmd=func_echo_all 13996 else 13997 ld_shlibs_CXX=no 13998 fi 13999 ;; 14000 14001 osf3* | osf4* | osf5*) 14002 case $cc_basename in 14003 KCC*) 14004 # Kuck and Associates, Inc. (KAI) C++ Compiler 14005 14006 # KCC will only create a shared library if the output file 14007 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14008 # to its proper name (with version) after linking. 14009 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' 14010 14011 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14012 hardcode_libdir_separator_CXX=: 14013 14014 # Archives containing C++ object files must be created using 14015 # the KAI C++ compiler. 14016 case $host in 14017 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14018 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14019 esac 14020 ;; 14021 RCC*) 14022 # Rational C++ 2.4.1 14023 # FIXME: insert proper C++ library support 14024 ld_shlibs_CXX=no 14025 ;; 14026 cxx*) 14027 case $host in 14028 osf3*) 14029 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14030 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' 14031 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14032 ;; 14033 *) 14034 allow_undefined_flag_CXX=' -expect_unresolved \*' 14035 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' 14036 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14037 echo "-hidden">> $lib.exp~ 14038 $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~ 14039 $RM $lib.exp' 14040 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14041 ;; 14042 esac 14043 14044 hardcode_libdir_separator_CXX=: 14045 14046 # Commands to make compiler produce verbose output that lists 14047 # what "hidden" libraries, object files and flags are used when 14048 # linking a shared library. 14049 # 14050 # There doesn't appear to be a way to prevent this compiler from 14051 # explicitly linking system object files so we need to strip them 14052 # from the output so that they don't get included in the library 14053 # dependencies. 14054 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"' 14055 ;; 14056 *) 14057 if test yes,no = "$GXX,$with_gnu_ld"; then 14058 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14059 case $host in 14060 osf3*) 14061 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' 14062 ;; 14063 *) 14064 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' 14065 ;; 14066 esac 14067 14068 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14069 hardcode_libdir_separator_CXX=: 14070 14071 # Commands to make compiler produce verbose output that lists 14072 # what "hidden" libraries, object files and flags are used when 14073 # linking a shared library. 14074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14075 14076 else 14077 # FIXME: insert proper C++ library support 14078 ld_shlibs_CXX=no 14079 fi 14080 ;; 14081 esac 14082 ;; 14083 14084 psos*) 14085 # FIXME: insert proper C++ library support 14086 ld_shlibs_CXX=no 14087 ;; 14088 14089 sunos4*) 14090 case $cc_basename in 14091 CC*) 14092 # Sun C++ 4.x 14093 # FIXME: insert proper C++ library support 14094 ld_shlibs_CXX=no 14095 ;; 14096 lcc*) 14097 # Lucid 14098 # FIXME: insert proper C++ library support 14099 ld_shlibs_CXX=no 14100 ;; 14101 *) 14102 # FIXME: insert proper C++ library support 14103 ld_shlibs_CXX=no 14104 ;; 14105 esac 14106 ;; 14107 14108 solaris*) 14109 case $cc_basename in 14110 CC* | sunCC*) 14111 # Sun C++ 4.2, 5.x and Centerline C++ 14112 archive_cmds_need_lc_CXX=yes 14113 no_undefined_flag_CXX=' -zdefs' 14114 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14115 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14116 $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' 14117 14118 hardcode_libdir_flag_spec_CXX='-R$libdir' 14119 hardcode_shlibpath_var_CXX=no 14120 case $host_os in 14121 solaris2.[0-5] | solaris2.[0-5].*) ;; 14122 *) 14123 # The compiler driver will combine and reorder linker options, 14124 # but understands '-z linker_flag'. 14125 # Supported since Solaris 2.6 (maybe 2.5.1?) 14126 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14127 ;; 14128 esac 14129 link_all_deplibs_CXX=yes 14130 14131 output_verbose_link_cmd='func_echo_all' 14132 14133 # Archives containing C++ object files must be created using 14134 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14135 # necessary to make sure instantiated templates are included 14136 # in the archive. 14137 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14138 ;; 14139 gcx*) 14140 # Green Hills C++ Compiler 14141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14142 14143 # The C++ compiler must be used to create the archive. 14144 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14145 ;; 14146 *) 14147 # GNU C++ compiler with Solaris linker 14148 if test yes,no = "$GXX,$with_gnu_ld"; then 14149 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14150 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14151 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14152 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14153 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14154 14155 # Commands to make compiler produce verbose output that lists 14156 # what "hidden" libraries, object files and flags are used when 14157 # linking a shared library. 14158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14159 else 14160 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14161 # platform. 14162 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14163 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14164 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14165 14166 # Commands to make compiler produce verbose output that lists 14167 # what "hidden" libraries, object files and flags are used when 14168 # linking a shared library. 14169 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14170 fi 14171 14172 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14173 case $host_os in 14174 solaris2.[0-5] | solaris2.[0-5].*) ;; 14175 *) 14176 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14177 ;; 14178 esac 14179 fi 14180 ;; 14181 esac 14182 ;; 14183 14184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14185 no_undefined_flag_CXX='$wl-z,text' 14186 archive_cmds_need_lc_CXX=no 14187 hardcode_shlibpath_var_CXX=no 14188 runpath_var='LD_RUN_PATH' 14189 14190 case $cc_basename in 14191 CC*) 14192 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14193 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14194 ;; 14195 *) 14196 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14197 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14198 ;; 14199 esac 14200 ;; 14201 14202 sysv5* | sco3.2v5* | sco5v6*) 14203 # Note: We CANNOT use -z defs as we might desire, because we do not 14204 # link with -lc, and that would cause any symbols used from libc to 14205 # always be unresolved, which means just about no library would 14206 # ever link correctly. If we're not using GNU ld we use -z text 14207 # though, which does catch some bad symbols but isn't as heavy-handed 14208 # as -z defs. 14209 no_undefined_flag_CXX='$wl-z,text' 14210 allow_undefined_flag_CXX='$wl-z,nodefs' 14211 archive_cmds_need_lc_CXX=no 14212 hardcode_shlibpath_var_CXX=no 14213 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14214 hardcode_libdir_separator_CXX=':' 14215 link_all_deplibs_CXX=yes 14216 export_dynamic_flag_spec_CXX='$wl-Bexport' 14217 runpath_var='LD_RUN_PATH' 14218 14219 case $cc_basename in 14220 CC*) 14221 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14222 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14223 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14224 '"$old_archive_cmds_CXX" 14225 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14226 '"$reload_cmds_CXX" 14227 ;; 14228 *) 14229 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14230 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14231 ;; 14232 esac 14233 ;; 14234 14235 tandem*) 14236 case $cc_basename in 14237 NCC*) 14238 # NonStop-UX NCC 3.20 14239 # FIXME: insert proper C++ library support 14240 ld_shlibs_CXX=no 14241 ;; 14242 *) 14243 # FIXME: insert proper C++ library support 14244 ld_shlibs_CXX=no 14245 ;; 14246 esac 14247 ;; 14248 14249 vxworks*) 14250 # FIXME: insert proper C++ library support 14251 ld_shlibs_CXX=no 14252 ;; 14253 14254 *) 14255 # FIXME: insert proper C++ library support 14256 ld_shlibs_CXX=no 14257 ;; 14258 esac 14259 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14261$as_echo "$ld_shlibs_CXX" >&6; } 14262 test no = "$ld_shlibs_CXX" && can_build_shared=no 14263 14264 GCC_CXX=$GXX 14265 LD_CXX=$LD 14266 14267 ## CAVEAT EMPTOR: 14268 ## There is no encapsulation within the following macros, do not change 14269 ## the running order or otherwise move them around unless you know exactly 14270 ## what you are doing... 14271 # Dependencies to place before and after the object being linked: 14272predep_objects_CXX= 14273postdep_objects_CXX= 14274predeps_CXX= 14275postdeps_CXX= 14276compiler_lib_search_path_CXX= 14277 14278cat > conftest.$ac_ext <<_LT_EOF 14279class Foo 14280{ 14281public: 14282 Foo (void) { a = 0; } 14283private: 14284 int a; 14285}; 14286_LT_EOF 14287 14288 14289_lt_libdeps_save_CFLAGS=$CFLAGS 14290case "$CC $CFLAGS " in #( 14291*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14292*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14293*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14294esac 14295 14296if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14297 (eval $ac_compile) 2>&5 14298 ac_status=$? 14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14300 test $ac_status = 0; }; then 14301 # Parse the compiler output and extract the necessary 14302 # objects, libraries and library flags. 14303 14304 # Sentinel used to keep track of whether or not we are before 14305 # the conftest object file. 14306 pre_test_object_deps_done=no 14307 14308 for p in `eval "$output_verbose_link_cmd"`; do 14309 case $prev$p in 14310 14311 -L* | -R* | -l*) 14312 # Some compilers place space between "-{L,R}" and the path. 14313 # Remove the space. 14314 if test x-L = "$p" || 14315 test x-R = "$p"; then 14316 prev=$p 14317 continue 14318 fi 14319 14320 # Expand the sysroot to ease extracting the directories later. 14321 if test -z "$prev"; then 14322 case $p in 14323 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14324 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14325 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14326 esac 14327 fi 14328 case $p in 14329 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14330 esac 14331 if test no = "$pre_test_object_deps_done"; then 14332 case $prev in 14333 -L | -R) 14334 # Internal compiler library paths should come after those 14335 # provided the user. The postdeps already come after the 14336 # user supplied libs so there is no need to process them. 14337 if test -z "$compiler_lib_search_path_CXX"; then 14338 compiler_lib_search_path_CXX=$prev$p 14339 else 14340 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14341 fi 14342 ;; 14343 # The "-l" case would never come before the object being 14344 # linked, so don't bother handling this case. 14345 esac 14346 else 14347 if test -z "$postdeps_CXX"; then 14348 postdeps_CXX=$prev$p 14349 else 14350 postdeps_CXX="${postdeps_CXX} $prev$p" 14351 fi 14352 fi 14353 prev= 14354 ;; 14355 14356 *.lto.$objext) ;; # Ignore GCC LTO objects 14357 *.$objext) 14358 # This assumes that the test object file only shows up 14359 # once in the compiler output. 14360 if test "$p" = "conftest.$objext"; then 14361 pre_test_object_deps_done=yes 14362 continue 14363 fi 14364 14365 if test no = "$pre_test_object_deps_done"; then 14366 if test -z "$predep_objects_CXX"; then 14367 predep_objects_CXX=$p 14368 else 14369 predep_objects_CXX="$predep_objects_CXX $p" 14370 fi 14371 else 14372 if test -z "$postdep_objects_CXX"; then 14373 postdep_objects_CXX=$p 14374 else 14375 postdep_objects_CXX="$postdep_objects_CXX $p" 14376 fi 14377 fi 14378 ;; 14379 14380 *) ;; # Ignore the rest. 14381 14382 esac 14383 done 14384 14385 # Clean up. 14386 rm -f a.out a.exe 14387else 14388 echo "libtool.m4: error: problem compiling CXX test program" 14389fi 14390 14391$RM -f confest.$objext 14392CFLAGS=$_lt_libdeps_save_CFLAGS 14393 14394# PORTME: override above test on systems where it is broken 14395case $host_os in 14396interix[3-9]*) 14397 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14398 # hack all around it, let's just trust "g++" to DTRT. 14399 predep_objects_CXX= 14400 postdep_objects_CXX= 14401 postdeps_CXX= 14402 ;; 14403esac 14404 14405 14406case " $postdeps_CXX " in 14407*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14408esac 14409 compiler_lib_search_dirs_CXX= 14410if test -n "${compiler_lib_search_path_CXX}"; then 14411 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14412fi 14413 14414 14415 14416 14417 14418 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 lt_prog_compiler_wl_CXX= 14445lt_prog_compiler_pic_CXX= 14446lt_prog_compiler_static_CXX= 14447 14448 14449 # C++ specific cases for pic, static, wl, etc. 14450 if test yes = "$GXX"; then 14451 lt_prog_compiler_wl_CXX='-Wl,' 14452 lt_prog_compiler_static_CXX='-static' 14453 14454 case $host_os in 14455 aix*) 14456 # All AIX code is PIC. 14457 if test ia64 = "$host_cpu"; then 14458 # AIX 5 now supports IA64 processor 14459 lt_prog_compiler_static_CXX='-Bstatic' 14460 fi 14461 lt_prog_compiler_pic_CXX='-fPIC' 14462 ;; 14463 14464 amigaos*) 14465 case $host_cpu in 14466 powerpc) 14467 # see comment about AmigaOS4 .so support 14468 lt_prog_compiler_pic_CXX='-fPIC' 14469 ;; 14470 m68k) 14471 # FIXME: we need at least 68020 code to build shared libraries, but 14472 # adding the '-m68020' flag to GCC prevents building anything better, 14473 # like '-m68040'. 14474 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14475 ;; 14476 esac 14477 ;; 14478 14479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14480 # PIC is the default for these OSes. 14481 ;; 14482 mingw* | cygwin* | os2* | pw32* | cegcc*) 14483 # This hack is so that the source file can tell whether it is being 14484 # built for inclusion in a dll (and should export symbols for example). 14485 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14486 # (--disable-auto-import) libraries 14487 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14488 case $host_os in 14489 os2*) 14490 lt_prog_compiler_static_CXX='$wl-static' 14491 ;; 14492 esac 14493 ;; 14494 darwin* | rhapsody*) 14495 # PIC is the default on this platform 14496 # Common symbols not allowed in MH_DYLIB files 14497 lt_prog_compiler_pic_CXX='-fno-common' 14498 ;; 14499 *djgpp*) 14500 # DJGPP does not support shared libraries at all 14501 lt_prog_compiler_pic_CXX= 14502 ;; 14503 haiku*) 14504 # PIC is the default for Haiku. 14505 # The "-static" flag exists, but is broken. 14506 lt_prog_compiler_static_CXX= 14507 ;; 14508 interix[3-9]*) 14509 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14510 # Instead, we relocate shared libraries at runtime. 14511 ;; 14512 sysv4*MP*) 14513 if test -d /usr/nec; then 14514 lt_prog_compiler_pic_CXX=-Kconform_pic 14515 fi 14516 ;; 14517 hpux*) 14518 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14519 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14520 # sets the default TLS model and affects inlining. 14521 case $host_cpu in 14522 hppa*64*) 14523 ;; 14524 *) 14525 lt_prog_compiler_pic_CXX='-fPIC' 14526 ;; 14527 esac 14528 ;; 14529 *qnx* | *nto*) 14530 # QNX uses GNU C++, but need to define -shared option too, otherwise 14531 # it will coredump. 14532 lt_prog_compiler_pic_CXX='-fPIC -shared' 14533 ;; 14534 *) 14535 lt_prog_compiler_pic_CXX='-fPIC' 14536 ;; 14537 esac 14538 else 14539 case $host_os in 14540 aix[4-9]*) 14541 # All AIX code is PIC. 14542 if test ia64 = "$host_cpu"; then 14543 # AIX 5 now supports IA64 processor 14544 lt_prog_compiler_static_CXX='-Bstatic' 14545 else 14546 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14547 fi 14548 ;; 14549 chorus*) 14550 case $cc_basename in 14551 cxch68*) 14552 # Green Hills C++ Compiler 14553 # _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" 14554 ;; 14555 esac 14556 ;; 14557 mingw* | cygwin* | os2* | pw32* | cegcc*) 14558 # This hack is so that the source file can tell whether it is being 14559 # built for inclusion in a dll (and should export symbols for example). 14560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14561 ;; 14562 dgux*) 14563 case $cc_basename in 14564 ec++*) 14565 lt_prog_compiler_pic_CXX='-KPIC' 14566 ;; 14567 ghcx*) 14568 # Green Hills C++ Compiler 14569 lt_prog_compiler_pic_CXX='-pic' 14570 ;; 14571 *) 14572 ;; 14573 esac 14574 ;; 14575 freebsd* | dragonfly*) 14576 # FreeBSD uses GNU C++ 14577 ;; 14578 hpux9* | hpux10* | hpux11*) 14579 case $cc_basename in 14580 CC*) 14581 lt_prog_compiler_wl_CXX='-Wl,' 14582 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14583 if test ia64 != "$host_cpu"; then 14584 lt_prog_compiler_pic_CXX='+Z' 14585 fi 14586 ;; 14587 aCC*) 14588 lt_prog_compiler_wl_CXX='-Wl,' 14589 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14590 case $host_cpu in 14591 hppa*64*|ia64*) 14592 # +Z the default 14593 ;; 14594 *) 14595 lt_prog_compiler_pic_CXX='+Z' 14596 ;; 14597 esac 14598 ;; 14599 *) 14600 ;; 14601 esac 14602 ;; 14603 interix*) 14604 # This is c89, which is MS Visual C++ (no shared libs) 14605 # Anyone wants to do a port? 14606 ;; 14607 irix5* | irix6* | nonstopux*) 14608 case $cc_basename in 14609 CC*) 14610 lt_prog_compiler_wl_CXX='-Wl,' 14611 lt_prog_compiler_static_CXX='-non_shared' 14612 # CC pic flag -KPIC is the default. 14613 ;; 14614 *) 14615 ;; 14616 esac 14617 ;; 14618 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14619 case $cc_basename in 14620 KCC*) 14621 # KAI C++ Compiler 14622 lt_prog_compiler_wl_CXX='--backend -Wl,' 14623 lt_prog_compiler_pic_CXX='-fPIC' 14624 ;; 14625 ecpc* ) 14626 # old Intel C++ for x86_64, which still supported -KPIC. 14627 lt_prog_compiler_wl_CXX='-Wl,' 14628 lt_prog_compiler_pic_CXX='-KPIC' 14629 lt_prog_compiler_static_CXX='-static' 14630 ;; 14631 icpc* ) 14632 # Intel C++, used to be incompatible with GCC. 14633 # ICC 10 doesn't accept -KPIC any more. 14634 lt_prog_compiler_wl_CXX='-Wl,' 14635 lt_prog_compiler_pic_CXX='-fPIC' 14636 lt_prog_compiler_static_CXX='-static' 14637 ;; 14638 pgCC* | pgcpp*) 14639 # Portland Group C++ compiler 14640 lt_prog_compiler_wl_CXX='-Wl,' 14641 lt_prog_compiler_pic_CXX='-fpic' 14642 lt_prog_compiler_static_CXX='-Bstatic' 14643 ;; 14644 cxx*) 14645 # Compaq C++ 14646 # Make sure the PIC flag is empty. It appears that all Alpha 14647 # Linux and Compaq Tru64 Unix objects are PIC. 14648 lt_prog_compiler_pic_CXX= 14649 lt_prog_compiler_static_CXX='-non_shared' 14650 ;; 14651 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14652 # IBM XL 8.0, 9.0 on PPC and BlueGene 14653 lt_prog_compiler_wl_CXX='-Wl,' 14654 lt_prog_compiler_pic_CXX='-qpic' 14655 lt_prog_compiler_static_CXX='-qstaticlink' 14656 ;; 14657 *) 14658 case `$CC -V 2>&1 | sed 5q` in 14659 *Sun\ C*) 14660 # Sun C++ 5.9 14661 lt_prog_compiler_pic_CXX='-KPIC' 14662 lt_prog_compiler_static_CXX='-Bstatic' 14663 lt_prog_compiler_wl_CXX='-Qoption ld ' 14664 ;; 14665 esac 14666 ;; 14667 esac 14668 ;; 14669 lynxos*) 14670 ;; 14671 m88k*) 14672 ;; 14673 mvs*) 14674 case $cc_basename in 14675 cxx*) 14676 lt_prog_compiler_pic_CXX='-W c,exportall' 14677 ;; 14678 *) 14679 ;; 14680 esac 14681 ;; 14682 netbsd*) 14683 ;; 14684 *qnx* | *nto*) 14685 # QNX uses GNU C++, but need to define -shared option too, otherwise 14686 # it will coredump. 14687 lt_prog_compiler_pic_CXX='-fPIC -shared' 14688 ;; 14689 osf3* | osf4* | osf5*) 14690 case $cc_basename in 14691 KCC*) 14692 lt_prog_compiler_wl_CXX='--backend -Wl,' 14693 ;; 14694 RCC*) 14695 # Rational C++ 2.4.1 14696 lt_prog_compiler_pic_CXX='-pic' 14697 ;; 14698 cxx*) 14699 # Digital/Compaq C++ 14700 lt_prog_compiler_wl_CXX='-Wl,' 14701 # Make sure the PIC flag is empty. It appears that all Alpha 14702 # Linux and Compaq Tru64 Unix objects are PIC. 14703 lt_prog_compiler_pic_CXX= 14704 lt_prog_compiler_static_CXX='-non_shared' 14705 ;; 14706 *) 14707 ;; 14708 esac 14709 ;; 14710 psos*) 14711 ;; 14712 solaris*) 14713 case $cc_basename in 14714 CC* | sunCC*) 14715 # Sun C++ 4.2, 5.x and Centerline C++ 14716 lt_prog_compiler_pic_CXX='-KPIC' 14717 lt_prog_compiler_static_CXX='-Bstatic' 14718 lt_prog_compiler_wl_CXX='-Qoption ld ' 14719 ;; 14720 gcx*) 14721 # Green Hills C++ Compiler 14722 lt_prog_compiler_pic_CXX='-PIC' 14723 ;; 14724 *) 14725 ;; 14726 esac 14727 ;; 14728 sunos4*) 14729 case $cc_basename in 14730 CC*) 14731 # Sun C++ 4.x 14732 lt_prog_compiler_pic_CXX='-pic' 14733 lt_prog_compiler_static_CXX='-Bstatic' 14734 ;; 14735 lcc*) 14736 # Lucid 14737 lt_prog_compiler_pic_CXX='-pic' 14738 ;; 14739 *) 14740 ;; 14741 esac 14742 ;; 14743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14744 case $cc_basename in 14745 CC*) 14746 lt_prog_compiler_wl_CXX='-Wl,' 14747 lt_prog_compiler_pic_CXX='-KPIC' 14748 lt_prog_compiler_static_CXX='-Bstatic' 14749 ;; 14750 esac 14751 ;; 14752 tandem*) 14753 case $cc_basename in 14754 NCC*) 14755 # NonStop-UX NCC 3.20 14756 lt_prog_compiler_pic_CXX='-KPIC' 14757 ;; 14758 *) 14759 ;; 14760 esac 14761 ;; 14762 vxworks*) 14763 ;; 14764 *) 14765 lt_prog_compiler_can_build_shared_CXX=no 14766 ;; 14767 esac 14768 fi 14769 14770case $host_os in 14771 # For platforms that do not support PIC, -DPIC is meaningless: 14772 *djgpp*) 14773 lt_prog_compiler_pic_CXX= 14774 ;; 14775 *) 14776 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14777 ;; 14778esac 14779 14780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14781$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14782if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14783 $as_echo_n "(cached) " >&6 14784else 14785 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14786fi 14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14788$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14789lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14790 14791# 14792# Check to make sure the PIC flag actually works. 14793# 14794if test -n "$lt_prog_compiler_pic_CXX"; then 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14796$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14797if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14798 $as_echo_n "(cached) " >&6 14799else 14800 lt_cv_prog_compiler_pic_works_CXX=no 14801 ac_outfile=conftest.$ac_objext 14802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14804 # Insert the option either (1) after the last *FLAGS variable, or 14805 # (2) before a word containing "conftest.", or (3) at the end. 14806 # Note that $ac_compile itself does not contain backslashes and begins 14807 # with a dollar sign (not a hyphen), so the echo should work correctly. 14808 # The option is referenced via a variable to avoid confusing sed. 14809 lt_compile=`echo "$ac_compile" | $SED \ 14810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14812 -e 's:$: $lt_compiler_flag:'` 14813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14814 (eval "$lt_compile" 2>conftest.err) 14815 ac_status=$? 14816 cat conftest.err >&5 14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14818 if (exit $ac_status) && test -s "$ac_outfile"; then 14819 # The compiler can only warn and ignore the option if not recognized 14820 # So say no if there are warnings other than the usual output. 14821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14824 lt_cv_prog_compiler_pic_works_CXX=yes 14825 fi 14826 fi 14827 $RM conftest* 14828 14829fi 14830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14831$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14832 14833if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14834 case $lt_prog_compiler_pic_CXX in 14835 "" | " "*) ;; 14836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14837 esac 14838else 14839 lt_prog_compiler_pic_CXX= 14840 lt_prog_compiler_can_build_shared_CXX=no 14841fi 14842 14843fi 14844 14845 14846 14847 14848 14849# 14850# Check to make sure the static flag actually works. 14851# 14852wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14854$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14855if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14856 $as_echo_n "(cached) " >&6 14857else 14858 lt_cv_prog_compiler_static_works_CXX=no 14859 save_LDFLAGS=$LDFLAGS 14860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14861 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14863 # The linker can only warn and ignore the option if not recognized 14864 # So say no if there are warnings 14865 if test -s conftest.err; then 14866 # Append any errors to the config.log. 14867 cat conftest.err 1>&5 14868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14870 if diff conftest.exp conftest.er2 >/dev/null; then 14871 lt_cv_prog_compiler_static_works_CXX=yes 14872 fi 14873 else 14874 lt_cv_prog_compiler_static_works_CXX=yes 14875 fi 14876 fi 14877 $RM -r conftest* 14878 LDFLAGS=$save_LDFLAGS 14879 14880fi 14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14882$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14883 14884if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14885 : 14886else 14887 lt_prog_compiler_static_CXX= 14888fi 14889 14890 14891 14892 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14894$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14895if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14896 $as_echo_n "(cached) " >&6 14897else 14898 lt_cv_prog_compiler_c_o_CXX=no 14899 $RM -r conftest 2>/dev/null 14900 mkdir conftest 14901 cd conftest 14902 mkdir out 14903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14904 14905 lt_compiler_flag="-o out/conftest2.$ac_objext" 14906 # Insert the option either (1) after the last *FLAGS variable, or 14907 # (2) before a word containing "conftest.", or (3) at the end. 14908 # Note that $ac_compile itself does not contain backslashes and begins 14909 # with a dollar sign (not a hyphen), so the echo should work correctly. 14910 lt_compile=`echo "$ac_compile" | $SED \ 14911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14913 -e 's:$: $lt_compiler_flag:'` 14914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14915 (eval "$lt_compile" 2>out/conftest.err) 14916 ac_status=$? 14917 cat out/conftest.err >&5 14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14919 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14920 then 14921 # The compiler can only warn and ignore the option if not recognized 14922 # So say no if there are warnings 14923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14926 lt_cv_prog_compiler_c_o_CXX=yes 14927 fi 14928 fi 14929 chmod u+w . 2>&5 14930 $RM conftest* 14931 # SGI C++ compiler will create directory out/ii_files/ for 14932 # template instantiation 14933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14934 $RM out/* && rmdir out 14935 cd .. 14936 $RM -r conftest 14937 $RM conftest* 14938 14939fi 14940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14941$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14942 14943 14944 14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14946$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14947if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14948 $as_echo_n "(cached) " >&6 14949else 14950 lt_cv_prog_compiler_c_o_CXX=no 14951 $RM -r conftest 2>/dev/null 14952 mkdir conftest 14953 cd conftest 14954 mkdir out 14955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14956 14957 lt_compiler_flag="-o out/conftest2.$ac_objext" 14958 # Insert the option either (1) after the last *FLAGS variable, or 14959 # (2) before a word containing "conftest.", or (3) at the end. 14960 # Note that $ac_compile itself does not contain backslashes and begins 14961 # with a dollar sign (not a hyphen), so the echo should work correctly. 14962 lt_compile=`echo "$ac_compile" | $SED \ 14963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14965 -e 's:$: $lt_compiler_flag:'` 14966 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14967 (eval "$lt_compile" 2>out/conftest.err) 14968 ac_status=$? 14969 cat out/conftest.err >&5 14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14971 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14972 then 14973 # The compiler can only warn and ignore the option if not recognized 14974 # So say no if there are warnings 14975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14978 lt_cv_prog_compiler_c_o_CXX=yes 14979 fi 14980 fi 14981 chmod u+w . 2>&5 14982 $RM conftest* 14983 # SGI C++ compiler will create directory out/ii_files/ for 14984 # template instantiation 14985 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14986 $RM out/* && rmdir out 14987 cd .. 14988 $RM -r conftest 14989 $RM conftest* 14990 14991fi 14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14993$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14994 14995 14996 14997 14998hard_links=nottested 14999if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15000 # do not overwrite the value of need_locks provided by the user 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15002$as_echo_n "checking if we can lock with hard links... " >&6; } 15003 hard_links=yes 15004 $RM conftest* 15005 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15006 touch conftest.a 15007 ln conftest.a conftest.b 2>&5 || hard_links=no 15008 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15010$as_echo "$hard_links" >&6; } 15011 if test no = "$hard_links"; then 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15013$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15014 need_locks=warn 15015 fi 15016else 15017 need_locks=no 15018fi 15019 15020 15021 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15023$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15024 15025 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15026 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15027 case $host_os in 15028 aix[4-9]*) 15029 # If we're using GNU nm, then we don't want the "-C" option. 15030 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15031 # Without the "-l" option, or with the "-B" option, AIX nm treats 15032 # weak defined symbols like other global defined symbols, whereas 15033 # GNU nm marks them as "W". 15034 # While the 'weak' keyword is ignored in the Export File, we need 15035 # it in the Import File for the 'aix-soname' feature, so we have 15036 # to replace the "-B" option with "-P" for AIX nm. 15037 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15038 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15039 else 15040 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15041 fi 15042 ;; 15043 pw32*) 15044 export_symbols_cmds_CXX=$ltdll_cmds 15045 ;; 15046 cygwin* | mingw* | cegcc*) 15047 case $cc_basename in 15048 cl*) 15049 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15050 ;; 15051 *) 15052 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' 15053 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15054 ;; 15055 esac 15056 ;; 15057 *) 15058 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15059 ;; 15060 esac 15061 15062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15063$as_echo "$ld_shlibs_CXX" >&6; } 15064test no = "$ld_shlibs_CXX" && can_build_shared=no 15065 15066with_gnu_ld_CXX=$with_gnu_ld 15067 15068 15069 15070 15071 15072 15073# 15074# Do we need to explicitly link libc? 15075# 15076case "x$archive_cmds_need_lc_CXX" in 15077x|xyes) 15078 # Assume -lc should be added 15079 archive_cmds_need_lc_CXX=yes 15080 15081 if test yes,yes = "$GCC,$enable_shared"; then 15082 case $archive_cmds_CXX in 15083 *'~'*) 15084 # FIXME: we may have to deal with multi-command sequences. 15085 ;; 15086 '$CC '*) 15087 # Test whether the compiler implicitly links with -lc since on some 15088 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15089 # to ld, don't add -lc before -lgcc. 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15091$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15092if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15093 $as_echo_n "(cached) " >&6 15094else 15095 $RM conftest* 15096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15097 15098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15099 (eval $ac_compile) 2>&5 15100 ac_status=$? 15101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15102 test $ac_status = 0; } 2>conftest.err; then 15103 soname=conftest 15104 lib=conftest 15105 libobjs=conftest.$ac_objext 15106 deplibs= 15107 wl=$lt_prog_compiler_wl_CXX 15108 pic_flag=$lt_prog_compiler_pic_CXX 15109 compiler_flags=-v 15110 linker_flags=-v 15111 verstring= 15112 output_objdir=. 15113 libname=conftest 15114 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15115 allow_undefined_flag_CXX= 15116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15117 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15118 ac_status=$? 15119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15120 test $ac_status = 0; } 15121 then 15122 lt_cv_archive_cmds_need_lc_CXX=no 15123 else 15124 lt_cv_archive_cmds_need_lc_CXX=yes 15125 fi 15126 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15127 else 15128 cat conftest.err 1>&5 15129 fi 15130 $RM conftest* 15131 15132fi 15133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15134$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15135 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15136 ;; 15137 esac 15138 fi 15139 ;; 15140esac 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15204$as_echo_n "checking dynamic linker characteristics... " >&6; } 15205 15206library_names_spec= 15207libname_spec='lib$name' 15208soname_spec= 15209shrext_cmds=.so 15210postinstall_cmds= 15211postuninstall_cmds= 15212finish_cmds= 15213finish_eval= 15214shlibpath_var= 15215shlibpath_overrides_runpath=unknown 15216version_type=none 15217dynamic_linker="$host_os ld.so" 15218sys_lib_dlsearch_path_spec="/lib /usr/lib" 15219need_lib_prefix=unknown 15220hardcode_into_libs=no 15221 15222# when you set need_version to no, make sure it does not cause -set_version 15223# flags to be left without arguments 15224need_version=unknown 15225 15226 15227 15228case $host_os in 15229aix3*) 15230 version_type=linux # correct to gnu/linux during the next big refactor 15231 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15232 shlibpath_var=LIBPATH 15233 15234 # AIX 3 has no versioning support, so we append a major version to the name. 15235 soname_spec='$libname$release$shared_ext$major' 15236 ;; 15237 15238aix[4-9]*) 15239 version_type=linux # correct to gnu/linux during the next big refactor 15240 need_lib_prefix=no 15241 need_version=no 15242 hardcode_into_libs=yes 15243 if test ia64 = "$host_cpu"; then 15244 # AIX 5 supports IA64 15245 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15246 shlibpath_var=LD_LIBRARY_PATH 15247 else 15248 # With GCC up to 2.95.x, collect2 would create an import file 15249 # for dependence libraries. The import file would start with 15250 # the line '#! .'. This would cause the generated library to 15251 # depend on '.', always an invalid library. This was fixed in 15252 # development snapshots of GCC prior to 3.0. 15253 case $host_os in 15254 aix4 | aix4.[01] | aix4.[01].*) 15255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15256 echo ' yes ' 15257 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15258 : 15259 else 15260 can_build_shared=no 15261 fi 15262 ;; 15263 esac 15264 # Using Import Files as archive members, it is possible to support 15265 # filename-based versioning of shared library archives on AIX. While 15266 # this would work for both with and without runtime linking, it will 15267 # prevent static linking of such archives. So we do filename-based 15268 # shared library versioning with .so extension only, which is used 15269 # when both runtime linking and shared linking is enabled. 15270 # Unfortunately, runtime linking may impact performance, so we do 15271 # not want this to be the default eventually. Also, we use the 15272 # versioned .so libs for executables only if there is the -brtl 15273 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15274 # To allow for filename-based versioning support, we need to create 15275 # libNAME.so.V as an archive file, containing: 15276 # *) an Import File, referring to the versioned filename of the 15277 # archive as well as the shared archive member, telling the 15278 # bitwidth (32 or 64) of that shared object, and providing the 15279 # list of exported symbols of that shared object, eventually 15280 # decorated with the 'weak' keyword 15281 # *) the shared object with the F_LOADONLY flag set, to really avoid 15282 # it being seen by the linker. 15283 # At run time we better use the real file rather than another symlink, 15284 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15285 15286 case $with_aix_soname,$aix_use_runtimelinking in 15287 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15288 # soname into executable. Probably we can add versioning support to 15289 # collect2, so additional links can be useful in future. 15290 aix,yes) # traditional libtool 15291 dynamic_linker='AIX unversionable lib.so' 15292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15293 # instead of lib<name>.a to let people know that these are not 15294 # typical AIX shared libraries. 15295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15296 ;; 15297 aix,no) # traditional AIX only 15298 dynamic_linker='AIX lib.a(lib.so.V)' 15299 # We preserve .a as extension for shared libraries through AIX4.2 15300 # and later when we are not doing run time linking. 15301 library_names_spec='$libname$release.a $libname.a' 15302 soname_spec='$libname$release$shared_ext$major' 15303 ;; 15304 svr4,*) # full svr4 only 15305 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15306 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15307 # We do not specify a path in Import Files, so LIBPATH fires. 15308 shlibpath_overrides_runpath=yes 15309 ;; 15310 *,yes) # both, prefer svr4 15311 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15312 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15313 # unpreferred sharedlib libNAME.a needs extra handling 15314 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15315 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15316 # We do not specify a path in Import Files, so LIBPATH fires. 15317 shlibpath_overrides_runpath=yes 15318 ;; 15319 *,no) # both, prefer aix 15320 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15321 library_names_spec='$libname$release.a $libname.a' 15322 soname_spec='$libname$release$shared_ext$major' 15323 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15324 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15325 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15326 ;; 15327 esac 15328 shlibpath_var=LIBPATH 15329 fi 15330 ;; 15331 15332amigaos*) 15333 case $host_cpu in 15334 powerpc) 15335 # Since July 2007 AmigaOS4 officially supports .so libraries. 15336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15338 ;; 15339 m68k) 15340 library_names_spec='$libname.ixlibrary $libname.a' 15341 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15342 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15343 ;; 15344 esac 15345 ;; 15346 15347beos*) 15348 library_names_spec='$libname$shared_ext' 15349 dynamic_linker="$host_os ld.so" 15350 shlibpath_var=LIBRARY_PATH 15351 ;; 15352 15353bsdi[45]*) 15354 version_type=linux # correct to gnu/linux during the next big refactor 15355 need_version=no 15356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15357 soname_spec='$libname$release$shared_ext$major' 15358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15359 shlibpath_var=LD_LIBRARY_PATH 15360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15362 # the default ld.so.conf also contains /usr/contrib/lib and 15363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15364 # libtool to hard-code these into programs 15365 ;; 15366 15367cygwin* | mingw* | pw32* | cegcc*) 15368 version_type=windows 15369 shrext_cmds=.dll 15370 need_version=no 15371 need_lib_prefix=no 15372 15373 case $GCC,$cc_basename in 15374 yes,*) 15375 # gcc 15376 library_names_spec='$libname.dll.a' 15377 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15378 postinstall_cmds='base_file=`basename \$file`~ 15379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15380 dldir=$destdir/`dirname \$dlpath`~ 15381 test -d \$dldir || mkdir -p \$dldir~ 15382 $install_prog $dir/$dlname \$dldir/$dlname~ 15383 chmod a+x \$dldir/$dlname~ 15384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15386 fi' 15387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15388 dlpath=$dir/\$dldll~ 15389 $RM \$dlpath' 15390 shlibpath_overrides_runpath=yes 15391 15392 case $host_os in 15393 cygwin*) 15394 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15395 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15396 15397 ;; 15398 mingw* | cegcc*) 15399 # MinGW DLLs use traditional 'lib' prefix 15400 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15401 ;; 15402 pw32*) 15403 # pw32 DLLs use 'pw' prefix rather than 'lib' 15404 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15405 ;; 15406 esac 15407 dynamic_linker='Win32 ld.exe' 15408 ;; 15409 15410 *,cl*) 15411 # Native MSVC 15412 libname_spec='$name' 15413 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15414 library_names_spec='$libname.dll.lib' 15415 15416 case $build_os in 15417 mingw*) 15418 sys_lib_search_path_spec= 15419 lt_save_ifs=$IFS 15420 IFS=';' 15421 for lt_path in $LIB 15422 do 15423 IFS=$lt_save_ifs 15424 # Let DOS variable expansion print the short 8.3 style file name. 15425 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15426 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15427 done 15428 IFS=$lt_save_ifs 15429 # Convert to MSYS style. 15430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15431 ;; 15432 cygwin*) 15433 # Convert to unix form, then to dos form, then back to unix form 15434 # but this time dos style (no spaces!) so that the unix form looks 15435 # like /cygdrive/c/PROGRA~1:/cygdr... 15436 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15437 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15438 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15439 ;; 15440 *) 15441 sys_lib_search_path_spec=$LIB 15442 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15443 # It is most probably a Windows format PATH. 15444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15445 else 15446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15447 fi 15448 # FIXME: find the short name or the path components, as spaces are 15449 # common. (e.g. "Program Files" -> "PROGRA~1") 15450 ;; 15451 esac 15452 15453 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15454 postinstall_cmds='base_file=`basename \$file`~ 15455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15456 dldir=$destdir/`dirname \$dlpath`~ 15457 test -d \$dldir || mkdir -p \$dldir~ 15458 $install_prog $dir/$dlname \$dldir/$dlname' 15459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15460 dlpath=$dir/\$dldll~ 15461 $RM \$dlpath' 15462 shlibpath_overrides_runpath=yes 15463 dynamic_linker='Win32 link.exe' 15464 ;; 15465 15466 *) 15467 # Assume MSVC wrapper 15468 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15469 dynamic_linker='Win32 ld.exe' 15470 ;; 15471 esac 15472 # FIXME: first we should search . and the directory the executable is in 15473 shlibpath_var=PATH 15474 ;; 15475 15476darwin* | rhapsody*) 15477 dynamic_linker="$host_os dyld" 15478 version_type=darwin 15479 need_lib_prefix=no 15480 need_version=no 15481 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15482 soname_spec='$libname$release$major$shared_ext' 15483 shlibpath_overrides_runpath=yes 15484 shlibpath_var=DYLD_LIBRARY_PATH 15485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15486 15487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15488 ;; 15489 15490dgux*) 15491 version_type=linux # correct to gnu/linux during the next big refactor 15492 need_lib_prefix=no 15493 need_version=no 15494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15495 soname_spec='$libname$release$shared_ext$major' 15496 shlibpath_var=LD_LIBRARY_PATH 15497 ;; 15498 15499freebsd* | dragonfly*) 15500 # DragonFly does not have aout. When/if they implement a new 15501 # versioning mechanism, adjust this. 15502 if test -x /usr/bin/objformat; then 15503 objformat=`/usr/bin/objformat` 15504 else 15505 case $host_os in 15506 freebsd[23].*) objformat=aout ;; 15507 *) objformat=elf ;; 15508 esac 15509 fi 15510 version_type=freebsd-$objformat 15511 case $version_type in 15512 freebsd-elf*) 15513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15514 soname_spec='$libname$release$shared_ext$major' 15515 need_version=no 15516 need_lib_prefix=no 15517 ;; 15518 freebsd-*) 15519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15520 need_version=yes 15521 ;; 15522 esac 15523 shlibpath_var=LD_LIBRARY_PATH 15524 case $host_os in 15525 freebsd2.*) 15526 shlibpath_overrides_runpath=yes 15527 ;; 15528 freebsd3.[01]* | freebsdelf3.[01]*) 15529 shlibpath_overrides_runpath=yes 15530 hardcode_into_libs=yes 15531 ;; 15532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15534 shlibpath_overrides_runpath=no 15535 hardcode_into_libs=yes 15536 ;; 15537 *) # from 4.6 on, and DragonFly 15538 shlibpath_overrides_runpath=yes 15539 hardcode_into_libs=yes 15540 ;; 15541 esac 15542 ;; 15543 15544haiku*) 15545 version_type=linux # correct to gnu/linux during the next big refactor 15546 need_lib_prefix=no 15547 need_version=no 15548 dynamic_linker="$host_os runtime_loader" 15549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15550 soname_spec='$libname$release$shared_ext$major' 15551 shlibpath_var=LIBRARY_PATH 15552 shlibpath_overrides_runpath=no 15553 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15554 hardcode_into_libs=yes 15555 ;; 15556 15557hpux9* | hpux10* | hpux11*) 15558 # Give a soname corresponding to the major version so that dld.sl refuses to 15559 # link against other versions. 15560 version_type=sunos 15561 need_lib_prefix=no 15562 need_version=no 15563 case $host_cpu in 15564 ia64*) 15565 shrext_cmds='.so' 15566 hardcode_into_libs=yes 15567 dynamic_linker="$host_os dld.so" 15568 shlibpath_var=LD_LIBRARY_PATH 15569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15571 soname_spec='$libname$release$shared_ext$major' 15572 if test 32 = "$HPUX_IA64_MODE"; then 15573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15574 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15575 else 15576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15577 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15578 fi 15579 ;; 15580 hppa*64*) 15581 shrext_cmds='.sl' 15582 hardcode_into_libs=yes 15583 dynamic_linker="$host_os dld.sl" 15584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15587 soname_spec='$libname$release$shared_ext$major' 15588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15590 ;; 15591 *) 15592 shrext_cmds='.sl' 15593 dynamic_linker="$host_os dld.sl" 15594 shlibpath_var=SHLIB_PATH 15595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15597 soname_spec='$libname$release$shared_ext$major' 15598 ;; 15599 esac 15600 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15601 postinstall_cmds='chmod 555 $lib' 15602 # or fails outright, so override atomically: 15603 install_override_mode=555 15604 ;; 15605 15606interix[3-9]*) 15607 version_type=linux # correct to gnu/linux during the next big refactor 15608 need_lib_prefix=no 15609 need_version=no 15610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15611 soname_spec='$libname$release$shared_ext$major' 15612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15613 shlibpath_var=LD_LIBRARY_PATH 15614 shlibpath_overrides_runpath=no 15615 hardcode_into_libs=yes 15616 ;; 15617 15618irix5* | irix6* | nonstopux*) 15619 case $host_os in 15620 nonstopux*) version_type=nonstopux ;; 15621 *) 15622 if test yes = "$lt_cv_prog_gnu_ld"; then 15623 version_type=linux # correct to gnu/linux during the next big refactor 15624 else 15625 version_type=irix 15626 fi ;; 15627 esac 15628 need_lib_prefix=no 15629 need_version=no 15630 soname_spec='$libname$release$shared_ext$major' 15631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15632 case $host_os in 15633 irix5* | nonstopux*) 15634 libsuff= shlibsuff= 15635 ;; 15636 *) 15637 case $LD in # libtool.m4 will add one of these switches to LD 15638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15639 libsuff= shlibsuff= libmagic=32-bit;; 15640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15641 libsuff=32 shlibsuff=N32 libmagic=N32;; 15642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15643 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15644 *) libsuff= shlibsuff= libmagic=never-match;; 15645 esac 15646 ;; 15647 esac 15648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15649 shlibpath_overrides_runpath=no 15650 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15651 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15652 hardcode_into_libs=yes 15653 ;; 15654 15655# No shared lib support for Linux oldld, aout, or coff. 15656linux*oldld* | linux*aout* | linux*coff*) 15657 dynamic_linker=no 15658 ;; 15659 15660linux*android*) 15661 version_type=none # Android doesn't support versioned libraries. 15662 need_lib_prefix=no 15663 need_version=no 15664 library_names_spec='$libname$release$shared_ext' 15665 soname_spec='$libname$release$shared_ext' 15666 finish_cmds= 15667 shlibpath_var=LD_LIBRARY_PATH 15668 shlibpath_overrides_runpath=yes 15669 15670 # This implies no fast_install, which is unacceptable. 15671 # Some rework will be needed to allow for fast_install 15672 # before this can be enabled. 15673 hardcode_into_libs=yes 15674 15675 dynamic_linker='Android linker' 15676 # Don't embed -rpath directories since the linker doesn't support them. 15677 hardcode_libdir_flag_spec_CXX='-L$libdir' 15678 ;; 15679 15680# This must be glibc/ELF. 15681linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15682 version_type=linux # correct to gnu/linux during the next big refactor 15683 need_lib_prefix=no 15684 need_version=no 15685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15686 soname_spec='$libname$release$shared_ext$major' 15687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15688 shlibpath_var=LD_LIBRARY_PATH 15689 shlibpath_overrides_runpath=no 15690 15691 # Some binutils ld are patched to set DT_RUNPATH 15692 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15693 $as_echo_n "(cached) " >&6 15694else 15695 lt_cv_shlibpath_overrides_runpath=no 15696 save_LDFLAGS=$LDFLAGS 15697 save_libdir=$libdir 15698 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15699 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701/* end confdefs.h. */ 15702 15703int 15704main () 15705{ 15706 15707 ; 15708 return 0; 15709} 15710_ACEOF 15711if ac_fn_cxx_try_link "$LINENO"; then : 15712 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15713 lt_cv_shlibpath_overrides_runpath=yes 15714fi 15715fi 15716rm -f core conftest.err conftest.$ac_objext \ 15717 conftest$ac_exeext conftest.$ac_ext 15718 LDFLAGS=$save_LDFLAGS 15719 libdir=$save_libdir 15720 15721fi 15722 15723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15724 15725 # This implies no fast_install, which is unacceptable. 15726 # Some rework will be needed to allow for fast_install 15727 # before this can be enabled. 15728 hardcode_into_libs=yes 15729 15730 # Add ABI-specific directories to the system library path. 15731 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 15732 15733 # Ideally, we could use ldconfig to report *all* directores which are 15734 # searched for libraries, however this is still not possible. Aside from not 15735 # being certain /sbin/ldconfig is available, command 15736 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15737 # even though it is searched at run-time. Try to do the best guess by 15738 # appending ld.so.conf contents (and includes) to the search path. 15739 if test -f /etc/ld.so.conf; then 15740 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' ' '` 15741 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15742 fi 15743 15744 # We used to test for /lib/ld.so.1 and disable shared libraries on 15745 # powerpc, because MkLinux only supported shared libraries with the 15746 # GNU dynamic linker. Since this was broken with cross compilers, 15747 # most powerpc-linux boxes support dynamic linking these days and 15748 # people can always --disable-shared, the test was removed, and we 15749 # assume the GNU/Linux dynamic linker is in use. 15750 dynamic_linker='GNU/Linux ld.so' 15751 ;; 15752 15753netbsd*) 15754 version_type=sunos 15755 need_lib_prefix=no 15756 need_version=no 15757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15758 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15760 dynamic_linker='NetBSD (a.out) ld.so' 15761 else 15762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15763 soname_spec='$libname$release$shared_ext$major' 15764 dynamic_linker='NetBSD ld.elf_so' 15765 fi 15766 shlibpath_var=LD_LIBRARY_PATH 15767 shlibpath_overrides_runpath=yes 15768 hardcode_into_libs=yes 15769 ;; 15770 15771newsos6) 15772 version_type=linux # correct to gnu/linux during the next big refactor 15773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15774 shlibpath_var=LD_LIBRARY_PATH 15775 shlibpath_overrides_runpath=yes 15776 ;; 15777 15778*nto* | *qnx*) 15779 version_type=qnx 15780 need_lib_prefix=no 15781 need_version=no 15782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15783 soname_spec='$libname$release$shared_ext$major' 15784 shlibpath_var=LD_LIBRARY_PATH 15785 shlibpath_overrides_runpath=no 15786 hardcode_into_libs=yes 15787 dynamic_linker='ldqnx.so' 15788 ;; 15789 15790openbsd* | bitrig*) 15791 version_type=sunos 15792 sys_lib_dlsearch_path_spec=/usr/lib 15793 need_lib_prefix=no 15794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15795 need_version=no 15796 else 15797 need_version=yes 15798 fi 15799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15801 shlibpath_var=LD_LIBRARY_PATH 15802 shlibpath_overrides_runpath=yes 15803 ;; 15804 15805os2*) 15806 libname_spec='$name' 15807 version_type=windows 15808 shrext_cmds=.dll 15809 need_version=no 15810 need_lib_prefix=no 15811 # OS/2 can only load a DLL with a base name of 8 characters or less. 15812 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15813 v=$($ECHO $release$versuffix | tr -d .-); 15814 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15815 $ECHO $n$v`$shared_ext' 15816 library_names_spec='${libname}_dll.$libext' 15817 dynamic_linker='OS/2 ld.exe' 15818 shlibpath_var=BEGINLIBPATH 15819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15821 postinstall_cmds='base_file=`basename \$file`~ 15822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15823 dldir=$destdir/`dirname \$dlpath`~ 15824 test -d \$dldir || mkdir -p \$dldir~ 15825 $install_prog $dir/$dlname \$dldir/$dlname~ 15826 chmod a+x \$dldir/$dlname~ 15827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15829 fi' 15830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15831 dlpath=$dir/\$dldll~ 15832 $RM \$dlpath' 15833 ;; 15834 15835osf3* | osf4* | osf5*) 15836 version_type=osf 15837 need_lib_prefix=no 15838 need_version=no 15839 soname_spec='$libname$release$shared_ext$major' 15840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15841 shlibpath_var=LD_LIBRARY_PATH 15842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15844 ;; 15845 15846rdos*) 15847 dynamic_linker=no 15848 ;; 15849 15850solaris*) 15851 version_type=linux # correct to gnu/linux during the next big refactor 15852 need_lib_prefix=no 15853 need_version=no 15854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15855 soname_spec='$libname$release$shared_ext$major' 15856 shlibpath_var=LD_LIBRARY_PATH 15857 shlibpath_overrides_runpath=yes 15858 hardcode_into_libs=yes 15859 # ldd complains unless libraries are executable 15860 postinstall_cmds='chmod +x $lib' 15861 ;; 15862 15863sunos4*) 15864 version_type=sunos 15865 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15867 shlibpath_var=LD_LIBRARY_PATH 15868 shlibpath_overrides_runpath=yes 15869 if test yes = "$with_gnu_ld"; then 15870 need_lib_prefix=no 15871 fi 15872 need_version=yes 15873 ;; 15874 15875sysv4 | sysv4.3*) 15876 version_type=linux # correct to gnu/linux during the next big refactor 15877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15878 soname_spec='$libname$release$shared_ext$major' 15879 shlibpath_var=LD_LIBRARY_PATH 15880 case $host_vendor in 15881 sni) 15882 shlibpath_overrides_runpath=no 15883 need_lib_prefix=no 15884 runpath_var=LD_RUN_PATH 15885 ;; 15886 siemens) 15887 need_lib_prefix=no 15888 ;; 15889 motorola) 15890 need_lib_prefix=no 15891 need_version=no 15892 shlibpath_overrides_runpath=no 15893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15894 ;; 15895 esac 15896 ;; 15897 15898sysv4*MP*) 15899 if test -d /usr/nec; then 15900 version_type=linux # correct to gnu/linux during the next big refactor 15901 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15902 soname_spec='$libname$shared_ext.$major' 15903 shlibpath_var=LD_LIBRARY_PATH 15904 fi 15905 ;; 15906 15907sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15908 version_type=sco 15909 need_lib_prefix=no 15910 need_version=no 15911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15912 soname_spec='$libname$release$shared_ext$major' 15913 shlibpath_var=LD_LIBRARY_PATH 15914 shlibpath_overrides_runpath=yes 15915 hardcode_into_libs=yes 15916 if test yes = "$with_gnu_ld"; then 15917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15918 else 15919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15920 case $host_os in 15921 sco3.2v5*) 15922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15923 ;; 15924 esac 15925 fi 15926 sys_lib_dlsearch_path_spec='/usr/lib' 15927 ;; 15928 15929tpf*) 15930 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15931 version_type=linux # correct to gnu/linux during the next big refactor 15932 need_lib_prefix=no 15933 need_version=no 15934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15935 shlibpath_var=LD_LIBRARY_PATH 15936 shlibpath_overrides_runpath=no 15937 hardcode_into_libs=yes 15938 ;; 15939 15940uts4*) 15941 version_type=linux # correct to gnu/linux during the next big refactor 15942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15943 soname_spec='$libname$release$shared_ext$major' 15944 shlibpath_var=LD_LIBRARY_PATH 15945 ;; 15946 15947*) 15948 dynamic_linker=no 15949 ;; 15950esac 15951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15952$as_echo "$dynamic_linker" >&6; } 15953test no = "$dynamic_linker" && can_build_shared=no 15954 15955variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15956if test yes = "$GCC"; then 15957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15958fi 15959 15960if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15961 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15962fi 15963 15964if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15965 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15966fi 15967 15968# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15969configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15970 15971# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15972func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15973 15974# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15975configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16017$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16018hardcode_action_CXX= 16019if test -n "$hardcode_libdir_flag_spec_CXX" || 16020 test -n "$runpath_var_CXX" || 16021 test yes = "$hardcode_automatic_CXX"; then 16022 16023 # We can hardcode non-existent directories. 16024 if test no != "$hardcode_direct_CXX" && 16025 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16026 # have to relink, otherwise we might link with an installed library 16027 # when we should be linking with a yet-to-be-installed one 16028 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16029 test no != "$hardcode_minus_L_CXX"; then 16030 # Linking always hardcodes the temporary library directory. 16031 hardcode_action_CXX=relink 16032 else 16033 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16034 hardcode_action_CXX=immediate 16035 fi 16036else 16037 # We cannot hardcode anything, or else we can only hardcode existing 16038 # directories. 16039 hardcode_action_CXX=unsupported 16040fi 16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16042$as_echo "$hardcode_action_CXX" >&6; } 16043 16044if test relink = "$hardcode_action_CXX" || 16045 test yes = "$inherit_rpath_CXX"; then 16046 # Fast installation is not supported 16047 enable_fast_install=no 16048elif test yes = "$shlibpath_overrides_runpath" || 16049 test no = "$enable_shared"; then 16050 # Fast installation is not necessary 16051 enable_fast_install=needless 16052fi 16053 16054 16055 16056 16057 16058 16059 16060 fi # test -n "$compiler" 16061 16062 CC=$lt_save_CC 16063 CFLAGS=$lt_save_CFLAGS 16064 LDCXX=$LD 16065 LD=$lt_save_LD 16066 GCC=$lt_save_GCC 16067 with_gnu_ld=$lt_save_with_gnu_ld 16068 lt_cv_path_LDCXX=$lt_cv_path_LD 16069 lt_cv_path_LD=$lt_save_path_LD 16070 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16071 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16072fi # test yes != "$_lt_caught_CXX_error" 16073 16074ac_ext=c 16075ac_cpp='$CPP $CPPFLAGS' 16076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16078ac_compiler_gnu=$ac_cv_c_compiler_gnu 16079 16080 16081ac_ext=c 16082ac_cpp='$CPP $CPPFLAGS' 16083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16085ac_compiler_gnu=$ac_cv_c_compiler_gnu 16086if test -n "$ac_tool_prefix"; then 16087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 16088set dummy ${ac_tool_prefix}gcc; ac_word=$2 16089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16090$as_echo_n "checking for $ac_word... " >&6; } 16091if ${ac_cv_prog_CC+:} false; then : 16092 $as_echo_n "(cached) " >&6 16093else 16094 if test -n "$CC"; then 16095 ac_cv_prog_CC="$CC" # Let the user override the test. 16096else 16097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16098for as_dir in $PATH 16099do 16100 IFS=$as_save_IFS 16101 test -z "$as_dir" && as_dir=. 16102 for ac_exec_ext in '' $ac_executable_extensions; do 16103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16104 ac_cv_prog_CC="${ac_tool_prefix}gcc" 16105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16106 break 2 16107 fi 16108done 16109 done 16110IFS=$as_save_IFS 16111 16112fi 16113fi 16114CC=$ac_cv_prog_CC 16115if test -n "$CC"; then 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16117$as_echo "$CC" >&6; } 16118else 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16120$as_echo "no" >&6; } 16121fi 16122 16123 16124fi 16125if test -z "$ac_cv_prog_CC"; then 16126 ac_ct_CC=$CC 16127 # Extract the first word of "gcc", so it can be a program name with args. 16128set dummy gcc; ac_word=$2 16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16130$as_echo_n "checking for $ac_word... " >&6; } 16131if ${ac_cv_prog_ac_ct_CC+:} false; then : 16132 $as_echo_n "(cached) " >&6 16133else 16134 if test -n "$ac_ct_CC"; then 16135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 16136else 16137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16138for as_dir in $PATH 16139do 16140 IFS=$as_save_IFS 16141 test -z "$as_dir" && as_dir=. 16142 for ac_exec_ext in '' $ac_executable_extensions; do 16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16144 ac_cv_prog_ac_ct_CC="gcc" 16145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16146 break 2 16147 fi 16148done 16149 done 16150IFS=$as_save_IFS 16151 16152fi 16153fi 16154ac_ct_CC=$ac_cv_prog_ac_ct_CC 16155if test -n "$ac_ct_CC"; then 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 16157$as_echo "$ac_ct_CC" >&6; } 16158else 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16160$as_echo "no" >&6; } 16161fi 16162 16163 if test "x$ac_ct_CC" = x; then 16164 CC="" 16165 else 16166 case $cross_compiling:$ac_tool_warned in 16167yes:) 16168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16170ac_tool_warned=yes ;; 16171esac 16172 CC=$ac_ct_CC 16173 fi 16174else 16175 CC="$ac_cv_prog_CC" 16176fi 16177 16178if test -z "$CC"; then 16179 if test -n "$ac_tool_prefix"; then 16180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 16181set dummy ${ac_tool_prefix}cc; ac_word=$2 16182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16183$as_echo_n "checking for $ac_word... " >&6; } 16184if ${ac_cv_prog_CC+:} false; then : 16185 $as_echo_n "(cached) " >&6 16186else 16187 if test -n "$CC"; then 16188 ac_cv_prog_CC="$CC" # Let the user override the test. 16189else 16190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16191for as_dir in $PATH 16192do 16193 IFS=$as_save_IFS 16194 test -z "$as_dir" && as_dir=. 16195 for ac_exec_ext in '' $ac_executable_extensions; do 16196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16197 ac_cv_prog_CC="${ac_tool_prefix}cc" 16198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16199 break 2 16200 fi 16201done 16202 done 16203IFS=$as_save_IFS 16204 16205fi 16206fi 16207CC=$ac_cv_prog_CC 16208if test -n "$CC"; then 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16210$as_echo "$CC" >&6; } 16211else 16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16213$as_echo "no" >&6; } 16214fi 16215 16216 16217 fi 16218fi 16219if test -z "$CC"; then 16220 # Extract the first word of "cc", so it can be a program name with args. 16221set dummy cc; ac_word=$2 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16223$as_echo_n "checking for $ac_word... " >&6; } 16224if ${ac_cv_prog_CC+:} false; then : 16225 $as_echo_n "(cached) " >&6 16226else 16227 if test -n "$CC"; then 16228 ac_cv_prog_CC="$CC" # Let the user override the test. 16229else 16230 ac_prog_rejected=no 16231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16232for as_dir in $PATH 16233do 16234 IFS=$as_save_IFS 16235 test -z "$as_dir" && as_dir=. 16236 for ac_exec_ext in '' $ac_executable_extensions; do 16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 16239 ac_prog_rejected=yes 16240 continue 16241 fi 16242 ac_cv_prog_CC="cc" 16243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16244 break 2 16245 fi 16246done 16247 done 16248IFS=$as_save_IFS 16249 16250if test $ac_prog_rejected = yes; then 16251 # We found a bogon in the path, so make sure we never use it. 16252 set dummy $ac_cv_prog_CC 16253 shift 16254 if test $# != 0; then 16255 # We chose a different compiler from the bogus one. 16256 # However, it has the same basename, so the bogon will be chosen 16257 # first if we set CC to just the basename; use the full file name. 16258 shift 16259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 16260 fi 16261fi 16262fi 16263fi 16264CC=$ac_cv_prog_CC 16265if test -n "$CC"; then 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16267$as_echo "$CC" >&6; } 16268else 16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16270$as_echo "no" >&6; } 16271fi 16272 16273 16274fi 16275if test -z "$CC"; then 16276 if test -n "$ac_tool_prefix"; then 16277 for ac_prog in cl.exe 16278 do 16279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16280set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16282$as_echo_n "checking for $ac_word... " >&6; } 16283if ${ac_cv_prog_CC+:} false; then : 16284 $as_echo_n "(cached) " >&6 16285else 16286 if test -n "$CC"; then 16287 ac_cv_prog_CC="$CC" # Let the user override the test. 16288else 16289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16290for as_dir in $PATH 16291do 16292 IFS=$as_save_IFS 16293 test -z "$as_dir" && as_dir=. 16294 for ac_exec_ext in '' $ac_executable_extensions; do 16295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 16297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16298 break 2 16299 fi 16300done 16301 done 16302IFS=$as_save_IFS 16303 16304fi 16305fi 16306CC=$ac_cv_prog_CC 16307if test -n "$CC"; then 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16309$as_echo "$CC" >&6; } 16310else 16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16312$as_echo "no" >&6; } 16313fi 16314 16315 16316 test -n "$CC" && break 16317 done 16318fi 16319if test -z "$CC"; then 16320 ac_ct_CC=$CC 16321 for ac_prog in cl.exe 16322do 16323 # Extract the first word of "$ac_prog", so it can be a program name with args. 16324set dummy $ac_prog; ac_word=$2 16325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16326$as_echo_n "checking for $ac_word... " >&6; } 16327if ${ac_cv_prog_ac_ct_CC+:} false; then : 16328 $as_echo_n "(cached) " >&6 16329else 16330 if test -n "$ac_ct_CC"; then 16331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 16332else 16333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16334for as_dir in $PATH 16335do 16336 IFS=$as_save_IFS 16337 test -z "$as_dir" && as_dir=. 16338 for ac_exec_ext in '' $ac_executable_extensions; do 16339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16340 ac_cv_prog_ac_ct_CC="$ac_prog" 16341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16342 break 2 16343 fi 16344done 16345 done 16346IFS=$as_save_IFS 16347 16348fi 16349fi 16350ac_ct_CC=$ac_cv_prog_ac_ct_CC 16351if test -n "$ac_ct_CC"; then 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 16353$as_echo "$ac_ct_CC" >&6; } 16354else 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16356$as_echo "no" >&6; } 16357fi 16358 16359 16360 test -n "$ac_ct_CC" && break 16361done 16362 16363 if test "x$ac_ct_CC" = x; then 16364 CC="" 16365 else 16366 case $cross_compiling:$ac_tool_warned in 16367yes:) 16368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16370ac_tool_warned=yes ;; 16371esac 16372 CC=$ac_ct_CC 16373 fi 16374fi 16375 16376fi 16377 16378 16379test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16381as_fn_error $? "no acceptable C compiler found in \$PATH 16382See \`config.log' for more details" "$LINENO" 5; } 16383 16384# Provide some information about the compiler. 16385$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 16386set X $ac_compile 16387ac_compiler=$2 16388for ac_option in --version -v -V -qversion; do 16389 { { ac_try="$ac_compiler $ac_option >&5" 16390case "(($ac_try" in 16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16392 *) ac_try_echo=$ac_try;; 16393esac 16394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16395$as_echo "$ac_try_echo"; } >&5 16396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 16397 ac_status=$? 16398 if test -s conftest.err; then 16399 sed '10a\ 16400... rest of stderr output deleted ... 16401 10q' conftest.err >conftest.er1 16402 cat conftest.er1 >&5 16403 fi 16404 rm -f conftest.er1 conftest.err 16405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16406 test $ac_status = 0; } 16407done 16408 16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 16410$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 16411if ${ac_cv_c_compiler_gnu+:} false; then : 16412 $as_echo_n "(cached) " >&6 16413else 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416 16417int 16418main () 16419{ 16420#ifndef __GNUC__ 16421 choke me 16422#endif 16423 16424 ; 16425 return 0; 16426} 16427_ACEOF 16428if ac_fn_c_try_compile "$LINENO"; then : 16429 ac_compiler_gnu=yes 16430else 16431 ac_compiler_gnu=no 16432fi 16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16434ac_cv_c_compiler_gnu=$ac_compiler_gnu 16435 16436fi 16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 16438$as_echo "$ac_cv_c_compiler_gnu" >&6; } 16439if test $ac_compiler_gnu = yes; then 16440 GCC=yes 16441else 16442 GCC= 16443fi 16444ac_test_CFLAGS=${CFLAGS+set} 16445ac_save_CFLAGS=$CFLAGS 16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 16447$as_echo_n "checking whether $CC accepts -g... " >&6; } 16448if ${ac_cv_prog_cc_g+:} false; then : 16449 $as_echo_n "(cached) " >&6 16450else 16451 ac_save_c_werror_flag=$ac_c_werror_flag 16452 ac_c_werror_flag=yes 16453 ac_cv_prog_cc_g=no 16454 CFLAGS="-g" 16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16456/* end confdefs.h. */ 16457 16458int 16459main () 16460{ 16461 16462 ; 16463 return 0; 16464} 16465_ACEOF 16466if ac_fn_c_try_compile "$LINENO"; then : 16467 ac_cv_prog_cc_g=yes 16468else 16469 CFLAGS="" 16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16471/* end confdefs.h. */ 16472 16473int 16474main () 16475{ 16476 16477 ; 16478 return 0; 16479} 16480_ACEOF 16481if ac_fn_c_try_compile "$LINENO"; then : 16482 16483else 16484 ac_c_werror_flag=$ac_save_c_werror_flag 16485 CFLAGS="-g" 16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16487/* end confdefs.h. */ 16488 16489int 16490main () 16491{ 16492 16493 ; 16494 return 0; 16495} 16496_ACEOF 16497if ac_fn_c_try_compile "$LINENO"; then : 16498 ac_cv_prog_cc_g=yes 16499fi 16500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16501fi 16502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16503fi 16504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16505 ac_c_werror_flag=$ac_save_c_werror_flag 16506fi 16507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 16508$as_echo "$ac_cv_prog_cc_g" >&6; } 16509if test "$ac_test_CFLAGS" = set; then 16510 CFLAGS=$ac_save_CFLAGS 16511elif test $ac_cv_prog_cc_g = yes; then 16512 if test "$GCC" = yes; then 16513 CFLAGS="-g -O2" 16514 else 16515 CFLAGS="-g" 16516 fi 16517else 16518 if test "$GCC" = yes; then 16519 CFLAGS="-O2" 16520 else 16521 CFLAGS= 16522 fi 16523fi 16524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 16525$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 16526if ${ac_cv_prog_cc_c89+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 ac_cv_prog_cc_c89=no 16530ac_save_CC=$CC 16531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16532/* end confdefs.h. */ 16533#include <stdarg.h> 16534#include <stdio.h> 16535struct stat; 16536/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 16537struct buf { int x; }; 16538FILE * (*rcsopen) (struct buf *, struct stat *, int); 16539static char *e (p, i) 16540 char **p; 16541 int i; 16542{ 16543 return p[i]; 16544} 16545static char *f (char * (*g) (char **, int), char **p, ...) 16546{ 16547 char *s; 16548 va_list v; 16549 va_start (v,p); 16550 s = g (p, va_arg (v,int)); 16551 va_end (v); 16552 return s; 16553} 16554 16555/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 16556 function prototypes and stuff, but not '\xHH' hex character constants. 16557 These don't provoke an error unfortunately, instead are silently treated 16558 as 'x'. The following induces an error, until -std is added to get 16559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 16560 array size at least. It's necessary to write '\x00'==0 to get something 16561 that's true only with -std. */ 16562int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 16563 16564/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 16565 inside strings and character constants. */ 16566#define FOO(x) 'x' 16567int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 16568 16569int test (int i, double x); 16570struct s1 {int (*f) (int a);}; 16571struct s2 {int (*f) (double a);}; 16572int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 16573int argc; 16574char **argv; 16575int 16576main () 16577{ 16578return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 16579 ; 16580 return 0; 16581} 16582_ACEOF 16583for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 16584 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 16585do 16586 CC="$ac_save_CC $ac_arg" 16587 if ac_fn_c_try_compile "$LINENO"; then : 16588 ac_cv_prog_cc_c89=$ac_arg 16589fi 16590rm -f core conftest.err conftest.$ac_objext 16591 test "x$ac_cv_prog_cc_c89" != "xno" && break 16592done 16593rm -f conftest.$ac_ext 16594CC=$ac_save_CC 16595 16596fi 16597# AC_CACHE_VAL 16598case "x$ac_cv_prog_cc_c89" in 16599 x) 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16601$as_echo "none needed" >&6; } ;; 16602 xno) 16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16604$as_echo "unsupported" >&6; } ;; 16605 *) 16606 CC="$CC $ac_cv_prog_cc_c89" 16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 16608$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 16609esac 16610if test "x$ac_cv_prog_cc_c89" != xno; then : 16611 16612fi 16613 16614ac_ext=c 16615ac_cpp='$CPP $CPPFLAGS' 16616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16618ac_compiler_gnu=$ac_cv_c_compiler_gnu 16619 16620ac_ext=c 16621ac_cpp='$CPP $CPPFLAGS' 16622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16624ac_compiler_gnu=$ac_cv_c_compiler_gnu 16625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 16626$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 16627if ${am_cv_prog_cc_c_o+:} false; then : 16628 $as_echo_n "(cached) " >&6 16629else 16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16631/* end confdefs.h. */ 16632 16633int 16634main () 16635{ 16636 16637 ; 16638 return 0; 16639} 16640_ACEOF 16641 # Make sure it works both with $CC and with simple cc. 16642 # Following AC_PROG_CC_C_O, we do the test twice because some 16643 # compilers refuse to overwrite an existing .o file with -o, 16644 # though they will create one. 16645 am_cv_prog_cc_c_o=yes 16646 for am_i in 1 2; do 16647 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 16648 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 16649 ac_status=$? 16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16651 (exit $ac_status); } \ 16652 && test -f conftest2.$ac_objext; then 16653 : OK 16654 else 16655 am_cv_prog_cc_c_o=no 16656 break 16657 fi 16658 done 16659 rm -f core conftest* 16660 unset am_i 16661fi 16662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 16663$as_echo "$am_cv_prog_cc_c_o" >&6; } 16664if test "$am_cv_prog_cc_c_o" != yes; then 16665 # Losing compiler, so override with the script. 16666 # FIXME: It is wrong to rewrite CC. 16667 # But if we don't then we get into trouble of one sort or another. 16668 # A longer-term fix would be to have automake use am__CC in this case, 16669 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 16670 CC="$am_aux_dir/compile $CC" 16671fi 16672ac_ext=c 16673ac_cpp='$CPP $CPPFLAGS' 16674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16676ac_compiler_gnu=$ac_cv_c_compiler_gnu 16677 16678 16679depcc="$CC" am_compiler_list= 16680 16681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 16682$as_echo_n "checking dependency style of $depcc... " >&6; } 16683if ${am_cv_CC_dependencies_compiler_type+:} false; then : 16684 $as_echo_n "(cached) " >&6 16685else 16686 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 16687 # We make a subdir and do the tests there. Otherwise we can end up 16688 # making bogus files that we don't know about and never remove. For 16689 # instance it was reported that on HP-UX the gcc test will end up 16690 # making a dummy file named 'D' -- because '-MD' means "put the output 16691 # in D". 16692 rm -rf conftest.dir 16693 mkdir conftest.dir 16694 # Copy depcomp to subdir because otherwise we won't find it if we're 16695 # using a relative directory. 16696 cp "$am_depcomp" conftest.dir 16697 cd conftest.dir 16698 # We will build objects and dependencies in a subdirectory because 16699 # it helps to detect inapplicable dependency modes. For instance 16700 # both Tru64's cc and ICC support -MD to output dependencies as a 16701 # side effect of compilation, but ICC will put the dependencies in 16702 # the current directory while Tru64 will put them in the object 16703 # directory. 16704 mkdir sub 16705 16706 am_cv_CC_dependencies_compiler_type=none 16707 if test "$am_compiler_list" = ""; then 16708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 16709 fi 16710 am__universal=false 16711 case " $depcc " in #( 16712 *\ -arch\ *\ -arch\ *) am__universal=true ;; 16713 esac 16714 16715 for depmode in $am_compiler_list; do 16716 # Setup a source with many dependencies, because some compilers 16717 # like to wrap large dependency lists on column 80 (with \), and 16718 # we should not choose a depcomp mode which is confused by this. 16719 # 16720 # We need to recreate these files for each test, as the compiler may 16721 # overwrite some of them when testing with obscure command lines. 16722 # This happens at least with the AIX C compiler. 16723 : > sub/conftest.c 16724 for i in 1 2 3 4 5 6; do 16725 echo '#include "conftst'$i'.h"' >> sub/conftest.c 16726 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 16727 # Solaris 10 /bin/sh. 16728 echo '/* dummy */' > sub/conftst$i.h 16729 done 16730 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 16731 16732 # We check with '-c' and '-o' for the sake of the "dashmstdout" 16733 # mode. It turns out that the SunPro C++ compiler does not properly 16734 # handle '-M -o', and we need to detect this. Also, some Intel 16735 # versions had trouble with output in subdirs. 16736 am__obj=sub/conftest.${OBJEXT-o} 16737 am__minus_obj="-o $am__obj" 16738 case $depmode in 16739 gcc) 16740 # This depmode causes a compiler race in universal mode. 16741 test "$am__universal" = false || continue 16742 ;; 16743 nosideeffect) 16744 # After this tag, mechanisms are not by side-effect, so they'll 16745 # only be used when explicitly requested. 16746 if test "x$enable_dependency_tracking" = xyes; then 16747 continue 16748 else 16749 break 16750 fi 16751 ;; 16752 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 16753 # This compiler won't grok '-c -o', but also, the minuso test has 16754 # not run yet. These depmodes are late enough in the game, and 16755 # so weak that their functioning should not be impacted. 16756 am__obj=conftest.${OBJEXT-o} 16757 am__minus_obj= 16758 ;; 16759 none) break ;; 16760 esac 16761 if depmode=$depmode \ 16762 source=sub/conftest.c object=$am__obj \ 16763 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 16764 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 16765 >/dev/null 2>conftest.err && 16766 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 16767 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 16768 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 16769 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 16770 # icc doesn't choke on unknown options, it will just issue warnings 16771 # or remarks (even with -Werror). So we grep stderr for any message 16772 # that says an option was ignored or not supported. 16773 # When given -MP, icc 7.0 and 7.1 complain thusly: 16774 # icc: Command line warning: ignoring option '-M'; no argument required 16775 # The diagnosis changed in icc 8.0: 16776 # icc: Command line remark: option '-MP' not supported 16777 if (grep 'ignoring option' conftest.err || 16778 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 16779 am_cv_CC_dependencies_compiler_type=$depmode 16780 break 16781 fi 16782 fi 16783 done 16784 16785 cd .. 16786 rm -rf conftest.dir 16787else 16788 am_cv_CC_dependencies_compiler_type=none 16789fi 16790 16791fi 16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 16793$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 16794CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 16795 16796 if 16797 test "x$enable_dependency_tracking" != xno \ 16798 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 16799 am__fastdepCC_TRUE= 16800 am__fastdepCC_FALSE='#' 16801else 16802 am__fastdepCC_TRUE='#' 16803 am__fastdepCC_FALSE= 16804fi 16805 16806 16807 16808# Check whether --enable-largefile was given. 16809if test "${enable_largefile+set}" = set; then : 16810 enableval=$enable_largefile; 16811fi 16812 16813if test "$enable_largefile" != no; then 16814 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16816$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 16817if ${ac_cv_sys_largefile_CC+:} false; then : 16818 $as_echo_n "(cached) " >&6 16819else 16820 ac_cv_sys_largefile_CC=no 16821 if test "$GCC" != yes; then 16822 ac_save_CC=$CC 16823 while :; do 16824 # IRIX 6.2 and later do not support large files by default, 16825 # so use the C compiler's -n32 option if that helps. 16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16827/* end confdefs.h. */ 16828#include <sys/types.h> 16829 /* Check that off_t can represent 2**63 - 1 correctly. 16830 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16831 since some C++ compilers masquerading as C compilers 16832 incorrectly reject 9223372036854775807. */ 16833#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16835 && LARGE_OFF_T % 2147483647 == 1) 16836 ? 1 : -1]; 16837int 16838main () 16839{ 16840 16841 ; 16842 return 0; 16843} 16844_ACEOF 16845 if ac_fn_c_try_compile "$LINENO"; then : 16846 break 16847fi 16848rm -f core conftest.err conftest.$ac_objext 16849 CC="$CC -n32" 16850 if ac_fn_c_try_compile "$LINENO"; then : 16851 ac_cv_sys_largefile_CC=' -n32'; break 16852fi 16853rm -f core conftest.err conftest.$ac_objext 16854 break 16855 done 16856 CC=$ac_save_CC 16857 rm -f conftest.$ac_ext 16858 fi 16859fi 16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16861$as_echo "$ac_cv_sys_largefile_CC" >&6; } 16862 if test "$ac_cv_sys_largefile_CC" != no; then 16863 CC=$CC$ac_cv_sys_largefile_CC 16864 fi 16865 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16867$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 16868if ${ac_cv_sys_file_offset_bits+:} false; then : 16869 $as_echo_n "(cached) " >&6 16870else 16871 while :; do 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873/* end confdefs.h. */ 16874#include <sys/types.h> 16875 /* Check that off_t can represent 2**63 - 1 correctly. 16876 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16877 since some C++ compilers masquerading as C compilers 16878 incorrectly reject 9223372036854775807. */ 16879#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16881 && LARGE_OFF_T % 2147483647 == 1) 16882 ? 1 : -1]; 16883int 16884main () 16885{ 16886 16887 ; 16888 return 0; 16889} 16890_ACEOF 16891if ac_fn_c_try_compile "$LINENO"; then : 16892 ac_cv_sys_file_offset_bits=no; break 16893fi 16894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16896/* end confdefs.h. */ 16897#define _FILE_OFFSET_BITS 64 16898#include <sys/types.h> 16899 /* Check that off_t can represent 2**63 - 1 correctly. 16900 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16901 since some C++ compilers masquerading as C compilers 16902 incorrectly reject 9223372036854775807. */ 16903#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16905 && LARGE_OFF_T % 2147483647 == 1) 16906 ? 1 : -1]; 16907int 16908main () 16909{ 16910 16911 ; 16912 return 0; 16913} 16914_ACEOF 16915if ac_fn_c_try_compile "$LINENO"; then : 16916 ac_cv_sys_file_offset_bits=64; break 16917fi 16918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16919 ac_cv_sys_file_offset_bits=unknown 16920 break 16921done 16922fi 16923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 16924$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 16925case $ac_cv_sys_file_offset_bits in #( 16926 no | unknown) ;; 16927 *) 16928cat >>confdefs.h <<_ACEOF 16929#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 16930_ACEOF 16931;; 16932esac 16933rm -rf conftest* 16934 if test $ac_cv_sys_file_offset_bits = unknown; then 16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 16936$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 16937if ${ac_cv_sys_large_files+:} false; then : 16938 $as_echo_n "(cached) " >&6 16939else 16940 while :; do 16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16942/* end confdefs.h. */ 16943#include <sys/types.h> 16944 /* Check that off_t can represent 2**63 - 1 correctly. 16945 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16946 since some C++ compilers masquerading as C compilers 16947 incorrectly reject 9223372036854775807. */ 16948#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16950 && LARGE_OFF_T % 2147483647 == 1) 16951 ? 1 : -1]; 16952int 16953main () 16954{ 16955 16956 ; 16957 return 0; 16958} 16959_ACEOF 16960if ac_fn_c_try_compile "$LINENO"; then : 16961 ac_cv_sys_large_files=no; break 16962fi 16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16965/* end confdefs.h. */ 16966#define _LARGE_FILES 1 16967#include <sys/types.h> 16968 /* Check that off_t can represent 2**63 - 1 correctly. 16969 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16970 since some C++ compilers masquerading as C compilers 16971 incorrectly reject 9223372036854775807. */ 16972#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16974 && LARGE_OFF_T % 2147483647 == 1) 16975 ? 1 : -1]; 16976int 16977main () 16978{ 16979 16980 ; 16981 return 0; 16982} 16983_ACEOF 16984if ac_fn_c_try_compile "$LINENO"; then : 16985 ac_cv_sys_large_files=1; break 16986fi 16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16988 ac_cv_sys_large_files=unknown 16989 break 16990done 16991fi 16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 16993$as_echo "$ac_cv_sys_large_files" >&6; } 16994case $ac_cv_sys_large_files in #( 16995 no | unknown) ;; 16996 *) 16997cat >>confdefs.h <<_ACEOF 16998#define _LARGE_FILES $ac_cv_sys_large_files 16999_ACEOF 17000;; 17001esac 17002rm -rf conftest* 17003 fi 17004 17005 17006fi 17007 17008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17009/* end confdefs.h. */ 17010int func(void) __attribute__((unused)); 17011int 17012main () 17013{ 17014int x __attribute__ ((unused)); 17015 ; 17016 return 0; 17017} 17018_ACEOF 17019if ac_fn_c_try_compile "$LINENO"; then : 17020 17021else 17022 17023 $as_echo "#define __attribute__(x) /**/" >>confdefs.h 17024 17025 17026fi 17027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17028 17029 17030 17031DEBUG="-g" 17032if test -z "$GCC"; then 17033 XIPH_CPPFLAGS="-D_REENTRANT" 17034 PROFILE="-g -p" 17035else 17036 XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char" 17037 PROFILE="-pg -g" 17038 17039$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 17040 17041fi 17042 if test x$host_os = xmingw32; then 17043 WIN32_TRUE= 17044 WIN32_FALSE='#' 17045else 17046 WIN32_TRUE='#' 17047 WIN32_FALSE= 17048fi 17049 17050if test x$host_os = xmingw32; then 17051 17052$as_echo "#define _POSIX 1" >>confdefs.h 17053 17054fi 17055 17056 17057if test -n "$ICY_CHARSET"; then 17058 17059cat >>confdefs.h <<_ACEOF 17060#define ICY_DEFAULT_CHARSET "$ICY_CHARSET" 17061_ACEOF 17062 17063fi 17064 17065 17066 17067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17068$as_echo_n "checking for ANSI C header files... " >&6; } 17069if ${ac_cv_header_stdc+:} false; then : 17070 $as_echo_n "(cached) " >&6 17071else 17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17073/* end confdefs.h. */ 17074#include <stdlib.h> 17075#include <stdarg.h> 17076#include <string.h> 17077#include <float.h> 17078 17079int 17080main () 17081{ 17082 17083 ; 17084 return 0; 17085} 17086_ACEOF 17087if ac_fn_c_try_compile "$LINENO"; then : 17088 ac_cv_header_stdc=yes 17089else 17090 ac_cv_header_stdc=no 17091fi 17092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17093 17094if test $ac_cv_header_stdc = yes; then 17095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17097/* end confdefs.h. */ 17098#include <string.h> 17099 17100_ACEOF 17101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17102 $EGREP "memchr" >/dev/null 2>&1; then : 17103 17104else 17105 ac_cv_header_stdc=no 17106fi 17107rm -f conftest* 17108 17109fi 17110 17111if test $ac_cv_header_stdc = yes; then 17112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17114/* end confdefs.h. */ 17115#include <stdlib.h> 17116 17117_ACEOF 17118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17119 $EGREP "free" >/dev/null 2>&1; then : 17120 17121else 17122 ac_cv_header_stdc=no 17123fi 17124rm -f conftest* 17125 17126fi 17127 17128if test $ac_cv_header_stdc = yes; then 17129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17130 if test "$cross_compiling" = yes; then : 17131 : 17132else 17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17134/* end confdefs.h. */ 17135#include <ctype.h> 17136#include <stdlib.h> 17137#if ((' ' & 0x0FF) == 0x020) 17138# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17139# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17140#else 17141# define ISLOWER(c) \ 17142 (('a' <= (c) && (c) <= 'i') \ 17143 || ('j' <= (c) && (c) <= 'r') \ 17144 || ('s' <= (c) && (c) <= 'z')) 17145# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17146#endif 17147 17148#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17149int 17150main () 17151{ 17152 int i; 17153 for (i = 0; i < 256; i++) 17154 if (XOR (islower (i), ISLOWER (i)) 17155 || toupper (i) != TOUPPER (i)) 17156 return 2; 17157 return 0; 17158} 17159_ACEOF 17160if ac_fn_c_try_run "$LINENO"; then : 17161 17162else 17163 ac_cv_header_stdc=no 17164fi 17165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17166 conftest.$ac_objext conftest.beam conftest.$ac_ext 17167fi 17168 17169fi 17170fi 17171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17172$as_echo "$ac_cv_header_stdc" >&6; } 17173if test $ac_cv_header_stdc = yes; then 17174 17175$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17176 17177fi 17178 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17180$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17181if ${ac_cv_header_time+:} false; then : 17182 $as_echo_n "(cached) " >&6 17183else 17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185/* end confdefs.h. */ 17186#include <sys/types.h> 17187#include <sys/time.h> 17188#include <time.h> 17189 17190int 17191main () 17192{ 17193if ((struct tm *) 0) 17194return 0; 17195 ; 17196 return 0; 17197} 17198_ACEOF 17199if ac_fn_c_try_compile "$LINENO"; then : 17200 ac_cv_header_time=yes 17201else 17202 ac_cv_header_time=no 17203fi 17204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17205fi 17206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17207$as_echo "$ac_cv_header_time" >&6; } 17208if test $ac_cv_header_time = yes; then 17209 17210$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17211 17212fi 17213 17214 17215for ac_header in fcntl.h fnmatch.h sys/timeb.h sys/wait.h alloca.h malloc.h glob.h winsock2.h windows.h stdbool.h signal.h 17216do : 17217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17218ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17220 cat >>confdefs.h <<_ACEOF 17221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17222_ACEOF 17223 17224fi 17225 17226done 17227 17228for ac_header in pwd.h 17229do : 17230 ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 17231if test "x$ac_cv_header_pwd_h" = xyes; then : 17232 cat >>confdefs.h <<_ACEOF 17233#define HAVE_PWD_H 1 17234_ACEOF 17235 17236$as_echo "#define CHUID 1" >>confdefs.h 17237 17238fi 17239 17240done 17241 17242 17243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5 17244$as_echo_n "checking for __func__... " >&6; } 17245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247 17248int 17249main () 17250{ 17251const char *x = __func__; 17252 ; 17253 return 0; 17254} 17255_ACEOF 17256if ac_fn_c_try_compile "$LINENO"; then : 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17258$as_echo "yes" >&6; } 17259else 17260 17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17262/* end confdefs.h. */ 17263 17264int 17265main () 17266{ 17267const char *x = __FUNCTION__; 17268 ; 17269 return 0; 17270} 17271_ACEOF 17272if ac_fn_c_try_compile "$LINENO"; then : 17273 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h 17274 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using __FUNCTION__" >&5 17276$as_echo "Using __FUNCTION__" >&6; } 17277else 17278 $as_echo "#define __func__ \"__FILE__\"" >>confdefs.h 17279 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using __FILE__" >&5 17281$as_echo "using __FILE__" >&6; } 17282 17283fi 17284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17285 17286fi 17287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17288 17289 17290ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17291if test "x$ac_cv_type_off_t" = xyes; then : 17292 17293else 17294 17295cat >>confdefs.h <<_ACEOF 17296#define off_t long int 17297_ACEOF 17298 17299fi 17300 17301ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" 17302if test "x$ac_cv_type_struct_timespec" = xyes; then : 17303 17304cat >>confdefs.h <<_ACEOF 17305#define HAVE_STRUCT_TIMESPEC 1 17306_ACEOF 17307 17308 17309fi 17310 17311 17312for ac_func in localtime_r gmtime_r FindFirstFile 17313do : 17314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17315ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17316if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17317 cat >>confdefs.h <<_ACEOF 17318#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17319_ACEOF 17320 17321fi 17322done 17323 17324for ac_func in fseeko fnmatch chroot fork poll atoll strtoll strsep strcasecmp strncasecmp 17325do : 17326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17327ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17328if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17329 cat >>confdefs.h <<_ACEOF 17330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17331_ACEOF 17332 17333fi 17334done 17335 17336for ac_func in getrlimit gettimeofday ftime fsync glob pread pipe2 setresuid setresgid 17337do : 17338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17339ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17340if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17341 cat >>confdefs.h <<_ACEOF 17342#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17343_ACEOF 17344 17345fi 17346done 17347 17348ac_fn_c_check_type "$LINENO" "struct signalfd_siginfo" "ac_cv_type_struct_signalfd_siginfo" "#include <sys/signalfd.h> 17349" 17350if test "x$ac_cv_type_struct_signalfd_siginfo" = xyes; then : 17351 17352cat >>confdefs.h <<_ACEOF 17353#define HAVE_STRUCT_SIGNALFD_SIGINFO 1 17354_ACEOF 17355 17356 17357$as_echo "#define HAVE_SIGNALFD 1 " >>confdefs.h 17358 17359fi 17360 17361ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " 17362#include <inttypes.h> 17363#include <stdint.h> 17364 17365" 17366if test "x$ac_cv_type_uint32_t" = xyes; then : 17367 17368cat >>confdefs.h <<_ACEOF 17369#define HAVE_UINT32_T 1 17370_ACEOF 17371 17372 17373fi 17374 17375as_ac_Type=`$as_echo "ac_cv_type_SOCKET*" | $as_tr_sh` 17376ac_fn_c_check_type "$LINENO" "SOCKET*" "$as_ac_Type" " 17377#include <winsock2.h> 17378 17379" 17380if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 17381 17382cat >>confdefs.h <<_ACEOF 17383#define HAVE_SOCKETP 1 17384_ACEOF 17385 17386 17387$as_echo "#define FD_t SOCKET" >>confdefs.h 17388 17389else 17390 17391$as_echo "#define FD_t int" >>confdefs.h 17392 17393fi 17394 17395if test "x$ac_cv_func_fnmatch" != "xyes" 17396then 17397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fnmatch in -lfnmatch" >&5 17398$as_echo_n "checking for fnmatch in -lfnmatch... " >&6; } 17399if ${ac_cv_lib_fnmatch_fnmatch+:} false; then : 17400 $as_echo_n "(cached) " >&6 17401else 17402 ac_check_lib_save_LIBS=$LIBS 17403LIBS="-lfnmatch $LIBS" 17404cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405/* end confdefs.h. */ 17406 17407/* Override any GCC internal prototype to avoid an error. 17408 Use char because int might match the return type of a GCC 17409 builtin and then its argument prototype would still apply. */ 17410#ifdef __cplusplus 17411extern "C" 17412#endif 17413char fnmatch (); 17414int 17415main () 17416{ 17417return fnmatch (); 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422if ac_fn_c_try_link "$LINENO"; then : 17423 ac_cv_lib_fnmatch_fnmatch=yes 17424else 17425 ac_cv_lib_fnmatch_fnmatch=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext \ 17428 conftest$ac_exeext conftest.$ac_ext 17429LIBS=$ac_check_lib_save_LIBS 17430fi 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fnmatch_fnmatch" >&5 17432$as_echo "$ac_cv_lib_fnmatch_fnmatch" >&6; } 17433if test "x$ac_cv_lib_fnmatch_fnmatch" = xyes; then : 17434 17435for arg in "-lfnmatch" 17436do 17437 if { cat <<EOF 17438 $XIPH_LIBS x 17439EOF 17440} | $FGREP -v -e " $arg " > /dev/null 17441 then 17442 XIPH_LIBS="$XIPH_LIBS $arg" 17443 fi 17444done 17445 17446else 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fnmatch in -liberty" >&5 17448$as_echo_n "checking for fnmatch in -liberty... " >&6; } 17449if ${ac_cv_lib_iberty_fnmatch+:} false; then : 17450 $as_echo_n "(cached) " >&6 17451else 17452 ac_check_lib_save_LIBS=$LIBS 17453LIBS="-liberty $LIBS" 17454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17455/* end confdefs.h. */ 17456 17457/* Override any GCC internal prototype to avoid an error. 17458 Use char because int might match the return type of a GCC 17459 builtin and then its argument prototype would still apply. */ 17460#ifdef __cplusplus 17461extern "C" 17462#endif 17463char fnmatch (); 17464int 17465main () 17466{ 17467return fnmatch (); 17468 ; 17469 return 0; 17470} 17471_ACEOF 17472if ac_fn_c_try_link "$LINENO"; then : 17473 ac_cv_lib_iberty_fnmatch=yes 17474else 17475 ac_cv_lib_iberty_fnmatch=no 17476fi 17477rm -f core conftest.err conftest.$ac_objext \ 17478 conftest$ac_exeext conftest.$ac_ext 17479LIBS=$ac_check_lib_save_LIBS 17480fi 17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_fnmatch" >&5 17482$as_echo "$ac_cv_lib_iberty_fnmatch" >&6; } 17483if test "x$ac_cv_lib_iberty_fnmatch" = xyes; then : 17484 17485for arg in "-liberty" 17486do 17487 if { cat <<EOF 17488 $XIPH_LIBS x 17489EOF 17490} | $FGREP -v -e " $arg " > /dev/null 17491 then 17492 XIPH_LIBS="$XIPH_LIBS $arg" 17493 fi 17494done 17495 17496else 17497 ICECAST_OPTIONAL="$ICECAST_OPTIONAL fnmatch.o" 17498fi 17499 17500fi 17501 17502fi 17503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 17504$as_echo_n "checking for library containing nanosleep... " >&6; } 17505if ${ac_cv_search_nanosleep+:} false; then : 17506 $as_echo_n "(cached) " >&6 17507else 17508 ac_func_search_save_LIBS=$LIBS 17509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17510/* end confdefs.h. */ 17511 17512/* Override any GCC internal prototype to avoid an error. 17513 Use char because int might match the return type of a GCC 17514 builtin and then its argument prototype would still apply. */ 17515#ifdef __cplusplus 17516extern "C" 17517#endif 17518char nanosleep (); 17519int 17520main () 17521{ 17522return nanosleep (); 17523 ; 17524 return 0; 17525} 17526_ACEOF 17527for ac_lib in '' rt posix4; do 17528 if test -z "$ac_lib"; then 17529 ac_res="none required" 17530 else 17531 ac_res=-l$ac_lib 17532 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17533 fi 17534 if ac_fn_c_try_link "$LINENO"; then : 17535 ac_cv_search_nanosleep=$ac_res 17536fi 17537rm -f core conftest.err conftest.$ac_objext \ 17538 conftest$ac_exeext 17539 if ${ac_cv_search_nanosleep+:} false; then : 17540 break 17541fi 17542done 17543if ${ac_cv_search_nanosleep+:} false; then : 17544 17545else 17546 ac_cv_search_nanosleep=no 17547fi 17548rm conftest.$ac_ext 17549LIBS=$ac_func_search_save_LIBS 17550fi 17551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 17552$as_echo "$ac_cv_search_nanosleep" >&6; } 17553ac_res=$ac_cv_search_nanosleep 17554if test "$ac_res" != no; then : 17555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17556 17557$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 17558 17559fi 17560 17561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17562$as_echo_n "checking for library containing clock_gettime... " >&6; } 17563if ${ac_cv_search_clock_gettime+:} false; then : 17564 $as_echo_n "(cached) " >&6 17565else 17566 ac_func_search_save_LIBS=$LIBS 17567cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17568/* end confdefs.h. */ 17569 17570/* Override any GCC internal prototype to avoid an error. 17571 Use char because int might match the return type of a GCC 17572 builtin and then its argument prototype would still apply. */ 17573#ifdef __cplusplus 17574extern "C" 17575#endif 17576char clock_gettime (); 17577int 17578main () 17579{ 17580return clock_gettime (); 17581 ; 17582 return 0; 17583} 17584_ACEOF 17585for ac_lib in '' rt posix4; do 17586 if test -z "$ac_lib"; then 17587 ac_res="none required" 17588 else 17589 ac_res=-l$ac_lib 17590 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17591 fi 17592 if ac_fn_c_try_link "$LINENO"; then : 17593 ac_cv_search_clock_gettime=$ac_res 17594fi 17595rm -f core conftest.err conftest.$ac_objext \ 17596 conftest$ac_exeext 17597 if ${ac_cv_search_clock_gettime+:} false; then : 17598 break 17599fi 17600done 17601if ${ac_cv_search_clock_gettime+:} false; then : 17602 17603else 17604 ac_cv_search_clock_gettime=no 17605fi 17606rm conftest.$ac_ext 17607LIBS=$ac_func_search_save_LIBS 17608fi 17609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17610$as_echo "$ac_cv_search_clock_gettime" >&6; } 17611ac_res=$ac_cv_search_clock_gettime 17612if test "$ac_res" != no; then : 17613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17614 17615$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 17616 17617fi 17618 17619for ac_header in sys/socket.h 17620do : 17621 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 17622if test "x$ac_cv_header_sys_socket_h" = xyes; then : 17623 cat >>confdefs.h <<_ACEOF 17624#define HAVE_SYS_SOCKET_H 1 17625_ACEOF 17626 17627fi 17628 17629done 17630 17631ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#if HAVE_SYS_TYPES_H 17632# include <sys/types.h> 17633#endif 17634#if HAVE_SYS_SOCKET_H 17635# include <sys/socket.h> 17636#endif 17637 17638" 17639if test "x$ac_cv_type_socklen_t" = xyes; then : 17640 17641cat >>confdefs.h <<_ACEOF 17642#define HAVE_SOCKLEN_T 1 17643_ACEOF 17644 17645 17646fi 17647 17648 17649 17650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 17651$as_echo_n "checking for va_copy... " >&6; } 17652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17653/* end confdefs.h. */ 17654#include <stdarg.h> 17655int 17656main () 17657{ 17658va_list ap1, ap2; va_copy(ap1, ap2); 17659 ; 17660 return 0; 17661} 17662_ACEOF 17663if ac_fn_c_try_link "$LINENO"; then : 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5 17665$as_echo "va_copy" >&6; } 17666else 17667 17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17669/* end confdefs.h. */ 17670#include <stdarg.h> 17671int 17672main () 17673{ 17674va_list ap1, ap2; __va_copy(ap1, ap2); 17675 ; 17676 return 0; 17677} 17678_ACEOF 17679if ac_fn_c_try_link "$LINENO"; then : 17680 $as_echo "#define va_copy __va_copy" >>confdefs.h 17681 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5 17683$as_echo "__va_copy" >&6; } 17684else 17685 $as_echo "#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))" >>confdefs.h 17686 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5 17688$as_echo "memcpy" >&6; } 17689 17690fi 17691rm -f core conftest.err conftest.$ac_objext \ 17692 conftest$ac_exeext conftest.$ac_ext 17693 17694fi 17695rm -f core conftest.err conftest.$ac_objext \ 17696 conftest$ac_exeext conftest.$ac_ext 17697 17698 17699 17700for ac_header in sys/select.h sys/uio.h netinet/in.h netinet/tcp.h arpa/inet.h netdb.h 17701do : 17702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17703ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17704if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17705 cat >>confdefs.h <<_ACEOF 17706#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17707_ACEOF 17708 17709fi 17710 17711done 17712 17713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h inclusion" >&5 17714$as_echo_n "checking for winsock2.h inclusion... " >&6; } 17715if test "x$host_os" = "xmingw32"; then 17716 17717$as_echo "#define HAVE_WINSOCK2_H 1" >>confdefs.h 17718 17719 17720$as_echo "#define _WIN32_WINNT 0x0501" >>confdefs.h 17721 17722 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h 17723 17724 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 17725 17726 ac_cv_search_getnameinfo='none required' 17727 ac_cv_func_getaddrinfo=yes 17728 XIPH_LIBS="$XIPH_LIBS -lws2_32 -lwsock32" 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17730$as_echo "yes" >&6; } 17731else 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17733$as_echo "no" >&6; } 17734fi 17735 17736# These tests are ordered based on solaris 8 tests 17737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sethostent" >&5 17738$as_echo_n "checking for library containing sethostent... " >&6; } 17739if ${ac_cv_search_sethostent+:} false; then : 17740 $as_echo_n "(cached) " >&6 17741else 17742 ac_func_search_save_LIBS=$LIBS 17743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17744/* end confdefs.h. */ 17745 17746/* Override any GCC internal prototype to avoid an error. 17747 Use char because int might match the return type of a GCC 17748 builtin and then its argument prototype would still apply. */ 17749#ifdef __cplusplus 17750extern "C" 17751#endif 17752char sethostent (); 17753int 17754main () 17755{ 17756return sethostent (); 17757 ; 17758 return 0; 17759} 17760_ACEOF 17761for ac_lib in '' nsl; do 17762 if test -z "$ac_lib"; then 17763 ac_res="none required" 17764 else 17765 ac_res=-l$ac_lib 17766 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17767 fi 17768 if ac_fn_c_try_link "$LINENO"; then : 17769 ac_cv_search_sethostent=$ac_res 17770fi 17771rm -f core conftest.err conftest.$ac_objext \ 17772 conftest$ac_exeext 17773 if ${ac_cv_search_sethostent+:} false; then : 17774 break 17775fi 17776done 17777if ${ac_cv_search_sethostent+:} false; then : 17778 17779else 17780 ac_cv_search_sethostent=no 17781fi 17782rm conftest.$ac_ext 17783LIBS=$ac_func_search_save_LIBS 17784fi 17785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sethostent" >&5 17786$as_echo "$ac_cv_search_sethostent" >&6; } 17787ac_res=$ac_cv_search_sethostent 17788if test "$ac_res" != no; then : 17789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17790 17791$as_echo "#define HAVE_SETHOSTENT 1" >>confdefs.h 17792 17793fi 17794 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 17796$as_echo_n "checking for library containing getnameinfo... " >&6; } 17797if ${ac_cv_search_getnameinfo+:} false; then : 17798 $as_echo_n "(cached) " >&6 17799else 17800 ac_func_search_save_LIBS=$LIBS 17801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17802/* end confdefs.h. */ 17803 17804/* Override any GCC internal prototype to avoid an error. 17805 Use char because int might match the return type of a GCC 17806 builtin and then its argument prototype would still apply. */ 17807#ifdef __cplusplus 17808extern "C" 17809#endif 17810char getnameinfo (); 17811int 17812main () 17813{ 17814return getnameinfo (); 17815 ; 17816 return 0; 17817} 17818_ACEOF 17819for ac_lib in '' socket; do 17820 if test -z "$ac_lib"; then 17821 ac_res="none required" 17822 else 17823 ac_res=-l$ac_lib 17824 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17825 fi 17826 if ac_fn_c_try_link "$LINENO"; then : 17827 ac_cv_search_getnameinfo=$ac_res 17828fi 17829rm -f core conftest.err conftest.$ac_objext \ 17830 conftest$ac_exeext 17831 if ${ac_cv_search_getnameinfo+:} false; then : 17832 break 17833fi 17834done 17835if ${ac_cv_search_getnameinfo+:} false; then : 17836 17837else 17838 ac_cv_search_getnameinfo=no 17839fi 17840rm conftest.$ac_ext 17841LIBS=$ac_func_search_save_LIBS 17842fi 17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 17844$as_echo "$ac_cv_search_getnameinfo" >&6; } 17845ac_res=$ac_cv_search_getnameinfo 17846if test "$ac_res" != no; then : 17847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17848 17849$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h 17850 17851 17852fi 17853 17854for ac_func in endhostent getaddrinfo inet_aton writev 17855do : 17856 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17857ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17858if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17859 cat >>confdefs.h <<_ACEOF 17860#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17861_ACEOF 17862 17863fi 17864done 17865 17866 17867# Irix defines INET_PTON but not sockaddr_storage! 17868ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 17869#include <sys/socket.h> 17870" 17871if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 17872 17873cat >>confdefs.h <<_ACEOF 17874#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 17875_ACEOF 17876 17877for ac_func in inet_pton 17878do : 17879 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 17880if test "x$ac_cv_func_inet_pton" = xyes; then : 17881 cat >>confdefs.h <<_ACEOF 17882#define HAVE_INET_PTON 1 17883_ACEOF 17884 17885fi 17886done 17887 17888fi 17889 17890 17891 17892 17893 17894 17895# Check whether --with-xslt-config was given. 17896if test "${with_xslt_config+set}" = set; then : 17897 withval=$with_xslt_config; XSLTCONFIG="$withval" 17898else 17899 for ac_prog in xslt-config 17900do 17901 # Extract the first word of "$ac_prog", so it can be a program name with args. 17902set dummy $ac_prog; ac_word=$2 17903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17904$as_echo_n "checking for $ac_word... " >&6; } 17905if ${ac_cv_path_XSLTCONFIG+:} false; then : 17906 $as_echo_n "(cached) " >&6 17907else 17908 case $XSLTCONFIG in 17909 [\\/]* | ?:[\\/]*) 17910 ac_cv_path_XSLTCONFIG="$XSLTCONFIG" # Let the user override the test with a path. 17911 ;; 17912 *) 17913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17914for as_dir in $PATH 17915do 17916 IFS=$as_save_IFS 17917 test -z "$as_dir" && as_dir=. 17918 for ac_exec_ext in '' $ac_executable_extensions; do 17919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17920 ac_cv_path_XSLTCONFIG="$as_dir/$ac_word$ac_exec_ext" 17921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17922 break 2 17923 fi 17924done 17925 done 17926IFS=$as_save_IFS 17927 17928 ;; 17929esac 17930fi 17931XSLTCONFIG=$ac_cv_path_XSLTCONFIG 17932if test -n "$XSLTCONFIG"; then 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTCONFIG" >&5 17934$as_echo "$XSLTCONFIG" >&6; } 17935else 17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17937$as_echo "no" >&6; } 17938fi 17939 17940 17941 test -n "$XSLTCONFIG" && break 17942done 17943test -n "$XSLTCONFIG" || XSLTCONFIG="""" 17944 17945 17946fi 17947 17948if test "x$XSLTCONFIG" = "x"; then 17949 as_fn_error $? "XSLT configuration could not be found" "$LINENO" 5 17950fi 17951if ! test -x "$XSLTCONFIG"; then 17952 as_fn_error $? "$XSLTCONFIG cannot be executed" "$LINENO" 5 17953fi 17954XSLT_LIBS="$($XSLTCONFIG --libs)" 17955XSLT_CFLAGS="$($XSLTCONFIG --cflags)" 17956ac_xslt_save_LIBS="$LIBS" 17957ac_xslt_save_CFLAGS="$CFLAGS" 17958LIBS="$XSLT_LIBS $LIBS" 17959CFLAGS="$CFLAGS $XSLT_CFLAGS" 17960for ac_func in xsltSaveResultToString 17961do : 17962 ac_fn_c_check_func "$LINENO" "xsltSaveResultToString" "ac_cv_func_xsltSaveResultToString" 17963if test "x$ac_cv_func_xsltSaveResultToString" = xyes; then : 17964 cat >>confdefs.h <<_ACEOF 17965#define HAVE_XSLTSAVERESULTTOSTRING 1 17966_ACEOF 17967 17968fi 17969done 17970 17971CFLAGS="$ac_xslt_save_CFLAGS" 17972LIBS="$ac_xslt_save_LIBS" 17973 17974 17975for arg in $XSLT_CFLAGS 17976do 17977 if { cat <<EOF 17978 $XIPH_CPPFLAGS x 17979EOF 17980} | $FGREP -v -e " $arg " > /dev/null 17981 then 17982 XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg" 17983 fi 17984done 17985 17986 17987xt_compare="$XIPH_LIBS" 17988xt_filtered="" 17989for arg in $XSLT_LIBS 17990do 17991 if { cat <<EOF 17992 $xt_compare x 17993EOF 17994} | $FGREP -v -e " $arg " > /dev/null 17995 then 17996 xt_compare="$arg $xt_compare" 17997 xt_filtered="$xt_filtered $arg" 17998 fi 17999done 18000XIPH_LIBS="$xt_filtered $XIPH_LIBS" 18001 18002 18003 18004 18005# Check whether --with-ogg was given. 18006if test "${with_ogg+set}" = set; then : 18007 withval=$with_ogg; ogg_prefix="$withval" 18008else 18009 ogg_prefix="$OGG_PREFIX" 18010 18011fi 18012 18013if test "x$ogg_prefix" = "x" -o "x$ogg_prefix" = "xyes"; then 18014 if test "x$prefix" = "xNONE"; then 18015 ogg_prefix=/usr/local 18016 else 18017 ogg_prefix="$prefix" 18018 fi 18019fi 18020 18021 18022xt_warning=no 18023if test x"$GCC" = "xyes" 18024then 18025 save_cflags="$CFLAGS" 18026 CFLAGS="-Werror -I$ogg_prefix/include" 18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18028/* end confdefs.h. */ 18029 18030int 18031main () 18032{ 18033 18034 ; 18035 return 0; 18036} 18037_ACEOF 18038if ac_fn_c_try_compile "$LINENO"; then : 18039 18040else 18041 xt_warning=yes 18042fi 18043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18044 CFLAGS="$save_cflags" 18045fi 18046if test "$xt_warning" = "yes" 18047then 18048 : 18049else 18050 OGG_CFLAGS="-I$ogg_prefix/include" 18051 OGG_LDFLAGS="-L$ogg_prefix/lib" 18052 18053fi 18054 18055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libogg" >&5 18056$as_echo_n "checking for libogg... " >&6; } 18057if ${xt_cv_lib_ogg+:} false; then : 18058 $as_echo_n "(cached) " >&6 18059else 18060 OGG_LIBS="-logg" 18061 18062# 18063# check if the installed Ogg is sufficiently new. 18064# 18065ac_save_CFLAGS="$CFLAGS" 18066ac_save_LIBS="$LIBS" 18067ac_save_LDFLAGS="$LDFLAGS" 18068CFLAGS="$CFLAGS $OGG_CFLAGS" 18069LIBS="$LIBS $OGG_LIBS" 18070LDFLAGS="$LDFLAGS $OGG_LDFLAGS" 18071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18072/* end confdefs.h. */ 18073 18074/* Override any GCC internal prototype to avoid an error. 18075 Use char because int might match the return type of a GCC 18076 builtin and then its argument prototype would still apply. */ 18077#ifdef __cplusplus 18078extern "C" 18079#endif 18080char ogg_sync_init (); 18081int 18082main () 18083{ 18084return ogg_sync_init (); 18085 ; 18086 return 0; 18087} 18088_ACEOF 18089if ac_fn_c_try_link "$LINENO"; then : 18090 xt_cv_lib_ogg=ok 18091else 18092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18093/* end confdefs.h. */ 18094#include <ogg/ogg.h> 18095int 18096main () 18097{ 18098 18099 ; 18100 return 0; 18101} 18102_ACEOF 18103if ac_fn_c_try_link "$LINENO"; then : 18104 xt_cv_lib_ogg="pre v1.0, needs updating" 18105else 18106 xt_cv_lib_ogg="not found" 18107fi 18108rm -f core conftest.err conftest.$ac_objext \ 18109 conftest$ac_exeext conftest.$ac_ext 18110 18111fi 18112rm -f core conftest.err conftest.$ac_objext \ 18113 conftest$ac_exeext conftest.$ac_ext 18114CFLAGS="$ac_save_CFLAGS" 18115LDFLAGS="$ac_save_LDFLAGS" 18116LIBS="$ac_save_LIBS" 18117 18118fi 18119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_cv_lib_ogg" >&5 18120$as_echo "$xt_cv_lib_ogg" >&6; } 18121if test "x$xt_cv_lib_ogg" = "xok"; then 18122 18123 18124$as_echo "#define HAVE_OGG 1" >>confdefs.h 18125 18126else 18127 OGG_LIBS="" 18128 OGG_CFLAGS="" 18129 OGG_LDFLAGS="" 18130 18131fi 18132 18133 18134 18135 18136 18137 18138 18139 18140# Check whether --with-vorbis was given. 18141if test "${with_vorbis+set}" = set; then : 18142 withval=$with_vorbis; vorbis_prefix="$withval" 18143else 18144 vorbis_prefix="$VORBIS_PREFIX" 18145 18146fi 18147 18148if test "x$vorbis_prefix" = "x" -o "x$vorbis_prefix" = "xyes"; then 18149 if test "x$prefix" = "xNONE"; then 18150 vorbis_prefix="/usr/local" 18151 else 18152 vorbis_prefix="$prefix" 18153 fi 18154fi 18155 18156VORBIS_CFLAGS="$OGG_CFLAGS" 18157VORBIS_LDFLAGS="$OGG_LDFLAGS" 18158if test "x$vorbis_prefix" != "x$ogg_prefix"; then 18159 18160xt_warning=no 18161if test x"$GCC" = "xyes" 18162then 18163 save_cflags="$CFLAGS" 18164 CFLAGS="-Werror -I"$vorbis_prefix/include"" 18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18166/* end confdefs.h. */ 18167 18168int 18169main () 18170{ 18171 18172 ; 18173 return 0; 18174} 18175_ACEOF 18176if ac_fn_c_try_compile "$LINENO"; then : 18177 18178else 18179 xt_warning=yes 18180fi 18181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18182 CFLAGS="$save_cflags" 18183fi 18184if test "$xt_warning" = "yes" 18185then 18186 : 18187else 18188 VORBIS_CFLAGS="$VORBIS_CFLAGS -I$vorbis_prefix/include" 18189 VORBIS_LDFLAGS="-L$vorbis_prefix/lib $VORBIS_LDFLAGS" 18190 18191fi 18192 18193fi 18194 18195VORBIS_LIBS="-lvorbis" 18196VORBISFILE_LIBS="-lvorbisfile" 18197VORBISENC_LIBS="-lvorbisenc" 18198 18199xt_save_LIBS="$LIBS" 18200xt_save_LDFLAGS="$LDFLAGS" 18201xt_save_CPPFLAGS="$CPPFLAGS" 18202CPPFLAGS="$CPPFLAGS $VORBIS_CFLAGS" 18203LDFLAGS="$LDFLAGS $VORBIS_LDFLAGS" 18204LIBS="$LIBS $VORBIS_LIBS" 18205xt_lib_vorbis="not found" 18206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbis" >&5 18207$as_echo_n "checking for libvorbis... " >&6; } 18208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18209/* end confdefs.h. */ 18210 18211/* Override any GCC internal prototype to avoid an error. 18212 Use char because int might match the return type of a GCC 18213 builtin and then its argument prototype would still apply. */ 18214#ifdef __cplusplus 18215extern "C" 18216#endif 18217char ogg_stream_init (); 18218int 18219main () 18220{ 18221return ogg_stream_init (); 18222 ; 18223 return 0; 18224} 18225_ACEOF 18226if ac_fn_c_try_link "$LINENO"; then : 18227 xt_lib_vorbis=ok 18228else 18229 LIBS="$LIBS $OGG_LIBS -lm" 18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232 18233/* Override any GCC internal prototype to avoid an error. 18234 Use char because int might match the return type of a GCC 18235 builtin and then its argument prototype would still apply. */ 18236#ifdef __cplusplus 18237extern "C" 18238#endif 18239char vorbis_info_init (); 18240int 18241main () 18242{ 18243return vorbis_info_init (); 18244 ; 18245 return 0; 18246} 18247_ACEOF 18248if ac_fn_c_try_link "$LINENO"; then : 18249 xt_lib_vorbis=ok 18250 VORBIS_LIBS="$VORBIS_LIBS $OGG_LIBS -lm" 18251fi 18252rm -f core conftest.err conftest.$ac_objext \ 18253 conftest$ac_exeext conftest.$ac_ext 18254 18255fi 18256rm -f core conftest.err conftest.$ac_objext \ 18257 conftest$ac_exeext conftest.$ac_ext 18258 18259if test "x$xt_lib_vorbis" = "xok"; then 18260# 18261# Now check if the installed Vorbis is sufficiently new. 18262# 18263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18264/* end confdefs.h. */ 18265 18266#include <vorbis/codec.h> 18267#include <vorbis/vorbisenc.h> 18268 18269int 18270main () 18271{ 18272 18273struct ovectl_ratemanage_arg a; 18274 18275 ; 18276 return 0; 18277} 18278_ACEOF 18279if ac_fn_c_try_compile "$LINENO"; then : 18280 18281else 18282 xt_lib_vorbis="old version found" 18283fi 18284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_lib_vorbis" >&5 18286$as_echo "$xt_lib_vorbis" >&6; } 18287fi 18288CPPFLAGS="$xt_save_CPPFLAGS" 18289LIBS="$xt_save_LIBS" 18290LDFLAGS="$xt_save_LDFLAGS" 18291 18292if test "x$xt_lib_vorbis" = "xok"; then 18293 18294 18295for arg in $VORBIS_CFLAGS 18296do 18297 if { cat <<EOF 18298 $XIPH_CPPFLAGS x 18299EOF 18300} | $FGREP -v -e " $arg " > /dev/null 18301 then 18302 XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg" 18303 fi 18304done 18305 18306 18307xt_compare="$XIPH_LIBS" 18308xt_filtered="" 18309for arg in $VORBIS_LIBS 18310do 18311 if { cat <<EOF 18312 $xt_compare x 18313EOF 18314} | $FGREP -v -e " $arg " > /dev/null 18315 then 18316 xt_compare="$arg $xt_compare" 18317 xt_filtered="$xt_filtered $arg" 18318 fi 18319done 18320XIPH_LIBS="$xt_filtered $XIPH_LIBS" 18321 18322 18323for arg in $VORBIS_LDFLAGS 18324do 18325 if { cat <<EOF 18326 $XIPH_LDFLAGS x 18327EOF 18328} | $FGREP -v -e " $arg " > /dev/null 18329 then 18330 XIPH_LDFLAGS="$XIPH_LDFLAGS $arg" 18331 fi 18332done 18333 18334 ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_vorbis.o" 18335 18336else 18337 VORBIS_CFLAGS="" 18338 VORBIS_LDFLAGS="" 18339 VORBIS_LIBS="" 18340 VORBISFILE_LIBS="" 18341 VORBISENC_LIBS="" 18342 as_fn_error $? "must have Ogg Vorbis v1.0 or above installed" "$LINENO" 5 18343 18344fi 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357# Check whether --with-theora was given. 18358if test "${with_theora+set}" = set; then : 18359 withval=$with_theora; theora_prefix="$withval" 18360else 18361 theora_prefix="$THEORA_PREFIX" 18362 18363fi 18364 18365 18366if test "x$with_theora" = "xno" 18367then 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Theora support disabled by request" >&5 18369$as_echo "Theora support disabled by request" >&6; } 18370else 18371 if test "x$theora_prefix" = "x" -o "x$theora_prefix" = "xyes"; then 18372 if test "x$prefix" = "xNONE"; then 18373 theora_prefix="/usr/local" 18374 else 18375 theora_prefix="$prefix" 18376 fi 18377 fi 18378 18379 THEORA_CFLAGS="$OGG_CFLAGS" 18380 THEORA_LDFLAGS="$OGG_LDFLAGS" 18381 if test "x$theora_prefix" != "x$ogg_prefix"; then 18382 18383xt_warning=no 18384if test x"$GCC" = "xyes" 18385then 18386 save_cflags="$CFLAGS" 18387 CFLAGS="-Werror -I"$theora_prefix/include"" 18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18389/* end confdefs.h. */ 18390 18391int 18392main () 18393{ 18394 18395 ; 18396 return 0; 18397} 18398_ACEOF 18399if ac_fn_c_try_compile "$LINENO"; then : 18400 18401else 18402 xt_warning=yes 18403fi 18404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18405 CFLAGS="$save_cflags" 18406fi 18407if test "$xt_warning" = "yes" 18408then 18409 : 18410else 18411 THEORA_CFLAGS="$THEORA_CFLAGS -I$theora_prefix/include" 18412 THEORA_LDFLAGS="-L$theora_prefix/lib $THEORA_LDFLAGS" 18413 18414fi 18415 18416 fi 18417 18418 THEORA_LIBS="-ltheora -logg" 18419 18420 ac_save_LIBS="$LIBS" 18421 ac_save_LDFLAGS="$LDFLAGS" 18422 LDFLAGS="$LDFLAGS $THEORA_LDFLAGS" 18423 LIBS="$LIBS $THEORA_LIBS" 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtheora" >&5 18425$as_echo_n "checking for libtheora... " >&6; } 18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18427/* end confdefs.h. */ 18428 18429/* Override any GCC internal prototype to avoid an error. 18430 Use char because int might match the return type of a GCC 18431 builtin and then its argument prototype would still apply. */ 18432#ifdef __cplusplus 18433extern "C" 18434#endif 18435char theora_decode_header (); 18436int 18437main () 18438{ 18439return theora_decode_header (); 18440 ; 18441 return 0; 18442} 18443_ACEOF 18444if ac_fn_c_try_link "$LINENO"; then : 18445 xt_have_theora="yes" 18446else 18447 xt_have_theora="Not found" 18448fi 18449rm -f core conftest.err conftest.$ac_objext \ 18450 conftest$ac_exeext conftest.$ac_ext 18451 if test "x$xt_have_theora" = "xyes" 18452 then 18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18454/* end confdefs.h. */ 18455 18456/* Override any GCC internal prototype to avoid an error. 18457 Use char because int might match the return type of a GCC 18458 builtin and then its argument prototype would still apply. */ 18459#ifdef __cplusplus 18460extern "C" 18461#endif 18462char theora_packet_isheader (); 18463int 18464main () 18465{ 18466return theora_packet_isheader (); 18467 ; 18468 return 0; 18469} 18470_ACEOF 18471if ac_fn_c_try_link "$LINENO"; then : 18472 xt_have_theora="yes" 18473else 18474 xt_have_theora="newer version required" 18475fi 18476rm -f core conftest.err conftest.$ac_objext \ 18477 conftest$ac_exeext conftest.$ac_ext 18478 fi 18479 18480 LIBS="$ac_save_LIBS" 18481 LDFLAGS="$ac_save_LDFLAGS" 18482 18483 if test "x$xt_have_theora" = "xyes" 18484 then 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 18486$as_echo "ok" >&6; } 18487 18488$as_echo "#define HAVE_THEORA 1" >>confdefs.h 18489 18490 18491 18492for arg in $THEORA_CFLAGS 18493do 18494 if { cat <<EOF 18495 $XIPH_CPPFLAGS x 18496EOF 18497} | $FGREP -v -e " $arg " > /dev/null 18498 then 18499 XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg" 18500 fi 18501done 18502 18503 18504for arg in $THEORA_LDFLAGS 18505do 18506 if { cat <<EOF 18507 $XIPH_LDFLAGS x 18508EOF 18509} | $FGREP -v -e " $arg " > /dev/null 18510 then 18511 XIPH_LDFLAGS="$XIPH_LDFLAGS $arg" 18512 fi 18513done 18514 18515 18516xt_compare="$XIPH_LIBS" 18517xt_filtered="" 18518for arg in $THEORA_LIBS 18519do 18520 if { cat <<EOF 18521 $xt_compare x 18522EOF 18523} | $FGREP -v -e " $arg " > /dev/null 18524 then 18525 xt_compare="$arg $xt_compare" 18526 xt_filtered="$xt_filtered $arg" 18527 fi 18528done 18529XIPH_LIBS="$xt_filtered $XIPH_LIBS" 18530 18531 ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_theora.o" 18532 18533 else 18534 THEORA_CFLAGS="" 18535 THEORA_LDFLAGS="" 18536 THEORA_LIBS="" 18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_have_theora" >&5 18538$as_echo "$xt_have_theora" >&6; } 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Theora disabled!" >&5 18540$as_echo "$as_me: WARNING: Theora disabled!" >&2;} 18541 18542 fi 18543fi 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554# Check whether --with-speex was given. 18555if test "${with_speex+set}" = set; then : 18556 withval=$with_speex; speex_prefix="$withval" 18557else 18558 speex_prefix="$SPEEX_PREFIX" 18559 18560fi 18561 18562if test "x$with_speex" = "xno" 18563then 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Speex support disabled by request" >&5 18565$as_echo "Speex support disabled by request" >&6; } 18566else 18567 if test "x$speex_prefix" = "x" -o "x$speex_prefix" = "xyes"; then 18568 if test "x$prefix" = "xNONE"; then 18569 speex_prefix="/usr/local" 18570 else 18571 speex_prefix="$prefix" 18572 fi 18573 fi 18574 18575 SPEEX_CFLAGS="$OGG_CFLAGS" 18576 SPEEX_LDFLAGS="$OGG_LDFLAGS" 18577 if test "x$speex_prefix" != "x$ogg_prefix"; then 18578 18579xt_warning=no 18580if test x"$GCC" = "xyes" 18581then 18582 save_cflags="$CFLAGS" 18583 CFLAGS="-Werror -I"$speex_prefix/include"" 18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18585/* end confdefs.h. */ 18586 18587int 18588main () 18589{ 18590 18591 ; 18592 return 0; 18593} 18594_ACEOF 18595if ac_fn_c_try_compile "$LINENO"; then : 18596 18597else 18598 xt_warning=yes 18599fi 18600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18601 CFLAGS="$save_cflags" 18602fi 18603if test "$xt_warning" = "yes" 18604then 18605 : 18606else 18607 SPEEX_CFLAGS="$SPEEX_CFLAGS -I$speex_prefix/include" 18608 SPEEX_LDFLAGS="-L$speex_prefix/lib $SPEEX_LDFLAGS" 18609 18610fi 18611 18612 fi 18613 18614 SPEEX_LIBS="-lspeex" 18615 18616 xt_save_LIBS="$LIBS" 18617 xt_save_LDFLAGS="$LDFLAGS" 18618 LDFLAGS="$LDFLAGS $SPEEX_LDFLAGS" 18619 LIBS="$LIBS $SPEEX_LIBS" 18620 xt_have_speex="yes" 18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex" >&5 18622$as_echo_n "checking for libspeex... " >&6; } 18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18624/* end confdefs.h. */ 18625 18626/* Override any GCC internal prototype to avoid an error. 18627 Use char because int might match the return type of a GCC 18628 builtin and then its argument prototype would still apply. */ 18629#ifdef __cplusplus 18630extern "C" 18631#endif 18632char ogg_stream_init (); 18633int 18634main () 18635{ 18636return ogg_stream_init (); 18637 ; 18638 return 0; 18639} 18640_ACEOF 18641if ac_fn_c_try_link "$LINENO"; then : 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 18643$as_echo "ok" >&6; } 18644else 18645 LIBS="$LIBS $OGG_LIBS" 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647/* end confdefs.h. */ 18648 18649/* Override any GCC internal prototype to avoid an error. 18650 Use char because int might match the return type of a GCC 18651 builtin and then its argument prototype would still apply. */ 18652#ifdef __cplusplus 18653extern "C" 18654#endif 18655char ogg_stream_init (); 18656int 18657main () 18658{ 18659return ogg_stream_init (); 18660 ; 18661 return 0; 18662} 18663_ACEOF 18664if ac_fn_c_try_link "$LINENO"; then : 18665 SPEEX_LIBS="$SPEEX_LIBS $OGG_LIBS" 18666else 18667 xt_have_speex="no" 18668fi 18669rm -f core conftest.err conftest.$ac_objext \ 18670 conftest$ac_exeext conftest.$ac_ext 18671 18672fi 18673rm -f core conftest.err conftest.$ac_objext \ 18674 conftest$ac_exeext conftest.$ac_ext 18675 if test "x$xt_have_speex" = "xyes" 18676 then 18677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18678/* end confdefs.h. */ 18679#include <speex/speex_header.h> 18680int 18681main () 18682{ 18683void *p = speex_packet_to_header; 18684 ; 18685 return 0; 18686} 18687_ACEOF 18688if ac_fn_c_try_link "$LINENO"; then : 18689 18690else 18691 xt_have_speex="no" 18692fi 18693rm -f core conftest.err conftest.$ac_objext \ 18694 conftest$ac_exeext conftest.$ac_ext 18695 fi 18696 18697 LIBS="$xt_save_LIBS" 18698 LDFLAGS="$xt_save_LDFLAGS" 18699 18700 if test "x$xt_have_speex" = "xyes" 18701 then 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 18703$as_echo "ok" >&6; } 18704 18705$as_echo "#define HAVE_SPEEX 1" >>confdefs.h 18706 18707 18708for arg in $SPEEX_CFLAGS 18709do 18710 if { cat <<EOF 18711 $XIPH_CPPFLAGS x 18712EOF 18713} | $FGREP -v -e " $arg " > /dev/null 18714 then 18715 XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg" 18716 fi 18717done 18718 18719 18720xt_compare="$XIPH_LIBS" 18721xt_filtered="" 18722for arg in $SPEEX_LIBS 18723do 18724 if { cat <<EOF 18725 $xt_compare x 18726EOF 18727} | $FGREP -v -e " $arg " > /dev/null 18728 then 18729 xt_compare="$arg $xt_compare" 18730 xt_filtered="$xt_filtered $arg" 18731 fi 18732done 18733XIPH_LIBS="$xt_filtered $XIPH_LIBS" 18734 18735 18736for arg in $SPEEX_LDFLAGS 18737do 18738 if { cat <<EOF 18739 $XIPH_LDFLAGS x 18740EOF 18741} | $FGREP -v -e " $arg " > /dev/null 18742 then 18743 XIPH_LDFLAGS="$XIPH_LDFLAGS $arg" 18744 fi 18745done 18746 18747 ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_speex.o" 18748 18749 else 18750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Speex support disabled!" >&5 18751$as_echo "$as_me: WARNING: Speex support disabled!" >&2;} 18752 18753 SPEEX_CFLAGS="" 18754 SPEEX_LDFLAGS="" 18755 SPEEX_LIBS="" 18756 fi 18757 18758 18759 18760fi 18761 18762# Check whether --with-kate was given. 18763if test "${with_kate+set}" = set; then : 18764 withval=$with_kate; kate_prefix="$withval" 18765fi 18766 18767if test "x$kate_prefix" = "xno" 18768then 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libkate support disabled by request" >&5 18770$as_echo "libkate support disabled by request" >&6; } 18771else 18772 18773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_decode_init in -lkate" >&5 18774$as_echo_n "checking for kate_decode_init in -lkate... " >&6; } 18775if ${ac_cv_lib_kate_kate_decode_init+:} false; then : 18776 $as_echo_n "(cached) " >&6 18777else 18778 ac_check_lib_save_LIBS=$LIBS 18779LIBS="-lkate -logg $LIBS" 18780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18781/* end confdefs.h. */ 18782 18783/* Override any GCC internal prototype to avoid an error. 18784 Use char because int might match the return type of a GCC 18785 builtin and then its argument prototype would still apply. */ 18786#ifdef __cplusplus 18787extern "C" 18788#endif 18789char kate_decode_init (); 18790int 18791main () 18792{ 18793return kate_decode_init (); 18794 ; 18795 return 0; 18796} 18797_ACEOF 18798if ac_fn_c_try_link "$LINENO"; then : 18799 ac_cv_lib_kate_kate_decode_init=yes 18800else 18801 ac_cv_lib_kate_kate_decode_init=no 18802fi 18803rm -f core conftest.err conftest.$ac_objext \ 18804 conftest$ac_exeext conftest.$ac_ext 18805LIBS=$ac_check_lib_save_LIBS 18806fi 18807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kate_kate_decode_init" >&5 18808$as_echo "$ac_cv_lib_kate_kate_decode_init" >&6; } 18809if test "x$ac_cv_lib_kate_kate_decode_init" = xyes; then : 18810 have_kate=yes 18811else 18812 have_kate=no 18813fi 18814 18815if test "x$have_kate" = "xyes" 18816then 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_ogg_decode_headerin in -loggkate" >&5 18818$as_echo_n "checking for kate_ogg_decode_headerin in -loggkate... " >&6; } 18819if ${ac_cv_lib_oggkate_kate_ogg_decode_headerin+:} false; then : 18820 $as_echo_n "(cached) " >&6 18821else 18822 ac_check_lib_save_LIBS=$LIBS 18823LIBS="-loggkate -lkate -logg $LIBS" 18824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18825/* end confdefs.h. */ 18826 18827/* Override any GCC internal prototype to avoid an error. 18828 Use char because int might match the return type of a GCC 18829 builtin and then its argument prototype would still apply. */ 18830#ifdef __cplusplus 18831extern "C" 18832#endif 18833char kate_ogg_decode_headerin (); 18834int 18835main () 18836{ 18837return kate_ogg_decode_headerin (); 18838 ; 18839 return 0; 18840} 18841_ACEOF 18842if ac_fn_c_try_link "$LINENO"; then : 18843 ac_cv_lib_oggkate_kate_ogg_decode_headerin=yes 18844else 18845 ac_cv_lib_oggkate_kate_ogg_decode_headerin=no 18846fi 18847rm -f core conftest.err conftest.$ac_objext \ 18848 conftest$ac_exeext conftest.$ac_ext 18849LIBS=$ac_check_lib_save_LIBS 18850fi 18851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&5 18852$as_echo "$ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&6; } 18853if test "x$ac_cv_lib_oggkate_kate_ogg_decode_headerin" = xyes; then : 18854 have_kate=yes 18855else 18856 have_kate=no 18857fi 18858 18859 if test "x$have_kate" = "xyes" 18860 then 18861 KATE_LIBS="-loggkate -lkate -logg" 18862 18863$as_echo "#define HAVE_KATE 1" >>confdefs.h 18864 18865 fi 18866fi 18867#ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_kate.o" 18868 18869fi 18870 18871 18872 18873ac_ext=c 18874ac_cpp='$CPP $CPPFLAGS' 18875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18877ac_compiler_gnu=$ac_cv_c_compiler_gnu 18878 18879acx_pthread_ok=no 18880 18881# We used to check for pthread.h first, but this fails if pthread.h 18882# requires special compiler flags (e.g. on True64 or Sequent). 18883# It gets checked for in the link test anyway. 18884 18885# First of all, check if the user has set any of the PTHREAD_LIBS, 18886# etcetera environment variables, and if threads linking works using 18887# them: 18888if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 18889 save_CFLAGS="$CFLAGS" 18890 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18891 save_LIBS="$LIBS" 18892 LIBS="$PTHREAD_LIBS $LIBS" 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 18894$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18896/* end confdefs.h. */ 18897 18898/* Override any GCC internal prototype to avoid an error. 18899 Use char because int might match the return type of a GCC 18900 builtin and then its argument prototype would still apply. */ 18901#ifdef __cplusplus 18902extern "C" 18903#endif 18904char pthread_join (); 18905int 18906main () 18907{ 18908return pthread_join (); 18909 ; 18910 return 0; 18911} 18912_ACEOF 18913if ac_fn_c_try_link "$LINENO"; then : 18914 acx_pthread_ok=yes 18915fi 18916rm -f core conftest.err conftest.$ac_objext \ 18917 conftest$ac_exeext conftest.$ac_ext 18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 18919$as_echo "$acx_pthread_ok" >&6; } 18920 if test x"$acx_pthread_ok" = xno; then 18921 PTHREAD_LIBS="" 18922 PTHREAD_CFLAGS="" 18923 fi 18924 LIBS="$save_LIBS" 18925 CFLAGS="$save_CFLAGS" 18926fi 18927 18928# We must check for the threads library under a number of different 18929# names; the ordering is very important because some systems 18930# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 18931# libraries is broken (non-POSIX). 18932 18933# Create a list of thread flags to try. Items starting with a "-" are 18934# C compiler flags, and other items are library names, except for "none" 18935# which indicates that we try without any flags at all, and "pthread-config" 18936# which is a program returning the flags for the Pth emulation library. 18937 18938acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18939 18940# The ordering *is* (sometimes) important. Some notes on the 18941# individual items follow: 18942 18943# pthreads: AIX (must check this before -lpthread) 18944# none: in case threads are in libc; should be tried before -Kthread and 18945# other compiler flags to prevent continual compiler warnings 18946# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 18947# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 18948# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 18949# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 18950# -pthreads: Solaris/gcc 18951# -mthreads: Mingw32/gcc, Lynx/gcc 18952# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 18953# doesn't hurt to check since this sometimes defines pthreads too; 18954# also defines -D_REENTRANT) 18955# ... -mt is also the pthreads flag for HP/aCC 18956# pthread: Linux, etcetera 18957# --thread-safe: KAI C++ 18958# pthread-config: use pthread-config program (for GNU Pth library) 18959 18960case "${host_cpu}-${host_os}" in 18961 *solaris*) 18962 18963 # On Solaris (at least, for some versions), libc contains stubbed 18964 # (non-functional) versions of the pthreads routines, so link-based 18965 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 18966 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 18967 # a function called by this macro, so we could check for that, but 18968 # who knows whether they'll stub that too in a future libc.) So, 18969 # we'll just look for -pthreads and -lpthread first: 18970 18971 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 18972 ;; 18973esac 18974 18975if test x"$acx_pthread_ok" = xno; then 18976for flag in $acx_pthread_flags; do 18977 18978 case $flag in 18979 none) 18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18981$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18982 ;; 18983 18984 -mthreads) 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18986$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18987 PTHREAD_LIBS="-lpthread" 18988 PTHREAD_CFLAGS="$flag" 18989 ;; 18990 18991 -*) 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18993$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18994 PTHREAD_CFLAGS="$flag" 18995 ;; 18996 18997 pthread-config) 18998 # Extract the first word of "pthread-config", so it can be a program name with args. 18999set dummy pthread-config; ac_word=$2 19000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19001$as_echo_n "checking for $ac_word... " >&6; } 19002if ${ac_cv_prog_acx_pthread_config+:} false; then : 19003 $as_echo_n "(cached) " >&6 19004else 19005 if test -n "$acx_pthread_config"; then 19006 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 19007else 19008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19009for as_dir in $PATH 19010do 19011 IFS=$as_save_IFS 19012 test -z "$as_dir" && as_dir=. 19013 for ac_exec_ext in '' $ac_executable_extensions; do 19014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19015 ac_cv_prog_acx_pthread_config="yes" 19016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19017 break 2 19018 fi 19019done 19020 done 19021IFS=$as_save_IFS 19022 19023 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 19024fi 19025fi 19026acx_pthread_config=$ac_cv_prog_acx_pthread_config 19027if test -n "$acx_pthread_config"; then 19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 19029$as_echo "$acx_pthread_config" >&6; } 19030else 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19032$as_echo "no" >&6; } 19033fi 19034 19035 19036 if test x"$acx_pthread_config" = xno; then continue; fi 19037 PTHREAD_CFLAGS="`pthread-config --cflags`" 19038 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 19039 ;; 19040 19041 *) 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 19043$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 19044 PTHREAD_LIBS="-l$flag" 19045 ;; 19046 esac 19047 19048 save_LIBS="$LIBS" 19049 save_CFLAGS="$CFLAGS" 19050 LIBS="$PTHREAD_LIBS $LIBS" 19051 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19052 19053 # Check for various functions. We must include pthread.h, 19054 # since some functions may be macros. (On the Sequent, we 19055 # need a special flag -Kthread to make this header compile.) 19056 # We check for pthread_join because it is in -lpthread on IRIX 19057 # while pthread_create is in libc. We check for pthread_attr_init 19058 # due to DEC craziness with -lpthreads. We check for 19059 # pthread_cleanup_push because it is one of the few pthread 19060 # functions on Solaris that doesn't have a non-functional libc stub. 19061 # We try pthread_create on general principles. 19062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19063/* end confdefs.h. */ 19064#include <pthread.h> 19065int 19066main () 19067{ 19068pthread_t th; pthread_join(th, 0); 19069 pthread_attr_init(0); pthread_cleanup_push(0, 0); 19070 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 19071 ; 19072 return 0; 19073} 19074_ACEOF 19075if ac_fn_c_try_link "$LINENO"; then : 19076 acx_pthread_ok=yes 19077fi 19078rm -f core conftest.err conftest.$ac_objext \ 19079 conftest$ac_exeext conftest.$ac_ext 19080 19081 LIBS="$save_LIBS" 19082 CFLAGS="$save_CFLAGS" 19083 19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 19085$as_echo "$acx_pthread_ok" >&6; } 19086 if test "x$acx_pthread_ok" = xyes; then 19087 break; 19088 fi 19089 19090 PTHREAD_LIBS="" 19091 PTHREAD_CFLAGS="" 19092done 19093fi 19094 19095# Various other checks: 19096if test "x$acx_pthread_ok" = xyes; then 19097 save_LIBS="$LIBS" 19098 LIBS="$PTHREAD_LIBS $LIBS" 19099 save_CFLAGS="$CFLAGS" 19100 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19101 19102 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 19104$as_echo_n "checking for joinable pthread attribute... " >&6; } 19105 attr_name=unknown 19106 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19108/* end confdefs.h. */ 19109#include <pthread.h> 19110int 19111main () 19112{ 19113int attr=$attr; return attr; 19114 ; 19115 return 0; 19116} 19117_ACEOF 19118if ac_fn_c_try_link "$LINENO"; then : 19119 attr_name=$attr; break 19120fi 19121rm -f core conftest.err conftest.$ac_objext \ 19122 conftest$ac_exeext conftest.$ac_ext 19123 done 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 19125$as_echo "$attr_name" >&6; } 19126 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 19127 19128cat >>confdefs.h <<_ACEOF 19129#define PTHREAD_CREATE_JOINABLE $attr_name 19130_ACEOF 19131 19132 fi 19133 19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 19135$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 19136 flag=no 19137 case "${host_cpu}-${host_os}" in 19138 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 19139 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 19140 esac 19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 19142$as_echo "${flag}" >&6; } 19143 if test "x$flag" != xno; then 19144 PTHREAD_CPPFLAGS="$flag $PTHREAD_CPPFLAGS" 19145 fi 19146 19147 case "${host_cpu}-${host_os}" in 19148 *bsd*) ;; # avoid spinlocks on bsd systems for now 19149 *) for ac_func in pthread_spin_lock 19150do : 19151 ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock" 19152if test "x$ac_cv_func_pthread_spin_lock" = xyes; then : 19153 cat >>confdefs.h <<_ACEOF 19154#define HAVE_PTHREAD_SPIN_LOCK 1 19155_ACEOF 19156 19157fi 19158done 19159;; 19160 esac 19161 LIBS="$save_LIBS" 19162 CFLAGS="$save_CFLAGS" 19163 19164 # More AIX lossage: must compile with xlc_r or cc_r 19165 if test x"$GCC" != xyes; then 19166 for ac_prog in xlc_r cc_r 19167do 19168 # Extract the first word of "$ac_prog", so it can be a program name with args. 19169set dummy $ac_prog; ac_word=$2 19170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19171$as_echo_n "checking for $ac_word... " >&6; } 19172if ${ac_cv_prog_PTHREAD_CC+:} false; then : 19173 $as_echo_n "(cached) " >&6 19174else 19175 if test -n "$PTHREAD_CC"; then 19176 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19177else 19178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19179for as_dir in $PATH 19180do 19181 IFS=$as_save_IFS 19182 test -z "$as_dir" && as_dir=. 19183 for ac_exec_ext in '' $ac_executable_extensions; do 19184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19185 ac_cv_prog_PTHREAD_CC="$ac_prog" 19186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19187 break 2 19188 fi 19189done 19190 done 19191IFS=$as_save_IFS 19192 19193fi 19194fi 19195PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19196if test -n "$PTHREAD_CC"; then 19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19198$as_echo "$PTHREAD_CC" >&6; } 19199else 19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19201$as_echo "no" >&6; } 19202fi 19203 19204 19205 test -n "$PTHREAD_CC" && break 19206done 19207test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19208 19209 else 19210 PTHREAD_CC=$CC 19211 fi 19212else 19213 PTHREAD_CC="$CC" 19214fi 19215 19216 19217 19218 19219 19220 19221# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 19222if test x"$acx_pthread_ok" = xyes; then 19223 19224$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19225 19226 : 19227else 19228 acx_pthread_ok=no 19229 as_fn_error $? "POSIX threads missing" "$LINENO" 5 19230fi 19231ac_ext=c 19232ac_cpp='$CPP $CPPFLAGS' 19233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19235ac_compiler_gnu=$ac_cv_c_compiler_gnu 19236 19237 19238 19239for arg in $PTHREAD_CFLAGS 19240do 19241 if { cat <<EOF 19242 $XIPH_CFLAGS x 19243EOF 19244} | $FGREP -v -e " $arg " > /dev/null 19245 then 19246 XIPH_CFLAGS="$XIPH_CFLAGS $arg" 19247 fi 19248done 19249 19250 19251for arg in $PTHREAD_CPPFLAGS 19252do 19253 if { cat <<EOF 19254 $XIPH_CPPFLAGS x 19255EOF 19256} | $FGREP -v -e " $arg " > /dev/null 19257 then 19258 XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg" 19259 fi 19260done 19261 19262 19263xt_compare="$XIPH_LIBS" 19264xt_filtered="" 19265for arg in $PTHREAD_LIBS 19266do 19267 if { cat <<EOF 19268 $xt_compare x 19269EOF 19270} | $FGREP -v -e " $arg " > /dev/null 19271 then 19272 xt_compare="$arg $xt_compare" 19273 xt_filtered="$xt_filtered $arg" 19274 fi 19275done 19276XIPH_LIBS="$xt_filtered $XIPH_LIBS" 19277 19278 19279 19280# Check whether --with-curl was given. 19281if test "${with_curl+set}" = set; then : 19282 withval=$with_curl; curl_prefix="$withval" 19283else 19284 curl_prefix="$CURL_PREFIX" 19285fi 19286 19287 19288if test "x$curl_prefix" = "xno" 19289then 19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libcurl support disabled by request" >&5 19291$as_echo "libcurl support disabled by request" >&6; } 19292else 19293 19294 19295# Check whether --with-curl-config was given. 19296if test "${with_curl_config+set}" = set; then : 19297 withval=$with_curl_config; CURL_CONFIG="$withval" 19298else 19299 for ac_prog in curl-config 19300do 19301 # Extract the first word of "$ac_prog", so it can be a program name with args. 19302set dummy $ac_prog; ac_word=$2 19303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19304$as_echo_n "checking for $ac_word... " >&6; } 19305if ${ac_cv_path_CURL_CONFIG+:} false; then : 19306 $as_echo_n "(cached) " >&6 19307else 19308 case $CURL_CONFIG in 19309 [\\/]* | ?:[\\/]*) 19310 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path. 19311 ;; 19312 *) 19313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19314for as_dir in $PATH 19315do 19316 IFS=$as_save_IFS 19317 test -z "$as_dir" && as_dir=. 19318 for ac_exec_ext in '' $ac_executable_extensions; do 19319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19320 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19322 break 2 19323 fi 19324done 19325 done 19326IFS=$as_save_IFS 19327 19328 ;; 19329esac 19330fi 19331CURL_CONFIG=$ac_cv_path_CURL_CONFIG 19332if test -n "$CURL_CONFIG"; then 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5 19334$as_echo "$CURL_CONFIG" >&6; } 19335else 19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19337$as_echo "no" >&6; } 19338fi 19339 19340 19341 test -n "$CURL_CONFIG" && break 19342done 19343test -n "$CURL_CONFIG" || CURL_CONFIG="""" 19344 19345fi 19346 19347 19348if test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then 19349 CURL_LIBS="-L$curl_prefix/lib -lcurl" 19350 CURL_CFLAGS="-I$curl_prefix/include" 19351elif test "x$CURL_CONFIG" != "x"; then 19352 if ! test -x "$CURL_CONFIG"; then 19353 as_fn_error $? "$CURL_CONFIG cannot be executed" "$LINENO" 5 19354 fi 19355 CURL_LIBS="$($CURL_CONFIG --libs)" 19356 CURL_CFLAGS="$($CURL_CONFIG --cflags)" 19357else 19358 if test "x$prefix" = "xNONE"; then 19359 curl_prefix="/usr/local" 19360 else 19361 curl_prefix="$prefix" 19362 fi 19363 CURL_LIBS="-L$curl_prefix/lib -lcurl" 19364 CURL_CFLAGS="-I$curl_prefix/include" 19365fi 19366 19367curl_ok="yes" 19368 19369xt_curl_CPPFLAGS="$CPPFLAGS" 19370xt_curl_LIBS="$LIBS" 19371CPPFLAGS="$CPPFLAGS $CURL_CFLAGS" 19372LIBS="$CURL_LIBS $LIBS" 19373for ac_header in curl/curl.h 19374do : 19375 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" 19376if test "x$ac_cv_header_curl_curl_h" = xyes; then : 19377 cat >>confdefs.h <<_ACEOF 19378#define HAVE_CURL_CURL_H 1 19379_ACEOF 19380 19381else 19382 curl_ok="no" 19383fi 19384 19385done 19386 19387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5 19388$as_echo_n "checking for libcurl... " >&6; } 19389if test "$curl_ok" = "yes" 19390then 19391 if test "$cross_compiling" = yes; then : 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 19393$as_echo "skipped" >&6; } 19394else 19395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19396/* end confdefs.h. */ 19397 19398#include <curl/curl.h> 19399int main() 19400{ 19401 return 0; 19402} 19403 19404_ACEOF 19405if ac_fn_c_try_run "$LINENO"; then : 19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19407$as_echo "yes" >&6; } 19408else 19409 curl_ok="no" 19410fi 19411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19412 conftest.$ac_objext conftest.beam conftest.$ac_ext 19413fi 19414 19415fi 19416if test "$curl_ok" = "yes"; then 19417 19418$as_echo "#define HAVE_CURL 1" >>confdefs.h 19419 19420 19421 ac_fn_c_check_decl "$LINENO" "CURLOPT_NOSIGNAL" "ac_cv_have_decl_CURLOPT_NOSIGNAL" "#include <curl/curl.h> 19422 19423" 19424if test "x$ac_cv_have_decl_CURLOPT_NOSIGNAL" = xyes; then : 19425 19426$as_echo "#define HAVE_AUTH_URL 1" >>confdefs.h 19427 19428 for ac_func in curl_global_init 19429do : 19430 ac_fn_c_check_func "$LINENO" "curl_global_init" "ac_cv_func_curl_global_init" 19431if test "x$ac_cv_func_curl_global_init" = xyes; then : 19432 cat >>confdefs.h <<_ACEOF 19433#define HAVE_CURL_GLOBAL_INIT 1 19434_ACEOF 19435 19436fi 19437done 19438 19439 ICECAST_OPTIONAL="$ICECAST_OPTIONAL auth_url.o" 19440 enable_curl="yes" 19441 19442for arg in $CURL_CFLAGS 19443do 19444 if { cat <<EOF 19445 $XIPH_CPPFLAGS x 19446EOF 19447} | $FGREP -v -e " $arg " > /dev/null 19448 then 19449 XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg" 19450 fi 19451done 19452 19453 19454xt_compare="$XIPH_LIBS" 19455xt_filtered="" 19456for arg in $CURL_LIBS 19457do 19458 if { cat <<EOF 19459 $xt_compare x 19460EOF 19461} | $FGREP -v -e " $arg " > /dev/null 19462 then 19463 xt_compare="$arg $xt_compare" 19464 xt_filtered="$xt_filtered $arg" 19465 fi 19466done 19467XIPH_LIBS="$xt_filtered $XIPH_LIBS" 19468 19469 19470else 19471 { $as_echo "$as_me:${as_lineno-$LINENO}: Your curl dev files are too old (7.10 or above required)" >&5 19472$as_echo "$as_me: Your curl dev files are too old (7.10 or above required)" >&6;} 19473 19474fi 19475 19476 19477else 19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19479$as_echo "no" >&6; } 19480 CURL_LIBS="" 19481 CURL_CFLAGS="" 19482 { $as_echo "$as_me:${as_lineno-$LINENO}: libcurl not found" >&5 19483$as_echo "$as_me: libcurl not found" >&6;} 19484 19485fi 19486CPPFLAGS="$xt_curl_CPPFLAGS" 19487LIBS="$xt_curl_LIBS" 19488fi 19489 19490 19491 19492# Check whether --enable-yp was given. 19493if test "${enable_yp+set}" = set; then : 19494 enableval=$enable_yp; enable_yp="$enableval" 19495else 19496 enable_yp="yes" 19497fi 19498 19499if test "x$enable_yp" = "xyes" -a "x$enable_curl" = xyes 19500then 19501 19502$as_echo "#define USE_YP 1" >>confdefs.h 19503 19504 ICECAST_OPTIONAL="$ICECAST_OPTIONAL yp.o" 19505else 19506 { $as_echo "$as_me:${as_lineno-$LINENO}: YP support disabled" >&5 19507$as_echo "$as_me: YP support disabled" >&6;} 19508fi 19509 19510# Check whether --with-openssl was given. 19511if test "${with_openssl+set}" = set; then : 19512 withval=$with_openssl; openssl_prefix="$withval" 19513else 19514 openssl_prefix="" 19515fi 19516 19517 19518if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then 19519 OPENSSL_LIBS="-L$openssl_prefix/lib -lssl -lcrypto" 19520 OPENSSL_CFLAGS="-I$openssl_prefix/include" 19521else 19522 # Extract the first word of "pkg-config", so it can be a program name with args. 19523set dummy pkg-config; ac_word=$2 19524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19525$as_echo_n "checking for $ac_word... " >&6; } 19526if ${ac_cv_path_PKGCONFIG+:} false; then : 19527 $as_echo_n "(cached) " >&6 19528else 19529 case $PKGCONFIG in 19530 [\\/]* | ?:[\\/]*) 19531 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 19532 ;; 19533 *) 19534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19535for as_dir in $PATH 19536do 19537 IFS=$as_save_IFS 19538 test -z "$as_dir" && as_dir=. 19539 for ac_exec_ext in '' $ac_executable_extensions; do 19540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19541 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 19542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19543 break 2 19544 fi 19545done 19546 done 19547IFS=$as_save_IFS 19548 19549 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 19550 ;; 19551esac 19552fi 19553PKGCONFIG=$ac_cv_path_PKGCONFIG 19554if test -n "$PKGCONFIG"; then 19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 19556$as_echo "$PKGCONFIG" >&6; } 19557else 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19559$as_echo "no" >&6; } 19560fi 19561 19562 19563 if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists openssl`; then 19564 OPENSSL_CFLAGS=`$PKGCONFIG --cflags openssl` 19565 OPENSSL_LIBS=`$PKGCONFIG --libs openssl` 19566 else 19567 if test "x$prefix" = "xNONE"; then 19568 openssl_prefix="/usr/local" 19569 else 19570 openssl_prefix="$prefix" 19571 fi 19572 OPENSSL_LIBS="-L$openssl_prefix/lib -lssl -lcrypto" 19573 OPENSSL_CFLAGS="-I$openssl_prefix/include" 19574 fi 19575fi 19576 19577# Now try linking to openssl 19578xt_save_CFLAGS="$CFLAGS" 19579xt_save_LIBS="$LIBS" 19580CFLAGS="$CFLAGS $OPENSSL_CFLAGS" 19581LIBS="$OPENSSL_LIBS $LIBS" 19582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19583/* end confdefs.h. */ 19584#include <openssl/ssl.h> 19585int 19586main () 19587{ 19588void *a = SSL_new 19589 ; 19590 return 0; 19591} 19592_ACEOF 19593if ac_fn_c_try_link "$LINENO"; then : 19594 openssl_ok='yes' 19595fi 19596rm -f core conftest.err conftest.$ac_objext \ 19597 conftest$ac_exeext conftest.$ac_ext 19598CFLAGS="$xt_save_CFLAGS" 19599LIBS="$xt_save_LIBS" 19600 19601if test "$openssl_ok" = "yes"; then 19602 19603$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 19604 19605 19606 19607for arg in $OPENSSL_CFLAGS 19608do 19609 if { cat <<EOF 19610 $XIPH_CPPFLAGS x 19611EOF 19612} | $FGREP -v -e " $arg " > /dev/null 19613 then 19614 XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg" 19615 fi 19616done 19617 19618 19619for arg in $OPENSSL_LDFLAGS 19620do 19621 if { cat <<EOF 19622 $XIPH_LDFLAGS x 19623EOF 19624} | $FGREP -v -e " $arg " > /dev/null 19625 then 19626 XIPH_LDFLAGS="$XIPH_LDFLAGS $arg" 19627 fi 19628done 19629 19630 19631xt_compare="$XIPH_LIBS" 19632xt_filtered="" 19633for arg in $OPENSSL_LIBS 19634do 19635 if { cat <<EOF 19636 $xt_compare x 19637EOF 19638} | $FGREP -v -e " $arg " > /dev/null 19639 then 19640 xt_compare="$arg $xt_compare" 19641 xt_filtered="$xt_filtered $arg" 19642 fi 19643done 19644XIPH_LIBS="$xt_filtered $XIPH_LIBS" 19645 19646 19647else 19648 OPENSSL_LIBS="" 19649 OPENSSL_CFLAGS="" 19650 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL disabled!" >&5 19651$as_echo "$as_me: SSL disabled!" >&6;} 19652 19653fi 19654 19655 19656if test "x$ac_cv_func_fork" = "xyes" 19657then 19658 ICECAST_OPTIONAL="$ICECAST_OPTIONAL auth_cmd.o" 19659fi 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678ac_config_files="$ac_config_files Makefile conf/Makefile src/Makefile src/avl/Makefile src/httpp/Makefile src/thread/Makefile src/log/Makefile src/net/Makefile src/timing/Makefile doc/Makefile web/Makefile web/images/Makefile admin/Makefile win32/Makefile" 19679 19680cat >confcache <<\_ACEOF 19681# This file is a shell script that caches the results of configure 19682# tests run on this system so they can be shared between configure 19683# scripts and configure runs, see configure's option --config-cache. 19684# It is not useful on other systems. If it contains results you don't 19685# want to keep, you may remove or edit it. 19686# 19687# config.status only pays attention to the cache file if you give it 19688# the --recheck option to rerun configure. 19689# 19690# `ac_cv_env_foo' variables (set or unset) will be overridden when 19691# loading this file, other *unset* `ac_cv_foo' will be assigned the 19692# following values. 19693 19694_ACEOF 19695 19696# The following way of writing the cache mishandles newlines in values, 19697# but we know of no workaround that is simple, portable, and efficient. 19698# So, we kill variables containing newlines. 19699# Ultrix sh set writes to stderr and can't be redirected directly, 19700# and sets the high bit in the cache file unless we assign to the vars. 19701( 19702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19703 eval ac_val=\$$ac_var 19704 case $ac_val in #( 19705 *${as_nl}*) 19706 case $ac_var in #( 19707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19708$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19709 esac 19710 case $ac_var in #( 19711 _ | IFS | as_nl) ;; #( 19712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19713 *) { eval $ac_var=; unset $ac_var;} ;; 19714 esac ;; 19715 esac 19716 done 19717 19718 (set) 2>&1 | 19719 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19720 *${as_nl}ac_space=\ *) 19721 # `set' does not quote correctly, so add quotes: double-quote 19722 # substitution turns \\\\ into \\, and sed turns \\ into \. 19723 sed -n \ 19724 "s/'/'\\\\''/g; 19725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19726 ;; #( 19727 *) 19728 # `set' quotes correctly as required by POSIX, so do not add quotes. 19729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19730 ;; 19731 esac | 19732 sort 19733) | 19734 sed ' 19735 /^ac_cv_env_/b end 19736 t clear 19737 :clear 19738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19739 t end 19740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19741 :end' >>confcache 19742if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19743 if test -w "$cache_file"; then 19744 if test "x$cache_file" != "x/dev/null"; then 19745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19746$as_echo "$as_me: updating cache $cache_file" >&6;} 19747 if test ! -f "$cache_file" || test -h "$cache_file"; then 19748 cat confcache >"$cache_file" 19749 else 19750 case $cache_file in #( 19751 */* | ?:*) 19752 mv -f confcache "$cache_file"$$ && 19753 mv -f "$cache_file"$$ "$cache_file" ;; #( 19754 *) 19755 mv -f confcache "$cache_file" ;; 19756 esac 19757 fi 19758 fi 19759 else 19760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19761$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19762 fi 19763fi 19764rm -f confcache 19765 19766test "x$prefix" = xNONE && prefix=$ac_default_prefix 19767# Let make expand exec_prefix. 19768test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19769 19770DEFS=-DHAVE_CONFIG_H 19771 19772ac_libobjs= 19773ac_ltlibobjs= 19774for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19775 # 1. Remove the extension, and $U if already installed. 19776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19779 # will be set to the directory where LIBOBJS objects are built. 19780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19782done 19783LIBOBJS=$ac_libobjs 19784 19785LTLIBOBJS=$ac_ltlibobjs 19786 19787 19788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19789$as_echo_n "checking that generated files are newer than configure... " >&6; } 19790 if test -n "$am_sleep_pid"; then 19791 # Hide warnings about reused PIDs. 19792 wait $am_sleep_pid 2>/dev/null 19793 fi 19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19795$as_echo "done" >&6; } 19796 if test -n "$EXEEXT"; then 19797 am__EXEEXT_TRUE= 19798 am__EXEEXT_FALSE='#' 19799else 19800 am__EXEEXT_TRUE='#' 19801 am__EXEEXT_FALSE= 19802fi 19803 19804if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19805 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19806Usually this means the macro was only invoked conditionally." "$LINENO" 5 19807fi 19808if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19809 as_fn_error $? "conditional \"AMDEP\" was never defined. 19810Usually this means the macro was only invoked conditionally." "$LINENO" 5 19811fi 19812if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19813 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19814Usually this means the macro was only invoked conditionally." "$LINENO" 5 19815fi 19816if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19817 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19818Usually this means the macro was only invoked conditionally." "$LINENO" 5 19819fi 19820if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19821 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19822Usually this means the macro was only invoked conditionally." "$LINENO" 5 19823fi 19824if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 19825 as_fn_error $? "conditional \"WIN32\" was never defined. 19826Usually this means the macro was only invoked conditionally." "$LINENO" 5 19827fi 19828 19829: "${CONFIG_STATUS=./config.status}" 19830ac_write_fail=0 19831ac_clean_files_save=$ac_clean_files 19832ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19833{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19834$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19835as_write_fail=0 19836cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19837#! $SHELL 19838# Generated by $as_me. 19839# Run this file to recreate the current configuration. 19840# Compiler output produced by configure, useful for debugging 19841# configure, is in config.log if it exists. 19842 19843debug=false 19844ac_cs_recheck=false 19845ac_cs_silent=false 19846 19847SHELL=\${CONFIG_SHELL-$SHELL} 19848export SHELL 19849_ASEOF 19850cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19851## -------------------- ## 19852## M4sh Initialization. ## 19853## -------------------- ## 19854 19855# Be more Bourne compatible 19856DUALCASE=1; export DUALCASE # for MKS sh 19857if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19858 emulate sh 19859 NULLCMD=: 19860 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19861 # is contrary to our usage. Disable this feature. 19862 alias -g '${1+"$@"}'='"$@"' 19863 setopt NO_GLOB_SUBST 19864else 19865 case `(set -o) 2>/dev/null` in #( 19866 *posix*) : 19867 set -o posix ;; #( 19868 *) : 19869 ;; 19870esac 19871fi 19872 19873 19874as_nl=' 19875' 19876export as_nl 19877# Printing a long string crashes Solaris 7 /usr/bin/printf. 19878as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19879as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19880as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19881# Prefer a ksh shell builtin over an external printf program on Solaris, 19882# but without wasting forks for bash or zsh. 19883if test -z "$BASH_VERSION$ZSH_VERSION" \ 19884 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19885 as_echo='print -r --' 19886 as_echo_n='print -rn --' 19887elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19888 as_echo='printf %s\n' 19889 as_echo_n='printf %s' 19890else 19891 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19892 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19893 as_echo_n='/usr/ucb/echo -n' 19894 else 19895 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19896 as_echo_n_body='eval 19897 arg=$1; 19898 case $arg in #( 19899 *"$as_nl"*) 19900 expr "X$arg" : "X\\(.*\\)$as_nl"; 19901 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19902 esac; 19903 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19904 ' 19905 export as_echo_n_body 19906 as_echo_n='sh -c $as_echo_n_body as_echo' 19907 fi 19908 export as_echo_body 19909 as_echo='sh -c $as_echo_body as_echo' 19910fi 19911 19912# The user is always right. 19913if test "${PATH_SEPARATOR+set}" != set; then 19914 PATH_SEPARATOR=: 19915 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19916 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19917 PATH_SEPARATOR=';' 19918 } 19919fi 19920 19921 19922# IFS 19923# We need space, tab and new line, in precisely that order. Quoting is 19924# there to prevent editors from complaining about space-tab. 19925# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19926# splitting by setting IFS to empty value.) 19927IFS=" "" $as_nl" 19928 19929# Find who we are. Look in the path if we contain no directory separator. 19930as_myself= 19931case $0 in #(( 19932 *[\\/]* ) as_myself=$0 ;; 19933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19934for as_dir in $PATH 19935do 19936 IFS=$as_save_IFS 19937 test -z "$as_dir" && as_dir=. 19938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19939 done 19940IFS=$as_save_IFS 19941 19942 ;; 19943esac 19944# We did not find ourselves, most probably we were run as `sh COMMAND' 19945# in which case we are not to be found in the path. 19946if test "x$as_myself" = x; then 19947 as_myself=$0 19948fi 19949if test ! -f "$as_myself"; then 19950 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19951 exit 1 19952fi 19953 19954# Unset variables that we do not need and which cause bugs (e.g. in 19955# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19956# suppresses any "Segmentation fault" message there. '((' could 19957# trigger a bug in pdksh 5.2.14. 19958for as_var in BASH_ENV ENV MAIL MAILPATH 19959do eval test x\${$as_var+set} = xset \ 19960 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19961done 19962PS1='$ ' 19963PS2='> ' 19964PS4='+ ' 19965 19966# NLS nuisances. 19967LC_ALL=C 19968export LC_ALL 19969LANGUAGE=C 19970export LANGUAGE 19971 19972# CDPATH. 19973(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19974 19975 19976# as_fn_error STATUS ERROR [LINENO LOG_FD] 19977# ---------------------------------------- 19978# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19979# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19980# script with STATUS, using 1 if that was 0. 19981as_fn_error () 19982{ 19983 as_status=$1; test $as_status -eq 0 && as_status=1 19984 if test "$4"; then 19985 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19986 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19987 fi 19988 $as_echo "$as_me: error: $2" >&2 19989 as_fn_exit $as_status 19990} # as_fn_error 19991 19992 19993# as_fn_set_status STATUS 19994# ----------------------- 19995# Set $? to STATUS, without forking. 19996as_fn_set_status () 19997{ 19998 return $1 19999} # as_fn_set_status 20000 20001# as_fn_exit STATUS 20002# ----------------- 20003# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20004as_fn_exit () 20005{ 20006 set +e 20007 as_fn_set_status $1 20008 exit $1 20009} # as_fn_exit 20010 20011# as_fn_unset VAR 20012# --------------- 20013# Portably unset VAR. 20014as_fn_unset () 20015{ 20016 { eval $1=; unset $1;} 20017} 20018as_unset=as_fn_unset 20019# as_fn_append VAR VALUE 20020# ---------------------- 20021# Append the text in VALUE to the end of the definition contained in VAR. Take 20022# advantage of any shell optimizations that allow amortized linear growth over 20023# repeated appends, instead of the typical quadratic growth present in naive 20024# implementations. 20025if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20026 eval 'as_fn_append () 20027 { 20028 eval $1+=\$2 20029 }' 20030else 20031 as_fn_append () 20032 { 20033 eval $1=\$$1\$2 20034 } 20035fi # as_fn_append 20036 20037# as_fn_arith ARG... 20038# ------------------ 20039# Perform arithmetic evaluation on the ARGs, and store the result in the 20040# global $as_val. Take advantage of shells that can avoid forks. The arguments 20041# must be portable across $(()) and expr. 20042if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20043 eval 'as_fn_arith () 20044 { 20045 as_val=$(( $* )) 20046 }' 20047else 20048 as_fn_arith () 20049 { 20050 as_val=`expr "$@" || test $? -eq 1` 20051 } 20052fi # as_fn_arith 20053 20054 20055if expr a : '\(a\)' >/dev/null 2>&1 && 20056 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20057 as_expr=expr 20058else 20059 as_expr=false 20060fi 20061 20062if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20063 as_basename=basename 20064else 20065 as_basename=false 20066fi 20067 20068if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20069 as_dirname=dirname 20070else 20071 as_dirname=false 20072fi 20073 20074as_me=`$as_basename -- "$0" || 20075$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20076 X"$0" : 'X\(//\)$' \| \ 20077 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20078$as_echo X/"$0" | 20079 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20080 s//\1/ 20081 q 20082 } 20083 /^X\/\(\/\/\)$/{ 20084 s//\1/ 20085 q 20086 } 20087 /^X\/\(\/\).*/{ 20088 s//\1/ 20089 q 20090 } 20091 s/.*/./; q'` 20092 20093# Avoid depending upon Character Ranges. 20094as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20095as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20096as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20097as_cr_digits='0123456789' 20098as_cr_alnum=$as_cr_Letters$as_cr_digits 20099 20100ECHO_C= ECHO_N= ECHO_T= 20101case `echo -n x` in #((((( 20102-n*) 20103 case `echo 'xy\c'` in 20104 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20105 xy) ECHO_C='\c';; 20106 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20107 ECHO_T=' ';; 20108 esac;; 20109*) 20110 ECHO_N='-n';; 20111esac 20112 20113rm -f conf$$ conf$$.exe conf$$.file 20114if test -d conf$$.dir; then 20115 rm -f conf$$.dir/conf$$.file 20116else 20117 rm -f conf$$.dir 20118 mkdir conf$$.dir 2>/dev/null 20119fi 20120if (echo >conf$$.file) 2>/dev/null; then 20121 if ln -s conf$$.file conf$$ 2>/dev/null; then 20122 as_ln_s='ln -s' 20123 # ... but there are two gotchas: 20124 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20125 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20126 # In both cases, we have to default to `cp -pR'. 20127 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20128 as_ln_s='cp -pR' 20129 elif ln conf$$.file conf$$ 2>/dev/null; then 20130 as_ln_s=ln 20131 else 20132 as_ln_s='cp -pR' 20133 fi 20134else 20135 as_ln_s='cp -pR' 20136fi 20137rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20138rmdir conf$$.dir 2>/dev/null 20139 20140 20141# as_fn_mkdir_p 20142# ------------- 20143# Create "$as_dir" as a directory, including parents if necessary. 20144as_fn_mkdir_p () 20145{ 20146 20147 case $as_dir in #( 20148 -*) as_dir=./$as_dir;; 20149 esac 20150 test -d "$as_dir" || eval $as_mkdir_p || { 20151 as_dirs= 20152 while :; do 20153 case $as_dir in #( 20154 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20155 *) as_qdir=$as_dir;; 20156 esac 20157 as_dirs="'$as_qdir' $as_dirs" 20158 as_dir=`$as_dirname -- "$as_dir" || 20159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20160 X"$as_dir" : 'X\(//\)[^/]' \| \ 20161 X"$as_dir" : 'X\(//\)$' \| \ 20162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20163$as_echo X"$as_dir" | 20164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20165 s//\1/ 20166 q 20167 } 20168 /^X\(\/\/\)[^/].*/{ 20169 s//\1/ 20170 q 20171 } 20172 /^X\(\/\/\)$/{ 20173 s//\1/ 20174 q 20175 } 20176 /^X\(\/\).*/{ 20177 s//\1/ 20178 q 20179 } 20180 s/.*/./; q'` 20181 test -d "$as_dir" && break 20182 done 20183 test -z "$as_dirs" || eval "mkdir $as_dirs" 20184 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20185 20186 20187} # as_fn_mkdir_p 20188if mkdir -p . 2>/dev/null; then 20189 as_mkdir_p='mkdir -p "$as_dir"' 20190else 20191 test -d ./-p && rmdir ./-p 20192 as_mkdir_p=false 20193fi 20194 20195 20196# as_fn_executable_p FILE 20197# ----------------------- 20198# Test if FILE is an executable regular file. 20199as_fn_executable_p () 20200{ 20201 test -f "$1" && test -x "$1" 20202} # as_fn_executable_p 20203as_test_x='test -x' 20204as_executable_p=as_fn_executable_p 20205 20206# Sed expression to map a string onto a valid CPP name. 20207as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20208 20209# Sed expression to map a string onto a valid variable name. 20210as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20211 20212 20213exec 6>&1 20214## ----------------------------------- ## 20215## Main body of $CONFIG_STATUS script. ## 20216## ----------------------------------- ## 20217_ASEOF 20218test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20219 20220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20221# Save the log message, to keep $0 and so on meaningful, and to 20222# report actual input values of CONFIG_FILES etc. instead of their 20223# values after options handling. 20224ac_log=" 20225This file was extended by Icecast $as_me 2.4.0-kh15, which was 20226generated by GNU Autoconf 2.69. Invocation command line was 20227 20228 CONFIG_FILES = $CONFIG_FILES 20229 CONFIG_HEADERS = $CONFIG_HEADERS 20230 CONFIG_LINKS = $CONFIG_LINKS 20231 CONFIG_COMMANDS = $CONFIG_COMMANDS 20232 $ $0 $@ 20233 20234on `(hostname || uname -n) 2>/dev/null | sed 1q` 20235" 20236 20237_ACEOF 20238 20239case $ac_config_files in *" 20240"*) set x $ac_config_files; shift; ac_config_files=$*;; 20241esac 20242 20243case $ac_config_headers in *" 20244"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20245esac 20246 20247 20248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20249# Files that config.status was made for. 20250config_files="$ac_config_files" 20251config_headers="$ac_config_headers" 20252config_commands="$ac_config_commands" 20253 20254_ACEOF 20255 20256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20257ac_cs_usage="\ 20258\`$as_me' instantiates files and other configuration actions 20259from templates according to the current configuration. Unless the files 20260and actions are specified as TAGs, all are instantiated by default. 20261 20262Usage: $0 [OPTION]... [TAG]... 20263 20264 -h, --help print this help, then exit 20265 -V, --version print version number and configuration settings, then exit 20266 --config print configuration, then exit 20267 -q, --quiet, --silent 20268 do not print progress messages 20269 -d, --debug don't remove temporary files 20270 --recheck update $as_me by reconfiguring in the same conditions 20271 --file=FILE[:TEMPLATE] 20272 instantiate the configuration file FILE 20273 --header=FILE[:TEMPLATE] 20274 instantiate the configuration header FILE 20275 20276Configuration files: 20277$config_files 20278 20279Configuration headers: 20280$config_headers 20281 20282Configuration commands: 20283$config_commands 20284 20285Report bugs to <karl@kheyes.plus.com>." 20286 20287_ACEOF 20288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20289ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20290ac_cs_version="\\ 20291Icecast config.status 2.4.0-kh15 20292configured by $0, generated by GNU Autoconf 2.69, 20293 with options \\"\$ac_cs_config\\" 20294 20295Copyright (C) 2012 Free Software Foundation, Inc. 20296This config.status script is free software; the Free Software Foundation 20297gives unlimited permission to copy, distribute and modify it." 20298 20299ac_pwd='$ac_pwd' 20300srcdir='$srcdir' 20301INSTALL='$INSTALL' 20302MKDIR_P='$MKDIR_P' 20303AWK='$AWK' 20304test -n "\$AWK" || AWK=awk 20305_ACEOF 20306 20307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20308# The default lists apply if the user does not specify any file. 20309ac_need_defaults=: 20310while test $# != 0 20311do 20312 case $1 in 20313 --*=?*) 20314 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20315 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20316 ac_shift=: 20317 ;; 20318 --*=) 20319 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20320 ac_optarg= 20321 ac_shift=: 20322 ;; 20323 *) 20324 ac_option=$1 20325 ac_optarg=$2 20326 ac_shift=shift 20327 ;; 20328 esac 20329 20330 case $ac_option in 20331 # Handling of the options. 20332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20333 ac_cs_recheck=: ;; 20334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20335 $as_echo "$ac_cs_version"; exit ;; 20336 --config | --confi | --conf | --con | --co | --c ) 20337 $as_echo "$ac_cs_config"; exit ;; 20338 --debug | --debu | --deb | --de | --d | -d ) 20339 debug=: ;; 20340 --file | --fil | --fi | --f ) 20341 $ac_shift 20342 case $ac_optarg in 20343 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20344 '') as_fn_error $? "missing file argument" ;; 20345 esac 20346 as_fn_append CONFIG_FILES " '$ac_optarg'" 20347 ac_need_defaults=false;; 20348 --header | --heade | --head | --hea ) 20349 $ac_shift 20350 case $ac_optarg in 20351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20352 esac 20353 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20354 ac_need_defaults=false;; 20355 --he | --h) 20356 # Conflict between --help and --header 20357 as_fn_error $? "ambiguous option: \`$1' 20358Try \`$0 --help' for more information.";; 20359 --help | --hel | -h ) 20360 $as_echo "$ac_cs_usage"; exit ;; 20361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20362 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20363 ac_cs_silent=: ;; 20364 20365 # This is an error. 20366 -*) as_fn_error $? "unrecognized option: \`$1' 20367Try \`$0 --help' for more information." ;; 20368 20369 *) as_fn_append ac_config_targets " $1" 20370 ac_need_defaults=false ;; 20371 20372 esac 20373 shift 20374done 20375 20376ac_configure_extra_args= 20377 20378if $ac_cs_silent; then 20379 exec 6>/dev/null 20380 ac_configure_extra_args="$ac_configure_extra_args --silent" 20381fi 20382 20383_ACEOF 20384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20385if \$ac_cs_recheck; then 20386 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20387 shift 20388 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20389 CONFIG_SHELL='$SHELL' 20390 export CONFIG_SHELL 20391 exec "\$@" 20392fi 20393 20394_ACEOF 20395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20396exec 5>>config.log 20397{ 20398 echo 20399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20400## Running $as_me. ## 20401_ASBOX 20402 $as_echo "$ac_log" 20403} >&5 20404 20405_ACEOF 20406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20407# 20408# INIT-COMMANDS 20409# 20410AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20411 20412 20413# The HP-UX ksh and POSIX shell print the target directory to stdout 20414# if CDPATH is set. 20415(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20416 20417sed_quote_subst='$sed_quote_subst' 20418double_quote_subst='$double_quote_subst' 20419delay_variable_subst='$delay_variable_subst' 20420macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20421macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20422enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20423enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20424pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20425enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20426shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20427SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20428ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20429PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20430host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20431host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20432host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20433build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20434build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20435build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20436SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20437Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20438GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20439EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20440FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20441LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20442NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20443LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20444max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20445ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20446exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20447lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20448lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20449lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20450lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20451lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20452reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20453reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20454OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20455deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20456file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20457file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20458want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20459DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20460sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20461AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20462AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20463archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20464STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20465RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20466old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20467old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20468old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20469lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20470CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20471CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20472compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20473GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20474lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20475lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20476lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20477lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20478lt_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"`' 20479lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20480nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20481lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20482lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20483objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20484MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20485lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20486lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20487lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20488lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20489lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20490need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20491MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20492DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20493NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20494LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20495OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20496OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20497libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20498shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20499extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20500archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20501enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20502export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20503whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20504compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20505old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20506old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20507archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20508archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20509module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20510module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20511with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20512allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20513no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20514hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20515hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20516hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20517hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20518hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20519hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20520hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20521inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20522link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20523always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20524export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20525exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20526include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20527prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20528postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20529file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20530variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20531need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20532need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20533version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20534runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20535shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20536shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20537libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20538library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20539soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20540install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20541postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20542postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20543finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20544finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20545hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20546sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20547configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20548configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20549hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20550enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20551enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20552enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20553old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20554striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20555compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20556predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20557postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20558predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20559postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20560compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20561LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20562reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20563reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20564old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20565compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20566GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20567lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20568lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20569lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20570lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20571lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20572archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20573enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20574export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20575whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20576compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20577old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20578old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20579archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20580archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20581module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20582module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20583with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20584allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20585no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20586hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20587hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20588hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20589hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20590hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20591hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20592hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20593inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20594link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20595always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20596export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20597exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20598include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20599prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20600postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20601file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20602hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20603compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20604predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20605postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20606predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20607postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20608compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20609 20610LTCC='$LTCC' 20611LTCFLAGS='$LTCFLAGS' 20612compiler='$compiler_DEFAULT' 20613 20614# A function that is used when there is no print builtin or printf. 20615func_fallback_echo () 20616{ 20617 eval 'cat <<_LTECHO_EOF 20618\$1 20619_LTECHO_EOF' 20620} 20621 20622# Quote evaled strings. 20623for var in SHELL \ 20624ECHO \ 20625PATH_SEPARATOR \ 20626SED \ 20627GREP \ 20628EGREP \ 20629FGREP \ 20630LD \ 20631NM \ 20632LN_S \ 20633lt_SP2NL \ 20634lt_NL2SP \ 20635reload_flag \ 20636OBJDUMP \ 20637deplibs_check_method \ 20638file_magic_cmd \ 20639file_magic_glob \ 20640want_nocaseglob \ 20641DLLTOOL \ 20642sharedlib_from_linklib_cmd \ 20643AR \ 20644AR_FLAGS \ 20645archiver_list_spec \ 20646STRIP \ 20647RANLIB \ 20648CC \ 20649CFLAGS \ 20650compiler \ 20651lt_cv_sys_global_symbol_pipe \ 20652lt_cv_sys_global_symbol_to_cdecl \ 20653lt_cv_sys_global_symbol_to_import \ 20654lt_cv_sys_global_symbol_to_c_name_address \ 20655lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20656lt_cv_nm_interface \ 20657nm_file_list_spec \ 20658lt_cv_truncate_bin \ 20659lt_prog_compiler_no_builtin_flag \ 20660lt_prog_compiler_pic \ 20661lt_prog_compiler_wl \ 20662lt_prog_compiler_static \ 20663lt_cv_prog_compiler_c_o \ 20664need_locks \ 20665MANIFEST_TOOL \ 20666DSYMUTIL \ 20667NMEDIT \ 20668LIPO \ 20669OTOOL \ 20670OTOOL64 \ 20671shrext_cmds \ 20672export_dynamic_flag_spec \ 20673whole_archive_flag_spec \ 20674compiler_needs_object \ 20675with_gnu_ld \ 20676allow_undefined_flag \ 20677no_undefined_flag \ 20678hardcode_libdir_flag_spec \ 20679hardcode_libdir_separator \ 20680exclude_expsyms \ 20681include_expsyms \ 20682file_list_spec \ 20683variables_saved_for_relink \ 20684libname_spec \ 20685library_names_spec \ 20686soname_spec \ 20687install_override_mode \ 20688finish_eval \ 20689old_striplib \ 20690striplib \ 20691compiler_lib_search_dirs \ 20692predep_objects \ 20693postdep_objects \ 20694predeps \ 20695postdeps \ 20696compiler_lib_search_path \ 20697LD_CXX \ 20698reload_flag_CXX \ 20699compiler_CXX \ 20700lt_prog_compiler_no_builtin_flag_CXX \ 20701lt_prog_compiler_pic_CXX \ 20702lt_prog_compiler_wl_CXX \ 20703lt_prog_compiler_static_CXX \ 20704lt_cv_prog_compiler_c_o_CXX \ 20705export_dynamic_flag_spec_CXX \ 20706whole_archive_flag_spec_CXX \ 20707compiler_needs_object_CXX \ 20708with_gnu_ld_CXX \ 20709allow_undefined_flag_CXX \ 20710no_undefined_flag_CXX \ 20711hardcode_libdir_flag_spec_CXX \ 20712hardcode_libdir_separator_CXX \ 20713exclude_expsyms_CXX \ 20714include_expsyms_CXX \ 20715file_list_spec_CXX \ 20716compiler_lib_search_dirs_CXX \ 20717predep_objects_CXX \ 20718postdep_objects_CXX \ 20719predeps_CXX \ 20720postdeps_CXX \ 20721compiler_lib_search_path_CXX; do 20722 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20723 *[\\\\\\\`\\"\\\$]*) 20724 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20725 ;; 20726 *) 20727 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20728 ;; 20729 esac 20730done 20731 20732# Double-quote double-evaled strings. 20733for var in reload_cmds \ 20734old_postinstall_cmds \ 20735old_postuninstall_cmds \ 20736old_archive_cmds \ 20737extract_expsyms_cmds \ 20738old_archive_from_new_cmds \ 20739old_archive_from_expsyms_cmds \ 20740archive_cmds \ 20741archive_expsym_cmds \ 20742module_cmds \ 20743module_expsym_cmds \ 20744export_symbols_cmds \ 20745prelink_cmds \ 20746postlink_cmds \ 20747postinstall_cmds \ 20748postuninstall_cmds \ 20749finish_cmds \ 20750sys_lib_search_path_spec \ 20751configure_time_dlsearch_path \ 20752configure_time_lt_sys_library_path \ 20753reload_cmds_CXX \ 20754old_archive_cmds_CXX \ 20755old_archive_from_new_cmds_CXX \ 20756old_archive_from_expsyms_cmds_CXX \ 20757archive_cmds_CXX \ 20758archive_expsym_cmds_CXX \ 20759module_cmds_CXX \ 20760module_expsym_cmds_CXX \ 20761export_symbols_cmds_CXX \ 20762prelink_cmds_CXX \ 20763postlink_cmds_CXX; do 20764 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20765 *[\\\\\\\`\\"\\\$]*) 20766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20767 ;; 20768 *) 20769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20770 ;; 20771 esac 20772done 20773 20774ac_aux_dir='$ac_aux_dir' 20775 20776# See if we are running on zsh, and set the options that allow our 20777# commands through without removal of \ escapes INIT. 20778if test -n "\${ZSH_VERSION+set}"; then 20779 setopt NO_GLOB_SUBST 20780fi 20781 20782 20783 PACKAGE='$PACKAGE' 20784 VERSION='$VERSION' 20785 RM='$RM' 20786 ofile='$ofile' 20787 20788 20789 20790 20791 20792 20793_ACEOF 20794 20795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20796 20797# Handling of arguments. 20798for ac_config_target in $ac_config_targets 20799do 20800 case $ac_config_target in 20801 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20802 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20803 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20804 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20805 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 20806 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20807 "src/avl/Makefile") CONFIG_FILES="$CONFIG_FILES src/avl/Makefile" ;; 20808 "src/httpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/httpp/Makefile" ;; 20809 "src/thread/Makefile") CONFIG_FILES="$CONFIG_FILES src/thread/Makefile" ;; 20810 "src/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/log/Makefile" ;; 20811 "src/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/net/Makefile" ;; 20812 "src/timing/Makefile") CONFIG_FILES="$CONFIG_FILES src/timing/Makefile" ;; 20813 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20814 "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;; 20815 "web/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/Makefile" ;; 20816 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 20817 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;; 20818 20819 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20820 esac 20821done 20822 20823 20824# If the user did not use the arguments to specify the items to instantiate, 20825# then the envvar interface is used. Set only those that are not. 20826# We use the long form for the default assignment because of an extremely 20827# bizarre bug on SunOS 4.1.3. 20828if $ac_need_defaults; then 20829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20832fi 20833 20834# Have a temporary directory for convenience. Make it in the build tree 20835# simply because there is no reason against having it here, and in addition, 20836# creating and moving files from /tmp can sometimes cause problems. 20837# Hook for its removal unless debugging. 20838# Note that there is a small window in which the directory will not be cleaned: 20839# after its creation but before its name has been assigned to `$tmp'. 20840$debug || 20841{ 20842 tmp= ac_tmp= 20843 trap 'exit_status=$? 20844 : "${ac_tmp:=$tmp}" 20845 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20846' 0 20847 trap 'as_fn_exit 1' 1 2 13 15 20848} 20849# Create a (secure) tmp directory for tmp files. 20850 20851{ 20852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20853 test -d "$tmp" 20854} || 20855{ 20856 tmp=./conf$$-$RANDOM 20857 (umask 077 && mkdir "$tmp") 20858} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20859ac_tmp=$tmp 20860 20861# Set up the scripts for CONFIG_FILES section. 20862# No need to generate them if there are no CONFIG_FILES. 20863# This happens for instance with `./config.status config.h'. 20864if test -n "$CONFIG_FILES"; then 20865 20866 20867ac_cr=`echo X | tr X '\015'` 20868# On cygwin, bash can eat \r inside `` if the user requested igncr. 20869# But we know of no other shell where ac_cr would be empty at this 20870# point, so we can use a bashism as a fallback. 20871if test "x$ac_cr" = x; then 20872 eval ac_cr=\$\'\\r\' 20873fi 20874ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20875if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20876 ac_cs_awk_cr='\\r' 20877else 20878 ac_cs_awk_cr=$ac_cr 20879fi 20880 20881echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20882_ACEOF 20883 20884 20885{ 20886 echo "cat >conf$$subs.awk <<_ACEOF" && 20887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20888 echo "_ACEOF" 20889} >conf$$subs.sh || 20890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20891ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20892ac_delim='%!_!# ' 20893for ac_last_try in false false false false false :; do 20894 . ./conf$$subs.sh || 20895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20896 20897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20898 if test $ac_delim_n = $ac_delim_num; then 20899 break 20900 elif $ac_last_try; then 20901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20902 else 20903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20904 fi 20905done 20906rm -f conf$$subs.sh 20907 20908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20909cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20910_ACEOF 20911sed -n ' 20912h 20913s/^/S["/; s/!.*/"]=/ 20914p 20915g 20916s/^[^!]*!// 20917:repl 20918t repl 20919s/'"$ac_delim"'$// 20920t delim 20921:nl 20922h 20923s/\(.\{148\}\)..*/\1/ 20924t more1 20925s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20926p 20927n 20928b repl 20929:more1 20930s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20931p 20932g 20933s/.\{148\}// 20934t nl 20935:delim 20936h 20937s/\(.\{148\}\)..*/\1/ 20938t more2 20939s/["\\]/\\&/g; s/^/"/; s/$/"/ 20940p 20941b 20942:more2 20943s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20944p 20945g 20946s/.\{148\}// 20947t delim 20948' <conf$$subs.awk | sed ' 20949/^[^""]/{ 20950 N 20951 s/\n// 20952} 20953' >>$CONFIG_STATUS || ac_write_fail=1 20954rm -f conf$$subs.awk 20955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20956_ACAWK 20957cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20958 for (key in S) S_is_set[key] = 1 20959 FS = "" 20960 20961} 20962{ 20963 line = $ 0 20964 nfields = split(line, field, "@") 20965 substed = 0 20966 len = length(field[1]) 20967 for (i = 2; i < nfields; i++) { 20968 key = field[i] 20969 keylen = length(key) 20970 if (S_is_set[key]) { 20971 value = S[key] 20972 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20973 len += length(value) + length(field[++i]) 20974 substed = 1 20975 } else 20976 len += 1 + keylen 20977 } 20978 20979 print line 20980} 20981 20982_ACAWK 20983_ACEOF 20984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20985if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20987else 20988 cat 20989fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20991_ACEOF 20992 20993# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20994# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20995# trailing colons and then remove the whole line if VPATH becomes empty 20996# (actually we leave an empty line to preserve line numbers). 20997if test "x$srcdir" = x.; then 20998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20999h 21000s/// 21001s/^/:/ 21002s/[ ]*$/:/ 21003s/:\$(srcdir):/:/g 21004s/:\${srcdir}:/:/g 21005s/:@srcdir@:/:/g 21006s/^:*// 21007s/:*$// 21008x 21009s/\(=[ ]*\).*/\1/ 21010G 21011s/\n// 21012s/^[^=]*=[ ]*$// 21013}' 21014fi 21015 21016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21017fi # test -n "$CONFIG_FILES" 21018 21019# Set up the scripts for CONFIG_HEADERS section. 21020# No need to generate them if there are no CONFIG_HEADERS. 21021# This happens for instance with `./config.status Makefile'. 21022if test -n "$CONFIG_HEADERS"; then 21023cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21024BEGIN { 21025_ACEOF 21026 21027# Transform confdefs.h into an awk script `defines.awk', embedded as 21028# here-document in config.status, that substitutes the proper values into 21029# config.h.in to produce config.h. 21030 21031# Create a delimiter string that does not exist in confdefs.h, to ease 21032# handling of long lines. 21033ac_delim='%!_!# ' 21034for ac_last_try in false false :; do 21035 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21036 if test -z "$ac_tt"; then 21037 break 21038 elif $ac_last_try; then 21039 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21040 else 21041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21042 fi 21043done 21044 21045# For the awk script, D is an array of macro values keyed by name, 21046# likewise P contains macro parameters if any. Preserve backslash 21047# newline sequences. 21048 21049ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21050sed -n ' 21051s/.\{148\}/&'"$ac_delim"'/g 21052t rset 21053:rset 21054s/^[ ]*#[ ]*define[ ][ ]*/ / 21055t def 21056d 21057:def 21058s/\\$// 21059t bsnl 21060s/["\\]/\\&/g 21061s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21062D["\1"]=" \3"/p 21063s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21064d 21065:bsnl 21066s/["\\]/\\&/g 21067s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21068D["\1"]=" \3\\\\\\n"\\/p 21069t cont 21070s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21071t cont 21072d 21073:cont 21074n 21075s/.\{148\}/&'"$ac_delim"'/g 21076t clear 21077:clear 21078s/\\$// 21079t bsnlc 21080s/["\\]/\\&/g; s/^/"/; s/$/"/p 21081d 21082:bsnlc 21083s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21084b cont 21085' <confdefs.h | sed ' 21086s/'"$ac_delim"'/"\\\ 21087"/g' >>$CONFIG_STATUS || ac_write_fail=1 21088 21089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21090 for (key in D) D_is_set[key] = 1 21091 FS = "" 21092} 21093/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21094 line = \$ 0 21095 split(line, arg, " ") 21096 if (arg[1] == "#") { 21097 defundef = arg[2] 21098 mac1 = arg[3] 21099 } else { 21100 defundef = substr(arg[1], 2) 21101 mac1 = arg[2] 21102 } 21103 split(mac1, mac2, "(") #) 21104 macro = mac2[1] 21105 prefix = substr(line, 1, index(line, defundef) - 1) 21106 if (D_is_set[macro]) { 21107 # Preserve the white space surrounding the "#". 21108 print prefix "define", macro P[macro] D[macro] 21109 next 21110 } else { 21111 # Replace #undef with comments. This is necessary, for example, 21112 # in the case of _POSIX_SOURCE, which is predefined and required 21113 # on some systems where configure will not decide to define it. 21114 if (defundef == "undef") { 21115 print "/*", prefix defundef, macro, "*/" 21116 next 21117 } 21118 } 21119} 21120{ print } 21121_ACAWK 21122_ACEOF 21123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21124 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21125fi # test -n "$CONFIG_HEADERS" 21126 21127 21128eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21129shift 21130for ac_tag 21131do 21132 case $ac_tag in 21133 :[FHLC]) ac_mode=$ac_tag; continue;; 21134 esac 21135 case $ac_mode$ac_tag in 21136 :[FHL]*:*);; 21137 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21138 :[FH]-) ac_tag=-:-;; 21139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21140 esac 21141 ac_save_IFS=$IFS 21142 IFS=: 21143 set x $ac_tag 21144 IFS=$ac_save_IFS 21145 shift 21146 ac_file=$1 21147 shift 21148 21149 case $ac_mode in 21150 :L) ac_source=$1;; 21151 :[FH]) 21152 ac_file_inputs= 21153 for ac_f 21154 do 21155 case $ac_f in 21156 -) ac_f="$ac_tmp/stdin";; 21157 *) # Look for the file first in the build tree, then in the source tree 21158 # (if the path is not absolute). The absolute path cannot be DOS-style, 21159 # because $ac_f cannot contain `:'. 21160 test -f "$ac_f" || 21161 case $ac_f in 21162 [\\/$]*) false;; 21163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21164 esac || 21165 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21166 esac 21167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21168 as_fn_append ac_file_inputs " '$ac_f'" 21169 done 21170 21171 # Let's still pretend it is `configure' which instantiates (i.e., don't 21172 # use $as_me), people would be surprised to read: 21173 # /* config.h. Generated by config.status. */ 21174 configure_input='Generated from '` 21175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21176 `' by configure.' 21177 if test x"$ac_file" != x-; then 21178 configure_input="$ac_file. $configure_input" 21179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21180$as_echo "$as_me: creating $ac_file" >&6;} 21181 fi 21182 # Neutralize special characters interpreted by sed in replacement strings. 21183 case $configure_input in #( 21184 *\&* | *\|* | *\\* ) 21185 ac_sed_conf_input=`$as_echo "$configure_input" | 21186 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21187 *) ac_sed_conf_input=$configure_input;; 21188 esac 21189 21190 case $ac_tag in 21191 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21193 esac 21194 ;; 21195 esac 21196 21197 ac_dir=`$as_dirname -- "$ac_file" || 21198$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21199 X"$ac_file" : 'X\(//\)[^/]' \| \ 21200 X"$ac_file" : 'X\(//\)$' \| \ 21201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21202$as_echo X"$ac_file" | 21203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21204 s//\1/ 21205 q 21206 } 21207 /^X\(\/\/\)[^/].*/{ 21208 s//\1/ 21209 q 21210 } 21211 /^X\(\/\/\)$/{ 21212 s//\1/ 21213 q 21214 } 21215 /^X\(\/\).*/{ 21216 s//\1/ 21217 q 21218 } 21219 s/.*/./; q'` 21220 as_dir="$ac_dir"; as_fn_mkdir_p 21221 ac_builddir=. 21222 21223case "$ac_dir" in 21224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21225*) 21226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21227 # A ".." for each directory in $ac_dir_suffix. 21228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21229 case $ac_top_builddir_sub in 21230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21232 esac ;; 21233esac 21234ac_abs_top_builddir=$ac_pwd 21235ac_abs_builddir=$ac_pwd$ac_dir_suffix 21236# for backward compatibility: 21237ac_top_builddir=$ac_top_build_prefix 21238 21239case $srcdir in 21240 .) # We are building in place. 21241 ac_srcdir=. 21242 ac_top_srcdir=$ac_top_builddir_sub 21243 ac_abs_top_srcdir=$ac_pwd ;; 21244 [\\/]* | ?:[\\/]* ) # Absolute name. 21245 ac_srcdir=$srcdir$ac_dir_suffix; 21246 ac_top_srcdir=$srcdir 21247 ac_abs_top_srcdir=$srcdir ;; 21248 *) # Relative name. 21249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21250 ac_top_srcdir=$ac_top_build_prefix$srcdir 21251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21252esac 21253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21254 21255 21256 case $ac_mode in 21257 :F) 21258 # 21259 # CONFIG_FILE 21260 # 21261 21262 case $INSTALL in 21263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21265 esac 21266 ac_MKDIR_P=$MKDIR_P 21267 case $MKDIR_P in 21268 [\\/$]* | ?:[\\/]* ) ;; 21269 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21270 esac 21271_ACEOF 21272 21273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21274# If the template does not know about datarootdir, expand it. 21275# FIXME: This hack should be removed a few years after 2.60. 21276ac_datarootdir_hack=; ac_datarootdir_seen= 21277ac_sed_dataroot=' 21278/datarootdir/ { 21279 p 21280 q 21281} 21282/@datadir@/p 21283/@docdir@/p 21284/@infodir@/p 21285/@localedir@/p 21286/@mandir@/p' 21287case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21288*datarootdir*) ac_datarootdir_seen=yes;; 21289*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21291$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21292_ACEOF 21293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21294 ac_datarootdir_hack=' 21295 s&@datadir@&$datadir&g 21296 s&@docdir@&$docdir&g 21297 s&@infodir@&$infodir&g 21298 s&@localedir@&$localedir&g 21299 s&@mandir@&$mandir&g 21300 s&\\\${datarootdir}&$datarootdir&g' ;; 21301esac 21302_ACEOF 21303 21304# Neutralize VPATH when `$srcdir' = `.'. 21305# Shell code in configure.ac might set extrasub. 21306# FIXME: do we really want to maintain this feature? 21307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21308ac_sed_extra="$ac_vpsub 21309$extrasub 21310_ACEOF 21311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21312:t 21313/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21314s|@configure_input@|$ac_sed_conf_input|;t t 21315s&@top_builddir@&$ac_top_builddir_sub&;t t 21316s&@top_build_prefix@&$ac_top_build_prefix&;t t 21317s&@srcdir@&$ac_srcdir&;t t 21318s&@abs_srcdir@&$ac_abs_srcdir&;t t 21319s&@top_srcdir@&$ac_top_srcdir&;t t 21320s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21321s&@builddir@&$ac_builddir&;t t 21322s&@abs_builddir@&$ac_abs_builddir&;t t 21323s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21324s&@INSTALL@&$ac_INSTALL&;t t 21325s&@MKDIR_P@&$ac_MKDIR_P&;t t 21326$ac_datarootdir_hack 21327" 21328eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21329 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21330 21331test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21332 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21334 "$ac_tmp/out"`; test -z "$ac_out"; } && 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21336which seems to be undefined. Please make sure it is defined" >&5 21337$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21338which seems to be undefined. Please make sure it is defined" >&2;} 21339 21340 rm -f "$ac_tmp/stdin" 21341 case $ac_file in 21342 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21343 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21344 esac \ 21345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21346 ;; 21347 :H) 21348 # 21349 # CONFIG_HEADER 21350 # 21351 if test x"$ac_file" != x-; then 21352 { 21353 $as_echo "/* $configure_input */" \ 21354 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21355 } >"$ac_tmp/config.h" \ 21356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21357 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21358 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21359$as_echo "$as_me: $ac_file is unchanged" >&6;} 21360 else 21361 rm -f "$ac_file" 21362 mv "$ac_tmp/config.h" "$ac_file" \ 21363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21364 fi 21365 else 21366 $as_echo "/* $configure_input */" \ 21367 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21368 || as_fn_error $? "could not create -" "$LINENO" 5 21369 fi 21370# Compute "$ac_file"'s index in $config_headers. 21371_am_arg="$ac_file" 21372_am_stamp_count=1 21373for _am_header in $config_headers :; do 21374 case $_am_header in 21375 $_am_arg | $_am_arg:* ) 21376 break ;; 21377 * ) 21378 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21379 esac 21380done 21381echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21382$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21383 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21384 X"$_am_arg" : 'X\(//\)$' \| \ 21385 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21386$as_echo X"$_am_arg" | 21387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21388 s//\1/ 21389 q 21390 } 21391 /^X\(\/\/\)[^/].*/{ 21392 s//\1/ 21393 q 21394 } 21395 /^X\(\/\/\)$/{ 21396 s//\1/ 21397 q 21398 } 21399 /^X\(\/\).*/{ 21400 s//\1/ 21401 q 21402 } 21403 s/.*/./; q'`/stamp-h$_am_stamp_count 21404 ;; 21405 21406 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21407$as_echo "$as_me: executing $ac_file commands" >&6;} 21408 ;; 21409 esac 21410 21411 21412 case $ac_file$ac_mode in 21413 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21414 # Older Autoconf quotes --file arguments for eval, but not when files 21415 # are listed without --file. Let's play safe and only enable the eval 21416 # if we detect the quoting. 21417 # TODO: see whether this extra hack can be removed once we start 21418 # requiring Autoconf 2.70 or later. 21419 case $CONFIG_FILES in #( 21420 *\'*) : 21421 eval set x "$CONFIG_FILES" ;; #( 21422 *) : 21423 set x $CONFIG_FILES ;; #( 21424 *) : 21425 ;; 21426esac 21427 shift 21428 # Used to flag and report bootstrapping failures. 21429 am_rc=0 21430 for am_mf 21431 do 21432 # Strip MF so we end up with the name of the file. 21433 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21434 # Check whether this is an Automake generated Makefile which includes 21435 # dependency-tracking related rules and includes. 21436 # Grep'ing the whole file directly is not great: AIX grep has a line 21437 # limit of 2048, but all sed's we know have understand at least 4000. 21438 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21439 || continue 21440 am_dirpart=`$as_dirname -- "$am_mf" || 21441$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21442 X"$am_mf" : 'X\(//\)[^/]' \| \ 21443 X"$am_mf" : 'X\(//\)$' \| \ 21444 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21445$as_echo X"$am_mf" | 21446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21447 s//\1/ 21448 q 21449 } 21450 /^X\(\/\/\)[^/].*/{ 21451 s//\1/ 21452 q 21453 } 21454 /^X\(\/\/\)$/{ 21455 s//\1/ 21456 q 21457 } 21458 /^X\(\/\).*/{ 21459 s//\1/ 21460 q 21461 } 21462 s/.*/./; q'` 21463 am_filepart=`$as_basename -- "$am_mf" || 21464$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21465 X"$am_mf" : 'X\(//\)$' \| \ 21466 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21467$as_echo X/"$am_mf" | 21468 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21469 s//\1/ 21470 q 21471 } 21472 /^X\/\(\/\/\)$/{ 21473 s//\1/ 21474 q 21475 } 21476 /^X\/\(\/\).*/{ 21477 s//\1/ 21478 q 21479 } 21480 s/.*/./; q'` 21481 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21482 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21483 | $MAKE -f - am--depfiles" >&5 21484 (cd "$am_dirpart" \ 21485 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21486 | $MAKE -f - am--depfiles) >&5 2>&5 21487 ac_status=$? 21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21489 (exit $ac_status); } || am_rc=$? 21490 done 21491 if test $am_rc -ne 0; then 21492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21494as_fn_error $? "Something went wrong bootstrapping makefile fragments 21495 for automatic dependency tracking. Try re-running configure with the 21496 '--disable-dependency-tracking' option to at least be able to build 21497 the package (albeit without support for automatic dependency tracking). 21498See \`config.log' for more details" "$LINENO" 5; } 21499 fi 21500 { am_dirpart=; unset am_dirpart;} 21501 { am_filepart=; unset am_filepart;} 21502 { am_mf=; unset am_mf;} 21503 { am_rc=; unset am_rc;} 21504 rm -f conftest-deps.mk 21505} 21506 ;; 21507 "libtool":C) 21508 21509 # See if we are running on zsh, and set the options that allow our 21510 # commands through without removal of \ escapes. 21511 if test -n "${ZSH_VERSION+set}"; then 21512 setopt NO_GLOB_SUBST 21513 fi 21514 21515 cfgfile=${ofile}T 21516 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21517 $RM "$cfgfile" 21518 21519 cat <<_LT_EOF >> "$cfgfile" 21520#! $SHELL 21521# Generated automatically by $as_me ($PACKAGE) $VERSION 21522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21523# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21524 21525# Provide generalized library-building support services. 21526# Written by Gordon Matzigkeit, 1996 21527 21528# Copyright (C) 2014 Free Software Foundation, Inc. 21529# This is free software; see the source for copying conditions. There is NO 21530# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21531 21532# GNU Libtool is free software; you can redistribute it and/or modify 21533# it under the terms of the GNU General Public License as published by 21534# the Free Software Foundation; either version 2 of of the License, or 21535# (at your option) any later version. 21536# 21537# As a special exception to the GNU General Public License, if you 21538# distribute this file as part of a program or library that is built 21539# using GNU Libtool, you may include this file under the same 21540# distribution terms that you use for the rest of that program. 21541# 21542# GNU Libtool is distributed in the hope that it will be useful, but 21543# WITHOUT ANY WARRANTY; without even the implied warranty of 21544# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21545# GNU General Public License for more details. 21546# 21547# You should have received a copy of the GNU General Public License 21548# along with this program. If not, see <http://www.gnu.org/licenses/>. 21549 21550 21551# The names of the tagged configurations supported by this script. 21552available_tags='CXX ' 21553 21554# Configured defaults for sys_lib_dlsearch_path munging. 21555: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21556 21557# ### BEGIN LIBTOOL CONFIG 21558 21559# Which release of libtool.m4 was used? 21560macro_version=$macro_version 21561macro_revision=$macro_revision 21562 21563# Whether or not to build shared libraries. 21564build_libtool_libs=$enable_shared 21565 21566# Whether or not to build static libraries. 21567build_old_libs=$enable_static 21568 21569# What type of objects to build. 21570pic_mode=$pic_mode 21571 21572# Whether or not to optimize for fast installation. 21573fast_install=$enable_fast_install 21574 21575# Shared archive member basename,for filename based shared library versioning on AIX. 21576shared_archive_member_spec=$shared_archive_member_spec 21577 21578# Shell to use when invoking shell scripts. 21579SHELL=$lt_SHELL 21580 21581# An echo program that protects backslashes. 21582ECHO=$lt_ECHO 21583 21584# The PATH separator for the build system. 21585PATH_SEPARATOR=$lt_PATH_SEPARATOR 21586 21587# The host system. 21588host_alias=$host_alias 21589host=$host 21590host_os=$host_os 21591 21592# The build system. 21593build_alias=$build_alias 21594build=$build 21595build_os=$build_os 21596 21597# A sed program that does not truncate output. 21598SED=$lt_SED 21599 21600# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21601Xsed="\$SED -e 1s/^X//" 21602 21603# A grep program that handles long lines. 21604GREP=$lt_GREP 21605 21606# An ERE matcher. 21607EGREP=$lt_EGREP 21608 21609# A literal string matcher. 21610FGREP=$lt_FGREP 21611 21612# A BSD- or MS-compatible name lister. 21613NM=$lt_NM 21614 21615# Whether we need soft or hard links. 21616LN_S=$lt_LN_S 21617 21618# What is the maximum length of a command? 21619max_cmd_len=$max_cmd_len 21620 21621# Object file suffix (normally "o"). 21622objext=$ac_objext 21623 21624# Executable file suffix (normally ""). 21625exeext=$exeext 21626 21627# whether the shell understands "unset". 21628lt_unset=$lt_unset 21629 21630# turn spaces into newlines. 21631SP2NL=$lt_lt_SP2NL 21632 21633# turn newlines into spaces. 21634NL2SP=$lt_lt_NL2SP 21635 21636# convert \$build file names to \$host format. 21637to_host_file_cmd=$lt_cv_to_host_file_cmd 21638 21639# convert \$build files to toolchain format. 21640to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21641 21642# An object symbol dumper. 21643OBJDUMP=$lt_OBJDUMP 21644 21645# Method to check whether dependent libraries are shared objects. 21646deplibs_check_method=$lt_deplibs_check_method 21647 21648# Command to use when deplibs_check_method = "file_magic". 21649file_magic_cmd=$lt_file_magic_cmd 21650 21651# How to find potential files when deplibs_check_method = "file_magic". 21652file_magic_glob=$lt_file_magic_glob 21653 21654# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21655want_nocaseglob=$lt_want_nocaseglob 21656 21657# DLL creation program. 21658DLLTOOL=$lt_DLLTOOL 21659 21660# Command to associate shared and link libraries. 21661sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21662 21663# The archiver. 21664AR=$lt_AR 21665 21666# Flags to create an archive. 21667AR_FLAGS=$lt_AR_FLAGS 21668 21669# How to feed a file listing to the archiver. 21670archiver_list_spec=$lt_archiver_list_spec 21671 21672# A symbol stripping program. 21673STRIP=$lt_STRIP 21674 21675# Commands used to install an old-style archive. 21676RANLIB=$lt_RANLIB 21677old_postinstall_cmds=$lt_old_postinstall_cmds 21678old_postuninstall_cmds=$lt_old_postuninstall_cmds 21679 21680# Whether to use a lock for old archive extraction. 21681lock_old_archive_extraction=$lock_old_archive_extraction 21682 21683# A C compiler. 21684LTCC=$lt_CC 21685 21686# LTCC compiler flags. 21687LTCFLAGS=$lt_CFLAGS 21688 21689# Take the output of nm and produce a listing of raw symbols and C names. 21690global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21691 21692# Transform the output of nm in a proper C declaration. 21693global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21694 21695# Transform the output of nm into a list of symbols to manually relocate. 21696global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21697 21698# Transform the output of nm in a C name address pair. 21699global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21700 21701# Transform the output of nm in a C name address pair when lib prefix is needed. 21702global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21703 21704# The name lister interface. 21705nm_interface=$lt_lt_cv_nm_interface 21706 21707# Specify filename containing input files for \$NM. 21708nm_file_list_spec=$lt_nm_file_list_spec 21709 21710# The root where to search for dependent libraries,and where our libraries should be installed. 21711lt_sysroot=$lt_sysroot 21712 21713# Command to truncate a binary pipe. 21714lt_truncate_bin=$lt_lt_cv_truncate_bin 21715 21716# The name of the directory that contains temporary libtool files. 21717objdir=$objdir 21718 21719# Used to examine libraries when file_magic_cmd begins with "file". 21720MAGIC_CMD=$MAGIC_CMD 21721 21722# Must we lock files when doing compilation? 21723need_locks=$lt_need_locks 21724 21725# Manifest tool. 21726MANIFEST_TOOL=$lt_MANIFEST_TOOL 21727 21728# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21729DSYMUTIL=$lt_DSYMUTIL 21730 21731# Tool to change global to local symbols on Mac OS X. 21732NMEDIT=$lt_NMEDIT 21733 21734# Tool to manipulate fat objects and archives on Mac OS X. 21735LIPO=$lt_LIPO 21736 21737# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21738OTOOL=$lt_OTOOL 21739 21740# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21741OTOOL64=$lt_OTOOL64 21742 21743# Old archive suffix (normally "a"). 21744libext=$libext 21745 21746# Shared library suffix (normally ".so"). 21747shrext_cmds=$lt_shrext_cmds 21748 21749# The commands to extract the exported symbol list from a shared archive. 21750extract_expsyms_cmds=$lt_extract_expsyms_cmds 21751 21752# Variables whose values should be saved in libtool wrapper scripts and 21753# restored at link time. 21754variables_saved_for_relink=$lt_variables_saved_for_relink 21755 21756# Do we need the "lib" prefix for modules? 21757need_lib_prefix=$need_lib_prefix 21758 21759# Do we need a version for libraries? 21760need_version=$need_version 21761 21762# Library versioning type. 21763version_type=$version_type 21764 21765# Shared library runtime path variable. 21766runpath_var=$runpath_var 21767 21768# Shared library path variable. 21769shlibpath_var=$shlibpath_var 21770 21771# Is shlibpath searched before the hard-coded library search path? 21772shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21773 21774# Format of library name prefix. 21775libname_spec=$lt_libname_spec 21776 21777# List of archive names. First name is the real one, the rest are links. 21778# The last name is the one that the linker finds with -lNAME 21779library_names_spec=$lt_library_names_spec 21780 21781# The coded name of the library, if different from the real name. 21782soname_spec=$lt_soname_spec 21783 21784# Permission mode override for installation of shared libraries. 21785install_override_mode=$lt_install_override_mode 21786 21787# Command to use after installation of a shared archive. 21788postinstall_cmds=$lt_postinstall_cmds 21789 21790# Command to use after uninstallation of a shared archive. 21791postuninstall_cmds=$lt_postuninstall_cmds 21792 21793# Commands used to finish a libtool library installation in a directory. 21794finish_cmds=$lt_finish_cmds 21795 21796# As "finish_cmds", except a single script fragment to be evaled but 21797# not shown. 21798finish_eval=$lt_finish_eval 21799 21800# Whether we should hardcode library paths into libraries. 21801hardcode_into_libs=$hardcode_into_libs 21802 21803# Compile-time system search path for libraries. 21804sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21805 21806# Detected run-time system search path for libraries. 21807sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21808 21809# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21810configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21811 21812# Whether dlopen is supported. 21813dlopen_support=$enable_dlopen 21814 21815# Whether dlopen of programs is supported. 21816dlopen_self=$enable_dlopen_self 21817 21818# Whether dlopen of statically linked programs is supported. 21819dlopen_self_static=$enable_dlopen_self_static 21820 21821# Commands to strip libraries. 21822old_striplib=$lt_old_striplib 21823striplib=$lt_striplib 21824 21825 21826# The linker used to build libraries. 21827LD=$lt_LD 21828 21829# How to create reloadable object files. 21830reload_flag=$lt_reload_flag 21831reload_cmds=$lt_reload_cmds 21832 21833# Commands used to build an old-style archive. 21834old_archive_cmds=$lt_old_archive_cmds 21835 21836# A language specific compiler. 21837CC=$lt_compiler 21838 21839# Is the compiler the GNU compiler? 21840with_gcc=$GCC 21841 21842# Compiler flag to turn off builtin functions. 21843no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21844 21845# Additional compiler flags for building library objects. 21846pic_flag=$lt_lt_prog_compiler_pic 21847 21848# How to pass a linker flag through the compiler. 21849wl=$lt_lt_prog_compiler_wl 21850 21851# Compiler flag to prevent dynamic linking. 21852link_static_flag=$lt_lt_prog_compiler_static 21853 21854# Does compiler simultaneously support -c and -o options? 21855compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21856 21857# Whether or not to add -lc for building shared libraries. 21858build_libtool_need_lc=$archive_cmds_need_lc 21859 21860# Whether or not to disallow shared libs when runtime libs are static. 21861allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21862 21863# Compiler flag to allow reflexive dlopens. 21864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21865 21866# Compiler flag to generate shared objects directly from archives. 21867whole_archive_flag_spec=$lt_whole_archive_flag_spec 21868 21869# Whether the compiler copes with passing no objects directly. 21870compiler_needs_object=$lt_compiler_needs_object 21871 21872# Create an old-style archive from a shared archive. 21873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21874 21875# Create a temporary old-style archive to link instead of a shared archive. 21876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21877 21878# Commands used to build a shared archive. 21879archive_cmds=$lt_archive_cmds 21880archive_expsym_cmds=$lt_archive_expsym_cmds 21881 21882# Commands used to build a loadable module if different from building 21883# a shared archive. 21884module_cmds=$lt_module_cmds 21885module_expsym_cmds=$lt_module_expsym_cmds 21886 21887# Whether we are building with GNU ld or not. 21888with_gnu_ld=$lt_with_gnu_ld 21889 21890# Flag that allows shared libraries with undefined symbols to be built. 21891allow_undefined_flag=$lt_allow_undefined_flag 21892 21893# Flag that enforces no undefined symbols. 21894no_undefined_flag=$lt_no_undefined_flag 21895 21896# Flag to hardcode \$libdir into a binary during linking. 21897# This must work even if \$libdir does not exist 21898hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21899 21900# Whether we need a single "-rpath" flag with a separated argument. 21901hardcode_libdir_separator=$lt_hardcode_libdir_separator 21902 21903# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21904# DIR into the resulting binary. 21905hardcode_direct=$hardcode_direct 21906 21907# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21908# DIR into the resulting binary and the resulting library dependency is 21909# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21910# library is relocated. 21911hardcode_direct_absolute=$hardcode_direct_absolute 21912 21913# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21914# into the resulting binary. 21915hardcode_minus_L=$hardcode_minus_L 21916 21917# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21918# into the resulting binary. 21919hardcode_shlibpath_var=$hardcode_shlibpath_var 21920 21921# Set to "yes" if building a shared library automatically hardcodes DIR 21922# into the library and all subsequent libraries and executables linked 21923# against it. 21924hardcode_automatic=$hardcode_automatic 21925 21926# Set to yes if linker adds runtime paths of dependent libraries 21927# to runtime path list. 21928inherit_rpath=$inherit_rpath 21929 21930# Whether libtool must link a program against all its dependency libraries. 21931link_all_deplibs=$link_all_deplibs 21932 21933# Set to "yes" if exported symbols are required. 21934always_export_symbols=$always_export_symbols 21935 21936# The commands to list exported symbols. 21937export_symbols_cmds=$lt_export_symbols_cmds 21938 21939# Symbols that should not be listed in the preloaded symbols. 21940exclude_expsyms=$lt_exclude_expsyms 21941 21942# Symbols that must always be exported. 21943include_expsyms=$lt_include_expsyms 21944 21945# Commands necessary for linking programs (against libraries) with templates. 21946prelink_cmds=$lt_prelink_cmds 21947 21948# Commands necessary for finishing linking programs. 21949postlink_cmds=$lt_postlink_cmds 21950 21951# Specify filename containing input files. 21952file_list_spec=$lt_file_list_spec 21953 21954# How to hardcode a shared library path into an executable. 21955hardcode_action=$hardcode_action 21956 21957# The directories searched by this compiler when creating a shared library. 21958compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21959 21960# Dependencies to place before and after the objects being linked to 21961# create a shared library. 21962predep_objects=$lt_predep_objects 21963postdep_objects=$lt_postdep_objects 21964predeps=$lt_predeps 21965postdeps=$lt_postdeps 21966 21967# The library search path used internally by the compiler when linking 21968# a shared library. 21969compiler_lib_search_path=$lt_compiler_lib_search_path 21970 21971# ### END LIBTOOL CONFIG 21972 21973_LT_EOF 21974 21975 cat <<'_LT_EOF' >> "$cfgfile" 21976 21977# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21978 21979# func_munge_path_list VARIABLE PATH 21980# ----------------------------------- 21981# VARIABLE is name of variable containing _space_ separated list of 21982# directories to be munged by the contents of PATH, which is string 21983# having a format: 21984# "DIR[:DIR]:" 21985# string "DIR[ DIR]" will be prepended to VARIABLE 21986# ":DIR[:DIR]" 21987# string "DIR[ DIR]" will be appended to VARIABLE 21988# "DIRP[:DIRP]::[DIRA:]DIRA" 21989# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21990# "DIRA[ DIRA]" will be appended to VARIABLE 21991# "DIR[:DIR]" 21992# VARIABLE will be replaced by "DIR[ DIR]" 21993func_munge_path_list () 21994{ 21995 case x$2 in 21996 x) 21997 ;; 21998 *:) 21999 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22000 ;; 22001 x:*) 22002 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22003 ;; 22004 *::*) 22005 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22006 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22007 ;; 22008 *) 22009 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22010 ;; 22011 esac 22012} 22013 22014 22015# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22016func_cc_basename () 22017{ 22018 for cc_temp in $*""; do 22019 case $cc_temp in 22020 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22021 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22022 \-*) ;; 22023 *) break;; 22024 esac 22025 done 22026 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22027} 22028 22029 22030# ### END FUNCTIONS SHARED WITH CONFIGURE 22031 22032_LT_EOF 22033 22034 case $host_os in 22035 aix3*) 22036 cat <<\_LT_EOF >> "$cfgfile" 22037# AIX sometimes has problems with the GCC collect2 program. For some 22038# reason, if we set the COLLECT_NAMES environment variable, the problems 22039# vanish in a puff of smoke. 22040if test set != "${COLLECT_NAMES+set}"; then 22041 COLLECT_NAMES= 22042 export COLLECT_NAMES 22043fi 22044_LT_EOF 22045 ;; 22046 esac 22047 22048 22049ltmain=$ac_aux_dir/ltmain.sh 22050 22051 22052 # We use sed instead of cat because bash on DJGPP gets confused if 22053 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22054 # text mode, it properly converts lines to CR/LF. This bash problem 22055 # is reportedly fixed, but why not run on old versions too? 22056 sed '$q' "$ltmain" >> "$cfgfile" \ 22057 || (rm -f "$cfgfile"; exit 1) 22058 22059 mv -f "$cfgfile" "$ofile" || 22060 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22061 chmod +x "$ofile" 22062 22063 22064 cat <<_LT_EOF >> "$ofile" 22065 22066# ### BEGIN LIBTOOL TAG CONFIG: CXX 22067 22068# The linker used to build libraries. 22069LD=$lt_LD_CXX 22070 22071# How to create reloadable object files. 22072reload_flag=$lt_reload_flag_CXX 22073reload_cmds=$lt_reload_cmds_CXX 22074 22075# Commands used to build an old-style archive. 22076old_archive_cmds=$lt_old_archive_cmds_CXX 22077 22078# A language specific compiler. 22079CC=$lt_compiler_CXX 22080 22081# Is the compiler the GNU compiler? 22082with_gcc=$GCC_CXX 22083 22084# Compiler flag to turn off builtin functions. 22085no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22086 22087# Additional compiler flags for building library objects. 22088pic_flag=$lt_lt_prog_compiler_pic_CXX 22089 22090# How to pass a linker flag through the compiler. 22091wl=$lt_lt_prog_compiler_wl_CXX 22092 22093# Compiler flag to prevent dynamic linking. 22094link_static_flag=$lt_lt_prog_compiler_static_CXX 22095 22096# Does compiler simultaneously support -c and -o options? 22097compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22098 22099# Whether or not to add -lc for building shared libraries. 22100build_libtool_need_lc=$archive_cmds_need_lc_CXX 22101 22102# Whether or not to disallow shared libs when runtime libs are static. 22103allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22104 22105# Compiler flag to allow reflexive dlopens. 22106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22107 22108# Compiler flag to generate shared objects directly from archives. 22109whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22110 22111# Whether the compiler copes with passing no objects directly. 22112compiler_needs_object=$lt_compiler_needs_object_CXX 22113 22114# Create an old-style archive from a shared archive. 22115old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22116 22117# Create a temporary old-style archive to link instead of a shared archive. 22118old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22119 22120# Commands used to build a shared archive. 22121archive_cmds=$lt_archive_cmds_CXX 22122archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22123 22124# Commands used to build a loadable module if different from building 22125# a shared archive. 22126module_cmds=$lt_module_cmds_CXX 22127module_expsym_cmds=$lt_module_expsym_cmds_CXX 22128 22129# Whether we are building with GNU ld or not. 22130with_gnu_ld=$lt_with_gnu_ld_CXX 22131 22132# Flag that allows shared libraries with undefined symbols to be built. 22133allow_undefined_flag=$lt_allow_undefined_flag_CXX 22134 22135# Flag that enforces no undefined symbols. 22136no_undefined_flag=$lt_no_undefined_flag_CXX 22137 22138# Flag to hardcode \$libdir into a binary during linking. 22139# This must work even if \$libdir does not exist 22140hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22141 22142# Whether we need a single "-rpath" flag with a separated argument. 22143hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22144 22145# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22146# DIR into the resulting binary. 22147hardcode_direct=$hardcode_direct_CXX 22148 22149# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22150# DIR into the resulting binary and the resulting library dependency is 22151# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22152# library is relocated. 22153hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22154 22155# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22156# into the resulting binary. 22157hardcode_minus_L=$hardcode_minus_L_CXX 22158 22159# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22160# into the resulting binary. 22161hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22162 22163# Set to "yes" if building a shared library automatically hardcodes DIR 22164# into the library and all subsequent libraries and executables linked 22165# against it. 22166hardcode_automatic=$hardcode_automatic_CXX 22167 22168# Set to yes if linker adds runtime paths of dependent libraries 22169# to runtime path list. 22170inherit_rpath=$inherit_rpath_CXX 22171 22172# Whether libtool must link a program against all its dependency libraries. 22173link_all_deplibs=$link_all_deplibs_CXX 22174 22175# Set to "yes" if exported symbols are required. 22176always_export_symbols=$always_export_symbols_CXX 22177 22178# The commands to list exported symbols. 22179export_symbols_cmds=$lt_export_symbols_cmds_CXX 22180 22181# Symbols that should not be listed in the preloaded symbols. 22182exclude_expsyms=$lt_exclude_expsyms_CXX 22183 22184# Symbols that must always be exported. 22185include_expsyms=$lt_include_expsyms_CXX 22186 22187# Commands necessary for linking programs (against libraries) with templates. 22188prelink_cmds=$lt_prelink_cmds_CXX 22189 22190# Commands necessary for finishing linking programs. 22191postlink_cmds=$lt_postlink_cmds_CXX 22192 22193# Specify filename containing input files. 22194file_list_spec=$lt_file_list_spec_CXX 22195 22196# How to hardcode a shared library path into an executable. 22197hardcode_action=$hardcode_action_CXX 22198 22199# The directories searched by this compiler when creating a shared library. 22200compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22201 22202# Dependencies to place before and after the objects being linked to 22203# create a shared library. 22204predep_objects=$lt_predep_objects_CXX 22205postdep_objects=$lt_postdep_objects_CXX 22206predeps=$lt_predeps_CXX 22207postdeps=$lt_postdeps_CXX 22208 22209# The library search path used internally by the compiler when linking 22210# a shared library. 22211compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22212 22213# ### END LIBTOOL TAG CONFIG: CXX 22214_LT_EOF 22215 22216 ;; 22217 22218 esac 22219done # for ac_tag 22220 22221 22222as_fn_exit 0 22223_ACEOF 22224ac_clean_files=$ac_clean_files_save 22225 22226test $ac_write_fail = 0 || 22227 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22228 22229 22230# configure is writing to config.log, and then calls config.status. 22231# config.status does its own redirection, appending to config.log. 22232# Unfortunately, on DOS this fails, as config.log is still kept open 22233# by configure, so config.status won't be able to write to it; its 22234# output is simply discarded. So we exec the FD to /dev/null, 22235# effectively closing config.log, so it can be properly (re)opened and 22236# appended to by config.status. When coming back to configure, we 22237# need to make the FD available again. 22238if test "$no_create" != yes; then 22239 ac_cs_success=: 22240 ac_config_status_args= 22241 test "$silent" = yes && 22242 ac_config_status_args="$ac_config_status_args --quiet" 22243 exec 5>/dev/null 22244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22245 exec 5>>config.log 22246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22247 # would make configure fail if this is the last instruction. 22248 $ac_cs_success || as_fn_exit 1 22249fi 22250if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22252$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22253fi 22254 22255