1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libvdpau 1.2. 4# 5# Report bugs to <vdpau@lists.freedesktop.org>. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: vdpau@lists.freedesktop.org about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# 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='libvdpau' 592PACKAGE_TARNAME='libvdpau' 593PACKAGE_VERSION='1.2' 594PACKAGE_STRING='libvdpau 1.2' 595PACKAGE_BUGREPORT='vdpau@lists.freedesktop.org' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638distcleancheck_listfiles 639CHANGELOG_CMD 640moduledir 641ENABLE_DOCS_FALSE 642ENABLE_DOCS_TRUE 643DOT 644DOXYGEN 645PTHREAD_LIBS 646DLOPEN_LIBS 647DRI2_FALSE 648DRI2_TRUE 649XEXT_LIBS 650XEXT_CFLAGS 651dri2proto_LIBS 652dri2proto_CFLAGS 653X11_LIBS 654X11_CFLAGS 655PKG_CONFIG_LIBDIR 656PKG_CONFIG_PATH 657PKG_CONFIG 658CXXCPP 659LT_SYS_LIBRARY_PATH 660OTOOL64 661OTOOL 662LIPO 663NMEDIT 664DSYMUTIL 665MANIFEST_TOOL 666RANLIB 667ac_ct_AR 668AR 669DLLTOOL 670OBJDUMP 671LN_S 672NM 673ac_ct_DUMPBIN 674DUMPBIN 675LD 676FGREP 677SED 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686LIBTOOL 687am__fastdepCXX_FALSE 688am__fastdepCXX_TRUE 689CXXDEPMODE 690ac_ct_CXX 691CXXFLAGS 692CXX 693EGREP 694GREP 695CPP 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__include 704DEPDIR 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712AM_BACKSLASH 713AM_DEFAULT_VERBOSITY 714AM_DEFAULT_V 715AM_V 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL 777am__quote' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_dependency_tracking 783enable_static 784enable_shared 785with_pic 786enable_fast_install 787with_aix_soname 788with_gnu_ld 789with_sysroot 790enable_libtool_lock 791enable_dri2 792enable_documentation 793with_module_dir 794' 795 ac_precious_vars='build_alias 796host_alias 797target_alias 798CC 799CFLAGS 800LDFLAGS 801LIBS 802CPPFLAGS 803CPP 804CXX 805CXXFLAGS 806CCC 807LT_SYS_LIBRARY_PATH 808CXXCPP 809PKG_CONFIG 810PKG_CONFIG_PATH 811PKG_CONFIG_LIBDIR 812X11_CFLAGS 813X11_LIBS 814dri2proto_CFLAGS 815dri2proto_LIBS 816XEXT_CFLAGS 817XEXT_LIBS' 818 819 820# Initialize some variables set by options. 821ac_init_help= 822ac_init_version=false 823ac_unrecognized_opts= 824ac_unrecognized_sep= 825# The variables have the same names as the options, with 826# dashes changed to underlines. 827cache_file=/dev/null 828exec_prefix=NONE 829no_create= 830no_recursion= 831prefix=NONE 832program_prefix=NONE 833program_suffix=NONE 834program_transform_name=s,x,x, 835silent= 836site= 837srcdir= 838verbose= 839x_includes=NONE 840x_libraries=NONE 841 842# Installation directory options. 843# These are left unexpanded so users can "make install exec_prefix=/foo" 844# and all the variables that are supposed to be based on exec_prefix 845# by default will actually change. 846# Use braces instead of parens because sh, perl, etc. also accept them. 847# (The list follows the same order as the GNU Coding Standards.) 848bindir='${exec_prefix}/bin' 849sbindir='${exec_prefix}/sbin' 850libexecdir='${exec_prefix}/libexec' 851datarootdir='${prefix}/share' 852datadir='${datarootdir}' 853sysconfdir='${prefix}/etc' 854sharedstatedir='${prefix}/com' 855localstatedir='${prefix}/var' 856includedir='${prefix}/include' 857oldincludedir='/usr/include' 858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 859infodir='${datarootdir}/info' 860htmldir='${docdir}' 861dvidir='${docdir}' 862pdfdir='${docdir}' 863psdir='${docdir}' 864libdir='${exec_prefix}/lib' 865localedir='${datarootdir}/locale' 866mandir='${datarootdir}/man' 867 868ac_prev= 869ac_dashdash= 870for ac_option 871do 872 # If the previous option needs an argument, assign it. 873 if test -n "$ac_prev"; then 874 eval $ac_prev=\$ac_option 875 ac_prev= 876 continue 877 fi 878 879 case $ac_option in 880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 881 *=) ac_optarg= ;; 882 *) ac_optarg=yes ;; 883 esac 884 885 # Accept the important Cygnus configure options, so we can diagnose typos. 886 887 case $ac_dashdash$ac_option in 888 --) 889 ac_dashdash=yes ;; 890 891 -bindir | --bindir | --bindi | --bind | --bin | --bi) 892 ac_prev=bindir ;; 893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 894 bindir=$ac_optarg ;; 895 896 -build | --build | --buil | --bui | --bu) 897 ac_prev=build_alias ;; 898 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 899 build_alias=$ac_optarg ;; 900 901 -cache-file | --cache-file | --cache-fil | --cache-fi \ 902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 903 ac_prev=cache_file ;; 904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 906 cache_file=$ac_optarg ;; 907 908 --config-cache | -C) 909 cache_file=config.cache ;; 910 911 -datadir | --datadir | --datadi | --datad) 912 ac_prev=datadir ;; 913 -datadir=* | --datadir=* | --datadi=* | --datad=*) 914 datadir=$ac_optarg ;; 915 916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 917 | --dataroo | --dataro | --datar) 918 ac_prev=datarootdir ;; 919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 921 datarootdir=$ac_optarg ;; 922 923 -disable-* | --disable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=\$ac_optarg ;; 964 965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967 | --exec | --exe | --ex) 968 ac_prev=exec_prefix ;; 969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971 | --exec=* | --exe=* | --ex=*) 972 exec_prefix=$ac_optarg ;; 973 974 -gas | --gas | --ga | --g) 975 # Obsolete; use --with-gas. 976 with_gas=yes ;; 977 978 -help | --help | --hel | --he | -h) 979 ac_init_help=long ;; 980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981 ac_init_help=recursive ;; 982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983 ac_init_help=short ;; 984 985 -host | --host | --hos | --ho) 986 ac_prev=host_alias ;; 987 -host=* | --host=* | --hos=* | --ho=*) 988 host_alias=$ac_optarg ;; 989 990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991 ac_prev=htmldir ;; 992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993 | --ht=*) 994 htmldir=$ac_optarg ;; 995 996 -includedir | --includedir | --includedi | --included | --include \ 997 | --includ | --inclu | --incl | --inc) 998 ac_prev=includedir ;; 999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000 | --includ=* | --inclu=* | --incl=* | --inc=*) 1001 includedir=$ac_optarg ;; 1002 1003 -infodir | --infodir | --infodi | --infod | --info | --inf) 1004 ac_prev=infodir ;; 1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006 infodir=$ac_optarg ;; 1007 1008 -libdir | --libdir | --libdi | --libd) 1009 ac_prev=libdir ;; 1010 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011 libdir=$ac_optarg ;; 1012 1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014 | --libexe | --libex | --libe) 1015 ac_prev=libexecdir ;; 1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017 | --libexe=* | --libex=* | --libe=*) 1018 libexecdir=$ac_optarg ;; 1019 1020 -localedir | --localedir | --localedi | --localed | --locale) 1021 ac_prev=localedir ;; 1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023 localedir=$ac_optarg ;; 1024 1025 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026 | --localstate | --localstat | --localsta | --localst | --locals) 1027 ac_prev=localstatedir ;; 1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030 localstatedir=$ac_optarg ;; 1031 1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033 ac_prev=mandir ;; 1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035 mandir=$ac_optarg ;; 1036 1037 -nfp | --nfp | --nf) 1038 # Obsolete; use --without-fp. 1039 with_fp=no ;; 1040 1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042 | --no-cr | --no-c | -n) 1043 no_create=yes ;; 1044 1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047 no_recursion=yes ;; 1048 1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051 | --oldin | --oldi | --old | --ol | --o) 1052 ac_prev=oldincludedir ;; 1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056 oldincludedir=$ac_optarg ;; 1057 1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059 ac_prev=prefix ;; 1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061 prefix=$ac_optarg ;; 1062 1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064 | --program-pre | --program-pr | --program-p) 1065 ac_prev=program_prefix ;; 1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068 program_prefix=$ac_optarg ;; 1069 1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071 | --program-suf | --program-su | --program-s) 1072 ac_prev=program_suffix ;; 1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075 program_suffix=$ac_optarg ;; 1076 1077 -program-transform-name | --program-transform-name \ 1078 | --program-transform-nam | --program-transform-na \ 1079 | --program-transform-n | --program-transform- \ 1080 | --program-transform | --program-transfor \ 1081 | --program-transfo | --program-transf \ 1082 | --program-trans | --program-tran \ 1083 | --progr-tra | --program-tr | --program-t) 1084 ac_prev=program_transform_name ;; 1085 -program-transform-name=* | --program-transform-name=* \ 1086 | --program-transform-nam=* | --program-transform-na=* \ 1087 | --program-transform-n=* | --program-transform-=* \ 1088 | --program-transform=* | --program-transfor=* \ 1089 | --program-transfo=* | --program-transf=* \ 1090 | --program-trans=* | --program-tran=* \ 1091 | --progr-tra=* | --program-tr=* | --program-t=*) 1092 program_transform_name=$ac_optarg ;; 1093 1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095 ac_prev=pdfdir ;; 1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097 pdfdir=$ac_optarg ;; 1098 1099 -psdir | --psdir | --psdi | --psd | --ps) 1100 ac_prev=psdir ;; 1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102 psdir=$ac_optarg ;; 1103 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 silent=yes ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=\$ac_optarg ;; 1168 1169 -without-* | --without-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=no ;; 1184 1185 --x) 1186 # Obsolete; use --with-x. 1187 with_x=yes ;; 1188 1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1190 | --x-incl | --x-inc | --x-in | --x-i) 1191 ac_prev=x_includes ;; 1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1194 x_includes=$ac_optarg ;; 1195 1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1198 ac_prev=x_libraries ;; 1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1201 x_libraries=$ac_optarg ;; 1202 1203 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1204Try \`$0 --help' for more information" 1205 ;; 1206 1207 *=*) 1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1209 # Reject names that are not valid shell variable names. 1210 case $ac_envvar in #( 1211 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1213 esac 1214 eval $ac_envvar=\$ac_optarg 1215 export $ac_envvar ;; 1216 1217 *) 1218 # FIXME: should be removed in autoconf 3.0. 1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1223 ;; 1224 1225 esac 1226done 1227 1228if test -n "$ac_prev"; then 1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1230 as_fn_error $? "missing argument to $ac_option" 1231fi 1232 1233if test -n "$ac_unrecognized_opts"; then 1234 case $enable_option_checking in 1235 no) ;; 1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1238 esac 1239fi 1240 1241# Check all directory arguments for consistency. 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245 libdir localedir mandir 1246do 1247 eval ac_val=\$$ac_var 1248 # Remove trailing slashes. 1249 case $ac_val in 1250 */ ) 1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1252 eval $ac_var=\$ac_val;; 1253 esac 1254 # Be sure to have absolute directory names. 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1260done 1261 1262# There might be people who depend on the old broken behavior: `$host' 1263# used to hold the argument of --host etc. 1264# FIXME: To remove some day. 1265build=$build_alias 1266host=$host_alias 1267target=$target_alias 1268 1269# FIXME: To remove some day. 1270if test "x$host_alias" != x; then 1271 if test "x$build_alias" = x; then 1272 cross_compiling=maybe 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures libvdpau 1.2 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/libvdpau] 1407 --htmldir=DIR html documentation [DOCDIR] 1408 --dvidir=DIR dvi documentation [DOCDIR] 1409 --pdfdir=DIR pdf documentation [DOCDIR] 1410 --psdir=DIR ps documentation [DOCDIR] 1411_ACEOF 1412 1413 cat <<\_ACEOF 1414 1415Program names: 1416 --program-prefix=PREFIX prepend PREFIX to installed program names 1417 --program-suffix=SUFFIX append SUFFIX to installed program names 1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1419 1420System types: 1421 --build=BUILD configure for building on BUILD [guessed] 1422 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1423_ACEOF 1424fi 1425 1426if test -n "$ac_init_help"; then 1427 case $ac_init_help in 1428 short | recursive ) echo "Configuration of libvdpau 1.2:";; 1429 esac 1430 cat <<\_ACEOF 1431 1432Optional Features: 1433 --disable-option-checking ignore unrecognized --enable/--with options 1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436 --enable-silent-rules less verbose build output (undo: "make V=1") 1437 --disable-silent-rules verbose build output (undo: "make V=0") 1438 --enable-dependency-tracking 1439 do not reject slow dependency extractors 1440 --disable-dependency-tracking 1441 speeds up one-time build 1442 --enable-static[=PKGS] build static libraries [default=no] 1443 --enable-shared[=PKGS] build shared libraries [default=yes] 1444 --enable-fast-install[=PKGS] 1445 optimize for fast installation [default=yes] 1446 --disable-libtool-lock avoid locking (might break parallel builds) 1447 --disable-dri2 Disable driver name query through DRI2 (default: 1448 auto) 1449 --disable-documentation Disable Doxygen documentation (default: auto) 1450 1451Optional Packages: 1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1455 both] 1456 --with-aix-soname=aix|svr4|both 1457 shared library versioning (aka "SONAME") variant to 1458 provide on AIX, [default=aix]. 1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1460 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1461 compiler's sysroot if not specified). 1462 --with-module-dir=DIR Default module directory [[default=LIBDIR/vdpau]] 1463 1464Some influential environment variables: 1465 CC C compiler command 1466 CFLAGS C compiler flags 1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1468 nonstandard directory <lib dir> 1469 LIBS libraries to pass to the linker, e.g. -l<library> 1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1471 you have headers in a nonstandard directory <include dir> 1472 CPP C preprocessor 1473 CXX C++ compiler command 1474 CXXFLAGS C++ compiler flags 1475 LT_SYS_LIBRARY_PATH 1476 User-defined run-time library search path. 1477 CXXCPP C++ preprocessor 1478 PKG_CONFIG path to pkg-config utility 1479 PKG_CONFIG_PATH 1480 directories to add to pkg-config's search path 1481 PKG_CONFIG_LIBDIR 1482 path overriding pkg-config's built-in search path 1483 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1484 X11_LIBS linker flags for X11, overriding pkg-config 1485 dri2proto_CFLAGS 1486 C compiler flags for dri2proto, overriding pkg-config 1487 dri2proto_LIBS 1488 linker flags for dri2proto, overriding pkg-config 1489 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1490 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1491 1492Use these variables to override the choices made by `configure' or to help 1493it to find libraries and programs with nonstandard names/locations. 1494 1495Report bugs to <vdpau@lists.freedesktop.org>. 1496_ACEOF 1497ac_status=$? 1498fi 1499 1500if test "$ac_init_help" = "recursive"; then 1501 # If there are subdirs, report their specific --help. 1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1503 test -d "$ac_dir" || 1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1505 continue 1506 ac_builddir=. 1507 1508case "$ac_dir" in 1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1510*) 1511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1512 # A ".." for each directory in $ac_dir_suffix. 1513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1514 case $ac_top_builddir_sub in 1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1517 esac ;; 1518esac 1519ac_abs_top_builddir=$ac_pwd 1520ac_abs_builddir=$ac_pwd$ac_dir_suffix 1521# for backward compatibility: 1522ac_top_builddir=$ac_top_build_prefix 1523 1524case $srcdir in 1525 .) # We are building in place. 1526 ac_srcdir=. 1527 ac_top_srcdir=$ac_top_builddir_sub 1528 ac_abs_top_srcdir=$ac_pwd ;; 1529 [\\/]* | ?:[\\/]* ) # Absolute name. 1530 ac_srcdir=$srcdir$ac_dir_suffix; 1531 ac_top_srcdir=$srcdir 1532 ac_abs_top_srcdir=$srcdir ;; 1533 *) # Relative name. 1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1535 ac_top_srcdir=$ac_top_build_prefix$srcdir 1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1537esac 1538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1539 1540 cd "$ac_dir" || { ac_status=$?; continue; } 1541 # Check for guested configure. 1542 if test -f "$ac_srcdir/configure.gnu"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1545 elif test -f "$ac_srcdir/configure"; then 1546 echo && 1547 $SHELL "$ac_srcdir/configure" --help=recursive 1548 else 1549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1550 fi || ac_status=$? 1551 cd "$ac_pwd" || { ac_status=$?; break; } 1552 done 1553fi 1554 1555test -n "$ac_init_help" && exit $ac_status 1556if $ac_init_version; then 1557 cat <<\_ACEOF 1558libvdpau configure 1.2 1559generated by GNU Autoconf 2.69 1560 1561Copyright (C) 2012 Free Software Foundation, Inc. 1562This configure script is free software; the Free Software Foundation 1563gives unlimited permission to copy, distribute and modify it. 1564_ACEOF 1565 exit 1566fi 1567 1568## ------------------------ ## 1569## Autoconf initialization. ## 1570## ------------------------ ## 1571 1572# ac_fn_c_try_compile LINENO 1573# -------------------------- 1574# Try to compile conftest.$ac_ext, and return whether this succeeded. 1575ac_fn_c_try_compile () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 rm -f conftest.$ac_objext 1579 if { { ac_try="$ac_compile" 1580case "(($ac_try" in 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *) ac_try_echo=$ac_try;; 1583esac 1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585$as_echo "$ac_try_echo"; } >&5 1586 (eval "$ac_compile") 2>conftest.err 1587 ac_status=$? 1588 if test -s conftest.err; then 1589 grep -v '^ *+' conftest.err >conftest.er1 1590 cat conftest.er1 >&5 1591 mv -f conftest.er1 conftest.err 1592 fi 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; } && { 1595 test -z "$ac_c_werror_flag" || 1596 test ! -s conftest.err 1597 } && test -s conftest.$ac_objext; then : 1598 ac_retval=0 1599else 1600 $as_echo "$as_me: failed program was:" >&5 1601sed 's/^/| /' conftest.$ac_ext >&5 1602 1603 ac_retval=1 1604fi 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1606 as_fn_set_status $ac_retval 1607 1608} # ac_fn_c_try_compile 1609 1610# ac_fn_c_try_cpp LINENO 1611# ---------------------- 1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1613ac_fn_c_try_cpp () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 if { { ac_try="$ac_cpp conftest.$ac_ext" 1617case "(($ac_try" in 1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1619 *) ac_try_echo=$ac_try;; 1620esac 1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1622$as_echo "$ac_try_echo"; } >&5 1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1624 ac_status=$? 1625 if test -s conftest.err; then 1626 grep -v '^ *+' conftest.err >conftest.er1 1627 cat conftest.er1 >&5 1628 mv -f conftest.er1 conftest.err 1629 fi 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } > conftest.i && { 1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1633 test ! -s conftest.err 1634 }; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645} # ac_fn_c_try_cpp 1646 1647# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1648# ------------------------------------------------------- 1649# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1650# the include files in INCLUDES and setting the cache variable VAR 1651# accordingly. 1652ac_fn_c_check_header_mongrel () 1653{ 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1655 if eval \${$3+:} false; then : 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1657$as_echo_n "checking for $2... " >&6; } 1658if eval \${$3+:} false; then : 1659 $as_echo_n "(cached) " >&6 1660fi 1661eval ac_res=\$$3 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1663$as_echo "$ac_res" >&6; } 1664else 1665 # Is the header compilable? 1666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1667$as_echo_n "checking $2 usability... " >&6; } 1668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669/* end confdefs.h. */ 1670$4 1671#include <$2> 1672_ACEOF 1673if ac_fn_c_try_compile "$LINENO"; then : 1674 ac_header_compiler=yes 1675else 1676 ac_header_compiler=no 1677fi 1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1680$as_echo "$ac_header_compiler" >&6; } 1681 1682# Is the header present? 1683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1684$as_echo_n "checking $2 presence... " >&6; } 1685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1686/* end confdefs.h. */ 1687#include <$2> 1688_ACEOF 1689if ac_fn_c_try_cpp "$LINENO"; then : 1690 ac_header_preproc=yes 1691else 1692 ac_header_preproc=no 1693fi 1694rm -f conftest.err conftest.i conftest.$ac_ext 1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1696$as_echo "$ac_header_preproc" >&6; } 1697 1698# So? What about this header? 1699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1700 yes:no: ) 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1702$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1704$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1705 ;; 1706 no:yes:* ) 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1708$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1710$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1712$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1714$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1717( $as_echo "## ------------------------------------------ ## 1718## Report this to vdpau@lists.freedesktop.org ## 1719## ------------------------------------------ ##" 1720 ) | sed "s/^/$as_me: WARNING: /" >&2 1721 ;; 1722esac 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724$as_echo_n "checking for $2... " >&6; } 1725if eval \${$3+:} false; then : 1726 $as_echo_n "(cached) " >&6 1727else 1728 eval "$3=\$ac_header_compiler" 1729fi 1730eval ac_res=\$$3 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1732$as_echo "$ac_res" >&6; } 1733fi 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 1736} # ac_fn_c_check_header_mongrel 1737 1738# ac_fn_c_try_run LINENO 1739# ---------------------- 1740# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1741# that executables *can* be run. 1742ac_fn_c_try_run () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 if { { ac_try="$ac_link" 1746case "(($ac_try" in 1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1748 *) ac_try_echo=$ac_try;; 1749esac 1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1751$as_echo "$ac_try_echo"; } >&5 1752 (eval "$ac_link") 2>&5 1753 ac_status=$? 1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1756 { { case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759esac 1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761$as_echo "$ac_try_echo"; } >&5 1762 (eval "$ac_try") 2>&5 1763 ac_status=$? 1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1765 test $ac_status = 0; }; }; then : 1766 ac_retval=0 1767else 1768 $as_echo "$as_me: program exited with status $ac_status" >&5 1769 $as_echo "$as_me: failed program was:" >&5 1770sed 's/^/| /' conftest.$ac_ext >&5 1771 1772 ac_retval=$ac_status 1773fi 1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_run 1779 1780# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1781# ------------------------------------------------------- 1782# Tests whether HEADER exists and can be compiled using the include files in 1783# INCLUDES, setting the cache variable VAR accordingly. 1784ac_fn_c_check_header_compile () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1788$as_echo_n "checking for $2... " >&6; } 1789if eval \${$3+:} false; then : 1790 $as_echo_n "(cached) " >&6 1791else 1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1793/* end confdefs.h. */ 1794$4 1795#include <$2> 1796_ACEOF 1797if ac_fn_c_try_compile "$LINENO"; then : 1798 eval "$3=yes" 1799else 1800 eval "$3=no" 1801fi 1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1803fi 1804eval ac_res=\$$3 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1806$as_echo "$ac_res" >&6; } 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 1809} # ac_fn_c_check_header_compile 1810 1811# ac_fn_c_try_link LINENO 1812# ----------------------- 1813# Try to link conftest.$ac_ext, and return whether this succeeded. 1814ac_fn_c_try_link () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 rm -f conftest.$ac_objext conftest$ac_exeext 1818 if { { ac_try="$ac_link" 1819case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822esac 1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824$as_echo "$ac_try_echo"; } >&5 1825 (eval "$ac_link") 2>conftest.err 1826 ac_status=$? 1827 if test -s conftest.err; then 1828 grep -v '^ *+' conftest.err >conftest.er1 1829 cat conftest.er1 >&5 1830 mv -f conftest.er1 conftest.err 1831 fi 1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1833 test $ac_status = 0; } && { 1834 test -z "$ac_c_werror_flag" || 1835 test ! -s conftest.err 1836 } && test -s conftest$ac_exeext && { 1837 test "$cross_compiling" = yes || 1838 test -x conftest$ac_exeext 1839 }; then : 1840 ac_retval=0 1841else 1842 $as_echo "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846fi 1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1849 # interfere with the next link command; also delete a directory that is 1850 # left behind by Apple's compiler. We do this before executing the actions. 1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 as_fn_set_status $ac_retval 1854 1855} # ac_fn_c_try_link 1856 1857# ac_fn_c_check_func LINENO FUNC VAR 1858# ---------------------------------- 1859# Tests whether FUNC exists, setting the cache variable VAR accordingly 1860ac_fn_c_check_func () 1861{ 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1864$as_echo_n "checking for $2... " >&6; } 1865if eval \${$3+:} false; then : 1866 $as_echo_n "(cached) " >&6 1867else 1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1869/* end confdefs.h. */ 1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1872#define $2 innocuous_$2 1873 1874/* System header to define __stub macros and hopefully few prototypes, 1875 which can conflict with char $2 (); below. 1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1877 <limits.h> exists even on freestanding compilers. */ 1878 1879#ifdef __STDC__ 1880# include <limits.h> 1881#else 1882# include <assert.h> 1883#endif 1884 1885#undef $2 1886 1887/* Override any GCC internal prototype to avoid an error. 1888 Use char because int might match the return type of a GCC 1889 builtin and then its argument prototype would still apply. */ 1890#ifdef __cplusplus 1891extern "C" 1892#endif 1893char $2 (); 1894/* The GNU C library defines this for functions which it implements 1895 to always fail with ENOSYS. Some functions are actually named 1896 something starting with __ and the normal name is an alias. */ 1897#if defined __stub_$2 || defined __stub___$2 1898choke me 1899#endif 1900 1901int 1902main () 1903{ 1904return $2 (); 1905 ; 1906 return 0; 1907} 1908_ACEOF 1909if ac_fn_c_try_link "$LINENO"; then : 1910 eval "$3=yes" 1911else 1912 eval "$3=no" 1913fi 1914rm -f core conftest.err conftest.$ac_objext \ 1915 conftest$ac_exeext conftest.$ac_ext 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1921 1922} # ac_fn_c_check_func 1923 1924# ac_fn_cxx_try_compile LINENO 1925# ---------------------------- 1926# Try to compile conftest.$ac_ext, and return whether this succeeded. 1927ac_fn_cxx_try_compile () 1928{ 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 rm -f conftest.$ac_objext 1931 if { { ac_try="$ac_compile" 1932case "(($ac_try" in 1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1934 *) ac_try_echo=$ac_try;; 1935esac 1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1937$as_echo "$ac_try_echo"; } >&5 1938 (eval "$ac_compile") 2>conftest.err 1939 ac_status=$? 1940 if test -s conftest.err; then 1941 grep -v '^ *+' conftest.err >conftest.er1 1942 cat conftest.er1 >&5 1943 mv -f conftest.er1 conftest.err 1944 fi 1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1946 test $ac_status = 0; } && { 1947 test -z "$ac_cxx_werror_flag" || 1948 test ! -s conftest.err 1949 } && test -s conftest.$ac_objext; then : 1950 ac_retval=0 1951else 1952 $as_echo "$as_me: failed program was:" >&5 1953sed 's/^/| /' conftest.$ac_ext >&5 1954 1955 ac_retval=1 1956fi 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1958 as_fn_set_status $ac_retval 1959 1960} # ac_fn_cxx_try_compile 1961 1962# ac_fn_cxx_try_cpp LINENO 1963# ------------------------ 1964# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1965ac_fn_cxx_try_cpp () 1966{ 1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1968 if { { ac_try="$ac_cpp conftest.$ac_ext" 1969case "(($ac_try" in 1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1971 *) ac_try_echo=$ac_try;; 1972esac 1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1974$as_echo "$ac_try_echo"; } >&5 1975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1976 ac_status=$? 1977 if test -s conftest.err; then 1978 grep -v '^ *+' conftest.err >conftest.er1 1979 cat conftest.er1 >&5 1980 mv -f conftest.er1 conftest.err 1981 fi 1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1983 test $ac_status = 0; } > conftest.i && { 1984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1985 test ! -s conftest.err 1986 }; then : 1987 ac_retval=0 1988else 1989 $as_echo "$as_me: failed program was:" >&5 1990sed 's/^/| /' conftest.$ac_ext >&5 1991 1992 ac_retval=1 1993fi 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 as_fn_set_status $ac_retval 1996 1997} # ac_fn_cxx_try_cpp 1998 1999# ac_fn_cxx_try_link LINENO 2000# ------------------------- 2001# Try to link conftest.$ac_ext, and return whether this succeeded. 2002ac_fn_cxx_try_link () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 rm -f conftest.$ac_objext conftest$ac_exeext 2006 if { { ac_try="$ac_link" 2007case "(($ac_try" in 2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2009 *) ac_try_echo=$ac_try;; 2010esac 2011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2012$as_echo "$ac_try_echo"; } >&5 2013 (eval "$ac_link") 2>conftest.err 2014 ac_status=$? 2015 if test -s conftest.err; then 2016 grep -v '^ *+' conftest.err >conftest.er1 2017 cat conftest.er1 >&5 2018 mv -f conftest.er1 conftest.err 2019 fi 2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2021 test $ac_status = 0; } && { 2022 test -z "$ac_cxx_werror_flag" || 2023 test ! -s conftest.err 2024 } && test -s conftest$ac_exeext && { 2025 test "$cross_compiling" = yes || 2026 test -x conftest$ac_exeext 2027 }; then : 2028 ac_retval=0 2029else 2030 $as_echo "$as_me: failed program was:" >&5 2031sed 's/^/| /' conftest.$ac_ext >&5 2032 2033 ac_retval=1 2034fi 2035 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2036 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2037 # interfere with the next link command; also delete a directory that is 2038 # left behind by Apple's compiler. We do this before executing the actions. 2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2041 as_fn_set_status $ac_retval 2042 2043} # ac_fn_cxx_try_link 2044cat >config.log <<_ACEOF 2045This file contains any messages produced by compilers while 2046running configure, to aid debugging if configure makes a mistake. 2047 2048It was created by libvdpau $as_me 1.2, which was 2049generated by GNU Autoconf 2.69. Invocation command line was 2050 2051 $ $0 $@ 2052 2053_ACEOF 2054exec 5>>config.log 2055{ 2056cat <<_ASUNAME 2057## --------- ## 2058## Platform. ## 2059## --------- ## 2060 2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2062uname -m = `(uname -m) 2>/dev/null || echo unknown` 2063uname -r = `(uname -r) 2>/dev/null || echo unknown` 2064uname -s = `(uname -s) 2>/dev/null || echo unknown` 2065uname -v = `(uname -v) 2>/dev/null || echo unknown` 2066 2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2068/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2069 2070/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2071/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2073/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2074/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2075/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2076/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2077 2078_ASUNAME 2079 2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2081for as_dir in $PATH 2082do 2083 IFS=$as_save_IFS 2084 test -z "$as_dir" && as_dir=. 2085 $as_echo "PATH: $as_dir" 2086 done 2087IFS=$as_save_IFS 2088 2089} >&5 2090 2091cat >&5 <<_ACEOF 2092 2093 2094## ----------- ## 2095## Core tests. ## 2096## ----------- ## 2097 2098_ACEOF 2099 2100 2101# Keep a trace of the command line. 2102# Strip out --no-create and --no-recursion so they do not pile up. 2103# Strip out --silent because we don't want to record it for future runs. 2104# Also quote any args containing shell meta-characters. 2105# Make two passes to allow for proper duplicate-argument suppression. 2106ac_configure_args= 2107ac_configure_args0= 2108ac_configure_args1= 2109ac_must_keep_next=false 2110for ac_pass in 1 2 2111do 2112 for ac_arg 2113 do 2114 case $ac_arg in 2115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2117 | -silent | --silent | --silen | --sile | --sil) 2118 continue ;; 2119 *\'*) 2120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2121 esac 2122 case $ac_pass in 2123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2124 2) 2125 as_fn_append ac_configure_args1 " '$ac_arg'" 2126 if test $ac_must_keep_next = true; then 2127 ac_must_keep_next=false # Got value, back to normal. 2128 else 2129 case $ac_arg in 2130 *=* | --config-cache | -C | -disable-* | --disable-* \ 2131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2133 | -with-* | --with-* | -without-* | --without-* | --x) 2134 case "$ac_configure_args0 " in 2135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2136 esac 2137 ;; 2138 -* ) ac_must_keep_next=true ;; 2139 esac 2140 fi 2141 as_fn_append ac_configure_args " '$ac_arg'" 2142 ;; 2143 esac 2144 done 2145done 2146{ ac_configure_args0=; unset ac_configure_args0;} 2147{ ac_configure_args1=; unset ac_configure_args1;} 2148 2149# When interrupted or exit'd, cleanup temporary files, and complete 2150# config.log. We remove comments because anyway the quotes in there 2151# would cause problems or look ugly. 2152# WARNING: Use '\'' to represent an apostrophe within the trap. 2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2154trap 'exit_status=$? 2155 # Save into config.log some information that might help in debugging. 2156 { 2157 echo 2158 2159 $as_echo "## ---------------- ## 2160## Cache variables. ## 2161## ---------------- ##" 2162 echo 2163 # The following way of writing the cache mishandles newlines in values, 2164( 2165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2166 eval ac_val=\$$ac_var 2167 case $ac_val in #( 2168 *${as_nl}*) 2169 case $ac_var in #( 2170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2172 esac 2173 case $ac_var in #( 2174 _ | IFS | as_nl) ;; #( 2175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2176 *) { eval $ac_var=; unset $ac_var;} ;; 2177 esac ;; 2178 esac 2179 done 2180 (set) 2>&1 | 2181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2182 *${as_nl}ac_space=\ *) 2183 sed -n \ 2184 "s/'\''/'\''\\\\'\'''\''/g; 2185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2186 ;; #( 2187 *) 2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2189 ;; 2190 esac | 2191 sort 2192) 2193 echo 2194 2195 $as_echo "## ----------------- ## 2196## Output variables. ## 2197## ----------------- ##" 2198 echo 2199 for ac_var in $ac_subst_vars 2200 do 2201 eval ac_val=\$$ac_var 2202 case $ac_val in 2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2204 esac 2205 $as_echo "$ac_var='\''$ac_val'\''" 2206 done | sort 2207 echo 2208 2209 if test -n "$ac_subst_files"; then 2210 $as_echo "## ------------------- ## 2211## File substitutions. ## 2212## ------------------- ##" 2213 echo 2214 for ac_var in $ac_subst_files 2215 do 2216 eval ac_val=\$$ac_var 2217 case $ac_val in 2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2219 esac 2220 $as_echo "$ac_var='\''$ac_val'\''" 2221 done | sort 2222 echo 2223 fi 2224 2225 if test -s confdefs.h; then 2226 $as_echo "## ----------- ## 2227## confdefs.h. ## 2228## ----------- ##" 2229 echo 2230 cat confdefs.h 2231 echo 2232 fi 2233 test "$ac_signal" != 0 && 2234 $as_echo "$as_me: caught signal $ac_signal" 2235 $as_echo "$as_me: exit $exit_status" 2236 } >&5 2237 rm -f core *.core core.conftest.* && 2238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2239 exit $exit_status 2240' 0 2241for ac_signal in 1 2 13 15; do 2242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2243done 2244ac_signal=0 2245 2246# confdefs.h avoids OS command line length limits that DEFS can exceed. 2247rm -f -r conftest* confdefs.h 2248 2249$as_echo "/* confdefs.h */" > confdefs.h 2250 2251# Predefined preprocessor variables. 2252 2253cat >>confdefs.h <<_ACEOF 2254#define PACKAGE_NAME "$PACKAGE_NAME" 2255_ACEOF 2256 2257cat >>confdefs.h <<_ACEOF 2258#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2259_ACEOF 2260 2261cat >>confdefs.h <<_ACEOF 2262#define PACKAGE_VERSION "$PACKAGE_VERSION" 2263_ACEOF 2264 2265cat >>confdefs.h <<_ACEOF 2266#define PACKAGE_STRING "$PACKAGE_STRING" 2267_ACEOF 2268 2269cat >>confdefs.h <<_ACEOF 2270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2271_ACEOF 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_URL "$PACKAGE_URL" 2275_ACEOF 2276 2277 2278# Let the site file select an alternate cache file if it wants to. 2279# Prefer an explicitly selected file to automatically selected ones. 2280ac_site_file1=NONE 2281ac_site_file2=NONE 2282if test -n "$CONFIG_SITE"; then 2283 # We do not want a PATH search for config.site. 2284 case $CONFIG_SITE in #(( 2285 -*) ac_site_file1=./$CONFIG_SITE;; 2286 */*) ac_site_file1=$CONFIG_SITE;; 2287 *) ac_site_file1=./$CONFIG_SITE;; 2288 esac 2289elif test "x$prefix" != xNONE; then 2290 ac_site_file1=$prefix/share/config.site 2291 ac_site_file2=$prefix/etc/config.site 2292else 2293 ac_site_file1=$ac_default_prefix/share/config.site 2294 ac_site_file2=$ac_default_prefix/etc/config.site 2295fi 2296for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2297do 2298 test "x$ac_site_file" = xNONE && continue 2299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2301$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2302 sed 's/^/| /' "$ac_site_file" >&5 2303 . "$ac_site_file" \ 2304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2306as_fn_error $? "failed to load site script $ac_site_file 2307See \`config.log' for more details" "$LINENO" 5; } 2308 fi 2309done 2310 2311if test -r "$cache_file"; then 2312 # Some versions of bash will fail to source /dev/null (special files 2313 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2316$as_echo "$as_me: loading cache $cache_file" >&6;} 2317 case $cache_file in 2318 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2319 *) . "./$cache_file";; 2320 esac 2321 fi 2322else 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2324$as_echo "$as_me: creating cache $cache_file" >&6;} 2325 >$cache_file 2326fi 2327 2328# Check that the precious variables saved in the cache have kept the same 2329# value. 2330ac_cache_corrupted=false 2331for ac_var in $ac_precious_vars; do 2332 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2333 eval ac_new_set=\$ac_env_${ac_var}_set 2334 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2335 eval ac_new_val=\$ac_env_${ac_var}_value 2336 case $ac_old_set,$ac_new_set in 2337 set,) 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2339$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2340 ac_cache_corrupted=: ;; 2341 ,set) 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2343$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2344 ac_cache_corrupted=: ;; 2345 ,);; 2346 *) 2347 if test "x$ac_old_val" != "x$ac_new_val"; then 2348 # differences in whitespace do not lead to failure. 2349 ac_old_val_w=`echo x $ac_old_val` 2350 ac_new_val_w=`echo x $ac_new_val` 2351 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2353$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2354 ac_cache_corrupted=: 2355 else 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2357$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2358 eval $ac_var=\$ac_old_val 2359 fi 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2361$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2363$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2364 fi;; 2365 esac 2366 # Pass precious variables to config.status. 2367 if test "$ac_new_set" = set; then 2368 case $ac_new_val in 2369 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2370 *) ac_arg=$ac_var=$ac_new_val ;; 2371 esac 2372 case " $ac_configure_args " in 2373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2374 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2375 esac 2376 fi 2377done 2378if $ac_cache_corrupted; then 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2382$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2383 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2384fi 2385## -------------------- ## 2386## Main body of script. ## 2387## -------------------- ## 2388 2389ac_ext=c 2390ac_cpp='$CPP $CPPFLAGS' 2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2393ac_compiler_gnu=$ac_cv_c_compiler_gnu 2394 2395 2396am__api_version='1.16' 2397 2398ac_aux_dir= 2399for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2400 if test -f "$ac_dir/install-sh"; then 2401 ac_aux_dir=$ac_dir 2402 ac_install_sh="$ac_aux_dir/install-sh -c" 2403 break 2404 elif test -f "$ac_dir/install.sh"; then 2405 ac_aux_dir=$ac_dir 2406 ac_install_sh="$ac_aux_dir/install.sh -c" 2407 break 2408 elif test -f "$ac_dir/shtool"; then 2409 ac_aux_dir=$ac_dir 2410 ac_install_sh="$ac_aux_dir/shtool install -c" 2411 break 2412 fi 2413done 2414if test -z "$ac_aux_dir"; then 2415 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2416fi 2417 2418# These three variables are undocumented and unsupported, 2419# and are intended to be withdrawn in a future Autoconf release. 2420# They can cause serious problems if a builder's source tree is in a directory 2421# whose full name contains unusual characters. 2422ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2423ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2424ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2425 2426 2427# Find a good install program. We prefer a C program (faster), 2428# so one script is as good as another. But avoid the broken or 2429# incompatible versions: 2430# SysV /etc/install, /usr/sbin/install 2431# SunOS /usr/etc/install 2432# IRIX /sbin/install 2433# AIX /bin/install 2434# AmigaOS /C/install, which installs bootblocks on floppy discs 2435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2436# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2438# OS/2's system install, which has a completely different semantic 2439# ./install, which can be erroneously created by make from ./install.sh. 2440# Reject install programs that cannot install multiple files. 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2442$as_echo_n "checking for a BSD-compatible install... " >&6; } 2443if test -z "$INSTALL"; then 2444if ${ac_cv_path_install+:} false; then : 2445 $as_echo_n "(cached) " >&6 2446else 2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2448for as_dir in $PATH 2449do 2450 IFS=$as_save_IFS 2451 test -z "$as_dir" && as_dir=. 2452 # Account for people who put trailing slashes in PATH elements. 2453case $as_dir/ in #(( 2454 ./ | .// | /[cC]/* | \ 2455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2456 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2457 /usr/ucb/* ) ;; 2458 *) 2459 # OSF1 and SCO ODT 3.0 have their own names for install. 2460 # Don't use installbsd from OSF since it installs stuff as root 2461 # by default. 2462 for ac_prog in ginstall scoinst install; do 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2465 if test $ac_prog = install && 2466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2467 # AIX install. It has an incompatible calling convention. 2468 : 2469 elif test $ac_prog = install && 2470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2471 # program-specific install script used by HP pwplus--don't use. 2472 : 2473 else 2474 rm -rf conftest.one conftest.two conftest.dir 2475 echo one > conftest.one 2476 echo two > conftest.two 2477 mkdir conftest.dir 2478 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2479 test -s conftest.one && test -s conftest.two && 2480 test -s conftest.dir/conftest.one && 2481 test -s conftest.dir/conftest.two 2482 then 2483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2484 break 3 2485 fi 2486 fi 2487 fi 2488 done 2489 done 2490 ;; 2491esac 2492 2493 done 2494IFS=$as_save_IFS 2495 2496rm -rf conftest.one conftest.two conftest.dir 2497 2498fi 2499 if test "${ac_cv_path_install+set}" = set; then 2500 INSTALL=$ac_cv_path_install 2501 else 2502 # As a last resort, use the slow shell script. Don't cache a 2503 # value for INSTALL within a source directory, because that will 2504 # break other packages using the cache if that directory is 2505 # removed, or if the value is a relative name. 2506 INSTALL=$ac_install_sh 2507 fi 2508fi 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2510$as_echo "$INSTALL" >&6; } 2511 2512# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2513# It thinks the first close brace ends the variable substitution. 2514test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2515 2516test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2517 2518test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2519 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2521$as_echo_n "checking whether build environment is sane... " >&6; } 2522# Reject unsafe characters in $srcdir or the absolute working directory 2523# name. Accept space and tab only in the latter. 2524am_lf=' 2525' 2526case `pwd` in 2527 *[\\\"\#\$\&\'\`$am_lf]*) 2528 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2529esac 2530case $srcdir in 2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2532 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2533esac 2534 2535# Do 'set' in a subshell so we don't clobber the current shell's 2536# arguments. Must try -L first in case configure is actually a 2537# symlink; some systems play weird games with the mod time of symlinks 2538# (eg FreeBSD returns the mod time of the symlink's containing 2539# directory). 2540if ( 2541 am_has_slept=no 2542 for am_try in 1 2; do 2543 echo "timestamp, slept: $am_has_slept" > conftest.file 2544 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2545 if test "$*" = "X"; then 2546 # -L didn't work. 2547 set X `ls -t "$srcdir/configure" conftest.file` 2548 fi 2549 if test "$*" != "X $srcdir/configure conftest.file" \ 2550 && test "$*" != "X conftest.file $srcdir/configure"; then 2551 2552 # If neither matched, then we have a broken ls. This can happen 2553 # if, for instance, CONFIG_SHELL is bash and it inherits a 2554 # broken ls alias from the environment. This has actually 2555 # happened. Such a system could not be considered "sane". 2556 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2557 alias in your environment" "$LINENO" 5 2558 fi 2559 if test "$2" = conftest.file || test $am_try -eq 2; then 2560 break 2561 fi 2562 # Just in case. 2563 sleep 1 2564 am_has_slept=yes 2565 done 2566 test "$2" = conftest.file 2567 ) 2568then 2569 # Ok. 2570 : 2571else 2572 as_fn_error $? "newly created file is older than distributed files! 2573Check your system clock" "$LINENO" 5 2574fi 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2576$as_echo "yes" >&6; } 2577# If we didn't sleep, we still need to ensure time stamps of config.status and 2578# generated files are strictly newer. 2579am_sleep_pid= 2580if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2581 ( sleep 1 ) & 2582 am_sleep_pid=$! 2583fi 2584 2585rm -f conftest.file 2586 2587test "$program_prefix" != NONE && 2588 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2589# Use a double $ so make ignores it. 2590test "$program_suffix" != NONE && 2591 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2592# Double any \ or $. 2593# By default was `s,x,x', remove it if useless. 2594ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2595program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2596 2597# Expand $ac_aux_dir to an absolute path. 2598am_aux_dir=`cd "$ac_aux_dir" && pwd` 2599 2600if test x"${MISSING+set}" != xset; then 2601 case $am_aux_dir in 2602 *\ * | *\ *) 2603 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2604 *) 2605 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2606 esac 2607fi 2608# Use eval to expand $SHELL 2609if eval "$MISSING --is-lightweight"; then 2610 am_missing_run="$MISSING " 2611else 2612 am_missing_run= 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2614$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2615fi 2616 2617if test x"${install_sh+set}" != xset; then 2618 case $am_aux_dir in 2619 *\ * | *\ *) 2620 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2621 *) 2622 install_sh="\${SHELL} $am_aux_dir/install-sh" 2623 esac 2624fi 2625 2626# Installed binaries are usually stripped using 'strip' when the user 2627# run "make install-strip". However 'strip' might not be the right 2628# tool to use in cross-compilation environments, therefore Automake 2629# will honor the 'STRIP' environment variable to overrule this program. 2630if test "$cross_compiling" != no; then 2631 if test -n "$ac_tool_prefix"; then 2632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2633set dummy ${ac_tool_prefix}strip; ac_word=$2 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2635$as_echo_n "checking for $ac_word... " >&6; } 2636if ${ac_cv_prog_STRIP+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638else 2639 if test -n "$STRIP"; then 2640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2641else 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643for as_dir in $PATH 2644do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2649 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2651 break 2 2652 fi 2653done 2654 done 2655IFS=$as_save_IFS 2656 2657fi 2658fi 2659STRIP=$ac_cv_prog_STRIP 2660if test -n "$STRIP"; then 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2662$as_echo "$STRIP" >&6; } 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2665$as_echo "no" >&6; } 2666fi 2667 2668 2669fi 2670if test -z "$ac_cv_prog_STRIP"; then 2671 ac_ct_STRIP=$STRIP 2672 # Extract the first word of "strip", so it can be a program name with args. 2673set dummy strip; ac_word=$2 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2675$as_echo_n "checking for $ac_word... " >&6; } 2676if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 if test -n "$ac_ct_STRIP"; then 2680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2689 ac_cv_prog_ac_ct_STRIP="strip" 2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694 done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2700if test -n "$ac_ct_STRIP"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2702$as_echo "$ac_ct_STRIP" >&6; } 2703else 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705$as_echo "no" >&6; } 2706fi 2707 2708 if test "x$ac_ct_STRIP" = x; then 2709 STRIP=":" 2710 else 2711 case $cross_compiling:$ac_tool_warned in 2712yes:) 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2715ac_tool_warned=yes ;; 2716esac 2717 STRIP=$ac_ct_STRIP 2718 fi 2719else 2720 STRIP="$ac_cv_prog_STRIP" 2721fi 2722 2723fi 2724INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2725 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2727$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2728if test -z "$MKDIR_P"; then 2729 if ${ac_cv_path_mkdir+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_prog in mkdir gmkdir; do 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2740 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2741 'mkdir (GNU coreutils) '* | \ 2742 'mkdir (coreutils) '* | \ 2743 'mkdir (fileutils) '4.1*) 2744 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2745 break 3;; 2746 esac 2747 done 2748 done 2749 done 2750IFS=$as_save_IFS 2751 2752fi 2753 2754 test -d ./--version && rmdir ./--version 2755 if test "${ac_cv_path_mkdir+set}" = set; then 2756 MKDIR_P="$ac_cv_path_mkdir -p" 2757 else 2758 # As a last resort, use the slow shell script. Don't cache a 2759 # value for MKDIR_P within a source directory, because that will 2760 # break other packages using the cache if that directory is 2761 # removed, or if the value is a relative name. 2762 MKDIR_P="$ac_install_sh -d" 2763 fi 2764fi 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2766$as_echo "$MKDIR_P" >&6; } 2767 2768for ac_prog in gawk mawk nawk awk 2769do 2770 # Extract the first word of "$ac_prog", so it can be a program name with args. 2771set dummy $ac_prog; ac_word=$2 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if ${ac_cv_prog_AWK+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$AWK"; then 2778 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2787 ac_cv_prog_AWK="$ac_prog" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797AWK=$ac_cv_prog_AWK 2798if test -n "$AWK"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2800$as_echo "$AWK" >&6; } 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803$as_echo "no" >&6; } 2804fi 2805 2806 2807 test -n "$AWK" && break 2808done 2809 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2811$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2812set x ${MAKE-make} 2813ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2814if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 cat >conftest.make <<\_ACEOF 2818SHELL = /bin/sh 2819all: 2820 @echo '@@@%%%=$(MAKE)=@@@%%%' 2821_ACEOF 2822# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2823case `${MAKE-make} -f conftest.make 2>/dev/null` in 2824 *@@@%%%=?*=@@@%%%*) 2825 eval ac_cv_prog_make_${ac_make}_set=yes;; 2826 *) 2827 eval ac_cv_prog_make_${ac_make}_set=no;; 2828esac 2829rm -f conftest.make 2830fi 2831if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2833$as_echo "yes" >&6; } 2834 SET_MAKE= 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838 SET_MAKE="MAKE=${MAKE-make}" 2839fi 2840 2841rm -rf .tst 2>/dev/null 2842mkdir .tst 2>/dev/null 2843if test -d .tst; then 2844 am__leading_dot=. 2845else 2846 am__leading_dot=_ 2847fi 2848rmdir .tst 2>/dev/null 2849 2850# Check whether --enable-silent-rules was given. 2851if test "${enable_silent_rules+set}" = set; then : 2852 enableval=$enable_silent_rules; 2853fi 2854 2855case $enable_silent_rules in # ((( 2856 yes) AM_DEFAULT_VERBOSITY=0;; 2857 no) AM_DEFAULT_VERBOSITY=1;; 2858 *) AM_DEFAULT_VERBOSITY=1;; 2859esac 2860am_make=${MAKE-make} 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2862$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2863if ${am_cv_make_support_nested_variables+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 if $as_echo 'TRUE=$(BAR$(V)) 2867BAR0=false 2868BAR1=true 2869V=1 2870am__doit: 2871 @$(TRUE) 2872.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2873 am_cv_make_support_nested_variables=yes 2874else 2875 am_cv_make_support_nested_variables=no 2876fi 2877fi 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2879$as_echo "$am_cv_make_support_nested_variables" >&6; } 2880if test $am_cv_make_support_nested_variables = yes; then 2881 AM_V='$(V)' 2882 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2883else 2884 AM_V=$AM_DEFAULT_VERBOSITY 2885 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2886fi 2887AM_BACKSLASH='\' 2888 2889if test "`cd $srcdir && pwd`" != "`pwd`"; then 2890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2891 # is not polluted with repeated "-I." 2892 am__isrc=' -I$(srcdir)' 2893 # test to see if srcdir already configured 2894 if test -f $srcdir/config.status; then 2895 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2896 fi 2897fi 2898 2899# test whether we have cygpath 2900if test -z "$CYGPATH_W"; then 2901 if (cygpath --version) >/dev/null 2>/dev/null; then 2902 CYGPATH_W='cygpath -w' 2903 else 2904 CYGPATH_W=echo 2905 fi 2906fi 2907 2908 2909# Define the identity of the package. 2910 PACKAGE='libvdpau' 2911 VERSION='1.2' 2912 2913 2914cat >>confdefs.h <<_ACEOF 2915#define PACKAGE "$PACKAGE" 2916_ACEOF 2917 2918 2919cat >>confdefs.h <<_ACEOF 2920#define VERSION "$VERSION" 2921_ACEOF 2922 2923# Some tools Automake needs. 2924 2925ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2926 2927 2928AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2929 2930 2931AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2932 2933 2934AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2935 2936 2937MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2938 2939# For better backward compatibility. To be removed once Automake 1.9.x 2940# dies out for good. For more background, see: 2941# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2942# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2943mkdir_p='$(MKDIR_P)' 2944 2945# We need awk for the "check" target (and possibly the TAP driver). The 2946# system "awk" is bad on some platforms. 2947# Always define AMTAR for backward compatibility. Yes, it's still used 2948# in the wild :-( We should find a proper way to deprecate it ... 2949AMTAR='$${TAR-tar}' 2950 2951 2952# We'll loop over all known methods to create a tar archive until one works. 2953_am_tools='gnutar pax cpio none' 2954 2955am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2956 2957 2958 2959 2960 2961 2962# POSIX will say in a future version that running "rm -f" with no argument 2963# is OK; and we want to be able to make that assumption in our Makefile 2964# recipes. So use an aggressive probe to check that the usage we want is 2965# actually supported "in the wild" to an acceptable degree. 2966# See automake bug#10828. 2967# To make any issue more visible, cause the running configure to be aborted 2968# by default if the 'rm' program in use doesn't match our expectations; the 2969# user can still override this though. 2970if rm -f && rm -fr && rm -rf; then : OK; else 2971 cat >&2 <<'END' 2972Oops! 2973 2974Your 'rm' program seems unable to run without file operands specified 2975on the command line, even when the '-f' option is present. This is contrary 2976to the behaviour of most rm programs out there, and not conforming with 2977the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2978 2979Please tell bug-automake@gnu.org about your system, including the value 2980of your $PATH and any error possibly output before this message. This 2981can help us improve future automake versions. 2982 2983END 2984 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2985 echo 'Configuration will proceed anyway, since you have set the' >&2 2986 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2987 echo >&2 2988 else 2989 cat >&2 <<'END' 2990Aborting the configuration process, to ensure you take notice of the issue. 2991 2992You can download and install GNU coreutils to get an 'rm' implementation 2993that behaves properly: <https://www.gnu.org/software/coreutils/>. 2994 2995If you want to complete the configuration process using your problematic 2996'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2997to "yes", and re-run configure. 2998 2999END 3000 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3001 fi 3002fi 3003 3004 3005ac_config_headers="$ac_config_headers config.h" 3006 3007 3008# Check for secure_getenv 3009DEPDIR="${am__leading_dot}deps" 3010 3011ac_config_commands="$ac_config_commands depfiles" 3012 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3014$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3015cat > confinc.mk << 'END' 3016am__doit: 3017 @echo this is the am__doit target >confinc.out 3018.PHONY: am__doit 3019END 3020am__include="#" 3021am__quote= 3022# BSD make does it like this. 3023echo '.include "confinc.mk" # ignored' > confmf.BSD 3024# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3025echo 'include confinc.mk # ignored' > confmf.GNU 3026_am_result=no 3027for s in GNU BSD; do 3028 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3029 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3030 ac_status=$? 3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3032 (exit $ac_status); } 3033 case $?:`cat confinc.out 2>/dev/null` in #( 3034 '0:this is the am__doit target') : 3035 case $s in #( 3036 BSD) : 3037 am__include='.include' am__quote='"' ;; #( 3038 *) : 3039 am__include='include' am__quote='' ;; 3040esac ;; #( 3041 *) : 3042 ;; 3043esac 3044 if test "$am__include" != "#"; then 3045 _am_result="yes ($s style)" 3046 break 3047 fi 3048done 3049rm -f confinc.* confmf.* 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3051$as_echo "${_am_result}" >&6; } 3052 3053# Check whether --enable-dependency-tracking was given. 3054if test "${enable_dependency_tracking+set}" = set; then : 3055 enableval=$enable_dependency_tracking; 3056fi 3057 3058if test "x$enable_dependency_tracking" != xno; then 3059 am_depcomp="$ac_aux_dir/depcomp" 3060 AMDEPBACKSLASH='\' 3061 am__nodep='_no' 3062fi 3063 if test "x$enable_dependency_tracking" != xno; then 3064 AMDEP_TRUE= 3065 AMDEP_FALSE='#' 3066else 3067 AMDEP_TRUE='#' 3068 AMDEP_FALSE= 3069fi 3070 3071 3072ac_ext=c 3073ac_cpp='$CPP $CPPFLAGS' 3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3076ac_compiler_gnu=$ac_cv_c_compiler_gnu 3077if test -n "$ac_tool_prefix"; then 3078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3079set dummy ${ac_tool_prefix}gcc; ac_word=$2 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081$as_echo_n "checking for $ac_word... " >&6; } 3082if ${ac_cv_prog_CC+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 if test -n "$CC"; then 3086 ac_cv_prog_CC="$CC" # Let the user override the test. 3087else 3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089for as_dir in $PATH 3090do 3091 IFS=$as_save_IFS 3092 test -z "$as_dir" && as_dir=. 3093 for ac_exec_ext in '' $ac_executable_extensions; do 3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3095 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3097 break 2 3098 fi 3099done 3100 done 3101IFS=$as_save_IFS 3102 3103fi 3104fi 3105CC=$ac_cv_prog_CC 3106if test -n "$CC"; then 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3108$as_echo "$CC" >&6; } 3109else 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3111$as_echo "no" >&6; } 3112fi 3113 3114 3115fi 3116if test -z "$ac_cv_prog_CC"; then 3117 ac_ct_CC=$CC 3118 # Extract the first word of "gcc", so it can be a program name with args. 3119set dummy gcc; ac_word=$2 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3121$as_echo_n "checking for $ac_word... " >&6; } 3122if ${ac_cv_prog_ac_ct_CC+:} false; then : 3123 $as_echo_n "(cached) " >&6 3124else 3125 if test -n "$ac_ct_CC"; then 3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3127else 3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129for as_dir in $PATH 3130do 3131 IFS=$as_save_IFS 3132 test -z "$as_dir" && as_dir=. 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3135 ac_cv_prog_ac_ct_CC="gcc" 3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3137 break 2 3138 fi 3139done 3140 done 3141IFS=$as_save_IFS 3142 3143fi 3144fi 3145ac_ct_CC=$ac_cv_prog_ac_ct_CC 3146if test -n "$ac_ct_CC"; then 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3148$as_echo "$ac_ct_CC" >&6; } 3149else 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3151$as_echo "no" >&6; } 3152fi 3153 3154 if test "x$ac_ct_CC" = x; then 3155 CC="" 3156 else 3157 case $cross_compiling:$ac_tool_warned in 3158yes:) 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3161ac_tool_warned=yes ;; 3162esac 3163 CC=$ac_ct_CC 3164 fi 3165else 3166 CC="$ac_cv_prog_CC" 3167fi 3168 3169if test -z "$CC"; then 3170 if test -n "$ac_tool_prefix"; then 3171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3172set dummy ${ac_tool_prefix}cc; ac_word=$2 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174$as_echo_n "checking for $ac_word... " >&6; } 3175if ${ac_cv_prog_CC+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 if test -n "$CC"; then 3179 ac_cv_prog_CC="$CC" # Let the user override the test. 3180else 3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182for as_dir in $PATH 3183do 3184 IFS=$as_save_IFS 3185 test -z "$as_dir" && as_dir=. 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3188 ac_cv_prog_CC="${ac_tool_prefix}cc" 3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 break 2 3191 fi 3192done 3193 done 3194IFS=$as_save_IFS 3195 3196fi 3197fi 3198CC=$ac_cv_prog_CC 3199if test -n "$CC"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3201$as_echo "$CC" >&6; } 3202else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205fi 3206 3207 3208 fi 3209fi 3210if test -z "$CC"; then 3211 # Extract the first word of "cc", so it can be a program name with args. 3212set dummy cc; ac_word=$2 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3214$as_echo_n "checking for $ac_word... " >&6; } 3215if ${ac_cv_prog_CC+:} false; then : 3216 $as_echo_n "(cached) " >&6 3217else 3218 if test -n "$CC"; then 3219 ac_cv_prog_CC="$CC" # Let the user override the test. 3220else 3221 ac_prog_rejected=no 3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3223for as_dir in $PATH 3224do 3225 IFS=$as_save_IFS 3226 test -z "$as_dir" && as_dir=. 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3230 ac_prog_rejected=yes 3231 continue 3232 fi 3233 ac_cv_prog_CC="cc" 3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3235 break 2 3236 fi 3237done 3238 done 3239IFS=$as_save_IFS 3240 3241if test $ac_prog_rejected = yes; then 3242 # We found a bogon in the path, so make sure we never use it. 3243 set dummy $ac_cv_prog_CC 3244 shift 3245 if test $# != 0; then 3246 # We chose a different compiler from the bogus one. 3247 # However, it has the same basename, so the bogon will be chosen 3248 # first if we set CC to just the basename; use the full file name. 3249 shift 3250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3251 fi 3252fi 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258$as_echo "$CC" >&6; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262fi 3263 3264 3265fi 3266if test -z "$CC"; then 3267 if test -n "$ac_tool_prefix"; then 3268 for ac_prog in cl.exe 3269 do 3270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3271set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3273$as_echo_n "checking for $ac_word... " >&6; } 3274if ${ac_cv_prog_CC+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 if test -n "$CC"; then 3278 ac_cv_prog_CC="$CC" # Let the user override the test. 3279else 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 test -z "$as_dir" && as_dir=. 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292 done 3293IFS=$as_save_IFS 3294 3295fi 3296fi 3297CC=$ac_cv_prog_CC 3298if test -n "$CC"; then 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3300$as_echo "$CC" >&6; } 3301else 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303$as_echo "no" >&6; } 3304fi 3305 3306 3307 test -n "$CC" && break 3308 done 3309fi 3310if test -z "$CC"; then 3311 ac_ct_CC=$CC 3312 for ac_prog in cl.exe 3313do 3314 # Extract the first word of "$ac_prog", so it can be a program name with args. 3315set dummy $ac_prog; ac_word=$2 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3317$as_echo_n "checking for $ac_word... " >&6; } 3318if ${ac_cv_prog_ac_ct_CC+:} false; then : 3319 $as_echo_n "(cached) " >&6 3320else 3321 if test -n "$ac_ct_CC"; then 3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3323else 3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3325for as_dir in $PATH 3326do 3327 IFS=$as_save_IFS 3328 test -z "$as_dir" && as_dir=. 3329 for ac_exec_ext in '' $ac_executable_extensions; do 3330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3331 ac_cv_prog_ac_ct_CC="$ac_prog" 3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3333 break 2 3334 fi 3335done 3336 done 3337IFS=$as_save_IFS 3338 3339fi 3340fi 3341ac_ct_CC=$ac_cv_prog_ac_ct_CC 3342if test -n "$ac_ct_CC"; then 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3344$as_echo "$ac_ct_CC" >&6; } 3345else 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3347$as_echo "no" >&6; } 3348fi 3349 3350 3351 test -n "$ac_ct_CC" && break 3352done 3353 3354 if test "x$ac_ct_CC" = x; then 3355 CC="" 3356 else 3357 case $cross_compiling:$ac_tool_warned in 3358yes:) 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3361ac_tool_warned=yes ;; 3362esac 3363 CC=$ac_ct_CC 3364 fi 3365fi 3366 3367fi 3368 3369 3370test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3372as_fn_error $? "no acceptable C compiler found in \$PATH 3373See \`config.log' for more details" "$LINENO" 5; } 3374 3375# Provide some information about the compiler. 3376$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3377set X $ac_compile 3378ac_compiler=$2 3379for ac_option in --version -v -V -qversion; do 3380 { { ac_try="$ac_compiler $ac_option >&5" 3381case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3386$as_echo "$ac_try_echo"; } >&5 3387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3388 ac_status=$? 3389 if test -s conftest.err; then 3390 sed '10a\ 3391... rest of stderr output deleted ... 3392 10q' conftest.err >conftest.er1 3393 cat conftest.er1 >&5 3394 fi 3395 rm -f conftest.er1 conftest.err 3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3397 test $ac_status = 0; } 3398done 3399 3400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411ac_clean_files_save=$ac_clean_files 3412ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3413# Try to create an executable without -o first, disregard a.out. 3414# It will help us diagnose broken compilers, and finding out an intuition 3415# of exeext. 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3417$as_echo_n "checking whether the C compiler works... " >&6; } 3418ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3419 3420# The possible output files: 3421ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3422 3423ac_rmfiles= 3424for ac_file in $ac_files 3425do 3426 case $ac_file in 3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3428 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3429 esac 3430done 3431rm -f $ac_rmfiles 3432 3433if { { ac_try="$ac_link_default" 3434case "(($ac_try" in 3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3436 *) ac_try_echo=$ac_try;; 3437esac 3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3439$as_echo "$ac_try_echo"; } >&5 3440 (eval "$ac_link_default") 2>&5 3441 ac_status=$? 3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3443 test $ac_status = 0; }; then : 3444 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3445# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3446# in a Makefile. We should not override ac_cv_exeext if it was cached, 3447# so that the user can short-circuit this test for compilers unknown to 3448# Autoconf. 3449for ac_file in $ac_files '' 3450do 3451 test -f "$ac_file" || continue 3452 case $ac_file in 3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3454 ;; 3455 [ab].out ) 3456 # We found the default executable, but exeext='' is most 3457 # certainly right. 3458 break;; 3459 *.* ) 3460 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3461 then :; else 3462 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3463 fi 3464 # We set ac_cv_exeext here because the later test for it is not 3465 # safe: cross compilers may not add the suffix if given an `-o' 3466 # argument, so we may need to know it at that point already. 3467 # Even if this section looks crufty: it has the advantage of 3468 # actually working. 3469 break;; 3470 * ) 3471 break;; 3472 esac 3473done 3474test "$ac_cv_exeext" = no && ac_cv_exeext= 3475 3476else 3477 ac_file='' 3478fi 3479if test -z "$ac_file"; then : 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3481$as_echo "no" >&6; } 3482$as_echo "$as_me: failed program was:" >&5 3483sed 's/^/| /' conftest.$ac_ext >&5 3484 3485{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3487as_fn_error 77 "C compiler cannot create executables 3488See \`config.log' for more details" "$LINENO" 5; } 3489else 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3491$as_echo "yes" >&6; } 3492fi 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3494$as_echo_n "checking for C compiler default output file name... " >&6; } 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3496$as_echo "$ac_file" >&6; } 3497ac_exeext=$ac_cv_exeext 3498 3499rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3500ac_clean_files=$ac_clean_files_save 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3502$as_echo_n "checking for suffix of executables... " >&6; } 3503if { { ac_try="$ac_link" 3504case "(($ac_try" in 3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3506 *) ac_try_echo=$ac_try;; 3507esac 3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3509$as_echo "$ac_try_echo"; } >&5 3510 (eval "$ac_link") 2>&5 3511 ac_status=$? 3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3513 test $ac_status = 0; }; then : 3514 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3515# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3516# work properly (i.e., refer to `conftest.exe'), while it won't with 3517# `rm'. 3518for ac_file in conftest.exe conftest conftest.*; do 3519 test -f "$ac_file" || continue 3520 case $ac_file in 3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3523 break;; 3524 * ) break;; 3525 esac 3526done 3527else 3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3530as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3531See \`config.log' for more details" "$LINENO" 5; } 3532fi 3533rm -f conftest conftest$ac_cv_exeext 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3535$as_echo "$ac_cv_exeext" >&6; } 3536 3537rm -f conftest.$ac_ext 3538EXEEXT=$ac_cv_exeext 3539ac_exeext=$EXEEXT 3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542#include <stdio.h> 3543int 3544main () 3545{ 3546FILE *f = fopen ("conftest.out", "w"); 3547 return ferror (f) || fclose (f) != 0; 3548 3549 ; 3550 return 0; 3551} 3552_ACEOF 3553ac_clean_files="$ac_clean_files conftest.out" 3554# Check that the compiler produces executables we can run. If not, either 3555# the compiler is broken, or we cross compile. 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3557$as_echo_n "checking whether we are cross compiling... " >&6; } 3558if test "$cross_compiling" != yes; then 3559 { { ac_try="$ac_link" 3560case "(($ac_try" in 3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3562 *) ac_try_echo=$ac_try;; 3563esac 3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3565$as_echo "$ac_try_echo"; } >&5 3566 (eval "$ac_link") 2>&5 3567 ac_status=$? 3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3569 test $ac_status = 0; } 3570 if { ac_try='./conftest$ac_cv_exeext' 3571 { { case "(($ac_try" in 3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3573 *) ac_try_echo=$ac_try;; 3574esac 3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3576$as_echo "$ac_try_echo"; } >&5 3577 (eval "$ac_try") 2>&5 3578 ac_status=$? 3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3580 test $ac_status = 0; }; }; then 3581 cross_compiling=no 3582 else 3583 if test "$cross_compiling" = maybe; then 3584 cross_compiling=yes 3585 else 3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3588as_fn_error $? "cannot run C compiled programs. 3589If you meant to cross compile, use \`--host'. 3590See \`config.log' for more details" "$LINENO" 5; } 3591 fi 3592 fi 3593fi 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3595$as_echo "$cross_compiling" >&6; } 3596 3597rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3598ac_clean_files=$ac_clean_files_save 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3600$as_echo_n "checking for suffix of object files... " >&6; } 3601if ${ac_cv_objext+:} false; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3605/* end confdefs.h. */ 3606 3607int 3608main () 3609{ 3610 3611 ; 3612 return 0; 3613} 3614_ACEOF 3615rm -f conftest.o conftest.obj 3616if { { ac_try="$ac_compile" 3617case "(($ac_try" in 3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3619 *) ac_try_echo=$ac_try;; 3620esac 3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3622$as_echo "$ac_try_echo"; } >&5 3623 (eval "$ac_compile") 2>&5 3624 ac_status=$? 3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3626 test $ac_status = 0; }; then : 3627 for ac_file in conftest.o conftest.obj conftest.*; do 3628 test -f "$ac_file" || continue; 3629 case $ac_file in 3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3632 break;; 3633 esac 3634done 3635else 3636 $as_echo "$as_me: failed program was:" >&5 3637sed 's/^/| /' conftest.$ac_ext >&5 3638 3639{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3641as_fn_error $? "cannot compute suffix of object files: cannot compile 3642See \`config.log' for more details" "$LINENO" 5; } 3643fi 3644rm -f conftest.$ac_cv_objext conftest.$ac_ext 3645fi 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3647$as_echo "$ac_cv_objext" >&6; } 3648OBJEXT=$ac_cv_objext 3649ac_objext=$OBJEXT 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3651$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3652if ${ac_cv_c_compiler_gnu+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657 3658int 3659main () 3660{ 3661#ifndef __GNUC__ 3662 choke me 3663#endif 3664 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669if ac_fn_c_try_compile "$LINENO"; then : 3670 ac_compiler_gnu=yes 3671else 3672 ac_compiler_gnu=no 3673fi 3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3675ac_cv_c_compiler_gnu=$ac_compiler_gnu 3676 3677fi 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3679$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3680if test $ac_compiler_gnu = yes; then 3681 GCC=yes 3682else 3683 GCC= 3684fi 3685ac_test_CFLAGS=${CFLAGS+set} 3686ac_save_CFLAGS=$CFLAGS 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3688$as_echo_n "checking whether $CC accepts -g... " >&6; } 3689if ${ac_cv_prog_cc_g+:} false; then : 3690 $as_echo_n "(cached) " >&6 3691else 3692 ac_save_c_werror_flag=$ac_c_werror_flag 3693 ac_c_werror_flag=yes 3694 ac_cv_prog_cc_g=no 3695 CFLAGS="-g" 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main () 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 ac_cv_prog_cc_g=yes 3709else 3710 CFLAGS="" 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713 3714int 3715main () 3716{ 3717 3718 ; 3719 return 0; 3720} 3721_ACEOF 3722if ac_fn_c_try_compile "$LINENO"; then : 3723 3724else 3725 ac_c_werror_flag=$ac_save_c_werror_flag 3726 CFLAGS="-g" 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main () 3732{ 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738if ac_fn_c_try_compile "$LINENO"; then : 3739 ac_cv_prog_cc_g=yes 3740fi 3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3742fi 3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3744fi 3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3746 ac_c_werror_flag=$ac_save_c_werror_flag 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3749$as_echo "$ac_cv_prog_cc_g" >&6; } 3750if test "$ac_test_CFLAGS" = set; then 3751 CFLAGS=$ac_save_CFLAGS 3752elif test $ac_cv_prog_cc_g = yes; then 3753 if test "$GCC" = yes; then 3754 CFLAGS="-g -O2" 3755 else 3756 CFLAGS="-g" 3757 fi 3758else 3759 if test "$GCC" = yes; then 3760 CFLAGS="-O2" 3761 else 3762 CFLAGS= 3763 fi 3764fi 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3766$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3767if ${ac_cv_prog_cc_c89+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 ac_cv_prog_cc_c89=no 3771ac_save_CC=$CC 3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774#include <stdarg.h> 3775#include <stdio.h> 3776struct stat; 3777/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3778struct buf { int x; }; 3779FILE * (*rcsopen) (struct buf *, struct stat *, int); 3780static char *e (p, i) 3781 char **p; 3782 int i; 3783{ 3784 return p[i]; 3785} 3786static char *f (char * (*g) (char **, int), char **p, ...) 3787{ 3788 char *s; 3789 va_list v; 3790 va_start (v,p); 3791 s = g (p, va_arg (v,int)); 3792 va_end (v); 3793 return s; 3794} 3795 3796/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3797 function prototypes and stuff, but not '\xHH' hex character constants. 3798 These don't provoke an error unfortunately, instead are silently treated 3799 as 'x'. The following induces an error, until -std is added to get 3800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3801 array size at least. It's necessary to write '\x00'==0 to get something 3802 that's true only with -std. */ 3803int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3804 3805/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3806 inside strings and character constants. */ 3807#define FOO(x) 'x' 3808int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3809 3810int test (int i, double x); 3811struct s1 {int (*f) (int a);}; 3812struct s2 {int (*f) (double a);}; 3813int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3814int argc; 3815char **argv; 3816int 3817main () 3818{ 3819return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3820 ; 3821 return 0; 3822} 3823_ACEOF 3824for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3826do 3827 CC="$ac_save_CC $ac_arg" 3828 if ac_fn_c_try_compile "$LINENO"; then : 3829 ac_cv_prog_cc_c89=$ac_arg 3830fi 3831rm -f core conftest.err conftest.$ac_objext 3832 test "x$ac_cv_prog_cc_c89" != "xno" && break 3833done 3834rm -f conftest.$ac_ext 3835CC=$ac_save_CC 3836 3837fi 3838# AC_CACHE_VAL 3839case "x$ac_cv_prog_cc_c89" in 3840 x) 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3842$as_echo "none needed" >&6; } ;; 3843 xno) 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3845$as_echo "unsupported" >&6; } ;; 3846 *) 3847 CC="$CC $ac_cv_prog_cc_c89" 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3849$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3850esac 3851if test "x$ac_cv_prog_cc_c89" != xno; then : 3852 3853fi 3854 3855ac_ext=c 3856ac_cpp='$CPP $CPPFLAGS' 3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3859ac_compiler_gnu=$ac_cv_c_compiler_gnu 3860 3861ac_ext=c 3862ac_cpp='$CPP $CPPFLAGS' 3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3865ac_compiler_gnu=$ac_cv_c_compiler_gnu 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3867$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3868if ${am_cv_prog_cc_c_o+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3872/* end confdefs.h. */ 3873 3874int 3875main () 3876{ 3877 3878 ; 3879 return 0; 3880} 3881_ACEOF 3882 # Make sure it works both with $CC and with simple cc. 3883 # Following AC_PROG_CC_C_O, we do the test twice because some 3884 # compilers refuse to overwrite an existing .o file with -o, 3885 # though they will create one. 3886 am_cv_prog_cc_c_o=yes 3887 for am_i in 1 2; do 3888 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3889 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); } \ 3893 && test -f conftest2.$ac_objext; then 3894 : OK 3895 else 3896 am_cv_prog_cc_c_o=no 3897 break 3898 fi 3899 done 3900 rm -f core conftest* 3901 unset am_i 3902fi 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3904$as_echo "$am_cv_prog_cc_c_o" >&6; } 3905if test "$am_cv_prog_cc_c_o" != yes; then 3906 # Losing compiler, so override with the script. 3907 # FIXME: It is wrong to rewrite CC. 3908 # But if we don't then we get into trouble of one sort or another. 3909 # A longer-term fix would be to have automake use am__CC in this case, 3910 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3911 CC="$am_aux_dir/compile $CC" 3912fi 3913ac_ext=c 3914ac_cpp='$CPP $CPPFLAGS' 3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3917ac_compiler_gnu=$ac_cv_c_compiler_gnu 3918 3919 3920depcc="$CC" am_compiler_list= 3921 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3923$as_echo_n "checking dependency style of $depcc... " >&6; } 3924if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3928 # We make a subdir and do the tests there. Otherwise we can end up 3929 # making bogus files that we don't know about and never remove. For 3930 # instance it was reported that on HP-UX the gcc test will end up 3931 # making a dummy file named 'D' -- because '-MD' means "put the output 3932 # in D". 3933 rm -rf conftest.dir 3934 mkdir conftest.dir 3935 # Copy depcomp to subdir because otherwise we won't find it if we're 3936 # using a relative directory. 3937 cp "$am_depcomp" conftest.dir 3938 cd conftest.dir 3939 # We will build objects and dependencies in a subdirectory because 3940 # it helps to detect inapplicable dependency modes. For instance 3941 # both Tru64's cc and ICC support -MD to output dependencies as a 3942 # side effect of compilation, but ICC will put the dependencies in 3943 # the current directory while Tru64 will put them in the object 3944 # directory. 3945 mkdir sub 3946 3947 am_cv_CC_dependencies_compiler_type=none 3948 if test "$am_compiler_list" = ""; then 3949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3950 fi 3951 am__universal=false 3952 case " $depcc " in #( 3953 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3954 esac 3955 3956 for depmode in $am_compiler_list; do 3957 # Setup a source with many dependencies, because some compilers 3958 # like to wrap large dependency lists on column 80 (with \), and 3959 # we should not choose a depcomp mode which is confused by this. 3960 # 3961 # We need to recreate these files for each test, as the compiler may 3962 # overwrite some of them when testing with obscure command lines. 3963 # This happens at least with the AIX C compiler. 3964 : > sub/conftest.c 3965 for i in 1 2 3 4 5 6; do 3966 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3967 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3968 # Solaris 10 /bin/sh. 3969 echo '/* dummy */' > sub/conftst$i.h 3970 done 3971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3972 3973 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3974 # mode. It turns out that the SunPro C++ compiler does not properly 3975 # handle '-M -o', and we need to detect this. Also, some Intel 3976 # versions had trouble with output in subdirs. 3977 am__obj=sub/conftest.${OBJEXT-o} 3978 am__minus_obj="-o $am__obj" 3979 case $depmode in 3980 gcc) 3981 # This depmode causes a compiler race in universal mode. 3982 test "$am__universal" = false || continue 3983 ;; 3984 nosideeffect) 3985 # After this tag, mechanisms are not by side-effect, so they'll 3986 # only be used when explicitly requested. 3987 if test "x$enable_dependency_tracking" = xyes; then 3988 continue 3989 else 3990 break 3991 fi 3992 ;; 3993 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3994 # This compiler won't grok '-c -o', but also, the minuso test has 3995 # not run yet. These depmodes are late enough in the game, and 3996 # so weak that their functioning should not be impacted. 3997 am__obj=conftest.${OBJEXT-o} 3998 am__minus_obj= 3999 ;; 4000 none) break ;; 4001 esac 4002 if depmode=$depmode \ 4003 source=sub/conftest.c object=$am__obj \ 4004 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4005 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4006 >/dev/null 2>conftest.err && 4007 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4009 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4011 # icc doesn't choke on unknown options, it will just issue warnings 4012 # or remarks (even with -Werror). So we grep stderr for any message 4013 # that says an option was ignored or not supported. 4014 # When given -MP, icc 7.0 and 7.1 complain thusly: 4015 # icc: Command line warning: ignoring option '-M'; no argument required 4016 # The diagnosis changed in icc 8.0: 4017 # icc: Command line remark: option '-MP' not supported 4018 if (grep 'ignoring option' conftest.err || 4019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4020 am_cv_CC_dependencies_compiler_type=$depmode 4021 break 4022 fi 4023 fi 4024 done 4025 4026 cd .. 4027 rm -rf conftest.dir 4028else 4029 am_cv_CC_dependencies_compiler_type=none 4030fi 4031 4032fi 4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4034$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4035CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4036 4037 if 4038 test "x$enable_dependency_tracking" != xno \ 4039 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4040 am__fastdepCC_TRUE= 4041 am__fastdepCC_FALSE='#' 4042else 4043 am__fastdepCC_TRUE='#' 4044 am__fastdepCC_FALSE= 4045fi 4046 4047 4048 4049ac_ext=c 4050ac_cpp='$CPP $CPPFLAGS' 4051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4053ac_compiler_gnu=$ac_cv_c_compiler_gnu 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4055$as_echo_n "checking how to run the C preprocessor... " >&6; } 4056# On Suns, sometimes $CPP names a directory. 4057if test -n "$CPP" && test -d "$CPP"; then 4058 CPP= 4059fi 4060if test -z "$CPP"; then 4061 if ${ac_cv_prog_CPP+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 # Double quotes because CPP needs to be expanded 4065 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4066 do 4067 ac_preproc_ok=false 4068for ac_c_preproc_warn_flag in '' yes 4069do 4070 # Use a header file that comes with gcc, so configuring glibc 4071 # with a fresh cross-compiler works. 4072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4073 # <limits.h> exists even on freestanding compilers. 4074 # On the NeXT, cc -E runs the code through the compiler's parser, 4075 # not just through cpp. "Syntax error" is here to catch this case. 4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077/* end confdefs.h. */ 4078#ifdef __STDC__ 4079# include <limits.h> 4080#else 4081# include <assert.h> 4082#endif 4083 Syntax error 4084_ACEOF 4085if ac_fn_c_try_cpp "$LINENO"; then : 4086 4087else 4088 # Broken: fails on valid input. 4089continue 4090fi 4091rm -f conftest.err conftest.i conftest.$ac_ext 4092 4093 # OK, works on sane cases. Now check whether nonexistent headers 4094 # can be detected and how. 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097#include <ac_nonexistent.h> 4098_ACEOF 4099if ac_fn_c_try_cpp "$LINENO"; then : 4100 # Broken: success on invalid input. 4101continue 4102else 4103 # Passes both tests. 4104ac_preproc_ok=: 4105break 4106fi 4107rm -f conftest.err conftest.i conftest.$ac_ext 4108 4109done 4110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4111rm -f conftest.i conftest.err conftest.$ac_ext 4112if $ac_preproc_ok; then : 4113 break 4114fi 4115 4116 done 4117 ac_cv_prog_CPP=$CPP 4118 4119fi 4120 CPP=$ac_cv_prog_CPP 4121else 4122 ac_cv_prog_CPP=$CPP 4123fi 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4125$as_echo "$CPP" >&6; } 4126ac_preproc_ok=false 4127for ac_c_preproc_warn_flag in '' yes 4128do 4129 # Use a header file that comes with gcc, so configuring glibc 4130 # with a fresh cross-compiler works. 4131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4132 # <limits.h> exists even on freestanding compilers. 4133 # On the NeXT, cc -E runs the code through the compiler's parser, 4134 # not just through cpp. "Syntax error" is here to catch this case. 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137#ifdef __STDC__ 4138# include <limits.h> 4139#else 4140# include <assert.h> 4141#endif 4142 Syntax error 4143_ACEOF 4144if ac_fn_c_try_cpp "$LINENO"; then : 4145 4146else 4147 # Broken: fails on valid input. 4148continue 4149fi 4150rm -f conftest.err conftest.i conftest.$ac_ext 4151 4152 # OK, works on sane cases. Now check whether nonexistent headers 4153 # can be detected and how. 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156#include <ac_nonexistent.h> 4157_ACEOF 4158if ac_fn_c_try_cpp "$LINENO"; then : 4159 # Broken: success on invalid input. 4160continue 4161else 4162 # Passes both tests. 4163ac_preproc_ok=: 4164break 4165fi 4166rm -f conftest.err conftest.i conftest.$ac_ext 4167 4168done 4169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4170rm -f conftest.i conftest.err conftest.$ac_ext 4171if $ac_preproc_ok; then : 4172 4173else 4174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4176as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4177See \`config.log' for more details" "$LINENO" 5; } 4178fi 4179 4180ac_ext=c 4181ac_cpp='$CPP $CPPFLAGS' 4182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4184ac_compiler_gnu=$ac_cv_c_compiler_gnu 4185 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4188$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4189if ${ac_cv_path_GREP+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 if test -z "$GREP"; then 4193 ac_path_GREP_found=false 4194 # Loop through the user's path and test for each of PROGNAME-LIST 4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4197do 4198 IFS=$as_save_IFS 4199 test -z "$as_dir" && as_dir=. 4200 for ac_prog in grep ggrep; do 4201 for ac_exec_ext in '' $ac_executable_extensions; do 4202 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4203 as_fn_executable_p "$ac_path_GREP" || continue 4204# Check for GNU ac_path_GREP and select it if it is found. 4205 # Check for GNU $ac_path_GREP 4206case `"$ac_path_GREP" --version 2>&1` in 4207*GNU*) 4208 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4209*) 4210 ac_count=0 4211 $as_echo_n 0123456789 >"conftest.in" 4212 while : 4213 do 4214 cat "conftest.in" "conftest.in" >"conftest.tmp" 4215 mv "conftest.tmp" "conftest.in" 4216 cp "conftest.in" "conftest.nl" 4217 $as_echo 'GREP' >> "conftest.nl" 4218 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4220 as_fn_arith $ac_count + 1 && ac_count=$as_val 4221 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4222 # Best one so far, save it but keep looking for a better one 4223 ac_cv_path_GREP="$ac_path_GREP" 4224 ac_path_GREP_max=$ac_count 4225 fi 4226 # 10*(2^10) chars as input seems more than enough 4227 test $ac_count -gt 10 && break 4228 done 4229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4230esac 4231 4232 $ac_path_GREP_found && break 3 4233 done 4234 done 4235 done 4236IFS=$as_save_IFS 4237 if test -z "$ac_cv_path_GREP"; then 4238 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4239 fi 4240else 4241 ac_cv_path_GREP=$GREP 4242fi 4243 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4246$as_echo "$ac_cv_path_GREP" >&6; } 4247 GREP="$ac_cv_path_GREP" 4248 4249 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4251$as_echo_n "checking for egrep... " >&6; } 4252if ${ac_cv_path_EGREP+:} false; then : 4253 $as_echo_n "(cached) " >&6 4254else 4255 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4256 then ac_cv_path_EGREP="$GREP -E" 4257 else 4258 if test -z "$EGREP"; then 4259 ac_path_EGREP_found=false 4260 # Loop through the user's path and test for each of PROGNAME-LIST 4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4263do 4264 IFS=$as_save_IFS 4265 test -z "$as_dir" && as_dir=. 4266 for ac_prog in egrep; do 4267 for ac_exec_ext in '' $ac_executable_extensions; do 4268 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4269 as_fn_executable_p "$ac_path_EGREP" || continue 4270# Check for GNU ac_path_EGREP and select it if it is found. 4271 # Check for GNU $ac_path_EGREP 4272case `"$ac_path_EGREP" --version 2>&1` in 4273*GNU*) 4274 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4275*) 4276 ac_count=0 4277 $as_echo_n 0123456789 >"conftest.in" 4278 while : 4279 do 4280 cat "conftest.in" "conftest.in" >"conftest.tmp" 4281 mv "conftest.tmp" "conftest.in" 4282 cp "conftest.in" "conftest.nl" 4283 $as_echo 'EGREP' >> "conftest.nl" 4284 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4286 as_fn_arith $ac_count + 1 && ac_count=$as_val 4287 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4288 # Best one so far, save it but keep looking for a better one 4289 ac_cv_path_EGREP="$ac_path_EGREP" 4290 ac_path_EGREP_max=$ac_count 4291 fi 4292 # 10*(2^10) chars as input seems more than enough 4293 test $ac_count -gt 10 && break 4294 done 4295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4296esac 4297 4298 $ac_path_EGREP_found && break 3 4299 done 4300 done 4301 done 4302IFS=$as_save_IFS 4303 if test -z "$ac_cv_path_EGREP"; then 4304 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4305 fi 4306else 4307 ac_cv_path_EGREP=$EGREP 4308fi 4309 4310 fi 4311fi 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4313$as_echo "$ac_cv_path_EGREP" >&6; } 4314 EGREP="$ac_cv_path_EGREP" 4315 4316 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4318$as_echo_n "checking for ANSI C header files... " >&6; } 4319if ${ac_cv_header_stdc+:} false; then : 4320 $as_echo_n "(cached) " >&6 4321else 4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324#include <stdlib.h> 4325#include <stdarg.h> 4326#include <string.h> 4327#include <float.h> 4328 4329int 4330main () 4331{ 4332 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337if ac_fn_c_try_compile "$LINENO"; then : 4338 ac_cv_header_stdc=yes 4339else 4340 ac_cv_header_stdc=no 4341fi 4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4343 4344if test $ac_cv_header_stdc = yes; then 4345 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347/* end confdefs.h. */ 4348#include <string.h> 4349 4350_ACEOF 4351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4352 $EGREP "memchr" >/dev/null 2>&1; then : 4353 4354else 4355 ac_cv_header_stdc=no 4356fi 4357rm -f conftest* 4358 4359fi 4360 4361if test $ac_cv_header_stdc = yes; then 4362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364/* end confdefs.h. */ 4365#include <stdlib.h> 4366 4367_ACEOF 4368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4369 $EGREP "free" >/dev/null 2>&1; then : 4370 4371else 4372 ac_cv_header_stdc=no 4373fi 4374rm -f conftest* 4375 4376fi 4377 4378if test $ac_cv_header_stdc = yes; then 4379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4380 if test "$cross_compiling" = yes; then : 4381 : 4382else 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384/* end confdefs.h. */ 4385#include <ctype.h> 4386#include <stdlib.h> 4387#if ((' ' & 0x0FF) == 0x020) 4388# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4389# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4390#else 4391# define ISLOWER(c) \ 4392 (('a' <= (c) && (c) <= 'i') \ 4393 || ('j' <= (c) && (c) <= 'r') \ 4394 || ('s' <= (c) && (c) <= 'z')) 4395# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4396#endif 4397 4398#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4399int 4400main () 4401{ 4402 int i; 4403 for (i = 0; i < 256; i++) 4404 if (XOR (islower (i), ISLOWER (i)) 4405 || toupper (i) != TOUPPER (i)) 4406 return 2; 4407 return 0; 4408} 4409_ACEOF 4410if ac_fn_c_try_run "$LINENO"; then : 4411 4412else 4413 ac_cv_header_stdc=no 4414fi 4415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4416 conftest.$ac_objext conftest.beam conftest.$ac_ext 4417fi 4418 4419fi 4420fi 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4422$as_echo "$ac_cv_header_stdc" >&6; } 4423if test $ac_cv_header_stdc = yes; then 4424 4425$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4426 4427fi 4428 4429# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4430for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4431 inttypes.h stdint.h unistd.h 4432do : 4433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4434ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4435" 4436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4437 cat >>confdefs.h <<_ACEOF 4438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4439_ACEOF 4440 4441fi 4442 4443done 4444 4445 4446 4447 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4448if test "x$ac_cv_header_minix_config_h" = xyes; then : 4449 MINIX=yes 4450else 4451 MINIX= 4452fi 4453 4454 4455 if test "$MINIX" = yes; then 4456 4457$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4458 4459 4460$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4461 4462 4463$as_echo "#define _MINIX 1" >>confdefs.h 4464 4465 fi 4466 4467 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4469$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4470if ${ac_cv_safe_to_define___extensions__+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474/* end confdefs.h. */ 4475 4476# define __EXTENSIONS__ 1 4477 $ac_includes_default 4478int 4479main () 4480{ 4481 4482 ; 4483 return 0; 4484} 4485_ACEOF 4486if ac_fn_c_try_compile "$LINENO"; then : 4487 ac_cv_safe_to_define___extensions__=yes 4488else 4489 ac_cv_safe_to_define___extensions__=no 4490fi 4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4494$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4495 test $ac_cv_safe_to_define___extensions__ = yes && 4496 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4497 4498 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4499 4500 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4501 4502 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4503 4504 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4505 4506 4507for ac_func in __secure_getenv secure_getenv 4508do : 4509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4510ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4511if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4512 cat >>confdefs.h <<_ACEOF 4513#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4514_ACEOF 4515 4516fi 4517done 4518 4519 4520# Disable static libraries by default. Use --enable-static if you really want 4521# them. 4522# Check whether --enable-static was given. 4523if test "${enable_static+set}" = set; then : 4524 enableval=$enable_static; p=${PACKAGE-default} 4525 case $enableval in 4526 yes) enable_static=yes ;; 4527 no) enable_static=no ;; 4528 *) 4529 enable_static=no 4530 # Look at the argument we got. We use all the common list separators. 4531 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 4532 for pkg in $enableval; do 4533 IFS=$lt_save_ifs 4534 if test "X$pkg" = "X$p"; then 4535 enable_static=yes 4536 fi 4537 done 4538 IFS=$lt_save_ifs 4539 ;; 4540 esac 4541else 4542 enable_static=no 4543fi 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554# Check for programs. 4555ac_ext=c 4556ac_cpp='$CPP $CPPFLAGS' 4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4559ac_compiler_gnu=$ac_cv_c_compiler_gnu 4560if test -n "$ac_tool_prefix"; then 4561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4562set dummy ${ac_tool_prefix}gcc; ac_word=$2 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4564$as_echo_n "checking for $ac_word... " >&6; } 4565if ${ac_cv_prog_CC+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test -n "$CC"; then 4569 ac_cv_prog_CC="$CC" # Let the user override the test. 4570else 4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572for as_dir in $PATH 4573do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4578 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4580 break 2 4581 fi 4582done 4583 done 4584IFS=$as_save_IFS 4585 4586fi 4587fi 4588CC=$ac_cv_prog_CC 4589if test -n "$CC"; then 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4591$as_echo "$CC" >&6; } 4592else 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4594$as_echo "no" >&6; } 4595fi 4596 4597 4598fi 4599if test -z "$ac_cv_prog_CC"; then 4600 ac_ct_CC=$CC 4601 # Extract the first word of "gcc", so it can be a program name with args. 4602set dummy gcc; ac_word=$2 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4604$as_echo_n "checking for $ac_word... " >&6; } 4605if ${ac_cv_prog_ac_ct_CC+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607else 4608 if test -n "$ac_ct_CC"; then 4609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4610else 4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4612for as_dir in $PATH 4613do 4614 IFS=$as_save_IFS 4615 test -z "$as_dir" && as_dir=. 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4618 ac_cv_prog_ac_ct_CC="gcc" 4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4620 break 2 4621 fi 4622done 4623 done 4624IFS=$as_save_IFS 4625 4626fi 4627fi 4628ac_ct_CC=$ac_cv_prog_ac_ct_CC 4629if test -n "$ac_ct_CC"; then 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4631$as_echo "$ac_ct_CC" >&6; } 4632else 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4634$as_echo "no" >&6; } 4635fi 4636 4637 if test "x$ac_ct_CC" = x; then 4638 CC="" 4639 else 4640 case $cross_compiling:$ac_tool_warned in 4641yes:) 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4644ac_tool_warned=yes ;; 4645esac 4646 CC=$ac_ct_CC 4647 fi 4648else 4649 CC="$ac_cv_prog_CC" 4650fi 4651 4652if test -z "$CC"; then 4653 if test -n "$ac_tool_prefix"; then 4654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4655set dummy ${ac_tool_prefix}cc; ac_word=$2 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4657$as_echo_n "checking for $ac_word... " >&6; } 4658if ${ac_cv_prog_CC+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 if test -n "$CC"; then 4662 ac_cv_prog_CC="$CC" # Let the user override the test. 4663else 4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4665for as_dir in $PATH 4666do 4667 IFS=$as_save_IFS 4668 test -z "$as_dir" && as_dir=. 4669 for ac_exec_ext in '' $ac_executable_extensions; do 4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4671 ac_cv_prog_CC="${ac_tool_prefix}cc" 4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4673 break 2 4674 fi 4675done 4676 done 4677IFS=$as_save_IFS 4678 4679fi 4680fi 4681CC=$ac_cv_prog_CC 4682if test -n "$CC"; then 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4684$as_echo "$CC" >&6; } 4685else 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687$as_echo "no" >&6; } 4688fi 4689 4690 4691 fi 4692fi 4693if test -z "$CC"; then 4694 # Extract the first word of "cc", so it can be a program name with args. 4695set dummy cc; ac_word=$2 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4697$as_echo_n "checking for $ac_word... " >&6; } 4698if ${ac_cv_prog_CC+:} false; then : 4699 $as_echo_n "(cached) " >&6 4700else 4701 if test -n "$CC"; then 4702 ac_cv_prog_CC="$CC" # Let the user override the test. 4703else 4704 ac_prog_rejected=no 4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4706for as_dir in $PATH 4707do 4708 IFS=$as_save_IFS 4709 test -z "$as_dir" && as_dir=. 4710 for ac_exec_ext in '' $ac_executable_extensions; do 4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4713 ac_prog_rejected=yes 4714 continue 4715 fi 4716 ac_cv_prog_CC="cc" 4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4718 break 2 4719 fi 4720done 4721 done 4722IFS=$as_save_IFS 4723 4724if test $ac_prog_rejected = yes; then 4725 # We found a bogon in the path, so make sure we never use it. 4726 set dummy $ac_cv_prog_CC 4727 shift 4728 if test $# != 0; then 4729 # We chose a different compiler from the bogus one. 4730 # However, it has the same basename, so the bogon will be chosen 4731 # first if we set CC to just the basename; use the full file name. 4732 shift 4733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4734 fi 4735fi 4736fi 4737fi 4738CC=$ac_cv_prog_CC 4739if test -n "$CC"; then 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4741$as_echo "$CC" >&6; } 4742else 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4744$as_echo "no" >&6; } 4745fi 4746 4747 4748fi 4749if test -z "$CC"; then 4750 if test -n "$ac_tool_prefix"; then 4751 for ac_prog in cl.exe 4752 do 4753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4754set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4756$as_echo_n "checking for $ac_word... " >&6; } 4757if ${ac_cv_prog_CC+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 if test -n "$CC"; then 4761 ac_cv_prog_CC="$CC" # Let the user override the test. 4762else 4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH 4765do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_exec_ext in '' $ac_executable_extensions; do 4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4772 break 2 4773 fi 4774done 4775 done 4776IFS=$as_save_IFS 4777 4778fi 4779fi 4780CC=$ac_cv_prog_CC 4781if test -n "$CC"; then 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4783$as_echo "$CC" >&6; } 4784else 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4786$as_echo "no" >&6; } 4787fi 4788 4789 4790 test -n "$CC" && break 4791 done 4792fi 4793if test -z "$CC"; then 4794 ac_ct_CC=$CC 4795 for ac_prog in cl.exe 4796do 4797 # Extract the first word of "$ac_prog", so it can be a program name with args. 4798set dummy $ac_prog; ac_word=$2 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800$as_echo_n "checking for $ac_word... " >&6; } 4801if ${ac_cv_prog_ac_ct_CC+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 if test -n "$ac_ct_CC"; then 4805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4806else 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808for as_dir in $PATH 4809do 4810 IFS=$as_save_IFS 4811 test -z "$as_dir" && as_dir=. 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4814 ac_cv_prog_ac_ct_CC="$ac_prog" 4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818done 4819 done 4820IFS=$as_save_IFS 4821 4822fi 4823fi 4824ac_ct_CC=$ac_cv_prog_ac_ct_CC 4825if test -n "$ac_ct_CC"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4827$as_echo "$ac_ct_CC" >&6; } 4828else 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4830$as_echo "no" >&6; } 4831fi 4832 4833 4834 test -n "$ac_ct_CC" && break 4835done 4836 4837 if test "x$ac_ct_CC" = x; then 4838 CC="" 4839 else 4840 case $cross_compiling:$ac_tool_warned in 4841yes:) 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4844ac_tool_warned=yes ;; 4845esac 4846 CC=$ac_ct_CC 4847 fi 4848fi 4849 4850fi 4851 4852 4853test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4855as_fn_error $? "no acceptable C compiler found in \$PATH 4856See \`config.log' for more details" "$LINENO" 5; } 4857 4858# Provide some information about the compiler. 4859$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4860set X $ac_compile 4861ac_compiler=$2 4862for ac_option in --version -v -V -qversion; do 4863 { { ac_try="$ac_compiler $ac_option >&5" 4864case "(($ac_try" in 4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4866 *) ac_try_echo=$ac_try;; 4867esac 4868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4869$as_echo "$ac_try_echo"; } >&5 4870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4871 ac_status=$? 4872 if test -s conftest.err; then 4873 sed '10a\ 4874... rest of stderr output deleted ... 4875 10q' conftest.err >conftest.er1 4876 cat conftest.er1 >&5 4877 fi 4878 rm -f conftest.er1 conftest.err 4879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4880 test $ac_status = 0; } 4881done 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4884$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4885if ${ac_cv_c_compiler_gnu+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4889/* end confdefs.h. */ 4890 4891int 4892main () 4893{ 4894#ifndef __GNUC__ 4895 choke me 4896#endif 4897 4898 ; 4899 return 0; 4900} 4901_ACEOF 4902if ac_fn_c_try_compile "$LINENO"; then : 4903 ac_compiler_gnu=yes 4904else 4905 ac_compiler_gnu=no 4906fi 4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4908ac_cv_c_compiler_gnu=$ac_compiler_gnu 4909 4910fi 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4912$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4913if test $ac_compiler_gnu = yes; then 4914 GCC=yes 4915else 4916 GCC= 4917fi 4918ac_test_CFLAGS=${CFLAGS+set} 4919ac_save_CFLAGS=$CFLAGS 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4921$as_echo_n "checking whether $CC accepts -g... " >&6; } 4922if ${ac_cv_prog_cc_g+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 ac_save_c_werror_flag=$ac_c_werror_flag 4926 ac_c_werror_flag=yes 4927 ac_cv_prog_cc_g=no 4928 CFLAGS="-g" 4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4930/* end confdefs.h. */ 4931 4932int 4933main () 4934{ 4935 4936 ; 4937 return 0; 4938} 4939_ACEOF 4940if ac_fn_c_try_compile "$LINENO"; then : 4941 ac_cv_prog_cc_g=yes 4942else 4943 CFLAGS="" 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4945/* end confdefs.h. */ 4946 4947int 4948main () 4949{ 4950 4951 ; 4952 return 0; 4953} 4954_ACEOF 4955if ac_fn_c_try_compile "$LINENO"; then : 4956 4957else 4958 ac_c_werror_flag=$ac_save_c_werror_flag 4959 CFLAGS="-g" 4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961/* end confdefs.h. */ 4962 4963int 4964main () 4965{ 4966 4967 ; 4968 return 0; 4969} 4970_ACEOF 4971if ac_fn_c_try_compile "$LINENO"; then : 4972 ac_cv_prog_cc_g=yes 4973fi 4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4975fi 4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4977fi 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979 ac_c_werror_flag=$ac_save_c_werror_flag 4980fi 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4982$as_echo "$ac_cv_prog_cc_g" >&6; } 4983if test "$ac_test_CFLAGS" = set; then 4984 CFLAGS=$ac_save_CFLAGS 4985elif test $ac_cv_prog_cc_g = yes; then 4986 if test "$GCC" = yes; then 4987 CFLAGS="-g -O2" 4988 else 4989 CFLAGS="-g" 4990 fi 4991else 4992 if test "$GCC" = yes; then 4993 CFLAGS="-O2" 4994 else 4995 CFLAGS= 4996 fi 4997fi 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4999$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5000if ${ac_cv_prog_cc_c89+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 ac_cv_prog_cc_c89=no 5004ac_save_CC=$CC 5005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007#include <stdarg.h> 5008#include <stdio.h> 5009struct stat; 5010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5011struct buf { int x; }; 5012FILE * (*rcsopen) (struct buf *, struct stat *, int); 5013static char *e (p, i) 5014 char **p; 5015 int i; 5016{ 5017 return p[i]; 5018} 5019static char *f (char * (*g) (char **, int), char **p, ...) 5020{ 5021 char *s; 5022 va_list v; 5023 va_start (v,p); 5024 s = g (p, va_arg (v,int)); 5025 va_end (v); 5026 return s; 5027} 5028 5029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5030 function prototypes and stuff, but not '\xHH' hex character constants. 5031 These don't provoke an error unfortunately, instead are silently treated 5032 as 'x'. The following induces an error, until -std is added to get 5033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5034 array size at least. It's necessary to write '\x00'==0 to get something 5035 that's true only with -std. */ 5036int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5037 5038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5039 inside strings and character constants. */ 5040#define FOO(x) 'x' 5041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5042 5043int test (int i, double x); 5044struct s1 {int (*f) (int a);}; 5045struct s2 {int (*f) (double a);}; 5046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5047int argc; 5048char **argv; 5049int 5050main () 5051{ 5052return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5053 ; 5054 return 0; 5055} 5056_ACEOF 5057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5059do 5060 CC="$ac_save_CC $ac_arg" 5061 if ac_fn_c_try_compile "$LINENO"; then : 5062 ac_cv_prog_cc_c89=$ac_arg 5063fi 5064rm -f core conftest.err conftest.$ac_objext 5065 test "x$ac_cv_prog_cc_c89" != "xno" && break 5066done 5067rm -f conftest.$ac_ext 5068CC=$ac_save_CC 5069 5070fi 5071# AC_CACHE_VAL 5072case "x$ac_cv_prog_cc_c89" in 5073 x) 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5075$as_echo "none needed" >&6; } ;; 5076 xno) 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5078$as_echo "unsupported" >&6; } ;; 5079 *) 5080 CC="$CC $ac_cv_prog_cc_c89" 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5083esac 5084if test "x$ac_cv_prog_cc_c89" != xno; then : 5085 5086fi 5087 5088ac_ext=c 5089ac_cpp='$CPP $CPPFLAGS' 5090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5092ac_compiler_gnu=$ac_cv_c_compiler_gnu 5093 5094ac_ext=c 5095ac_cpp='$CPP $CPPFLAGS' 5096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5098ac_compiler_gnu=$ac_cv_c_compiler_gnu 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5100$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5101if ${am_cv_prog_cc_c_o+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103else 5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5105/* end confdefs.h. */ 5106 5107int 5108main () 5109{ 5110 5111 ; 5112 return 0; 5113} 5114_ACEOF 5115 # Make sure it works both with $CC and with simple cc. 5116 # Following AC_PROG_CC_C_O, we do the test twice because some 5117 # compilers refuse to overwrite an existing .o file with -o, 5118 # though they will create one. 5119 am_cv_prog_cc_c_o=yes 5120 for am_i in 1 2; do 5121 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5122 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5123 ac_status=$? 5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5125 (exit $ac_status); } \ 5126 && test -f conftest2.$ac_objext; then 5127 : OK 5128 else 5129 am_cv_prog_cc_c_o=no 5130 break 5131 fi 5132 done 5133 rm -f core conftest* 5134 unset am_i 5135fi 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5137$as_echo "$am_cv_prog_cc_c_o" >&6; } 5138if test "$am_cv_prog_cc_c_o" != yes; then 5139 # Losing compiler, so override with the script. 5140 # FIXME: It is wrong to rewrite CC. 5141 # But if we don't then we get into trouble of one sort or another. 5142 # A longer-term fix would be to have automake use am__CC in this case, 5143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5144 CC="$am_aux_dir/compile $CC" 5145fi 5146ac_ext=c 5147ac_cpp='$CPP $CPPFLAGS' 5148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5150ac_compiler_gnu=$ac_cv_c_compiler_gnu 5151 5152 5153depcc="$CC" am_compiler_list= 5154 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5156$as_echo_n "checking dependency style of $depcc... " >&6; } 5157if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5161 # We make a subdir and do the tests there. Otherwise we can end up 5162 # making bogus files that we don't know about and never remove. For 5163 # instance it was reported that on HP-UX the gcc test will end up 5164 # making a dummy file named 'D' -- because '-MD' means "put the output 5165 # in D". 5166 rm -rf conftest.dir 5167 mkdir conftest.dir 5168 # Copy depcomp to subdir because otherwise we won't find it if we're 5169 # using a relative directory. 5170 cp "$am_depcomp" conftest.dir 5171 cd conftest.dir 5172 # We will build objects and dependencies in a subdirectory because 5173 # it helps to detect inapplicable dependency modes. For instance 5174 # both Tru64's cc and ICC support -MD to output dependencies as a 5175 # side effect of compilation, but ICC will put the dependencies in 5176 # the current directory while Tru64 will put them in the object 5177 # directory. 5178 mkdir sub 5179 5180 am_cv_CC_dependencies_compiler_type=none 5181 if test "$am_compiler_list" = ""; then 5182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5183 fi 5184 am__universal=false 5185 case " $depcc " in #( 5186 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5187 esac 5188 5189 for depmode in $am_compiler_list; do 5190 # Setup a source with many dependencies, because some compilers 5191 # like to wrap large dependency lists on column 80 (with \), and 5192 # we should not choose a depcomp mode which is confused by this. 5193 # 5194 # We need to recreate these files for each test, as the compiler may 5195 # overwrite some of them when testing with obscure command lines. 5196 # This happens at least with the AIX C compiler. 5197 : > sub/conftest.c 5198 for i in 1 2 3 4 5 6; do 5199 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5200 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5201 # Solaris 10 /bin/sh. 5202 echo '/* dummy */' > sub/conftst$i.h 5203 done 5204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5205 5206 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5207 # mode. It turns out that the SunPro C++ compiler does not properly 5208 # handle '-M -o', and we need to detect this. Also, some Intel 5209 # versions had trouble with output in subdirs. 5210 am__obj=sub/conftest.${OBJEXT-o} 5211 am__minus_obj="-o $am__obj" 5212 case $depmode in 5213 gcc) 5214 # This depmode causes a compiler race in universal mode. 5215 test "$am__universal" = false || continue 5216 ;; 5217 nosideeffect) 5218 # After this tag, mechanisms are not by side-effect, so they'll 5219 # only be used when explicitly requested. 5220 if test "x$enable_dependency_tracking" = xyes; then 5221 continue 5222 else 5223 break 5224 fi 5225 ;; 5226 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5227 # This compiler won't grok '-c -o', but also, the minuso test has 5228 # not run yet. These depmodes are late enough in the game, and 5229 # so weak that their functioning should not be impacted. 5230 am__obj=conftest.${OBJEXT-o} 5231 am__minus_obj= 5232 ;; 5233 none) break ;; 5234 esac 5235 if depmode=$depmode \ 5236 source=sub/conftest.c object=$am__obj \ 5237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5239 >/dev/null 2>conftest.err && 5240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5244 # icc doesn't choke on unknown options, it will just issue warnings 5245 # or remarks (even with -Werror). So we grep stderr for any message 5246 # that says an option was ignored or not supported. 5247 # When given -MP, icc 7.0 and 7.1 complain thusly: 5248 # icc: Command line warning: ignoring option '-M'; no argument required 5249 # The diagnosis changed in icc 8.0: 5250 # icc: Command line remark: option '-MP' not supported 5251 if (grep 'ignoring option' conftest.err || 5252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5253 am_cv_CC_dependencies_compiler_type=$depmode 5254 break 5255 fi 5256 fi 5257 done 5258 5259 cd .. 5260 rm -rf conftest.dir 5261else 5262 am_cv_CC_dependencies_compiler_type=none 5263fi 5264 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5267$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5268CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5269 5270 if 5271 test "x$enable_dependency_tracking" != xno \ 5272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5273 am__fastdepCC_TRUE= 5274 am__fastdepCC_FALSE='#' 5275else 5276 am__fastdepCC_TRUE='#' 5277 am__fastdepCC_FALSE= 5278fi 5279 5280 5281ac_ext=cpp 5282ac_cpp='$CXXCPP $CPPFLAGS' 5283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5286if test -z "$CXX"; then 5287 if test -n "$CCC"; then 5288 CXX=$CCC 5289 else 5290 if test -n "$ac_tool_prefix"; then 5291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5292 do 5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5294set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5296$as_echo_n "checking for $ac_word... " >&6; } 5297if ${ac_cv_prog_CXX+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 if test -n "$CXX"; then 5301 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5302else 5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304for as_dir in $PATH 5305do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314done 5315 done 5316IFS=$as_save_IFS 5317 5318fi 5319fi 5320CXX=$ac_cv_prog_CXX 5321if test -n "$CXX"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5323$as_echo "$CXX" >&6; } 5324else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326$as_echo "no" >&6; } 5327fi 5328 5329 5330 test -n "$CXX" && break 5331 done 5332fi 5333if test -z "$CXX"; then 5334 ac_ct_CXX=$CXX 5335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5336do 5337 # Extract the first word of "$ac_prog", so it can be a program name with args. 5338set dummy $ac_prog; ac_word=$2 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5340$as_echo_n "checking for $ac_word... " >&6; } 5341if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 if test -n "$ac_ct_CXX"; then 5345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5346else 5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5348for as_dir in $PATH 5349do 5350 IFS=$as_save_IFS 5351 test -z "$as_dir" && as_dir=. 5352 for ac_exec_ext in '' $ac_executable_extensions; do 5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5354 ac_cv_prog_ac_ct_CXX="$ac_prog" 5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5356 break 2 5357 fi 5358done 5359 done 5360IFS=$as_save_IFS 5361 5362fi 5363fi 5364ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5365if test -n "$ac_ct_CXX"; then 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5367$as_echo "$ac_ct_CXX" >&6; } 5368else 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5370$as_echo "no" >&6; } 5371fi 5372 5373 5374 test -n "$ac_ct_CXX" && break 5375done 5376 5377 if test "x$ac_ct_CXX" = x; then 5378 CXX="g++" 5379 else 5380 case $cross_compiling:$ac_tool_warned in 5381yes:) 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5384ac_tool_warned=yes ;; 5385esac 5386 CXX=$ac_ct_CXX 5387 fi 5388fi 5389 5390 fi 5391fi 5392# Provide some information about the compiler. 5393$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5394set X $ac_compile 5395ac_compiler=$2 5396for ac_option in --version -v -V -qversion; do 5397 { { ac_try="$ac_compiler $ac_option >&5" 5398case "(($ac_try" in 5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5400 *) ac_try_echo=$ac_try;; 5401esac 5402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5403$as_echo "$ac_try_echo"; } >&5 5404 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5405 ac_status=$? 5406 if test -s conftest.err; then 5407 sed '10a\ 5408... rest of stderr output deleted ... 5409 10q' conftest.err >conftest.er1 5410 cat conftest.er1 >&5 5411 fi 5412 rm -f conftest.er1 conftest.err 5413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5414 test $ac_status = 0; } 5415done 5416 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5418$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5419if ${ac_cv_cxx_compiler_gnu+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424 5425int 5426main () 5427{ 5428#ifndef __GNUC__ 5429 choke me 5430#endif 5431 5432 ; 5433 return 0; 5434} 5435_ACEOF 5436if ac_fn_cxx_try_compile "$LINENO"; then : 5437 ac_compiler_gnu=yes 5438else 5439 ac_compiler_gnu=no 5440fi 5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5442ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5443 5444fi 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5446$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5447if test $ac_compiler_gnu = yes; then 5448 GXX=yes 5449else 5450 GXX= 5451fi 5452ac_test_CXXFLAGS=${CXXFLAGS+set} 5453ac_save_CXXFLAGS=$CXXFLAGS 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5455$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5456if ${ac_cv_prog_cxx_g+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5460 ac_cxx_werror_flag=yes 5461 ac_cv_prog_cxx_g=no 5462 CXXFLAGS="-g" 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465 5466int 5467main () 5468{ 5469 5470 ; 5471 return 0; 5472} 5473_ACEOF 5474if ac_fn_cxx_try_compile "$LINENO"; then : 5475 ac_cv_prog_cxx_g=yes 5476else 5477 CXXFLAGS="" 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480 5481int 5482main () 5483{ 5484 5485 ; 5486 return 0; 5487} 5488_ACEOF 5489if ac_fn_cxx_try_compile "$LINENO"; then : 5490 5491else 5492 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5493 CXXFLAGS="-g" 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495/* end confdefs.h. */ 5496 5497int 5498main () 5499{ 5500 5501 ; 5502 return 0; 5503} 5504_ACEOF 5505if ac_fn_cxx_try_compile "$LINENO"; then : 5506 ac_cv_prog_cxx_g=yes 5507fi 5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5509fi 5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5511fi 5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5513 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5514fi 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5516$as_echo "$ac_cv_prog_cxx_g" >&6; } 5517if test "$ac_test_CXXFLAGS" = set; then 5518 CXXFLAGS=$ac_save_CXXFLAGS 5519elif test $ac_cv_prog_cxx_g = yes; then 5520 if test "$GXX" = yes; then 5521 CXXFLAGS="-g -O2" 5522 else 5523 CXXFLAGS="-g" 5524 fi 5525else 5526 if test "$GXX" = yes; then 5527 CXXFLAGS="-O2" 5528 else 5529 CXXFLAGS= 5530 fi 5531fi 5532ac_ext=c 5533ac_cpp='$CPP $CPPFLAGS' 5534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5536ac_compiler_gnu=$ac_cv_c_compiler_gnu 5537 5538depcc="$CXX" am_compiler_list= 5539 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5541$as_echo_n "checking dependency style of $depcc... " >&6; } 5542if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5546 # We make a subdir and do the tests there. Otherwise we can end up 5547 # making bogus files that we don't know about and never remove. For 5548 # instance it was reported that on HP-UX the gcc test will end up 5549 # making a dummy file named 'D' -- because '-MD' means "put the output 5550 # in D". 5551 rm -rf conftest.dir 5552 mkdir conftest.dir 5553 # Copy depcomp to subdir because otherwise we won't find it if we're 5554 # using a relative directory. 5555 cp "$am_depcomp" conftest.dir 5556 cd conftest.dir 5557 # We will build objects and dependencies in a subdirectory because 5558 # it helps to detect inapplicable dependency modes. For instance 5559 # both Tru64's cc and ICC support -MD to output dependencies as a 5560 # side effect of compilation, but ICC will put the dependencies in 5561 # the current directory while Tru64 will put them in the object 5562 # directory. 5563 mkdir sub 5564 5565 am_cv_CXX_dependencies_compiler_type=none 5566 if test "$am_compiler_list" = ""; then 5567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5568 fi 5569 am__universal=false 5570 case " $depcc " in #( 5571 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5572 esac 5573 5574 for depmode in $am_compiler_list; do 5575 # Setup a source with many dependencies, because some compilers 5576 # like to wrap large dependency lists on column 80 (with \), and 5577 # we should not choose a depcomp mode which is confused by this. 5578 # 5579 # We need to recreate these files for each test, as the compiler may 5580 # overwrite some of them when testing with obscure command lines. 5581 # This happens at least with the AIX C compiler. 5582 : > sub/conftest.c 5583 for i in 1 2 3 4 5 6; do 5584 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5585 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5586 # Solaris 10 /bin/sh. 5587 echo '/* dummy */' > sub/conftst$i.h 5588 done 5589 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5590 5591 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5592 # mode. It turns out that the SunPro C++ compiler does not properly 5593 # handle '-M -o', and we need to detect this. Also, some Intel 5594 # versions had trouble with output in subdirs. 5595 am__obj=sub/conftest.${OBJEXT-o} 5596 am__minus_obj="-o $am__obj" 5597 case $depmode in 5598 gcc) 5599 # This depmode causes a compiler race in universal mode. 5600 test "$am__universal" = false || continue 5601 ;; 5602 nosideeffect) 5603 # After this tag, mechanisms are not by side-effect, so they'll 5604 # only be used when explicitly requested. 5605 if test "x$enable_dependency_tracking" = xyes; then 5606 continue 5607 else 5608 break 5609 fi 5610 ;; 5611 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5612 # This compiler won't grok '-c -o', but also, the minuso test has 5613 # not run yet. These depmodes are late enough in the game, and 5614 # so weak that their functioning should not be impacted. 5615 am__obj=conftest.${OBJEXT-o} 5616 am__minus_obj= 5617 ;; 5618 none) break ;; 5619 esac 5620 if depmode=$depmode \ 5621 source=sub/conftest.c object=$am__obj \ 5622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5623 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5624 >/dev/null 2>conftest.err && 5625 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5626 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5627 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5628 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5629 # icc doesn't choke on unknown options, it will just issue warnings 5630 # or remarks (even with -Werror). So we grep stderr for any message 5631 # that says an option was ignored or not supported. 5632 # When given -MP, icc 7.0 and 7.1 complain thusly: 5633 # icc: Command line warning: ignoring option '-M'; no argument required 5634 # The diagnosis changed in icc 8.0: 5635 # icc: Command line remark: option '-MP' not supported 5636 if (grep 'ignoring option' conftest.err || 5637 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5638 am_cv_CXX_dependencies_compiler_type=$depmode 5639 break 5640 fi 5641 fi 5642 done 5643 5644 cd .. 5645 rm -rf conftest.dir 5646else 5647 am_cv_CXX_dependencies_compiler_type=none 5648fi 5649 5650fi 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5652$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5653CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5654 5655 if 5656 test "x$enable_dependency_tracking" != xno \ 5657 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5658 am__fastdepCXX_TRUE= 5659 am__fastdepCXX_FALSE='#' 5660else 5661 am__fastdepCXX_TRUE='#' 5662 am__fastdepCXX_FALSE= 5663fi 5664 5665 5666case `pwd` in 5667 *\ * | *\ *) 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5669$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5670esac 5671 5672 5673 5674macro_version='2.4.6.42-b88ce' 5675macro_revision='2.4.6.42' 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689ltmain=$ac_aux_dir/ltmain.sh 5690 5691# Make sure we can run config.sub. 5692$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5693 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5694 5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5696$as_echo_n "checking build system type... " >&6; } 5697if ${ac_cv_build+:} false; then : 5698 $as_echo_n "(cached) " >&6 5699else 5700 ac_build_alias=$build_alias 5701test "x$ac_build_alias" = x && 5702 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5703test "x$ac_build_alias" = x && 5704 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5705ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5707 5708fi 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5710$as_echo "$ac_cv_build" >&6; } 5711case $ac_cv_build in 5712*-*-*) ;; 5713*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5714esac 5715build=$ac_cv_build 5716ac_save_IFS=$IFS; IFS='-' 5717set x $ac_cv_build 5718shift 5719build_cpu=$1 5720build_vendor=$2 5721shift; shift 5722# Remember, the first character of IFS is used to create $*, 5723# except with old shells: 5724build_os=$* 5725IFS=$ac_save_IFS 5726case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5727 5728 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5730$as_echo_n "checking host system type... " >&6; } 5731if ${ac_cv_host+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 if test "x$host_alias" = x; then 5735 ac_cv_host=$ac_cv_build 5736else 5737 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5739fi 5740 5741fi 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5743$as_echo "$ac_cv_host" >&6; } 5744case $ac_cv_host in 5745*-*-*) ;; 5746*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5747esac 5748host=$ac_cv_host 5749ac_save_IFS=$IFS; IFS='-' 5750set x $ac_cv_host 5751shift 5752host_cpu=$1 5753host_vendor=$2 5754shift; shift 5755# Remember, the first character of IFS is used to create $*, 5756# except with old shells: 5757host_os=$* 5758IFS=$ac_save_IFS 5759case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5760 5761 5762# Backslashify metacharacters that are still active within 5763# double-quoted strings. 5764sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5765 5766# Same as above, but do not quote variable references. 5767double_quote_subst='s/\(["`\\]\)/\\\1/g' 5768 5769# Sed substitution to delay expansion of an escaped shell variable in a 5770# double_quote_subst'ed string. 5771delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5772 5773# Sed substitution to delay expansion of an escaped single quote. 5774delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5775 5776# Sed substitution to avoid accidental globbing in evaled expressions 5777no_glob_subst='s/\*/\\\*/g' 5778 5779ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5780ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5781ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5782 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5784$as_echo_n "checking how to print strings... " >&6; } 5785# Test print first, because it will be a builtin if present. 5786if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5787 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5788 ECHO='print -r --' 5789elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5790 ECHO='printf %s\n' 5791else 5792 # Use this function as a fallback that always works. 5793 func_fallback_echo () 5794 { 5795 eval 'cat <<_LTECHO_EOF 5796$1 5797_LTECHO_EOF' 5798 } 5799 ECHO='func_fallback_echo' 5800fi 5801 5802# func_echo_all arg... 5803# Invoke $ECHO with all args, space-separated. 5804func_echo_all () 5805{ 5806 $ECHO "" 5807} 5808 5809case $ECHO in 5810 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5811$as_echo "printf" >&6; } ;; 5812 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5813$as_echo "print -r" >&6; } ;; 5814 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5815$as_echo "cat" >&6; } ;; 5816esac 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5832$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5833if ${ac_cv_path_SED+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5837 for ac_i in 1 2 3 4 5 6 7; do 5838 ac_script="$ac_script$as_nl$ac_script" 5839 done 5840 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5841 { ac_script=; unset ac_script;} 5842 if test -z "$SED"; then 5843 ac_path_SED_found=false 5844 # Loop through the user's path and test for each of PROGNAME-LIST 5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5846for as_dir in $PATH 5847do 5848 IFS=$as_save_IFS 5849 test -z "$as_dir" && as_dir=. 5850 for ac_prog in sed gsed; do 5851 for ac_exec_ext in '' $ac_executable_extensions; do 5852 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5853 as_fn_executable_p "$ac_path_SED" || continue 5854# Check for GNU ac_path_SED and select it if it is found. 5855 # Check for GNU $ac_path_SED 5856case `"$ac_path_SED" --version 2>&1` in 5857*GNU*) 5858 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5859*) 5860 ac_count=0 5861 $as_echo_n 0123456789 >"conftest.in" 5862 while : 5863 do 5864 cat "conftest.in" "conftest.in" >"conftest.tmp" 5865 mv "conftest.tmp" "conftest.in" 5866 cp "conftest.in" "conftest.nl" 5867 $as_echo '' >> "conftest.nl" 5868 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5870 as_fn_arith $ac_count + 1 && ac_count=$as_val 5871 if test $ac_count -gt ${ac_path_SED_max-0}; then 5872 # Best one so far, save it but keep looking for a better one 5873 ac_cv_path_SED="$ac_path_SED" 5874 ac_path_SED_max=$ac_count 5875 fi 5876 # 10*(2^10) chars as input seems more than enough 5877 test $ac_count -gt 10 && break 5878 done 5879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5880esac 5881 5882 $ac_path_SED_found && break 3 5883 done 5884 done 5885 done 5886IFS=$as_save_IFS 5887 if test -z "$ac_cv_path_SED"; then 5888 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5889 fi 5890else 5891 ac_cv_path_SED=$SED 5892fi 5893 5894fi 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5896$as_echo "$ac_cv_path_SED" >&6; } 5897 SED="$ac_cv_path_SED" 5898 rm -f conftest.sed 5899 5900test -z "$SED" && SED=sed 5901Xsed="$SED -e 1s/^X//" 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5914$as_echo_n "checking for fgrep... " >&6; } 5915if ${ac_cv_path_FGREP+:} false; then : 5916 $as_echo_n "(cached) " >&6 5917else 5918 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5919 then ac_cv_path_FGREP="$GREP -F" 5920 else 5921 if test -z "$FGREP"; then 5922 ac_path_FGREP_found=false 5923 # Loop through the user's path and test for each of PROGNAME-LIST 5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5926do 5927 IFS=$as_save_IFS 5928 test -z "$as_dir" && as_dir=. 5929 for ac_prog in fgrep; do 5930 for ac_exec_ext in '' $ac_executable_extensions; do 5931 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5932 as_fn_executable_p "$ac_path_FGREP" || continue 5933# Check for GNU ac_path_FGREP and select it if it is found. 5934 # Check for GNU $ac_path_FGREP 5935case `"$ac_path_FGREP" --version 2>&1` in 5936*GNU*) 5937 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5938*) 5939 ac_count=0 5940 $as_echo_n 0123456789 >"conftest.in" 5941 while : 5942 do 5943 cat "conftest.in" "conftest.in" >"conftest.tmp" 5944 mv "conftest.tmp" "conftest.in" 5945 cp "conftest.in" "conftest.nl" 5946 $as_echo 'FGREP' >> "conftest.nl" 5947 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5949 as_fn_arith $ac_count + 1 && ac_count=$as_val 5950 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5951 # Best one so far, save it but keep looking for a better one 5952 ac_cv_path_FGREP="$ac_path_FGREP" 5953 ac_path_FGREP_max=$ac_count 5954 fi 5955 # 10*(2^10) chars as input seems more than enough 5956 test $ac_count -gt 10 && break 5957 done 5958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5959esac 5960 5961 $ac_path_FGREP_found && break 3 5962 done 5963 done 5964 done 5965IFS=$as_save_IFS 5966 if test -z "$ac_cv_path_FGREP"; then 5967 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5968 fi 5969else 5970 ac_cv_path_FGREP=$FGREP 5971fi 5972 5973 fi 5974fi 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5976$as_echo "$ac_cv_path_FGREP" >&6; } 5977 FGREP="$ac_cv_path_FGREP" 5978 5979 5980test -z "$GREP" && GREP=grep 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000# Check whether --with-gnu-ld was given. 6001if test "${with_gnu_ld+set}" = set; then : 6002 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6003else 6004 with_gnu_ld=no 6005fi 6006 6007ac_prog=ld 6008if test yes = "$GCC"; then 6009 # Check if gcc -print-prog-name=ld gives a path. 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6011$as_echo_n "checking for ld used by $CC... " >&6; } 6012 case $host in 6013 *-*-mingw*) 6014 # gcc leaves a trailing carriage return, which upsets mingw 6015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6016 *) 6017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6018 esac 6019 case $ac_prog in 6020 # Accept absolute paths. 6021 [\\/]* | ?:[\\/]*) 6022 re_direlt='/[^/][^/]*/\.\./' 6023 # Canonicalize the pathname of ld 6024 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6025 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6026 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6027 done 6028 test -z "$LD" && LD=$ac_prog 6029 ;; 6030 "") 6031 # If it fails, then pretend we aren't using GCC. 6032 ac_prog=ld 6033 ;; 6034 *) 6035 # If it is relative, then search for the first ld in PATH. 6036 with_gnu_ld=unknown 6037 ;; 6038 esac 6039elif test yes = "$with_gnu_ld"; then 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6041$as_echo_n "checking for GNU ld... " >&6; } 6042else 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6044$as_echo_n "checking for non-GNU ld... " >&6; } 6045fi 6046if ${lt_cv_path_LD+:} false; then : 6047 $as_echo_n "(cached) " >&6 6048else 6049 if test -z "$LD"; then 6050 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6051 for ac_dir in $PATH; do 6052 IFS=$lt_save_ifs 6053 test -z "$ac_dir" && ac_dir=. 6054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6055 lt_cv_path_LD=$ac_dir/$ac_prog 6056 # Check to see if the program is GNU ld. I'd rather use --version, 6057 # but apparently some variants of GNU ld only accept -v. 6058 # Break only if it was the GNU/non-GNU ld that we prefer. 6059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6060 *GNU* | *'with BFD'*) 6061 test no != "$with_gnu_ld" && break 6062 ;; 6063 *) 6064 test yes != "$with_gnu_ld" && break 6065 ;; 6066 esac 6067 fi 6068 done 6069 IFS=$lt_save_ifs 6070else 6071 lt_cv_path_LD=$LD # Let the user override the test with a path. 6072fi 6073fi 6074 6075LD=$lt_cv_path_LD 6076if test -n "$LD"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6078$as_echo "$LD" >&6; } 6079else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081$as_echo "no" >&6; } 6082fi 6083test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6085$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6086if ${lt_cv_prog_gnu_ld+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6090case `$LD -v 2>&1 </dev/null` in 6091*GNU* | *'with BFD'*) 6092 lt_cv_prog_gnu_ld=yes 6093 ;; 6094*) 6095 lt_cv_prog_gnu_ld=no 6096 ;; 6097esac 6098fi 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6100$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6101with_gnu_ld=$lt_cv_prog_gnu_ld 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6112$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6113if ${lt_cv_path_NM+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 if test -n "$NM"; then 6117 # Let the user override the test. 6118 lt_cv_path_NM=$NM 6119else 6120 lt_nm_to_check=${ac_tool_prefix}nm 6121 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6122 lt_nm_to_check="$lt_nm_to_check nm" 6123 fi 6124 for lt_tmp_nm in $lt_nm_to_check; do 6125 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6126 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6127 IFS=$lt_save_ifs 6128 test -z "$ac_dir" && ac_dir=. 6129 tmp_nm=$ac_dir/$lt_tmp_nm 6130 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6131 # Check to see if the nm accepts a BSD-compat flag. 6132 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6133 # nm: unknown option "B" ignored 6134 # Tru64's nm complains that /dev/null is an invalid object file 6135 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6136 case $build_os in 6137 mingw*) lt_bad_file=conftest.nm/nofile ;; 6138 *) lt_bad_file=/dev/null ;; 6139 esac 6140 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6141 *$lt_bad_file* | *'Invalid file or object type'*) 6142 lt_cv_path_NM="$tmp_nm -B" 6143 break 2 6144 ;; 6145 *) 6146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6147 */dev/null*) 6148 lt_cv_path_NM="$tmp_nm -p" 6149 break 2 6150 ;; 6151 *) 6152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6153 continue # so that we can try to find one that supports BSD flags 6154 ;; 6155 esac 6156 ;; 6157 esac 6158 fi 6159 done 6160 IFS=$lt_save_ifs 6161 done 6162 : ${lt_cv_path_NM=no} 6163fi 6164fi 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6166$as_echo "$lt_cv_path_NM" >&6; } 6167if test no != "$lt_cv_path_NM"; then 6168 NM=$lt_cv_path_NM 6169else 6170 # Didn't find any BSD compatible name lister, look for dumpbin. 6171 if test -n "$DUMPBIN"; then : 6172 # Let the user override the test. 6173 else 6174 if test -n "$ac_tool_prefix"; then 6175 for ac_prog in dumpbin "link -dump" 6176 do 6177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6180$as_echo_n "checking for $ac_word... " >&6; } 6181if ${ac_cv_prog_DUMPBIN+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 if test -n "$DUMPBIN"; then 6185 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6186else 6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6188for as_dir in $PATH 6189do 6190 IFS=$as_save_IFS 6191 test -z "$as_dir" && as_dir=. 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6194 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6196 break 2 6197 fi 6198done 6199 done 6200IFS=$as_save_IFS 6201 6202fi 6203fi 6204DUMPBIN=$ac_cv_prog_DUMPBIN 6205if test -n "$DUMPBIN"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6207$as_echo "$DUMPBIN" >&6; } 6208else 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6210$as_echo "no" >&6; } 6211fi 6212 6213 6214 test -n "$DUMPBIN" && break 6215 done 6216fi 6217if test -z "$DUMPBIN"; then 6218 ac_ct_DUMPBIN=$DUMPBIN 6219 for ac_prog in dumpbin "link -dump" 6220do 6221 # Extract the first word of "$ac_prog", so it can be a program name with args. 6222set dummy $ac_prog; ac_word=$2 6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6224$as_echo_n "checking for $ac_word... " >&6; } 6225if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 if test -n "$ac_ct_DUMPBIN"; then 6229 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6230else 6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6232for as_dir in $PATH 6233do 6234 IFS=$as_save_IFS 6235 test -z "$as_dir" && as_dir=. 6236 for ac_exec_ext in '' $ac_executable_extensions; do 6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6238 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6240 break 2 6241 fi 6242done 6243 done 6244IFS=$as_save_IFS 6245 6246fi 6247fi 6248ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6249if test -n "$ac_ct_DUMPBIN"; then 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6251$as_echo "$ac_ct_DUMPBIN" >&6; } 6252else 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6254$as_echo "no" >&6; } 6255fi 6256 6257 6258 test -n "$ac_ct_DUMPBIN" && break 6259done 6260 6261 if test "x$ac_ct_DUMPBIN" = x; then 6262 DUMPBIN=":" 6263 else 6264 case $cross_compiling:$ac_tool_warned in 6265yes:) 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6268ac_tool_warned=yes ;; 6269esac 6270 DUMPBIN=$ac_ct_DUMPBIN 6271 fi 6272fi 6273 6274 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6275 *COFF*) 6276 DUMPBIN="$DUMPBIN -symbols -headers" 6277 ;; 6278 *) 6279 DUMPBIN=: 6280 ;; 6281 esac 6282 fi 6283 6284 if test : != "$DUMPBIN"; then 6285 NM=$DUMPBIN 6286 fi 6287fi 6288test -z "$NM" && NM=nm 6289 6290 6291 6292 6293 6294 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6296$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6297if ${lt_cv_nm_interface+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 lt_cv_nm_interface="BSD nm" 6301 echo "int some_variable = 0;" > conftest.$ac_ext 6302 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6303 (eval "$ac_compile" 2>conftest.err) 6304 cat conftest.err >&5 6305 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6306 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6307 cat conftest.err >&5 6308 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6309 cat conftest.out >&5 6310 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6311 lt_cv_nm_interface="MS dumpbin" 6312 fi 6313 rm -f conftest* 6314fi 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6316$as_echo "$lt_cv_nm_interface" >&6; } 6317 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6319$as_echo_n "checking whether ln -s works... " >&6; } 6320LN_S=$as_ln_s 6321if test "$LN_S" = "ln -s"; then 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6323$as_echo "yes" >&6; } 6324else 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6326$as_echo "no, using $LN_S" >&6; } 6327fi 6328 6329# find the maximum length of command line arguments 6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6331$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6332if ${lt_cv_sys_max_cmd_len+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 i=0 6336 teststring=ABCD 6337 6338 case $build_os in 6339 msdosdjgpp*) 6340 # On DJGPP, this test can blow up pretty badly due to problems in libc 6341 # (any single argument exceeding 2000 bytes causes a buffer overrun 6342 # during glob expansion). Even if it were fixed, the result of this 6343 # check would be larger than it should be. 6344 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6345 ;; 6346 6347 gnu*) 6348 # Under GNU Hurd, this test is not required because there is 6349 # no limit to the length of command line arguments. 6350 # Libtool will interpret -1 as no limit whatsoever 6351 lt_cv_sys_max_cmd_len=-1; 6352 ;; 6353 6354 cygwin* | mingw* | cegcc*) 6355 # On Win9x/ME, this test blows up -- it succeeds, but takes 6356 # about 5 minutes as the teststring grows exponentially. 6357 # Worse, since 9x/ME are not pre-emptively multitasking, 6358 # you end up with a "frozen" computer, even though with patience 6359 # the test eventually succeeds (with a max line length of 256k). 6360 # Instead, let's just punt: use the minimum linelength reported by 6361 # all of the supported platforms: 8192 (on NT/2K/XP). 6362 lt_cv_sys_max_cmd_len=8192; 6363 ;; 6364 6365 mint*) 6366 # On MiNT this can take a long time and run out of memory. 6367 lt_cv_sys_max_cmd_len=8192; 6368 ;; 6369 6370 amigaos*) 6371 # On AmigaOS with pdksh, this test takes hours, literally. 6372 # So we just punt and use a minimum line length of 8192. 6373 lt_cv_sys_max_cmd_len=8192; 6374 ;; 6375 6376 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6377 # This has been around since 386BSD, at least. Likely further. 6378 if test -x /sbin/sysctl; then 6379 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6380 elif test -x /usr/sbin/sysctl; then 6381 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6382 else 6383 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6384 fi 6385 # And add a safety zone 6386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6388 ;; 6389 6390 interix*) 6391 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6392 lt_cv_sys_max_cmd_len=196608 6393 ;; 6394 6395 os2*) 6396 # The test takes a long time on OS/2. 6397 lt_cv_sys_max_cmd_len=8192 6398 ;; 6399 6400 osf*) 6401 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6402 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6403 # nice to cause kernel panics so lets avoid the loop below. 6404 # First set a reasonable default. 6405 lt_cv_sys_max_cmd_len=16384 6406 # 6407 if test -x /sbin/sysconfig; then 6408 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6409 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6410 esac 6411 fi 6412 ;; 6413 sco3.2v5*) 6414 lt_cv_sys_max_cmd_len=102400 6415 ;; 6416 sysv5* | sco5v6* | sysv4.2uw2*) 6417 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6418 if test -n "$kargmax"; then 6419 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6420 else 6421 lt_cv_sys_max_cmd_len=32768 6422 fi 6423 ;; 6424 *) 6425 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6426 if test -n "$lt_cv_sys_max_cmd_len" && \ 6427 test undefined != "$lt_cv_sys_max_cmd_len"; then 6428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6430 else 6431 # Make teststring a little bigger before we do anything with it. 6432 # a 1K string should be a reasonable start. 6433 for i in 1 2 3 4 5 6 7 8; do 6434 teststring=$teststring$teststring 6435 done 6436 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6437 # If test is not a shell built-in, we'll probably end up computing a 6438 # maximum length that is only half of the actual maximum length, but 6439 # we can't tell. 6440 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6441 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6442 test 17 != "$i" # 1/2 MB should be enough 6443 do 6444 i=`expr $i + 1` 6445 teststring=$teststring$teststring 6446 done 6447 # Only check the string length outside the loop. 6448 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6449 teststring= 6450 # Add a significant safety factor because C++ compilers can tack on 6451 # massive amounts of additional arguments before passing them to the 6452 # linker. It appears as though 1/2 is a usable value. 6453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6454 fi 6455 ;; 6456 esac 6457 6458fi 6459 6460if test -n "$lt_cv_sys_max_cmd_len"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6462$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6465$as_echo "none" >&6; } 6466fi 6467max_cmd_len=$lt_cv_sys_max_cmd_len 6468 6469 6470 6471 6472 6473 6474: ${CP="cp -f"} 6475: ${MV="mv -f"} 6476: ${RM="rm -f"} 6477 6478if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6479 lt_unset=unset 6480else 6481 lt_unset=false 6482fi 6483 6484 6485 6486 6487 6488# test EBCDIC or ASCII 6489case `echo X|tr X '\101'` in 6490 A) # ASCII based system 6491 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6492 lt_SP2NL='tr \040 \012' 6493 lt_NL2SP='tr \015\012 \040\040' 6494 ;; 6495 *) # EBCDIC based system 6496 lt_SP2NL='tr \100 \n' 6497 lt_NL2SP='tr \r\n \100\100' 6498 ;; 6499esac 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6510$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6511if ${lt_cv_to_host_file_cmd+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 case $host in 6515 *-*-mingw* ) 6516 case $build in 6517 *-*-mingw* ) # actually msys 6518 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6519 ;; 6520 *-*-cygwin* ) 6521 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6522 ;; 6523 * ) # otherwise, assume *nix 6524 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6525 ;; 6526 esac 6527 ;; 6528 *-*-cygwin* ) 6529 case $build in 6530 *-*-mingw* ) # actually msys 6531 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6532 ;; 6533 *-*-cygwin* ) 6534 lt_cv_to_host_file_cmd=func_convert_file_noop 6535 ;; 6536 * ) # otherwise, assume *nix 6537 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6538 ;; 6539 esac 6540 ;; 6541 * ) # unhandled hosts (and "normal" native builds) 6542 lt_cv_to_host_file_cmd=func_convert_file_noop 6543 ;; 6544esac 6545 6546fi 6547 6548to_host_file_cmd=$lt_cv_to_host_file_cmd 6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6550$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6551 6552 6553 6554 6555 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6557$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6558if ${lt_cv_to_tool_file_cmd+:} false; then : 6559 $as_echo_n "(cached) " >&6 6560else 6561 #assume ordinary cross tools, or native build. 6562lt_cv_to_tool_file_cmd=func_convert_file_noop 6563case $host in 6564 *-*-mingw* ) 6565 case $build in 6566 *-*-mingw* ) # actually msys 6567 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6568 ;; 6569 esac 6570 ;; 6571esac 6572 6573fi 6574 6575to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6577$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6578 6579 6580 6581 6582 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6584$as_echo_n "checking for $LD option to reload object files... " >&6; } 6585if ${lt_cv_ld_reload_flag+:} false; then : 6586 $as_echo_n "(cached) " >&6 6587else 6588 lt_cv_ld_reload_flag='-r' 6589fi 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6591$as_echo "$lt_cv_ld_reload_flag" >&6; } 6592reload_flag=$lt_cv_ld_reload_flag 6593case $reload_flag in 6594"" | " "*) ;; 6595*) reload_flag=" $reload_flag" ;; 6596esac 6597reload_cmds='$LD$reload_flag -o $output$reload_objs' 6598case $host_os in 6599 cygwin* | mingw* | pw32* | cegcc*) 6600 if test yes != "$GCC"; then 6601 reload_cmds=false 6602 fi 6603 ;; 6604 darwin*) 6605 if test yes = "$GCC"; then 6606 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6607 else 6608 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6609 fi 6610 ;; 6611esac 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621if test -n "$ac_tool_prefix"; then 6622 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6623set dummy ${ac_tool_prefix}objdump; ac_word=$2 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6625$as_echo_n "checking for $ac_word... " >&6; } 6626if ${ac_cv_prog_OBJDUMP+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 if test -n "$OBJDUMP"; then 6630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6631else 6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633for as_dir in $PATH 6634do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6639 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643done 6644 done 6645IFS=$as_save_IFS 6646 6647fi 6648fi 6649OBJDUMP=$ac_cv_prog_OBJDUMP 6650if test -n "$OBJDUMP"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6652$as_echo "$OBJDUMP" >&6; } 6653else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655$as_echo "no" >&6; } 6656fi 6657 6658 6659fi 6660if test -z "$ac_cv_prog_OBJDUMP"; then 6661 ac_ct_OBJDUMP=$OBJDUMP 6662 # Extract the first word of "objdump", so it can be a program name with args. 6663set dummy objdump; ac_word=$2 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6665$as_echo_n "checking for $ac_word... " >&6; } 6666if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 if test -n "$ac_ct_OBJDUMP"; then 6670 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6671else 6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6673for as_dir in $PATH 6674do 6675 IFS=$as_save_IFS 6676 test -z "$as_dir" && as_dir=. 6677 for ac_exec_ext in '' $ac_executable_extensions; do 6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6679 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6681 break 2 6682 fi 6683done 6684 done 6685IFS=$as_save_IFS 6686 6687fi 6688fi 6689ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6690if test -n "$ac_ct_OBJDUMP"; then 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6692$as_echo "$ac_ct_OBJDUMP" >&6; } 6693else 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6695$as_echo "no" >&6; } 6696fi 6697 6698 if test "x$ac_ct_OBJDUMP" = x; then 6699 OBJDUMP="false" 6700 else 6701 case $cross_compiling:$ac_tool_warned in 6702yes:) 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6705ac_tool_warned=yes ;; 6706esac 6707 OBJDUMP=$ac_ct_OBJDUMP 6708 fi 6709else 6710 OBJDUMP="$ac_cv_prog_OBJDUMP" 6711fi 6712 6713test -z "$OBJDUMP" && OBJDUMP=objdump 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6724$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6725if ${lt_cv_deplibs_check_method+:} false; then : 6726 $as_echo_n "(cached) " >&6 6727else 6728 lt_cv_file_magic_cmd='$MAGIC_CMD' 6729lt_cv_file_magic_test_file= 6730lt_cv_deplibs_check_method='unknown' 6731# Need to set the preceding variable on all platforms that support 6732# interlibrary dependencies. 6733# 'none' -- dependencies not supported. 6734# 'unknown' -- same as none, but documents that we really don't know. 6735# 'pass_all' -- all dependencies passed with no checks. 6736# 'test_compile' -- check by making test program. 6737# 'file_magic [[regex]]' -- check by looking for files in library path 6738# that responds to the $file_magic_cmd with a given extended regex. 6739# If you have 'file' or equivalent on your system and you're not sure 6740# whether 'pass_all' will *always* work, you probably want this one. 6741 6742case $host_os in 6743aix[4-9]*) 6744 lt_cv_deplibs_check_method=pass_all 6745 ;; 6746 6747beos*) 6748 lt_cv_deplibs_check_method=pass_all 6749 ;; 6750 6751bsdi[45]*) 6752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6753 lt_cv_file_magic_cmd='/usr/bin/file -L' 6754 lt_cv_file_magic_test_file=/shlib/libc.so 6755 ;; 6756 6757cygwin*) 6758 # func_win32_libid is a shell function defined in ltmain.sh 6759 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6760 lt_cv_file_magic_cmd='func_win32_libid' 6761 ;; 6762 6763mingw* | pw32*) 6764 # Base MSYS/MinGW do not provide the 'file' command needed by 6765 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6766 # unless we find 'file', for example because we are cross-compiling. 6767 if ( file / ) >/dev/null 2>&1; then 6768 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6769 lt_cv_file_magic_cmd='func_win32_libid' 6770 else 6771 # Keep this pattern in sync with the one in func_win32_libid. 6772 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6773 lt_cv_file_magic_cmd='$OBJDUMP -f' 6774 fi 6775 ;; 6776 6777cegcc*) 6778 # use the weaker test based on 'objdump'. See mingw*. 6779 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6780 lt_cv_file_magic_cmd='$OBJDUMP -f' 6781 ;; 6782 6783darwin* | rhapsody*) 6784 lt_cv_deplibs_check_method=pass_all 6785 ;; 6786 6787freebsd* | dragonfly*) 6788 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6789 case $host_cpu in 6790 i*86 ) 6791 # Not sure whether the presence of OpenBSD here was a mistake. 6792 # Let's accept both of them until this is cleared up. 6793 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6794 lt_cv_file_magic_cmd=/usr/bin/file 6795 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6796 ;; 6797 esac 6798 else 6799 lt_cv_deplibs_check_method=pass_all 6800 fi 6801 ;; 6802 6803haiku*) 6804 lt_cv_deplibs_check_method=pass_all 6805 ;; 6806 6807hpux10.20* | hpux11*) 6808 lt_cv_file_magic_cmd=/usr/bin/file 6809 case $host_cpu in 6810 ia64*) 6811 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6812 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6813 ;; 6814 hppa*64*) 6815 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]' 6816 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6817 ;; 6818 *) 6819 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6820 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6821 ;; 6822 esac 6823 ;; 6824 6825interix[3-9]*) 6826 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6828 ;; 6829 6830irix5* | irix6* | nonstopux*) 6831 case $LD in 6832 *-32|*"-32 ") libmagic=32-bit;; 6833 *-n32|*"-n32 ") libmagic=N32;; 6834 *-64|*"-64 ") libmagic=64-bit;; 6835 *) libmagic=never-match;; 6836 esac 6837 lt_cv_deplibs_check_method=pass_all 6838 ;; 6839 6840# This must be glibc/ELF. 6841linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6842 lt_cv_deplibs_check_method=pass_all 6843 ;; 6844 6845netbsd*) 6846 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6848 else 6849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6850 fi 6851 ;; 6852 6853newos6*) 6854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6855 lt_cv_file_magic_cmd=/usr/bin/file 6856 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6857 ;; 6858 6859*nto* | *qnx*) 6860 lt_cv_deplibs_check_method=pass_all 6861 ;; 6862 6863openbsd* | bitrig*) 6864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6866 else 6867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6868 fi 6869 ;; 6870 6871osf3* | osf4* | osf5*) 6872 lt_cv_deplibs_check_method=pass_all 6873 ;; 6874 6875rdos*) 6876 lt_cv_deplibs_check_method=pass_all 6877 ;; 6878 6879solaris*) 6880 lt_cv_deplibs_check_method=pass_all 6881 ;; 6882 6883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6884 lt_cv_deplibs_check_method=pass_all 6885 ;; 6886 6887sysv4 | sysv4.3*) 6888 case $host_vendor in 6889 motorola) 6890 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]' 6891 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6892 ;; 6893 ncr) 6894 lt_cv_deplibs_check_method=pass_all 6895 ;; 6896 sequent) 6897 lt_cv_file_magic_cmd='/bin/file' 6898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6899 ;; 6900 sni) 6901 lt_cv_file_magic_cmd='/bin/file' 6902 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6903 lt_cv_file_magic_test_file=/lib/libc.so 6904 ;; 6905 siemens) 6906 lt_cv_deplibs_check_method=pass_all 6907 ;; 6908 pc) 6909 lt_cv_deplibs_check_method=pass_all 6910 ;; 6911 esac 6912 ;; 6913 6914tpf*) 6915 lt_cv_deplibs_check_method=pass_all 6916 ;; 6917os2*) 6918 lt_cv_deplibs_check_method=pass_all 6919 ;; 6920esac 6921 6922fi 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6924$as_echo "$lt_cv_deplibs_check_method" >&6; } 6925 6926file_magic_glob= 6927want_nocaseglob=no 6928if test "$build" = "$host"; then 6929 case $host_os in 6930 mingw* | pw32*) 6931 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6932 want_nocaseglob=yes 6933 else 6934 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6935 fi 6936 ;; 6937 esac 6938fi 6939 6940file_magic_cmd=$lt_cv_file_magic_cmd 6941deplibs_check_method=$lt_cv_deplibs_check_method 6942test -z "$deplibs_check_method" && deplibs_check_method=unknown 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965if test -n "$ac_tool_prefix"; then 6966 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6967set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6969$as_echo_n "checking for $ac_word... " >&6; } 6970if ${ac_cv_prog_DLLTOOL+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 if test -n "$DLLTOOL"; then 6974 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6983 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988 done 6989IFS=$as_save_IFS 6990 6991fi 6992fi 6993DLLTOOL=$ac_cv_prog_DLLTOOL 6994if test -n "$DLLTOOL"; then 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6996$as_echo "$DLLTOOL" >&6; } 6997else 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6999$as_echo "no" >&6; } 7000fi 7001 7002 7003fi 7004if test -z "$ac_cv_prog_DLLTOOL"; then 7005 ac_ct_DLLTOOL=$DLLTOOL 7006 # Extract the first word of "dlltool", so it can be a program name with args. 7007set dummy dlltool; ac_word=$2 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7009$as_echo_n "checking for $ac_word... " >&6; } 7010if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 if test -n "$ac_ct_DLLTOOL"; then 7014 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7015else 7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7017for as_dir in $PATH 7018do 7019 IFS=$as_save_IFS 7020 test -z "$as_dir" && as_dir=. 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7023 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028 done 7029IFS=$as_save_IFS 7030 7031fi 7032fi 7033ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7034if test -n "$ac_ct_DLLTOOL"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7036$as_echo "$ac_ct_DLLTOOL" >&6; } 7037else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039$as_echo "no" >&6; } 7040fi 7041 7042 if test "x$ac_ct_DLLTOOL" = x; then 7043 DLLTOOL="false" 7044 else 7045 case $cross_compiling:$ac_tool_warned in 7046yes:) 7047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7049ac_tool_warned=yes ;; 7050esac 7051 DLLTOOL=$ac_ct_DLLTOOL 7052 fi 7053else 7054 DLLTOOL="$ac_cv_prog_DLLTOOL" 7055fi 7056 7057test -z "$DLLTOOL" && DLLTOOL=dlltool 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7069$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7070if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 lt_cv_sharedlib_from_linklib_cmd='unknown' 7074 7075case $host_os in 7076cygwin* | mingw* | pw32* | cegcc*) 7077 # two different shell functions defined in ltmain.sh; 7078 # decide which one to use based on capabilities of $DLLTOOL 7079 case `$DLLTOOL --help 2>&1` in 7080 *--identify-strict*) 7081 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7082 ;; 7083 *) 7084 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7085 ;; 7086 esac 7087 ;; 7088*) 7089 # fallback: assume linklib IS sharedlib 7090 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7091 ;; 7092esac 7093 7094fi 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7096$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7097sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7098test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7099 7100 7101 7102 7103 7104 7105 7106if test -n "$ac_tool_prefix"; then 7107 for ac_prog in ar 7108 do 7109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7110set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_AR+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$AR"; then 7117 ac_cv_prog_AR="$AR" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136AR=$ac_cv_prog_AR 7137if test -n "$AR"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7139$as_echo "$AR" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 7146 test -n "$AR" && break 7147 done 7148fi 7149if test -z "$AR"; then 7150 ac_ct_AR=$AR 7151 for ac_prog in ar 7152do 7153 # Extract the first word of "$ac_prog", so it can be a program name with args. 7154set dummy $ac_prog; ac_word=$2 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156$as_echo_n "checking for $ac_word... " >&6; } 7157if ${ac_cv_prog_ac_ct_AR+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 if test -n "$ac_ct_AR"; then 7161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7162else 7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7164for as_dir in $PATH 7165do 7166 IFS=$as_save_IFS 7167 test -z "$as_dir" && as_dir=. 7168 for ac_exec_ext in '' $ac_executable_extensions; do 7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7170 ac_cv_prog_ac_ct_AR="$ac_prog" 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7172 break 2 7173 fi 7174done 7175 done 7176IFS=$as_save_IFS 7177 7178fi 7179fi 7180ac_ct_AR=$ac_cv_prog_ac_ct_AR 7181if test -n "$ac_ct_AR"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7183$as_echo "$ac_ct_AR" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186$as_echo "no" >&6; } 7187fi 7188 7189 7190 test -n "$ac_ct_AR" && break 7191done 7192 7193 if test "x$ac_ct_AR" = x; then 7194 AR="false" 7195 else 7196 case $cross_compiling:$ac_tool_warned in 7197yes:) 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7200ac_tool_warned=yes ;; 7201esac 7202 AR=$ac_ct_AR 7203 fi 7204fi 7205 7206: ${AR=ar} 7207 7208 7209 7210 7211 7212 7213# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7214# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7215# higher priority because thats what people were doing historically (setting 7216# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7217# variable obsoleted/removed. 7218 7219test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7220lt_ar_flags=$AR_FLAGS 7221 7222 7223 7224 7225 7226 7227# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7228# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7229 7230 7231 7232 7233 7234 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7236$as_echo_n "checking for archiver @FILE support... " >&6; } 7237if ${lt_cv_ar_at_file+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 lt_cv_ar_at_file=no 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242/* end confdefs.h. */ 7243 7244int 7245main () 7246{ 7247 7248 ; 7249 return 0; 7250} 7251_ACEOF 7252if ac_fn_c_try_compile "$LINENO"; then : 7253 echo conftest.$ac_objext > conftest.lst 7254 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7256 (eval $lt_ar_try) 2>&5 7257 ac_status=$? 7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7259 test $ac_status = 0; } 7260 if test 0 -eq "$ac_status"; then 7261 # Ensure the archiver fails upon bogus file names. 7262 rm -f conftest.$ac_objext libconftest.a 7263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7264 (eval $lt_ar_try) 2>&5 7265 ac_status=$? 7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7267 test $ac_status = 0; } 7268 if test 0 -ne "$ac_status"; then 7269 lt_cv_ar_at_file=@ 7270 fi 7271 fi 7272 rm -f conftest.* libconftest.a 7273 7274fi 7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7276 7277fi 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7279$as_echo "$lt_cv_ar_at_file" >&6; } 7280 7281if test no = "$lt_cv_ar_at_file"; then 7282 archiver_list_spec= 7283else 7284 archiver_list_spec=$lt_cv_ar_at_file 7285fi 7286 7287 7288 7289 7290 7291 7292 7293if test -n "$ac_tool_prefix"; then 7294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7295set dummy ${ac_tool_prefix}strip; ac_word=$2 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7297$as_echo_n "checking for $ac_word... " >&6; } 7298if ${ac_cv_prog_STRIP+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 if test -n "$STRIP"; then 7302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7303else 7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7305for as_dir in $PATH 7306do 7307 IFS=$as_save_IFS 7308 test -z "$as_dir" && as_dir=. 7309 for ac_exec_ext in '' $ac_executable_extensions; do 7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7311 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7313 break 2 7314 fi 7315done 7316 done 7317IFS=$as_save_IFS 7318 7319fi 7320fi 7321STRIP=$ac_cv_prog_STRIP 7322if test -n "$STRIP"; then 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7324$as_echo "$STRIP" >&6; } 7325else 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7327$as_echo "no" >&6; } 7328fi 7329 7330 7331fi 7332if test -z "$ac_cv_prog_STRIP"; then 7333 ac_ct_STRIP=$STRIP 7334 # Extract the first word of "strip", so it can be a program name with args. 7335set dummy strip; ac_word=$2 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7337$as_echo_n "checking for $ac_word... " >&6; } 7338if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 if test -n "$ac_ct_STRIP"; then 7342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7343else 7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7345for as_dir in $PATH 7346do 7347 IFS=$as_save_IFS 7348 test -z "$as_dir" && as_dir=. 7349 for ac_exec_ext in '' $ac_executable_extensions; do 7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7351 ac_cv_prog_ac_ct_STRIP="strip" 7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7353 break 2 7354 fi 7355done 7356 done 7357IFS=$as_save_IFS 7358 7359fi 7360fi 7361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7362if test -n "$ac_ct_STRIP"; then 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7364$as_echo "$ac_ct_STRIP" >&6; } 7365else 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7367$as_echo "no" >&6; } 7368fi 7369 7370 if test "x$ac_ct_STRIP" = x; then 7371 STRIP=":" 7372 else 7373 case $cross_compiling:$ac_tool_warned in 7374yes:) 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7377ac_tool_warned=yes ;; 7378esac 7379 STRIP=$ac_ct_STRIP 7380 fi 7381else 7382 STRIP="$ac_cv_prog_STRIP" 7383fi 7384 7385test -z "$STRIP" && STRIP=: 7386 7387 7388 7389 7390 7391 7392if test -n "$ac_tool_prefix"; then 7393 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7394set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7396$as_echo_n "checking for $ac_word... " >&6; } 7397if ${ac_cv_prog_RANLIB+:} false; then : 7398 $as_echo_n "(cached) " >&6 7399else 7400 if test -n "$RANLIB"; then 7401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7402else 7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404for as_dir in $PATH 7405do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414done 7415 done 7416IFS=$as_save_IFS 7417 7418fi 7419fi 7420RANLIB=$ac_cv_prog_RANLIB 7421if test -n "$RANLIB"; then 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7423$as_echo "$RANLIB" >&6; } 7424else 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426$as_echo "no" >&6; } 7427fi 7428 7429 7430fi 7431if test -z "$ac_cv_prog_RANLIB"; then 7432 ac_ct_RANLIB=$RANLIB 7433 # Extract the first word of "ranlib", so it can be a program name with args. 7434set dummy ranlib; ac_word=$2 7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7436$as_echo_n "checking for $ac_word... " >&6; } 7437if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 if test -n "$ac_ct_RANLIB"; then 7441 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7442else 7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7444for as_dir in $PATH 7445do 7446 IFS=$as_save_IFS 7447 test -z "$as_dir" && as_dir=. 7448 for ac_exec_ext in '' $ac_executable_extensions; do 7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7450 ac_cv_prog_ac_ct_RANLIB="ranlib" 7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7452 break 2 7453 fi 7454done 7455 done 7456IFS=$as_save_IFS 7457 7458fi 7459fi 7460ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7461if test -n "$ac_ct_RANLIB"; then 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7463$as_echo "$ac_ct_RANLIB" >&6; } 7464else 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7466$as_echo "no" >&6; } 7467fi 7468 7469 if test "x$ac_ct_RANLIB" = x; then 7470 RANLIB=":" 7471 else 7472 case $cross_compiling:$ac_tool_warned in 7473yes:) 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7476ac_tool_warned=yes ;; 7477esac 7478 RANLIB=$ac_ct_RANLIB 7479 fi 7480else 7481 RANLIB="$ac_cv_prog_RANLIB" 7482fi 7483 7484test -z "$RANLIB" && RANLIB=: 7485 7486 7487 7488 7489 7490 7491# Determine commands to create old-style static archives. 7492old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7493old_postinstall_cmds='chmod 644 $oldlib' 7494old_postuninstall_cmds= 7495 7496if test -n "$RANLIB"; then 7497 case $host_os in 7498 bitrig* | openbsd*) 7499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7500 ;; 7501 *) 7502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7503 ;; 7504 esac 7505 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7506fi 7507 7508case $host_os in 7509 darwin*) 7510 lock_old_archive_extraction=yes ;; 7511 *) 7512 lock_old_archive_extraction=no ;; 7513esac 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553# If no C compiler was specified, use CC. 7554LTCC=${LTCC-"$CC"} 7555 7556# If no C compiler flags were specified, use CFLAGS. 7557LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7558 7559# Allow CC to be a program name with arguments. 7560compiler=$CC 7561 7562 7563# Check for command to grab the raw symbol name followed by C symbol from nm. 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7565$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7566if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568else 7569 7570# These are sane defaults that work on at least a few old systems. 7571# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7572 7573# Character class describing NM global symbol codes. 7574symcode='[BCDEGRST]' 7575 7576# Regexp to match symbols that can be accessed directly from C. 7577sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7578 7579# Define system-specific variables. 7580case $host_os in 7581aix*) 7582 symcode='[BCDT]' 7583 ;; 7584cygwin* | mingw* | pw32* | cegcc*) 7585 symcode='[ABCDGISTW]' 7586 ;; 7587hpux*) 7588 if test ia64 = "$host_cpu"; then 7589 symcode='[ABCDEGRST]' 7590 fi 7591 ;; 7592irix* | nonstopux*) 7593 symcode='[BCDEGRST]' 7594 ;; 7595osf*) 7596 symcode='[BCDEGQRST]' 7597 ;; 7598solaris*) 7599 symcode='[BDRT]' 7600 ;; 7601sco3.2v5*) 7602 symcode='[DT]' 7603 ;; 7604sysv4.2uw2*) 7605 symcode='[DT]' 7606 ;; 7607sysv5* | sco5v6* | unixware* | OpenUNIX*) 7608 symcode='[ABDT]' 7609 ;; 7610sysv4) 7611 symcode='[DFNSTU]' 7612 ;; 7613esac 7614 7615# If we're using GNU nm, then use its standard symbol codes. 7616case `$NM -V 2>&1` in 7617*GNU* | *'with BFD'*) 7618 symcode='[ABCDGIRSTW]' ;; 7619esac 7620 7621if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7622 # Gets list of data symbols to import. 7623 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7624 # Adjust the below global symbol transforms to fixup imported variables. 7625 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7626 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7627 lt_c_name_lib_hook="\ 7628 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7629 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7630else 7631 # Disable hooks by default. 7632 lt_cv_sys_global_symbol_to_import= 7633 lt_cdecl_hook= 7634 lt_c_name_hook= 7635 lt_c_name_lib_hook= 7636fi 7637 7638# Transform an extracted symbol line into a proper C declaration. 7639# Some systems (esp. on ia64) link data and code symbols differently, 7640# so use this general approach. 7641lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7642$lt_cdecl_hook\ 7643" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7644" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7645 7646# Transform an extracted symbol line into symbol name and symbol address 7647lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7648$lt_c_name_hook\ 7649" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7650" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7651 7652# Transform an extracted symbol line into symbol name with lib prefix and 7653# symbol address. 7654lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7655$lt_c_name_lib_hook\ 7656" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7657" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7658" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7659 7660# Handle CRLF in mingw tool chain 7661opt_cr= 7662case $build_os in 7663mingw*) 7664 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7665 ;; 7666esac 7667 7668# Try without a prefix underscore, then with it. 7669for ac_symprfx in "" "_"; do 7670 7671 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7672 symxfrm="\\1 $ac_symprfx\\2 \\2" 7673 7674 # Write the raw and C identifiers. 7675 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7676 # Fake it for dumpbin and say T for any non-static function, 7677 # D for any global variable and I for any imported variable. 7678 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7679 # which start with @ or ?. 7680 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7681" {last_section=section; section=\$ 3};"\ 7682" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7683" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7684" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7685" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7686" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7687" \$ 0!~/External *\|/{next};"\ 7688" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7689" {if(hide[section]) next};"\ 7690" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7691" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7692" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7693" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7694" ' prfx=^$ac_symprfx" 7695 else 7696 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7697 fi 7698 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7699 7700 # Check to see that the pipe works correctly. 7701 pipe_works=no 7702 7703 rm -f conftest* 7704 cat > conftest.$ac_ext <<_LT_EOF 7705#ifdef __cplusplus 7706extern "C" { 7707#endif 7708char nm_test_var; 7709void nm_test_func(void); 7710void nm_test_func(void){} 7711#ifdef __cplusplus 7712} 7713#endif 7714int main(){nm_test_var='a';nm_test_func();return(0);} 7715_LT_EOF 7716 7717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7718 (eval $ac_compile) 2>&5 7719 ac_status=$? 7720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7721 test $ac_status = 0; }; then 7722 # Now try to grab the symbols. 7723 nlist=conftest.nm 7724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7725 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7726 ac_status=$? 7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7728 test $ac_status = 0; } && test -s "$nlist"; then 7729 # Try sorting and uniquifying the output. 7730 if sort "$nlist" | uniq > "$nlist"T; then 7731 mv -f "$nlist"T "$nlist" 7732 else 7733 rm -f "$nlist"T 7734 fi 7735 7736 # Make sure that we snagged all the symbols we need. 7737 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7738 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7739 cat <<_LT_EOF > conftest.$ac_ext 7740/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7741#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7742/* DATA imports from DLLs on WIN32 can't be const, because runtime 7743 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7744# define LT_DLSYM_CONST 7745#elif defined __osf__ 7746/* This system does not cope well with relocations in const data. */ 7747# define LT_DLSYM_CONST 7748#else 7749# define LT_DLSYM_CONST const 7750#endif 7751 7752#ifdef __cplusplus 7753extern "C" { 7754#endif 7755 7756_LT_EOF 7757 # Now generate the symbol file. 7758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7759 7760 cat <<_LT_EOF >> conftest.$ac_ext 7761 7762/* The mapping between symbol names and symbols. */ 7763LT_DLSYM_CONST struct { 7764 const char *name; 7765 void *address; 7766} 7767lt__PROGRAM__LTX_preloaded_symbols[] = 7768{ 7769 { "@PROGRAM@", (void *) 0 }, 7770_LT_EOF 7771 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7772 cat <<\_LT_EOF >> conftest.$ac_ext 7773 {0, (void *) 0} 7774}; 7775 7776/* This works around a problem in FreeBSD linker */ 7777#ifdef FREEBSD_WORKAROUND 7778static const void *lt_preloaded_setup() { 7779 return lt__PROGRAM__LTX_preloaded_symbols; 7780} 7781#endif 7782 7783#ifdef __cplusplus 7784} 7785#endif 7786_LT_EOF 7787 # Now try linking the two files. 7788 mv conftest.$ac_objext conftstm.$ac_objext 7789 lt_globsym_save_LIBS=$LIBS 7790 lt_globsym_save_CFLAGS=$CFLAGS 7791 LIBS=conftstm.$ac_objext 7792 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7794 (eval $ac_link) 2>&5 7795 ac_status=$? 7796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7797 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7798 pipe_works=yes 7799 fi 7800 LIBS=$lt_globsym_save_LIBS 7801 CFLAGS=$lt_globsym_save_CFLAGS 7802 else 7803 echo "cannot find nm_test_func in $nlist" >&5 7804 fi 7805 else 7806 echo "cannot find nm_test_var in $nlist" >&5 7807 fi 7808 else 7809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7810 fi 7811 else 7812 echo "$progname: failed program was:" >&5 7813 cat conftest.$ac_ext >&5 7814 fi 7815 rm -rf conftest* conftst* 7816 7817 # Do not use the global_symbol_pipe unless it works. 7818 if test yes = "$pipe_works"; then 7819 break 7820 else 7821 lt_cv_sys_global_symbol_pipe= 7822 fi 7823done 7824 7825fi 7826 7827if test -z "$lt_cv_sys_global_symbol_pipe"; then 7828 lt_cv_sys_global_symbol_to_cdecl= 7829fi 7830if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7832$as_echo "failed" >&6; } 7833else 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7835$as_echo "ok" >&6; } 7836fi 7837 7838# Response file support. 7839if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7840 nm_file_list_spec='@' 7841elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7842 nm_file_list_spec='@' 7843fi 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7882$as_echo_n "checking for sysroot... " >&6; } 7883 7884# Check whether --with-sysroot was given. 7885if test "${with_sysroot+set}" = set; then : 7886 withval=$with_sysroot; 7887else 7888 with_sysroot=no 7889fi 7890 7891 7892lt_sysroot= 7893case $with_sysroot in #( 7894 yes) 7895 if test yes = "$GCC"; then 7896 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7897 fi 7898 ;; #( 7899 /*) 7900 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7901 ;; #( 7902 no|'') 7903 ;; #( 7904 *) 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7906$as_echo "$with_sysroot" >&6; } 7907 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7908 ;; 7909esac 7910 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7912$as_echo "${lt_sysroot:-no}" >&6; } 7913 7914 7915 7916 7917 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7919$as_echo_n "checking for a working dd... " >&6; } 7920if ${ac_cv_path_lt_DD+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 printf 0123456789abcdef0123456789abcdef >conftest.i 7924cat conftest.i conftest.i >conftest2.i 7925: ${lt_DD:=$DD} 7926if test -z "$lt_DD"; then 7927 ac_path_lt_DD_found=false 7928 # Loop through the user's path and test for each of PROGNAME-LIST 7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7930for as_dir in $PATH 7931do 7932 IFS=$as_save_IFS 7933 test -z "$as_dir" && as_dir=. 7934 for ac_prog in dd; do 7935 for ac_exec_ext in '' $ac_executable_extensions; do 7936 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7937 as_fn_executable_p "$ac_path_lt_DD" || continue 7938if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7939 cmp -s conftest.i conftest.out \ 7940 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7941fi 7942 $ac_path_lt_DD_found && break 3 7943 done 7944 done 7945 done 7946IFS=$as_save_IFS 7947 if test -z "$ac_cv_path_lt_DD"; then 7948 : 7949 fi 7950else 7951 ac_cv_path_lt_DD=$lt_DD 7952fi 7953 7954rm -f conftest.i conftest2.i conftest.out 7955fi 7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7957$as_echo "$ac_cv_path_lt_DD" >&6; } 7958 7959 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7961$as_echo_n "checking how to truncate binary pipes... " >&6; } 7962if ${lt_cv_truncate_bin+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 printf 0123456789abcdef0123456789abcdef >conftest.i 7966cat conftest.i conftest.i >conftest2.i 7967lt_cv_truncate_bin= 7968if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7969 cmp -s conftest.i conftest.out \ 7970 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7971fi 7972rm -f conftest.i conftest2.i conftest.out 7973test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7974fi 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7976$as_echo "$lt_cv_truncate_bin" >&6; } 7977 7978 7979 7980 7981 7982 7983 7984# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7985func_cc_basename () 7986{ 7987 for cc_temp in $*""; do 7988 case $cc_temp in 7989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7991 \-*) ;; 7992 *) break;; 7993 esac 7994 done 7995 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7996} 7997 7998# Check whether --enable-libtool-lock was given. 7999if test "${enable_libtool_lock+set}" = set; then : 8000 enableval=$enable_libtool_lock; 8001fi 8002 8003test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8004 8005# Some flags need to be propagated to the compiler or linker for good 8006# libtool support. 8007case $host in 8008ia64-*-hpux*) 8009 # Find out what ABI is being produced by ac_compile, and set mode 8010 # options accordingly. 8011 echo 'int i;' > conftest.$ac_ext 8012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8013 (eval $ac_compile) 2>&5 8014 ac_status=$? 8015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8016 test $ac_status = 0; }; then 8017 case `/usr/bin/file conftest.$ac_objext` in 8018 *ELF-32*) 8019 HPUX_IA64_MODE=32 8020 ;; 8021 *ELF-64*) 8022 HPUX_IA64_MODE=64 8023 ;; 8024 esac 8025 fi 8026 rm -rf conftest* 8027 ;; 8028*-*-irix6*) 8029 # Find out what ABI is being produced by ac_compile, and set linker 8030 # options accordingly. 8031 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8033 (eval $ac_compile) 2>&5 8034 ac_status=$? 8035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8036 test $ac_status = 0; }; then 8037 if test yes = "$lt_cv_prog_gnu_ld"; then 8038 case `/usr/bin/file conftest.$ac_objext` in 8039 *32-bit*) 8040 LD="${LD-ld} -melf32bsmip" 8041 ;; 8042 *N32*) 8043 LD="${LD-ld} -melf32bmipn32" 8044 ;; 8045 *64-bit*) 8046 LD="${LD-ld} -melf64bmip" 8047 ;; 8048 esac 8049 else 8050 case `/usr/bin/file conftest.$ac_objext` in 8051 *32-bit*) 8052 LD="${LD-ld} -32" 8053 ;; 8054 *N32*) 8055 LD="${LD-ld} -n32" 8056 ;; 8057 *64-bit*) 8058 LD="${LD-ld} -64" 8059 ;; 8060 esac 8061 fi 8062 fi 8063 rm -rf conftest* 8064 ;; 8065 8066mips64*-*linux*) 8067 # Find out what ABI is being produced by ac_compile, and set linker 8068 # options accordingly. 8069 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8071 (eval $ac_compile) 2>&5 8072 ac_status=$? 8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8074 test $ac_status = 0; }; then 8075 emul=elf 8076 case `/usr/bin/file conftest.$ac_objext` in 8077 *32-bit*) 8078 emul="${emul}32" 8079 ;; 8080 *64-bit*) 8081 emul="${emul}64" 8082 ;; 8083 esac 8084 case `/usr/bin/file conftest.$ac_objext` in 8085 *MSB*) 8086 emul="${emul}btsmip" 8087 ;; 8088 *LSB*) 8089 emul="${emul}ltsmip" 8090 ;; 8091 esac 8092 case `/usr/bin/file conftest.$ac_objext` in 8093 *N32*) 8094 emul="${emul}n32" 8095 ;; 8096 esac 8097 LD="${LD-ld} -m $emul" 8098 fi 8099 rm -rf conftest* 8100 ;; 8101 8102x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8103s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8104 # Find out what ABI is being produced by ac_compile, and set linker 8105 # options accordingly. Note that the listed cases only cover the 8106 # situations where additional linker options are needed (such as when 8107 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8108 # vice versa); the common cases where no linker options are needed do 8109 # not appear in the list. 8110 echo 'int i;' > conftest.$ac_ext 8111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8112 (eval $ac_compile) 2>&5 8113 ac_status=$? 8114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8115 test $ac_status = 0; }; then 8116 case `/usr/bin/file conftest.o` in 8117 *32-bit*) 8118 case $host in 8119 x86_64-*kfreebsd*-gnu) 8120 LD="${LD-ld} -m elf_i386_fbsd" 8121 ;; 8122 x86_64-*linux*) 8123 case `/usr/bin/file conftest.o` in 8124 *x86-64*) 8125 LD="${LD-ld} -m elf32_x86_64" 8126 ;; 8127 *) 8128 LD="${LD-ld} -m elf_i386" 8129 ;; 8130 esac 8131 ;; 8132 powerpc64le-*linux*) 8133 LD="${LD-ld} -m elf32lppclinux" 8134 ;; 8135 powerpc64-*linux*) 8136 LD="${LD-ld} -m elf32ppclinux" 8137 ;; 8138 s390x-*linux*) 8139 LD="${LD-ld} -m elf_s390" 8140 ;; 8141 sparc64-*linux*) 8142 LD="${LD-ld} -m elf32_sparc" 8143 ;; 8144 esac 8145 ;; 8146 *64-bit*) 8147 case $host in 8148 x86_64-*kfreebsd*-gnu) 8149 LD="${LD-ld} -m elf_x86_64_fbsd" 8150 ;; 8151 x86_64-*linux*) 8152 LD="${LD-ld} -m elf_x86_64" 8153 ;; 8154 powerpcle-*linux*) 8155 LD="${LD-ld} -m elf64lppc" 8156 ;; 8157 powerpc-*linux*) 8158 LD="${LD-ld} -m elf64ppc" 8159 ;; 8160 s390*-*linux*|s390*-*tpf*) 8161 LD="${LD-ld} -m elf64_s390" 8162 ;; 8163 sparc*-*linux*) 8164 LD="${LD-ld} -m elf64_sparc" 8165 ;; 8166 esac 8167 ;; 8168 esac 8169 fi 8170 rm -rf conftest* 8171 ;; 8172 8173*-*-sco3.2v5*) 8174 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8175 SAVE_CFLAGS=$CFLAGS 8176 CFLAGS="$CFLAGS -belf" 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8178$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8179if ${lt_cv_cc_needs_belf+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 ac_ext=c 8183ac_cpp='$CPP $CPPFLAGS' 8184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8186ac_compiler_gnu=$ac_cv_c_compiler_gnu 8187 8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8189/* end confdefs.h. */ 8190 8191int 8192main () 8193{ 8194 8195 ; 8196 return 0; 8197} 8198_ACEOF 8199if ac_fn_c_try_link "$LINENO"; then : 8200 lt_cv_cc_needs_belf=yes 8201else 8202 lt_cv_cc_needs_belf=no 8203fi 8204rm -f core conftest.err conftest.$ac_objext \ 8205 conftest$ac_exeext conftest.$ac_ext 8206 ac_ext=c 8207ac_cpp='$CPP $CPPFLAGS' 8208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8210ac_compiler_gnu=$ac_cv_c_compiler_gnu 8211 8212fi 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8214$as_echo "$lt_cv_cc_needs_belf" >&6; } 8215 if test yes != "$lt_cv_cc_needs_belf"; then 8216 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8217 CFLAGS=$SAVE_CFLAGS 8218 fi 8219 ;; 8220*-*solaris*) 8221 # Find out what ABI is being produced by ac_compile, and set linker 8222 # options accordingly. 8223 echo 'int i;' > conftest.$ac_ext 8224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8225 (eval $ac_compile) 2>&5 8226 ac_status=$? 8227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8228 test $ac_status = 0; }; then 8229 case `/usr/bin/file conftest.o` in 8230 *64-bit*) 8231 case $lt_cv_prog_gnu_ld in 8232 yes*) 8233 case $host in 8234 i?86-*-solaris*|x86_64-*-solaris*) 8235 LD="${LD-ld} -m elf_x86_64" 8236 ;; 8237 sparc*-*-solaris*) 8238 LD="${LD-ld} -m elf64_sparc" 8239 ;; 8240 esac 8241 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8242 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8243 LD=${LD-ld}_sol2 8244 fi 8245 ;; 8246 *) 8247 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8248 LD="${LD-ld} -64" 8249 fi 8250 ;; 8251 esac 8252 ;; 8253 esac 8254 fi 8255 rm -rf conftest* 8256 ;; 8257esac 8258 8259need_locks=$enable_libtool_lock 8260 8261if test -n "$ac_tool_prefix"; then 8262 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8263set dummy ${ac_tool_prefix}mt; ac_word=$2 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8265$as_echo_n "checking for $ac_word... " >&6; } 8266if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 if test -n "$MANIFEST_TOOL"; then 8270 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8271else 8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8273for as_dir in $PATH 8274do 8275 IFS=$as_save_IFS 8276 test -z "$as_dir" && as_dir=. 8277 for ac_exec_ext in '' $ac_executable_extensions; do 8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8279 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8281 break 2 8282 fi 8283done 8284 done 8285IFS=$as_save_IFS 8286 8287fi 8288fi 8289MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8290if test -n "$MANIFEST_TOOL"; then 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8292$as_echo "$MANIFEST_TOOL" >&6; } 8293else 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8295$as_echo "no" >&6; } 8296fi 8297 8298 8299fi 8300if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8301 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8302 # Extract the first word of "mt", so it can be a program name with args. 8303set dummy mt; ac_word=$2 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8305$as_echo_n "checking for $ac_word... " >&6; } 8306if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8307 $as_echo_n "(cached) " >&6 8308else 8309 if test -n "$ac_ct_MANIFEST_TOOL"; then 8310 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8311else 8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8313for as_dir in $PATH 8314do 8315 IFS=$as_save_IFS 8316 test -z "$as_dir" && as_dir=. 8317 for ac_exec_ext in '' $ac_executable_extensions; do 8318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8319 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8321 break 2 8322 fi 8323done 8324 done 8325IFS=$as_save_IFS 8326 8327fi 8328fi 8329ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8330if test -n "$ac_ct_MANIFEST_TOOL"; then 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8332$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8333else 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8335$as_echo "no" >&6; } 8336fi 8337 8338 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8339 MANIFEST_TOOL=":" 8340 else 8341 case $cross_compiling:$ac_tool_warned in 8342yes:) 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8345ac_tool_warned=yes ;; 8346esac 8347 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8348 fi 8349else 8350 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8351fi 8352 8353test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8355$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8356if ${lt_cv_path_mainfest_tool+:} false; then : 8357 $as_echo_n "(cached) " >&6 8358else 8359 lt_cv_path_mainfest_tool=no 8360 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8361 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8362 cat conftest.err >&5 8363 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8364 lt_cv_path_mainfest_tool=yes 8365 fi 8366 rm -f conftest* 8367fi 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8369$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8370if test yes != "$lt_cv_path_mainfest_tool"; then 8371 MANIFEST_TOOL=: 8372fi 8373 8374 8375 8376 8377 8378 8379 case $host_os in 8380 rhapsody* | darwin*) 8381 if test -n "$ac_tool_prefix"; then 8382 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8383set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8385$as_echo_n "checking for $ac_word... " >&6; } 8386if ${ac_cv_prog_DSYMUTIL+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 if test -n "$DSYMUTIL"; then 8390 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8391else 8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8393for as_dir in $PATH 8394do 8395 IFS=$as_save_IFS 8396 test -z "$as_dir" && as_dir=. 8397 for ac_exec_ext in '' $ac_executable_extensions; do 8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8399 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8401 break 2 8402 fi 8403done 8404 done 8405IFS=$as_save_IFS 8406 8407fi 8408fi 8409DSYMUTIL=$ac_cv_prog_DSYMUTIL 8410if test -n "$DSYMUTIL"; then 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8412$as_echo "$DSYMUTIL" >&6; } 8413else 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8415$as_echo "no" >&6; } 8416fi 8417 8418 8419fi 8420if test -z "$ac_cv_prog_DSYMUTIL"; then 8421 ac_ct_DSYMUTIL=$DSYMUTIL 8422 # Extract the first word of "dsymutil", so it can be a program name with args. 8423set dummy dsymutil; ac_word=$2 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8425$as_echo_n "checking for $ac_word... " >&6; } 8426if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8427 $as_echo_n "(cached) " >&6 8428else 8429 if test -n "$ac_ct_DSYMUTIL"; then 8430 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8431else 8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8433for as_dir in $PATH 8434do 8435 IFS=$as_save_IFS 8436 test -z "$as_dir" && as_dir=. 8437 for ac_exec_ext in '' $ac_executable_extensions; do 8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8439 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8441 break 2 8442 fi 8443done 8444 done 8445IFS=$as_save_IFS 8446 8447fi 8448fi 8449ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8450if test -n "$ac_ct_DSYMUTIL"; then 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8452$as_echo "$ac_ct_DSYMUTIL" >&6; } 8453else 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8455$as_echo "no" >&6; } 8456fi 8457 8458 if test "x$ac_ct_DSYMUTIL" = x; then 8459 DSYMUTIL=":" 8460 else 8461 case $cross_compiling:$ac_tool_warned in 8462yes:) 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8465ac_tool_warned=yes ;; 8466esac 8467 DSYMUTIL=$ac_ct_DSYMUTIL 8468 fi 8469else 8470 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8471fi 8472 8473 if test -n "$ac_tool_prefix"; then 8474 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8475set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8477$as_echo_n "checking for $ac_word... " >&6; } 8478if ${ac_cv_prog_NMEDIT+:} false; then : 8479 $as_echo_n "(cached) " >&6 8480else 8481 if test -n "$NMEDIT"; then 8482 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8483else 8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8485for as_dir in $PATH 8486do 8487 IFS=$as_save_IFS 8488 test -z "$as_dir" && as_dir=. 8489 for ac_exec_ext in '' $ac_executable_extensions; do 8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8491 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8493 break 2 8494 fi 8495done 8496 done 8497IFS=$as_save_IFS 8498 8499fi 8500fi 8501NMEDIT=$ac_cv_prog_NMEDIT 8502if test -n "$NMEDIT"; then 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8504$as_echo "$NMEDIT" >&6; } 8505else 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8507$as_echo "no" >&6; } 8508fi 8509 8510 8511fi 8512if test -z "$ac_cv_prog_NMEDIT"; then 8513 ac_ct_NMEDIT=$NMEDIT 8514 # Extract the first word of "nmedit", so it can be a program name with args. 8515set dummy nmedit; ac_word=$2 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8517$as_echo_n "checking for $ac_word... " >&6; } 8518if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8519 $as_echo_n "(cached) " >&6 8520else 8521 if test -n "$ac_ct_NMEDIT"; then 8522 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8523else 8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8525for as_dir in $PATH 8526do 8527 IFS=$as_save_IFS 8528 test -z "$as_dir" && as_dir=. 8529 for ac_exec_ext in '' $ac_executable_extensions; do 8530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8531 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8533 break 2 8534 fi 8535done 8536 done 8537IFS=$as_save_IFS 8538 8539fi 8540fi 8541ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8542if test -n "$ac_ct_NMEDIT"; then 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8544$as_echo "$ac_ct_NMEDIT" >&6; } 8545else 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8547$as_echo "no" >&6; } 8548fi 8549 8550 if test "x$ac_ct_NMEDIT" = x; then 8551 NMEDIT=":" 8552 else 8553 case $cross_compiling:$ac_tool_warned in 8554yes:) 8555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8557ac_tool_warned=yes ;; 8558esac 8559 NMEDIT=$ac_ct_NMEDIT 8560 fi 8561else 8562 NMEDIT="$ac_cv_prog_NMEDIT" 8563fi 8564 8565 if test -n "$ac_tool_prefix"; then 8566 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8567set dummy ${ac_tool_prefix}lipo; ac_word=$2 8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8569$as_echo_n "checking for $ac_word... " >&6; } 8570if ${ac_cv_prog_LIPO+:} false; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 if test -n "$LIPO"; then 8574 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8575else 8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8577for as_dir in $PATH 8578do 8579 IFS=$as_save_IFS 8580 test -z "$as_dir" && as_dir=. 8581 for ac_exec_ext in '' $ac_executable_extensions; do 8582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8583 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8585 break 2 8586 fi 8587done 8588 done 8589IFS=$as_save_IFS 8590 8591fi 8592fi 8593LIPO=$ac_cv_prog_LIPO 8594if test -n "$LIPO"; then 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8596$as_echo "$LIPO" >&6; } 8597else 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8599$as_echo "no" >&6; } 8600fi 8601 8602 8603fi 8604if test -z "$ac_cv_prog_LIPO"; then 8605 ac_ct_LIPO=$LIPO 8606 # Extract the first word of "lipo", so it can be a program name with args. 8607set dummy lipo; ac_word=$2 8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8609$as_echo_n "checking for $ac_word... " >&6; } 8610if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 if test -n "$ac_ct_LIPO"; then 8614 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8615else 8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8617for as_dir in $PATH 8618do 8619 IFS=$as_save_IFS 8620 test -z "$as_dir" && as_dir=. 8621 for ac_exec_ext in '' $ac_executable_extensions; do 8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8623 ac_cv_prog_ac_ct_LIPO="lipo" 8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8625 break 2 8626 fi 8627done 8628 done 8629IFS=$as_save_IFS 8630 8631fi 8632fi 8633ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8634if test -n "$ac_ct_LIPO"; then 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8636$as_echo "$ac_ct_LIPO" >&6; } 8637else 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8639$as_echo "no" >&6; } 8640fi 8641 8642 if test "x$ac_ct_LIPO" = x; then 8643 LIPO=":" 8644 else 8645 case $cross_compiling:$ac_tool_warned in 8646yes:) 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8649ac_tool_warned=yes ;; 8650esac 8651 LIPO=$ac_ct_LIPO 8652 fi 8653else 8654 LIPO="$ac_cv_prog_LIPO" 8655fi 8656 8657 if test -n "$ac_tool_prefix"; then 8658 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8659set dummy ${ac_tool_prefix}otool; ac_word=$2 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8661$as_echo_n "checking for $ac_word... " >&6; } 8662if ${ac_cv_prog_OTOOL+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 if test -n "$OTOOL"; then 8666 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8667else 8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8669for as_dir in $PATH 8670do 8671 IFS=$as_save_IFS 8672 test -z "$as_dir" && as_dir=. 8673 for ac_exec_ext in '' $ac_executable_extensions; do 8674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8675 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8677 break 2 8678 fi 8679done 8680 done 8681IFS=$as_save_IFS 8682 8683fi 8684fi 8685OTOOL=$ac_cv_prog_OTOOL 8686if test -n "$OTOOL"; then 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8688$as_echo "$OTOOL" >&6; } 8689else 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8691$as_echo "no" >&6; } 8692fi 8693 8694 8695fi 8696if test -z "$ac_cv_prog_OTOOL"; then 8697 ac_ct_OTOOL=$OTOOL 8698 # Extract the first word of "otool", so it can be a program name with args. 8699set dummy otool; ac_word=$2 8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8701$as_echo_n "checking for $ac_word... " >&6; } 8702if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8703 $as_echo_n "(cached) " >&6 8704else 8705 if test -n "$ac_ct_OTOOL"; then 8706 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8707else 8708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8709for as_dir in $PATH 8710do 8711 IFS=$as_save_IFS 8712 test -z "$as_dir" && as_dir=. 8713 for ac_exec_ext in '' $ac_executable_extensions; do 8714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8715 ac_cv_prog_ac_ct_OTOOL="otool" 8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8717 break 2 8718 fi 8719done 8720 done 8721IFS=$as_save_IFS 8722 8723fi 8724fi 8725ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8726if test -n "$ac_ct_OTOOL"; then 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8728$as_echo "$ac_ct_OTOOL" >&6; } 8729else 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8731$as_echo "no" >&6; } 8732fi 8733 8734 if test "x$ac_ct_OTOOL" = x; then 8735 OTOOL=":" 8736 else 8737 case $cross_compiling:$ac_tool_warned in 8738yes:) 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8741ac_tool_warned=yes ;; 8742esac 8743 OTOOL=$ac_ct_OTOOL 8744 fi 8745else 8746 OTOOL="$ac_cv_prog_OTOOL" 8747fi 8748 8749 if test -n "$ac_tool_prefix"; then 8750 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8751set dummy ${ac_tool_prefix}otool64; ac_word=$2 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8753$as_echo_n "checking for $ac_word... " >&6; } 8754if ${ac_cv_prog_OTOOL64+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756else 8757 if test -n "$OTOOL64"; then 8758 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8759else 8760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8761for as_dir in $PATH 8762do 8763 IFS=$as_save_IFS 8764 test -z "$as_dir" && as_dir=. 8765 for ac_exec_ext in '' $ac_executable_extensions; do 8766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8767 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8769 break 2 8770 fi 8771done 8772 done 8773IFS=$as_save_IFS 8774 8775fi 8776fi 8777OTOOL64=$ac_cv_prog_OTOOL64 8778if test -n "$OTOOL64"; then 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8780$as_echo "$OTOOL64" >&6; } 8781else 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8783$as_echo "no" >&6; } 8784fi 8785 8786 8787fi 8788if test -z "$ac_cv_prog_OTOOL64"; then 8789 ac_ct_OTOOL64=$OTOOL64 8790 # Extract the first word of "otool64", so it can be a program name with args. 8791set dummy otool64; ac_word=$2 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8793$as_echo_n "checking for $ac_word... " >&6; } 8794if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 if test -n "$ac_ct_OTOOL64"; then 8798 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8799else 8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8801for as_dir in $PATH 8802do 8803 IFS=$as_save_IFS 8804 test -z "$as_dir" && as_dir=. 8805 for ac_exec_ext in '' $ac_executable_extensions; do 8806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8807 ac_cv_prog_ac_ct_OTOOL64="otool64" 8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8809 break 2 8810 fi 8811done 8812 done 8813IFS=$as_save_IFS 8814 8815fi 8816fi 8817ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8818if test -n "$ac_ct_OTOOL64"; then 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8820$as_echo "$ac_ct_OTOOL64" >&6; } 8821else 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8823$as_echo "no" >&6; } 8824fi 8825 8826 if test "x$ac_ct_OTOOL64" = x; then 8827 OTOOL64=":" 8828 else 8829 case $cross_compiling:$ac_tool_warned in 8830yes:) 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8833ac_tool_warned=yes ;; 8834esac 8835 OTOOL64=$ac_ct_OTOOL64 8836 fi 8837else 8838 OTOOL64="$ac_cv_prog_OTOOL64" 8839fi 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8868$as_echo_n "checking for -single_module linker flag... " >&6; } 8869if ${lt_cv_apple_cc_single_mod+:} false; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 lt_cv_apple_cc_single_mod=no 8873 if test -z "$LT_MULTI_MODULE"; then 8874 # By default we will add the -single_module flag. You can override 8875 # by either setting the environment variable LT_MULTI_MODULE 8876 # non-empty at configure time, or by adding -multi_module to the 8877 # link flags. 8878 rm -rf libconftest.dylib* 8879 echo "int foo(void){return 1;}" > conftest.c 8880 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8881-dynamiclib -Wl,-single_module conftest.c" >&5 8882 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8883 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8884 _lt_result=$? 8885 # If there is a non-empty error log, and "single_module" 8886 # appears in it, assume the flag caused a linker warning 8887 if test -s conftest.err && $GREP single_module conftest.err; then 8888 cat conftest.err >&5 8889 # Otherwise, if the output was created with a 0 exit code from 8890 # the compiler, it worked. 8891 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8892 lt_cv_apple_cc_single_mod=yes 8893 else 8894 cat conftest.err >&5 8895 fi 8896 rm -rf libconftest.dylib* 8897 rm -f conftest.* 8898 fi 8899fi 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8901$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8902 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8904$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8905if ${lt_cv_ld_exported_symbols_list+:} false; then : 8906 $as_echo_n "(cached) " >&6 8907else 8908 lt_cv_ld_exported_symbols_list=no 8909 save_LDFLAGS=$LDFLAGS 8910 echo "_main" > conftest.sym 8911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914 8915int 8916main () 8917{ 8918 8919 ; 8920 return 0; 8921} 8922_ACEOF 8923if ac_fn_c_try_link "$LINENO"; then : 8924 lt_cv_ld_exported_symbols_list=yes 8925else 8926 lt_cv_ld_exported_symbols_list=no 8927fi 8928rm -f core conftest.err conftest.$ac_objext \ 8929 conftest$ac_exeext conftest.$ac_ext 8930 LDFLAGS=$save_LDFLAGS 8931 8932fi 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8934$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8935 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8937$as_echo_n "checking for -force_load linker flag... " >&6; } 8938if ${lt_cv_ld_force_load+:} false; then : 8939 $as_echo_n "(cached) " >&6 8940else 8941 lt_cv_ld_force_load=no 8942 cat > conftest.c << _LT_EOF 8943int forced_loaded() { return 2;} 8944_LT_EOF 8945 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8946 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8947 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8948 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8949 echo "$RANLIB libconftest.a" >&5 8950 $RANLIB libconftest.a 2>&5 8951 cat > conftest.c << _LT_EOF 8952int main() { return 0;} 8953_LT_EOF 8954 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8955 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8956 _lt_result=$? 8957 if test -s conftest.err && $GREP force_load conftest.err; then 8958 cat conftest.err >&5 8959 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8960 lt_cv_ld_force_load=yes 8961 else 8962 cat conftest.err >&5 8963 fi 8964 rm -f conftest.err libconftest.a conftest conftest.c 8965 rm -rf conftest.dSYM 8966 8967fi 8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8969$as_echo "$lt_cv_ld_force_load" >&6; } 8970 case $host_os in 8971 rhapsody* | darwin1.[012]) 8972 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8973 darwin1.*) 8974 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8975 darwin*) # darwin 5.x on 8976 # if running on 10.5 or later, the deployment target defaults 8977 # to the OS version, if on x86, and 10.4, the deployment 8978 # target defaults to 10.4. Don't you love it? 8979 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8980 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8981 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8982 10.[012][,.]*) 8983 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8984 10.*) 8985 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8986 esac 8987 ;; 8988 esac 8989 if test yes = "$lt_cv_apple_cc_single_mod"; then 8990 _lt_dar_single_mod='$single_module' 8991 fi 8992 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8993 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8994 else 8995 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8996 fi 8997 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8998 _lt_dsymutil='~$DSYMUTIL $lib || :' 8999 else 9000 _lt_dsymutil= 9001 fi 9002 ;; 9003 esac 9004 9005# func_munge_path_list VARIABLE PATH 9006# ----------------------------------- 9007# VARIABLE is name of variable containing _space_ separated list of 9008# directories to be munged by the contents of PATH, which is string 9009# having a format: 9010# "DIR[:DIR]:" 9011# string "DIR[ DIR]" will be prepended to VARIABLE 9012# ":DIR[:DIR]" 9013# string "DIR[ DIR]" will be appended to VARIABLE 9014# "DIRP[:DIRP]::[DIRA:]DIRA" 9015# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9016# "DIRA[ DIRA]" will be appended to VARIABLE 9017# "DIR[:DIR]" 9018# VARIABLE will be replaced by "DIR[ DIR]" 9019func_munge_path_list () 9020{ 9021 case x$2 in 9022 x) 9023 ;; 9024 *:) 9025 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9026 ;; 9027 x:*) 9028 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9029 ;; 9030 *::*) 9031 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9032 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9033 ;; 9034 *) 9035 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9036 ;; 9037 esac 9038} 9039 9040for ac_header in dlfcn.h 9041do : 9042 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9043" 9044if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9045 cat >>confdefs.h <<_ACEOF 9046#define HAVE_DLFCN_H 1 9047_ACEOF 9048 9049fi 9050 9051done 9052 9053 9054 9055 9056func_stripname_cnf () 9057{ 9058 case $2 in 9059 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9060 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9061 esac 9062} # func_stripname_cnf 9063 9064 9065 9066 9067 9068# Set options 9069 9070 9071 9072 enable_dlopen=no 9073 9074 9075 enable_win32_dll=no 9076 9077 9078 # Check whether --enable-shared was given. 9079if test "${enable_shared+set}" = set; then : 9080 enableval=$enable_shared; p=${PACKAGE-default} 9081 case $enableval in 9082 yes) enable_shared=yes ;; 9083 no) enable_shared=no ;; 9084 *) 9085 enable_shared=no 9086 # Look at the argument we got. We use all the common list separators. 9087 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9088 for pkg in $enableval; do 9089 IFS=$lt_save_ifs 9090 if test "X$pkg" = "X$p"; then 9091 enable_shared=yes 9092 fi 9093 done 9094 IFS=$lt_save_ifs 9095 ;; 9096 esac 9097else 9098 enable_shared=yes 9099fi 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111# Check whether --with-pic was given. 9112if test "${with_pic+set}" = set; then : 9113 withval=$with_pic; lt_p=${PACKAGE-default} 9114 case $withval in 9115 yes|no) pic_mode=$withval ;; 9116 *) 9117 pic_mode=default 9118 # Look at the argument we got. We use all the common list separators. 9119 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9120 for lt_pkg in $withval; do 9121 IFS=$lt_save_ifs 9122 if test "X$lt_pkg" = "X$lt_p"; then 9123 pic_mode=yes 9124 fi 9125 done 9126 IFS=$lt_save_ifs 9127 ;; 9128 esac 9129else 9130 pic_mode=default 9131fi 9132 9133 9134 9135 9136 9137 9138 9139 9140 # Check whether --enable-fast-install was given. 9141if test "${enable_fast_install+set}" = set; then : 9142 enableval=$enable_fast_install; p=${PACKAGE-default} 9143 case $enableval in 9144 yes) enable_fast_install=yes ;; 9145 no) enable_fast_install=no ;; 9146 *) 9147 enable_fast_install=no 9148 # Look at the argument we got. We use all the common list separators. 9149 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9150 for pkg in $enableval; do 9151 IFS=$lt_save_ifs 9152 if test "X$pkg" = "X$p"; then 9153 enable_fast_install=yes 9154 fi 9155 done 9156 IFS=$lt_save_ifs 9157 ;; 9158 esac 9159else 9160 enable_fast_install=yes 9161fi 9162 9163 9164 9165 9166 9167 9168 9169 9170 shared_archive_member_spec= 9171case $host,$enable_shared in 9172power*-*-aix[5-9]*,yes) 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9174$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9175 9176# Check whether --with-aix-soname was given. 9177if test "${with_aix_soname+set}" = set; then : 9178 withval=$with_aix_soname; case $withval in 9179 aix|svr4|both) 9180 ;; 9181 *) 9182 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9183 ;; 9184 esac 9185 lt_cv_with_aix_soname=$with_aix_soname 9186else 9187 if ${lt_cv_with_aix_soname+:} false; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 lt_cv_with_aix_soname=aix 9191fi 9192 9193 with_aix_soname=$lt_cv_with_aix_soname 9194fi 9195 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9197$as_echo "$with_aix_soname" >&6; } 9198 if test aix != "$with_aix_soname"; then 9199 # For the AIX way of multilib, we name the shared archive member 9200 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9201 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9202 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9203 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9204 if test 64 = "${OBJECT_MODE-32}"; then 9205 shared_archive_member_spec=shr_64 9206 else 9207 shared_archive_member_spec=shr 9208 fi 9209 fi 9210 ;; 9211*) 9212 with_aix_soname=aix 9213 ;; 9214esac 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225# This can be used to rebuild libtool when needed 9226LIBTOOL_DEPS=$ltmain 9227 9228# Always use our own libtool. 9229LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260test -z "$LN_S" && LN_S="ln -s" 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275if test -n "${ZSH_VERSION+set}"; then 9276 setopt NO_GLOB_SUBST 9277fi 9278 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9280$as_echo_n "checking for objdir... " >&6; } 9281if ${lt_cv_objdir+:} false; then : 9282 $as_echo_n "(cached) " >&6 9283else 9284 rm -f .libs 2>/dev/null 9285mkdir .libs 2>/dev/null 9286if test -d .libs; then 9287 lt_cv_objdir=.libs 9288else 9289 # MS-DOS does not allow filenames that begin with a dot. 9290 lt_cv_objdir=_libs 9291fi 9292rmdir .libs 2>/dev/null 9293fi 9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9295$as_echo "$lt_cv_objdir" >&6; } 9296objdir=$lt_cv_objdir 9297 9298 9299 9300 9301 9302cat >>confdefs.h <<_ACEOF 9303#define LT_OBJDIR "$lt_cv_objdir/" 9304_ACEOF 9305 9306 9307 9308 9309case $host_os in 9310aix3*) 9311 # AIX sometimes has problems with the GCC collect2 program. For some 9312 # reason, if we set the COLLECT_NAMES environment variable, the problems 9313 # vanish in a puff of smoke. 9314 if test set != "${COLLECT_NAMES+set}"; then 9315 COLLECT_NAMES= 9316 export COLLECT_NAMES 9317 fi 9318 ;; 9319esac 9320 9321# Global variables: 9322ofile=libtool 9323can_build_shared=yes 9324 9325# All known linkers require a '.a' archive for static linking (except MSVC and 9326# ICC, which need '.lib'). 9327libext=a 9328 9329with_gnu_ld=$lt_cv_prog_gnu_ld 9330 9331old_CC=$CC 9332old_CFLAGS=$CFLAGS 9333 9334# Set sane defaults for various variables 9335test -z "$CC" && CC=cc 9336test -z "$LTCC" && LTCC=$CC 9337test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9338test -z "$LD" && LD=ld 9339test -z "$ac_objext" && ac_objext=o 9340 9341func_cc_basename $compiler 9342cc_basename=$func_cc_basename_result 9343 9344 9345# Only perform the check for file, if the check method requires it 9346test -z "$MAGIC_CMD" && MAGIC_CMD=file 9347case $deplibs_check_method in 9348file_magic*) 9349 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9351$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9352if ${lt_cv_path_MAGIC_CMD+:} false; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 case $MAGIC_CMD in 9356[\\/*] | ?:[\\/]*) 9357 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9358 ;; 9359*) 9360 lt_save_MAGIC_CMD=$MAGIC_CMD 9361 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9363 for ac_dir in $ac_dummy; do 9364 IFS=$lt_save_ifs 9365 test -z "$ac_dir" && ac_dir=. 9366 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9367 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9368 if test -n "$file_magic_test_file"; then 9369 case $deplibs_check_method in 9370 "file_magic "*) 9371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9372 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9374 $EGREP "$file_magic_regex" > /dev/null; then 9375 : 9376 else 9377 cat <<_LT_EOF 1>&2 9378 9379*** Warning: the command libtool uses to detect shared libraries, 9380*** $file_magic_cmd, produces output that libtool cannot recognize. 9381*** The result is that libtool may fail to recognize shared libraries 9382*** as such. This will affect the creation of libtool libraries that 9383*** depend on shared libraries, but programs linked with such libtool 9384*** libraries will work regardless of this problem. Nevertheless, you 9385*** may want to report the problem to your system manager and/or to 9386*** bug-libtool@gnu.org 9387 9388_LT_EOF 9389 fi ;; 9390 esac 9391 fi 9392 break 9393 fi 9394 done 9395 IFS=$lt_save_ifs 9396 MAGIC_CMD=$lt_save_MAGIC_CMD 9397 ;; 9398esac 9399fi 9400 9401MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9402if test -n "$MAGIC_CMD"; then 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9404$as_echo "$MAGIC_CMD" >&6; } 9405else 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9407$as_echo "no" >&6; } 9408fi 9409 9410 9411 9412 9413 9414if test -z "$lt_cv_path_MAGIC_CMD"; then 9415 if test -n "$ac_tool_prefix"; then 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9417$as_echo_n "checking for file... " >&6; } 9418if ${lt_cv_path_MAGIC_CMD+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420else 9421 case $MAGIC_CMD in 9422[\\/*] | ?:[\\/]*) 9423 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9424 ;; 9425*) 9426 lt_save_MAGIC_CMD=$MAGIC_CMD 9427 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9429 for ac_dir in $ac_dummy; do 9430 IFS=$lt_save_ifs 9431 test -z "$ac_dir" && ac_dir=. 9432 if test -f "$ac_dir/file"; then 9433 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9434 if test -n "$file_magic_test_file"; then 9435 case $deplibs_check_method in 9436 "file_magic "*) 9437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9438 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9440 $EGREP "$file_magic_regex" > /dev/null; then 9441 : 9442 else 9443 cat <<_LT_EOF 1>&2 9444 9445*** Warning: the command libtool uses to detect shared libraries, 9446*** $file_magic_cmd, produces output that libtool cannot recognize. 9447*** The result is that libtool may fail to recognize shared libraries 9448*** as such. This will affect the creation of libtool libraries that 9449*** depend on shared libraries, but programs linked with such libtool 9450*** libraries will work regardless of this problem. Nevertheless, you 9451*** may want to report the problem to your system manager and/or to 9452*** bug-libtool@gnu.org 9453 9454_LT_EOF 9455 fi ;; 9456 esac 9457 fi 9458 break 9459 fi 9460 done 9461 IFS=$lt_save_ifs 9462 MAGIC_CMD=$lt_save_MAGIC_CMD 9463 ;; 9464esac 9465fi 9466 9467MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9468if test -n "$MAGIC_CMD"; then 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9470$as_echo "$MAGIC_CMD" >&6; } 9471else 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9473$as_echo "no" >&6; } 9474fi 9475 9476 9477 else 9478 MAGIC_CMD=: 9479 fi 9480fi 9481 9482 fi 9483 ;; 9484esac 9485 9486# Use C for the default configuration in the libtool script 9487 9488lt_save_CC=$CC 9489ac_ext=c 9490ac_cpp='$CPP $CPPFLAGS' 9491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9493ac_compiler_gnu=$ac_cv_c_compiler_gnu 9494 9495 9496# Source file extension for C test sources. 9497ac_ext=c 9498 9499# Object file extension for compiled C test sources. 9500objext=o 9501objext=$objext 9502 9503# Code to be used in simple compile tests 9504lt_simple_compile_test_code="int some_variable = 0;" 9505 9506# Code to be used in simple link tests 9507lt_simple_link_test_code='int main(){return(0);}' 9508 9509 9510 9511 9512 9513 9514 9515# If no C compiler was specified, use CC. 9516LTCC=${LTCC-"$CC"} 9517 9518# If no C compiler flags were specified, use CFLAGS. 9519LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9520 9521# Allow CC to be a program name with arguments. 9522compiler=$CC 9523 9524# Save the default compiler, since it gets overwritten when the other 9525# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9526compiler_DEFAULT=$CC 9527 9528# save warnings/boilerplate of simple test code 9529ac_outfile=conftest.$ac_objext 9530echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9531eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9532_lt_compiler_boilerplate=`cat conftest.err` 9533$RM conftest* 9534 9535ac_outfile=conftest.$ac_objext 9536echo "$lt_simple_link_test_code" >conftest.$ac_ext 9537eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9538_lt_linker_boilerplate=`cat conftest.err` 9539$RM -r conftest* 9540 9541 9542if test -n "$compiler"; then 9543 9544lt_prog_compiler_no_builtin_flag= 9545 9546if test yes = "$GCC"; then 9547 case $cc_basename in 9548 nvcc*) 9549 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9550 *) 9551 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9552 esac 9553 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9555$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9556if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 lt_cv_prog_compiler_rtti_exceptions=no 9560 ac_outfile=conftest.$ac_objext 9561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9562 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9563 # Insert the option either (1) after the last *FLAGS variable, or 9564 # (2) before a word containing "conftest.", or (3) at the end. 9565 # Note that $ac_compile itself does not contain backslashes and begins 9566 # with a dollar sign (not a hyphen), so the echo should work correctly. 9567 # The option is referenced via a variable to avoid confusing sed. 9568 lt_compile=`echo "$ac_compile" | $SED \ 9569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9571 -e 's:$: $lt_compiler_flag:'` 9572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9573 (eval "$lt_compile" 2>conftest.err) 9574 ac_status=$? 9575 cat conftest.err >&5 9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9577 if (exit $ac_status) && test -s "$ac_outfile"; then 9578 # The compiler can only warn and ignore the option if not recognized 9579 # So say no if there are warnings other than the usual output. 9580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9582 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9583 lt_cv_prog_compiler_rtti_exceptions=yes 9584 fi 9585 fi 9586 $RM conftest* 9587 9588fi 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9590$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9591 9592if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9593 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9594else 9595 : 9596fi 9597 9598fi 9599 9600 9601 9602 9603 9604 9605 lt_prog_compiler_wl= 9606lt_prog_compiler_pic= 9607lt_prog_compiler_static= 9608 9609 9610 if test yes = "$GCC"; then 9611 lt_prog_compiler_wl='-Wl,' 9612 lt_prog_compiler_static='-static' 9613 9614 case $host_os in 9615 aix*) 9616 # All AIX code is PIC. 9617 if test ia64 = "$host_cpu"; then 9618 # AIX 5 now supports IA64 processor 9619 lt_prog_compiler_static='-Bstatic' 9620 fi 9621 lt_prog_compiler_pic='-fPIC' 9622 ;; 9623 9624 amigaos*) 9625 case $host_cpu in 9626 powerpc) 9627 # see comment about AmigaOS4 .so support 9628 lt_prog_compiler_pic='-fPIC' 9629 ;; 9630 m68k) 9631 # FIXME: we need at least 68020 code to build shared libraries, but 9632 # adding the '-m68020' flag to GCC prevents building anything better, 9633 # like '-m68040'. 9634 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9635 ;; 9636 esac 9637 ;; 9638 9639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9640 # PIC is the default for these OSes. 9641 ;; 9642 9643 mingw* | cygwin* | pw32* | os2* | cegcc*) 9644 # This hack is so that the source file can tell whether it is being 9645 # built for inclusion in a dll (and should export symbols for example). 9646 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9647 # (--disable-auto-import) libraries 9648 lt_prog_compiler_pic='-DDLL_EXPORT' 9649 case $host_os in 9650 os2*) 9651 lt_prog_compiler_static='$wl-static' 9652 ;; 9653 esac 9654 ;; 9655 9656 darwin* | rhapsody*) 9657 # PIC is the default on this platform 9658 # Common symbols not allowed in MH_DYLIB files 9659 lt_prog_compiler_pic='-fno-common' 9660 ;; 9661 9662 haiku*) 9663 # PIC is the default for Haiku. 9664 # The "-static" flag exists, but is broken. 9665 lt_prog_compiler_static= 9666 ;; 9667 9668 hpux*) 9669 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9670 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9671 # sets the default TLS model and affects inlining. 9672 case $host_cpu in 9673 hppa*64*) 9674 # +Z the default 9675 ;; 9676 *) 9677 lt_prog_compiler_pic='-fPIC' 9678 ;; 9679 esac 9680 ;; 9681 9682 interix[3-9]*) 9683 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9684 # Instead, we relocate shared libraries at runtime. 9685 ;; 9686 9687 msdosdjgpp*) 9688 # Just because we use GCC doesn't mean we suddenly get shared libraries 9689 # on systems that don't support them. 9690 lt_prog_compiler_can_build_shared=no 9691 enable_shared=no 9692 ;; 9693 9694 *nto* | *qnx*) 9695 # QNX uses GNU C++, but need to define -shared option too, otherwise 9696 # it will coredump. 9697 lt_prog_compiler_pic='-fPIC -shared' 9698 ;; 9699 9700 sysv4*MP*) 9701 if test -d /usr/nec; then 9702 lt_prog_compiler_pic=-Kconform_pic 9703 fi 9704 ;; 9705 9706 *) 9707 lt_prog_compiler_pic='-fPIC' 9708 ;; 9709 esac 9710 9711 case $cc_basename in 9712 nvcc*) # Cuda Compiler Driver 2.2 9713 lt_prog_compiler_wl='-Xlinker ' 9714 if test -n "$lt_prog_compiler_pic"; then 9715 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9716 fi 9717 ;; 9718 esac 9719 else 9720 # PORTME Check for flag to pass linker flags through the system compiler. 9721 case $host_os in 9722 aix*) 9723 lt_prog_compiler_wl='-Wl,' 9724 if test ia64 = "$host_cpu"; then 9725 # AIX 5 now supports IA64 processor 9726 lt_prog_compiler_static='-Bstatic' 9727 else 9728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9729 fi 9730 ;; 9731 9732 darwin* | rhapsody*) 9733 # PIC is the default on this platform 9734 # Common symbols not allowed in MH_DYLIB files 9735 lt_prog_compiler_pic='-fno-common' 9736 case $cc_basename in 9737 nagfor*) 9738 # NAG Fortran compiler 9739 lt_prog_compiler_wl='-Wl,-Wl,,' 9740 lt_prog_compiler_pic='-PIC' 9741 lt_prog_compiler_static='-Bstatic' 9742 ;; 9743 esac 9744 ;; 9745 9746 mingw* | cygwin* | pw32* | os2* | cegcc*) 9747 # This hack is so that the source file can tell whether it is being 9748 # built for inclusion in a dll (and should export symbols for example). 9749 lt_prog_compiler_pic='-DDLL_EXPORT' 9750 case $host_os in 9751 os2*) 9752 lt_prog_compiler_static='$wl-static' 9753 ;; 9754 esac 9755 ;; 9756 9757 hpux9* | hpux10* | hpux11*) 9758 lt_prog_compiler_wl='-Wl,' 9759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9760 # not for PA HP-UX. 9761 case $host_cpu in 9762 hppa*64*|ia64*) 9763 # +Z the default 9764 ;; 9765 *) 9766 lt_prog_compiler_pic='+Z' 9767 ;; 9768 esac 9769 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9770 lt_prog_compiler_static='$wl-a ${wl}archive' 9771 ;; 9772 9773 irix5* | irix6* | nonstopux*) 9774 lt_prog_compiler_wl='-Wl,' 9775 # PIC (with -KPIC) is the default. 9776 lt_prog_compiler_static='-non_shared' 9777 ;; 9778 9779 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9780 case $cc_basename in 9781 # old Intel for x86_64, which still supported -KPIC. 9782 ecc*) 9783 lt_prog_compiler_wl='-Wl,' 9784 lt_prog_compiler_pic='-KPIC' 9785 lt_prog_compiler_static='-static' 9786 ;; 9787 # icc used to be incompatible with GCC. 9788 # ICC 10 doesn't accept -KPIC any more. 9789 icc* | ifort*) 9790 lt_prog_compiler_wl='-Wl,' 9791 lt_prog_compiler_pic='-fPIC' 9792 lt_prog_compiler_static='-static' 9793 ;; 9794 # Lahey Fortran 8.1. 9795 lf95*) 9796 lt_prog_compiler_wl='-Wl,' 9797 lt_prog_compiler_pic='--shared' 9798 lt_prog_compiler_static='--static' 9799 ;; 9800 nagfor*) 9801 # NAG Fortran compiler 9802 lt_prog_compiler_wl='-Wl,-Wl,,' 9803 lt_prog_compiler_pic='-PIC' 9804 lt_prog_compiler_static='-Bstatic' 9805 ;; 9806 tcc*) 9807 # Fabrice Bellard et al's Tiny C Compiler 9808 lt_prog_compiler_wl='-Wl,' 9809 lt_prog_compiler_pic='-fPIC' 9810 lt_prog_compiler_static='-static' 9811 ;; 9812 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9813 # Portland Group compilers (*not* the Pentium gcc compiler, 9814 # which looks to be a dead project) 9815 lt_prog_compiler_wl='-Wl,' 9816 lt_prog_compiler_pic='-fpic' 9817 lt_prog_compiler_static='-Bstatic' 9818 ;; 9819 ccc*) 9820 lt_prog_compiler_wl='-Wl,' 9821 # All Alpha code is PIC. 9822 lt_prog_compiler_static='-non_shared' 9823 ;; 9824 xl* | bgxl* | bgf* | mpixl*) 9825 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9826 lt_prog_compiler_wl='-Wl,' 9827 lt_prog_compiler_pic='-qpic' 9828 lt_prog_compiler_static='-qstaticlink' 9829 ;; 9830 *) 9831 case `$CC -V 2>&1 | sed 5q` in 9832 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9833 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9834 lt_prog_compiler_pic='-KPIC' 9835 lt_prog_compiler_static='-Bstatic' 9836 lt_prog_compiler_wl='' 9837 ;; 9838 *Sun\ F* | *Sun*Fortran*) 9839 lt_prog_compiler_pic='-KPIC' 9840 lt_prog_compiler_static='-Bstatic' 9841 lt_prog_compiler_wl='-Qoption ld ' 9842 ;; 9843 *Sun\ C*) 9844 # Sun C 5.9 9845 lt_prog_compiler_pic='-KPIC' 9846 lt_prog_compiler_static='-Bstatic' 9847 lt_prog_compiler_wl='-Wl,' 9848 ;; 9849 *Intel*\ [CF]*Compiler*) 9850 lt_prog_compiler_wl='-Wl,' 9851 lt_prog_compiler_pic='-fPIC' 9852 lt_prog_compiler_static='-static' 9853 ;; 9854 *Portland\ Group*) 9855 lt_prog_compiler_wl='-Wl,' 9856 lt_prog_compiler_pic='-fpic' 9857 lt_prog_compiler_static='-Bstatic' 9858 ;; 9859 esac 9860 ;; 9861 esac 9862 ;; 9863 9864 newsos6) 9865 lt_prog_compiler_pic='-KPIC' 9866 lt_prog_compiler_static='-Bstatic' 9867 ;; 9868 9869 *nto* | *qnx*) 9870 # QNX uses GNU C++, but need to define -shared option too, otherwise 9871 # it will coredump. 9872 lt_prog_compiler_pic='-fPIC -shared' 9873 ;; 9874 9875 osf3* | osf4* | osf5*) 9876 lt_prog_compiler_wl='-Wl,' 9877 # All OSF/1 code is PIC. 9878 lt_prog_compiler_static='-non_shared' 9879 ;; 9880 9881 rdos*) 9882 lt_prog_compiler_static='-non_shared' 9883 ;; 9884 9885 solaris*) 9886 lt_prog_compiler_pic='-KPIC' 9887 lt_prog_compiler_static='-Bstatic' 9888 case $cc_basename in 9889 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9890 lt_prog_compiler_wl='-Qoption ld ';; 9891 *) 9892 lt_prog_compiler_wl='-Wl,';; 9893 esac 9894 ;; 9895 9896 sunos4*) 9897 lt_prog_compiler_wl='-Qoption ld ' 9898 lt_prog_compiler_pic='-PIC' 9899 lt_prog_compiler_static='-Bstatic' 9900 ;; 9901 9902 sysv4 | sysv4.2uw2* | sysv4.3*) 9903 lt_prog_compiler_wl='-Wl,' 9904 lt_prog_compiler_pic='-KPIC' 9905 lt_prog_compiler_static='-Bstatic' 9906 ;; 9907 9908 sysv4*MP*) 9909 if test -d /usr/nec; then 9910 lt_prog_compiler_pic='-Kconform_pic' 9911 lt_prog_compiler_static='-Bstatic' 9912 fi 9913 ;; 9914 9915 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9916 lt_prog_compiler_wl='-Wl,' 9917 lt_prog_compiler_pic='-KPIC' 9918 lt_prog_compiler_static='-Bstatic' 9919 ;; 9920 9921 unicos*) 9922 lt_prog_compiler_wl='-Wl,' 9923 lt_prog_compiler_can_build_shared=no 9924 ;; 9925 9926 uts4*) 9927 lt_prog_compiler_pic='-pic' 9928 lt_prog_compiler_static='-Bstatic' 9929 ;; 9930 9931 *) 9932 lt_prog_compiler_can_build_shared=no 9933 ;; 9934 esac 9935 fi 9936 9937case $host_os in 9938 # For platforms that do not support PIC, -DPIC is meaningless: 9939 *djgpp*) 9940 lt_prog_compiler_pic= 9941 ;; 9942 *) 9943 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9944 ;; 9945esac 9946 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9948$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9949if ${lt_cv_prog_compiler_pic+:} false; then : 9950 $as_echo_n "(cached) " >&6 9951else 9952 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9953fi 9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9955$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9956lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9957 9958# 9959# Check to make sure the PIC flag actually works. 9960# 9961if test -n "$lt_prog_compiler_pic"; then 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9963$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9964if ${lt_cv_prog_compiler_pic_works+:} false; then : 9965 $as_echo_n "(cached) " >&6 9966else 9967 lt_cv_prog_compiler_pic_works=no 9968 ac_outfile=conftest.$ac_objext 9969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9970 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9971 # Insert the option either (1) after the last *FLAGS variable, or 9972 # (2) before a word containing "conftest.", or (3) at the end. 9973 # Note that $ac_compile itself does not contain backslashes and begins 9974 # with a dollar sign (not a hyphen), so the echo should work correctly. 9975 # The option is referenced via a variable to avoid confusing sed. 9976 lt_compile=`echo "$ac_compile" | $SED \ 9977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9979 -e 's:$: $lt_compiler_flag:'` 9980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9981 (eval "$lt_compile" 2>conftest.err) 9982 ac_status=$? 9983 cat conftest.err >&5 9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9985 if (exit $ac_status) && test -s "$ac_outfile"; then 9986 # The compiler can only warn and ignore the option if not recognized 9987 # So say no if there are warnings other than the usual output. 9988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9991 lt_cv_prog_compiler_pic_works=yes 9992 fi 9993 fi 9994 $RM conftest* 9995 9996fi 9997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9998$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9999 10000if test yes = "$lt_cv_prog_compiler_pic_works"; then 10001 case $lt_prog_compiler_pic in 10002 "" | " "*) ;; 10003 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10004 esac 10005else 10006 lt_prog_compiler_pic= 10007 lt_prog_compiler_can_build_shared=no 10008fi 10009 10010fi 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022# 10023# Check to make sure the static flag actually works. 10024# 10025wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10027$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10028if ${lt_cv_prog_compiler_static_works+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 lt_cv_prog_compiler_static_works=no 10032 save_LDFLAGS=$LDFLAGS 10033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10034 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10036 # The linker can only warn and ignore the option if not recognized 10037 # So say no if there are warnings 10038 if test -s conftest.err; then 10039 # Append any errors to the config.log. 10040 cat conftest.err 1>&5 10041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10043 if diff conftest.exp conftest.er2 >/dev/null; then 10044 lt_cv_prog_compiler_static_works=yes 10045 fi 10046 else 10047 lt_cv_prog_compiler_static_works=yes 10048 fi 10049 fi 10050 $RM -r conftest* 10051 LDFLAGS=$save_LDFLAGS 10052 10053fi 10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10055$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10056 10057if test yes = "$lt_cv_prog_compiler_static_works"; then 10058 : 10059else 10060 lt_prog_compiler_static= 10061fi 10062 10063 10064 10065 10066 10067 10068 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10070$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10071if ${lt_cv_prog_compiler_c_o+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 lt_cv_prog_compiler_c_o=no 10075 $RM -r conftest 2>/dev/null 10076 mkdir conftest 10077 cd conftest 10078 mkdir out 10079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10080 10081 lt_compiler_flag="-o out/conftest2.$ac_objext" 10082 # Insert the option either (1) after the last *FLAGS variable, or 10083 # (2) before a word containing "conftest.", or (3) at the end. 10084 # Note that $ac_compile itself does not contain backslashes and begins 10085 # with a dollar sign (not a hyphen), so the echo should work correctly. 10086 lt_compile=`echo "$ac_compile" | $SED \ 10087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10089 -e 's:$: $lt_compiler_flag:'` 10090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10091 (eval "$lt_compile" 2>out/conftest.err) 10092 ac_status=$? 10093 cat out/conftest.err >&5 10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10095 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10096 then 10097 # The compiler can only warn and ignore the option if not recognized 10098 # So say no if there are warnings 10099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10102 lt_cv_prog_compiler_c_o=yes 10103 fi 10104 fi 10105 chmod u+w . 2>&5 10106 $RM conftest* 10107 # SGI C++ compiler will create directory out/ii_files/ for 10108 # template instantiation 10109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10110 $RM out/* && rmdir out 10111 cd .. 10112 $RM -r conftest 10113 $RM conftest* 10114 10115fi 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10117$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10118 10119 10120 10121 10122 10123 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10125$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10126if ${lt_cv_prog_compiler_c_o+:} false; then : 10127 $as_echo_n "(cached) " >&6 10128else 10129 lt_cv_prog_compiler_c_o=no 10130 $RM -r conftest 2>/dev/null 10131 mkdir conftest 10132 cd conftest 10133 mkdir out 10134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10135 10136 lt_compiler_flag="-o out/conftest2.$ac_objext" 10137 # Insert the option either (1) after the last *FLAGS variable, or 10138 # (2) before a word containing "conftest.", or (3) at the end. 10139 # Note that $ac_compile itself does not contain backslashes and begins 10140 # with a dollar sign (not a hyphen), so the echo should work correctly. 10141 lt_compile=`echo "$ac_compile" | $SED \ 10142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10144 -e 's:$: $lt_compiler_flag:'` 10145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10146 (eval "$lt_compile" 2>out/conftest.err) 10147 ac_status=$? 10148 cat out/conftest.err >&5 10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10150 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10151 then 10152 # The compiler can only warn and ignore the option if not recognized 10153 # So say no if there are warnings 10154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10157 lt_cv_prog_compiler_c_o=yes 10158 fi 10159 fi 10160 chmod u+w . 2>&5 10161 $RM conftest* 10162 # SGI C++ compiler will create directory out/ii_files/ for 10163 # template instantiation 10164 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10165 $RM out/* && rmdir out 10166 cd .. 10167 $RM -r conftest 10168 $RM conftest* 10169 10170fi 10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10172$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10173 10174 10175 10176 10177hard_links=nottested 10178if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10179 # do not overwrite the value of need_locks provided by the user 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10181$as_echo_n "checking if we can lock with hard links... " >&6; } 10182 hard_links=yes 10183 $RM conftest* 10184 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10185 touch conftest.a 10186 ln conftest.a conftest.b 2>&5 || hard_links=no 10187 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10189$as_echo "$hard_links" >&6; } 10190 if test no = "$hard_links"; then 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10192$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10193 need_locks=warn 10194 fi 10195else 10196 need_locks=no 10197fi 10198 10199 10200 10201 10202 10203 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10205$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10206 10207 runpath_var= 10208 allow_undefined_flag= 10209 always_export_symbols=no 10210 archive_cmds= 10211 archive_expsym_cmds= 10212 compiler_needs_object=no 10213 enable_shared_with_static_runtimes=no 10214 export_dynamic_flag_spec= 10215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10216 hardcode_automatic=no 10217 hardcode_direct=no 10218 hardcode_direct_absolute=no 10219 hardcode_libdir_flag_spec= 10220 hardcode_libdir_separator= 10221 hardcode_minus_L=no 10222 hardcode_shlibpath_var=unsupported 10223 inherit_rpath=no 10224 link_all_deplibs=unknown 10225 module_cmds= 10226 module_expsym_cmds= 10227 old_archive_from_new_cmds= 10228 old_archive_from_expsyms_cmds= 10229 thread_safe_flag_spec= 10230 whole_archive_flag_spec= 10231 # include_expsyms should be a list of space-separated symbols to be *always* 10232 # included in the symbol list 10233 include_expsyms= 10234 # exclude_expsyms can be an extended regexp of symbols to exclude 10235 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10236 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10237 # as well as any symbol that contains 'd'. 10238 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10239 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10240 # platforms (ab)use it in PIC code, but their linkers get confused if 10241 # the symbol is explicitly referenced. Since portable code cannot 10242 # rely on this symbol name, it's probably fine to never include it in 10243 # preloaded symbol tables. 10244 # Exclude shared library initialization/finalization symbols. 10245 extract_expsyms_cmds= 10246 10247 case $host_os in 10248 cygwin* | mingw* | pw32* | cegcc*) 10249 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10250 # When not using gcc, we currently assume that we are using 10251 # Microsoft Visual C++ or Intel C++ Compiler. 10252 if test yes != "$GCC"; then 10253 with_gnu_ld=no 10254 fi 10255 ;; 10256 interix*) 10257 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10258 with_gnu_ld=yes 10259 ;; 10260 openbsd* | bitrig*) 10261 with_gnu_ld=no 10262 ;; 10263 esac 10264 10265 ld_shlibs=yes 10266 10267 # On some targets, GNU ld is compatible enough with the native linker 10268 # that we're better off using the native interface for both. 10269 lt_use_gnu_ld_interface=no 10270 if test yes = "$with_gnu_ld"; then 10271 case $host_os in 10272 aix*) 10273 # The AIX port of GNU ld has always aspired to compatibility 10274 # with the native linker. However, as the warning in the GNU ld 10275 # block says, versions before 2.19.5* couldn't really create working 10276 # shared libraries, regardless of the interface used. 10277 case `$LD -v 2>&1` in 10278 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10279 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10280 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10281 *) 10282 lt_use_gnu_ld_interface=yes 10283 ;; 10284 esac 10285 ;; 10286 *) 10287 lt_use_gnu_ld_interface=yes 10288 ;; 10289 esac 10290 fi 10291 10292 if test yes = "$lt_use_gnu_ld_interface"; then 10293 # If archive_cmds runs LD, not CC, wlarc should be empty 10294 wlarc='$wl' 10295 10296 # Set some defaults for GNU ld with shared library support. These 10297 # are reset later if shared libraries are not supported. Putting them 10298 # here allows them to be overridden if necessary. 10299 runpath_var=LD_RUN_PATH 10300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10301 export_dynamic_flag_spec='$wl--export-dynamic' 10302 # ancient GNU ld didn't support --whole-archive et. al. 10303 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10304 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10305 else 10306 whole_archive_flag_spec= 10307 fi 10308 supports_anon_versioning=no 10309 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10310 *GNU\ gold*) supports_anon_versioning=yes ;; 10311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10314 *\ 2.11.*) ;; # other 2.11 versions 10315 *) supports_anon_versioning=yes ;; 10316 esac 10317 10318 # See if GNU ld supports shared libraries. 10319 case $host_os in 10320 aix[3-9]*) 10321 # On AIX/PPC, the GNU linker is very broken 10322 if test ia64 != "$host_cpu"; then 10323 ld_shlibs=no 10324 cat <<_LT_EOF 1>&2 10325 10326*** Warning: the GNU linker, at least up to release 2.19, is reported 10327*** to be unable to reliably create shared libraries on AIX. 10328*** Therefore, libtool is disabling shared libraries support. If you 10329*** really care for shared libraries, you may want to install binutils 10330*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10331*** You will then need to restart the configuration process. 10332 10333_LT_EOF 10334 fi 10335 ;; 10336 10337 amigaos*) 10338 case $host_cpu in 10339 powerpc) 10340 # see comment about AmigaOS4 .so support 10341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10342 archive_expsym_cmds='' 10343 ;; 10344 m68k) 10345 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)' 10346 hardcode_libdir_flag_spec='-L$libdir' 10347 hardcode_minus_L=yes 10348 ;; 10349 esac 10350 ;; 10351 10352 beos*) 10353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10354 allow_undefined_flag=unsupported 10355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10356 # support --undefined. This deserves some investigation. FIXME 10357 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10358 else 10359 ld_shlibs=no 10360 fi 10361 ;; 10362 10363 cygwin* | mingw* | pw32* | cegcc*) 10364 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10365 # as there is no search path for DLLs. 10366 hardcode_libdir_flag_spec='-L$libdir' 10367 export_dynamic_flag_spec='$wl--export-all-symbols' 10368 allow_undefined_flag=unsupported 10369 always_export_symbols=no 10370 enable_shared_with_static_runtimes=yes 10371 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' 10372 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10373 10374 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10376 # If the export-symbols file already is a .def file, use it as 10377 # is; otherwise, prepend EXPORTS... 10378 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10379 cp $export_symbols $output_objdir/$soname.def; 10380 else 10381 echo EXPORTS > $output_objdir/$soname.def; 10382 cat $export_symbols >> $output_objdir/$soname.def; 10383 fi~ 10384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10385 else 10386 ld_shlibs=no 10387 fi 10388 ;; 10389 10390 haiku*) 10391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10392 link_all_deplibs=yes 10393 ;; 10394 10395 os2*) 10396 hardcode_libdir_flag_spec='-L$libdir' 10397 hardcode_minus_L=yes 10398 allow_undefined_flag=unsupported 10399 shrext_cmds=.dll 10400 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10401 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10402 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10403 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10404 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10405 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10406 emximp -o $lib $output_objdir/$libname.def' 10407 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10408 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10409 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10410 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10411 prefix_cmds="$SED"~ 10412 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10413 prefix_cmds="$prefix_cmds -e 1d"; 10414 fi~ 10415 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10416 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10417 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10418 emximp -o $lib $output_objdir/$libname.def' 10419 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10420 enable_shared_with_static_runtimes=yes 10421 file_list_spec='@' 10422 ;; 10423 10424 interix[3-9]*) 10425 hardcode_direct=no 10426 hardcode_shlibpath_var=no 10427 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10428 export_dynamic_flag_spec='$wl-E' 10429 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10430 # Instead, shared libraries are loaded at an image base (0x10000000 by 10431 # default) and relocated if they conflict, which is a slow very memory 10432 # consuming and fragmenting process. To avoid this, we pick a random, 10433 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10434 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10435 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10436 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' 10437 ;; 10438 10439 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10440 tmp_diet=no 10441 if test linux-dietlibc = "$host_os"; then 10442 case $cc_basename in 10443 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10444 esac 10445 fi 10446 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10447 && test no = "$tmp_diet" 10448 then 10449 tmp_addflag=' $pic_flag' 10450 tmp_sharedflag='-shared' 10451 case $cc_basename,$host_cpu in 10452 pgcc*) # Portland Group C compiler 10453 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' 10454 tmp_addflag=' $pic_flag' 10455 ;; 10456 pgf77* | pgf90* | pgf95* | pgfortran*) 10457 # Portland Group f77 and f90 compilers 10458 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' 10459 tmp_addflag=' $pic_flag -Mnomain' ;; 10460 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10461 tmp_addflag=' -i_dynamic' ;; 10462 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10463 tmp_addflag=' -i_dynamic -nofor_main' ;; 10464 ifc* | ifort*) # Intel Fortran compiler 10465 tmp_addflag=' -nofor_main' ;; 10466 lf95*) # Lahey Fortran 8.1 10467 whole_archive_flag_spec= 10468 tmp_sharedflag='--shared' ;; 10469 nagfor*) # NAGFOR 5.3 10470 tmp_sharedflag='-Wl,-shared' ;; 10471 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10472 tmp_sharedflag='-qmkshrobj' 10473 tmp_addflag= ;; 10474 nvcc*) # Cuda Compiler Driver 2.2 10475 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' 10476 compiler_needs_object=yes 10477 ;; 10478 esac 10479 case `$CC -V 2>&1 | sed 5q` in 10480 *Sun\ C*) # Sun C 5.9 10481 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' 10482 compiler_needs_object=yes 10483 tmp_sharedflag='-G' ;; 10484 *Sun\ F*) # Sun Fortran 8.3 10485 tmp_sharedflag='-G' ;; 10486 esac 10487 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10488 10489 if test yes = "$supports_anon_versioning"; then 10490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10492 echo "local: *; };" >> $output_objdir/$libname.ver~ 10493 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10494 fi 10495 10496 case $cc_basename in 10497 tcc*) 10498 export_dynamic_flag_spec='-rdynamic' 10499 ;; 10500 xlf* | bgf* | bgxlf* | mpixlf*) 10501 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10502 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10503 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10504 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10505 if test yes = "$supports_anon_versioning"; then 10506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10508 echo "local: *; };" >> $output_objdir/$libname.ver~ 10509 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10510 fi 10511 ;; 10512 esac 10513 else 10514 ld_shlibs=no 10515 fi 10516 ;; 10517 10518 netbsd*) 10519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10520 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10521 wlarc= 10522 else 10523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10524 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10525 fi 10526 ;; 10527 10528 solaris*) 10529 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10530 ld_shlibs=no 10531 cat <<_LT_EOF 1>&2 10532 10533*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10534*** create shared libraries on Solaris systems. Therefore, libtool 10535*** is disabling shared libraries support. We urge you to upgrade GNU 10536*** binutils to release 2.9.1 or newer. Another option is to modify 10537*** your PATH or compiler configuration so that the native linker is 10538*** used, and then restart. 10539 10540_LT_EOF 10541 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10543 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10544 else 10545 ld_shlibs=no 10546 fi 10547 ;; 10548 10549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10550 case `$LD -v 2>&1` in 10551 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10552 ld_shlibs=no 10553 cat <<_LT_EOF 1>&2 10554 10555*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10556*** reliably create shared libraries on SCO systems. Therefore, libtool 10557*** is disabling shared libraries support. We urge you to upgrade GNU 10558*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10559*** your PATH or compiler configuration so that the native linker is 10560*** used, and then restart. 10561 10562_LT_EOF 10563 ;; 10564 *) 10565 # For security reasons, it is highly recommended that you always 10566 # use absolute paths for naming shared libraries, and exclude the 10567 # DT_RUNPATH tag from executables and libraries. But doing so 10568 # requires that you compile everything twice, which is a pain. 10569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10573 else 10574 ld_shlibs=no 10575 fi 10576 ;; 10577 esac 10578 ;; 10579 10580 sunos4*) 10581 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10582 wlarc= 10583 hardcode_direct=yes 10584 hardcode_shlibpath_var=no 10585 ;; 10586 10587 *) 10588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10589 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10590 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10591 else 10592 ld_shlibs=no 10593 fi 10594 ;; 10595 esac 10596 10597 if test no = "$ld_shlibs"; then 10598 runpath_var= 10599 hardcode_libdir_flag_spec= 10600 export_dynamic_flag_spec= 10601 whole_archive_flag_spec= 10602 fi 10603 else 10604 # PORTME fill in a description of your system's linker (not GNU ld) 10605 case $host_os in 10606 aix3*) 10607 allow_undefined_flag=unsupported 10608 always_export_symbols=yes 10609 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' 10610 # Note: this linker hardcodes the directories in LIBPATH if there 10611 # are no directories specified by -L. 10612 hardcode_minus_L=yes 10613 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10614 # Neither direct hardcoding nor static linking is supported with a 10615 # broken collect2. 10616 hardcode_direct=unsupported 10617 fi 10618 ;; 10619 10620 aix[4-9]*) 10621 if test ia64 = "$host_cpu"; then 10622 # On IA64, the linker does run time linking by default, so we don't 10623 # have to do anything special. 10624 aix_use_runtimelinking=no 10625 exp_sym_flag='-Bexport' 10626 no_entry_flag= 10627 else 10628 # If we're using GNU nm, then we don't want the "-C" option. 10629 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10630 # Without the "-l" option, or with the "-B" option, AIX nm treats 10631 # weak defined symbols like other global defined symbols, whereas 10632 # GNU nm marks them as "W". 10633 # While the 'weak' keyword is ignored in the Export File, we need 10634 # it in the Import File for the 'aix-soname' feature, so we have 10635 # to replace the "-B" option with "-P" for AIX nm. 10636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10637 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' 10638 else 10639 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10640 fi 10641 aix_use_runtimelinking=no 10642 10643 # Test if we are trying to use run time linking or normal 10644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10645 # have runtime linking enabled, and use it for executables. 10646 # For shared libraries, we enable/disable runtime linking 10647 # depending on the kind of the shared library created - 10648 # when "with_aix_soname,aix_use_runtimelinking" is: 10649 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10650 # "aix,yes" lib.so shared, rtl:yes, for executables 10651 # lib.a static archive 10652 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10653 # lib.a(lib.so.V) shared, rtl:no, for executables 10654 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10655 # lib.a(lib.so.V) shared, rtl:no 10656 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10657 # lib.a static archive 10658 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10659 for ld_flag in $LDFLAGS; do 10660 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10661 aix_use_runtimelinking=yes 10662 break 10663 fi 10664 done 10665 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10666 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10667 # so we don't have lib.a shared libs to link our executables. 10668 # We have to force runtime linking in this case. 10669 aix_use_runtimelinking=yes 10670 LDFLAGS="$LDFLAGS -Wl,-brtl" 10671 fi 10672 ;; 10673 esac 10674 10675 exp_sym_flag='-bexport' 10676 no_entry_flag='-bnoentry' 10677 fi 10678 10679 # When large executables or shared objects are built, AIX ld can 10680 # have problems creating the table of contents. If linking a library 10681 # or program results in "error TOC overflow" add -mminimal-toc to 10682 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10683 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10684 10685 archive_cmds='' 10686 hardcode_direct=yes 10687 hardcode_direct_absolute=yes 10688 hardcode_libdir_separator=':' 10689 link_all_deplibs=yes 10690 file_list_spec='$wl-f,' 10691 case $with_aix_soname,$aix_use_runtimelinking in 10692 aix,*) ;; # traditional, no import file 10693 svr4,* | *,yes) # use import file 10694 # The Import File defines what to hardcode. 10695 hardcode_direct=no 10696 hardcode_direct_absolute=no 10697 ;; 10698 esac 10699 10700 if test yes = "$GCC"; then 10701 case $host_os in aix4.[012]|aix4.[012].*) 10702 # We only want to do this on AIX 4.2 and lower, the check 10703 # below for broken collect2 doesn't work under 4.3+ 10704 collect2name=`$CC -print-prog-name=collect2` 10705 if test -f "$collect2name" && 10706 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10707 then 10708 # We have reworked collect2 10709 : 10710 else 10711 # We have old collect2 10712 hardcode_direct=unsupported 10713 # It fails to find uninstalled libraries when the uninstalled 10714 # path is not listed in the libpath. Setting hardcode_minus_L 10715 # to unsupported forces relinking 10716 hardcode_minus_L=yes 10717 hardcode_libdir_flag_spec='-L$libdir' 10718 hardcode_libdir_separator= 10719 fi 10720 ;; 10721 esac 10722 shared_flag='-shared' 10723 if test yes = "$aix_use_runtimelinking"; then 10724 shared_flag="$shared_flag "'$wl-G' 10725 fi 10726 # Need to ensure runtime linking is disabled for the traditional 10727 # shared library, or the linker may eventually find shared libraries 10728 # /with/ Import File - we do not want to mix them. 10729 shared_flag_aix='-shared' 10730 shared_flag_svr4='-shared $wl-G' 10731 else 10732 # not using gcc 10733 if test ia64 = "$host_cpu"; then 10734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10735 # chokes on -Wl,-G. The following line is correct: 10736 shared_flag='-G' 10737 else 10738 if test yes = "$aix_use_runtimelinking"; then 10739 shared_flag='$wl-G' 10740 else 10741 shared_flag='$wl-bM:SRE' 10742 fi 10743 shared_flag_aix='$wl-bM:SRE' 10744 shared_flag_svr4='$wl-G' 10745 fi 10746 fi 10747 10748 export_dynamic_flag_spec='$wl-bexpall' 10749 # It seems that -bexpall does not export symbols beginning with 10750 # underscore (_), so it is better to generate a list of symbols to export. 10751 always_export_symbols=yes 10752 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10753 # Warning - without using the other runtime loading flags (-brtl), 10754 # -berok will link without error, but may produce a broken library. 10755 allow_undefined_flag='-berok' 10756 # Determine the default libpath from the value encoded in an 10757 # empty executable. 10758 if test set = "${lt_cv_aix_libpath+set}"; then 10759 aix_libpath=$lt_cv_aix_libpath 10760else 10761 if ${lt_cv_aix_libpath_+:} false; then : 10762 $as_echo_n "(cached) " >&6 10763else 10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765/* end confdefs.h. */ 10766 10767int 10768main () 10769{ 10770 10771 ; 10772 return 0; 10773} 10774_ACEOF 10775if ac_fn_c_try_link "$LINENO"; then : 10776 10777 lt_aix_libpath_sed=' 10778 /Import File Strings/,/^$/ { 10779 /^0/ { 10780 s/^0 *\([^ ]*\) *$/\1/ 10781 p 10782 } 10783 }' 10784 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10785 # Check for a 64-bit object if we didn't find anything. 10786 if test -z "$lt_cv_aix_libpath_"; then 10787 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10788 fi 10789fi 10790rm -f core conftest.err conftest.$ac_objext \ 10791 conftest$ac_exeext conftest.$ac_ext 10792 if test -z "$lt_cv_aix_libpath_"; then 10793 lt_cv_aix_libpath_=/usr/lib:/lib 10794 fi 10795 10796fi 10797 10798 aix_libpath=$lt_cv_aix_libpath_ 10799fi 10800 10801 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10802 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 10803 else 10804 if test ia64 = "$host_cpu"; then 10805 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10806 allow_undefined_flag="-z nodefs" 10807 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" 10808 else 10809 # Determine the default libpath from the value encoded in an 10810 # empty executable. 10811 if test set = "${lt_cv_aix_libpath+set}"; then 10812 aix_libpath=$lt_cv_aix_libpath 10813else 10814 if ${lt_cv_aix_libpath_+:} false; then : 10815 $as_echo_n "(cached) " >&6 10816else 10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818/* end confdefs.h. */ 10819 10820int 10821main () 10822{ 10823 10824 ; 10825 return 0; 10826} 10827_ACEOF 10828if ac_fn_c_try_link "$LINENO"; then : 10829 10830 lt_aix_libpath_sed=' 10831 /Import File Strings/,/^$/ { 10832 /^0/ { 10833 s/^0 *\([^ ]*\) *$/\1/ 10834 p 10835 } 10836 }' 10837 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10838 # Check for a 64-bit object if we didn't find anything. 10839 if test -z "$lt_cv_aix_libpath_"; then 10840 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10841 fi 10842fi 10843rm -f core conftest.err conftest.$ac_objext \ 10844 conftest$ac_exeext conftest.$ac_ext 10845 if test -z "$lt_cv_aix_libpath_"; then 10846 lt_cv_aix_libpath_=/usr/lib:/lib 10847 fi 10848 10849fi 10850 10851 aix_libpath=$lt_cv_aix_libpath_ 10852fi 10853 10854 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10855 # Warning - without using the other run time loading flags, 10856 # -berok will link without error, but may produce a broken library. 10857 no_undefined_flag=' $wl-bernotok' 10858 allow_undefined_flag=' $wl-berok' 10859 if test yes = "$with_gnu_ld"; then 10860 # We only use this code for GNU lds that support --whole-archive. 10861 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10862 else 10863 # Exported symbols can be pulled into shared objects from archives 10864 whole_archive_flag_spec='$convenience' 10865 fi 10866 archive_cmds_need_lc=yes 10867 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10868 # -brtl affects multiple linker settings, -berok does not and is overridden later 10869 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10870 if test svr4 != "$with_aix_soname"; then 10871 # This is similar to how AIX traditionally builds its shared libraries. 10872 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' 10873 fi 10874 if test aix != "$with_aix_soname"; then 10875 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' 10876 else 10877 # used by -dlpreopen to get the symbols 10878 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10879 fi 10880 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10881 fi 10882 fi 10883 ;; 10884 10885 amigaos*) 10886 case $host_cpu in 10887 powerpc) 10888 # see comment about AmigaOS4 .so support 10889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10890 archive_expsym_cmds='' 10891 ;; 10892 m68k) 10893 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)' 10894 hardcode_libdir_flag_spec='-L$libdir' 10895 hardcode_minus_L=yes 10896 ;; 10897 esac 10898 ;; 10899 10900 bsdi[45]*) 10901 export_dynamic_flag_spec=-rdynamic 10902 ;; 10903 10904 cygwin* | mingw* | pw32* | cegcc*) 10905 # When not using gcc, we currently assume that we are using 10906 # Microsoft Visual C++ or Intel C++ Compiler. 10907 # hardcode_libdir_flag_spec is actually meaningless, as there is 10908 # no search path for DLLs. 10909 case $cc_basename in 10910 cl* | icl*) 10911 # Native MSVC or ICC 10912 hardcode_libdir_flag_spec=' ' 10913 allow_undefined_flag=unsupported 10914 always_export_symbols=yes 10915 file_list_spec='@' 10916 # Tell ltmain to make .lib files, not .a files. 10917 libext=lib 10918 # Tell ltmain to make .dll files, not .so files. 10919 shrext_cmds=.dll 10920 # FIXME: Setting linknames here is a bad hack. 10921 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10922 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10923 cp "$export_symbols" "$output_objdir/$soname.def"; 10924 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10925 else 10926 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10927 fi~ 10928 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10929 linknames=' 10930 # The linker will not automatically build a static lib if we build a DLL. 10931 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10932 enable_shared_with_static_runtimes=yes 10933 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10934 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10935 # Don't use ranlib 10936 old_postinstall_cmds='chmod 644 $oldlib' 10937 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10938 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10939 case $lt_outputfile in 10940 *.exe|*.EXE) ;; 10941 *) 10942 lt_outputfile=$lt_outputfile.exe 10943 lt_tool_outputfile=$lt_tool_outputfile.exe 10944 ;; 10945 esac~ 10946 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10947 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10948 $RM "$lt_outputfile.manifest"; 10949 fi' 10950 ;; 10951 *) 10952 # Assume MSVC and ICC wrapper 10953 hardcode_libdir_flag_spec=' ' 10954 allow_undefined_flag=unsupported 10955 # Tell ltmain to make .lib files, not .a files. 10956 libext=lib 10957 # Tell ltmain to make .dll files, not .so files. 10958 shrext_cmds=.dll 10959 # FIXME: Setting linknames here is a bad hack. 10960 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10961 # The linker will automatically build a .lib file if we build a DLL. 10962 old_archive_from_new_cmds='true' 10963 # FIXME: Should let the user specify the lib program. 10964 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10965 enable_shared_with_static_runtimes=yes 10966 ;; 10967 esac 10968 ;; 10969 10970 darwin* | rhapsody*) 10971 10972 10973 archive_cmds_need_lc=no 10974 hardcode_direct=no 10975 hardcode_automatic=yes 10976 hardcode_shlibpath_var=unsupported 10977 if test yes = "$lt_cv_ld_force_load"; then 10978 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\"`' 10979 10980 else 10981 whole_archive_flag_spec='' 10982 fi 10983 link_all_deplibs=yes 10984 allow_undefined_flag=$_lt_dar_allow_undefined 10985 case $cc_basename in 10986 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10987 *) _lt_dar_can_shared=$GCC ;; 10988 esac 10989 if test yes = "$_lt_dar_can_shared"; then 10990 output_verbose_link_cmd=func_echo_all 10991 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10992 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10993 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" 10994 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" 10995 10996 else 10997 ld_shlibs=no 10998 fi 10999 11000 ;; 11001 11002 dgux*) 11003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11004 hardcode_libdir_flag_spec='-L$libdir' 11005 hardcode_shlibpath_var=no 11006 ;; 11007 11008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11009 # support. Future versions do this automatically, but an explicit c++rt0.o 11010 # does not break anything, and helps significantly (at the cost of a little 11011 # extra space). 11012 freebsd2.2*) 11013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11014 hardcode_libdir_flag_spec='-R$libdir' 11015 hardcode_direct=yes 11016 hardcode_shlibpath_var=no 11017 ;; 11018 11019 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11020 freebsd2.*) 11021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11022 hardcode_direct=yes 11023 hardcode_minus_L=yes 11024 hardcode_shlibpath_var=no 11025 ;; 11026 11027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11028 freebsd* | dragonfly*) 11029 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11030 hardcode_libdir_flag_spec='-R$libdir' 11031 hardcode_direct=yes 11032 hardcode_shlibpath_var=no 11033 ;; 11034 11035 hpux9*) 11036 if test yes = "$GCC"; then 11037 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' 11038 else 11039 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' 11040 fi 11041 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11042 hardcode_libdir_separator=: 11043 hardcode_direct=yes 11044 11045 # hardcode_minus_L: Not really in the search PATH, 11046 # but as the default location of the library. 11047 hardcode_minus_L=yes 11048 export_dynamic_flag_spec='$wl-E' 11049 ;; 11050 11051 hpux10*) 11052 if test yes,no = "$GCC,$with_gnu_ld"; then 11053 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11054 else 11055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11056 fi 11057 if test no = "$with_gnu_ld"; then 11058 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11059 hardcode_libdir_separator=: 11060 hardcode_direct=yes 11061 hardcode_direct_absolute=yes 11062 export_dynamic_flag_spec='$wl-E' 11063 # hardcode_minus_L: Not really in the search PATH, 11064 # but as the default location of the library. 11065 hardcode_minus_L=yes 11066 fi 11067 ;; 11068 11069 hpux11*) 11070 if test yes,no = "$GCC,$with_gnu_ld"; then 11071 case $host_cpu in 11072 hppa*64*) 11073 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11074 ;; 11075 ia64*) 11076 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11077 ;; 11078 *) 11079 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11080 ;; 11081 esac 11082 else 11083 case $host_cpu in 11084 hppa*64*) 11085 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11086 ;; 11087 ia64*) 11088 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11089 ;; 11090 *) 11091 11092 # Older versions of the 11.00 compiler do not understand -b yet 11093 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11095$as_echo_n "checking if $CC understands -b... " >&6; } 11096if ${lt_cv_prog_compiler__b+:} false; then : 11097 $as_echo_n "(cached) " >&6 11098else 11099 lt_cv_prog_compiler__b=no 11100 save_LDFLAGS=$LDFLAGS 11101 LDFLAGS="$LDFLAGS -b" 11102 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11104 # The linker can only warn and ignore the option if not recognized 11105 # So say no if there are warnings 11106 if test -s conftest.err; then 11107 # Append any errors to the config.log. 11108 cat conftest.err 1>&5 11109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11111 if diff conftest.exp conftest.er2 >/dev/null; then 11112 lt_cv_prog_compiler__b=yes 11113 fi 11114 else 11115 lt_cv_prog_compiler__b=yes 11116 fi 11117 fi 11118 $RM -r conftest* 11119 LDFLAGS=$save_LDFLAGS 11120 11121fi 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11123$as_echo "$lt_cv_prog_compiler__b" >&6; } 11124 11125if test yes = "$lt_cv_prog_compiler__b"; then 11126 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11127else 11128 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11129fi 11130 11131 ;; 11132 esac 11133 fi 11134 if test no = "$with_gnu_ld"; then 11135 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11136 hardcode_libdir_separator=: 11137 11138 case $host_cpu in 11139 hppa*64*|ia64*) 11140 hardcode_direct=no 11141 hardcode_shlibpath_var=no 11142 ;; 11143 *) 11144 hardcode_direct=yes 11145 hardcode_direct_absolute=yes 11146 export_dynamic_flag_spec='$wl-E' 11147 11148 # hardcode_minus_L: Not really in the search PATH, 11149 # but as the default location of the library. 11150 hardcode_minus_L=yes 11151 ;; 11152 esac 11153 fi 11154 ;; 11155 11156 irix5* | irix6* | nonstopux*) 11157 if test yes = "$GCC"; then 11158 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' 11159 # Try to use the -exported_symbol ld option, if it does not 11160 # work, assume that -exports_file does not work either and 11161 # implicitly export all symbols. 11162 # This should be the same for all languages, so no per-tag cache variable. 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11164$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11165if ${lt_cv_irix_exported_symbol+:} false; then : 11166 $as_echo_n "(cached) " >&6 11167else 11168 save_LDFLAGS=$LDFLAGS 11169 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171/* end confdefs.h. */ 11172int foo (void) { return 0; } 11173_ACEOF 11174if ac_fn_c_try_link "$LINENO"; then : 11175 lt_cv_irix_exported_symbol=yes 11176else 11177 lt_cv_irix_exported_symbol=no 11178fi 11179rm -f core conftest.err conftest.$ac_objext \ 11180 conftest$ac_exeext conftest.$ac_ext 11181 LDFLAGS=$save_LDFLAGS 11182fi 11183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11184$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11185 if test yes = "$lt_cv_irix_exported_symbol"; then 11186 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' 11187 fi 11188 else 11189 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' 11190 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' 11191 fi 11192 archive_cmds_need_lc='no' 11193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11194 hardcode_libdir_separator=: 11195 inherit_rpath=yes 11196 link_all_deplibs=yes 11197 ;; 11198 11199 linux*) 11200 case $cc_basename in 11201 tcc*) 11202 # Fabrice Bellard et al's Tiny C Compiler 11203 ld_shlibs=yes 11204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11205 ;; 11206 esac 11207 ;; 11208 11209 netbsd*) 11210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11212 else 11213 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11214 fi 11215 hardcode_libdir_flag_spec='-R$libdir' 11216 hardcode_direct=yes 11217 hardcode_shlibpath_var=no 11218 ;; 11219 11220 newsos6) 11221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11222 hardcode_direct=yes 11223 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11224 hardcode_libdir_separator=: 11225 hardcode_shlibpath_var=no 11226 ;; 11227 11228 *nto* | *qnx*) 11229 ;; 11230 11231 openbsd* | bitrig*) 11232 if test -f /usr/libexec/ld.so; then 11233 hardcode_direct=yes 11234 hardcode_shlibpath_var=no 11235 hardcode_direct_absolute=yes 11236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11238 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11239 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11240 export_dynamic_flag_spec='$wl-E' 11241 else 11242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11243 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11244 fi 11245 else 11246 ld_shlibs=no 11247 fi 11248 ;; 11249 11250 os2*) 11251 hardcode_libdir_flag_spec='-L$libdir' 11252 hardcode_minus_L=yes 11253 allow_undefined_flag=unsupported 11254 shrext_cmds=.dll 11255 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11258 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11259 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11260 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11261 emximp -o $lib $output_objdir/$libname.def' 11262 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11263 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11264 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11265 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11266 prefix_cmds="$SED"~ 11267 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11268 prefix_cmds="$prefix_cmds -e 1d"; 11269 fi~ 11270 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11271 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11272 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11273 emximp -o $lib $output_objdir/$libname.def' 11274 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11275 enable_shared_with_static_runtimes=yes 11276 file_list_spec='@' 11277 ;; 11278 11279 osf3*) 11280 if test yes = "$GCC"; then 11281 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11282 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' 11283 else 11284 allow_undefined_flag=' -expect_unresolved \*' 11285 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' 11286 fi 11287 archive_cmds_need_lc='no' 11288 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11289 hardcode_libdir_separator=: 11290 ;; 11291 11292 osf4* | osf5*) # as osf3* with the addition of -msym flag 11293 if test yes = "$GCC"; then 11294 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11295 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' 11296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11297 else 11298 allow_undefined_flag=' -expect_unresolved \*' 11299 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' 11300 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~ 11301 $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' 11302 11303 # Both c and cxx compiler support -rpath directly 11304 hardcode_libdir_flag_spec='-rpath $libdir' 11305 fi 11306 archive_cmds_need_lc='no' 11307 hardcode_libdir_separator=: 11308 ;; 11309 11310 solaris*) 11311 no_undefined_flag=' -z defs' 11312 if test yes = "$GCC"; then 11313 wlarc='$wl' 11314 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11316 $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' 11317 else 11318 case `$CC -V 2>&1` in 11319 *"Compilers 5.0"*) 11320 wlarc='' 11321 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11323 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11324 ;; 11325 *) 11326 wlarc='$wl' 11327 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11329 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11330 ;; 11331 esac 11332 fi 11333 hardcode_libdir_flag_spec='-R$libdir' 11334 hardcode_shlibpath_var=no 11335 case $host_os in 11336 solaris2.[0-5] | solaris2.[0-5].*) ;; 11337 *) 11338 # The compiler driver will combine and reorder linker options, 11339 # but understands '-z linker_flag'. GCC discards it without '$wl', 11340 # but is careful enough not to reorder. 11341 # Supported since Solaris 2.6 (maybe 2.5.1?) 11342 if test yes = "$GCC"; then 11343 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11344 else 11345 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11346 fi 11347 ;; 11348 esac 11349 link_all_deplibs=yes 11350 ;; 11351 11352 sunos4*) 11353 if test sequent = "$host_vendor"; then 11354 # Use $CC to link under sequent, because it throws in some extra .o 11355 # files that make .init and .fini sections work. 11356 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11357 else 11358 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11359 fi 11360 hardcode_libdir_flag_spec='-L$libdir' 11361 hardcode_direct=yes 11362 hardcode_minus_L=yes 11363 hardcode_shlibpath_var=no 11364 ;; 11365 11366 sysv4) 11367 case $host_vendor in 11368 sni) 11369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11370 hardcode_direct=yes # is this really true??? 11371 ;; 11372 siemens) 11373 ## LD is ld it makes a PLAMLIB 11374 ## CC just makes a GrossModule. 11375 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11376 reload_cmds='$CC -r -o $output$reload_objs' 11377 hardcode_direct=no 11378 ;; 11379 motorola) 11380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11381 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11382 ;; 11383 esac 11384 runpath_var='LD_RUN_PATH' 11385 hardcode_shlibpath_var=no 11386 ;; 11387 11388 sysv4.3*) 11389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11390 hardcode_shlibpath_var=no 11391 export_dynamic_flag_spec='-Bexport' 11392 ;; 11393 11394 sysv4*MP*) 11395 if test -d /usr/nec; then 11396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11397 hardcode_shlibpath_var=no 11398 runpath_var=LD_RUN_PATH 11399 hardcode_runpath_var=yes 11400 ld_shlibs=yes 11401 fi 11402 ;; 11403 11404 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11405 no_undefined_flag='$wl-z,text' 11406 archive_cmds_need_lc=no 11407 hardcode_shlibpath_var=no 11408 runpath_var='LD_RUN_PATH' 11409 11410 if test yes = "$GCC"; then 11411 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11412 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11413 else 11414 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11415 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11416 fi 11417 ;; 11418 11419 sysv5* | sco3.2v5* | sco5v6*) 11420 # Note: We CANNOT use -z defs as we might desire, because we do not 11421 # link with -lc, and that would cause any symbols used from libc to 11422 # always be unresolved, which means just about no library would 11423 # ever link correctly. If we're not using GNU ld we use -z text 11424 # though, which does catch some bad symbols but isn't as heavy-handed 11425 # as -z defs. 11426 no_undefined_flag='$wl-z,text' 11427 allow_undefined_flag='$wl-z,nodefs' 11428 archive_cmds_need_lc=no 11429 hardcode_shlibpath_var=no 11430 hardcode_libdir_flag_spec='$wl-R,$libdir' 11431 hardcode_libdir_separator=':' 11432 link_all_deplibs=yes 11433 export_dynamic_flag_spec='$wl-Bexport' 11434 runpath_var='LD_RUN_PATH' 11435 11436 if test yes = "$GCC"; then 11437 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11438 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11439 else 11440 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11441 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11442 fi 11443 ;; 11444 11445 uts4*) 11446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11447 hardcode_libdir_flag_spec='-L$libdir' 11448 hardcode_shlibpath_var=no 11449 ;; 11450 11451 *) 11452 ld_shlibs=no 11453 ;; 11454 esac 11455 11456 if test sni = "$host_vendor"; then 11457 case $host in 11458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11459 export_dynamic_flag_spec='$wl-Blargedynsym' 11460 ;; 11461 esac 11462 fi 11463 fi 11464 11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11466$as_echo "$ld_shlibs" >&6; } 11467test no = "$ld_shlibs" && can_build_shared=no 11468 11469with_gnu_ld=$with_gnu_ld 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485# 11486# Do we need to explicitly link libc? 11487# 11488case "x$archive_cmds_need_lc" in 11489x|xyes) 11490 # Assume -lc should be added 11491 archive_cmds_need_lc=yes 11492 11493 if test yes,yes = "$GCC,$enable_shared"; then 11494 case $archive_cmds in 11495 *'~'*) 11496 # FIXME: we may have to deal with multi-command sequences. 11497 ;; 11498 '$CC '*) 11499 # Test whether the compiler implicitly links with -lc since on some 11500 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11501 # to ld, don't add -lc before -lgcc. 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11503$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11504if ${lt_cv_archive_cmds_need_lc+:} false; then : 11505 $as_echo_n "(cached) " >&6 11506else 11507 $RM conftest* 11508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11509 11510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11511 (eval $ac_compile) 2>&5 11512 ac_status=$? 11513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11514 test $ac_status = 0; } 2>conftest.err; then 11515 soname=conftest 11516 lib=conftest 11517 libobjs=conftest.$ac_objext 11518 deplibs= 11519 wl=$lt_prog_compiler_wl 11520 pic_flag=$lt_prog_compiler_pic 11521 compiler_flags=-v 11522 linker_flags=-v 11523 verstring= 11524 output_objdir=. 11525 libname=conftest 11526 lt_save_allow_undefined_flag=$allow_undefined_flag 11527 allow_undefined_flag= 11528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11529 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11530 ac_status=$? 11531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11532 test $ac_status = 0; } 11533 then 11534 lt_cv_archive_cmds_need_lc=no 11535 else 11536 lt_cv_archive_cmds_need_lc=yes 11537 fi 11538 allow_undefined_flag=$lt_save_allow_undefined_flag 11539 else 11540 cat conftest.err 1>&5 11541 fi 11542 $RM conftest* 11543 11544fi 11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11546$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11547 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11548 ;; 11549 esac 11550 fi 11551 ;; 11552esac 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 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 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11706$as_echo_n "checking dynamic linker characteristics... " >&6; } 11707 11708if test yes = "$GCC"; then 11709 case $host_os in 11710 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11711 *) lt_awk_arg='/^libraries:/' ;; 11712 esac 11713 case $host_os in 11714 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11715 *) lt_sed_strip_eq='s|=/|/|g' ;; 11716 esac 11717 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11718 case $lt_search_path_spec in 11719 *\;*) 11720 # if the path contains ";" then we assume it to be the separator 11721 # otherwise default to the standard path separator (i.e. ":") - it is 11722 # assumed that no part of a normal pathname contains ";" but that should 11723 # okay in the real world where ";" in dirpaths is itself problematic. 11724 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11725 ;; 11726 *) 11727 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11728 ;; 11729 esac 11730 # Ok, now we have the path, separated by spaces, we can step through it 11731 # and add multilib dir if necessary... 11732 lt_tmp_lt_search_path_spec= 11733 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11734 # ...but if some path component already ends with the multilib dir we assume 11735 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11736 case "$lt_multi_os_dir; $lt_search_path_spec " in 11737 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11738 lt_multi_os_dir= 11739 ;; 11740 esac 11741 for lt_sys_path in $lt_search_path_spec; do 11742 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11744 elif test -n "$lt_multi_os_dir"; then 11745 test -d "$lt_sys_path" && \ 11746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11747 fi 11748 done 11749 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11750BEGIN {RS = " "; FS = "/|\n";} { 11751 lt_foo = ""; 11752 lt_count = 0; 11753 for (lt_i = NF; lt_i > 0; lt_i--) { 11754 if ($lt_i != "" && $lt_i != ".") { 11755 if ($lt_i == "..") { 11756 lt_count++; 11757 } else { 11758 if (lt_count == 0) { 11759 lt_foo = "/" $lt_i lt_foo; 11760 } else { 11761 lt_count--; 11762 } 11763 } 11764 } 11765 } 11766 if (lt_foo != "") { lt_freq[lt_foo]++; } 11767 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11768}'` 11769 # AWK program above erroneously prepends '/' to C:/dos/paths 11770 # for these hosts. 11771 case $host_os in 11772 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11773 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11774 esac 11775 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11776else 11777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11778fi 11779library_names_spec= 11780libname_spec='lib$name' 11781soname_spec= 11782shrext_cmds=.so 11783postinstall_cmds= 11784postuninstall_cmds= 11785finish_cmds= 11786finish_eval= 11787shlibpath_var= 11788shlibpath_overrides_runpath=unknown 11789version_type=none 11790dynamic_linker="$host_os ld.so" 11791sys_lib_dlsearch_path_spec="/lib /usr/lib" 11792need_lib_prefix=unknown 11793hardcode_into_libs=no 11794 11795# when you set need_version to no, make sure it does not cause -set_version 11796# flags to be left without arguments 11797need_version=unknown 11798 11799 11800 11801case $host_os in 11802aix3*) 11803 version_type=linux # correct to gnu/linux during the next big refactor 11804 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11805 shlibpath_var=LIBPATH 11806 11807 # AIX 3 has no versioning support, so we append a major version to the name. 11808 soname_spec='$libname$release$shared_ext$major' 11809 ;; 11810 11811aix[4-9]*) 11812 version_type=linux # correct to gnu/linux during the next big refactor 11813 need_lib_prefix=no 11814 need_version=no 11815 hardcode_into_libs=yes 11816 if test ia64 = "$host_cpu"; then 11817 # AIX 5 supports IA64 11818 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11819 shlibpath_var=LD_LIBRARY_PATH 11820 else 11821 # With GCC up to 2.95.x, collect2 would create an import file 11822 # for dependence libraries. The import file would start with 11823 # the line '#! .'. This would cause the generated library to 11824 # depend on '.', always an invalid library. This was fixed in 11825 # development snapshots of GCC prior to 3.0. 11826 case $host_os in 11827 aix4 | aix4.[01] | aix4.[01].*) 11828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11829 echo ' yes ' 11830 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11831 : 11832 else 11833 can_build_shared=no 11834 fi 11835 ;; 11836 esac 11837 # Using Import Files as archive members, it is possible to support 11838 # filename-based versioning of shared library archives on AIX. While 11839 # this would work for both with and without runtime linking, it will 11840 # prevent static linking of such archives. So we do filename-based 11841 # shared library versioning with .so extension only, which is used 11842 # when both runtime linking and shared linking is enabled. 11843 # Unfortunately, runtime linking may impact performance, so we do 11844 # not want this to be the default eventually. Also, we use the 11845 # versioned .so libs for executables only if there is the -brtl 11846 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11847 # To allow for filename-based versioning support, we need to create 11848 # libNAME.so.V as an archive file, containing: 11849 # *) an Import File, referring to the versioned filename of the 11850 # archive as well as the shared archive member, telling the 11851 # bitwidth (32 or 64) of that shared object, and providing the 11852 # list of exported symbols of that shared object, eventually 11853 # decorated with the 'weak' keyword 11854 # *) the shared object with the F_LOADONLY flag set, to really avoid 11855 # it being seen by the linker. 11856 # At run time we better use the real file rather than another symlink, 11857 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11858 11859 case $with_aix_soname,$aix_use_runtimelinking in 11860 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11861 # soname into executable. Probably we can add versioning support to 11862 # collect2, so additional links can be useful in future. 11863 aix,yes) # traditional libtool 11864 dynamic_linker='AIX unversionable lib.so' 11865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11866 # instead of lib<name>.a to let people know that these are not 11867 # typical AIX shared libraries. 11868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11869 ;; 11870 aix,no) # traditional AIX only 11871 dynamic_linker='AIX lib.a(lib.so.V)' 11872 # We preserve .a as extension for shared libraries through AIX4.2 11873 # and later when we are not doing run time linking. 11874 library_names_spec='$libname$release.a $libname.a' 11875 soname_spec='$libname$release$shared_ext$major' 11876 ;; 11877 svr4,*) # full svr4 only 11878 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11879 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11880 # We do not specify a path in Import Files, so LIBPATH fires. 11881 shlibpath_overrides_runpath=yes 11882 ;; 11883 *,yes) # both, prefer svr4 11884 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11885 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11886 # unpreferred sharedlib libNAME.a needs extra handling 11887 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"' 11888 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"' 11889 # We do not specify a path in Import Files, so LIBPATH fires. 11890 shlibpath_overrides_runpath=yes 11891 ;; 11892 *,no) # both, prefer aix 11893 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11894 library_names_spec='$libname$release.a $libname.a' 11895 soname_spec='$libname$release$shared_ext$major' 11896 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11897 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)' 11898 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"' 11899 ;; 11900 esac 11901 shlibpath_var=LIBPATH 11902 fi 11903 ;; 11904 11905amigaos*) 11906 case $host_cpu in 11907 powerpc) 11908 # Since July 2007 AmigaOS4 officially supports .so libraries. 11909 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11911 ;; 11912 m68k) 11913 library_names_spec='$libname.ixlibrary $libname.a' 11914 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11915 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' 11916 ;; 11917 esac 11918 ;; 11919 11920beos*) 11921 library_names_spec='$libname$shared_ext' 11922 dynamic_linker="$host_os ld.so" 11923 shlibpath_var=LIBRARY_PATH 11924 ;; 11925 11926bsdi[45]*) 11927 version_type=linux # correct to gnu/linux during the next big refactor 11928 need_version=no 11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11930 soname_spec='$libname$release$shared_ext$major' 11931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11932 shlibpath_var=LD_LIBRARY_PATH 11933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11935 # the default ld.so.conf also contains /usr/contrib/lib and 11936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11937 # libtool to hard-code these into programs 11938 ;; 11939 11940cygwin* | mingw* | pw32* | cegcc*) 11941 version_type=windows 11942 shrext_cmds=.dll 11943 need_version=no 11944 need_lib_prefix=no 11945 11946 case $GCC,$cc_basename in 11947 yes,*) 11948 # gcc 11949 library_names_spec='$libname.dll.a' 11950 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11951 postinstall_cmds='base_file=`basename \$file`~ 11952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11953 dldir=$destdir/`dirname \$dlpath`~ 11954 test -d \$dldir || mkdir -p \$dldir~ 11955 $install_prog $dir/$dlname \$dldir/$dlname~ 11956 chmod a+x \$dldir/$dlname~ 11957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11959 fi' 11960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11961 dlpath=$dir/\$dldll~ 11962 $RM \$dlpath' 11963 shlibpath_overrides_runpath=yes 11964 11965 case $host_os in 11966 cygwin*) 11967 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11968 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11969 11970 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11971 ;; 11972 mingw* | cegcc*) 11973 # MinGW DLLs use traditional 'lib' prefix 11974 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11975 ;; 11976 pw32*) 11977 # pw32 DLLs use 'pw' prefix rather than 'lib' 11978 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11979 ;; 11980 esac 11981 dynamic_linker='Win32 ld.exe' 11982 ;; 11983 11984 *,cl* | *,icl*) 11985 # Native MSVC or ICC 11986 libname_spec='$name' 11987 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11988 library_names_spec='$libname.dll.lib' 11989 11990 case $build_os in 11991 mingw*) 11992 sys_lib_search_path_spec= 11993 lt_save_ifs=$IFS 11994 IFS=';' 11995 for lt_path in $LIB 11996 do 11997 IFS=$lt_save_ifs 11998 # Let DOS variable expansion print the short 8.3 style file name. 11999 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12000 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12001 done 12002 IFS=$lt_save_ifs 12003 # Convert to MSYS style. 12004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12005 ;; 12006 cygwin*) 12007 # Convert to unix form, then to dos form, then back to unix form 12008 # but this time dos style (no spaces!) so that the unix form looks 12009 # like /cygdrive/c/PROGRA~1:/cygdr... 12010 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12011 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12012 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12013 ;; 12014 *) 12015 sys_lib_search_path_spec=$LIB 12016 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12017 # It is most probably a Windows format PATH. 12018 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12019 else 12020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12021 fi 12022 # FIXME: find the short name or the path components, as spaces are 12023 # common. (e.g. "Program Files" -> "PROGRA~1") 12024 ;; 12025 esac 12026 12027 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12028 postinstall_cmds='base_file=`basename \$file`~ 12029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12030 dldir=$destdir/`dirname \$dlpath`~ 12031 test -d \$dldir || mkdir -p \$dldir~ 12032 $install_prog $dir/$dlname \$dldir/$dlname' 12033 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12034 dlpath=$dir/\$dldll~ 12035 $RM \$dlpath' 12036 shlibpath_overrides_runpath=yes 12037 dynamic_linker='Win32 link.exe' 12038 ;; 12039 12040 *) 12041 # Assume MSVC and ICC wrapper 12042 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12043 dynamic_linker='Win32 ld.exe' 12044 ;; 12045 esac 12046 # FIXME: first we should search . and the directory the executable is in 12047 shlibpath_var=PATH 12048 ;; 12049 12050darwin* | rhapsody*) 12051 dynamic_linker="$host_os dyld" 12052 version_type=darwin 12053 need_lib_prefix=no 12054 need_version=no 12055 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12056 soname_spec='$libname$release$major$shared_ext' 12057 shlibpath_overrides_runpath=yes 12058 shlibpath_var=DYLD_LIBRARY_PATH 12059 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12060 12061 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12062 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12063 ;; 12064 12065dgux*) 12066 version_type=linux # correct to gnu/linux during the next big refactor 12067 need_lib_prefix=no 12068 need_version=no 12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12070 soname_spec='$libname$release$shared_ext$major' 12071 shlibpath_var=LD_LIBRARY_PATH 12072 ;; 12073 12074freebsd* | dragonfly*) 12075 # DragonFly does not have aout. When/if they implement a new 12076 # versioning mechanism, adjust this. 12077 if test -x /usr/bin/objformat; then 12078 objformat=`/usr/bin/objformat` 12079 else 12080 case $host_os in 12081 freebsd[23].*) objformat=aout ;; 12082 *) objformat=elf ;; 12083 esac 12084 fi 12085 version_type=freebsd-$objformat 12086 case $version_type in 12087 freebsd-elf*) 12088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12089 soname_spec='$libname$release$shared_ext$major' 12090 need_version=no 12091 need_lib_prefix=no 12092 ;; 12093 freebsd-*) 12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12095 need_version=yes 12096 ;; 12097 esac 12098 shlibpath_var=LD_LIBRARY_PATH 12099 case $host_os in 12100 freebsd2.*) 12101 shlibpath_overrides_runpath=yes 12102 ;; 12103 freebsd3.[01]* | freebsdelf3.[01]*) 12104 shlibpath_overrides_runpath=yes 12105 hardcode_into_libs=yes 12106 ;; 12107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12109 shlibpath_overrides_runpath=no 12110 hardcode_into_libs=yes 12111 ;; 12112 *) # from 4.6 on, and DragonFly 12113 shlibpath_overrides_runpath=yes 12114 hardcode_into_libs=yes 12115 ;; 12116 esac 12117 ;; 12118 12119haiku*) 12120 version_type=linux # correct to gnu/linux during the next big refactor 12121 need_lib_prefix=no 12122 need_version=no 12123 dynamic_linker="$host_os runtime_loader" 12124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12125 soname_spec='$libname$release$shared_ext$major' 12126 shlibpath_var=LIBRARY_PATH 12127 shlibpath_overrides_runpath=no 12128 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12129 hardcode_into_libs=yes 12130 ;; 12131 12132hpux9* | hpux10* | hpux11*) 12133 # Give a soname corresponding to the major version so that dld.sl refuses to 12134 # link against other versions. 12135 version_type=sunos 12136 need_lib_prefix=no 12137 need_version=no 12138 case $host_cpu in 12139 ia64*) 12140 shrext_cmds='.so' 12141 hardcode_into_libs=yes 12142 dynamic_linker="$host_os dld.so" 12143 shlibpath_var=LD_LIBRARY_PATH 12144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12146 soname_spec='$libname$release$shared_ext$major' 12147 if test 32 = "$HPUX_IA64_MODE"; then 12148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12149 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12150 else 12151 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12152 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12153 fi 12154 ;; 12155 hppa*64*) 12156 shrext_cmds='.sl' 12157 hardcode_into_libs=yes 12158 dynamic_linker="$host_os dld.sl" 12159 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12162 soname_spec='$libname$release$shared_ext$major' 12163 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12165 ;; 12166 *) 12167 shrext_cmds='.sl' 12168 dynamic_linker="$host_os dld.sl" 12169 shlibpath_var=SHLIB_PATH 12170 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12172 soname_spec='$libname$release$shared_ext$major' 12173 ;; 12174 esac 12175 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12176 postinstall_cmds='chmod 555 $lib' 12177 # or fails outright, so override atomically: 12178 install_override_mode=555 12179 ;; 12180 12181interix[3-9]*) 12182 version_type=linux # correct to gnu/linux during the next big refactor 12183 need_lib_prefix=no 12184 need_version=no 12185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12186 soname_spec='$libname$release$shared_ext$major' 12187 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12188 shlibpath_var=LD_LIBRARY_PATH 12189 shlibpath_overrides_runpath=no 12190 hardcode_into_libs=yes 12191 ;; 12192 12193irix5* | irix6* | nonstopux*) 12194 case $host_os in 12195 nonstopux*) version_type=nonstopux ;; 12196 *) 12197 if test yes = "$lt_cv_prog_gnu_ld"; then 12198 version_type=linux # correct to gnu/linux during the next big refactor 12199 else 12200 version_type=irix 12201 fi ;; 12202 esac 12203 need_lib_prefix=no 12204 need_version=no 12205 soname_spec='$libname$release$shared_ext$major' 12206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12207 case $host_os in 12208 irix5* | nonstopux*) 12209 libsuff= shlibsuff= 12210 ;; 12211 *) 12212 case $LD in # libtool.m4 will add one of these switches to LD 12213 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12214 libsuff= shlibsuff= libmagic=32-bit;; 12215 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12216 libsuff=32 shlibsuff=N32 libmagic=N32;; 12217 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12218 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12219 *) libsuff= shlibsuff= libmagic=never-match;; 12220 esac 12221 ;; 12222 esac 12223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12224 shlibpath_overrides_runpath=no 12225 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12226 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12227 hardcode_into_libs=yes 12228 ;; 12229 12230# No shared lib support for Linux oldld, aout, or coff. 12231linux*oldld* | linux*aout* | linux*coff*) 12232 dynamic_linker=no 12233 ;; 12234 12235linux*android*) 12236 version_type=none # Android doesn't support versioned libraries. 12237 need_lib_prefix=no 12238 need_version=no 12239 library_names_spec='$libname$release$shared_ext' 12240 soname_spec='$libname$release$shared_ext' 12241 finish_cmds= 12242 shlibpath_var=LD_LIBRARY_PATH 12243 shlibpath_overrides_runpath=yes 12244 12245 # This implies no fast_install, which is unacceptable. 12246 # Some rework will be needed to allow for fast_install 12247 # before this can be enabled. 12248 hardcode_into_libs=yes 12249 12250 dynamic_linker='Android linker' 12251 # Don't embed -rpath directories since the linker doesn't support them. 12252 hardcode_libdir_flag_spec='-L$libdir' 12253 ;; 12254 12255# This must be glibc/ELF. 12256linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12257 version_type=linux # correct to gnu/linux during the next big refactor 12258 need_lib_prefix=no 12259 need_version=no 12260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12261 soname_spec='$libname$release$shared_ext$major' 12262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12263 shlibpath_var=LD_LIBRARY_PATH 12264 shlibpath_overrides_runpath=no 12265 12266 # Some binutils ld are patched to set DT_RUNPATH 12267 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12268 $as_echo_n "(cached) " >&6 12269else 12270 lt_cv_shlibpath_overrides_runpath=no 12271 save_LDFLAGS=$LDFLAGS 12272 save_libdir=$libdir 12273 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12274 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276/* end confdefs.h. */ 12277 12278int 12279main () 12280{ 12281 12282 ; 12283 return 0; 12284} 12285_ACEOF 12286if ac_fn_c_try_link "$LINENO"; then : 12287 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12288 lt_cv_shlibpath_overrides_runpath=yes 12289fi 12290fi 12291rm -f core conftest.err conftest.$ac_objext \ 12292 conftest$ac_exeext conftest.$ac_ext 12293 LDFLAGS=$save_LDFLAGS 12294 libdir=$save_libdir 12295 12296fi 12297 12298 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12299 12300 # This implies no fast_install, which is unacceptable. 12301 # Some rework will be needed to allow for fast_install 12302 # before this can be enabled. 12303 hardcode_into_libs=yes 12304 12305 # Ideally, we could use ldconfig to report *all* directores which are 12306 # searched for libraries, however this is still not possible. Aside from not 12307 # being certain /sbin/ldconfig is available, command 12308 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12309 # even though it is searched at run-time. Try to do the best guess by 12310 # appending ld.so.conf contents (and includes) to the search path. 12311 if test -f /etc/ld.so.conf; then 12312 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' ' '` 12313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12314 fi 12315 12316 # We used to test for /lib/ld.so.1 and disable shared libraries on 12317 # powerpc, because MkLinux only supported shared libraries with the 12318 # GNU dynamic linker. Since this was broken with cross compilers, 12319 # most powerpc-linux boxes support dynamic linking these days and 12320 # people can always --disable-shared, the test was removed, and we 12321 # assume the GNU/Linux dynamic linker is in use. 12322 dynamic_linker='GNU/Linux ld.so' 12323 ;; 12324 12325netbsd*) 12326 version_type=sunos 12327 need_lib_prefix=no 12328 need_version=no 12329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12332 dynamic_linker='NetBSD (a.out) ld.so' 12333 else 12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12335 soname_spec='$libname$release$shared_ext$major' 12336 dynamic_linker='NetBSD ld.elf_so' 12337 fi 12338 shlibpath_var=LD_LIBRARY_PATH 12339 shlibpath_overrides_runpath=yes 12340 hardcode_into_libs=yes 12341 ;; 12342 12343newsos6) 12344 version_type=linux # correct to gnu/linux during the next big refactor 12345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12346 shlibpath_var=LD_LIBRARY_PATH 12347 shlibpath_overrides_runpath=yes 12348 ;; 12349 12350*nto* | *qnx*) 12351 version_type=qnx 12352 need_lib_prefix=no 12353 need_version=no 12354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12355 soname_spec='$libname$release$shared_ext$major' 12356 shlibpath_var=LD_LIBRARY_PATH 12357 shlibpath_overrides_runpath=no 12358 hardcode_into_libs=yes 12359 dynamic_linker='ldqnx.so' 12360 ;; 12361 12362openbsd* | bitrig*) 12363 version_type=sunos 12364 sys_lib_dlsearch_path_spec=/usr/lib 12365 need_lib_prefix=no 12366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12367 need_version=no 12368 else 12369 need_version=yes 12370 fi 12371 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12373 shlibpath_var=LD_LIBRARY_PATH 12374 shlibpath_overrides_runpath=yes 12375 ;; 12376 12377os2*) 12378 libname_spec='$name' 12379 version_type=windows 12380 shrext_cmds=.dll 12381 need_version=no 12382 need_lib_prefix=no 12383 # OS/2 can only load a DLL with a base name of 8 characters or less. 12384 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12385 v=$($ECHO $release$versuffix | tr -d .-); 12386 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12387 $ECHO $n$v`$shared_ext' 12388 library_names_spec='${libname}_dll.$libext' 12389 dynamic_linker='OS/2 ld.exe' 12390 shlibpath_var=BEGINLIBPATH 12391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12393 postinstall_cmds='base_file=`basename \$file`~ 12394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12395 dldir=$destdir/`dirname \$dlpath`~ 12396 test -d \$dldir || mkdir -p \$dldir~ 12397 $install_prog $dir/$dlname \$dldir/$dlname~ 12398 chmod a+x \$dldir/$dlname~ 12399 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12400 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12401 fi' 12402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12403 dlpath=$dir/\$dldll~ 12404 $RM \$dlpath' 12405 ;; 12406 12407osf3* | osf4* | osf5*) 12408 version_type=osf 12409 need_lib_prefix=no 12410 need_version=no 12411 soname_spec='$libname$release$shared_ext$major' 12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12413 shlibpath_var=LD_LIBRARY_PATH 12414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12415 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12416 ;; 12417 12418rdos*) 12419 dynamic_linker=no 12420 ;; 12421 12422solaris*) 12423 version_type=linux # correct to gnu/linux during the next big refactor 12424 need_lib_prefix=no 12425 need_version=no 12426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12427 soname_spec='$libname$release$shared_ext$major' 12428 shlibpath_var=LD_LIBRARY_PATH 12429 shlibpath_overrides_runpath=yes 12430 hardcode_into_libs=yes 12431 # ldd complains unless libraries are executable 12432 postinstall_cmds='chmod +x $lib' 12433 ;; 12434 12435sunos4*) 12436 version_type=sunos 12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12439 shlibpath_var=LD_LIBRARY_PATH 12440 shlibpath_overrides_runpath=yes 12441 if test yes = "$with_gnu_ld"; then 12442 need_lib_prefix=no 12443 fi 12444 need_version=yes 12445 ;; 12446 12447sysv4 | sysv4.3*) 12448 version_type=linux # correct to gnu/linux during the next big refactor 12449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12450 soname_spec='$libname$release$shared_ext$major' 12451 shlibpath_var=LD_LIBRARY_PATH 12452 case $host_vendor in 12453 sni) 12454 shlibpath_overrides_runpath=no 12455 need_lib_prefix=no 12456 runpath_var=LD_RUN_PATH 12457 ;; 12458 siemens) 12459 need_lib_prefix=no 12460 ;; 12461 motorola) 12462 need_lib_prefix=no 12463 need_version=no 12464 shlibpath_overrides_runpath=no 12465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12466 ;; 12467 esac 12468 ;; 12469 12470sysv4*MP*) 12471 if test -d /usr/nec; then 12472 version_type=linux # correct to gnu/linux during the next big refactor 12473 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12474 soname_spec='$libname$shared_ext.$major' 12475 shlibpath_var=LD_LIBRARY_PATH 12476 fi 12477 ;; 12478 12479sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12480 version_type=sco 12481 need_lib_prefix=no 12482 need_version=no 12483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12484 soname_spec='$libname$release$shared_ext$major' 12485 shlibpath_var=LD_LIBRARY_PATH 12486 shlibpath_overrides_runpath=yes 12487 hardcode_into_libs=yes 12488 if test yes = "$with_gnu_ld"; then 12489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12490 else 12491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12492 case $host_os in 12493 sco3.2v5*) 12494 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12495 ;; 12496 esac 12497 fi 12498 sys_lib_dlsearch_path_spec='/usr/lib' 12499 ;; 12500 12501tpf*) 12502 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12503 version_type=linux # correct to gnu/linux during the next big refactor 12504 need_lib_prefix=no 12505 need_version=no 12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12507 shlibpath_var=LD_LIBRARY_PATH 12508 shlibpath_overrides_runpath=no 12509 hardcode_into_libs=yes 12510 ;; 12511 12512uts4*) 12513 version_type=linux # correct to gnu/linux during the next big refactor 12514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12515 soname_spec='$libname$release$shared_ext$major' 12516 shlibpath_var=LD_LIBRARY_PATH 12517 ;; 12518 12519*) 12520 dynamic_linker=no 12521 ;; 12522esac 12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12524$as_echo "$dynamic_linker" >&6; } 12525test no = "$dynamic_linker" && can_build_shared=no 12526 12527variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12528if test yes = "$GCC"; then 12529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12530fi 12531 12532if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12533 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12534fi 12535 12536if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12537 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12538fi 12539 12540# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12541configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12542 12543# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12544func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12545 12546# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12547configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12646$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12647hardcode_action= 12648if test -n "$hardcode_libdir_flag_spec" || 12649 test -n "$runpath_var" || 12650 test yes = "$hardcode_automatic"; then 12651 12652 # We can hardcode non-existent directories. 12653 if test no != "$hardcode_direct" && 12654 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12655 # have to relink, otherwise we might link with an installed library 12656 # when we should be linking with a yet-to-be-installed one 12657 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12658 test no != "$hardcode_minus_L"; then 12659 # Linking always hardcodes the temporary library directory. 12660 hardcode_action=relink 12661 else 12662 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12663 hardcode_action=immediate 12664 fi 12665else 12666 # We cannot hardcode anything, or else we can only hardcode existing 12667 # directories. 12668 hardcode_action=unsupported 12669fi 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12671$as_echo "$hardcode_action" >&6; } 12672 12673if test relink = "$hardcode_action" || 12674 test yes = "$inherit_rpath"; then 12675 # Fast installation is not supported 12676 enable_fast_install=no 12677elif test yes = "$shlibpath_overrides_runpath" || 12678 test no = "$enable_shared"; then 12679 # Fast installation is not necessary 12680 enable_fast_install=needless 12681fi 12682 12683 12684 12685 12686 12687 12688 if test yes != "$enable_dlopen"; then 12689 enable_dlopen=unknown 12690 enable_dlopen_self=unknown 12691 enable_dlopen_self_static=unknown 12692else 12693 lt_cv_dlopen=no 12694 lt_cv_dlopen_libs= 12695 12696 case $host_os in 12697 beos*) 12698 lt_cv_dlopen=load_add_on 12699 lt_cv_dlopen_libs= 12700 lt_cv_dlopen_self=yes 12701 ;; 12702 12703 mingw* | pw32* | cegcc*) 12704 lt_cv_dlopen=LoadLibrary 12705 lt_cv_dlopen_libs= 12706 ;; 12707 12708 cygwin*) 12709 lt_cv_dlopen=dlopen 12710 lt_cv_dlopen_libs= 12711 ;; 12712 12713 darwin*) 12714 # if libdl is installed we need to link against it 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12716$as_echo_n "checking for dlopen in -ldl... " >&6; } 12717if ${ac_cv_lib_dl_dlopen+:} false; then : 12718 $as_echo_n "(cached) " >&6 12719else 12720 ac_check_lib_save_LIBS=$LIBS 12721LIBS="-ldl $LIBS" 12722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724 12725/* Override any GCC internal prototype to avoid an error. 12726 Use char because int might match the return type of a GCC 12727 builtin and then its argument prototype would still apply. */ 12728#ifdef __cplusplus 12729extern "C" 12730#endif 12731char dlopen (); 12732int 12733main () 12734{ 12735return dlopen (); 12736 ; 12737 return 0; 12738} 12739_ACEOF 12740if ac_fn_c_try_link "$LINENO"; then : 12741 ac_cv_lib_dl_dlopen=yes 12742else 12743 ac_cv_lib_dl_dlopen=no 12744fi 12745rm -f core conftest.err conftest.$ac_objext \ 12746 conftest$ac_exeext conftest.$ac_ext 12747LIBS=$ac_check_lib_save_LIBS 12748fi 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12750$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12751if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12752 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12753else 12754 12755 lt_cv_dlopen=dyld 12756 lt_cv_dlopen_libs= 12757 lt_cv_dlopen_self=yes 12758 12759fi 12760 12761 ;; 12762 12763 tpf*) 12764 # Don't try to run any link tests for TPF. We know it's impossible 12765 # because TPF is a cross-compiler, and we know how we open DSOs. 12766 lt_cv_dlopen=dlopen 12767 lt_cv_dlopen_libs= 12768 lt_cv_dlopen_self=no 12769 ;; 12770 12771 *) 12772 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12773if test "x$ac_cv_func_shl_load" = xyes; then : 12774 lt_cv_dlopen=shl_load 12775else 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12777$as_echo_n "checking for shl_load in -ldld... " >&6; } 12778if ${ac_cv_lib_dld_shl_load+:} false; then : 12779 $as_echo_n "(cached) " >&6 12780else 12781 ac_check_lib_save_LIBS=$LIBS 12782LIBS="-ldld $LIBS" 12783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12784/* end confdefs.h. */ 12785 12786/* Override any GCC internal prototype to avoid an error. 12787 Use char because int might match the return type of a GCC 12788 builtin and then its argument prototype would still apply. */ 12789#ifdef __cplusplus 12790extern "C" 12791#endif 12792char shl_load (); 12793int 12794main () 12795{ 12796return shl_load (); 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801if ac_fn_c_try_link "$LINENO"; then : 12802 ac_cv_lib_dld_shl_load=yes 12803else 12804 ac_cv_lib_dld_shl_load=no 12805fi 12806rm -f core conftest.err conftest.$ac_objext \ 12807 conftest$ac_exeext conftest.$ac_ext 12808LIBS=$ac_check_lib_save_LIBS 12809fi 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12811$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12812if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12813 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12814else 12815 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12816if test "x$ac_cv_func_dlopen" = xyes; then : 12817 lt_cv_dlopen=dlopen 12818else 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12820$as_echo_n "checking for dlopen in -ldl... " >&6; } 12821if ${ac_cv_lib_dl_dlopen+:} false; then : 12822 $as_echo_n "(cached) " >&6 12823else 12824 ac_check_lib_save_LIBS=$LIBS 12825LIBS="-ldl $LIBS" 12826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12827/* end confdefs.h. */ 12828 12829/* Override any GCC internal prototype to avoid an error. 12830 Use char because int might match the return type of a GCC 12831 builtin and then its argument prototype would still apply. */ 12832#ifdef __cplusplus 12833extern "C" 12834#endif 12835char dlopen (); 12836int 12837main () 12838{ 12839return dlopen (); 12840 ; 12841 return 0; 12842} 12843_ACEOF 12844if ac_fn_c_try_link "$LINENO"; then : 12845 ac_cv_lib_dl_dlopen=yes 12846else 12847 ac_cv_lib_dl_dlopen=no 12848fi 12849rm -f core conftest.err conftest.$ac_objext \ 12850 conftest$ac_exeext conftest.$ac_ext 12851LIBS=$ac_check_lib_save_LIBS 12852fi 12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12854$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12855if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12856 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12857else 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12859$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12860if ${ac_cv_lib_svld_dlopen+:} false; then : 12861 $as_echo_n "(cached) " >&6 12862else 12863 ac_check_lib_save_LIBS=$LIBS 12864LIBS="-lsvld $LIBS" 12865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12866/* end confdefs.h. */ 12867 12868/* Override any GCC internal prototype to avoid an error. 12869 Use char because int might match the return type of a GCC 12870 builtin and then its argument prototype would still apply. */ 12871#ifdef __cplusplus 12872extern "C" 12873#endif 12874char dlopen (); 12875int 12876main () 12877{ 12878return dlopen (); 12879 ; 12880 return 0; 12881} 12882_ACEOF 12883if ac_fn_c_try_link "$LINENO"; then : 12884 ac_cv_lib_svld_dlopen=yes 12885else 12886 ac_cv_lib_svld_dlopen=no 12887fi 12888rm -f core conftest.err conftest.$ac_objext \ 12889 conftest$ac_exeext conftest.$ac_ext 12890LIBS=$ac_check_lib_save_LIBS 12891fi 12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12893$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12894if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12895 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12896else 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12898$as_echo_n "checking for dld_link in -ldld... " >&6; } 12899if ${ac_cv_lib_dld_dld_link+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901else 12902 ac_check_lib_save_LIBS=$LIBS 12903LIBS="-ldld $LIBS" 12904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12905/* end confdefs.h. */ 12906 12907/* Override any GCC internal prototype to avoid an error. 12908 Use char because int might match the return type of a GCC 12909 builtin and then its argument prototype would still apply. */ 12910#ifdef __cplusplus 12911extern "C" 12912#endif 12913char dld_link (); 12914int 12915main () 12916{ 12917return dld_link (); 12918 ; 12919 return 0; 12920} 12921_ACEOF 12922if ac_fn_c_try_link "$LINENO"; then : 12923 ac_cv_lib_dld_dld_link=yes 12924else 12925 ac_cv_lib_dld_dld_link=no 12926fi 12927rm -f core conftest.err conftest.$ac_objext \ 12928 conftest$ac_exeext conftest.$ac_ext 12929LIBS=$ac_check_lib_save_LIBS 12930fi 12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12932$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12933if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12934 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12935fi 12936 12937 12938fi 12939 12940 12941fi 12942 12943 12944fi 12945 12946 12947fi 12948 12949 12950fi 12951 12952 ;; 12953 esac 12954 12955 if test no = "$lt_cv_dlopen"; then 12956 enable_dlopen=no 12957 else 12958 enable_dlopen=yes 12959 fi 12960 12961 case $lt_cv_dlopen in 12962 dlopen) 12963 save_CPPFLAGS=$CPPFLAGS 12964 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12965 12966 save_LDFLAGS=$LDFLAGS 12967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12968 12969 save_LIBS=$LIBS 12970 LIBS="$lt_cv_dlopen_libs $LIBS" 12971 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12973$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12974if ${lt_cv_dlopen_self+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 if test yes = "$cross_compiling"; then : 12978 lt_cv_dlopen_self=cross 12979else 12980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12981 lt_status=$lt_dlunknown 12982 cat > conftest.$ac_ext <<_LT_EOF 12983#line $LINENO "configure" 12984#include "confdefs.h" 12985 12986#if HAVE_DLFCN_H 12987#include <dlfcn.h> 12988#endif 12989 12990#include <stdio.h> 12991 12992#ifdef RTLD_GLOBAL 12993# define LT_DLGLOBAL RTLD_GLOBAL 12994#else 12995# ifdef DL_GLOBAL 12996# define LT_DLGLOBAL DL_GLOBAL 12997# else 12998# define LT_DLGLOBAL 0 12999# endif 13000#endif 13001 13002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13003 find out it does not work in some platform. */ 13004#ifndef LT_DLLAZY_OR_NOW 13005# ifdef RTLD_LAZY 13006# define LT_DLLAZY_OR_NOW RTLD_LAZY 13007# else 13008# ifdef DL_LAZY 13009# define LT_DLLAZY_OR_NOW DL_LAZY 13010# else 13011# ifdef RTLD_NOW 13012# define LT_DLLAZY_OR_NOW RTLD_NOW 13013# else 13014# ifdef DL_NOW 13015# define LT_DLLAZY_OR_NOW DL_NOW 13016# else 13017# define LT_DLLAZY_OR_NOW 0 13018# endif 13019# endif 13020# endif 13021# endif 13022#endif 13023 13024/* When -fvisibility=hidden is used, assume the code has been annotated 13025 correspondingly for the symbols needed. */ 13026#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13027int fnord () __attribute__((visibility("default"))); 13028#endif 13029 13030int fnord () { return 42; } 13031int main () 13032{ 13033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13034 int status = $lt_dlunknown; 13035 13036 if (self) 13037 { 13038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13039 else 13040 { 13041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13042 else puts (dlerror ()); 13043 } 13044 /* dlclose (self); */ 13045 } 13046 else 13047 puts (dlerror ()); 13048 13049 return status; 13050} 13051_LT_EOF 13052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13053 (eval $ac_link) 2>&5 13054 ac_status=$? 13055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13056 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13057 (./conftest; exit; ) >&5 2>/dev/null 13058 lt_status=$? 13059 case x$lt_status in 13060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13063 esac 13064 else : 13065 # compilation failed 13066 lt_cv_dlopen_self=no 13067 fi 13068fi 13069rm -fr conftest* 13070 13071 13072fi 13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13074$as_echo "$lt_cv_dlopen_self" >&6; } 13075 13076 if test yes = "$lt_cv_dlopen_self"; then 13077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13079$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13080if ${lt_cv_dlopen_self_static+:} false; then : 13081 $as_echo_n "(cached) " >&6 13082else 13083 if test yes = "$cross_compiling"; then : 13084 lt_cv_dlopen_self_static=cross 13085else 13086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13087 lt_status=$lt_dlunknown 13088 cat > conftest.$ac_ext <<_LT_EOF 13089#line $LINENO "configure" 13090#include "confdefs.h" 13091 13092#if HAVE_DLFCN_H 13093#include <dlfcn.h> 13094#endif 13095 13096#include <stdio.h> 13097 13098#ifdef RTLD_GLOBAL 13099# define LT_DLGLOBAL RTLD_GLOBAL 13100#else 13101# ifdef DL_GLOBAL 13102# define LT_DLGLOBAL DL_GLOBAL 13103# else 13104# define LT_DLGLOBAL 0 13105# endif 13106#endif 13107 13108/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13109 find out it does not work in some platform. */ 13110#ifndef LT_DLLAZY_OR_NOW 13111# ifdef RTLD_LAZY 13112# define LT_DLLAZY_OR_NOW RTLD_LAZY 13113# else 13114# ifdef DL_LAZY 13115# define LT_DLLAZY_OR_NOW DL_LAZY 13116# else 13117# ifdef RTLD_NOW 13118# define LT_DLLAZY_OR_NOW RTLD_NOW 13119# else 13120# ifdef DL_NOW 13121# define LT_DLLAZY_OR_NOW DL_NOW 13122# else 13123# define LT_DLLAZY_OR_NOW 0 13124# endif 13125# endif 13126# endif 13127# endif 13128#endif 13129 13130/* When -fvisibility=hidden is used, assume the code has been annotated 13131 correspondingly for the symbols needed. */ 13132#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13133int fnord () __attribute__((visibility("default"))); 13134#endif 13135 13136int fnord () { return 42; } 13137int main () 13138{ 13139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13140 int status = $lt_dlunknown; 13141 13142 if (self) 13143 { 13144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13145 else 13146 { 13147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13148 else puts (dlerror ()); 13149 } 13150 /* dlclose (self); */ 13151 } 13152 else 13153 puts (dlerror ()); 13154 13155 return status; 13156} 13157_LT_EOF 13158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13159 (eval $ac_link) 2>&5 13160 ac_status=$? 13161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13162 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13163 (./conftest; exit; ) >&5 2>/dev/null 13164 lt_status=$? 13165 case x$lt_status in 13166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13169 esac 13170 else : 13171 # compilation failed 13172 lt_cv_dlopen_self_static=no 13173 fi 13174fi 13175rm -fr conftest* 13176 13177 13178fi 13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13180$as_echo "$lt_cv_dlopen_self_static" >&6; } 13181 fi 13182 13183 CPPFLAGS=$save_CPPFLAGS 13184 LDFLAGS=$save_LDFLAGS 13185 LIBS=$save_LIBS 13186 ;; 13187 esac 13188 13189 case $lt_cv_dlopen_self in 13190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13191 *) enable_dlopen_self=unknown ;; 13192 esac 13193 13194 case $lt_cv_dlopen_self_static in 13195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13196 *) enable_dlopen_self_static=unknown ;; 13197 esac 13198fi 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216striplib= 13217old_striplib= 13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13219$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13220if test -z "$STRIP"; then 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13222$as_echo "no" >&6; } 13223else 13224 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13225 old_striplib="$STRIP --strip-debug" 13226 striplib="$STRIP --strip-unneeded" 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13228$as_echo "yes" >&6; } 13229 else 13230 case $host_os in 13231 darwin*) 13232 # FIXME - insert some real tests, host_os isn't really good enough 13233 striplib="$STRIP -x" 13234 old_striplib="$STRIP -S" 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13236$as_echo "yes" >&6; } 13237 ;; 13238 freebsd*) 13239 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13240 old_striplib="$STRIP --strip-debug" 13241 striplib="$STRIP --strip-unneeded" 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13243$as_echo "yes" >&6; } 13244 else 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13246$as_echo "no" >&6; } 13247 fi 13248 ;; 13249 *) 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13251$as_echo "no" >&6; } 13252 ;; 13253 esac 13254 fi 13255fi 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 # Report what library types will actually be built 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13270$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13272$as_echo "$can_build_shared" >&6; } 13273 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13275$as_echo_n "checking whether to build shared libraries... " >&6; } 13276 test no = "$can_build_shared" && enable_shared=no 13277 13278 # On AIX, shared libraries and static libraries use the same namespace, and 13279 # are all built from PIC. 13280 case $host_os in 13281 aix3*) 13282 test yes = "$enable_shared" && enable_static=no 13283 if test -n "$RANLIB"; then 13284 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13285 postinstall_cmds='$RANLIB $lib' 13286 fi 13287 ;; 13288 13289 aix[4-9]*) 13290 if test ia64 != "$host_cpu"; then 13291 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13292 yes,aix,yes) ;; # shared object as lib.so file only 13293 yes,svr4,*) ;; # shared object as lib.so archive member only 13294 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13295 esac 13296 fi 13297 ;; 13298 esac 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13300$as_echo "$enable_shared" >&6; } 13301 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13303$as_echo_n "checking whether to build static libraries... " >&6; } 13304 # Make sure either enable_shared or enable_static is yes. 13305 test yes = "$enable_shared" || enable_static=yes 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13307$as_echo "$enable_static" >&6; } 13308 13309 13310 13311 13312fi 13313ac_ext=c 13314ac_cpp='$CPP $CPPFLAGS' 13315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13317ac_compiler_gnu=$ac_cv_c_compiler_gnu 13318 13319CC=$lt_save_CC 13320 13321 if test -n "$CXX" && ( test no != "$CXX" && 13322 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13323 (test g++ != "$CXX"))); then 13324 ac_ext=cpp 13325ac_cpp='$CXXCPP $CPPFLAGS' 13326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13330$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13331if test -z "$CXXCPP"; then 13332 if ${ac_cv_prog_CXXCPP+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334else 13335 # Double quotes because CXXCPP needs to be expanded 13336 for CXXCPP in "$CXX -E" "/lib/cpp" 13337 do 13338 ac_preproc_ok=false 13339for ac_cxx_preproc_warn_flag in '' yes 13340do 13341 # Use a header file that comes with gcc, so configuring glibc 13342 # with a fresh cross-compiler works. 13343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13344 # <limits.h> exists even on freestanding compilers. 13345 # On the NeXT, cc -E runs the code through the compiler's parser, 13346 # not just through cpp. "Syntax error" is here to catch this case. 13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13348/* end confdefs.h. */ 13349#ifdef __STDC__ 13350# include <limits.h> 13351#else 13352# include <assert.h> 13353#endif 13354 Syntax error 13355_ACEOF 13356if ac_fn_cxx_try_cpp "$LINENO"; then : 13357 13358else 13359 # Broken: fails on valid input. 13360continue 13361fi 13362rm -f conftest.err conftest.i conftest.$ac_ext 13363 13364 # OK, works on sane cases. Now check whether nonexistent headers 13365 # can be detected and how. 13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13367/* end confdefs.h. */ 13368#include <ac_nonexistent.h> 13369_ACEOF 13370if ac_fn_cxx_try_cpp "$LINENO"; then : 13371 # Broken: success on invalid input. 13372continue 13373else 13374 # Passes both tests. 13375ac_preproc_ok=: 13376break 13377fi 13378rm -f conftest.err conftest.i conftest.$ac_ext 13379 13380done 13381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13382rm -f conftest.i conftest.err conftest.$ac_ext 13383if $ac_preproc_ok; then : 13384 break 13385fi 13386 13387 done 13388 ac_cv_prog_CXXCPP=$CXXCPP 13389 13390fi 13391 CXXCPP=$ac_cv_prog_CXXCPP 13392else 13393 ac_cv_prog_CXXCPP=$CXXCPP 13394fi 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13396$as_echo "$CXXCPP" >&6; } 13397ac_preproc_ok=false 13398for ac_cxx_preproc_warn_flag in '' yes 13399do 13400 # Use a header file that comes with gcc, so configuring glibc 13401 # with a fresh cross-compiler works. 13402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13403 # <limits.h> exists even on freestanding compilers. 13404 # On the NeXT, cc -E runs the code through the compiler's parser, 13405 # not just through cpp. "Syntax error" is here to catch this case. 13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13407/* end confdefs.h. */ 13408#ifdef __STDC__ 13409# include <limits.h> 13410#else 13411# include <assert.h> 13412#endif 13413 Syntax error 13414_ACEOF 13415if ac_fn_cxx_try_cpp "$LINENO"; then : 13416 13417else 13418 # Broken: fails on valid input. 13419continue 13420fi 13421rm -f conftest.err conftest.i conftest.$ac_ext 13422 13423 # OK, works on sane cases. Now check whether nonexistent headers 13424 # can be detected and how. 13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13426/* end confdefs.h. */ 13427#include <ac_nonexistent.h> 13428_ACEOF 13429if ac_fn_cxx_try_cpp "$LINENO"; then : 13430 # Broken: success on invalid input. 13431continue 13432else 13433 # Passes both tests. 13434ac_preproc_ok=: 13435break 13436fi 13437rm -f conftest.err conftest.i conftest.$ac_ext 13438 13439done 13440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13441rm -f conftest.i conftest.err conftest.$ac_ext 13442if $ac_preproc_ok; then : 13443 13444else 13445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13447as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13448See \`config.log' for more details" "$LINENO" 5; } 13449fi 13450 13451ac_ext=c 13452ac_cpp='$CPP $CPPFLAGS' 13453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13455ac_compiler_gnu=$ac_cv_c_compiler_gnu 13456 13457else 13458 _lt_caught_CXX_error=yes 13459fi 13460 13461ac_ext=cpp 13462ac_cpp='$CXXCPP $CPPFLAGS' 13463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13466 13467archive_cmds_need_lc_CXX=no 13468allow_undefined_flag_CXX= 13469always_export_symbols_CXX=no 13470archive_expsym_cmds_CXX= 13471compiler_needs_object_CXX=no 13472export_dynamic_flag_spec_CXX= 13473hardcode_direct_CXX=no 13474hardcode_direct_absolute_CXX=no 13475hardcode_libdir_flag_spec_CXX= 13476hardcode_libdir_separator_CXX= 13477hardcode_minus_L_CXX=no 13478hardcode_shlibpath_var_CXX=unsupported 13479hardcode_automatic_CXX=no 13480inherit_rpath_CXX=no 13481module_cmds_CXX= 13482module_expsym_cmds_CXX= 13483link_all_deplibs_CXX=unknown 13484old_archive_cmds_CXX=$old_archive_cmds 13485reload_flag_CXX=$reload_flag 13486reload_cmds_CXX=$reload_cmds 13487no_undefined_flag_CXX= 13488whole_archive_flag_spec_CXX= 13489enable_shared_with_static_runtimes_CXX=no 13490 13491# Source file extension for C++ test sources. 13492ac_ext=cpp 13493 13494# Object file extension for compiled C++ test sources. 13495objext=o 13496objext_CXX=$objext 13497 13498# No sense in running all these tests if we already determined that 13499# the CXX compiler isn't working. Some variables (like enable_shared) 13500# are currently assumed to apply to all compilers on this platform, 13501# and will be corrupted by setting them based on a non-working compiler. 13502if test yes != "$_lt_caught_CXX_error"; then 13503 # Code to be used in simple compile tests 13504 lt_simple_compile_test_code="int some_variable = 0;" 13505 13506 # Code to be used in simple link tests 13507 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13508 13509 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13510 13511 13512 13513 13514 13515 13516# If no C compiler was specified, use CC. 13517LTCC=${LTCC-"$CC"} 13518 13519# If no C compiler flags were specified, use CFLAGS. 13520LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13521 13522# Allow CC to be a program name with arguments. 13523compiler=$CC 13524 13525 13526 # save warnings/boilerplate of simple test code 13527 ac_outfile=conftest.$ac_objext 13528echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13530_lt_compiler_boilerplate=`cat conftest.err` 13531$RM conftest* 13532 13533 ac_outfile=conftest.$ac_objext 13534echo "$lt_simple_link_test_code" >conftest.$ac_ext 13535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13536_lt_linker_boilerplate=`cat conftest.err` 13537$RM -r conftest* 13538 13539 13540 # Allow CC to be a program name with arguments. 13541 lt_save_CC=$CC 13542 lt_save_CFLAGS=$CFLAGS 13543 lt_save_LD=$LD 13544 lt_save_GCC=$GCC 13545 GCC=$GXX 13546 lt_save_with_gnu_ld=$with_gnu_ld 13547 lt_save_path_LD=$lt_cv_path_LD 13548 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13549 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13550 else 13551 $as_unset lt_cv_prog_gnu_ld 13552 fi 13553 if test -n "${lt_cv_path_LDCXX+set}"; then 13554 lt_cv_path_LD=$lt_cv_path_LDCXX 13555 else 13556 $as_unset lt_cv_path_LD 13557 fi 13558 test -z "${LDCXX+set}" || LD=$LDCXX 13559 CC=${CXX-"c++"} 13560 CFLAGS=$CXXFLAGS 13561 compiler=$CC 13562 compiler_CXX=$CC 13563 func_cc_basename $compiler 13564cc_basename=$func_cc_basename_result 13565 13566 13567 if test -n "$compiler"; then 13568 # We don't want -fno-exception when compiling C++ code, so set the 13569 # no_builtin_flag separately 13570 if test yes = "$GXX"; then 13571 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13572 else 13573 lt_prog_compiler_no_builtin_flag_CXX= 13574 fi 13575 13576 if test yes = "$GXX"; then 13577 # Set up default GNU C++ configuration 13578 13579 13580 13581# Check whether --with-gnu-ld was given. 13582if test "${with_gnu_ld+set}" = set; then : 13583 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13584else 13585 with_gnu_ld=no 13586fi 13587 13588ac_prog=ld 13589if test yes = "$GCC"; then 13590 # Check if gcc -print-prog-name=ld gives a path. 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13592$as_echo_n "checking for ld used by $CC... " >&6; } 13593 case $host in 13594 *-*-mingw*) 13595 # gcc leaves a trailing carriage return, which upsets mingw 13596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13597 *) 13598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13599 esac 13600 case $ac_prog in 13601 # Accept absolute paths. 13602 [\\/]* | ?:[\\/]*) 13603 re_direlt='/[^/][^/]*/\.\./' 13604 # Canonicalize the pathname of ld 13605 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13606 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13607 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13608 done 13609 test -z "$LD" && LD=$ac_prog 13610 ;; 13611 "") 13612 # If it fails, then pretend we aren't using GCC. 13613 ac_prog=ld 13614 ;; 13615 *) 13616 # If it is relative, then search for the first ld in PATH. 13617 with_gnu_ld=unknown 13618 ;; 13619 esac 13620elif test yes = "$with_gnu_ld"; then 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13622$as_echo_n "checking for GNU ld... " >&6; } 13623else 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13625$as_echo_n "checking for non-GNU ld... " >&6; } 13626fi 13627if ${lt_cv_path_LD+:} false; then : 13628 $as_echo_n "(cached) " >&6 13629else 13630 if test -z "$LD"; then 13631 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13632 for ac_dir in $PATH; do 13633 IFS=$lt_save_ifs 13634 test -z "$ac_dir" && ac_dir=. 13635 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13636 lt_cv_path_LD=$ac_dir/$ac_prog 13637 # Check to see if the program is GNU ld. I'd rather use --version, 13638 # but apparently some variants of GNU ld only accept -v. 13639 # Break only if it was the GNU/non-GNU ld that we prefer. 13640 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13641 *GNU* | *'with BFD'*) 13642 test no != "$with_gnu_ld" && break 13643 ;; 13644 *) 13645 test yes != "$with_gnu_ld" && break 13646 ;; 13647 esac 13648 fi 13649 done 13650 IFS=$lt_save_ifs 13651else 13652 lt_cv_path_LD=$LD # Let the user override the test with a path. 13653fi 13654fi 13655 13656LD=$lt_cv_path_LD 13657if test -n "$LD"; then 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13659$as_echo "$LD" >&6; } 13660else 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13662$as_echo "no" >&6; } 13663fi 13664test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13666$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13667if ${lt_cv_prog_gnu_ld+:} false; then : 13668 $as_echo_n "(cached) " >&6 13669else 13670 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13671case `$LD -v 2>&1 </dev/null` in 13672*GNU* | *'with BFD'*) 13673 lt_cv_prog_gnu_ld=yes 13674 ;; 13675*) 13676 lt_cv_prog_gnu_ld=no 13677 ;; 13678esac 13679fi 13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13681$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13682with_gnu_ld=$lt_cv_prog_gnu_ld 13683 13684 13685 13686 13687 13688 13689 13690 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13691 # archiving commands below assume that GNU ld is being used. 13692 if test yes = "$with_gnu_ld"; then 13693 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13694 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' 13695 13696 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13697 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13698 13699 # If archive_cmds runs LD, not CC, wlarc should be empty 13700 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13701 # investigate it a little bit more. (MM) 13702 wlarc='$wl' 13703 13704 # ancient GNU ld didn't support --whole-archive et. al. 13705 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13706 $GREP 'no-whole-archive' > /dev/null; then 13707 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13708 else 13709 whole_archive_flag_spec_CXX= 13710 fi 13711 else 13712 with_gnu_ld=no 13713 wlarc= 13714 13715 # A generic and very simple default shared library creation 13716 # command for GNU C++ for the case where it uses the native 13717 # linker, instead of GNU ld. If possible, this setting should 13718 # overridden to take advantage of the native linker features on 13719 # the platform it is being used on. 13720 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13721 fi 13722 13723 # Commands to make compiler produce verbose output that lists 13724 # what "hidden" libraries, object files and flags are used when 13725 # linking a shared library. 13726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13727 13728 else 13729 GXX=no 13730 with_gnu_ld=no 13731 wlarc= 13732 fi 13733 13734 # PORTME: fill in a description of your system's C++ link characteristics 13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13736$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13737 ld_shlibs_CXX=yes 13738 case $host_os in 13739 aix3*) 13740 # FIXME: insert proper C++ library support 13741 ld_shlibs_CXX=no 13742 ;; 13743 aix[4-9]*) 13744 if test ia64 = "$host_cpu"; then 13745 # On IA64, the linker does run time linking by default, so we don't 13746 # have to do anything special. 13747 aix_use_runtimelinking=no 13748 exp_sym_flag='-Bexport' 13749 no_entry_flag= 13750 else 13751 aix_use_runtimelinking=no 13752 13753 # Test if we are trying to use run time linking or normal 13754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13755 # have runtime linking enabled, and use it for executables. 13756 # For shared libraries, we enable/disable runtime linking 13757 # depending on the kind of the shared library created - 13758 # when "with_aix_soname,aix_use_runtimelinking" is: 13759 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13760 # "aix,yes" lib.so shared, rtl:yes, for executables 13761 # lib.a static archive 13762 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13763 # lib.a(lib.so.V) shared, rtl:no, for executables 13764 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13765 # lib.a(lib.so.V) shared, rtl:no 13766 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13767 # lib.a static archive 13768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13769 for ld_flag in $LDFLAGS; do 13770 case $ld_flag in 13771 *-brtl*) 13772 aix_use_runtimelinking=yes 13773 break 13774 ;; 13775 esac 13776 done 13777 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13778 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13779 # so we don't have lib.a shared libs to link our executables. 13780 # We have to force runtime linking in this case. 13781 aix_use_runtimelinking=yes 13782 LDFLAGS="$LDFLAGS -Wl,-brtl" 13783 fi 13784 ;; 13785 esac 13786 13787 exp_sym_flag='-bexport' 13788 no_entry_flag='-bnoentry' 13789 fi 13790 13791 # When large executables or shared objects are built, AIX ld can 13792 # have problems creating the table of contents. If linking a library 13793 # or program results in "error TOC overflow" add -mminimal-toc to 13794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13796 13797 archive_cmds_CXX='' 13798 hardcode_direct_CXX=yes 13799 hardcode_direct_absolute_CXX=yes 13800 hardcode_libdir_separator_CXX=':' 13801 link_all_deplibs_CXX=yes 13802 file_list_spec_CXX='$wl-f,' 13803 case $with_aix_soname,$aix_use_runtimelinking in 13804 aix,*) ;; # no import file 13805 svr4,* | *,yes) # use import file 13806 # The Import File defines what to hardcode. 13807 hardcode_direct_CXX=no 13808 hardcode_direct_absolute_CXX=no 13809 ;; 13810 esac 13811 13812 if test yes = "$GXX"; then 13813 case $host_os in aix4.[012]|aix4.[012].*) 13814 # We only want to do this on AIX 4.2 and lower, the check 13815 # below for broken collect2 doesn't work under 4.3+ 13816 collect2name=`$CC -print-prog-name=collect2` 13817 if test -f "$collect2name" && 13818 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13819 then 13820 # We have reworked collect2 13821 : 13822 else 13823 # We have old collect2 13824 hardcode_direct_CXX=unsupported 13825 # It fails to find uninstalled libraries when the uninstalled 13826 # path is not listed in the libpath. Setting hardcode_minus_L 13827 # to unsupported forces relinking 13828 hardcode_minus_L_CXX=yes 13829 hardcode_libdir_flag_spec_CXX='-L$libdir' 13830 hardcode_libdir_separator_CXX= 13831 fi 13832 esac 13833 shared_flag='-shared' 13834 if test yes = "$aix_use_runtimelinking"; then 13835 shared_flag=$shared_flag' $wl-G' 13836 fi 13837 # Need to ensure runtime linking is disabled for the traditional 13838 # shared library, or the linker may eventually find shared libraries 13839 # /with/ Import File - we do not want to mix them. 13840 shared_flag_aix='-shared' 13841 shared_flag_svr4='-shared $wl-G' 13842 else 13843 # not using gcc 13844 if test ia64 = "$host_cpu"; then 13845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13846 # chokes on -Wl,-G. The following line is correct: 13847 shared_flag='-G' 13848 else 13849 if test yes = "$aix_use_runtimelinking"; then 13850 shared_flag='$wl-G' 13851 else 13852 shared_flag='$wl-bM:SRE' 13853 fi 13854 shared_flag_aix='$wl-bM:SRE' 13855 shared_flag_svr4='$wl-G' 13856 fi 13857 fi 13858 13859 export_dynamic_flag_spec_CXX='$wl-bexpall' 13860 # It seems that -bexpall does not export symbols beginning with 13861 # underscore (_), so it is better to generate a list of symbols to 13862 # export. 13863 always_export_symbols_CXX=yes 13864 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13865 # Warning - without using the other runtime loading flags (-brtl), 13866 # -berok will link without error, but may produce a broken library. 13867 # The "-G" linker flag allows undefined symbols. 13868 no_undefined_flag_CXX='-bernotok' 13869 # Determine the default libpath from the value encoded in an empty 13870 # executable. 13871 if test set = "${lt_cv_aix_libpath+set}"; then 13872 aix_libpath=$lt_cv_aix_libpath 13873else 13874 if ${lt_cv_aix_libpath__CXX+:} false; then : 13875 $as_echo_n "(cached) " >&6 13876else 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879 13880int 13881main () 13882{ 13883 13884 ; 13885 return 0; 13886} 13887_ACEOF 13888if ac_fn_cxx_try_link "$LINENO"; then : 13889 13890 lt_aix_libpath_sed=' 13891 /Import File Strings/,/^$/ { 13892 /^0/ { 13893 s/^0 *\([^ ]*\) *$/\1/ 13894 p 13895 } 13896 }' 13897 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13898 # Check for a 64-bit object if we didn't find anything. 13899 if test -z "$lt_cv_aix_libpath__CXX"; then 13900 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13901 fi 13902fi 13903rm -f core conftest.err conftest.$ac_objext \ 13904 conftest$ac_exeext conftest.$ac_ext 13905 if test -z "$lt_cv_aix_libpath__CXX"; then 13906 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13907 fi 13908 13909fi 13910 13911 aix_libpath=$lt_cv_aix_libpath__CXX 13912fi 13913 13914 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13915 13916 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 13917 else 13918 if test ia64 = "$host_cpu"; then 13919 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13920 allow_undefined_flag_CXX="-z nodefs" 13921 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" 13922 else 13923 # Determine the default libpath from the value encoded in an 13924 # empty executable. 13925 if test set = "${lt_cv_aix_libpath+set}"; then 13926 aix_libpath=$lt_cv_aix_libpath 13927else 13928 if ${lt_cv_aix_libpath__CXX+:} false; then : 13929 $as_echo_n "(cached) " >&6 13930else 13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13932/* end confdefs.h. */ 13933 13934int 13935main () 13936{ 13937 13938 ; 13939 return 0; 13940} 13941_ACEOF 13942if ac_fn_cxx_try_link "$LINENO"; then : 13943 13944 lt_aix_libpath_sed=' 13945 /Import File Strings/,/^$/ { 13946 /^0/ { 13947 s/^0 *\([^ ]*\) *$/\1/ 13948 p 13949 } 13950 }' 13951 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13952 # Check for a 64-bit object if we didn't find anything. 13953 if test -z "$lt_cv_aix_libpath__CXX"; then 13954 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13955 fi 13956fi 13957rm -f core conftest.err conftest.$ac_objext \ 13958 conftest$ac_exeext conftest.$ac_ext 13959 if test -z "$lt_cv_aix_libpath__CXX"; then 13960 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13961 fi 13962 13963fi 13964 13965 aix_libpath=$lt_cv_aix_libpath__CXX 13966fi 13967 13968 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13969 # Warning - without using the other run time loading flags, 13970 # -berok will link without error, but may produce a broken library. 13971 no_undefined_flag_CXX=' $wl-bernotok' 13972 allow_undefined_flag_CXX=' $wl-berok' 13973 if test yes = "$with_gnu_ld"; then 13974 # We only use this code for GNU lds that support --whole-archive. 13975 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13976 else 13977 # Exported symbols can be pulled into shared objects from archives 13978 whole_archive_flag_spec_CXX='$convenience' 13979 fi 13980 archive_cmds_need_lc_CXX=yes 13981 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13982 # -brtl affects multiple linker settings, -berok does not and is overridden later 13983 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13984 if test svr4 != "$with_aix_soname"; then 13985 # This is similar to how AIX traditionally builds its shared 13986 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13987 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' 13988 fi 13989 if test aix != "$with_aix_soname"; then 13990 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' 13991 else 13992 # used by -dlpreopen to get the symbols 13993 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13994 fi 13995 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13996 fi 13997 fi 13998 ;; 13999 14000 beos*) 14001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14002 allow_undefined_flag_CXX=unsupported 14003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14004 # support --undefined. This deserves some investigation. FIXME 14005 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14006 else 14007 ld_shlibs_CXX=no 14008 fi 14009 ;; 14010 14011 chorus*) 14012 case $cc_basename in 14013 *) 14014 # FIXME: insert proper C++ library support 14015 ld_shlibs_CXX=no 14016 ;; 14017 esac 14018 ;; 14019 14020 cygwin* | mingw* | pw32* | cegcc*) 14021 case $GXX,$cc_basename in 14022 ,cl* | no,cl* | ,icl* | no,icl*) 14023 # Native MSVC or ICC 14024 # hardcode_libdir_flag_spec is actually meaningless, as there is 14025 # no search path for DLLs. 14026 hardcode_libdir_flag_spec_CXX=' ' 14027 allow_undefined_flag_CXX=unsupported 14028 always_export_symbols_CXX=yes 14029 file_list_spec_CXX='@' 14030 # Tell ltmain to make .lib files, not .a files. 14031 libext=lib 14032 # Tell ltmain to make .dll files, not .so files. 14033 shrext_cmds=.dll 14034 # FIXME: Setting linknames here is a bad hack. 14035 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14036 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14037 cp "$export_symbols" "$output_objdir/$soname.def"; 14038 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14039 else 14040 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14041 fi~ 14042 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14043 linknames=' 14044 # The linker will not automatically build a static lib if we build a DLL. 14045 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14046 enable_shared_with_static_runtimes_CXX=yes 14047 # Don't use ranlib 14048 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14049 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14050 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14051 case $lt_outputfile in 14052 *.exe|*.EXE) ;; 14053 *) 14054 lt_outputfile=$lt_outputfile.exe 14055 lt_tool_outputfile=$lt_tool_outputfile.exe 14056 ;; 14057 esac~ 14058 func_to_tool_file "$lt_outputfile"~ 14059 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14060 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14061 $RM "$lt_outputfile.manifest"; 14062 fi' 14063 ;; 14064 *) 14065 # g++ 14066 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14067 # as there is no search path for DLLs. 14068 hardcode_libdir_flag_spec_CXX='-L$libdir' 14069 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14070 allow_undefined_flag_CXX=unsupported 14071 always_export_symbols_CXX=no 14072 enable_shared_with_static_runtimes_CXX=yes 14073 14074 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14075 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' 14076 # If the export-symbols file already is a .def file, use it as 14077 # is; otherwise, prepend EXPORTS... 14078 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14079 cp $export_symbols $output_objdir/$soname.def; 14080 else 14081 echo EXPORTS > $output_objdir/$soname.def; 14082 cat $export_symbols >> $output_objdir/$soname.def; 14083 fi~ 14084 $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' 14085 else 14086 ld_shlibs_CXX=no 14087 fi 14088 ;; 14089 esac 14090 ;; 14091 darwin* | rhapsody*) 14092 14093 14094 archive_cmds_need_lc_CXX=no 14095 hardcode_direct_CXX=no 14096 hardcode_automatic_CXX=yes 14097 hardcode_shlibpath_var_CXX=unsupported 14098 if test yes = "$lt_cv_ld_force_load"; then 14099 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\"`' 14100 14101 else 14102 whole_archive_flag_spec_CXX='' 14103 fi 14104 link_all_deplibs_CXX=yes 14105 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14106 case $cc_basename in 14107 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14108 *) _lt_dar_can_shared=$GCC ;; 14109 esac 14110 if test yes = "$_lt_dar_can_shared"; then 14111 output_verbose_link_cmd=func_echo_all 14112 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" 14113 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14114 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" 14115 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" 14116 if test yes != "$lt_cv_apple_cc_single_mod"; then 14117 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" 14118 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" 14119 fi 14120 14121 else 14122 ld_shlibs_CXX=no 14123 fi 14124 14125 ;; 14126 14127 os2*) 14128 hardcode_libdir_flag_spec_CXX='-L$libdir' 14129 hardcode_minus_L_CXX=yes 14130 allow_undefined_flag_CXX=unsupported 14131 shrext_cmds=.dll 14132 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14133 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14134 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14135 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14136 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14137 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14138 emximp -o $lib $output_objdir/$libname.def' 14139 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14140 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14141 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14142 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14143 prefix_cmds="$SED"~ 14144 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14145 prefix_cmds="$prefix_cmds -e 1d"; 14146 fi~ 14147 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14148 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14149 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14150 emximp -o $lib $output_objdir/$libname.def' 14151 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14152 enable_shared_with_static_runtimes_CXX=yes 14153 file_list_spec_CXX='@' 14154 ;; 14155 14156 dgux*) 14157 case $cc_basename in 14158 ec++*) 14159 # FIXME: insert proper C++ library support 14160 ld_shlibs_CXX=no 14161 ;; 14162 ghcx*) 14163 # Green Hills C++ Compiler 14164 # FIXME: insert proper C++ library support 14165 ld_shlibs_CXX=no 14166 ;; 14167 *) 14168 # FIXME: insert proper C++ library support 14169 ld_shlibs_CXX=no 14170 ;; 14171 esac 14172 ;; 14173 14174 freebsd2.*) 14175 # C++ shared libraries reported to be fairly broken before 14176 # switch to ELF 14177 ld_shlibs_CXX=no 14178 ;; 14179 14180 freebsd-elf*) 14181 archive_cmds_need_lc_CXX=no 14182 ;; 14183 14184 freebsd* | dragonfly*) 14185 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14186 # conventions 14187 ld_shlibs_CXX=yes 14188 ;; 14189 14190 haiku*) 14191 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14192 link_all_deplibs_CXX=yes 14193 ;; 14194 14195 hpux9*) 14196 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14197 hardcode_libdir_separator_CXX=: 14198 export_dynamic_flag_spec_CXX='$wl-E' 14199 hardcode_direct_CXX=yes 14200 hardcode_minus_L_CXX=yes # Not in the search PATH, 14201 # but as the default 14202 # location of the library. 14203 14204 case $cc_basename in 14205 CC*) 14206 # FIXME: insert proper C++ library support 14207 ld_shlibs_CXX=no 14208 ;; 14209 aCC*) 14210 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' 14211 # Commands to make compiler produce verbose output that lists 14212 # what "hidden" libraries, object files and flags are used when 14213 # linking a shared library. 14214 # 14215 # There doesn't appear to be a way to prevent this compiler from 14216 # explicitly linking system object files so we need to strip them 14217 # from the output so that they don't get included in the library 14218 # dependencies. 14219 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"' 14220 ;; 14221 *) 14222 if test yes = "$GXX"; then 14223 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' 14224 else 14225 # FIXME: insert proper C++ library support 14226 ld_shlibs_CXX=no 14227 fi 14228 ;; 14229 esac 14230 ;; 14231 14232 hpux10*|hpux11*) 14233 if test no = "$with_gnu_ld"; then 14234 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14235 hardcode_libdir_separator_CXX=: 14236 14237 case $host_cpu in 14238 hppa*64*|ia64*) 14239 ;; 14240 *) 14241 export_dynamic_flag_spec_CXX='$wl-E' 14242 ;; 14243 esac 14244 fi 14245 case $host_cpu in 14246 hppa*64*|ia64*) 14247 hardcode_direct_CXX=no 14248 hardcode_shlibpath_var_CXX=no 14249 ;; 14250 *) 14251 hardcode_direct_CXX=yes 14252 hardcode_direct_absolute_CXX=yes 14253 hardcode_minus_L_CXX=yes # Not in the search PATH, 14254 # but as the default 14255 # location of the library. 14256 ;; 14257 esac 14258 14259 case $cc_basename in 14260 CC*) 14261 # FIXME: insert proper C++ library support 14262 ld_shlibs_CXX=no 14263 ;; 14264 aCC*) 14265 case $host_cpu in 14266 hppa*64*) 14267 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14268 ;; 14269 ia64*) 14270 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14271 ;; 14272 *) 14273 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14274 ;; 14275 esac 14276 # Commands to make compiler produce verbose output that lists 14277 # what "hidden" libraries, object files and flags are used when 14278 # linking a shared library. 14279 # 14280 # There doesn't appear to be a way to prevent this compiler from 14281 # explicitly linking system object files so we need to strip them 14282 # from the output so that they don't get included in the library 14283 # dependencies. 14284 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"' 14285 ;; 14286 *) 14287 if test yes = "$GXX"; then 14288 if test no = "$with_gnu_ld"; then 14289 case $host_cpu in 14290 hppa*64*) 14291 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14292 ;; 14293 ia64*) 14294 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14295 ;; 14296 *) 14297 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' 14298 ;; 14299 esac 14300 fi 14301 else 14302 # FIXME: insert proper C++ library support 14303 ld_shlibs_CXX=no 14304 fi 14305 ;; 14306 esac 14307 ;; 14308 14309 interix[3-9]*) 14310 hardcode_direct_CXX=no 14311 hardcode_shlibpath_var_CXX=no 14312 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14313 export_dynamic_flag_spec_CXX='$wl-E' 14314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14315 # Instead, shared libraries are loaded at an image base (0x10000000 by 14316 # default) and relocated if they conflict, which is a slow very memory 14317 # consuming and fragmenting process. To avoid this, we pick a random, 14318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14319 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14320 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' 14321 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' 14322 ;; 14323 irix5* | irix6*) 14324 case $cc_basename in 14325 CC*) 14326 # SGI C++ 14327 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' 14328 14329 # Archives containing C++ object files must be created using 14330 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14331 # necessary to make sure instantiated templates are included 14332 # in the archive. 14333 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14334 ;; 14335 *) 14336 if test yes = "$GXX"; then 14337 if test no = "$with_gnu_ld"; then 14338 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' 14339 else 14340 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' 14341 fi 14342 fi 14343 link_all_deplibs_CXX=yes 14344 ;; 14345 esac 14346 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14347 hardcode_libdir_separator_CXX=: 14348 inherit_rpath_CXX=yes 14349 ;; 14350 14351 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14352 case $cc_basename in 14353 KCC*) 14354 # Kuck and Associates, Inc. (KAI) C++ Compiler 14355 14356 # KCC will only create a shared library if the output file 14357 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14358 # to its proper name (with version) after linking. 14359 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' 14360 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' 14361 # Commands to make compiler produce verbose output that lists 14362 # what "hidden" libraries, object files and flags are used when 14363 # linking a shared library. 14364 # 14365 # There doesn't appear to be a way to prevent this compiler from 14366 # explicitly linking system object files so we need to strip them 14367 # from the output so that they don't get included in the library 14368 # dependencies. 14369 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"' 14370 14371 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14372 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14373 14374 # Archives containing C++ object files must be created using 14375 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14376 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14377 ;; 14378 icpc* | ecpc* ) 14379 # Intel C++ 14380 with_gnu_ld=yes 14381 # version 8.0 and above of icpc choke on multiply defined symbols 14382 # if we add $predep_objects and $postdep_objects, however 7.1 and 14383 # earlier do not add the objects themselves. 14384 case `$CC -V 2>&1` in 14385 *"Version 7."*) 14386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14387 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' 14388 ;; 14389 *) # Version 8.0 or newer 14390 tmp_idyn= 14391 case $host_cpu in 14392 ia64*) tmp_idyn=' -i_dynamic';; 14393 esac 14394 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14395 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' 14396 ;; 14397 esac 14398 archive_cmds_need_lc_CXX=no 14399 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14400 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14401 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14402 ;; 14403 pgCC* | pgcpp*) 14404 # Portland Group C++ compiler 14405 case `$CC -V` in 14406 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14407 prelink_cmds_CXX='tpldir=Template.dir~ 14408 rm -rf $tpldir~ 14409 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14410 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14411 old_archive_cmds_CXX='tpldir=Template.dir~ 14412 rm -rf $tpldir~ 14413 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14414 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14415 $RANLIB $oldlib' 14416 archive_cmds_CXX='tpldir=Template.dir~ 14417 rm -rf $tpldir~ 14418 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14419 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14420 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14421 rm -rf $tpldir~ 14422 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14423 $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' 14424 ;; 14425 *) # Version 6 and above use weak symbols 14426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14427 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' 14428 ;; 14429 esac 14430 14431 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14432 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14433 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' 14434 ;; 14435 cxx*) 14436 # Compaq C++ 14437 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14438 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' 14439 14440 runpath_var=LD_RUN_PATH 14441 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14442 hardcode_libdir_separator_CXX=: 14443 14444 # Commands to make compiler produce verbose output that lists 14445 # what "hidden" libraries, object files and flags are used when 14446 # linking a shared library. 14447 # 14448 # There doesn't appear to be a way to prevent this compiler from 14449 # explicitly linking system object files so we need to strip them 14450 # from the output so that they don't get included in the library 14451 # dependencies. 14452 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' 14453 ;; 14454 xl* | mpixl* | bgxl*) 14455 # IBM XL 8.0 on PPC, with GNU ld 14456 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14457 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14458 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14459 if test yes = "$supports_anon_versioning"; then 14460 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14462 echo "local: *; };" >> $output_objdir/$libname.ver~ 14463 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14464 fi 14465 ;; 14466 *) 14467 case `$CC -V 2>&1 | sed 5q` in 14468 *Sun\ C*) 14469 # Sun C++ 5.9 14470 no_undefined_flag_CXX=' -zdefs' 14471 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14472 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' 14473 hardcode_libdir_flag_spec_CXX='-R$libdir' 14474 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' 14475 compiler_needs_object_CXX=yes 14476 14477 # Not sure whether something based on 14478 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14479 # would be better. 14480 output_verbose_link_cmd='func_echo_all' 14481 14482 # Archives containing C++ object files must be created using 14483 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14484 # necessary to make sure instantiated templates are included 14485 # in the archive. 14486 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14487 ;; 14488 esac 14489 ;; 14490 esac 14491 ;; 14492 14493 lynxos*) 14494 # FIXME: insert proper C++ library support 14495 ld_shlibs_CXX=no 14496 ;; 14497 14498 m88k*) 14499 # FIXME: insert proper C++ library support 14500 ld_shlibs_CXX=no 14501 ;; 14502 14503 mvs*) 14504 case $cc_basename in 14505 cxx*) 14506 # FIXME: insert proper C++ library support 14507 ld_shlibs_CXX=no 14508 ;; 14509 *) 14510 # FIXME: insert proper C++ library support 14511 ld_shlibs_CXX=no 14512 ;; 14513 esac 14514 ;; 14515 14516 netbsd*) 14517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14518 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14519 wlarc= 14520 hardcode_libdir_flag_spec_CXX='-R$libdir' 14521 hardcode_direct_CXX=yes 14522 hardcode_shlibpath_var_CXX=no 14523 fi 14524 # Workaround some broken pre-1.5 toolchains 14525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14526 ;; 14527 14528 *nto* | *qnx*) 14529 ld_shlibs_CXX=yes 14530 ;; 14531 14532 openbsd* | bitrig*) 14533 if test -f /usr/libexec/ld.so; then 14534 hardcode_direct_CXX=yes 14535 hardcode_shlibpath_var_CXX=no 14536 hardcode_direct_absolute_CXX=yes 14537 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14538 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14540 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14541 export_dynamic_flag_spec_CXX='$wl-E' 14542 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14543 fi 14544 output_verbose_link_cmd=func_echo_all 14545 else 14546 ld_shlibs_CXX=no 14547 fi 14548 ;; 14549 14550 osf3* | osf4* | osf5*) 14551 case $cc_basename in 14552 KCC*) 14553 # Kuck and Associates, Inc. (KAI) C++ Compiler 14554 14555 # KCC will only create a shared library if the output file 14556 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14557 # to its proper name (with version) after linking. 14558 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' 14559 14560 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14561 hardcode_libdir_separator_CXX=: 14562 14563 # Archives containing C++ object files must be created using 14564 # the KAI C++ compiler. 14565 case $host in 14566 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14567 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14568 esac 14569 ;; 14570 RCC*) 14571 # Rational C++ 2.4.1 14572 # FIXME: insert proper C++ library support 14573 ld_shlibs_CXX=no 14574 ;; 14575 cxx*) 14576 case $host in 14577 osf3*) 14578 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14579 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' 14580 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14581 ;; 14582 *) 14583 allow_undefined_flag_CXX=' -expect_unresolved \*' 14584 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' 14585 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14586 echo "-hidden">> $lib.exp~ 14587 $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~ 14588 $RM $lib.exp' 14589 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14590 ;; 14591 esac 14592 14593 hardcode_libdir_separator_CXX=: 14594 14595 # Commands to make compiler produce verbose output that lists 14596 # what "hidden" libraries, object files and flags are used when 14597 # linking a shared library. 14598 # 14599 # There doesn't appear to be a way to prevent this compiler from 14600 # explicitly linking system object files so we need to strip them 14601 # from the output so that they don't get included in the library 14602 # dependencies. 14603 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"' 14604 ;; 14605 *) 14606 if test yes,no = "$GXX,$with_gnu_ld"; then 14607 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14608 case $host in 14609 osf3*) 14610 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' 14611 ;; 14612 *) 14613 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' 14614 ;; 14615 esac 14616 14617 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14618 hardcode_libdir_separator_CXX=: 14619 14620 # Commands to make compiler produce verbose output that lists 14621 # what "hidden" libraries, object files and flags are used when 14622 # linking a shared library. 14623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14624 14625 else 14626 # FIXME: insert proper C++ library support 14627 ld_shlibs_CXX=no 14628 fi 14629 ;; 14630 esac 14631 ;; 14632 14633 psos*) 14634 # FIXME: insert proper C++ library support 14635 ld_shlibs_CXX=no 14636 ;; 14637 14638 sunos4*) 14639 case $cc_basename in 14640 CC*) 14641 # Sun C++ 4.x 14642 # FIXME: insert proper C++ library support 14643 ld_shlibs_CXX=no 14644 ;; 14645 lcc*) 14646 # Lucid 14647 # FIXME: insert proper C++ library support 14648 ld_shlibs_CXX=no 14649 ;; 14650 *) 14651 # FIXME: insert proper C++ library support 14652 ld_shlibs_CXX=no 14653 ;; 14654 esac 14655 ;; 14656 14657 solaris*) 14658 case $cc_basename in 14659 CC* | sunCC*) 14660 # Sun C++ 4.2, 5.x and Centerline C++ 14661 archive_cmds_need_lc_CXX=yes 14662 no_undefined_flag_CXX=' -zdefs' 14663 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14664 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14665 $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' 14666 14667 hardcode_libdir_flag_spec_CXX='-R$libdir' 14668 hardcode_shlibpath_var_CXX=no 14669 case $host_os in 14670 solaris2.[0-5] | solaris2.[0-5].*) ;; 14671 *) 14672 # The compiler driver will combine and reorder linker options, 14673 # but understands '-z linker_flag'. 14674 # Supported since Solaris 2.6 (maybe 2.5.1?) 14675 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14676 ;; 14677 esac 14678 link_all_deplibs_CXX=yes 14679 14680 output_verbose_link_cmd='func_echo_all' 14681 14682 # Archives containing C++ object files must be created using 14683 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14684 # necessary to make sure instantiated templates are included 14685 # in the archive. 14686 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14687 ;; 14688 gcx*) 14689 # Green Hills C++ Compiler 14690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14691 14692 # The C++ compiler must be used to create the archive. 14693 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14694 ;; 14695 *) 14696 # GNU C++ compiler with Solaris linker 14697 if test yes,no = "$GXX,$with_gnu_ld"; then 14698 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14699 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14700 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14701 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14702 $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' 14703 14704 # Commands to make compiler produce verbose output that lists 14705 # what "hidden" libraries, object files and flags are used when 14706 # linking a shared library. 14707 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14708 else 14709 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14710 # platform. 14711 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14712 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14713 $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' 14714 14715 # Commands to make compiler produce verbose output that lists 14716 # what "hidden" libraries, object files and flags are used when 14717 # linking a shared library. 14718 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14719 fi 14720 14721 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14722 case $host_os in 14723 solaris2.[0-5] | solaris2.[0-5].*) ;; 14724 *) 14725 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14726 ;; 14727 esac 14728 fi 14729 ;; 14730 esac 14731 ;; 14732 14733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14734 no_undefined_flag_CXX='$wl-z,text' 14735 archive_cmds_need_lc_CXX=no 14736 hardcode_shlibpath_var_CXX=no 14737 runpath_var='LD_RUN_PATH' 14738 14739 case $cc_basename in 14740 CC*) 14741 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14742 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14743 ;; 14744 *) 14745 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14746 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14747 ;; 14748 esac 14749 ;; 14750 14751 sysv5* | sco3.2v5* | sco5v6*) 14752 # Note: We CANNOT use -z defs as we might desire, because we do not 14753 # link with -lc, and that would cause any symbols used from libc to 14754 # always be unresolved, which means just about no library would 14755 # ever link correctly. If we're not using GNU ld we use -z text 14756 # though, which does catch some bad symbols but isn't as heavy-handed 14757 # as -z defs. 14758 no_undefined_flag_CXX='$wl-z,text' 14759 allow_undefined_flag_CXX='$wl-z,nodefs' 14760 archive_cmds_need_lc_CXX=no 14761 hardcode_shlibpath_var_CXX=no 14762 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14763 hardcode_libdir_separator_CXX=':' 14764 link_all_deplibs_CXX=yes 14765 export_dynamic_flag_spec_CXX='$wl-Bexport' 14766 runpath_var='LD_RUN_PATH' 14767 14768 case $cc_basename in 14769 CC*) 14770 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14771 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14772 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14773 '"$old_archive_cmds_CXX" 14774 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14775 '"$reload_cmds_CXX" 14776 ;; 14777 *) 14778 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14779 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14780 ;; 14781 esac 14782 ;; 14783 14784 tandem*) 14785 case $cc_basename in 14786 NCC*) 14787 # NonStop-UX NCC 3.20 14788 # FIXME: insert proper C++ library support 14789 ld_shlibs_CXX=no 14790 ;; 14791 *) 14792 # FIXME: insert proper C++ library support 14793 ld_shlibs_CXX=no 14794 ;; 14795 esac 14796 ;; 14797 14798 vxworks*) 14799 # FIXME: insert proper C++ library support 14800 ld_shlibs_CXX=no 14801 ;; 14802 14803 *) 14804 # FIXME: insert proper C++ library support 14805 ld_shlibs_CXX=no 14806 ;; 14807 esac 14808 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14810$as_echo "$ld_shlibs_CXX" >&6; } 14811 test no = "$ld_shlibs_CXX" && can_build_shared=no 14812 14813 GCC_CXX=$GXX 14814 LD_CXX=$LD 14815 14816 ## CAVEAT EMPTOR: 14817 ## There is no encapsulation within the following macros, do not change 14818 ## the running order or otherwise move them around unless you know exactly 14819 ## what you are doing... 14820 # Dependencies to place before and after the object being linked: 14821predep_objects_CXX= 14822postdep_objects_CXX= 14823predeps_CXX= 14824postdeps_CXX= 14825compiler_lib_search_path_CXX= 14826 14827cat > conftest.$ac_ext <<_LT_EOF 14828class Foo 14829{ 14830public: 14831 Foo (void) { a = 0; } 14832private: 14833 int a; 14834}; 14835_LT_EOF 14836 14837 14838_lt_libdeps_save_CFLAGS=$CFLAGS 14839case "$CC $CFLAGS " in #( 14840*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14841*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14842*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14843esac 14844 14845if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14846 (eval $ac_compile) 2>&5 14847 ac_status=$? 14848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14849 test $ac_status = 0; }; then 14850 # Parse the compiler output and extract the necessary 14851 # objects, libraries and library flags. 14852 14853 # Sentinel used to keep track of whether or not we are before 14854 # the conftest object file. 14855 pre_test_object_deps_done=no 14856 14857 for p in `eval "$output_verbose_link_cmd"`; do 14858 case $prev$p in 14859 14860 -L* | -R* | -l*) 14861 # Some compilers place space between "-{L,R}" and the path. 14862 # Remove the space. 14863 if test x-L = "$p" || 14864 test x-R = "$p"; then 14865 prev=$p 14866 continue 14867 fi 14868 14869 # Expand the sysroot to ease extracting the directories later. 14870 if test -z "$prev"; then 14871 case $p in 14872 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14873 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14874 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14875 esac 14876 fi 14877 case $p in 14878 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14879 esac 14880 if test no = "$pre_test_object_deps_done"; then 14881 case $prev in 14882 -L | -R) 14883 # Internal compiler library paths should come after those 14884 # provided the user. The postdeps already come after the 14885 # user supplied libs so there is no need to process them. 14886 if test -z "$compiler_lib_search_path_CXX"; then 14887 compiler_lib_search_path_CXX=$prev$p 14888 else 14889 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14890 fi 14891 ;; 14892 # The "-l" case would never come before the object being 14893 # linked, so don't bother handling this case. 14894 esac 14895 else 14896 if test -z "$postdeps_CXX"; then 14897 postdeps_CXX=$prev$p 14898 else 14899 postdeps_CXX="${postdeps_CXX} $prev$p" 14900 fi 14901 fi 14902 prev= 14903 ;; 14904 14905 *.lto.$objext) ;; # Ignore GCC LTO objects 14906 *.$objext) 14907 # This assumes that the test object file only shows up 14908 # once in the compiler output. 14909 if test "$p" = "conftest.$objext"; then 14910 pre_test_object_deps_done=yes 14911 continue 14912 fi 14913 14914 if test no = "$pre_test_object_deps_done"; then 14915 if test -z "$predep_objects_CXX"; then 14916 predep_objects_CXX=$p 14917 else 14918 predep_objects_CXX="$predep_objects_CXX $p" 14919 fi 14920 else 14921 if test -z "$postdep_objects_CXX"; then 14922 postdep_objects_CXX=$p 14923 else 14924 postdep_objects_CXX="$postdep_objects_CXX $p" 14925 fi 14926 fi 14927 ;; 14928 14929 *) ;; # Ignore the rest. 14930 14931 esac 14932 done 14933 14934 # Clean up. 14935 rm -f a.out a.exe 14936else 14937 echo "libtool.m4: error: problem compiling CXX test program" 14938fi 14939 14940$RM -f confest.$objext 14941CFLAGS=$_lt_libdeps_save_CFLAGS 14942 14943# PORTME: override above test on systems where it is broken 14944case $host_os in 14945interix[3-9]*) 14946 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14947 # hack all around it, let's just trust "g++" to DTRT. 14948 predep_objects_CXX= 14949 postdep_objects_CXX= 14950 postdeps_CXX= 14951 ;; 14952esac 14953 14954 14955case " $postdeps_CXX " in 14956*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14957esac 14958 compiler_lib_search_dirs_CXX= 14959if test -n "${compiler_lib_search_path_CXX}"; then 14960 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14961fi 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 lt_prog_compiler_wl_CXX= 14994lt_prog_compiler_pic_CXX= 14995lt_prog_compiler_static_CXX= 14996 14997 14998 # C++ specific cases for pic, static, wl, etc. 14999 if test yes = "$GXX"; then 15000 lt_prog_compiler_wl_CXX='-Wl,' 15001 lt_prog_compiler_static_CXX='-static' 15002 15003 case $host_os in 15004 aix*) 15005 # All AIX code is PIC. 15006 if test ia64 = "$host_cpu"; then 15007 # AIX 5 now supports IA64 processor 15008 lt_prog_compiler_static_CXX='-Bstatic' 15009 fi 15010 lt_prog_compiler_pic_CXX='-fPIC' 15011 ;; 15012 15013 amigaos*) 15014 case $host_cpu in 15015 powerpc) 15016 # see comment about AmigaOS4 .so support 15017 lt_prog_compiler_pic_CXX='-fPIC' 15018 ;; 15019 m68k) 15020 # FIXME: we need at least 68020 code to build shared libraries, but 15021 # adding the '-m68020' flag to GCC prevents building anything better, 15022 # like '-m68040'. 15023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15024 ;; 15025 esac 15026 ;; 15027 15028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15029 # PIC is the default for these OSes. 15030 ;; 15031 mingw* | cygwin* | os2* | pw32* | cegcc*) 15032 # This hack is so that the source file can tell whether it is being 15033 # built for inclusion in a dll (and should export symbols for example). 15034 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15035 # (--disable-auto-import) libraries 15036 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15037 case $host_os in 15038 os2*) 15039 lt_prog_compiler_static_CXX='$wl-static' 15040 ;; 15041 esac 15042 ;; 15043 darwin* | rhapsody*) 15044 # PIC is the default on this platform 15045 # Common symbols not allowed in MH_DYLIB files 15046 lt_prog_compiler_pic_CXX='-fno-common' 15047 ;; 15048 *djgpp*) 15049 # DJGPP does not support shared libraries at all 15050 lt_prog_compiler_pic_CXX= 15051 ;; 15052 haiku*) 15053 # PIC is the default for Haiku. 15054 # The "-static" flag exists, but is broken. 15055 lt_prog_compiler_static_CXX= 15056 ;; 15057 interix[3-9]*) 15058 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15059 # Instead, we relocate shared libraries at runtime. 15060 ;; 15061 sysv4*MP*) 15062 if test -d /usr/nec; then 15063 lt_prog_compiler_pic_CXX=-Kconform_pic 15064 fi 15065 ;; 15066 hpux*) 15067 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15068 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15069 # sets the default TLS model and affects inlining. 15070 case $host_cpu in 15071 hppa*64*) 15072 ;; 15073 *) 15074 lt_prog_compiler_pic_CXX='-fPIC' 15075 ;; 15076 esac 15077 ;; 15078 *qnx* | *nto*) 15079 # QNX uses GNU C++, but need to define -shared option too, otherwise 15080 # it will coredump. 15081 lt_prog_compiler_pic_CXX='-fPIC -shared' 15082 ;; 15083 *) 15084 lt_prog_compiler_pic_CXX='-fPIC' 15085 ;; 15086 esac 15087 else 15088 case $host_os in 15089 aix[4-9]*) 15090 # All AIX code is PIC. 15091 if test ia64 = "$host_cpu"; then 15092 # AIX 5 now supports IA64 processor 15093 lt_prog_compiler_static_CXX='-Bstatic' 15094 else 15095 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15096 fi 15097 ;; 15098 chorus*) 15099 case $cc_basename in 15100 cxch68*) 15101 # Green Hills C++ Compiler 15102 # _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" 15103 ;; 15104 esac 15105 ;; 15106 mingw* | cygwin* | os2* | pw32* | cegcc*) 15107 # This hack is so that the source file can tell whether it is being 15108 # built for inclusion in a dll (and should export symbols for example). 15109 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15110 ;; 15111 dgux*) 15112 case $cc_basename in 15113 ec++*) 15114 lt_prog_compiler_pic_CXX='-KPIC' 15115 ;; 15116 ghcx*) 15117 # Green Hills C++ Compiler 15118 lt_prog_compiler_pic_CXX='-pic' 15119 ;; 15120 *) 15121 ;; 15122 esac 15123 ;; 15124 freebsd* | dragonfly*) 15125 # FreeBSD uses GNU C++ 15126 ;; 15127 hpux9* | hpux10* | hpux11*) 15128 case $cc_basename in 15129 CC*) 15130 lt_prog_compiler_wl_CXX='-Wl,' 15131 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15132 if test ia64 != "$host_cpu"; then 15133 lt_prog_compiler_pic_CXX='+Z' 15134 fi 15135 ;; 15136 aCC*) 15137 lt_prog_compiler_wl_CXX='-Wl,' 15138 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15139 case $host_cpu in 15140 hppa*64*|ia64*) 15141 # +Z the default 15142 ;; 15143 *) 15144 lt_prog_compiler_pic_CXX='+Z' 15145 ;; 15146 esac 15147 ;; 15148 *) 15149 ;; 15150 esac 15151 ;; 15152 interix*) 15153 # This is c89, which is MS Visual C++ (no shared libs) 15154 # Anyone wants to do a port? 15155 ;; 15156 irix5* | irix6* | nonstopux*) 15157 case $cc_basename in 15158 CC*) 15159 lt_prog_compiler_wl_CXX='-Wl,' 15160 lt_prog_compiler_static_CXX='-non_shared' 15161 # CC pic flag -KPIC is the default. 15162 ;; 15163 *) 15164 ;; 15165 esac 15166 ;; 15167 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15168 case $cc_basename in 15169 KCC*) 15170 # KAI C++ Compiler 15171 lt_prog_compiler_wl_CXX='--backend -Wl,' 15172 lt_prog_compiler_pic_CXX='-fPIC' 15173 ;; 15174 ecpc* ) 15175 # old Intel C++ for x86_64, which still supported -KPIC. 15176 lt_prog_compiler_wl_CXX='-Wl,' 15177 lt_prog_compiler_pic_CXX='-KPIC' 15178 lt_prog_compiler_static_CXX='-static' 15179 ;; 15180 icpc* ) 15181 # Intel C++, used to be incompatible with GCC. 15182 # ICC 10 doesn't accept -KPIC any more. 15183 lt_prog_compiler_wl_CXX='-Wl,' 15184 lt_prog_compiler_pic_CXX='-fPIC' 15185 lt_prog_compiler_static_CXX='-static' 15186 ;; 15187 pgCC* | pgcpp*) 15188 # Portland Group C++ compiler 15189 lt_prog_compiler_wl_CXX='-Wl,' 15190 lt_prog_compiler_pic_CXX='-fpic' 15191 lt_prog_compiler_static_CXX='-Bstatic' 15192 ;; 15193 cxx*) 15194 # Compaq C++ 15195 # Make sure the PIC flag is empty. It appears that all Alpha 15196 # Linux and Compaq Tru64 Unix objects are PIC. 15197 lt_prog_compiler_pic_CXX= 15198 lt_prog_compiler_static_CXX='-non_shared' 15199 ;; 15200 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15201 # IBM XL 8.0, 9.0 on PPC and BlueGene 15202 lt_prog_compiler_wl_CXX='-Wl,' 15203 lt_prog_compiler_pic_CXX='-qpic' 15204 lt_prog_compiler_static_CXX='-qstaticlink' 15205 ;; 15206 *) 15207 case `$CC -V 2>&1 | sed 5q` in 15208 *Sun\ C*) 15209 # Sun C++ 5.9 15210 lt_prog_compiler_pic_CXX='-KPIC' 15211 lt_prog_compiler_static_CXX='-Bstatic' 15212 lt_prog_compiler_wl_CXX='-Qoption ld ' 15213 ;; 15214 esac 15215 ;; 15216 esac 15217 ;; 15218 lynxos*) 15219 ;; 15220 m88k*) 15221 ;; 15222 mvs*) 15223 case $cc_basename in 15224 cxx*) 15225 lt_prog_compiler_pic_CXX='-W c,exportall' 15226 ;; 15227 *) 15228 ;; 15229 esac 15230 ;; 15231 netbsd*) 15232 ;; 15233 *qnx* | *nto*) 15234 # QNX uses GNU C++, but need to define -shared option too, otherwise 15235 # it will coredump. 15236 lt_prog_compiler_pic_CXX='-fPIC -shared' 15237 ;; 15238 osf3* | osf4* | osf5*) 15239 case $cc_basename in 15240 KCC*) 15241 lt_prog_compiler_wl_CXX='--backend -Wl,' 15242 ;; 15243 RCC*) 15244 # Rational C++ 2.4.1 15245 lt_prog_compiler_pic_CXX='-pic' 15246 ;; 15247 cxx*) 15248 # Digital/Compaq C++ 15249 lt_prog_compiler_wl_CXX='-Wl,' 15250 # Make sure the PIC flag is empty. It appears that all Alpha 15251 # Linux and Compaq Tru64 Unix objects are PIC. 15252 lt_prog_compiler_pic_CXX= 15253 lt_prog_compiler_static_CXX='-non_shared' 15254 ;; 15255 *) 15256 ;; 15257 esac 15258 ;; 15259 psos*) 15260 ;; 15261 solaris*) 15262 case $cc_basename in 15263 CC* | sunCC*) 15264 # Sun C++ 4.2, 5.x and Centerline C++ 15265 lt_prog_compiler_pic_CXX='-KPIC' 15266 lt_prog_compiler_static_CXX='-Bstatic' 15267 lt_prog_compiler_wl_CXX='-Qoption ld ' 15268 ;; 15269 gcx*) 15270 # Green Hills C++ Compiler 15271 lt_prog_compiler_pic_CXX='-PIC' 15272 ;; 15273 *) 15274 ;; 15275 esac 15276 ;; 15277 sunos4*) 15278 case $cc_basename in 15279 CC*) 15280 # Sun C++ 4.x 15281 lt_prog_compiler_pic_CXX='-pic' 15282 lt_prog_compiler_static_CXX='-Bstatic' 15283 ;; 15284 lcc*) 15285 # Lucid 15286 lt_prog_compiler_pic_CXX='-pic' 15287 ;; 15288 *) 15289 ;; 15290 esac 15291 ;; 15292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15293 case $cc_basename in 15294 CC*) 15295 lt_prog_compiler_wl_CXX='-Wl,' 15296 lt_prog_compiler_pic_CXX='-KPIC' 15297 lt_prog_compiler_static_CXX='-Bstatic' 15298 ;; 15299 esac 15300 ;; 15301 tandem*) 15302 case $cc_basename in 15303 NCC*) 15304 # NonStop-UX NCC 3.20 15305 lt_prog_compiler_pic_CXX='-KPIC' 15306 ;; 15307 *) 15308 ;; 15309 esac 15310 ;; 15311 vxworks*) 15312 ;; 15313 *) 15314 lt_prog_compiler_can_build_shared_CXX=no 15315 ;; 15316 esac 15317 fi 15318 15319case $host_os in 15320 # For platforms that do not support PIC, -DPIC is meaningless: 15321 *djgpp*) 15322 lt_prog_compiler_pic_CXX= 15323 ;; 15324 *) 15325 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15326 ;; 15327esac 15328 15329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15330$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15331if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15332 $as_echo_n "(cached) " >&6 15333else 15334 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15335fi 15336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15337$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15338lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15339 15340# 15341# Check to make sure the PIC flag actually works. 15342# 15343if test -n "$lt_prog_compiler_pic_CXX"; then 15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15345$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15346if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15347 $as_echo_n "(cached) " >&6 15348else 15349 lt_cv_prog_compiler_pic_works_CXX=no 15350 ac_outfile=conftest.$ac_objext 15351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15352 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15353 # Insert the option either (1) after the last *FLAGS variable, or 15354 # (2) before a word containing "conftest.", or (3) at the end. 15355 # Note that $ac_compile itself does not contain backslashes and begins 15356 # with a dollar sign (not a hyphen), so the echo should work correctly. 15357 # The option is referenced via a variable to avoid confusing sed. 15358 lt_compile=`echo "$ac_compile" | $SED \ 15359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15361 -e 's:$: $lt_compiler_flag:'` 15362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15363 (eval "$lt_compile" 2>conftest.err) 15364 ac_status=$? 15365 cat conftest.err >&5 15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15367 if (exit $ac_status) && test -s "$ac_outfile"; then 15368 # The compiler can only warn and ignore the option if not recognized 15369 # So say no if there are warnings other than the usual output. 15370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15373 lt_cv_prog_compiler_pic_works_CXX=yes 15374 fi 15375 fi 15376 $RM conftest* 15377 15378fi 15379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15380$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15381 15382if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15383 case $lt_prog_compiler_pic_CXX in 15384 "" | " "*) ;; 15385 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15386 esac 15387else 15388 lt_prog_compiler_pic_CXX= 15389 lt_prog_compiler_can_build_shared_CXX=no 15390fi 15391 15392fi 15393 15394 15395 15396 15397 15398# 15399# Check to make sure the static flag actually works. 15400# 15401wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15403$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15404if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15405 $as_echo_n "(cached) " >&6 15406else 15407 lt_cv_prog_compiler_static_works_CXX=no 15408 save_LDFLAGS=$LDFLAGS 15409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15410 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15412 # The linker can only warn and ignore the option if not recognized 15413 # So say no if there are warnings 15414 if test -s conftest.err; then 15415 # Append any errors to the config.log. 15416 cat conftest.err 1>&5 15417 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15419 if diff conftest.exp conftest.er2 >/dev/null; then 15420 lt_cv_prog_compiler_static_works_CXX=yes 15421 fi 15422 else 15423 lt_cv_prog_compiler_static_works_CXX=yes 15424 fi 15425 fi 15426 $RM -r conftest* 15427 LDFLAGS=$save_LDFLAGS 15428 15429fi 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15431$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15432 15433if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15434 : 15435else 15436 lt_prog_compiler_static_CXX= 15437fi 15438 15439 15440 15441 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15443$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15444if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15445 $as_echo_n "(cached) " >&6 15446else 15447 lt_cv_prog_compiler_c_o_CXX=no 15448 $RM -r conftest 2>/dev/null 15449 mkdir conftest 15450 cd conftest 15451 mkdir out 15452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15453 15454 lt_compiler_flag="-o out/conftest2.$ac_objext" 15455 # Insert the option either (1) after the last *FLAGS variable, or 15456 # (2) before a word containing "conftest.", or (3) at the end. 15457 # Note that $ac_compile itself does not contain backslashes and begins 15458 # with a dollar sign (not a hyphen), so the echo should work correctly. 15459 lt_compile=`echo "$ac_compile" | $SED \ 15460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15462 -e 's:$: $lt_compiler_flag:'` 15463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15464 (eval "$lt_compile" 2>out/conftest.err) 15465 ac_status=$? 15466 cat out/conftest.err >&5 15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15468 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15469 then 15470 # The compiler can only warn and ignore the option if not recognized 15471 # So say no if there are warnings 15472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15475 lt_cv_prog_compiler_c_o_CXX=yes 15476 fi 15477 fi 15478 chmod u+w . 2>&5 15479 $RM conftest* 15480 # SGI C++ compiler will create directory out/ii_files/ for 15481 # template instantiation 15482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15483 $RM out/* && rmdir out 15484 cd .. 15485 $RM -r conftest 15486 $RM conftest* 15487 15488fi 15489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15490$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15491 15492 15493 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15495$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15496if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15497 $as_echo_n "(cached) " >&6 15498else 15499 lt_cv_prog_compiler_c_o_CXX=no 15500 $RM -r conftest 2>/dev/null 15501 mkdir conftest 15502 cd conftest 15503 mkdir out 15504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15505 15506 lt_compiler_flag="-o out/conftest2.$ac_objext" 15507 # Insert the option either (1) after the last *FLAGS variable, or 15508 # (2) before a word containing "conftest.", or (3) at the end. 15509 # Note that $ac_compile itself does not contain backslashes and begins 15510 # with a dollar sign (not a hyphen), so the echo should work correctly. 15511 lt_compile=`echo "$ac_compile" | $SED \ 15512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15514 -e 's:$: $lt_compiler_flag:'` 15515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15516 (eval "$lt_compile" 2>out/conftest.err) 15517 ac_status=$? 15518 cat out/conftest.err >&5 15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15520 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15521 then 15522 # The compiler can only warn and ignore the option if not recognized 15523 # So say no if there are warnings 15524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15527 lt_cv_prog_compiler_c_o_CXX=yes 15528 fi 15529 fi 15530 chmod u+w . 2>&5 15531 $RM conftest* 15532 # SGI C++ compiler will create directory out/ii_files/ for 15533 # template instantiation 15534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15535 $RM out/* && rmdir out 15536 cd .. 15537 $RM -r conftest 15538 $RM conftest* 15539 15540fi 15541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15542$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15543 15544 15545 15546 15547hard_links=nottested 15548if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15549 # do not overwrite the value of need_locks provided by the user 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15551$as_echo_n "checking if we can lock with hard links... " >&6; } 15552 hard_links=yes 15553 $RM conftest* 15554 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15555 touch conftest.a 15556 ln conftest.a conftest.b 2>&5 || hard_links=no 15557 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15559$as_echo "$hard_links" >&6; } 15560 if test no = "$hard_links"; then 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15562$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15563 need_locks=warn 15564 fi 15565else 15566 need_locks=no 15567fi 15568 15569 15570 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15572$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15573 15574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15575 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15576 case $host_os in 15577 aix[4-9]*) 15578 # If we're using GNU nm, then we don't want the "-C" option. 15579 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15580 # Without the "-l" option, or with the "-B" option, AIX nm treats 15581 # weak defined symbols like other global defined symbols, whereas 15582 # GNU nm marks them as "W". 15583 # While the 'weak' keyword is ignored in the Export File, we need 15584 # it in the Import File for the 'aix-soname' feature, so we have 15585 # to replace the "-B" option with "-P" for AIX nm. 15586 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15587 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' 15588 else 15589 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15590 fi 15591 ;; 15592 pw32*) 15593 export_symbols_cmds_CXX=$ltdll_cmds 15594 ;; 15595 cygwin* | mingw* | cegcc*) 15596 case $cc_basename in 15597 cl* | icl*) 15598 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15599 ;; 15600 *) 15601 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' 15602 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15603 ;; 15604 esac 15605 ;; 15606 *) 15607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15608 ;; 15609 esac 15610 15611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15612$as_echo "$ld_shlibs_CXX" >&6; } 15613test no = "$ld_shlibs_CXX" && can_build_shared=no 15614 15615with_gnu_ld_CXX=$with_gnu_ld 15616 15617 15618 15619 15620 15621 15622# 15623# Do we need to explicitly link libc? 15624# 15625case "x$archive_cmds_need_lc_CXX" in 15626x|xyes) 15627 # Assume -lc should be added 15628 archive_cmds_need_lc_CXX=yes 15629 15630 if test yes,yes = "$GCC,$enable_shared"; then 15631 case $archive_cmds_CXX in 15632 *'~'*) 15633 # FIXME: we may have to deal with multi-command sequences. 15634 ;; 15635 '$CC '*) 15636 # Test whether the compiler implicitly links with -lc since on some 15637 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15638 # to ld, don't add -lc before -lgcc. 15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15640$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15641if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15642 $as_echo_n "(cached) " >&6 15643else 15644 $RM conftest* 15645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15646 15647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15648 (eval $ac_compile) 2>&5 15649 ac_status=$? 15650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15651 test $ac_status = 0; } 2>conftest.err; then 15652 soname=conftest 15653 lib=conftest 15654 libobjs=conftest.$ac_objext 15655 deplibs= 15656 wl=$lt_prog_compiler_wl_CXX 15657 pic_flag=$lt_prog_compiler_pic_CXX 15658 compiler_flags=-v 15659 linker_flags=-v 15660 verstring= 15661 output_objdir=. 15662 libname=conftest 15663 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15664 allow_undefined_flag_CXX= 15665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15666 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15667 ac_status=$? 15668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15669 test $ac_status = 0; } 15670 then 15671 lt_cv_archive_cmds_need_lc_CXX=no 15672 else 15673 lt_cv_archive_cmds_need_lc_CXX=yes 15674 fi 15675 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15676 else 15677 cat conftest.err 1>&5 15678 fi 15679 $RM conftest* 15680 15681fi 15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15683$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15684 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15685 ;; 15686 esac 15687 fi 15688 ;; 15689esac 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15753$as_echo_n "checking dynamic linker characteristics... " >&6; } 15754 15755library_names_spec= 15756libname_spec='lib$name' 15757soname_spec= 15758shrext_cmds=.so 15759postinstall_cmds= 15760postuninstall_cmds= 15761finish_cmds= 15762finish_eval= 15763shlibpath_var= 15764shlibpath_overrides_runpath=unknown 15765version_type=none 15766dynamic_linker="$host_os ld.so" 15767sys_lib_dlsearch_path_spec="/lib /usr/lib" 15768need_lib_prefix=unknown 15769hardcode_into_libs=no 15770 15771# when you set need_version to no, make sure it does not cause -set_version 15772# flags to be left without arguments 15773need_version=unknown 15774 15775 15776 15777case $host_os in 15778aix3*) 15779 version_type=linux # correct to gnu/linux during the next big refactor 15780 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15781 shlibpath_var=LIBPATH 15782 15783 # AIX 3 has no versioning support, so we append a major version to the name. 15784 soname_spec='$libname$release$shared_ext$major' 15785 ;; 15786 15787aix[4-9]*) 15788 version_type=linux # correct to gnu/linux during the next big refactor 15789 need_lib_prefix=no 15790 need_version=no 15791 hardcode_into_libs=yes 15792 if test ia64 = "$host_cpu"; then 15793 # AIX 5 supports IA64 15794 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15795 shlibpath_var=LD_LIBRARY_PATH 15796 else 15797 # With GCC up to 2.95.x, collect2 would create an import file 15798 # for dependence libraries. The import file would start with 15799 # the line '#! .'. This would cause the generated library to 15800 # depend on '.', always an invalid library. This was fixed in 15801 # development snapshots of GCC prior to 3.0. 15802 case $host_os in 15803 aix4 | aix4.[01] | aix4.[01].*) 15804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15805 echo ' yes ' 15806 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15807 : 15808 else 15809 can_build_shared=no 15810 fi 15811 ;; 15812 esac 15813 # Using Import Files as archive members, it is possible to support 15814 # filename-based versioning of shared library archives on AIX. While 15815 # this would work for both with and without runtime linking, it will 15816 # prevent static linking of such archives. So we do filename-based 15817 # shared library versioning with .so extension only, which is used 15818 # when both runtime linking and shared linking is enabled. 15819 # Unfortunately, runtime linking may impact performance, so we do 15820 # not want this to be the default eventually. Also, we use the 15821 # versioned .so libs for executables only if there is the -brtl 15822 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15823 # To allow for filename-based versioning support, we need to create 15824 # libNAME.so.V as an archive file, containing: 15825 # *) an Import File, referring to the versioned filename of the 15826 # archive as well as the shared archive member, telling the 15827 # bitwidth (32 or 64) of that shared object, and providing the 15828 # list of exported symbols of that shared object, eventually 15829 # decorated with the 'weak' keyword 15830 # *) the shared object with the F_LOADONLY flag set, to really avoid 15831 # it being seen by the linker. 15832 # At run time we better use the real file rather than another symlink, 15833 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15834 15835 case $with_aix_soname,$aix_use_runtimelinking in 15836 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15837 # soname into executable. Probably we can add versioning support to 15838 # collect2, so additional links can be useful in future. 15839 aix,yes) # traditional libtool 15840 dynamic_linker='AIX unversionable lib.so' 15841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15842 # instead of lib<name>.a to let people know that these are not 15843 # typical AIX shared libraries. 15844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15845 ;; 15846 aix,no) # traditional AIX only 15847 dynamic_linker='AIX lib.a(lib.so.V)' 15848 # We preserve .a as extension for shared libraries through AIX4.2 15849 # and later when we are not doing run time linking. 15850 library_names_spec='$libname$release.a $libname.a' 15851 soname_spec='$libname$release$shared_ext$major' 15852 ;; 15853 svr4,*) # full svr4 only 15854 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15855 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15856 # We do not specify a path in Import Files, so LIBPATH fires. 15857 shlibpath_overrides_runpath=yes 15858 ;; 15859 *,yes) # both, prefer svr4 15860 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15861 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15862 # unpreferred sharedlib libNAME.a needs extra handling 15863 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"' 15864 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"' 15865 # We do not specify a path in Import Files, so LIBPATH fires. 15866 shlibpath_overrides_runpath=yes 15867 ;; 15868 *,no) # both, prefer aix 15869 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15870 library_names_spec='$libname$release.a $libname.a' 15871 soname_spec='$libname$release$shared_ext$major' 15872 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15873 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)' 15874 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"' 15875 ;; 15876 esac 15877 shlibpath_var=LIBPATH 15878 fi 15879 ;; 15880 15881amigaos*) 15882 case $host_cpu in 15883 powerpc) 15884 # Since July 2007 AmigaOS4 officially supports .so libraries. 15885 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15887 ;; 15888 m68k) 15889 library_names_spec='$libname.ixlibrary $libname.a' 15890 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15891 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' 15892 ;; 15893 esac 15894 ;; 15895 15896beos*) 15897 library_names_spec='$libname$shared_ext' 15898 dynamic_linker="$host_os ld.so" 15899 shlibpath_var=LIBRARY_PATH 15900 ;; 15901 15902bsdi[45]*) 15903 version_type=linux # correct to gnu/linux during the next big refactor 15904 need_version=no 15905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15906 soname_spec='$libname$release$shared_ext$major' 15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15908 shlibpath_var=LD_LIBRARY_PATH 15909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15911 # the default ld.so.conf also contains /usr/contrib/lib and 15912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15913 # libtool to hard-code these into programs 15914 ;; 15915 15916cygwin* | mingw* | pw32* | cegcc*) 15917 version_type=windows 15918 shrext_cmds=.dll 15919 need_version=no 15920 need_lib_prefix=no 15921 15922 case $GCC,$cc_basename in 15923 yes,*) 15924 # gcc 15925 library_names_spec='$libname.dll.a' 15926 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15927 postinstall_cmds='base_file=`basename \$file`~ 15928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15929 dldir=$destdir/`dirname \$dlpath`~ 15930 test -d \$dldir || mkdir -p \$dldir~ 15931 $install_prog $dir/$dlname \$dldir/$dlname~ 15932 chmod a+x \$dldir/$dlname~ 15933 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15934 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15935 fi' 15936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15937 dlpath=$dir/\$dldll~ 15938 $RM \$dlpath' 15939 shlibpath_overrides_runpath=yes 15940 15941 case $host_os in 15942 cygwin*) 15943 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15944 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15945 15946 ;; 15947 mingw* | cegcc*) 15948 # MinGW DLLs use traditional 'lib' prefix 15949 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15950 ;; 15951 pw32*) 15952 # pw32 DLLs use 'pw' prefix rather than 'lib' 15953 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15954 ;; 15955 esac 15956 dynamic_linker='Win32 ld.exe' 15957 ;; 15958 15959 *,cl* | *,icl*) 15960 # Native MSVC or ICC 15961 libname_spec='$name' 15962 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15963 library_names_spec='$libname.dll.lib' 15964 15965 case $build_os in 15966 mingw*) 15967 sys_lib_search_path_spec= 15968 lt_save_ifs=$IFS 15969 IFS=';' 15970 for lt_path in $LIB 15971 do 15972 IFS=$lt_save_ifs 15973 # Let DOS variable expansion print the short 8.3 style file name. 15974 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15975 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15976 done 15977 IFS=$lt_save_ifs 15978 # Convert to MSYS style. 15979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15980 ;; 15981 cygwin*) 15982 # Convert to unix form, then to dos form, then back to unix form 15983 # but this time dos style (no spaces!) so that the unix form looks 15984 # like /cygdrive/c/PROGRA~1:/cygdr... 15985 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15986 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15987 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15988 ;; 15989 *) 15990 sys_lib_search_path_spec=$LIB 15991 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15992 # It is most probably a Windows format PATH. 15993 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15994 else 15995 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15996 fi 15997 # FIXME: find the short name or the path components, as spaces are 15998 # common. (e.g. "Program Files" -> "PROGRA~1") 15999 ;; 16000 esac 16001 16002 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16003 postinstall_cmds='base_file=`basename \$file`~ 16004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16005 dldir=$destdir/`dirname \$dlpath`~ 16006 test -d \$dldir || mkdir -p \$dldir~ 16007 $install_prog $dir/$dlname \$dldir/$dlname' 16008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16009 dlpath=$dir/\$dldll~ 16010 $RM \$dlpath' 16011 shlibpath_overrides_runpath=yes 16012 dynamic_linker='Win32 link.exe' 16013 ;; 16014 16015 *) 16016 # Assume MSVC and ICC wrapper 16017 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16018 dynamic_linker='Win32 ld.exe' 16019 ;; 16020 esac 16021 # FIXME: first we should search . and the directory the executable is in 16022 shlibpath_var=PATH 16023 ;; 16024 16025darwin* | rhapsody*) 16026 dynamic_linker="$host_os dyld" 16027 version_type=darwin 16028 need_lib_prefix=no 16029 need_version=no 16030 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16031 soname_spec='$libname$release$major$shared_ext' 16032 shlibpath_overrides_runpath=yes 16033 shlibpath_var=DYLD_LIBRARY_PATH 16034 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16035 16036 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16037 ;; 16038 16039dgux*) 16040 version_type=linux # correct to gnu/linux during the next big refactor 16041 need_lib_prefix=no 16042 need_version=no 16043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16044 soname_spec='$libname$release$shared_ext$major' 16045 shlibpath_var=LD_LIBRARY_PATH 16046 ;; 16047 16048freebsd* | dragonfly*) 16049 # DragonFly does not have aout. When/if they implement a new 16050 # versioning mechanism, adjust this. 16051 if test -x /usr/bin/objformat; then 16052 objformat=`/usr/bin/objformat` 16053 else 16054 case $host_os in 16055 freebsd[23].*) objformat=aout ;; 16056 *) objformat=elf ;; 16057 esac 16058 fi 16059 version_type=freebsd-$objformat 16060 case $version_type in 16061 freebsd-elf*) 16062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16063 soname_spec='$libname$release$shared_ext$major' 16064 need_version=no 16065 need_lib_prefix=no 16066 ;; 16067 freebsd-*) 16068 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16069 need_version=yes 16070 ;; 16071 esac 16072 shlibpath_var=LD_LIBRARY_PATH 16073 case $host_os in 16074 freebsd2.*) 16075 shlibpath_overrides_runpath=yes 16076 ;; 16077 freebsd3.[01]* | freebsdelf3.[01]*) 16078 shlibpath_overrides_runpath=yes 16079 hardcode_into_libs=yes 16080 ;; 16081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16083 shlibpath_overrides_runpath=no 16084 hardcode_into_libs=yes 16085 ;; 16086 *) # from 4.6 on, and DragonFly 16087 shlibpath_overrides_runpath=yes 16088 hardcode_into_libs=yes 16089 ;; 16090 esac 16091 ;; 16092 16093haiku*) 16094 version_type=linux # correct to gnu/linux during the next big refactor 16095 need_lib_prefix=no 16096 need_version=no 16097 dynamic_linker="$host_os runtime_loader" 16098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16099 soname_spec='$libname$release$shared_ext$major' 16100 shlibpath_var=LIBRARY_PATH 16101 shlibpath_overrides_runpath=no 16102 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16103 hardcode_into_libs=yes 16104 ;; 16105 16106hpux9* | hpux10* | hpux11*) 16107 # Give a soname corresponding to the major version so that dld.sl refuses to 16108 # link against other versions. 16109 version_type=sunos 16110 need_lib_prefix=no 16111 need_version=no 16112 case $host_cpu in 16113 ia64*) 16114 shrext_cmds='.so' 16115 hardcode_into_libs=yes 16116 dynamic_linker="$host_os dld.so" 16117 shlibpath_var=LD_LIBRARY_PATH 16118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16120 soname_spec='$libname$release$shared_ext$major' 16121 if test 32 = "$HPUX_IA64_MODE"; then 16122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16123 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16124 else 16125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16126 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16127 fi 16128 ;; 16129 hppa*64*) 16130 shrext_cmds='.sl' 16131 hardcode_into_libs=yes 16132 dynamic_linker="$host_os dld.sl" 16133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16136 soname_spec='$libname$release$shared_ext$major' 16137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16139 ;; 16140 *) 16141 shrext_cmds='.sl' 16142 dynamic_linker="$host_os dld.sl" 16143 shlibpath_var=SHLIB_PATH 16144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16146 soname_spec='$libname$release$shared_ext$major' 16147 ;; 16148 esac 16149 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16150 postinstall_cmds='chmod 555 $lib' 16151 # or fails outright, so override atomically: 16152 install_override_mode=555 16153 ;; 16154 16155interix[3-9]*) 16156 version_type=linux # correct to gnu/linux during the next big refactor 16157 need_lib_prefix=no 16158 need_version=no 16159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16160 soname_spec='$libname$release$shared_ext$major' 16161 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16162 shlibpath_var=LD_LIBRARY_PATH 16163 shlibpath_overrides_runpath=no 16164 hardcode_into_libs=yes 16165 ;; 16166 16167irix5* | irix6* | nonstopux*) 16168 case $host_os in 16169 nonstopux*) version_type=nonstopux ;; 16170 *) 16171 if test yes = "$lt_cv_prog_gnu_ld"; then 16172 version_type=linux # correct to gnu/linux during the next big refactor 16173 else 16174 version_type=irix 16175 fi ;; 16176 esac 16177 need_lib_prefix=no 16178 need_version=no 16179 soname_spec='$libname$release$shared_ext$major' 16180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16181 case $host_os in 16182 irix5* | nonstopux*) 16183 libsuff= shlibsuff= 16184 ;; 16185 *) 16186 case $LD in # libtool.m4 will add one of these switches to LD 16187 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16188 libsuff= shlibsuff= libmagic=32-bit;; 16189 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16190 libsuff=32 shlibsuff=N32 libmagic=N32;; 16191 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16192 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16193 *) libsuff= shlibsuff= libmagic=never-match;; 16194 esac 16195 ;; 16196 esac 16197 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16198 shlibpath_overrides_runpath=no 16199 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16200 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16201 hardcode_into_libs=yes 16202 ;; 16203 16204# No shared lib support for Linux oldld, aout, or coff. 16205linux*oldld* | linux*aout* | linux*coff*) 16206 dynamic_linker=no 16207 ;; 16208 16209linux*android*) 16210 version_type=none # Android doesn't support versioned libraries. 16211 need_lib_prefix=no 16212 need_version=no 16213 library_names_spec='$libname$release$shared_ext' 16214 soname_spec='$libname$release$shared_ext' 16215 finish_cmds= 16216 shlibpath_var=LD_LIBRARY_PATH 16217 shlibpath_overrides_runpath=yes 16218 16219 # This implies no fast_install, which is unacceptable. 16220 # Some rework will be needed to allow for fast_install 16221 # before this can be enabled. 16222 hardcode_into_libs=yes 16223 16224 dynamic_linker='Android linker' 16225 # Don't embed -rpath directories since the linker doesn't support them. 16226 hardcode_libdir_flag_spec_CXX='-L$libdir' 16227 ;; 16228 16229# This must be glibc/ELF. 16230linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16231 version_type=linux # correct to gnu/linux during the next big refactor 16232 need_lib_prefix=no 16233 need_version=no 16234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16235 soname_spec='$libname$release$shared_ext$major' 16236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16237 shlibpath_var=LD_LIBRARY_PATH 16238 shlibpath_overrides_runpath=no 16239 16240 # Some binutils ld are patched to set DT_RUNPATH 16241 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16242 $as_echo_n "(cached) " >&6 16243else 16244 lt_cv_shlibpath_overrides_runpath=no 16245 save_LDFLAGS=$LDFLAGS 16246 save_libdir=$libdir 16247 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16248 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16250/* end confdefs.h. */ 16251 16252int 16253main () 16254{ 16255 16256 ; 16257 return 0; 16258} 16259_ACEOF 16260if ac_fn_cxx_try_link "$LINENO"; then : 16261 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16262 lt_cv_shlibpath_overrides_runpath=yes 16263fi 16264fi 16265rm -f core conftest.err conftest.$ac_objext \ 16266 conftest$ac_exeext conftest.$ac_ext 16267 LDFLAGS=$save_LDFLAGS 16268 libdir=$save_libdir 16269 16270fi 16271 16272 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16273 16274 # This implies no fast_install, which is unacceptable. 16275 # Some rework will be needed to allow for fast_install 16276 # before this can be enabled. 16277 hardcode_into_libs=yes 16278 16279 # Ideally, we could use ldconfig to report *all* directores which are 16280 # searched for libraries, however this is still not possible. Aside from not 16281 # being certain /sbin/ldconfig is available, command 16282 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16283 # even though it is searched at run-time. Try to do the best guess by 16284 # appending ld.so.conf contents (and includes) to the search path. 16285 if test -f /etc/ld.so.conf; then 16286 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' ' '` 16287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16288 fi 16289 16290 # We used to test for /lib/ld.so.1 and disable shared libraries on 16291 # powerpc, because MkLinux only supported shared libraries with the 16292 # GNU dynamic linker. Since this was broken with cross compilers, 16293 # most powerpc-linux boxes support dynamic linking these days and 16294 # people can always --disable-shared, the test was removed, and we 16295 # assume the GNU/Linux dynamic linker is in use. 16296 dynamic_linker='GNU/Linux ld.so' 16297 ;; 16298 16299netbsd*) 16300 version_type=sunos 16301 need_lib_prefix=no 16302 need_version=no 16303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16304 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16306 dynamic_linker='NetBSD (a.out) ld.so' 16307 else 16308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16309 soname_spec='$libname$release$shared_ext$major' 16310 dynamic_linker='NetBSD ld.elf_so' 16311 fi 16312 shlibpath_var=LD_LIBRARY_PATH 16313 shlibpath_overrides_runpath=yes 16314 hardcode_into_libs=yes 16315 ;; 16316 16317newsos6) 16318 version_type=linux # correct to gnu/linux during the next big refactor 16319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16320 shlibpath_var=LD_LIBRARY_PATH 16321 shlibpath_overrides_runpath=yes 16322 ;; 16323 16324*nto* | *qnx*) 16325 version_type=qnx 16326 need_lib_prefix=no 16327 need_version=no 16328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16329 soname_spec='$libname$release$shared_ext$major' 16330 shlibpath_var=LD_LIBRARY_PATH 16331 shlibpath_overrides_runpath=no 16332 hardcode_into_libs=yes 16333 dynamic_linker='ldqnx.so' 16334 ;; 16335 16336openbsd* | bitrig*) 16337 version_type=sunos 16338 sys_lib_dlsearch_path_spec=/usr/lib 16339 need_lib_prefix=no 16340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16341 need_version=no 16342 else 16343 need_version=yes 16344 fi 16345 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16347 shlibpath_var=LD_LIBRARY_PATH 16348 shlibpath_overrides_runpath=yes 16349 ;; 16350 16351os2*) 16352 libname_spec='$name' 16353 version_type=windows 16354 shrext_cmds=.dll 16355 need_version=no 16356 need_lib_prefix=no 16357 # OS/2 can only load a DLL with a base name of 8 characters or less. 16358 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16359 v=$($ECHO $release$versuffix | tr -d .-); 16360 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16361 $ECHO $n$v`$shared_ext' 16362 library_names_spec='${libname}_dll.$libext' 16363 dynamic_linker='OS/2 ld.exe' 16364 shlibpath_var=BEGINLIBPATH 16365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16367 postinstall_cmds='base_file=`basename \$file`~ 16368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16369 dldir=$destdir/`dirname \$dlpath`~ 16370 test -d \$dldir || mkdir -p \$dldir~ 16371 $install_prog $dir/$dlname \$dldir/$dlname~ 16372 chmod a+x \$dldir/$dlname~ 16373 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16374 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16375 fi' 16376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16377 dlpath=$dir/\$dldll~ 16378 $RM \$dlpath' 16379 ;; 16380 16381osf3* | osf4* | osf5*) 16382 version_type=osf 16383 need_lib_prefix=no 16384 need_version=no 16385 soname_spec='$libname$release$shared_ext$major' 16386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16387 shlibpath_var=LD_LIBRARY_PATH 16388 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16390 ;; 16391 16392rdos*) 16393 dynamic_linker=no 16394 ;; 16395 16396solaris*) 16397 version_type=linux # correct to gnu/linux during the next big refactor 16398 need_lib_prefix=no 16399 need_version=no 16400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16401 soname_spec='$libname$release$shared_ext$major' 16402 shlibpath_var=LD_LIBRARY_PATH 16403 shlibpath_overrides_runpath=yes 16404 hardcode_into_libs=yes 16405 # ldd complains unless libraries are executable 16406 postinstall_cmds='chmod +x $lib' 16407 ;; 16408 16409sunos4*) 16410 version_type=sunos 16411 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16412 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16413 shlibpath_var=LD_LIBRARY_PATH 16414 shlibpath_overrides_runpath=yes 16415 if test yes = "$with_gnu_ld"; then 16416 need_lib_prefix=no 16417 fi 16418 need_version=yes 16419 ;; 16420 16421sysv4 | sysv4.3*) 16422 version_type=linux # correct to gnu/linux during the next big refactor 16423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16424 soname_spec='$libname$release$shared_ext$major' 16425 shlibpath_var=LD_LIBRARY_PATH 16426 case $host_vendor in 16427 sni) 16428 shlibpath_overrides_runpath=no 16429 need_lib_prefix=no 16430 runpath_var=LD_RUN_PATH 16431 ;; 16432 siemens) 16433 need_lib_prefix=no 16434 ;; 16435 motorola) 16436 need_lib_prefix=no 16437 need_version=no 16438 shlibpath_overrides_runpath=no 16439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16440 ;; 16441 esac 16442 ;; 16443 16444sysv4*MP*) 16445 if test -d /usr/nec; then 16446 version_type=linux # correct to gnu/linux during the next big refactor 16447 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16448 soname_spec='$libname$shared_ext.$major' 16449 shlibpath_var=LD_LIBRARY_PATH 16450 fi 16451 ;; 16452 16453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16454 version_type=sco 16455 need_lib_prefix=no 16456 need_version=no 16457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16458 soname_spec='$libname$release$shared_ext$major' 16459 shlibpath_var=LD_LIBRARY_PATH 16460 shlibpath_overrides_runpath=yes 16461 hardcode_into_libs=yes 16462 if test yes = "$with_gnu_ld"; then 16463 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16464 else 16465 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16466 case $host_os in 16467 sco3.2v5*) 16468 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16469 ;; 16470 esac 16471 fi 16472 sys_lib_dlsearch_path_spec='/usr/lib' 16473 ;; 16474 16475tpf*) 16476 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16477 version_type=linux # correct to gnu/linux during the next big refactor 16478 need_lib_prefix=no 16479 need_version=no 16480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16481 shlibpath_var=LD_LIBRARY_PATH 16482 shlibpath_overrides_runpath=no 16483 hardcode_into_libs=yes 16484 ;; 16485 16486uts4*) 16487 version_type=linux # correct to gnu/linux during the next big refactor 16488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16489 soname_spec='$libname$release$shared_ext$major' 16490 shlibpath_var=LD_LIBRARY_PATH 16491 ;; 16492 16493*) 16494 dynamic_linker=no 16495 ;; 16496esac 16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16498$as_echo "$dynamic_linker" >&6; } 16499test no = "$dynamic_linker" && can_build_shared=no 16500 16501variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16502if test yes = "$GCC"; then 16503 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16504fi 16505 16506if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16507 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16508fi 16509 16510if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16511 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16512fi 16513 16514# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16515configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16516 16517# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16518func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16519 16520# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16521configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16563$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16564hardcode_action_CXX= 16565if test -n "$hardcode_libdir_flag_spec_CXX" || 16566 test -n "$runpath_var_CXX" || 16567 test yes = "$hardcode_automatic_CXX"; then 16568 16569 # We can hardcode non-existent directories. 16570 if test no != "$hardcode_direct_CXX" && 16571 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16572 # have to relink, otherwise we might link with an installed library 16573 # when we should be linking with a yet-to-be-installed one 16574 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16575 test no != "$hardcode_minus_L_CXX"; then 16576 # Linking always hardcodes the temporary library directory. 16577 hardcode_action_CXX=relink 16578 else 16579 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16580 hardcode_action_CXX=immediate 16581 fi 16582else 16583 # We cannot hardcode anything, or else we can only hardcode existing 16584 # directories. 16585 hardcode_action_CXX=unsupported 16586fi 16587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16588$as_echo "$hardcode_action_CXX" >&6; } 16589 16590if test relink = "$hardcode_action_CXX" || 16591 test yes = "$inherit_rpath_CXX"; then 16592 # Fast installation is not supported 16593 enable_fast_install=no 16594elif test yes = "$shlibpath_overrides_runpath" || 16595 test no = "$enable_shared"; then 16596 # Fast installation is not necessary 16597 enable_fast_install=needless 16598fi 16599 16600 16601 16602 16603 16604 16605 16606 fi # test -n "$compiler" 16607 16608 CC=$lt_save_CC 16609 CFLAGS=$lt_save_CFLAGS 16610 LDCXX=$LD 16611 LD=$lt_save_LD 16612 GCC=$lt_save_GCC 16613 with_gnu_ld=$lt_save_with_gnu_ld 16614 lt_cv_path_LDCXX=$lt_cv_path_LD 16615 lt_cv_path_LD=$lt_save_path_LD 16616 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16617 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16618fi # test yes != "$_lt_caught_CXX_error" 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 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 ac_config_commands="$ac_config_commands libtool" 16641 16642 16643 16644 16645# Only expand once: 16646 16647 16648 16649# Checks for dependencies. 16650 16651 16652 16653 16654 16655 16656 16657if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16658 if test -n "$ac_tool_prefix"; then 16659 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16660set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16662$as_echo_n "checking for $ac_word... " >&6; } 16663if ${ac_cv_path_PKG_CONFIG+:} false; then : 16664 $as_echo_n "(cached) " >&6 16665else 16666 case $PKG_CONFIG in 16667 [\\/]* | ?:[\\/]*) 16668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16669 ;; 16670 *) 16671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16672for as_dir in $PATH 16673do 16674 IFS=$as_save_IFS 16675 test -z "$as_dir" && as_dir=. 16676 for ac_exec_ext in '' $ac_executable_extensions; do 16677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16680 break 2 16681 fi 16682done 16683 done 16684IFS=$as_save_IFS 16685 16686 ;; 16687esac 16688fi 16689PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16690if test -n "$PKG_CONFIG"; then 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16692$as_echo "$PKG_CONFIG" >&6; } 16693else 16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16695$as_echo "no" >&6; } 16696fi 16697 16698 16699fi 16700if test -z "$ac_cv_path_PKG_CONFIG"; then 16701 ac_pt_PKG_CONFIG=$PKG_CONFIG 16702 # Extract the first word of "pkg-config", so it can be a program name with args. 16703set dummy pkg-config; ac_word=$2 16704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16705$as_echo_n "checking for $ac_word... " >&6; } 16706if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16707 $as_echo_n "(cached) " >&6 16708else 16709 case $ac_pt_PKG_CONFIG in 16710 [\\/]* | ?:[\\/]*) 16711 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16712 ;; 16713 *) 16714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16715for as_dir in $PATH 16716do 16717 IFS=$as_save_IFS 16718 test -z "$as_dir" && as_dir=. 16719 for ac_exec_ext in '' $ac_executable_extensions; do 16720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16721 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16723 break 2 16724 fi 16725done 16726 done 16727IFS=$as_save_IFS 16728 16729 ;; 16730esac 16731fi 16732ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16733if test -n "$ac_pt_PKG_CONFIG"; then 16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16735$as_echo "$ac_pt_PKG_CONFIG" >&6; } 16736else 16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16738$as_echo "no" >&6; } 16739fi 16740 16741 if test "x$ac_pt_PKG_CONFIG" = x; then 16742 PKG_CONFIG="" 16743 else 16744 case $cross_compiling:$ac_tool_warned in 16745yes:) 16746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16748ac_tool_warned=yes ;; 16749esac 16750 PKG_CONFIG=$ac_pt_PKG_CONFIG 16751 fi 16752else 16753 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16754fi 16755 16756fi 16757if test -n "$PKG_CONFIG"; then 16758 _pkg_min_version=0.9.0 16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16760$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16761 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16763$as_echo "yes" >&6; } 16764 else 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16766$as_echo "no" >&6; } 16767 PKG_CONFIG="" 16768 fi 16769fi 16770 16771pkg_failed=no 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 16773$as_echo_n "checking for X11... " >&6; } 16774 16775if test -n "$X11_CFLAGS"; then 16776 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 16777 elif test -n "$PKG_CONFIG"; then 16778 if test -n "$PKG_CONFIG" && \ 16779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 16780 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 16781 ac_status=$? 16782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16783 test $ac_status = 0; }; then 16784 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 16785 test "x$?" != "x0" && pkg_failed=yes 16786else 16787 pkg_failed=yes 16788fi 16789 else 16790 pkg_failed=untried 16791fi 16792if test -n "$X11_LIBS"; then 16793 pkg_cv_X11_LIBS="$X11_LIBS" 16794 elif test -n "$PKG_CONFIG"; then 16795 if test -n "$PKG_CONFIG" && \ 16796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 16797 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 16798 ac_status=$? 16799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16800 test $ac_status = 0; }; then 16801 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 16802 test "x$?" != "x0" && pkg_failed=yes 16803else 16804 pkg_failed=yes 16805fi 16806 else 16807 pkg_failed=untried 16808fi 16809 16810 16811 16812if test $pkg_failed = yes; then 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16814$as_echo "no" >&6; } 16815 16816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16817 _pkg_short_errors_supported=yes 16818else 16819 _pkg_short_errors_supported=no 16820fi 16821 if test $_pkg_short_errors_supported = yes; then 16822 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 16823 else 16824 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 16825 fi 16826 # Put the nasty error message in config.log where it belongs 16827 echo "$X11_PKG_ERRORS" >&5 16828 16829 as_fn_error $? "Package requirements (x11) were not met: 16830 16831$X11_PKG_ERRORS 16832 16833Consider adjusting the PKG_CONFIG_PATH environment variable if you 16834installed software in a non-standard prefix. 16835 16836Alternatively, you may set the environment variables X11_CFLAGS 16837and X11_LIBS to avoid the need to call pkg-config. 16838See the pkg-config man page for more details." "$LINENO" 5 16839elif test $pkg_failed = untried; then 16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16841$as_echo "no" >&6; } 16842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16844as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16845is in your PATH or set the PKG_CONFIG environment variable to the full 16846path to pkg-config. 16847 16848Alternatively, you may set the environment variables X11_CFLAGS 16849and X11_LIBS to avoid the need to call pkg-config. 16850See the pkg-config man page for more details. 16851 16852To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16853See \`config.log' for more details" "$LINENO" 5; } 16854else 16855 X11_CFLAGS=$pkg_cv_X11_CFLAGS 16856 X11_LIBS=$pkg_cv_X11_LIBS 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16858$as_echo "yes" >&6; } 16859 16860fi 16861 16862 16863 16864# Check for optional dependencies. 16865# Check whether --enable-dri2 was given. 16866if test "${enable_dri2+set}" = set; then : 16867 enableval=$enable_dri2; DRI2=$enableval 16868else 16869 DRI2=auto 16870fi 16871 16872 16873pkg_failed=no 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dri2proto" >&5 16875$as_echo_n "checking for dri2proto... " >&6; } 16876 16877if test -n "$dri2proto_CFLAGS"; then 16878 pkg_cv_dri2proto_CFLAGS="$dri2proto_CFLAGS" 16879 elif test -n "$PKG_CONFIG"; then 16880 if test -n "$PKG_CONFIG" && \ 16881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5 16882 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5 16883 ac_status=$? 16884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16885 test $ac_status = 0; }; then 16886 pkg_cv_dri2proto_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.2" 2>/dev/null` 16887 test "x$?" != "x0" && pkg_failed=yes 16888else 16889 pkg_failed=yes 16890fi 16891 else 16892 pkg_failed=untried 16893fi 16894if test -n "$dri2proto_LIBS"; then 16895 pkg_cv_dri2proto_LIBS="$dri2proto_LIBS" 16896 elif test -n "$PKG_CONFIG"; then 16897 if test -n "$PKG_CONFIG" && \ 16898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5 16899 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5 16900 ac_status=$? 16901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16902 test $ac_status = 0; }; then 16903 pkg_cv_dri2proto_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.2" 2>/dev/null` 16904 test "x$?" != "x0" && pkg_failed=yes 16905else 16906 pkg_failed=yes 16907fi 16908 else 16909 pkg_failed=untried 16910fi 16911 16912 16913 16914if test $pkg_failed = yes; then 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16916$as_echo "no" >&6; } 16917 16918if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16919 _pkg_short_errors_supported=yes 16920else 16921 _pkg_short_errors_supported=no 16922fi 16923 if test $_pkg_short_errors_supported = yes; then 16924 dri2proto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.2" 2>&1` 16925 else 16926 dri2proto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.2" 2>&1` 16927 fi 16928 # Put the nasty error message in config.log where it belongs 16929 echo "$dri2proto_PKG_ERRORS" >&5 16930 16931 HAVE_DRI2PROTO=no 16932elif test $pkg_failed = untried; then 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16934$as_echo "no" >&6; } 16935 HAVE_DRI2PROTO=no 16936else 16937 dri2proto_CFLAGS=$pkg_cv_dri2proto_CFLAGS 16938 dri2proto_LIBS=$pkg_cv_dri2proto_LIBS 16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16940$as_echo "yes" >&6; } 16941 HAVE_DRI2PROTO=yes 16942fi 16943case "$DRI2,$HAVE_DRI2PROTO" in 16944 yes,no) 16945 as_fn_error $? "DRI2 queries require dri2proto >= 2.2" "$LINENO" 5 16946 ;; 16947 yes,yes | auto,yes) 16948 16949$as_echo "#define DRI2 1" >>confdefs.h 16950 16951 DRI2=yes 16952 16953pkg_failed=no 16954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 16955$as_echo_n "checking for XEXT... " >&6; } 16956 16957if test -n "$XEXT_CFLAGS"; then 16958 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 16959 elif test -n "$PKG_CONFIG"; then 16960 if test -n "$PKG_CONFIG" && \ 16961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 16962 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 16963 ac_status=$? 16964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16965 test $ac_status = 0; }; then 16966 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 16967 test "x$?" != "x0" && pkg_failed=yes 16968else 16969 pkg_failed=yes 16970fi 16971 else 16972 pkg_failed=untried 16973fi 16974if test -n "$XEXT_LIBS"; then 16975 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 16976 elif test -n "$PKG_CONFIG"; then 16977 if test -n "$PKG_CONFIG" && \ 16978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 16979 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 16980 ac_status=$? 16981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16982 test $ac_status = 0; }; then 16983 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 16984 test "x$?" != "x0" && pkg_failed=yes 16985else 16986 pkg_failed=yes 16987fi 16988 else 16989 pkg_failed=untried 16990fi 16991 16992 16993 16994if test $pkg_failed = yes; then 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16996$as_echo "no" >&6; } 16997 16998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16999 _pkg_short_errors_supported=yes 17000else 17001 _pkg_short_errors_supported=no 17002fi 17003 if test $_pkg_short_errors_supported = yes; then 17004 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1` 17005 else 17006 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1` 17007 fi 17008 # Put the nasty error message in config.log where it belongs 17009 echo "$XEXT_PKG_ERRORS" >&5 17010 17011 as_fn_error $? "Package requirements (xext) were not met: 17012 17013$XEXT_PKG_ERRORS 17014 17015Consider adjusting the PKG_CONFIG_PATH environment variable if you 17016installed software in a non-standard prefix. 17017 17018Alternatively, you may set the environment variables XEXT_CFLAGS 17019and XEXT_LIBS to avoid the need to call pkg-config. 17020See the pkg-config man page for more details." "$LINENO" 5 17021elif test $pkg_failed = untried; then 17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17023$as_echo "no" >&6; } 17024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17026as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17027is in your PATH or set the PKG_CONFIG environment variable to the full 17028path to pkg-config. 17029 17030Alternatively, you may set the environment variables XEXT_CFLAGS 17031and XEXT_LIBS to avoid the need to call pkg-config. 17032See the pkg-config man page for more details. 17033 17034To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17035See \`config.log' for more details" "$LINENO" 5; } 17036else 17037 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 17038 XEXT_LIBS=$pkg_cv_XEXT_LIBS 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17040$as_echo "yes" >&6; } 17041 17042fi 17043 17044 17045 ;; 17046esac 17047 if test "x$DRI2" = xyes; then 17048 DRI2_TRUE= 17049 DRI2_FALSE='#' 17050else 17051 DRI2_TRUE='#' 17052 DRI2_FALSE= 17053fi 17054 17055 17056ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17057if test "x$ac_cv_func_dlopen" = xyes; then : 17058 17059else 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17061$as_echo_n "checking for dlopen in -ldl... " >&6; } 17062if ${ac_cv_lib_dl_dlopen+:} false; then : 17063 $as_echo_n "(cached) " >&6 17064else 17065 ac_check_lib_save_LIBS=$LIBS 17066LIBS="-ldl $LIBS" 17067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068/* end confdefs.h. */ 17069 17070/* Override any GCC internal prototype to avoid an error. 17071 Use char because int might match the return type of a GCC 17072 builtin and then its argument prototype would still apply. */ 17073#ifdef __cplusplus 17074extern "C" 17075#endif 17076char dlopen (); 17077int 17078main () 17079{ 17080return dlopen (); 17081 ; 17082 return 0; 17083} 17084_ACEOF 17085if ac_fn_c_try_link "$LINENO"; then : 17086 ac_cv_lib_dl_dlopen=yes 17087else 17088 ac_cv_lib_dl_dlopen=no 17089fi 17090rm -f core conftest.err conftest.$ac_objext \ 17091 conftest$ac_exeext conftest.$ac_ext 17092LIBS=$ac_check_lib_save_LIBS 17093fi 17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17095$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17096if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17097 DLOPEN_LIBS="-ldl" 17098fi 17099 17100fi 17101 17102 17103 17104# Look for POSIX threads 17105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_once" >&5 17106$as_echo_n "checking for library containing pthread_once... " >&6; } 17107if ${ac_cv_search_pthread_once+:} false; then : 17108 $as_echo_n "(cached) " >&6 17109else 17110 ac_func_search_save_LIBS=$LIBS 17111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17112/* end confdefs.h. */ 17113 17114/* Override any GCC internal prototype to avoid an error. 17115 Use char because int might match the return type of a GCC 17116 builtin and then its argument prototype would still apply. */ 17117#ifdef __cplusplus 17118extern "C" 17119#endif 17120char pthread_once (); 17121int 17122main () 17123{ 17124return pthread_once (); 17125 ; 17126 return 0; 17127} 17128_ACEOF 17129for ac_lib in '' pthread pthreads c_r; do 17130 if test -z "$ac_lib"; then 17131 ac_res="none required" 17132 else 17133 ac_res=-l$ac_lib 17134 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17135 fi 17136 if ac_fn_c_try_link "$LINENO"; then : 17137 ac_cv_search_pthread_once=$ac_res 17138fi 17139rm -f core conftest.err conftest.$ac_objext \ 17140 conftest$ac_exeext 17141 if ${ac_cv_search_pthread_once+:} false; then : 17142 break 17143fi 17144done 17145if ${ac_cv_search_pthread_once+:} false; then : 17146 17147else 17148 ac_cv_search_pthread_once=no 17149fi 17150rm conftest.$ac_ext 17151LIBS=$ac_func_search_save_LIBS 17152fi 17153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_once" >&5 17154$as_echo "$ac_cv_search_pthread_once" >&6; } 17155ac_res=$ac_cv_search_pthread_once 17156if test "$ac_res" != no; then : 17157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17158 17159 if test "$ac_cv_search_pthread_once" != "none required"; then : 17160 17161 PTHREAD_LIBS="$ac_cv_search_pthread_once" 17162 17163fi 17164 17165fi 17166 17167 17168 17169# Check for Doxygen. 17170# Check whether --enable-documentation was given. 17171if test "${enable_documentation+set}" = set; then : 17172 enableval=$enable_documentation; DOCS=$enableval 17173else 17174 DOCS=auto 17175fi 17176 17177if test "x$DOCS" != xno; then 17178 if test -n "$ac_tool_prefix"; then 17179 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. 17180set dummy ${ac_tool_prefix}doxygen; ac_word=$2 17181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17182$as_echo_n "checking for $ac_word... " >&6; } 17183if ${ac_cv_prog_DOXYGEN+:} false; then : 17184 $as_echo_n "(cached) " >&6 17185else 17186 if test -n "$DOXYGEN"; then 17187 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 17188else 17189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17190for as_dir in $PATH 17191do 17192 IFS=$as_save_IFS 17193 test -z "$as_dir" && as_dir=. 17194 for ac_exec_ext in '' $ac_executable_extensions; do 17195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17196 ac_cv_prog_DOXYGEN="${ac_tool_prefix}doxygen" 17197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17198 break 2 17199 fi 17200done 17201 done 17202IFS=$as_save_IFS 17203 17204fi 17205fi 17206DOXYGEN=$ac_cv_prog_DOXYGEN 17207if test -n "$DOXYGEN"; then 17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 17209$as_echo "$DOXYGEN" >&6; } 17210else 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17212$as_echo "no" >&6; } 17213fi 17214 17215 17216fi 17217if test -z "$ac_cv_prog_DOXYGEN"; then 17218 ac_ct_DOXYGEN=$DOXYGEN 17219 # Extract the first word of "doxygen", so it can be a program name with args. 17220set dummy doxygen; ac_word=$2 17221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17222$as_echo_n "checking for $ac_word... " >&6; } 17223if ${ac_cv_prog_ac_ct_DOXYGEN+:} false; then : 17224 $as_echo_n "(cached) " >&6 17225else 17226 if test -n "$ac_ct_DOXYGEN"; then 17227 ac_cv_prog_ac_ct_DOXYGEN="$ac_ct_DOXYGEN" # Let the user override the test. 17228else 17229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17230for as_dir in $PATH 17231do 17232 IFS=$as_save_IFS 17233 test -z "$as_dir" && as_dir=. 17234 for ac_exec_ext in '' $ac_executable_extensions; do 17235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17236 ac_cv_prog_ac_ct_DOXYGEN="doxygen" 17237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17238 break 2 17239 fi 17240done 17241 done 17242IFS=$as_save_IFS 17243 17244fi 17245fi 17246ac_ct_DOXYGEN=$ac_cv_prog_ac_ct_DOXYGEN 17247if test -n "$ac_ct_DOXYGEN"; then 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOXYGEN" >&5 17249$as_echo "$ac_ct_DOXYGEN" >&6; } 17250else 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17252$as_echo "no" >&6; } 17253fi 17254 17255 if test "x$ac_ct_DOXYGEN" = x; then 17256 DOXYGEN="no" 17257 else 17258 case $cross_compiling:$ac_tool_warned in 17259yes:) 17260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17262ac_tool_warned=yes ;; 17263esac 17264 DOXYGEN=$ac_ct_DOXYGEN 17265 fi 17266else 17267 DOXYGEN="$ac_cv_prog_DOXYGEN" 17268fi 17269 17270 if test -n "$ac_tool_prefix"; then 17271 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. 17272set dummy ${ac_tool_prefix}dot; ac_word=$2 17273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17274$as_echo_n "checking for $ac_word... " >&6; } 17275if ${ac_cv_prog_DOT+:} false; then : 17276 $as_echo_n "(cached) " >&6 17277else 17278 if test -n "$DOT"; then 17279 ac_cv_prog_DOT="$DOT" # Let the user override the test. 17280else 17281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17282for as_dir in $PATH 17283do 17284 IFS=$as_save_IFS 17285 test -z "$as_dir" && as_dir=. 17286 for ac_exec_ext in '' $ac_executable_extensions; do 17287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17288 ac_cv_prog_DOT="${ac_tool_prefix}dot" 17289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17290 break 2 17291 fi 17292done 17293 done 17294IFS=$as_save_IFS 17295 17296fi 17297fi 17298DOT=$ac_cv_prog_DOT 17299if test -n "$DOT"; then 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 17301$as_echo "$DOT" >&6; } 17302else 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17304$as_echo "no" >&6; } 17305fi 17306 17307 17308fi 17309if test -z "$ac_cv_prog_DOT"; then 17310 ac_ct_DOT=$DOT 17311 # Extract the first word of "dot", so it can be a program name with args. 17312set dummy dot; ac_word=$2 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17314$as_echo_n "checking for $ac_word... " >&6; } 17315if ${ac_cv_prog_ac_ct_DOT+:} false; then : 17316 $as_echo_n "(cached) " >&6 17317else 17318 if test -n "$ac_ct_DOT"; then 17319 ac_cv_prog_ac_ct_DOT="$ac_ct_DOT" # Let the user override the test. 17320else 17321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17322for as_dir in $PATH 17323do 17324 IFS=$as_save_IFS 17325 test -z "$as_dir" && as_dir=. 17326 for ac_exec_ext in '' $ac_executable_extensions; do 17327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17328 ac_cv_prog_ac_ct_DOT="dot" 17329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17330 break 2 17331 fi 17332done 17333 done 17334IFS=$as_save_IFS 17335 17336fi 17337fi 17338ac_ct_DOT=$ac_cv_prog_ac_ct_DOT 17339if test -n "$ac_ct_DOT"; then 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOT" >&5 17341$as_echo "$ac_ct_DOT" >&6; } 17342else 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17344$as_echo "no" >&6; } 17345fi 17346 17347 if test "x$ac_ct_DOT" = x; then 17348 DOT="no" 17349 else 17350 case $cross_compiling:$ac_tool_warned in 17351yes:) 17352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17354ac_tool_warned=yes ;; 17355esac 17356 DOT=$ac_ct_DOT 17357 fi 17358else 17359 DOT="$ac_cv_prog_DOT" 17360fi 17361 17362else 17363 DOXYGEN=no 17364 DOT=no 17365fi 17366if test "x$DOCS" = xyes; then 17367 if test "x$DOXYGEN" = xno; then 17368 as_fn_error $? "Documentation enabled but doxygen was not found in your path" "$LINENO" 5 17369 fi 17370 if test "x$DOT" = xno; then 17371 as_fn_error $? "Documentation enabled but dot was not found in your path. Please install graphviz" "$LINENO" 5 17372 fi 17373fi 17374 if test "x$DOXYGEN" != xno -a "x$DOT" != xno; then 17375 ENABLE_DOCS_TRUE= 17376 ENABLE_DOCS_FALSE='#' 17377else 17378 ENABLE_DOCS_TRUE='#' 17379 ENABLE_DOCS_FALSE= 17380fi 17381 17382 17383 17384# Options 17385 17386# Check whether --with-module-dir was given. 17387if test "${with_module_dir+set}" = set; then : 17388 withval=$with_module_dir; moduledir="$withval" 17389else 17390 moduledir="$libdir/vdpau" 17391fi 17392 17393 17394 17395 17396CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 17397mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 17398echo 'git directory not found: installing possibly empty changelog.' >&2)" 17399 17400distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 17401 17402 17403 17404ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile test/Makefile trace/Makefile vdpau.pc" 17405 17406cat >confcache <<\_ACEOF 17407# This file is a shell script that caches the results of configure 17408# tests run on this system so they can be shared between configure 17409# scripts and configure runs, see configure's option --config-cache. 17410# It is not useful on other systems. If it contains results you don't 17411# want to keep, you may remove or edit it. 17412# 17413# config.status only pays attention to the cache file if you give it 17414# the --recheck option to rerun configure. 17415# 17416# `ac_cv_env_foo' variables (set or unset) will be overridden when 17417# loading this file, other *unset* `ac_cv_foo' will be assigned the 17418# following values. 17419 17420_ACEOF 17421 17422# The following way of writing the cache mishandles newlines in values, 17423# but we know of no workaround that is simple, portable, and efficient. 17424# So, we kill variables containing newlines. 17425# Ultrix sh set writes to stderr and can't be redirected directly, 17426# and sets the high bit in the cache file unless we assign to the vars. 17427( 17428 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17429 eval ac_val=\$$ac_var 17430 case $ac_val in #( 17431 *${as_nl}*) 17432 case $ac_var in #( 17433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17435 esac 17436 case $ac_var in #( 17437 _ | IFS | as_nl) ;; #( 17438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17439 *) { eval $ac_var=; unset $ac_var;} ;; 17440 esac ;; 17441 esac 17442 done 17443 17444 (set) 2>&1 | 17445 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17446 *${as_nl}ac_space=\ *) 17447 # `set' does not quote correctly, so add quotes: double-quote 17448 # substitution turns \\\\ into \\, and sed turns \\ into \. 17449 sed -n \ 17450 "s/'/'\\\\''/g; 17451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17452 ;; #( 17453 *) 17454 # `set' quotes correctly as required by POSIX, so do not add quotes. 17455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17456 ;; 17457 esac | 17458 sort 17459) | 17460 sed ' 17461 /^ac_cv_env_/b end 17462 t clear 17463 :clear 17464 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17465 t end 17466 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17467 :end' >>confcache 17468if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17469 if test -w "$cache_file"; then 17470 if test "x$cache_file" != "x/dev/null"; then 17471 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17472$as_echo "$as_me: updating cache $cache_file" >&6;} 17473 if test ! -f "$cache_file" || test -h "$cache_file"; then 17474 cat confcache >"$cache_file" 17475 else 17476 case $cache_file in #( 17477 */* | ?:*) 17478 mv -f confcache "$cache_file"$$ && 17479 mv -f "$cache_file"$$ "$cache_file" ;; #( 17480 *) 17481 mv -f confcache "$cache_file" ;; 17482 esac 17483 fi 17484 fi 17485 else 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17487$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17488 fi 17489fi 17490rm -f confcache 17491 17492test "x$prefix" = xNONE && prefix=$ac_default_prefix 17493# Let make expand exec_prefix. 17494test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17495 17496DEFS=-DHAVE_CONFIG_H 17497 17498ac_libobjs= 17499ac_ltlibobjs= 17500U= 17501for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17502 # 1. Remove the extension, and $U if already installed. 17503 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17504 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17505 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17506 # will be set to the directory where LIBOBJS objects are built. 17507 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17508 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17509done 17510LIBOBJS=$ac_libobjs 17511 17512LTLIBOBJS=$ac_ltlibobjs 17513 17514 17515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17516$as_echo_n "checking that generated files are newer than configure... " >&6; } 17517 if test -n "$am_sleep_pid"; then 17518 # Hide warnings about reused PIDs. 17519 wait $am_sleep_pid 2>/dev/null 17520 fi 17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17522$as_echo "done" >&6; } 17523 if test -n "$EXEEXT"; then 17524 am__EXEEXT_TRUE= 17525 am__EXEEXT_FALSE='#' 17526else 17527 am__EXEEXT_TRUE='#' 17528 am__EXEEXT_FALSE= 17529fi 17530 17531if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17532 as_fn_error $? "conditional \"AMDEP\" was never defined. 17533Usually this means the macro was only invoked conditionally." "$LINENO" 5 17534fi 17535if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17536 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17537Usually this means the macro was only invoked conditionally." "$LINENO" 5 17538fi 17539if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17540 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17541Usually this means the macro was only invoked conditionally." "$LINENO" 5 17542fi 17543if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17544 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17545Usually this means the macro was only invoked conditionally." "$LINENO" 5 17546fi 17547if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 17548 as_fn_error $? "conditional \"DRI2\" was never defined. 17549Usually this means the macro was only invoked conditionally." "$LINENO" 5 17550fi 17551if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 17552 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 17553Usually this means the macro was only invoked conditionally." "$LINENO" 5 17554fi 17555 17556: "${CONFIG_STATUS=./config.status}" 17557ac_write_fail=0 17558ac_clean_files_save=$ac_clean_files 17559ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17560{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17561$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17562as_write_fail=0 17563cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17564#! $SHELL 17565# Generated by $as_me. 17566# Run this file to recreate the current configuration. 17567# Compiler output produced by configure, useful for debugging 17568# configure, is in config.log if it exists. 17569 17570debug=false 17571ac_cs_recheck=false 17572ac_cs_silent=false 17573 17574SHELL=\${CONFIG_SHELL-$SHELL} 17575export SHELL 17576_ASEOF 17577cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17578## -------------------- ## 17579## M4sh Initialization. ## 17580## -------------------- ## 17581 17582# Be more Bourne compatible 17583DUALCASE=1; export DUALCASE # for MKS sh 17584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17585 emulate sh 17586 NULLCMD=: 17587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17588 # is contrary to our usage. Disable this feature. 17589 alias -g '${1+"$@"}'='"$@"' 17590 setopt NO_GLOB_SUBST 17591else 17592 case `(set -o) 2>/dev/null` in #( 17593 *posix*) : 17594 set -o posix ;; #( 17595 *) : 17596 ;; 17597esac 17598fi 17599 17600 17601as_nl=' 17602' 17603export as_nl 17604# Printing a long string crashes Solaris 7 /usr/bin/printf. 17605as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17607as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17608# Prefer a ksh shell builtin over an external printf program on Solaris, 17609# but without wasting forks for bash or zsh. 17610if test -z "$BASH_VERSION$ZSH_VERSION" \ 17611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17612 as_echo='print -r --' 17613 as_echo_n='print -rn --' 17614elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17615 as_echo='printf %s\n' 17616 as_echo_n='printf %s' 17617else 17618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17620 as_echo_n='/usr/ucb/echo -n' 17621 else 17622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17623 as_echo_n_body='eval 17624 arg=$1; 17625 case $arg in #( 17626 *"$as_nl"*) 17627 expr "X$arg" : "X\\(.*\\)$as_nl"; 17628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17629 esac; 17630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17631 ' 17632 export as_echo_n_body 17633 as_echo_n='sh -c $as_echo_n_body as_echo' 17634 fi 17635 export as_echo_body 17636 as_echo='sh -c $as_echo_body as_echo' 17637fi 17638 17639# The user is always right. 17640if test "${PATH_SEPARATOR+set}" != set; then 17641 PATH_SEPARATOR=: 17642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17644 PATH_SEPARATOR=';' 17645 } 17646fi 17647 17648 17649# IFS 17650# We need space, tab and new line, in precisely that order. Quoting is 17651# there to prevent editors from complaining about space-tab. 17652# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17653# splitting by setting IFS to empty value.) 17654IFS=" "" $as_nl" 17655 17656# Find who we are. Look in the path if we contain no directory separator. 17657as_myself= 17658case $0 in #(( 17659 *[\\/]* ) as_myself=$0 ;; 17660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17661for as_dir in $PATH 17662do 17663 IFS=$as_save_IFS 17664 test -z "$as_dir" && as_dir=. 17665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17666 done 17667IFS=$as_save_IFS 17668 17669 ;; 17670esac 17671# We did not find ourselves, most probably we were run as `sh COMMAND' 17672# in which case we are not to be found in the path. 17673if test "x$as_myself" = x; then 17674 as_myself=$0 17675fi 17676if test ! -f "$as_myself"; then 17677 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17678 exit 1 17679fi 17680 17681# Unset variables that we do not need and which cause bugs (e.g. in 17682# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17683# suppresses any "Segmentation fault" message there. '((' could 17684# trigger a bug in pdksh 5.2.14. 17685for as_var in BASH_ENV ENV MAIL MAILPATH 17686do eval test x\${$as_var+set} = xset \ 17687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17688done 17689PS1='$ ' 17690PS2='> ' 17691PS4='+ ' 17692 17693# NLS nuisances. 17694LC_ALL=C 17695export LC_ALL 17696LANGUAGE=C 17697export LANGUAGE 17698 17699# CDPATH. 17700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17701 17702 17703# as_fn_error STATUS ERROR [LINENO LOG_FD] 17704# ---------------------------------------- 17705# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17706# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17707# script with STATUS, using 1 if that was 0. 17708as_fn_error () 17709{ 17710 as_status=$1; test $as_status -eq 0 && as_status=1 17711 if test "$4"; then 17712 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17713 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17714 fi 17715 $as_echo "$as_me: error: $2" >&2 17716 as_fn_exit $as_status 17717} # as_fn_error 17718 17719 17720# as_fn_set_status STATUS 17721# ----------------------- 17722# Set $? to STATUS, without forking. 17723as_fn_set_status () 17724{ 17725 return $1 17726} # as_fn_set_status 17727 17728# as_fn_exit STATUS 17729# ----------------- 17730# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17731as_fn_exit () 17732{ 17733 set +e 17734 as_fn_set_status $1 17735 exit $1 17736} # as_fn_exit 17737 17738# as_fn_unset VAR 17739# --------------- 17740# Portably unset VAR. 17741as_fn_unset () 17742{ 17743 { eval $1=; unset $1;} 17744} 17745as_unset=as_fn_unset 17746# as_fn_append VAR VALUE 17747# ---------------------- 17748# Append the text in VALUE to the end of the definition contained in VAR. Take 17749# advantage of any shell optimizations that allow amortized linear growth over 17750# repeated appends, instead of the typical quadratic growth present in naive 17751# implementations. 17752if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17753 eval 'as_fn_append () 17754 { 17755 eval $1+=\$2 17756 }' 17757else 17758 as_fn_append () 17759 { 17760 eval $1=\$$1\$2 17761 } 17762fi # as_fn_append 17763 17764# as_fn_arith ARG... 17765# ------------------ 17766# Perform arithmetic evaluation on the ARGs, and store the result in the 17767# global $as_val. Take advantage of shells that can avoid forks. The arguments 17768# must be portable across $(()) and expr. 17769if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17770 eval 'as_fn_arith () 17771 { 17772 as_val=$(( $* )) 17773 }' 17774else 17775 as_fn_arith () 17776 { 17777 as_val=`expr "$@" || test $? -eq 1` 17778 } 17779fi # as_fn_arith 17780 17781 17782if expr a : '\(a\)' >/dev/null 2>&1 && 17783 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17784 as_expr=expr 17785else 17786 as_expr=false 17787fi 17788 17789if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17790 as_basename=basename 17791else 17792 as_basename=false 17793fi 17794 17795if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17796 as_dirname=dirname 17797else 17798 as_dirname=false 17799fi 17800 17801as_me=`$as_basename -- "$0" || 17802$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17803 X"$0" : 'X\(//\)$' \| \ 17804 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17805$as_echo X/"$0" | 17806 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17807 s//\1/ 17808 q 17809 } 17810 /^X\/\(\/\/\)$/{ 17811 s//\1/ 17812 q 17813 } 17814 /^X\/\(\/\).*/{ 17815 s//\1/ 17816 q 17817 } 17818 s/.*/./; q'` 17819 17820# Avoid depending upon Character Ranges. 17821as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17822as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17823as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17824as_cr_digits='0123456789' 17825as_cr_alnum=$as_cr_Letters$as_cr_digits 17826 17827ECHO_C= ECHO_N= ECHO_T= 17828case `echo -n x` in #((((( 17829-n*) 17830 case `echo 'xy\c'` in 17831 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17832 xy) ECHO_C='\c';; 17833 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17834 ECHO_T=' ';; 17835 esac;; 17836*) 17837 ECHO_N='-n';; 17838esac 17839 17840rm -f conf$$ conf$$.exe conf$$.file 17841if test -d conf$$.dir; then 17842 rm -f conf$$.dir/conf$$.file 17843else 17844 rm -f conf$$.dir 17845 mkdir conf$$.dir 2>/dev/null 17846fi 17847if (echo >conf$$.file) 2>/dev/null; then 17848 if ln -s conf$$.file conf$$ 2>/dev/null; then 17849 as_ln_s='ln -s' 17850 # ... but there are two gotchas: 17851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17853 # In both cases, we have to default to `cp -pR'. 17854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17855 as_ln_s='cp -pR' 17856 elif ln conf$$.file conf$$ 2>/dev/null; then 17857 as_ln_s=ln 17858 else 17859 as_ln_s='cp -pR' 17860 fi 17861else 17862 as_ln_s='cp -pR' 17863fi 17864rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17865rmdir conf$$.dir 2>/dev/null 17866 17867 17868# as_fn_mkdir_p 17869# ------------- 17870# Create "$as_dir" as a directory, including parents if necessary. 17871as_fn_mkdir_p () 17872{ 17873 17874 case $as_dir in #( 17875 -*) as_dir=./$as_dir;; 17876 esac 17877 test -d "$as_dir" || eval $as_mkdir_p || { 17878 as_dirs= 17879 while :; do 17880 case $as_dir in #( 17881 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17882 *) as_qdir=$as_dir;; 17883 esac 17884 as_dirs="'$as_qdir' $as_dirs" 17885 as_dir=`$as_dirname -- "$as_dir" || 17886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17887 X"$as_dir" : 'X\(//\)[^/]' \| \ 17888 X"$as_dir" : 'X\(//\)$' \| \ 17889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17890$as_echo X"$as_dir" | 17891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17892 s//\1/ 17893 q 17894 } 17895 /^X\(\/\/\)[^/].*/{ 17896 s//\1/ 17897 q 17898 } 17899 /^X\(\/\/\)$/{ 17900 s//\1/ 17901 q 17902 } 17903 /^X\(\/\).*/{ 17904 s//\1/ 17905 q 17906 } 17907 s/.*/./; q'` 17908 test -d "$as_dir" && break 17909 done 17910 test -z "$as_dirs" || eval "mkdir $as_dirs" 17911 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17912 17913 17914} # as_fn_mkdir_p 17915if mkdir -p . 2>/dev/null; then 17916 as_mkdir_p='mkdir -p "$as_dir"' 17917else 17918 test -d ./-p && rmdir ./-p 17919 as_mkdir_p=false 17920fi 17921 17922 17923# as_fn_executable_p FILE 17924# ----------------------- 17925# Test if FILE is an executable regular file. 17926as_fn_executable_p () 17927{ 17928 test -f "$1" && test -x "$1" 17929} # as_fn_executable_p 17930as_test_x='test -x' 17931as_executable_p=as_fn_executable_p 17932 17933# Sed expression to map a string onto a valid CPP name. 17934as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17935 17936# Sed expression to map a string onto a valid variable name. 17937as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17938 17939 17940exec 6>&1 17941## ----------------------------------- ## 17942## Main body of $CONFIG_STATUS script. ## 17943## ----------------------------------- ## 17944_ASEOF 17945test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17946 17947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17948# Save the log message, to keep $0 and so on meaningful, and to 17949# report actual input values of CONFIG_FILES etc. instead of their 17950# values after options handling. 17951ac_log=" 17952This file was extended by libvdpau $as_me 1.2, which was 17953generated by GNU Autoconf 2.69. Invocation command line was 17954 17955 CONFIG_FILES = $CONFIG_FILES 17956 CONFIG_HEADERS = $CONFIG_HEADERS 17957 CONFIG_LINKS = $CONFIG_LINKS 17958 CONFIG_COMMANDS = $CONFIG_COMMANDS 17959 $ $0 $@ 17960 17961on `(hostname || uname -n) 2>/dev/null | sed 1q` 17962" 17963 17964_ACEOF 17965 17966case $ac_config_files in *" 17967"*) set x $ac_config_files; shift; ac_config_files=$*;; 17968esac 17969 17970case $ac_config_headers in *" 17971"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17972esac 17973 17974 17975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17976# Files that config.status was made for. 17977config_files="$ac_config_files" 17978config_headers="$ac_config_headers" 17979config_commands="$ac_config_commands" 17980 17981_ACEOF 17982 17983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17984ac_cs_usage="\ 17985\`$as_me' instantiates files and other configuration actions 17986from templates according to the current configuration. Unless the files 17987and actions are specified as TAGs, all are instantiated by default. 17988 17989Usage: $0 [OPTION]... [TAG]... 17990 17991 -h, --help print this help, then exit 17992 -V, --version print version number and configuration settings, then exit 17993 --config print configuration, then exit 17994 -q, --quiet, --silent 17995 do not print progress messages 17996 -d, --debug don't remove temporary files 17997 --recheck update $as_me by reconfiguring in the same conditions 17998 --file=FILE[:TEMPLATE] 17999 instantiate the configuration file FILE 18000 --header=FILE[:TEMPLATE] 18001 instantiate the configuration header FILE 18002 18003Configuration files: 18004$config_files 18005 18006Configuration headers: 18007$config_headers 18008 18009Configuration commands: 18010$config_commands 18011 18012Report bugs to <vdpau@lists.freedesktop.org>." 18013 18014_ACEOF 18015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18016ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18017ac_cs_version="\\ 18018libvdpau config.status 1.2 18019configured by $0, generated by GNU Autoconf 2.69, 18020 with options \\"\$ac_cs_config\\" 18021 18022Copyright (C) 2012 Free Software Foundation, Inc. 18023This config.status script is free software; the Free Software Foundation 18024gives unlimited permission to copy, distribute and modify it." 18025 18026ac_pwd='$ac_pwd' 18027srcdir='$srcdir' 18028INSTALL='$INSTALL' 18029MKDIR_P='$MKDIR_P' 18030AWK='$AWK' 18031test -n "\$AWK" || AWK=awk 18032_ACEOF 18033 18034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18035# The default lists apply if the user does not specify any file. 18036ac_need_defaults=: 18037while test $# != 0 18038do 18039 case $1 in 18040 --*=?*) 18041 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18043 ac_shift=: 18044 ;; 18045 --*=) 18046 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18047 ac_optarg= 18048 ac_shift=: 18049 ;; 18050 *) 18051 ac_option=$1 18052 ac_optarg=$2 18053 ac_shift=shift 18054 ;; 18055 esac 18056 18057 case $ac_option in 18058 # Handling of the options. 18059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18060 ac_cs_recheck=: ;; 18061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18062 $as_echo "$ac_cs_version"; exit ;; 18063 --config | --confi | --conf | --con | --co | --c ) 18064 $as_echo "$ac_cs_config"; exit ;; 18065 --debug | --debu | --deb | --de | --d | -d ) 18066 debug=: ;; 18067 --file | --fil | --fi | --f ) 18068 $ac_shift 18069 case $ac_optarg in 18070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18071 '') as_fn_error $? "missing file argument" ;; 18072 esac 18073 as_fn_append CONFIG_FILES " '$ac_optarg'" 18074 ac_need_defaults=false;; 18075 --header | --heade | --head | --hea ) 18076 $ac_shift 18077 case $ac_optarg in 18078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18079 esac 18080 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18081 ac_need_defaults=false;; 18082 --he | --h) 18083 # Conflict between --help and --header 18084 as_fn_error $? "ambiguous option: \`$1' 18085Try \`$0 --help' for more information.";; 18086 --help | --hel | -h ) 18087 $as_echo "$ac_cs_usage"; exit ;; 18088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18089 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18090 ac_cs_silent=: ;; 18091 18092 # This is an error. 18093 -*) as_fn_error $? "unrecognized option: \`$1' 18094Try \`$0 --help' for more information." ;; 18095 18096 *) as_fn_append ac_config_targets " $1" 18097 ac_need_defaults=false ;; 18098 18099 esac 18100 shift 18101done 18102 18103ac_configure_extra_args= 18104 18105if $ac_cs_silent; then 18106 exec 6>/dev/null 18107 ac_configure_extra_args="$ac_configure_extra_args --silent" 18108fi 18109 18110_ACEOF 18111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18112if \$ac_cs_recheck; then 18113 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18114 shift 18115 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18116 CONFIG_SHELL='$SHELL' 18117 export CONFIG_SHELL 18118 exec "\$@" 18119fi 18120 18121_ACEOF 18122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18123exec 5>>config.log 18124{ 18125 echo 18126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18127## Running $as_me. ## 18128_ASBOX 18129 $as_echo "$ac_log" 18130} >&5 18131 18132_ACEOF 18133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18134# 18135# INIT-COMMANDS 18136# 18137AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18138 18139 18140# The HP-UX ksh and POSIX shell print the target directory to stdout 18141# if CDPATH is set. 18142(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18143 18144sed_quote_subst='$sed_quote_subst' 18145double_quote_subst='$double_quote_subst' 18146delay_variable_subst='$delay_variable_subst' 18147enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18148macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18149macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18150enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18151pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18152enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18153shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18154SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18155ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18156PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18157host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18158host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18159host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18160build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18161build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18162build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18163SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18164Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18165GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18166EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18167FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18168LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18169NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18170LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18171max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18172ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18173exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18174lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18175lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18176lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18177lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18178lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18179reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18180reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18181OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18182deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18183file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18184file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18185want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18186DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18187sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18188AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18189lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 18190AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18191archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18192STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18193RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18194old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18195old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18196old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18197lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18198CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18199CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18200compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18201GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18202lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18203lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18204lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18205lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18206lt_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"`' 18207lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18208nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18209lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18210lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18211objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18212MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18213lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18214lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18215lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18216lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18217lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18218need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18219MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18220DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18221NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18222LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18223OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18224OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18225libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18226shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18227extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18228archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18229enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18230export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18231whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18232compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18233old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18234old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18235archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18236archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18237module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18238module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18239with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18240allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18241no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18242hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18243hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18244hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18245hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18246hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18247hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18248hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18249inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18250link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18251always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18252export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18253exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18254include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18255prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18256postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18257file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18258variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18259need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18260need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18261version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18262runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18263shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18264shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18265libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18266library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18267soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18268install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18269postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18270postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18271finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18272finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18273hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18274sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18275configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18276configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18277hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18278enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18279enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18280enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18281old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18282striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18283compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18284predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18285postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18286predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18287postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18288compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18289LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18290reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18291reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18292old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18293compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18294GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18295lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18296lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18297lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18298lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18299lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18300archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18301enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18302export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18303whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18304compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18305old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18306old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18307archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18308archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18309module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18310module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18311with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18312allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18313no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18314hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18315hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18316hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18317hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18318hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18319hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18320hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18321inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18322link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18323always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18324export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18325exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18326include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18327prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18328postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18329file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18330hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18331compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18332predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18333postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18334predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18335postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18336compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18337 18338LTCC='$LTCC' 18339LTCFLAGS='$LTCFLAGS' 18340compiler='$compiler_DEFAULT' 18341 18342# A function that is used when there is no print builtin or printf. 18343func_fallback_echo () 18344{ 18345 eval 'cat <<_LTECHO_EOF 18346\$1 18347_LTECHO_EOF' 18348} 18349 18350# Quote evaled strings. 18351for var in SHELL \ 18352ECHO \ 18353PATH_SEPARATOR \ 18354SED \ 18355GREP \ 18356EGREP \ 18357FGREP \ 18358LD \ 18359NM \ 18360LN_S \ 18361lt_SP2NL \ 18362lt_NL2SP \ 18363reload_flag \ 18364OBJDUMP \ 18365deplibs_check_method \ 18366file_magic_cmd \ 18367file_magic_glob \ 18368want_nocaseglob \ 18369DLLTOOL \ 18370sharedlib_from_linklib_cmd \ 18371AR \ 18372archiver_list_spec \ 18373STRIP \ 18374RANLIB \ 18375CC \ 18376CFLAGS \ 18377compiler \ 18378lt_cv_sys_global_symbol_pipe \ 18379lt_cv_sys_global_symbol_to_cdecl \ 18380lt_cv_sys_global_symbol_to_import \ 18381lt_cv_sys_global_symbol_to_c_name_address \ 18382lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18383lt_cv_nm_interface \ 18384nm_file_list_spec \ 18385lt_cv_truncate_bin \ 18386lt_prog_compiler_no_builtin_flag \ 18387lt_prog_compiler_pic \ 18388lt_prog_compiler_wl \ 18389lt_prog_compiler_static \ 18390lt_cv_prog_compiler_c_o \ 18391need_locks \ 18392MANIFEST_TOOL \ 18393DSYMUTIL \ 18394NMEDIT \ 18395LIPO \ 18396OTOOL \ 18397OTOOL64 \ 18398shrext_cmds \ 18399export_dynamic_flag_spec \ 18400whole_archive_flag_spec \ 18401compiler_needs_object \ 18402with_gnu_ld \ 18403allow_undefined_flag \ 18404no_undefined_flag \ 18405hardcode_libdir_flag_spec \ 18406hardcode_libdir_separator \ 18407exclude_expsyms \ 18408include_expsyms \ 18409file_list_spec \ 18410variables_saved_for_relink \ 18411libname_spec \ 18412library_names_spec \ 18413soname_spec \ 18414install_override_mode \ 18415finish_eval \ 18416old_striplib \ 18417striplib \ 18418compiler_lib_search_dirs \ 18419predep_objects \ 18420postdep_objects \ 18421predeps \ 18422postdeps \ 18423compiler_lib_search_path \ 18424LD_CXX \ 18425reload_flag_CXX \ 18426compiler_CXX \ 18427lt_prog_compiler_no_builtin_flag_CXX \ 18428lt_prog_compiler_pic_CXX \ 18429lt_prog_compiler_wl_CXX \ 18430lt_prog_compiler_static_CXX \ 18431lt_cv_prog_compiler_c_o_CXX \ 18432export_dynamic_flag_spec_CXX \ 18433whole_archive_flag_spec_CXX \ 18434compiler_needs_object_CXX \ 18435with_gnu_ld_CXX \ 18436allow_undefined_flag_CXX \ 18437no_undefined_flag_CXX \ 18438hardcode_libdir_flag_spec_CXX \ 18439hardcode_libdir_separator_CXX \ 18440exclude_expsyms_CXX \ 18441include_expsyms_CXX \ 18442file_list_spec_CXX \ 18443compiler_lib_search_dirs_CXX \ 18444predep_objects_CXX \ 18445postdep_objects_CXX \ 18446predeps_CXX \ 18447postdeps_CXX \ 18448compiler_lib_search_path_CXX; do 18449 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18450 *[\\\\\\\`\\"\\\$]*) 18451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18452 ;; 18453 *) 18454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18455 ;; 18456 esac 18457done 18458 18459# Double-quote double-evaled strings. 18460for var in reload_cmds \ 18461old_postinstall_cmds \ 18462old_postuninstall_cmds \ 18463old_archive_cmds \ 18464extract_expsyms_cmds \ 18465old_archive_from_new_cmds \ 18466old_archive_from_expsyms_cmds \ 18467archive_cmds \ 18468archive_expsym_cmds \ 18469module_cmds \ 18470module_expsym_cmds \ 18471export_symbols_cmds \ 18472prelink_cmds \ 18473postlink_cmds \ 18474postinstall_cmds \ 18475postuninstall_cmds \ 18476finish_cmds \ 18477sys_lib_search_path_spec \ 18478configure_time_dlsearch_path \ 18479configure_time_lt_sys_library_path \ 18480reload_cmds_CXX \ 18481old_archive_cmds_CXX \ 18482old_archive_from_new_cmds_CXX \ 18483old_archive_from_expsyms_cmds_CXX \ 18484archive_cmds_CXX \ 18485archive_expsym_cmds_CXX \ 18486module_cmds_CXX \ 18487module_expsym_cmds_CXX \ 18488export_symbols_cmds_CXX \ 18489prelink_cmds_CXX \ 18490postlink_cmds_CXX; do 18491 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18492 *[\\\\\\\`\\"\\\$]*) 18493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18494 ;; 18495 *) 18496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18497 ;; 18498 esac 18499done 18500 18501ac_aux_dir='$ac_aux_dir' 18502 18503# See if we are running on zsh, and set the options that allow our 18504# commands through without removal of \ escapes INIT. 18505if test -n "\${ZSH_VERSION+set}"; then 18506 setopt NO_GLOB_SUBST 18507fi 18508 18509 18510 PACKAGE='$PACKAGE' 18511 VERSION='$VERSION' 18512 RM='$RM' 18513 ofile='$ofile' 18514 18515 18516 18517 18518 18519 18520_ACEOF 18521 18522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18523 18524# Handling of arguments. 18525for ac_config_target in $ac_config_targets 18526do 18527 case $ac_config_target in 18528 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18529 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18530 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18531 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18532 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18533 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18534 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 18535 "trace/Makefile") CONFIG_FILES="$CONFIG_FILES trace/Makefile" ;; 18536 "vdpau.pc") CONFIG_FILES="$CONFIG_FILES vdpau.pc" ;; 18537 18538 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18539 esac 18540done 18541 18542 18543# If the user did not use the arguments to specify the items to instantiate, 18544# then the envvar interface is used. Set only those that are not. 18545# We use the long form for the default assignment because of an extremely 18546# bizarre bug on SunOS 4.1.3. 18547if $ac_need_defaults; then 18548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18551fi 18552 18553# Have a temporary directory for convenience. Make it in the build tree 18554# simply because there is no reason against having it here, and in addition, 18555# creating and moving files from /tmp can sometimes cause problems. 18556# Hook for its removal unless debugging. 18557# Note that there is a small window in which the directory will not be cleaned: 18558# after its creation but before its name has been assigned to `$tmp'. 18559$debug || 18560{ 18561 tmp= ac_tmp= 18562 trap 'exit_status=$? 18563 : "${ac_tmp:=$tmp}" 18564 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18565' 0 18566 trap 'as_fn_exit 1' 1 2 13 15 18567} 18568# Create a (secure) tmp directory for tmp files. 18569 18570{ 18571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18572 test -d "$tmp" 18573} || 18574{ 18575 tmp=./conf$$-$RANDOM 18576 (umask 077 && mkdir "$tmp") 18577} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18578ac_tmp=$tmp 18579 18580# Set up the scripts for CONFIG_FILES section. 18581# No need to generate them if there are no CONFIG_FILES. 18582# This happens for instance with `./config.status config.h'. 18583if test -n "$CONFIG_FILES"; then 18584 18585 18586ac_cr=`echo X | tr X '\015'` 18587# On cygwin, bash can eat \r inside `` if the user requested igncr. 18588# But we know of no other shell where ac_cr would be empty at this 18589# point, so we can use a bashism as a fallback. 18590if test "x$ac_cr" = x; then 18591 eval ac_cr=\$\'\\r\' 18592fi 18593ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18594if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18595 ac_cs_awk_cr='\\r' 18596else 18597 ac_cs_awk_cr=$ac_cr 18598fi 18599 18600echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18601_ACEOF 18602 18603 18604{ 18605 echo "cat >conf$$subs.awk <<_ACEOF" && 18606 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18607 echo "_ACEOF" 18608} >conf$$subs.sh || 18609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18610ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18611ac_delim='%!_!# ' 18612for ac_last_try in false false false false false :; do 18613 . ./conf$$subs.sh || 18614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18615 18616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18617 if test $ac_delim_n = $ac_delim_num; then 18618 break 18619 elif $ac_last_try; then 18620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18621 else 18622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18623 fi 18624done 18625rm -f conf$$subs.sh 18626 18627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18628cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18629_ACEOF 18630sed -n ' 18631h 18632s/^/S["/; s/!.*/"]=/ 18633p 18634g 18635s/^[^!]*!// 18636:repl 18637t repl 18638s/'"$ac_delim"'$// 18639t delim 18640:nl 18641h 18642s/\(.\{148\}\)..*/\1/ 18643t more1 18644s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18645p 18646n 18647b repl 18648:more1 18649s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18650p 18651g 18652s/.\{148\}// 18653t nl 18654:delim 18655h 18656s/\(.\{148\}\)..*/\1/ 18657t more2 18658s/["\\]/\\&/g; s/^/"/; s/$/"/ 18659p 18660b 18661:more2 18662s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18663p 18664g 18665s/.\{148\}// 18666t delim 18667' <conf$$subs.awk | sed ' 18668/^[^""]/{ 18669 N 18670 s/\n// 18671} 18672' >>$CONFIG_STATUS || ac_write_fail=1 18673rm -f conf$$subs.awk 18674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18675_ACAWK 18676cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18677 for (key in S) S_is_set[key] = 1 18678 FS = "" 18679 18680} 18681{ 18682 line = $ 0 18683 nfields = split(line, field, "@") 18684 substed = 0 18685 len = length(field[1]) 18686 for (i = 2; i < nfields; i++) { 18687 key = field[i] 18688 keylen = length(key) 18689 if (S_is_set[key]) { 18690 value = S[key] 18691 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18692 len += length(value) + length(field[++i]) 18693 substed = 1 18694 } else 18695 len += 1 + keylen 18696 } 18697 18698 print line 18699} 18700 18701_ACAWK 18702_ACEOF 18703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18704if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18705 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18706else 18707 cat 18708fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18709 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18710_ACEOF 18711 18712# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18713# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18714# trailing colons and then remove the whole line if VPATH becomes empty 18715# (actually we leave an empty line to preserve line numbers). 18716if test "x$srcdir" = x.; then 18717 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18718h 18719s/// 18720s/^/:/ 18721s/[ ]*$/:/ 18722s/:\$(srcdir):/:/g 18723s/:\${srcdir}:/:/g 18724s/:@srcdir@:/:/g 18725s/^:*// 18726s/:*$// 18727x 18728s/\(=[ ]*\).*/\1/ 18729G 18730s/\n// 18731s/^[^=]*=[ ]*$// 18732}' 18733fi 18734 18735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18736fi # test -n "$CONFIG_FILES" 18737 18738# Set up the scripts for CONFIG_HEADERS section. 18739# No need to generate them if there are no CONFIG_HEADERS. 18740# This happens for instance with `./config.status Makefile'. 18741if test -n "$CONFIG_HEADERS"; then 18742cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18743BEGIN { 18744_ACEOF 18745 18746# Transform confdefs.h into an awk script `defines.awk', embedded as 18747# here-document in config.status, that substitutes the proper values into 18748# config.h.in to produce config.h. 18749 18750# Create a delimiter string that does not exist in confdefs.h, to ease 18751# handling of long lines. 18752ac_delim='%!_!# ' 18753for ac_last_try in false false :; do 18754 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18755 if test -z "$ac_tt"; then 18756 break 18757 elif $ac_last_try; then 18758 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18759 else 18760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18761 fi 18762done 18763 18764# For the awk script, D is an array of macro values keyed by name, 18765# likewise P contains macro parameters if any. Preserve backslash 18766# newline sequences. 18767 18768ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18769sed -n ' 18770s/.\{148\}/&'"$ac_delim"'/g 18771t rset 18772:rset 18773s/^[ ]*#[ ]*define[ ][ ]*/ / 18774t def 18775d 18776:def 18777s/\\$// 18778t bsnl 18779s/["\\]/\\&/g 18780s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18781D["\1"]=" \3"/p 18782s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18783d 18784:bsnl 18785s/["\\]/\\&/g 18786s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18787D["\1"]=" \3\\\\\\n"\\/p 18788t cont 18789s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18790t cont 18791d 18792:cont 18793n 18794s/.\{148\}/&'"$ac_delim"'/g 18795t clear 18796:clear 18797s/\\$// 18798t bsnlc 18799s/["\\]/\\&/g; s/^/"/; s/$/"/p 18800d 18801:bsnlc 18802s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18803b cont 18804' <confdefs.h | sed ' 18805s/'"$ac_delim"'/"\\\ 18806"/g' >>$CONFIG_STATUS || ac_write_fail=1 18807 18808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18809 for (key in D) D_is_set[key] = 1 18810 FS = "" 18811} 18812/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18813 line = \$ 0 18814 split(line, arg, " ") 18815 if (arg[1] == "#") { 18816 defundef = arg[2] 18817 mac1 = arg[3] 18818 } else { 18819 defundef = substr(arg[1], 2) 18820 mac1 = arg[2] 18821 } 18822 split(mac1, mac2, "(") #) 18823 macro = mac2[1] 18824 prefix = substr(line, 1, index(line, defundef) - 1) 18825 if (D_is_set[macro]) { 18826 # Preserve the white space surrounding the "#". 18827 print prefix "define", macro P[macro] D[macro] 18828 next 18829 } else { 18830 # Replace #undef with comments. This is necessary, for example, 18831 # in the case of _POSIX_SOURCE, which is predefined and required 18832 # on some systems where configure will not decide to define it. 18833 if (defundef == "undef") { 18834 print "/*", prefix defundef, macro, "*/" 18835 next 18836 } 18837 } 18838} 18839{ print } 18840_ACAWK 18841_ACEOF 18842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18843 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18844fi # test -n "$CONFIG_HEADERS" 18845 18846 18847eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18848shift 18849for ac_tag 18850do 18851 case $ac_tag in 18852 :[FHLC]) ac_mode=$ac_tag; continue;; 18853 esac 18854 case $ac_mode$ac_tag in 18855 :[FHL]*:*);; 18856 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18857 :[FH]-) ac_tag=-:-;; 18858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18859 esac 18860 ac_save_IFS=$IFS 18861 IFS=: 18862 set x $ac_tag 18863 IFS=$ac_save_IFS 18864 shift 18865 ac_file=$1 18866 shift 18867 18868 case $ac_mode in 18869 :L) ac_source=$1;; 18870 :[FH]) 18871 ac_file_inputs= 18872 for ac_f 18873 do 18874 case $ac_f in 18875 -) ac_f="$ac_tmp/stdin";; 18876 *) # Look for the file first in the build tree, then in the source tree 18877 # (if the path is not absolute). The absolute path cannot be DOS-style, 18878 # because $ac_f cannot contain `:'. 18879 test -f "$ac_f" || 18880 case $ac_f in 18881 [\\/$]*) false;; 18882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18883 esac || 18884 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18885 esac 18886 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18887 as_fn_append ac_file_inputs " '$ac_f'" 18888 done 18889 18890 # Let's still pretend it is `configure' which instantiates (i.e., don't 18891 # use $as_me), people would be surprised to read: 18892 # /* config.h. Generated by config.status. */ 18893 configure_input='Generated from '` 18894 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18895 `' by configure.' 18896 if test x"$ac_file" != x-; then 18897 configure_input="$ac_file. $configure_input" 18898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18899$as_echo "$as_me: creating $ac_file" >&6;} 18900 fi 18901 # Neutralize special characters interpreted by sed in replacement strings. 18902 case $configure_input in #( 18903 *\&* | *\|* | *\\* ) 18904 ac_sed_conf_input=`$as_echo "$configure_input" | 18905 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18906 *) ac_sed_conf_input=$configure_input;; 18907 esac 18908 18909 case $ac_tag in 18910 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18912 esac 18913 ;; 18914 esac 18915 18916 ac_dir=`$as_dirname -- "$ac_file" || 18917$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18918 X"$ac_file" : 'X\(//\)[^/]' \| \ 18919 X"$ac_file" : 'X\(//\)$' \| \ 18920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18921$as_echo X"$ac_file" | 18922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18923 s//\1/ 18924 q 18925 } 18926 /^X\(\/\/\)[^/].*/{ 18927 s//\1/ 18928 q 18929 } 18930 /^X\(\/\/\)$/{ 18931 s//\1/ 18932 q 18933 } 18934 /^X\(\/\).*/{ 18935 s//\1/ 18936 q 18937 } 18938 s/.*/./; q'` 18939 as_dir="$ac_dir"; as_fn_mkdir_p 18940 ac_builddir=. 18941 18942case "$ac_dir" in 18943.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18944*) 18945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18946 # A ".." for each directory in $ac_dir_suffix. 18947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18948 case $ac_top_builddir_sub in 18949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18951 esac ;; 18952esac 18953ac_abs_top_builddir=$ac_pwd 18954ac_abs_builddir=$ac_pwd$ac_dir_suffix 18955# for backward compatibility: 18956ac_top_builddir=$ac_top_build_prefix 18957 18958case $srcdir in 18959 .) # We are building in place. 18960 ac_srcdir=. 18961 ac_top_srcdir=$ac_top_builddir_sub 18962 ac_abs_top_srcdir=$ac_pwd ;; 18963 [\\/]* | ?:[\\/]* ) # Absolute name. 18964 ac_srcdir=$srcdir$ac_dir_suffix; 18965 ac_top_srcdir=$srcdir 18966 ac_abs_top_srcdir=$srcdir ;; 18967 *) # Relative name. 18968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18969 ac_top_srcdir=$ac_top_build_prefix$srcdir 18970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18971esac 18972ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18973 18974 18975 case $ac_mode in 18976 :F) 18977 # 18978 # CONFIG_FILE 18979 # 18980 18981 case $INSTALL in 18982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18984 esac 18985 ac_MKDIR_P=$MKDIR_P 18986 case $MKDIR_P in 18987 [\\/$]* | ?:[\\/]* ) ;; 18988 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18989 esac 18990_ACEOF 18991 18992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18993# If the template does not know about datarootdir, expand it. 18994# FIXME: This hack should be removed a few years after 2.60. 18995ac_datarootdir_hack=; ac_datarootdir_seen= 18996ac_sed_dataroot=' 18997/datarootdir/ { 18998 p 18999 q 19000} 19001/@datadir@/p 19002/@docdir@/p 19003/@infodir@/p 19004/@localedir@/p 19005/@mandir@/p' 19006case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19007*datarootdir*) ac_datarootdir_seen=yes;; 19008*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19010$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19011_ACEOF 19012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19013 ac_datarootdir_hack=' 19014 s&@datadir@&$datadir&g 19015 s&@docdir@&$docdir&g 19016 s&@infodir@&$infodir&g 19017 s&@localedir@&$localedir&g 19018 s&@mandir@&$mandir&g 19019 s&\\\${datarootdir}&$datarootdir&g' ;; 19020esac 19021_ACEOF 19022 19023# Neutralize VPATH when `$srcdir' = `.'. 19024# Shell code in configure.ac might set extrasub. 19025# FIXME: do we really want to maintain this feature? 19026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19027ac_sed_extra="$ac_vpsub 19028$extrasub 19029_ACEOF 19030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19031:t 19032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19033s|@configure_input@|$ac_sed_conf_input|;t t 19034s&@top_builddir@&$ac_top_builddir_sub&;t t 19035s&@top_build_prefix@&$ac_top_build_prefix&;t t 19036s&@srcdir@&$ac_srcdir&;t t 19037s&@abs_srcdir@&$ac_abs_srcdir&;t t 19038s&@top_srcdir@&$ac_top_srcdir&;t t 19039s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19040s&@builddir@&$ac_builddir&;t t 19041s&@abs_builddir@&$ac_abs_builddir&;t t 19042s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19043s&@INSTALL@&$ac_INSTALL&;t t 19044s&@MKDIR_P@&$ac_MKDIR_P&;t t 19045$ac_datarootdir_hack 19046" 19047eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19049 19050test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19053 "$ac_tmp/out"`; test -z "$ac_out"; } && 19054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19055which seems to be undefined. Please make sure it is defined" >&5 19056$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19057which seems to be undefined. Please make sure it is defined" >&2;} 19058 19059 rm -f "$ac_tmp/stdin" 19060 case $ac_file in 19061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19063 esac \ 19064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19065 ;; 19066 :H) 19067 # 19068 # CONFIG_HEADER 19069 # 19070 if test x"$ac_file" != x-; then 19071 { 19072 $as_echo "/* $configure_input */" \ 19073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19074 } >"$ac_tmp/config.h" \ 19075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19076 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19077 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19078$as_echo "$as_me: $ac_file is unchanged" >&6;} 19079 else 19080 rm -f "$ac_file" 19081 mv "$ac_tmp/config.h" "$ac_file" \ 19082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19083 fi 19084 else 19085 $as_echo "/* $configure_input */" \ 19086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19087 || as_fn_error $? "could not create -" "$LINENO" 5 19088 fi 19089# Compute "$ac_file"'s index in $config_headers. 19090_am_arg="$ac_file" 19091_am_stamp_count=1 19092for _am_header in $config_headers :; do 19093 case $_am_header in 19094 $_am_arg | $_am_arg:* ) 19095 break ;; 19096 * ) 19097 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19098 esac 19099done 19100echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19101$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19102 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19103 X"$_am_arg" : 'X\(//\)$' \| \ 19104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19105$as_echo X"$_am_arg" | 19106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19107 s//\1/ 19108 q 19109 } 19110 /^X\(\/\/\)[^/].*/{ 19111 s//\1/ 19112 q 19113 } 19114 /^X\(\/\/\)$/{ 19115 s//\1/ 19116 q 19117 } 19118 /^X\(\/\).*/{ 19119 s//\1/ 19120 q 19121 } 19122 s/.*/./; q'`/stamp-h$_am_stamp_count 19123 ;; 19124 19125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19126$as_echo "$as_me: executing $ac_file commands" >&6;} 19127 ;; 19128 esac 19129 19130 19131 case $ac_file$ac_mode in 19132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19133 # Older Autoconf quotes --file arguments for eval, but not when files 19134 # are listed without --file. Let's play safe and only enable the eval 19135 # if we detect the quoting. 19136 # TODO: see whether this extra hack can be removed once we start 19137 # requiring Autoconf 2.70 or later. 19138 case $CONFIG_FILES in #( 19139 *\'*) : 19140 eval set x "$CONFIG_FILES" ;; #( 19141 *) : 19142 set x $CONFIG_FILES ;; #( 19143 *) : 19144 ;; 19145esac 19146 shift 19147 # Used to flag and report bootstrapping failures. 19148 am_rc=0 19149 for am_mf 19150 do 19151 # Strip MF so we end up with the name of the file. 19152 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19153 # Check whether this is an Automake generated Makefile which includes 19154 # dependency-tracking related rules and includes. 19155 # Grep'ing the whole file directly is not great: AIX grep has a line 19156 # limit of 2048, but all sed's we know have understand at least 4000. 19157 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19158 || continue 19159 am_dirpart=`$as_dirname -- "$am_mf" || 19160$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19161 X"$am_mf" : 'X\(//\)[^/]' \| \ 19162 X"$am_mf" : 'X\(//\)$' \| \ 19163 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19164$as_echo X"$am_mf" | 19165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19166 s//\1/ 19167 q 19168 } 19169 /^X\(\/\/\)[^/].*/{ 19170 s//\1/ 19171 q 19172 } 19173 /^X\(\/\/\)$/{ 19174 s//\1/ 19175 q 19176 } 19177 /^X\(\/\).*/{ 19178 s//\1/ 19179 q 19180 } 19181 s/.*/./; q'` 19182 am_filepart=`$as_basename -- "$am_mf" || 19183$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19184 X"$am_mf" : 'X\(//\)$' \| \ 19185 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19186$as_echo X/"$am_mf" | 19187 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19188 s//\1/ 19189 q 19190 } 19191 /^X\/\(\/\/\)$/{ 19192 s//\1/ 19193 q 19194 } 19195 /^X\/\(\/\).*/{ 19196 s//\1/ 19197 q 19198 } 19199 s/.*/./; q'` 19200 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19201 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19202 | $MAKE -f - am--depfiles" >&5 19203 (cd "$am_dirpart" \ 19204 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19205 | $MAKE -f - am--depfiles) >&5 2>&5 19206 ac_status=$? 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19208 (exit $ac_status); } || am_rc=$? 19209 done 19210 if test $am_rc -ne 0; then 19211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19213as_fn_error $? "Something went wrong bootstrapping makefile fragments 19214 for automatic dependency tracking. Try re-running configure with the 19215 '--disable-dependency-tracking' option to at least be able to build 19216 the package (albeit without support for automatic dependency tracking). 19217See \`config.log' for more details" "$LINENO" 5; } 19218 fi 19219 { am_dirpart=; unset am_dirpart;} 19220 { am_filepart=; unset am_filepart;} 19221 { am_mf=; unset am_mf;} 19222 { am_rc=; unset am_rc;} 19223 rm -f conftest-deps.mk 19224} 19225 ;; 19226 "libtool":C) 19227 19228 # See if we are running on zsh, and set the options that allow our 19229 # commands through without removal of \ escapes. 19230 if test -n "${ZSH_VERSION+set}"; then 19231 setopt NO_GLOB_SUBST 19232 fi 19233 19234 cfgfile=${ofile}T 19235 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19236 $RM "$cfgfile" 19237 19238 cat <<_LT_EOF >> "$cfgfile" 19239#! $SHELL 19240# Generated automatically by $as_me ($PACKAGE) $VERSION 19241# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19242# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19243 19244# Provide generalized library-building support services. 19245# Written by Gordon Matzigkeit, 1996 19246 19247# Copyright (C) 2014 Free Software Foundation, Inc. 19248# This is free software; see the source for copying conditions. There is NO 19249# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19250 19251# GNU Libtool is free software; you can redistribute it and/or modify 19252# it under the terms of the GNU General Public License as published by 19253# the Free Software Foundation; either version 2 of of the License, or 19254# (at your option) any later version. 19255# 19256# As a special exception to the GNU General Public License, if you 19257# distribute this file as part of a program or library that is built 19258# using GNU Libtool, you may include this file under the same 19259# distribution terms that you use for the rest of that program. 19260# 19261# GNU Libtool is distributed in the hope that it will be useful, but 19262# WITHOUT ANY WARRANTY; without even the implied warranty of 19263# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19264# GNU General Public License for more details. 19265# 19266# You should have received a copy of the GNU General Public License 19267# along with this program. If not, see <http://www.gnu.org/licenses/>. 19268 19269 19270# The names of the tagged configurations supported by this script. 19271available_tags='CXX ' 19272 19273# Configured defaults for sys_lib_dlsearch_path munging. 19274: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19275 19276# ### BEGIN LIBTOOL CONFIG 19277 19278# Whether or not to build static libraries. 19279build_old_libs=$enable_static 19280 19281# Which release of libtool.m4 was used? 19282macro_version=$macro_version 19283macro_revision=$macro_revision 19284 19285# Whether or not to build shared libraries. 19286build_libtool_libs=$enable_shared 19287 19288# What type of objects to build. 19289pic_mode=$pic_mode 19290 19291# Whether or not to optimize for fast installation. 19292fast_install=$enable_fast_install 19293 19294# Shared archive member basename,for filename based shared library versioning on AIX. 19295shared_archive_member_spec=$shared_archive_member_spec 19296 19297# Shell to use when invoking shell scripts. 19298SHELL=$lt_SHELL 19299 19300# An echo program that protects backslashes. 19301ECHO=$lt_ECHO 19302 19303# The PATH separator for the build system. 19304PATH_SEPARATOR=$lt_PATH_SEPARATOR 19305 19306# The host system. 19307host_alias=$host_alias 19308host=$host 19309host_os=$host_os 19310 19311# The build system. 19312build_alias=$build_alias 19313build=$build 19314build_os=$build_os 19315 19316# A sed program that does not truncate output. 19317SED=$lt_SED 19318 19319# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19320Xsed="\$SED -e 1s/^X//" 19321 19322# A grep program that handles long lines. 19323GREP=$lt_GREP 19324 19325# An ERE matcher. 19326EGREP=$lt_EGREP 19327 19328# A literal string matcher. 19329FGREP=$lt_FGREP 19330 19331# A BSD- or MS-compatible name lister. 19332NM=$lt_NM 19333 19334# Whether we need soft or hard links. 19335LN_S=$lt_LN_S 19336 19337# What is the maximum length of a command? 19338max_cmd_len=$max_cmd_len 19339 19340# Object file suffix (normally "o"). 19341objext=$ac_objext 19342 19343# Executable file suffix (normally ""). 19344exeext=$exeext 19345 19346# whether the shell understands "unset". 19347lt_unset=$lt_unset 19348 19349# turn spaces into newlines. 19350SP2NL=$lt_lt_SP2NL 19351 19352# turn newlines into spaces. 19353NL2SP=$lt_lt_NL2SP 19354 19355# convert \$build file names to \$host format. 19356to_host_file_cmd=$lt_cv_to_host_file_cmd 19357 19358# convert \$build files to toolchain format. 19359to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19360 19361# An object symbol dumper. 19362OBJDUMP=$lt_OBJDUMP 19363 19364# Method to check whether dependent libraries are shared objects. 19365deplibs_check_method=$lt_deplibs_check_method 19366 19367# Command to use when deplibs_check_method = "file_magic". 19368file_magic_cmd=$lt_file_magic_cmd 19369 19370# How to find potential files when deplibs_check_method = "file_magic". 19371file_magic_glob=$lt_file_magic_glob 19372 19373# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19374want_nocaseglob=$lt_want_nocaseglob 19375 19376# DLL creation program. 19377DLLTOOL=$lt_DLLTOOL 19378 19379# Command to associate shared and link libraries. 19380sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19381 19382# The archiver. 19383AR=$lt_AR 19384 19385# Flags to create an archive (by configure). 19386lt_ar_flags=$lt_ar_flags 19387 19388# Flags to create an archive. 19389AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 19390 19391# How to feed a file listing to the archiver. 19392archiver_list_spec=$lt_archiver_list_spec 19393 19394# A symbol stripping program. 19395STRIP=$lt_STRIP 19396 19397# Commands used to install an old-style archive. 19398RANLIB=$lt_RANLIB 19399old_postinstall_cmds=$lt_old_postinstall_cmds 19400old_postuninstall_cmds=$lt_old_postuninstall_cmds 19401 19402# Whether to use a lock for old archive extraction. 19403lock_old_archive_extraction=$lock_old_archive_extraction 19404 19405# A C compiler. 19406LTCC=$lt_CC 19407 19408# LTCC compiler flags. 19409LTCFLAGS=$lt_CFLAGS 19410 19411# Take the output of nm and produce a listing of raw symbols and C names. 19412global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19413 19414# Transform the output of nm in a proper C declaration. 19415global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19416 19417# Transform the output of nm into a list of symbols to manually relocate. 19418global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19419 19420# Transform the output of nm in a C name address pair. 19421global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19422 19423# Transform the output of nm in a C name address pair when lib prefix is needed. 19424global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19425 19426# The name lister interface. 19427nm_interface=$lt_lt_cv_nm_interface 19428 19429# Specify filename containing input files for \$NM. 19430nm_file_list_spec=$lt_nm_file_list_spec 19431 19432# The root where to search for dependent libraries,and where our libraries should be installed. 19433lt_sysroot=$lt_sysroot 19434 19435# Command to truncate a binary pipe. 19436lt_truncate_bin=$lt_lt_cv_truncate_bin 19437 19438# The name of the directory that contains temporary libtool files. 19439objdir=$objdir 19440 19441# Used to examine libraries when file_magic_cmd begins with "file". 19442MAGIC_CMD=$MAGIC_CMD 19443 19444# Must we lock files when doing compilation? 19445need_locks=$lt_need_locks 19446 19447# Manifest tool. 19448MANIFEST_TOOL=$lt_MANIFEST_TOOL 19449 19450# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19451DSYMUTIL=$lt_DSYMUTIL 19452 19453# Tool to change global to local symbols on Mac OS X. 19454NMEDIT=$lt_NMEDIT 19455 19456# Tool to manipulate fat objects and archives on Mac OS X. 19457LIPO=$lt_LIPO 19458 19459# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19460OTOOL=$lt_OTOOL 19461 19462# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19463OTOOL64=$lt_OTOOL64 19464 19465# Old archive suffix (normally "a"). 19466libext=$libext 19467 19468# Shared library suffix (normally ".so"). 19469shrext_cmds=$lt_shrext_cmds 19470 19471# The commands to extract the exported symbol list from a shared archive. 19472extract_expsyms_cmds=$lt_extract_expsyms_cmds 19473 19474# Variables whose values should be saved in libtool wrapper scripts and 19475# restored at link time. 19476variables_saved_for_relink=$lt_variables_saved_for_relink 19477 19478# Do we need the "lib" prefix for modules? 19479need_lib_prefix=$need_lib_prefix 19480 19481# Do we need a version for libraries? 19482need_version=$need_version 19483 19484# Library versioning type. 19485version_type=$version_type 19486 19487# Shared library runtime path variable. 19488runpath_var=$runpath_var 19489 19490# Shared library path variable. 19491shlibpath_var=$shlibpath_var 19492 19493# Is shlibpath searched before the hard-coded library search path? 19494shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19495 19496# Format of library name prefix. 19497libname_spec=$lt_libname_spec 19498 19499# List of archive names. First name is the real one, the rest are links. 19500# The last name is the one that the linker finds with -lNAME 19501library_names_spec=$lt_library_names_spec 19502 19503# The coded name of the library, if different from the real name. 19504soname_spec=$lt_soname_spec 19505 19506# Permission mode override for installation of shared libraries. 19507install_override_mode=$lt_install_override_mode 19508 19509# Command to use after installation of a shared archive. 19510postinstall_cmds=$lt_postinstall_cmds 19511 19512# Command to use after uninstallation of a shared archive. 19513postuninstall_cmds=$lt_postuninstall_cmds 19514 19515# Commands used to finish a libtool library installation in a directory. 19516finish_cmds=$lt_finish_cmds 19517 19518# As "finish_cmds", except a single script fragment to be evaled but 19519# not shown. 19520finish_eval=$lt_finish_eval 19521 19522# Whether we should hardcode library paths into libraries. 19523hardcode_into_libs=$hardcode_into_libs 19524 19525# Compile-time system search path for libraries. 19526sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19527 19528# Detected run-time system search path for libraries. 19529sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19530 19531# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19532configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19533 19534# Whether dlopen is supported. 19535dlopen_support=$enable_dlopen 19536 19537# Whether dlopen of programs is supported. 19538dlopen_self=$enable_dlopen_self 19539 19540# Whether dlopen of statically linked programs is supported. 19541dlopen_self_static=$enable_dlopen_self_static 19542 19543# Commands to strip libraries. 19544old_striplib=$lt_old_striplib 19545striplib=$lt_striplib 19546 19547 19548# The linker used to build libraries. 19549LD=$lt_LD 19550 19551# How to create reloadable object files. 19552reload_flag=$lt_reload_flag 19553reload_cmds=$lt_reload_cmds 19554 19555# Commands used to build an old-style archive. 19556old_archive_cmds=$lt_old_archive_cmds 19557 19558# A language specific compiler. 19559CC=$lt_compiler 19560 19561# Is the compiler the GNU compiler? 19562with_gcc=$GCC 19563 19564# Compiler flag to turn off builtin functions. 19565no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19566 19567# Additional compiler flags for building library objects. 19568pic_flag=$lt_lt_prog_compiler_pic 19569 19570# How to pass a linker flag through the compiler. 19571wl=$lt_lt_prog_compiler_wl 19572 19573# Compiler flag to prevent dynamic linking. 19574link_static_flag=$lt_lt_prog_compiler_static 19575 19576# Does compiler simultaneously support -c and -o options? 19577compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19578 19579# Whether or not to add -lc for building shared libraries. 19580build_libtool_need_lc=$archive_cmds_need_lc 19581 19582# Whether or not to disallow shared libs when runtime libs are static. 19583allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19584 19585# Compiler flag to allow reflexive dlopens. 19586export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19587 19588# Compiler flag to generate shared objects directly from archives. 19589whole_archive_flag_spec=$lt_whole_archive_flag_spec 19590 19591# Whether the compiler copes with passing no objects directly. 19592compiler_needs_object=$lt_compiler_needs_object 19593 19594# Create an old-style archive from a shared archive. 19595old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19596 19597# Create a temporary old-style archive to link instead of a shared archive. 19598old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19599 19600# Commands used to build a shared archive. 19601archive_cmds=$lt_archive_cmds 19602archive_expsym_cmds=$lt_archive_expsym_cmds 19603 19604# Commands used to build a loadable module if different from building 19605# a shared archive. 19606module_cmds=$lt_module_cmds 19607module_expsym_cmds=$lt_module_expsym_cmds 19608 19609# Whether we are building with GNU ld or not. 19610with_gnu_ld=$lt_with_gnu_ld 19611 19612# Flag that allows shared libraries with undefined symbols to be built. 19613allow_undefined_flag=$lt_allow_undefined_flag 19614 19615# Flag that enforces no undefined symbols. 19616no_undefined_flag=$lt_no_undefined_flag 19617 19618# Flag to hardcode \$libdir into a binary during linking. 19619# This must work even if \$libdir does not exist 19620hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19621 19622# Whether we need a single "-rpath" flag with a separated argument. 19623hardcode_libdir_separator=$lt_hardcode_libdir_separator 19624 19625# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19626# DIR into the resulting binary. 19627hardcode_direct=$hardcode_direct 19628 19629# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19630# DIR into the resulting binary and the resulting library dependency is 19631# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19632# library is relocated. 19633hardcode_direct_absolute=$hardcode_direct_absolute 19634 19635# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19636# into the resulting binary. 19637hardcode_minus_L=$hardcode_minus_L 19638 19639# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19640# into the resulting binary. 19641hardcode_shlibpath_var=$hardcode_shlibpath_var 19642 19643# Set to "yes" if building a shared library automatically hardcodes DIR 19644# into the library and all subsequent libraries and executables linked 19645# against it. 19646hardcode_automatic=$hardcode_automatic 19647 19648# Set to yes if linker adds runtime paths of dependent libraries 19649# to runtime path list. 19650inherit_rpath=$inherit_rpath 19651 19652# Whether libtool must link a program against all its dependency libraries. 19653link_all_deplibs=$link_all_deplibs 19654 19655# Set to "yes" if exported symbols are required. 19656always_export_symbols=$always_export_symbols 19657 19658# The commands to list exported symbols. 19659export_symbols_cmds=$lt_export_symbols_cmds 19660 19661# Symbols that should not be listed in the preloaded symbols. 19662exclude_expsyms=$lt_exclude_expsyms 19663 19664# Symbols that must always be exported. 19665include_expsyms=$lt_include_expsyms 19666 19667# Commands necessary for linking programs (against libraries) with templates. 19668prelink_cmds=$lt_prelink_cmds 19669 19670# Commands necessary for finishing linking programs. 19671postlink_cmds=$lt_postlink_cmds 19672 19673# Specify filename containing input files. 19674file_list_spec=$lt_file_list_spec 19675 19676# How to hardcode a shared library path into an executable. 19677hardcode_action=$hardcode_action 19678 19679# The directories searched by this compiler when creating a shared library. 19680compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19681 19682# Dependencies to place before and after the objects being linked to 19683# create a shared library. 19684predep_objects=$lt_predep_objects 19685postdep_objects=$lt_postdep_objects 19686predeps=$lt_predeps 19687postdeps=$lt_postdeps 19688 19689# The library search path used internally by the compiler when linking 19690# a shared library. 19691compiler_lib_search_path=$lt_compiler_lib_search_path 19692 19693# ### END LIBTOOL CONFIG 19694 19695_LT_EOF 19696 19697 cat <<'_LT_EOF' >> "$cfgfile" 19698 19699# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19700 19701# func_munge_path_list VARIABLE PATH 19702# ----------------------------------- 19703# VARIABLE is name of variable containing _space_ separated list of 19704# directories to be munged by the contents of PATH, which is string 19705# having a format: 19706# "DIR[:DIR]:" 19707# string "DIR[ DIR]" will be prepended to VARIABLE 19708# ":DIR[:DIR]" 19709# string "DIR[ DIR]" will be appended to VARIABLE 19710# "DIRP[:DIRP]::[DIRA:]DIRA" 19711# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19712# "DIRA[ DIRA]" will be appended to VARIABLE 19713# "DIR[:DIR]" 19714# VARIABLE will be replaced by "DIR[ DIR]" 19715func_munge_path_list () 19716{ 19717 case x$2 in 19718 x) 19719 ;; 19720 *:) 19721 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19722 ;; 19723 x:*) 19724 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19725 ;; 19726 *::*) 19727 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19728 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19729 ;; 19730 *) 19731 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19732 ;; 19733 esac 19734} 19735 19736 19737# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19738func_cc_basename () 19739{ 19740 for cc_temp in $*""; do 19741 case $cc_temp in 19742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19744 \-*) ;; 19745 *) break;; 19746 esac 19747 done 19748 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19749} 19750 19751 19752# ### END FUNCTIONS SHARED WITH CONFIGURE 19753 19754_LT_EOF 19755 19756 case $host_os in 19757 aix3*) 19758 cat <<\_LT_EOF >> "$cfgfile" 19759# AIX sometimes has problems with the GCC collect2 program. For some 19760# reason, if we set the COLLECT_NAMES environment variable, the problems 19761# vanish in a puff of smoke. 19762if test set != "${COLLECT_NAMES+set}"; then 19763 COLLECT_NAMES= 19764 export COLLECT_NAMES 19765fi 19766_LT_EOF 19767 ;; 19768 esac 19769 19770 19771ltmain=$ac_aux_dir/ltmain.sh 19772 19773 19774 # We use sed instead of cat because bash on DJGPP gets confused if 19775 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19776 # text mode, it properly converts lines to CR/LF. This bash problem 19777 # is reportedly fixed, but why not run on old versions too? 19778 sed '$q' "$ltmain" >> "$cfgfile" \ 19779 || (rm -f "$cfgfile"; exit 1) 19780 19781 mv -f "$cfgfile" "$ofile" || 19782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19783 chmod +x "$ofile" 19784 19785 19786 cat <<_LT_EOF >> "$ofile" 19787 19788# ### BEGIN LIBTOOL TAG CONFIG: CXX 19789 19790# The linker used to build libraries. 19791LD=$lt_LD_CXX 19792 19793# How to create reloadable object files. 19794reload_flag=$lt_reload_flag_CXX 19795reload_cmds=$lt_reload_cmds_CXX 19796 19797# Commands used to build an old-style archive. 19798old_archive_cmds=$lt_old_archive_cmds_CXX 19799 19800# A language specific compiler. 19801CC=$lt_compiler_CXX 19802 19803# Is the compiler the GNU compiler? 19804with_gcc=$GCC_CXX 19805 19806# Compiler flag to turn off builtin functions. 19807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19808 19809# Additional compiler flags for building library objects. 19810pic_flag=$lt_lt_prog_compiler_pic_CXX 19811 19812# How to pass a linker flag through the compiler. 19813wl=$lt_lt_prog_compiler_wl_CXX 19814 19815# Compiler flag to prevent dynamic linking. 19816link_static_flag=$lt_lt_prog_compiler_static_CXX 19817 19818# Does compiler simultaneously support -c and -o options? 19819compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19820 19821# Whether or not to add -lc for building shared libraries. 19822build_libtool_need_lc=$archive_cmds_need_lc_CXX 19823 19824# Whether or not to disallow shared libs when runtime libs are static. 19825allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19826 19827# Compiler flag to allow reflexive dlopens. 19828export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19829 19830# Compiler flag to generate shared objects directly from archives. 19831whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19832 19833# Whether the compiler copes with passing no objects directly. 19834compiler_needs_object=$lt_compiler_needs_object_CXX 19835 19836# Create an old-style archive from a shared archive. 19837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19838 19839# Create a temporary old-style archive to link instead of a shared archive. 19840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19841 19842# Commands used to build a shared archive. 19843archive_cmds=$lt_archive_cmds_CXX 19844archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19845 19846# Commands used to build a loadable module if different from building 19847# a shared archive. 19848module_cmds=$lt_module_cmds_CXX 19849module_expsym_cmds=$lt_module_expsym_cmds_CXX 19850 19851# Whether we are building with GNU ld or not. 19852with_gnu_ld=$lt_with_gnu_ld_CXX 19853 19854# Flag that allows shared libraries with undefined symbols to be built. 19855allow_undefined_flag=$lt_allow_undefined_flag_CXX 19856 19857# Flag that enforces no undefined symbols. 19858no_undefined_flag=$lt_no_undefined_flag_CXX 19859 19860# Flag to hardcode \$libdir into a binary during linking. 19861# This must work even if \$libdir does not exist 19862hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19863 19864# Whether we need a single "-rpath" flag with a separated argument. 19865hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19866 19867# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19868# DIR into the resulting binary. 19869hardcode_direct=$hardcode_direct_CXX 19870 19871# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19872# DIR into the resulting binary and the resulting library dependency is 19873# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19874# library is relocated. 19875hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19876 19877# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19878# into the resulting binary. 19879hardcode_minus_L=$hardcode_minus_L_CXX 19880 19881# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19882# into the resulting binary. 19883hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19884 19885# Set to "yes" if building a shared library automatically hardcodes DIR 19886# into the library and all subsequent libraries and executables linked 19887# against it. 19888hardcode_automatic=$hardcode_automatic_CXX 19889 19890# Set to yes if linker adds runtime paths of dependent libraries 19891# to runtime path list. 19892inherit_rpath=$inherit_rpath_CXX 19893 19894# Whether libtool must link a program against all its dependency libraries. 19895link_all_deplibs=$link_all_deplibs_CXX 19896 19897# Set to "yes" if exported symbols are required. 19898always_export_symbols=$always_export_symbols_CXX 19899 19900# The commands to list exported symbols. 19901export_symbols_cmds=$lt_export_symbols_cmds_CXX 19902 19903# Symbols that should not be listed in the preloaded symbols. 19904exclude_expsyms=$lt_exclude_expsyms_CXX 19905 19906# Symbols that must always be exported. 19907include_expsyms=$lt_include_expsyms_CXX 19908 19909# Commands necessary for linking programs (against libraries) with templates. 19910prelink_cmds=$lt_prelink_cmds_CXX 19911 19912# Commands necessary for finishing linking programs. 19913postlink_cmds=$lt_postlink_cmds_CXX 19914 19915# Specify filename containing input files. 19916file_list_spec=$lt_file_list_spec_CXX 19917 19918# How to hardcode a shared library path into an executable. 19919hardcode_action=$hardcode_action_CXX 19920 19921# The directories searched by this compiler when creating a shared library. 19922compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19923 19924# Dependencies to place before and after the objects being linked to 19925# create a shared library. 19926predep_objects=$lt_predep_objects_CXX 19927postdep_objects=$lt_postdep_objects_CXX 19928predeps=$lt_predeps_CXX 19929postdeps=$lt_postdeps_CXX 19930 19931# The library search path used internally by the compiler when linking 19932# a shared library. 19933compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19934 19935# ### END LIBTOOL TAG CONFIG: CXX 19936_LT_EOF 19937 19938 ;; 19939 19940 esac 19941done # for ac_tag 19942 19943 19944as_fn_exit 0 19945_ACEOF 19946ac_clean_files=$ac_clean_files_save 19947 19948test $ac_write_fail = 0 || 19949 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19950 19951 19952# configure is writing to config.log, and then calls config.status. 19953# config.status does its own redirection, appending to config.log. 19954# Unfortunately, on DOS this fails, as config.log is still kept open 19955# by configure, so config.status won't be able to write to it; its 19956# output is simply discarded. So we exec the FD to /dev/null, 19957# effectively closing config.log, so it can be properly (re)opened and 19958# appended to by config.status. When coming back to configure, we 19959# need to make the FD available again. 19960if test "$no_create" != yes; then 19961 ac_cs_success=: 19962 ac_config_status_args= 19963 test "$silent" = yes && 19964 ac_config_status_args="$ac_config_status_args --quiet" 19965 exec 5>/dev/null 19966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19967 exec 5>>config.log 19968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19969 # would make configure fail if this is the last instruction. 19970 $ac_cs_success || as_fn_exit 1 19971fi 19972if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19974$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19975fi 19976 19977