1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for expat 2.1.0. 4# 5# Report bugs to <expat-bugs@libexpat.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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: expat-bugs@libexpat.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: 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='expat' 592PACKAGE_TARNAME='expat' 593PACKAGE_VERSION='2.1.0' 594PACKAGE_STRING='expat 2.1.0' 595PACKAGE_BUGREPORT='expat-bugs@libexpat.org' 596PACKAGE_URL='' 597 598ac_unique_file="Makefile.in" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='LTLIBOBJS 637LIBOBJS 638FILEMAP 639INSTALL_DATA 640INSTALL_SCRIPT 641INSTALL_PROGRAM 642CXXCPP 643ac_ct_CXX 644CXXFLAGS 645CXX 646LIBAGE 647LIBREVISION 648LIBCURRENT 649CPP 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656AWK 657RANLIB 658STRIP 659ac_ct_AR 660AR 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670OBJEXT 671EXEEXT 672ac_ct_CC 673CPPFLAGS 674LDFLAGS 675CFLAGS 676CC 677LIBTOOL 678OBJDUMP 679DLLTOOL 680AS 681host_os 682host_vendor 683host_cpu 684host 685build_os 686build_vendor 687build_cpu 688build 689target_alias 690host_alias 691build_alias 692LIBS 693ECHO_T 694ECHO_N 695ECHO_C 696DEFS 697mandir 698localedir 699libdir 700psdir 701pdfdir 702dvidir 703htmldir 704infodir 705docdir 706oldincludedir 707includedir 708localstatedir 709sharedstatedir 710sysconfdir 711datadir 712datarootdir 713libexecdir 714sbindir 715bindir 716program_transform_name 717prefix 718exec_prefix 719PACKAGE_URL 720PACKAGE_BUGREPORT 721PACKAGE_STRING 722PACKAGE_VERSION 723PACKAGE_TARNAME 724PACKAGE_NAME 725PATH_SEPARATOR 726SHELL' 727ac_subst_files='' 728ac_user_opts=' 729enable_option_checking 730enable_shared 731enable_static 732with_pic 733enable_fast_install 734with_gnu_ld 735with_sysroot 736enable_libtool_lock 737' 738 ac_precious_vars='build_alias 739host_alias 740target_alias 741CC 742CFLAGS 743LDFLAGS 744LIBS 745CPPFLAGS 746CPP 747CXX 748CXXFLAGS 749CCC 750CXXCPP' 751 752 753# Initialize some variables set by options. 754ac_init_help= 755ac_init_version=false 756ac_unrecognized_opts= 757ac_unrecognized_sep= 758# The variables have the same names as the options, with 759# dashes changed to underlines. 760cache_file=/dev/null 761exec_prefix=NONE 762no_create= 763no_recursion= 764prefix=NONE 765program_prefix=NONE 766program_suffix=NONE 767program_transform_name=s,x,x, 768silent= 769site= 770srcdir= 771verbose= 772x_includes=NONE 773x_libraries=NONE 774 775# Installation directory options. 776# These are left unexpanded so users can "make install exec_prefix=/foo" 777# and all the variables that are supposed to be based on exec_prefix 778# by default will actually change. 779# Use braces instead of parens because sh, perl, etc. also accept them. 780# (The list follows the same order as the GNU Coding Standards.) 781bindir='${exec_prefix}/bin' 782sbindir='${exec_prefix}/sbin' 783libexecdir='${exec_prefix}/libexec' 784datarootdir='${prefix}/share' 785datadir='${datarootdir}' 786sysconfdir='${prefix}/etc' 787sharedstatedir='${prefix}/com' 788localstatedir='${prefix}/var' 789includedir='${prefix}/include' 790oldincludedir='/usr/include' 791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 792infodir='${datarootdir}/info' 793htmldir='${docdir}' 794dvidir='${docdir}' 795pdfdir='${docdir}' 796psdir='${docdir}' 797libdir='${exec_prefix}/lib' 798localedir='${datarootdir}/locale' 799mandir='${datarootdir}/man' 800 801ac_prev= 802ac_dashdash= 803for ac_option 804do 805 # If the previous option needs an argument, assign it. 806 if test -n "$ac_prev"; then 807 eval $ac_prev=\$ac_option 808 ac_prev= 809 continue 810 fi 811 812 case $ac_option in 813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 814 *=) ac_optarg= ;; 815 *) ac_optarg=yes ;; 816 esac 817 818 # Accept the important Cygnus configure options, so we can diagnose typos. 819 820 case $ac_dashdash$ac_option in 821 --) 822 ac_dashdash=yes ;; 823 824 -bindir | --bindir | --bindi | --bind | --bin | --bi) 825 ac_prev=bindir ;; 826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 827 bindir=$ac_optarg ;; 828 829 -build | --build | --buil | --bui | --bu) 830 ac_prev=build_alias ;; 831 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 832 build_alias=$ac_optarg ;; 833 834 -cache-file | --cache-file | --cache-fil | --cache-fi \ 835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 836 ac_prev=cache_file ;; 837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 839 cache_file=$ac_optarg ;; 840 841 --config-cache | -C) 842 cache_file=config.cache ;; 843 844 -datadir | --datadir | --datadi | --datad) 845 ac_prev=datadir ;; 846 -datadir=* | --datadir=* | --datadi=* | --datad=*) 847 datadir=$ac_optarg ;; 848 849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 850 | --dataroo | --dataro | --datar) 851 ac_prev=datarootdir ;; 852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 854 datarootdir=$ac_optarg ;; 855 856 -disable-* | --disable-*) 857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 860 as_fn_error $? "invalid feature name: $ac_useropt" 861 ac_useropt_orig=$ac_useropt 862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 863 case $ac_user_opts in 864 *" 865"enable_$ac_useropt" 866"*) ;; 867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 868 ac_unrecognized_sep=', ';; 869 esac 870 eval enable_$ac_useropt=no ;; 871 872 -docdir | --docdir | --docdi | --doc | --do) 873 ac_prev=docdir ;; 874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 875 docdir=$ac_optarg ;; 876 877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 878 ac_prev=dvidir ;; 879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 880 dvidir=$ac_optarg ;; 881 882 -enable-* | --enable-*) 883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 886 as_fn_error $? "invalid feature name: $ac_useropt" 887 ac_useropt_orig=$ac_useropt 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 889 case $ac_user_opts in 890 *" 891"enable_$ac_useropt" 892"*) ;; 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 894 ac_unrecognized_sep=', ';; 895 esac 896 eval enable_$ac_useropt=\$ac_optarg ;; 897 898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 900 | --exec | --exe | --ex) 901 ac_prev=exec_prefix ;; 902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 904 | --exec=* | --exe=* | --ex=*) 905 exec_prefix=$ac_optarg ;; 906 907 -gas | --gas | --ga | --g) 908 # Obsolete; use --with-gas. 909 with_gas=yes ;; 910 911 -help | --help | --hel | --he | -h) 912 ac_init_help=long ;; 913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 914 ac_init_help=recursive ;; 915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 916 ac_init_help=short ;; 917 918 -host | --host | --hos | --ho) 919 ac_prev=host_alias ;; 920 -host=* | --host=* | --hos=* | --ho=*) 921 host_alias=$ac_optarg ;; 922 923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 924 ac_prev=htmldir ;; 925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 926 | --ht=*) 927 htmldir=$ac_optarg ;; 928 929 -includedir | --includedir | --includedi | --included | --include \ 930 | --includ | --inclu | --incl | --inc) 931 ac_prev=includedir ;; 932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 933 | --includ=* | --inclu=* | --incl=* | --inc=*) 934 includedir=$ac_optarg ;; 935 936 -infodir | --infodir | --infodi | --infod | --info | --inf) 937 ac_prev=infodir ;; 938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 939 infodir=$ac_optarg ;; 940 941 -libdir | --libdir | --libdi | --libd) 942 ac_prev=libdir ;; 943 -libdir=* | --libdir=* | --libdi=* | --libd=*) 944 libdir=$ac_optarg ;; 945 946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 947 | --libexe | --libex | --libe) 948 ac_prev=libexecdir ;; 949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 950 | --libexe=* | --libex=* | --libe=*) 951 libexecdir=$ac_optarg ;; 952 953 -localedir | --localedir | --localedi | --localed | --locale) 954 ac_prev=localedir ;; 955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 956 localedir=$ac_optarg ;; 957 958 -localstatedir | --localstatedir | --localstatedi | --localstated \ 959 | --localstate | --localstat | --localsta | --localst | --locals) 960 ac_prev=localstatedir ;; 961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 963 localstatedir=$ac_optarg ;; 964 965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 966 ac_prev=mandir ;; 967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 968 mandir=$ac_optarg ;; 969 970 -nfp | --nfp | --nf) 971 # Obsolete; use --without-fp. 972 with_fp=no ;; 973 974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 975 | --no-cr | --no-c | -n) 976 no_create=yes ;; 977 978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 980 no_recursion=yes ;; 981 982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 984 | --oldin | --oldi | --old | --ol | --o) 985 ac_prev=oldincludedir ;; 986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 989 oldincludedir=$ac_optarg ;; 990 991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 992 ac_prev=prefix ;; 993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 994 prefix=$ac_optarg ;; 995 996 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 997 | --program-pre | --program-pr | --program-p) 998 ac_prev=program_prefix ;; 999 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1001 program_prefix=$ac_optarg ;; 1002 1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1004 | --program-suf | --program-su | --program-s) 1005 ac_prev=program_suffix ;; 1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1008 program_suffix=$ac_optarg ;; 1009 1010 -program-transform-name | --program-transform-name \ 1011 | --program-transform-nam | --program-transform-na \ 1012 | --program-transform-n | --program-transform- \ 1013 | --program-transform | --program-transfor \ 1014 | --program-transfo | --program-transf \ 1015 | --program-trans | --program-tran \ 1016 | --progr-tra | --program-tr | --program-t) 1017 ac_prev=program_transform_name ;; 1018 -program-transform-name=* | --program-transform-name=* \ 1019 | --program-transform-nam=* | --program-transform-na=* \ 1020 | --program-transform-n=* | --program-transform-=* \ 1021 | --program-transform=* | --program-transfor=* \ 1022 | --program-transfo=* | --program-transf=* \ 1023 | --program-trans=* | --program-tran=* \ 1024 | --progr-tra=* | --program-tr=* | --program-t=*) 1025 program_transform_name=$ac_optarg ;; 1026 1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1028 ac_prev=pdfdir ;; 1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1030 pdfdir=$ac_optarg ;; 1031 1032 -psdir | --psdir | --psdi | --psd | --ps) 1033 ac_prev=psdir ;; 1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1035 psdir=$ac_optarg ;; 1036 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1038 | -silent | --silent | --silen | --sile | --sil) 1039 silent=yes ;; 1040 1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1042 ac_prev=sbindir ;; 1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1044 | --sbi=* | --sb=*) 1045 sbindir=$ac_optarg ;; 1046 1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1049 | --sharedst | --shareds | --shared | --share | --shar \ 1050 | --sha | --sh) 1051 ac_prev=sharedstatedir ;; 1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1055 | --sha=* | --sh=*) 1056 sharedstatedir=$ac_optarg ;; 1057 1058 -site | --site | --sit) 1059 ac_prev=site ;; 1060 -site=* | --site=* | --sit=*) 1061 site=$ac_optarg ;; 1062 1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1064 ac_prev=srcdir ;; 1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1066 srcdir=$ac_optarg ;; 1067 1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1069 | --syscon | --sysco | --sysc | --sys | --sy) 1070 ac_prev=sysconfdir ;; 1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1073 sysconfdir=$ac_optarg ;; 1074 1075 -target | --target | --targe | --targ | --tar | --ta | --t) 1076 ac_prev=target_alias ;; 1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1078 target_alias=$ac_optarg ;; 1079 1080 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1081 verbose=yes ;; 1082 1083 -version | --version | --versio | --versi | --vers | -V) 1084 ac_init_version=: ;; 1085 1086 -with-* | --with-*) 1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1090 as_fn_error $? "invalid package name: $ac_useropt" 1091 ac_useropt_orig=$ac_useropt 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1093 case $ac_user_opts in 1094 *" 1095"with_$ac_useropt" 1096"*) ;; 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1098 ac_unrecognized_sep=', ';; 1099 esac 1100 eval with_$ac_useropt=\$ac_optarg ;; 1101 1102 -without-* | --without-*) 1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1106 as_fn_error $? "invalid package name: $ac_useropt" 1107 ac_useropt_orig=$ac_useropt 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1109 case $ac_user_opts in 1110 *" 1111"with_$ac_useropt" 1112"*) ;; 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1114 ac_unrecognized_sep=', ';; 1115 esac 1116 eval with_$ac_useropt=no ;; 1117 1118 --x) 1119 # Obsolete; use --with-x. 1120 with_x=yes ;; 1121 1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1123 | --x-incl | --x-inc | --x-in | --x-i) 1124 ac_prev=x_includes ;; 1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1127 x_includes=$ac_optarg ;; 1128 1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1131 ac_prev=x_libraries ;; 1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1134 x_libraries=$ac_optarg ;; 1135 1136 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1137Try \`$0 --help' for more information" 1138 ;; 1139 1140 *=*) 1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1142 # Reject names that are not valid shell variable names. 1143 case $ac_envvar in #( 1144 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1146 esac 1147 eval $ac_envvar=\$ac_optarg 1148 export $ac_envvar ;; 1149 1150 *) 1151 # FIXME: should be removed in autoconf 3.0. 1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1156 ;; 1157 1158 esac 1159done 1160 1161if test -n "$ac_prev"; then 1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1163 as_fn_error $? "missing argument to $ac_option" 1164fi 1165 1166if test -n "$ac_unrecognized_opts"; then 1167 case $enable_option_checking in 1168 no) ;; 1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1171 esac 1172fi 1173 1174# Check all directory arguments for consistency. 1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1176 datadir sysconfdir sharedstatedir localstatedir includedir \ 1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1178 libdir localedir mandir 1179do 1180 eval ac_val=\$$ac_var 1181 # Remove trailing slashes. 1182 case $ac_val in 1183 */ ) 1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1185 eval $ac_var=\$ac_val;; 1186 esac 1187 # Be sure to have absolute directory names. 1188 case $ac_val in 1189 [\\/$]* | ?:[\\/]* ) continue;; 1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1191 esac 1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1193done 1194 1195# There might be people who depend on the old broken behavior: `$host' 1196# used to hold the argument of --host etc. 1197# FIXME: To remove some day. 1198build=$build_alias 1199host=$host_alias 1200target=$target_alias 1201 1202# FIXME: To remove some day. 1203if test "x$host_alias" != x; then 1204 if test "x$build_alias" = x; then 1205 cross_compiling=maybe 1206 elif test "x$build_alias" != "x$host_alias"; then 1207 cross_compiling=yes 1208 fi 1209fi 1210 1211ac_tool_prefix= 1212test -n "$host_alias" && ac_tool_prefix=$host_alias- 1213 1214test "$silent" = yes && exec 6>/dev/null 1215 1216 1217ac_pwd=`pwd` && test -n "$ac_pwd" && 1218ac_ls_di=`ls -di .` && 1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1220 as_fn_error $? "working directory cannot be determined" 1221test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1222 as_fn_error $? "pwd does not report name of working directory" 1223 1224 1225# Find the source files, if location was not specified. 1226if test -z "$srcdir"; then 1227 ac_srcdir_defaulted=yes 1228 # Try the directory containing this script, then the parent directory. 1229 ac_confdir=`$as_dirname -- "$as_myself" || 1230$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1231 X"$as_myself" : 'X\(//\)[^/]' \| \ 1232 X"$as_myself" : 'X\(//\)$' \| \ 1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1234$as_echo X"$as_myself" | 1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1236 s//\1/ 1237 q 1238 } 1239 /^X\(\/\/\)[^/].*/{ 1240 s//\1/ 1241 q 1242 } 1243 /^X\(\/\/\)$/{ 1244 s//\1/ 1245 q 1246 } 1247 /^X\(\/\).*/{ 1248 s//\1/ 1249 q 1250 } 1251 s/.*/./; q'` 1252 srcdir=$ac_confdir 1253 if test ! -r "$srcdir/$ac_unique_file"; then 1254 srcdir=.. 1255 fi 1256else 1257 ac_srcdir_defaulted=no 1258fi 1259if test ! -r "$srcdir/$ac_unique_file"; then 1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1261 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1262fi 1263ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1264ac_abs_confdir=`( 1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1266 pwd)` 1267# When building in place, set srcdir=. 1268if test "$ac_abs_confdir" = "$ac_pwd"; then 1269 srcdir=. 1270fi 1271# Remove unnecessary trailing slashes from srcdir. 1272# Double slashes in file names in object file debugging info 1273# mess up M-x gdb in Emacs. 1274case $srcdir in 1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1276esac 1277for ac_var in $ac_precious_vars; do 1278 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1279 eval ac_env_${ac_var}_value=\$${ac_var} 1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1281 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1282done 1283 1284# 1285# Report the --help message. 1286# 1287if test "$ac_init_help" = "long"; then 1288 # Omit some internal or obsolete options to make the list less imposing. 1289 # This message is too long to be a string in the A/UX 3.1 sh. 1290 cat <<_ACEOF 1291\`configure' configures expat 2.1.0 to adapt to many kinds of systems. 1292 1293Usage: $0 [OPTION]... [VAR=VALUE]... 1294 1295To assign environment variables (e.g., CC, CFLAGS...), specify them as 1296VAR=VALUE. See below for descriptions of some of the useful variables. 1297 1298Defaults for the options are specified in brackets. 1299 1300Configuration: 1301 -h, --help display this help and exit 1302 --help=short display options specific to this package 1303 --help=recursive display the short help of all the included packages 1304 -V, --version display version information and exit 1305 -q, --quiet, --silent do not print \`checking ...' messages 1306 --cache-file=FILE cache test results in FILE [disabled] 1307 -C, --config-cache alias for \`--cache-file=config.cache' 1308 -n, --no-create do not create output files 1309 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1310 1311Installation directories: 1312 --prefix=PREFIX install architecture-independent files in PREFIX 1313 [$ac_default_prefix] 1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1315 [PREFIX] 1316 1317By default, \`make install' will install all the files in 1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1319an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1320for instance \`--prefix=\$HOME'. 1321 1322For better control, use the options below. 1323 1324Fine tuning of the installation directories: 1325 --bindir=DIR user executables [EPREFIX/bin] 1326 --sbindir=DIR system admin executables [EPREFIX/sbin] 1327 --libexecdir=DIR program executables [EPREFIX/libexec] 1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1331 --libdir=DIR object code libraries [EPREFIX/lib] 1332 --includedir=DIR C header files [PREFIX/include] 1333 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1336 --infodir=DIR info documentation [DATAROOTDIR/info] 1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1338 --mandir=DIR man documentation [DATAROOTDIR/man] 1339 --docdir=DIR documentation root [DATAROOTDIR/doc/expat] 1340 --htmldir=DIR html documentation [DOCDIR] 1341 --dvidir=DIR dvi documentation [DOCDIR] 1342 --pdfdir=DIR pdf documentation [DOCDIR] 1343 --psdir=DIR ps documentation [DOCDIR] 1344_ACEOF 1345 1346 cat <<\_ACEOF 1347 1348System types: 1349 --build=BUILD configure for building on BUILD [guessed] 1350 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1351_ACEOF 1352fi 1353 1354if test -n "$ac_init_help"; then 1355 case $ac_init_help in 1356 short | recursive ) echo "Configuration of expat 2.1.0:";; 1357 esac 1358 cat <<\_ACEOF 1359 1360Optional Features: 1361 --disable-option-checking ignore unrecognized --enable/--with options 1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1364 --enable-shared[=PKGS] build shared libraries [default=yes] 1365 --enable-static[=PKGS] build static libraries [default=yes] 1366 --enable-fast-install[=PKGS] 1367 optimize for fast installation [default=yes] 1368 --disable-libtool-lock avoid locking (might break parallel builds) 1369 1370Optional Packages: 1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1373 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1374 both] 1375 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1376 --with-sysroot=DIR Search for dependent libraries within DIR 1377 (or the compiler's sysroot if not specified). 1378 1379Some influential environment variables: 1380 CC C compiler command 1381 CFLAGS C compiler flags 1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1383 nonstandard directory <lib dir> 1384 LIBS libraries to pass to the linker, e.g. -l<library> 1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1386 you have headers in a nonstandard directory <include dir> 1387 CPP C preprocessor 1388 CXX C++ compiler command 1389 CXXFLAGS C++ compiler flags 1390 CXXCPP C++ preprocessor 1391 1392Use these variables to override the choices made by `configure' or to help 1393it to find libraries and programs with nonstandard names/locations. 1394 1395Report bugs to <expat-bugs@libexpat.org>. 1396_ACEOF 1397ac_status=$? 1398fi 1399 1400if test "$ac_init_help" = "recursive"; then 1401 # If there are subdirs, report their specific --help. 1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1403 test -d "$ac_dir" || 1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1405 continue 1406 ac_builddir=. 1407 1408case "$ac_dir" in 1409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1410*) 1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1412 # A ".." for each directory in $ac_dir_suffix. 1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1414 case $ac_top_builddir_sub in 1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1417 esac ;; 1418esac 1419ac_abs_top_builddir=$ac_pwd 1420ac_abs_builddir=$ac_pwd$ac_dir_suffix 1421# for backward compatibility: 1422ac_top_builddir=$ac_top_build_prefix 1423 1424case $srcdir in 1425 .) # We are building in place. 1426 ac_srcdir=. 1427 ac_top_srcdir=$ac_top_builddir_sub 1428 ac_abs_top_srcdir=$ac_pwd ;; 1429 [\\/]* | ?:[\\/]* ) # Absolute name. 1430 ac_srcdir=$srcdir$ac_dir_suffix; 1431 ac_top_srcdir=$srcdir 1432 ac_abs_top_srcdir=$srcdir ;; 1433 *) # Relative name. 1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1435 ac_top_srcdir=$ac_top_build_prefix$srcdir 1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1437esac 1438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1439 1440 cd "$ac_dir" || { ac_status=$?; continue; } 1441 # Check for guested configure. 1442 if test -f "$ac_srcdir/configure.gnu"; then 1443 echo && 1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1445 elif test -f "$ac_srcdir/configure"; then 1446 echo && 1447 $SHELL "$ac_srcdir/configure" --help=recursive 1448 else 1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1450 fi || ac_status=$? 1451 cd "$ac_pwd" || { ac_status=$?; break; } 1452 done 1453fi 1454 1455test -n "$ac_init_help" && exit $ac_status 1456if $ac_init_version; then 1457 cat <<\_ACEOF 1458expat configure 2.1.0 1459generated by GNU Autoconf 2.69 1460 1461Copyright (C) 2012 Free Software Foundation, Inc. 1462This configure script is free software; the Free Software Foundation 1463gives unlimited permission to copy, distribute and modify it. 1464_ACEOF 1465 exit 1466fi 1467 1468## ------------------------ ## 1469## Autoconf initialization. ## 1470## ------------------------ ## 1471 1472# ac_fn_c_try_compile LINENO 1473# -------------------------- 1474# Try to compile conftest.$ac_ext, and return whether this succeeded. 1475ac_fn_c_try_compile () 1476{ 1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1478 rm -f conftest.$ac_objext 1479 if { { ac_try="$ac_compile" 1480case "(($ac_try" in 1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1482 *) ac_try_echo=$ac_try;; 1483esac 1484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1485$as_echo "$ac_try_echo"; } >&5 1486 (eval "$ac_compile") 2>conftest.err 1487 ac_status=$? 1488 if test -s conftest.err; then 1489 grep -v '^ *+' conftest.err >conftest.er1 1490 cat conftest.er1 >&5 1491 mv -f conftest.er1 conftest.err 1492 fi 1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1494 test $ac_status = 0; } && { 1495 test -z "$ac_c_werror_flag" || 1496 test ! -s conftest.err 1497 } && test -s conftest.$ac_objext; then : 1498 ac_retval=0 1499else 1500 $as_echo "$as_me: failed program was:" >&5 1501sed 's/^/| /' conftest.$ac_ext >&5 1502 1503 ac_retval=1 1504fi 1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1506 as_fn_set_status $ac_retval 1507 1508} # ac_fn_c_try_compile 1509 1510# ac_fn_c_try_link LINENO 1511# ----------------------- 1512# Try to link conftest.$ac_ext, and return whether this succeeded. 1513ac_fn_c_try_link () 1514{ 1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1516 rm -f conftest.$ac_objext conftest$ac_exeext 1517 if { { ac_try="$ac_link" 1518case "(($ac_try" in 1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1520 *) ac_try_echo=$ac_try;; 1521esac 1522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1523$as_echo "$ac_try_echo"; } >&5 1524 (eval "$ac_link") 2>conftest.err 1525 ac_status=$? 1526 if test -s conftest.err; then 1527 grep -v '^ *+' conftest.err >conftest.er1 1528 cat conftest.er1 >&5 1529 mv -f conftest.er1 conftest.err 1530 fi 1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1532 test $ac_status = 0; } && { 1533 test -z "$ac_c_werror_flag" || 1534 test ! -s conftest.err 1535 } && test -s conftest$ac_exeext && { 1536 test "$cross_compiling" = yes || 1537 test -x conftest$ac_exeext 1538 }; then : 1539 ac_retval=0 1540else 1541 $as_echo "$as_me: failed program was:" >&5 1542sed 's/^/| /' conftest.$ac_ext >&5 1543 1544 ac_retval=1 1545fi 1546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1548 # interfere with the next link command; also delete a directory that is 1549 # left behind by Apple's compiler. We do this before executing the actions. 1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552 as_fn_set_status $ac_retval 1553 1554} # ac_fn_c_try_link 1555 1556# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1557# ------------------------------------------------------- 1558# Tests whether HEADER exists and can be compiled using the include files in 1559# INCLUDES, setting the cache variable VAR accordingly. 1560ac_fn_c_check_header_compile () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1564$as_echo_n "checking for $2... " >&6; } 1565if eval \${$3+:} false; then : 1566 $as_echo_n "(cached) " >&6 1567else 1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1569/* end confdefs.h. */ 1570$4 1571#include <$2> 1572_ACEOF 1573if ac_fn_c_try_compile "$LINENO"; then : 1574 eval "$3=yes" 1575else 1576 eval "$3=no" 1577fi 1578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1579fi 1580eval ac_res=\$$3 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1582$as_echo "$ac_res" >&6; } 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1584 1585} # ac_fn_c_check_header_compile 1586 1587# ac_fn_c_try_cpp LINENO 1588# ---------------------- 1589# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1590ac_fn_c_try_cpp () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 if { { ac_try="$ac_cpp conftest.$ac_ext" 1594case "(($ac_try" in 1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1596 *) ac_try_echo=$ac_try;; 1597esac 1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1599$as_echo "$ac_try_echo"; } >&5 1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1601 ac_status=$? 1602 if test -s conftest.err; then 1603 grep -v '^ *+' conftest.err >conftest.er1 1604 cat conftest.er1 >&5 1605 mv -f conftest.er1 conftest.err 1606 fi 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } > conftest.i && { 1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1610 test ! -s conftest.err 1611 }; then : 1612 ac_retval=0 1613else 1614 $as_echo "$as_me: failed program was:" >&5 1615sed 's/^/| /' conftest.$ac_ext >&5 1616 1617 ac_retval=1 1618fi 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_cpp 1623 1624# ac_fn_c_try_run LINENO 1625# ---------------------- 1626# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1627# that executables *can* be run. 1628ac_fn_c_try_run () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 if { { ac_try="$ac_link" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637$as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_link") 2>&5 1639 ac_status=$? 1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1642 { { case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_try") 2>&5 1649 ac_status=$? 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; }; }; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: program exited with status $ac_status" >&5 1655 $as_echo "$as_me: failed program was:" >&5 1656sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=$ac_status 1659fi 1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 as_fn_set_status $ac_retval 1663 1664} # ac_fn_c_try_run 1665 1666# ac_fn_c_check_func LINENO FUNC VAR 1667# ---------------------------------- 1668# Tests whether FUNC exists, setting the cache variable VAR accordingly 1669ac_fn_c_check_func () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1673$as_echo_n "checking for $2... " >&6; } 1674if eval \${$3+:} false; then : 1675 $as_echo_n "(cached) " >&6 1676else 1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1680 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1681#define $2 innocuous_$2 1682 1683/* System header to define __stub macros and hopefully few prototypes, 1684 which can conflict with char $2 (); below. 1685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1686 <limits.h> exists even on freestanding compilers. */ 1687 1688#ifdef __STDC__ 1689# include <limits.h> 1690#else 1691# include <assert.h> 1692#endif 1693 1694#undef $2 1695 1696/* Override any GCC internal prototype to avoid an error. 1697 Use char because int might match the return type of a GCC 1698 builtin and then its argument prototype would still apply. */ 1699#ifdef __cplusplus 1700extern "C" 1701#endif 1702char $2 (); 1703/* The GNU C library defines this for functions which it implements 1704 to always fail with ENOSYS. Some functions are actually named 1705 something starting with __ and the normal name is an alias. */ 1706#if defined __stub_$2 || defined __stub___$2 1707choke me 1708#endif 1709 1710int 1711main () 1712{ 1713return $2 (); 1714 ; 1715 return 0; 1716} 1717_ACEOF 1718if ac_fn_c_try_link "$LINENO"; then : 1719 eval "$3=yes" 1720else 1721 eval "$3=no" 1722fi 1723rm -f core conftest.err conftest.$ac_objext \ 1724 conftest$ac_exeext conftest.$ac_ext 1725fi 1726eval ac_res=\$$3 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1728$as_echo "$ac_res" >&6; } 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 1731} # ac_fn_c_check_func 1732 1733# ac_fn_cxx_try_compile LINENO 1734# ---------------------------- 1735# Try to compile conftest.$ac_ext, and return whether this succeeded. 1736ac_fn_cxx_try_compile () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 rm -f conftest.$ac_objext 1740 if { { ac_try="$ac_compile" 1741case "(($ac_try" in 1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1743 *) ac_try_echo=$ac_try;; 1744esac 1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1746$as_echo "$ac_try_echo"; } >&5 1747 (eval "$ac_compile") 2>conftest.err 1748 ac_status=$? 1749 if test -s conftest.err; then 1750 grep -v '^ *+' conftest.err >conftest.er1 1751 cat conftest.er1 >&5 1752 mv -f conftest.er1 conftest.err 1753 fi 1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1755 test $ac_status = 0; } && { 1756 test -z "$ac_cxx_werror_flag" || 1757 test ! -s conftest.err 1758 } && test -s conftest.$ac_objext; then : 1759 ac_retval=0 1760else 1761 $as_echo "$as_me: failed program was:" >&5 1762sed 's/^/| /' conftest.$ac_ext >&5 1763 1764 ac_retval=1 1765fi 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 as_fn_set_status $ac_retval 1768 1769} # ac_fn_cxx_try_compile 1770 1771# ac_fn_cxx_try_cpp LINENO 1772# ------------------------ 1773# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1774ac_fn_cxx_try_cpp () 1775{ 1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1777 if { { ac_try="$ac_cpp conftest.$ac_ext" 1778case "(($ac_try" in 1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1780 *) ac_try_echo=$ac_try;; 1781esac 1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1783$as_echo "$ac_try_echo"; } >&5 1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1785 ac_status=$? 1786 if test -s conftest.err; then 1787 grep -v '^ *+' conftest.err >conftest.er1 1788 cat conftest.er1 >&5 1789 mv -f conftest.er1 conftest.err 1790 fi 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; } > conftest.i && { 1793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1794 test ! -s conftest.err 1795 }; then : 1796 ac_retval=0 1797else 1798 $as_echo "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=1 1802fi 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 as_fn_set_status $ac_retval 1805 1806} # ac_fn_cxx_try_cpp 1807 1808# ac_fn_cxx_try_link LINENO 1809# ------------------------- 1810# Try to link conftest.$ac_ext, and return whether this succeeded. 1811ac_fn_cxx_try_link () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 rm -f conftest.$ac_objext conftest$ac_exeext 1815 if { { ac_try="$ac_link" 1816case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_link") 2>conftest.err 1823 ac_status=$? 1824 if test -s conftest.err; then 1825 grep -v '^ *+' conftest.err >conftest.er1 1826 cat conftest.er1 >&5 1827 mv -f conftest.er1 conftest.err 1828 fi 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; } && { 1831 test -z "$ac_cxx_werror_flag" || 1832 test ! -s conftest.err 1833 } && test -s conftest$ac_exeext && { 1834 test "$cross_compiling" = yes || 1835 test -x conftest$ac_exeext 1836 }; then : 1837 ac_retval=0 1838else 1839 $as_echo "$as_me: failed program was:" >&5 1840sed 's/^/| /' conftest.$ac_ext >&5 1841 1842 ac_retval=1 1843fi 1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1846 # interfere with the next link command; also delete a directory that is 1847 # left behind by Apple's compiler. We do this before executing the actions. 1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 as_fn_set_status $ac_retval 1851 1852} # ac_fn_cxx_try_link 1853 1854# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1855# ------------------------------------------- 1856# Tests whether TYPE exists after having included INCLUDES, setting cache 1857# variable VAR accordingly. 1858ac_fn_c_check_type () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1862$as_echo_n "checking for $2... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 eval "$3=no" 1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869$4 1870int 1871main () 1872{ 1873if (sizeof ($2)) 1874 return 0; 1875 ; 1876 return 0; 1877} 1878_ACEOF 1879if ac_fn_c_try_compile "$LINENO"; then : 1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881/* end confdefs.h. */ 1882$4 1883int 1884main () 1885{ 1886if (sizeof (($2))) 1887 return 0; 1888 ; 1889 return 0; 1890} 1891_ACEOF 1892if ac_fn_c_try_compile "$LINENO"; then : 1893 1894else 1895 eval "$3=yes" 1896fi 1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1898fi 1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1900fi 1901eval ac_res=\$$3 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1903$as_echo "$ac_res" >&6; } 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 1906} # ac_fn_c_check_type 1907 1908# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1909# ------------------------------------------------------- 1910# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1911# the include files in INCLUDES and setting the cache variable VAR 1912# accordingly. 1913ac_fn_c_check_header_mongrel () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 if eval \${$3+:} false; then : 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1918$as_echo_n "checking for $2... " >&6; } 1919if eval \${$3+:} false; then : 1920 $as_echo_n "(cached) " >&6 1921fi 1922eval ac_res=\$$3 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924$as_echo "$ac_res" >&6; } 1925else 1926 # Is the header compilable? 1927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1928$as_echo_n "checking $2 usability... " >&6; } 1929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1930/* end confdefs.h. */ 1931$4 1932#include <$2> 1933_ACEOF 1934if ac_fn_c_try_compile "$LINENO"; then : 1935 ac_header_compiler=yes 1936else 1937 ac_header_compiler=no 1938fi 1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1941$as_echo "$ac_header_compiler" >&6; } 1942 1943# Is the header present? 1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1945$as_echo_n "checking $2 presence... " >&6; } 1946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948#include <$2> 1949_ACEOF 1950if ac_fn_c_try_cpp "$LINENO"; then : 1951 ac_header_preproc=yes 1952else 1953 ac_header_preproc=no 1954fi 1955rm -f conftest.err conftest.i conftest.$ac_ext 1956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1957$as_echo "$ac_header_preproc" >&6; } 1958 1959# So? What about this header? 1960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1961 yes:no: ) 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1963$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1965$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1966 ;; 1967 no:yes:* ) 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1969$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1971$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1973$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1975$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1977$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1978( $as_echo "## -------------------------------------- ## 1979## Report this to expat-bugs@libexpat.org ## 1980## -------------------------------------- ##" 1981 ) | sed "s/^/$as_me: WARNING: /" >&2 1982 ;; 1983esac 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1985$as_echo_n "checking for $2... " >&6; } 1986if eval \${$3+:} false; then : 1987 $as_echo_n "(cached) " >&6 1988else 1989 eval "$3=\$ac_header_compiler" 1990fi 1991eval ac_res=\$$3 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1993$as_echo "$ac_res" >&6; } 1994fi 1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1996 1997} # ac_fn_c_check_header_mongrel 1998cat >config.log <<_ACEOF 1999This file contains any messages produced by compilers while 2000running configure, to aid debugging if configure makes a mistake. 2001 2002It was created by expat $as_me 2.1.0, which was 2003generated by GNU Autoconf 2.69. Invocation command line was 2004 2005 $ $0 $@ 2006 2007_ACEOF 2008exec 5>>config.log 2009{ 2010cat <<_ASUNAME 2011## --------- ## 2012## Platform. ## 2013## --------- ## 2014 2015hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2016uname -m = `(uname -m) 2>/dev/null || echo unknown` 2017uname -r = `(uname -r) 2>/dev/null || echo unknown` 2018uname -s = `(uname -s) 2>/dev/null || echo unknown` 2019uname -v = `(uname -v) 2>/dev/null || echo unknown` 2020 2021/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2022/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2023 2024/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2025/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2026/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2027/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2028/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2029/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2030/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2031 2032_ASUNAME 2033 2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2035for as_dir in $PATH 2036do 2037 IFS=$as_save_IFS 2038 test -z "$as_dir" && as_dir=. 2039 $as_echo "PATH: $as_dir" 2040 done 2041IFS=$as_save_IFS 2042 2043} >&5 2044 2045cat >&5 <<_ACEOF 2046 2047 2048## ----------- ## 2049## Core tests. ## 2050## ----------- ## 2051 2052_ACEOF 2053 2054 2055# Keep a trace of the command line. 2056# Strip out --no-create and --no-recursion so they do not pile up. 2057# Strip out --silent because we don't want to record it for future runs. 2058# Also quote any args containing shell meta-characters. 2059# Make two passes to allow for proper duplicate-argument suppression. 2060ac_configure_args= 2061ac_configure_args0= 2062ac_configure_args1= 2063ac_must_keep_next=false 2064for ac_pass in 1 2 2065do 2066 for ac_arg 2067 do 2068 case $ac_arg in 2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2071 | -silent | --silent | --silen | --sile | --sil) 2072 continue ;; 2073 *\'*) 2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2075 esac 2076 case $ac_pass in 2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2078 2) 2079 as_fn_append ac_configure_args1 " '$ac_arg'" 2080 if test $ac_must_keep_next = true; then 2081 ac_must_keep_next=false # Got value, back to normal. 2082 else 2083 case $ac_arg in 2084 *=* | --config-cache | -C | -disable-* | --disable-* \ 2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2087 | -with-* | --with-* | -without-* | --without-* | --x) 2088 case "$ac_configure_args0 " in 2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2090 esac 2091 ;; 2092 -* ) ac_must_keep_next=true ;; 2093 esac 2094 fi 2095 as_fn_append ac_configure_args " '$ac_arg'" 2096 ;; 2097 esac 2098 done 2099done 2100{ ac_configure_args0=; unset ac_configure_args0;} 2101{ ac_configure_args1=; unset ac_configure_args1;} 2102 2103# When interrupted or exit'd, cleanup temporary files, and complete 2104# config.log. We remove comments because anyway the quotes in there 2105# would cause problems or look ugly. 2106# WARNING: Use '\'' to represent an apostrophe within the trap. 2107# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2108trap 'exit_status=$? 2109 # Save into config.log some information that might help in debugging. 2110 { 2111 echo 2112 2113 $as_echo "## ---------------- ## 2114## Cache variables. ## 2115## ---------------- ##" 2116 echo 2117 # The following way of writing the cache mishandles newlines in values, 2118( 2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2120 eval ac_val=\$$ac_var 2121 case $ac_val in #( 2122 *${as_nl}*) 2123 case $ac_var in #( 2124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2126 esac 2127 case $ac_var in #( 2128 _ | IFS | as_nl) ;; #( 2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2130 *) { eval $ac_var=; unset $ac_var;} ;; 2131 esac ;; 2132 esac 2133 done 2134 (set) 2>&1 | 2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2136 *${as_nl}ac_space=\ *) 2137 sed -n \ 2138 "s/'\''/'\''\\\\'\'''\''/g; 2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2140 ;; #( 2141 *) 2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2143 ;; 2144 esac | 2145 sort 2146) 2147 echo 2148 2149 $as_echo "## ----------------- ## 2150## Output variables. ## 2151## ----------------- ##" 2152 echo 2153 for ac_var in $ac_subst_vars 2154 do 2155 eval ac_val=\$$ac_var 2156 case $ac_val in 2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2158 esac 2159 $as_echo "$ac_var='\''$ac_val'\''" 2160 done | sort 2161 echo 2162 2163 if test -n "$ac_subst_files"; then 2164 $as_echo "## ------------------- ## 2165## File substitutions. ## 2166## ------------------- ##" 2167 echo 2168 for ac_var in $ac_subst_files 2169 do 2170 eval ac_val=\$$ac_var 2171 case $ac_val in 2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2173 esac 2174 $as_echo "$ac_var='\''$ac_val'\''" 2175 done | sort 2176 echo 2177 fi 2178 2179 if test -s confdefs.h; then 2180 $as_echo "## ----------- ## 2181## confdefs.h. ## 2182## ----------- ##" 2183 echo 2184 cat confdefs.h 2185 echo 2186 fi 2187 test "$ac_signal" != 0 && 2188 $as_echo "$as_me: caught signal $ac_signal" 2189 $as_echo "$as_me: exit $exit_status" 2190 } >&5 2191 rm -f core *.core core.conftest.* && 2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2193 exit $exit_status 2194' 0 2195for ac_signal in 1 2 13 15; do 2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2197done 2198ac_signal=0 2199 2200# confdefs.h avoids OS command line length limits that DEFS can exceed. 2201rm -f -r conftest* confdefs.h 2202 2203$as_echo "/* confdefs.h */" > confdefs.h 2204 2205# Predefined preprocessor variables. 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_NAME "$PACKAGE_NAME" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_VERSION "$PACKAGE_VERSION" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_STRING "$PACKAGE_STRING" 2221_ACEOF 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2225_ACEOF 2226 2227cat >>confdefs.h <<_ACEOF 2228#define PACKAGE_URL "$PACKAGE_URL" 2229_ACEOF 2230 2231 2232# Let the site file select an alternate cache file if it wants to. 2233# Prefer an explicitly selected file to automatically selected ones. 2234ac_site_file1=NONE 2235ac_site_file2=NONE 2236if test -n "$CONFIG_SITE"; then 2237 # We do not want a PATH search for config.site. 2238 case $CONFIG_SITE in #(( 2239 -*) ac_site_file1=./$CONFIG_SITE;; 2240 */*) ac_site_file1=$CONFIG_SITE;; 2241 *) ac_site_file1=./$CONFIG_SITE;; 2242 esac 2243elif test "x$prefix" != xNONE; then 2244 ac_site_file1=$prefix/share/config.site 2245 ac_site_file2=$prefix/etc/config.site 2246else 2247 ac_site_file1=$ac_default_prefix/share/config.site 2248 ac_site_file2=$ac_default_prefix/etc/config.site 2249fi 2250for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2251do 2252 test "x$ac_site_file" = xNONE && continue 2253 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2255$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2256 sed 's/^/| /' "$ac_site_file" >&5 2257 . "$ac_site_file" \ 2258 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2260as_fn_error $? "failed to load site script $ac_site_file 2261See \`config.log' for more details" "$LINENO" 5; } 2262 fi 2263done 2264 2265if test -r "$cache_file"; then 2266 # Some versions of bash will fail to source /dev/null (special files 2267 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2270$as_echo "$as_me: loading cache $cache_file" >&6;} 2271 case $cache_file in 2272 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2273 *) . "./$cache_file";; 2274 esac 2275 fi 2276else 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2278$as_echo "$as_me: creating cache $cache_file" >&6;} 2279 >$cache_file 2280fi 2281 2282as_fn_append ac_header_list " stdlib.h" 2283as_fn_append ac_header_list " unistd.h" 2284as_fn_append ac_header_list " sys/param.h" 2285# Check that the precious variables saved in the cache have kept the same 2286# value. 2287ac_cache_corrupted=false 2288for ac_var in $ac_precious_vars; do 2289 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2290 eval ac_new_set=\$ac_env_${ac_var}_set 2291 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2292 eval ac_new_val=\$ac_env_${ac_var}_value 2293 case $ac_old_set,$ac_new_set in 2294 set,) 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2296$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2297 ac_cache_corrupted=: ;; 2298 ,set) 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2300$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2301 ac_cache_corrupted=: ;; 2302 ,);; 2303 *) 2304 if test "x$ac_old_val" != "x$ac_new_val"; then 2305 # differences in whitespace do not lead to failure. 2306 ac_old_val_w=`echo x $ac_old_val` 2307 ac_new_val_w=`echo x $ac_new_val` 2308 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2310$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2311 ac_cache_corrupted=: 2312 else 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2314$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2315 eval $ac_var=\$ac_old_val 2316 fi 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2318$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2320$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2321 fi;; 2322 esac 2323 # Pass precious variables to config.status. 2324 if test "$ac_new_set" = set; then 2325 case $ac_new_val in 2326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2327 *) ac_arg=$ac_var=$ac_new_val ;; 2328 esac 2329 case " $ac_configure_args " in 2330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2331 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2332 esac 2333 fi 2334done 2335if $ac_cache_corrupted; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2339$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2341fi 2342## -------------------- ## 2343## Main body of script. ## 2344## -------------------- ## 2345 2346ac_ext=c 2347ac_cpp='$CPP $CPPFLAGS' 2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2350ac_compiler_gnu=$ac_cv_c_compiler_gnu 2351 2352 2353 2354 2355 2356ac_aux_dir= 2357for ac_dir in conftools "$srcdir"/conftools; do 2358 if test -f "$ac_dir/install-sh"; then 2359 ac_aux_dir=$ac_dir 2360 ac_install_sh="$ac_aux_dir/install-sh -c" 2361 break 2362 elif test -f "$ac_dir/install.sh"; then 2363 ac_aux_dir=$ac_dir 2364 ac_install_sh="$ac_aux_dir/install.sh -c" 2365 break 2366 elif test -f "$ac_dir/shtool"; then 2367 ac_aux_dir=$ac_dir 2368 ac_install_sh="$ac_aux_dir/shtool install -c" 2369 break 2370 fi 2371done 2372if test -z "$ac_aux_dir"; then 2373 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5 2374fi 2375 2376# These three variables are undocumented and unsupported, 2377# and are intended to be withdrawn in a future Autoconf release. 2378# They can cause serious problems if a builder's source tree is in a directory 2379# whose full name contains unusual characters. 2380ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2381ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2382ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2383 2384 2385 2386 2387 2388 2389LIBCURRENT=7 2390LIBREVISION=0 2391LIBAGE=6 2392 2393ac_config_headers="$ac_config_headers expat_config.h" 2394 2395 2396 2397 2398 2399# Make sure we can run config.sub. 2400$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2401 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2402 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2404$as_echo_n "checking build system type... " >&6; } 2405if ${ac_cv_build+:} false; then : 2406 $as_echo_n "(cached) " >&6 2407else 2408 ac_build_alias=$build_alias 2409test "x$ac_build_alias" = x && 2410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2411test "x$ac_build_alias" = x && 2412 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2413ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2415 2416fi 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2418$as_echo "$ac_cv_build" >&6; } 2419case $ac_cv_build in 2420*-*-*) ;; 2421*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2422esac 2423build=$ac_cv_build 2424ac_save_IFS=$IFS; IFS='-' 2425set x $ac_cv_build 2426shift 2427build_cpu=$1 2428build_vendor=$2 2429shift; shift 2430# Remember, the first character of IFS is used to create $*, 2431# except with old shells: 2432build_os=$* 2433IFS=$ac_save_IFS 2434case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2435 2436 2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2438$as_echo_n "checking host system type... " >&6; } 2439if ${ac_cv_host+:} false; then : 2440 $as_echo_n "(cached) " >&6 2441else 2442 if test "x$host_alias" = x; then 2443 ac_cv_host=$ac_cv_build 2444else 2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2447fi 2448 2449fi 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2451$as_echo "$ac_cv_host" >&6; } 2452case $ac_cv_host in 2453*-*-*) ;; 2454*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2455esac 2456host=$ac_cv_host 2457ac_save_IFS=$IFS; IFS='-' 2458set x $ac_cv_host 2459shift 2460host_cpu=$1 2461host_vendor=$2 2462shift; shift 2463# Remember, the first character of IFS is used to create $*, 2464# except with old shells: 2465host_os=$* 2466IFS=$ac_save_IFS 2467case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2468 2469 2470enable_win32_dll=yes 2471 2472case $host in 2473*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 2474 if test -n "$ac_tool_prefix"; then 2475 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 2476set dummy ${ac_tool_prefix}as; ac_word=$2 2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2478$as_echo_n "checking for $ac_word... " >&6; } 2479if ${ac_cv_prog_AS+:} false; then : 2480 $as_echo_n "(cached) " >&6 2481else 2482 if test -n "$AS"; then 2483 ac_cv_prog_AS="$AS" # Let the user override the test. 2484else 2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486for as_dir in $PATH 2487do 2488 IFS=$as_save_IFS 2489 test -z "$as_dir" && as_dir=. 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2492 ac_cv_prog_AS="${ac_tool_prefix}as" 2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497 done 2498IFS=$as_save_IFS 2499 2500fi 2501fi 2502AS=$ac_cv_prog_AS 2503if test -n "$AS"; then 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 2505$as_echo "$AS" >&6; } 2506else 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2508$as_echo "no" >&6; } 2509fi 2510 2511 2512fi 2513if test -z "$ac_cv_prog_AS"; then 2514 ac_ct_AS=$AS 2515 # Extract the first word of "as", so it can be a program name with args. 2516set dummy as; ac_word=$2 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2518$as_echo_n "checking for $ac_word... " >&6; } 2519if ${ac_cv_prog_ac_ct_AS+:} false; then : 2520 $as_echo_n "(cached) " >&6 2521else 2522 if test -n "$ac_ct_AS"; then 2523 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 2524else 2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2526for as_dir in $PATH 2527do 2528 IFS=$as_save_IFS 2529 test -z "$as_dir" && as_dir=. 2530 for ac_exec_ext in '' $ac_executable_extensions; do 2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2532 ac_cv_prog_ac_ct_AS="as" 2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2534 break 2 2535 fi 2536done 2537 done 2538IFS=$as_save_IFS 2539 2540fi 2541fi 2542ac_ct_AS=$ac_cv_prog_ac_ct_AS 2543if test -n "$ac_ct_AS"; then 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 2545$as_echo "$ac_ct_AS" >&6; } 2546else 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2548$as_echo "no" >&6; } 2549fi 2550 2551 if test "x$ac_ct_AS" = x; then 2552 AS="false" 2553 else 2554 case $cross_compiling:$ac_tool_warned in 2555yes:) 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2558ac_tool_warned=yes ;; 2559esac 2560 AS=$ac_ct_AS 2561 fi 2562else 2563 AS="$ac_cv_prog_AS" 2564fi 2565 2566 if test -n "$ac_tool_prefix"; then 2567 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 2568set dummy ${ac_tool_prefix}dlltool; ac_word=$2 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2570$as_echo_n "checking for $ac_word... " >&6; } 2571if ${ac_cv_prog_DLLTOOL+:} false; then : 2572 $as_echo_n "(cached) " >&6 2573else 2574 if test -n "$DLLTOOL"; then 2575 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 2576else 2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_exec_ext in '' $ac_executable_extensions; do 2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2584 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2586 break 2 2587 fi 2588done 2589 done 2590IFS=$as_save_IFS 2591 2592fi 2593fi 2594DLLTOOL=$ac_cv_prog_DLLTOOL 2595if test -n "$DLLTOOL"; then 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 2597$as_echo "$DLLTOOL" >&6; } 2598else 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2600$as_echo "no" >&6; } 2601fi 2602 2603 2604fi 2605if test -z "$ac_cv_prog_DLLTOOL"; then 2606 ac_ct_DLLTOOL=$DLLTOOL 2607 # Extract the first word of "dlltool", so it can be a program name with args. 2608set dummy dlltool; ac_word=$2 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2610$as_echo_n "checking for $ac_word... " >&6; } 2611if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 if test -n "$ac_ct_DLLTOOL"; then 2615 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 2616else 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 test -z "$as_dir" && as_dir=. 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2624 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2626 break 2 2627 fi 2628done 2629 done 2630IFS=$as_save_IFS 2631 2632fi 2633fi 2634ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 2635if test -n "$ac_ct_DLLTOOL"; then 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 2637$as_echo "$ac_ct_DLLTOOL" >&6; } 2638else 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2640$as_echo "no" >&6; } 2641fi 2642 2643 if test "x$ac_ct_DLLTOOL" = x; then 2644 DLLTOOL="false" 2645 else 2646 case $cross_compiling:$ac_tool_warned in 2647yes:) 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2650ac_tool_warned=yes ;; 2651esac 2652 DLLTOOL=$ac_ct_DLLTOOL 2653 fi 2654else 2655 DLLTOOL="$ac_cv_prog_DLLTOOL" 2656fi 2657 2658 if test -n "$ac_tool_prefix"; then 2659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 2660set dummy ${ac_tool_prefix}objdump; ac_word=$2 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2662$as_echo_n "checking for $ac_word... " >&6; } 2663if ${ac_cv_prog_OBJDUMP+:} false; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 if test -n "$OBJDUMP"; then 2667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 2668else 2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2676 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2678 break 2 2679 fi 2680done 2681 done 2682IFS=$as_save_IFS 2683 2684fi 2685fi 2686OBJDUMP=$ac_cv_prog_OBJDUMP 2687if test -n "$OBJDUMP"; then 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 2689$as_echo "$OBJDUMP" >&6; } 2690else 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2692$as_echo "no" >&6; } 2693fi 2694 2695 2696fi 2697if test -z "$ac_cv_prog_OBJDUMP"; then 2698 ac_ct_OBJDUMP=$OBJDUMP 2699 # Extract the first word of "objdump", so it can be a program name with args. 2700set dummy objdump; ac_word=$2 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2702$as_echo_n "checking for $ac_word... " >&6; } 2703if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 2704 $as_echo_n "(cached) " >&6 2705else 2706 if test -n "$ac_ct_OBJDUMP"; then 2707 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2716 ac_cv_prog_ac_ct_OBJDUMP="objdump" 2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721 done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 2727if test -n "$ac_ct_OBJDUMP"; then 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 2729$as_echo "$ac_ct_OBJDUMP" >&6; } 2730else 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2732$as_echo "no" >&6; } 2733fi 2734 2735 if test "x$ac_ct_OBJDUMP" = x; then 2736 OBJDUMP="false" 2737 else 2738 case $cross_compiling:$ac_tool_warned in 2739yes:) 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2742ac_tool_warned=yes ;; 2743esac 2744 OBJDUMP=$ac_ct_OBJDUMP 2745 fi 2746else 2747 OBJDUMP="$ac_cv_prog_OBJDUMP" 2748fi 2749 2750 ;; 2751esac 2752 2753test -z "$AS" && AS=as 2754 2755 2756 2757 2758 2759test -z "$DLLTOOL" && DLLTOOL=dlltool 2760 2761 2762 2763 2764 2765test -z "$OBJDUMP" && OBJDUMP=objdump 2766 2767 2768 2769 2770 2771 2772 2773case `pwd` in 2774 *\ * | *\ *) 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2776$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2777esac 2778 2779 2780 2781macro_version='2.4.2' 2782macro_revision='1.3337' 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796ltmain="$ac_aux_dir/ltmain.sh" 2797 2798# Backslashify metacharacters that are still active within 2799# double-quoted strings. 2800sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2801 2802# Same as above, but do not quote variable references. 2803double_quote_subst='s/\(["`\\]\)/\\\1/g' 2804 2805# Sed substitution to delay expansion of an escaped shell variable in a 2806# double_quote_subst'ed string. 2807delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2808 2809# Sed substitution to delay expansion of an escaped single quote. 2810delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2811 2812# Sed substitution to avoid accidental globbing in evaled expressions 2813no_glob_subst='s/\*/\\\*/g' 2814 2815ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2816ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2817ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2818 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2820$as_echo_n "checking how to print strings... " >&6; } 2821# Test print first, because it will be a builtin if present. 2822if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2823 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2824 ECHO='print -r --' 2825elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2826 ECHO='printf %s\n' 2827else 2828 # Use this function as a fallback that always works. 2829 func_fallback_echo () 2830 { 2831 eval 'cat <<_LTECHO_EOF 2832$1 2833_LTECHO_EOF' 2834 } 2835 ECHO='func_fallback_echo' 2836fi 2837 2838# func_echo_all arg... 2839# Invoke $ECHO with all args, space-separated. 2840func_echo_all () 2841{ 2842 $ECHO "" 2843} 2844 2845case "$ECHO" in 2846 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2847$as_echo "printf" >&6; } ;; 2848 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2849$as_echo "print -r" >&6; } ;; 2850 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2851$as_echo "cat" >&6; } ;; 2852esac 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867ac_ext=c 2868ac_cpp='$CPP $CPPFLAGS' 2869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2871ac_compiler_gnu=$ac_cv_c_compiler_gnu 2872if test -n "$ac_tool_prefix"; then 2873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2874set dummy ${ac_tool_prefix}gcc; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if ${ac_cv_prog_CC+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$CC"; then 2881 ac_cv_prog_CC="$CC" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900CC=$ac_cv_prog_CC 2901if test -n "$CC"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2903$as_echo "$CC" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 2910fi 2911if test -z "$ac_cv_prog_CC"; then 2912 ac_ct_CC=$CC 2913 # Extract the first word of "gcc", so it can be a program name with args. 2914set dummy gcc; ac_word=$2 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916$as_echo_n "checking for $ac_word... " >&6; } 2917if ${ac_cv_prog_ac_ct_CC+:} false; then : 2918 $as_echo_n "(cached) " >&6 2919else 2920 if test -n "$ac_ct_CC"; then 2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2922else 2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2930 ac_cv_prog_ac_ct_CC="gcc" 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2932 break 2 2933 fi 2934done 2935 done 2936IFS=$as_save_IFS 2937 2938fi 2939fi 2940ac_ct_CC=$ac_cv_prog_ac_ct_CC 2941if test -n "$ac_ct_CC"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2943$as_echo "$ac_ct_CC" >&6; } 2944else 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2946$as_echo "no" >&6; } 2947fi 2948 2949 if test "x$ac_ct_CC" = x; then 2950 CC="" 2951 else 2952 case $cross_compiling:$ac_tool_warned in 2953yes:) 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2956ac_tool_warned=yes ;; 2957esac 2958 CC=$ac_ct_CC 2959 fi 2960else 2961 CC="$ac_cv_prog_CC" 2962fi 2963 2964if test -z "$CC"; then 2965 if test -n "$ac_tool_prefix"; then 2966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2967set dummy ${ac_tool_prefix}cc; ac_word=$2 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969$as_echo_n "checking for $ac_word... " >&6; } 2970if ${ac_cv_prog_CC+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 if test -n "$CC"; then 2974 ac_cv_prog_CC="$CC" # Let the user override the test. 2975else 2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 test -z "$as_dir" && as_dir=. 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2983 ac_cv_prog_CC="${ac_tool_prefix}cc" 2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987done 2988 done 2989IFS=$as_save_IFS 2990 2991fi 2992fi 2993CC=$ac_cv_prog_CC 2994if test -n "$CC"; then 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2996$as_echo "$CC" >&6; } 2997else 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2999$as_echo "no" >&6; } 3000fi 3001 3002 3003 fi 3004fi 3005if test -z "$CC"; then 3006 # Extract the first word of "cc", so it can be a program name with args. 3007set dummy cc; ac_word=$2 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3009$as_echo_n "checking for $ac_word... " >&6; } 3010if ${ac_cv_prog_CC+:} false; then : 3011 $as_echo_n "(cached) " >&6 3012else 3013 if test -n "$CC"; then 3014 ac_cv_prog_CC="$CC" # Let the user override the test. 3015else 3016 ac_prog_rejected=no 3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3018for as_dir in $PATH 3019do 3020 IFS=$as_save_IFS 3021 test -z "$as_dir" && as_dir=. 3022 for ac_exec_ext in '' $ac_executable_extensions; do 3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3025 ac_prog_rejected=yes 3026 continue 3027 fi 3028 ac_cv_prog_CC="cc" 3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032done 3033 done 3034IFS=$as_save_IFS 3035 3036if test $ac_prog_rejected = yes; then 3037 # We found a bogon in the path, so make sure we never use it. 3038 set dummy $ac_cv_prog_CC 3039 shift 3040 if test $# != 0; then 3041 # We chose a different compiler from the bogus one. 3042 # However, it has the same basename, so the bogon will be chosen 3043 # first if we set CC to just the basename; use the full file name. 3044 shift 3045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3046 fi 3047fi 3048fi 3049fi 3050CC=$ac_cv_prog_CC 3051if test -n "$CC"; then 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3053$as_echo "$CC" >&6; } 3054else 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056$as_echo "no" >&6; } 3057fi 3058 3059 3060fi 3061if test -z "$CC"; then 3062 if test -n "$ac_tool_prefix"; then 3063 for ac_prog in cl.exe 3064 do 3065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3066set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3068$as_echo_n "checking for $ac_word... " >&6; } 3069if ${ac_cv_prog_CC+:} false; then : 3070 $as_echo_n "(cached) " >&6 3071else 3072 if test -n "$CC"; then 3073 ac_cv_prog_CC="$CC" # Let the user override the test. 3074else 3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076for as_dir in $PATH 3077do 3078 IFS=$as_save_IFS 3079 test -z "$as_dir" && as_dir=. 3080 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087 done 3088IFS=$as_save_IFS 3089 3090fi 3091fi 3092CC=$ac_cv_prog_CC 3093if test -n "$CC"; then 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3095$as_echo "$CC" >&6; } 3096else 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098$as_echo "no" >&6; } 3099fi 3100 3101 3102 test -n "$CC" && break 3103 done 3104fi 3105if test -z "$CC"; then 3106 ac_ct_CC=$CC 3107 for ac_prog in cl.exe 3108do 3109 # Extract the first word of "$ac_prog", so it can be a program name with args. 3110set dummy $ac_prog; ac_word=$2 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3112$as_echo_n "checking for $ac_word... " >&6; } 3113if ${ac_cv_prog_ac_ct_CC+:} false; then : 3114 $as_echo_n "(cached) " >&6 3115else 3116 if test -n "$ac_ct_CC"; then 3117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3118else 3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3120for as_dir in $PATH 3121do 3122 IFS=$as_save_IFS 3123 test -z "$as_dir" && as_dir=. 3124 for ac_exec_ext in '' $ac_executable_extensions; do 3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3126 ac_cv_prog_ac_ct_CC="$ac_prog" 3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3128 break 2 3129 fi 3130done 3131 done 3132IFS=$as_save_IFS 3133 3134fi 3135fi 3136ac_ct_CC=$ac_cv_prog_ac_ct_CC 3137if test -n "$ac_ct_CC"; then 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3139$as_echo "$ac_ct_CC" >&6; } 3140else 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3142$as_echo "no" >&6; } 3143fi 3144 3145 3146 test -n "$ac_ct_CC" && break 3147done 3148 3149 if test "x$ac_ct_CC" = x; then 3150 CC="" 3151 else 3152 case $cross_compiling:$ac_tool_warned in 3153yes:) 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3156ac_tool_warned=yes ;; 3157esac 3158 CC=$ac_ct_CC 3159 fi 3160fi 3161 3162fi 3163 3164 3165test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3167as_fn_error $? "no acceptable C compiler found in \$PATH 3168See \`config.log' for more details" "$LINENO" 5; } 3169 3170# Provide some information about the compiler. 3171$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3172set X $ac_compile 3173ac_compiler=$2 3174for ac_option in --version -v -V -qversion; do 3175 { { ac_try="$ac_compiler $ac_option >&5" 3176case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3181$as_echo "$ac_try_echo"; } >&5 3182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3183 ac_status=$? 3184 if test -s conftest.err; then 3185 sed '10a\ 3186... rest of stderr output deleted ... 3187 10q' conftest.err >conftest.er1 3188 cat conftest.er1 >&5 3189 fi 3190 rm -f conftest.er1 conftest.err 3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3192 test $ac_status = 0; } 3193done 3194 3195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206ac_clean_files_save=$ac_clean_files 3207ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3208# Try to create an executable without -o first, disregard a.out. 3209# It will help us diagnose broken compilers, and finding out an intuition 3210# of exeext. 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3212$as_echo_n "checking whether the C compiler works... " >&6; } 3213ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3214 3215# The possible output files: 3216ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3217 3218ac_rmfiles= 3219for ac_file in $ac_files 3220do 3221 case $ac_file in 3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3223 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3224 esac 3225done 3226rm -f $ac_rmfiles 3227 3228if { { ac_try="$ac_link_default" 3229case "(($ac_try" in 3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3231 *) ac_try_echo=$ac_try;; 3232esac 3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3234$as_echo "$ac_try_echo"; } >&5 3235 (eval "$ac_link_default") 2>&5 3236 ac_status=$? 3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3238 test $ac_status = 0; }; then : 3239 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3240# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3241# in a Makefile. We should not override ac_cv_exeext if it was cached, 3242# so that the user can short-circuit this test for compilers unknown to 3243# Autoconf. 3244for ac_file in $ac_files '' 3245do 3246 test -f "$ac_file" || continue 3247 case $ac_file in 3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3249 ;; 3250 [ab].out ) 3251 # We found the default executable, but exeext='' is most 3252 # certainly right. 3253 break;; 3254 *.* ) 3255 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3256 then :; else 3257 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3258 fi 3259 # We set ac_cv_exeext here because the later test for it is not 3260 # safe: cross compilers may not add the suffix if given an `-o' 3261 # argument, so we may need to know it at that point already. 3262 # Even if this section looks crufty: it has the advantage of 3263 # actually working. 3264 break;; 3265 * ) 3266 break;; 3267 esac 3268done 3269test "$ac_cv_exeext" = no && ac_cv_exeext= 3270 3271else 3272 ac_file='' 3273fi 3274if test -z "$ac_file"; then : 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276$as_echo "no" >&6; } 3277$as_echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3282as_fn_error 77 "C compiler cannot create executables 3283See \`config.log' for more details" "$LINENO" 5; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3286$as_echo "yes" >&6; } 3287fi 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3289$as_echo_n "checking for C compiler default output file name... " >&6; } 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3291$as_echo "$ac_file" >&6; } 3292ac_exeext=$ac_cv_exeext 3293 3294rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3295ac_clean_files=$ac_clean_files_save 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3297$as_echo_n "checking for suffix of executables... " >&6; } 3298if { { ac_try="$ac_link" 3299case "(($ac_try" in 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3301 *) ac_try_echo=$ac_try;; 3302esac 3303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3304$as_echo "$ac_try_echo"; } >&5 3305 (eval "$ac_link") 2>&5 3306 ac_status=$? 3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3308 test $ac_status = 0; }; then : 3309 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3310# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3311# work properly (i.e., refer to `conftest.exe'), while it won't with 3312# `rm'. 3313for ac_file in conftest.exe conftest conftest.*; do 3314 test -f "$ac_file" || continue 3315 case $ac_file in 3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3318 break;; 3319 * ) break;; 3320 esac 3321done 3322else 3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3325as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3326See \`config.log' for more details" "$LINENO" 5; } 3327fi 3328rm -f conftest conftest$ac_cv_exeext 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3330$as_echo "$ac_cv_exeext" >&6; } 3331 3332rm -f conftest.$ac_ext 3333EXEEXT=$ac_cv_exeext 3334ac_exeext=$EXEEXT 3335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336/* end confdefs.h. */ 3337#include <stdio.h> 3338int 3339main () 3340{ 3341FILE *f = fopen ("conftest.out", "w"); 3342 return ferror (f) || fclose (f) != 0; 3343 3344 ; 3345 return 0; 3346} 3347_ACEOF 3348ac_clean_files="$ac_clean_files conftest.out" 3349# Check that the compiler produces executables we can run. If not, either 3350# the compiler is broken, or we cross compile. 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3352$as_echo_n "checking whether we are cross compiling... " >&6; } 3353if test "$cross_compiling" != yes; then 3354 { { ac_try="$ac_link" 3355case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3360$as_echo "$ac_try_echo"; } >&5 3361 (eval "$ac_link") 2>&5 3362 ac_status=$? 3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3364 test $ac_status = 0; } 3365 if { ac_try='./conftest$ac_cv_exeext' 3366 { { case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3371$as_echo "$ac_try_echo"; } >&5 3372 (eval "$ac_try") 2>&5 3373 ac_status=$? 3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3375 test $ac_status = 0; }; }; then 3376 cross_compiling=no 3377 else 3378 if test "$cross_compiling" = maybe; then 3379 cross_compiling=yes 3380 else 3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3383as_fn_error $? "cannot run C compiled programs. 3384If you meant to cross compile, use \`--host'. 3385See \`config.log' for more details" "$LINENO" 5; } 3386 fi 3387 fi 3388fi 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3390$as_echo "$cross_compiling" >&6; } 3391 3392rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3393ac_clean_files=$ac_clean_files_save 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3395$as_echo_n "checking for suffix of object files... " >&6; } 3396if ${ac_cv_objext+:} false; then : 3397 $as_echo_n "(cached) " >&6 3398else 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400/* end confdefs.h. */ 3401 3402int 3403main () 3404{ 3405 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410rm -f conftest.o conftest.obj 3411if { { ac_try="$ac_compile" 3412case "(($ac_try" in 3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3414 *) ac_try_echo=$ac_try;; 3415esac 3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3417$as_echo "$ac_try_echo"; } >&5 3418 (eval "$ac_compile") 2>&5 3419 ac_status=$? 3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3421 test $ac_status = 0; }; then : 3422 for ac_file in conftest.o conftest.obj conftest.*; do 3423 test -f "$ac_file" || continue; 3424 case $ac_file in 3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3427 break;; 3428 esac 3429done 3430else 3431 $as_echo "$as_me: failed program was:" >&5 3432sed 's/^/| /' conftest.$ac_ext >&5 3433 3434{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3436as_fn_error $? "cannot compute suffix of object files: cannot compile 3437See \`config.log' for more details" "$LINENO" 5; } 3438fi 3439rm -f conftest.$ac_cv_objext conftest.$ac_ext 3440fi 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3442$as_echo "$ac_cv_objext" >&6; } 3443OBJEXT=$ac_cv_objext 3444ac_objext=$OBJEXT 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3446$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3447if ${ac_cv_c_compiler_gnu+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451/* end confdefs.h. */ 3452 3453int 3454main () 3455{ 3456#ifndef __GNUC__ 3457 choke me 3458#endif 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464if ac_fn_c_try_compile "$LINENO"; then : 3465 ac_compiler_gnu=yes 3466else 3467 ac_compiler_gnu=no 3468fi 3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3470ac_cv_c_compiler_gnu=$ac_compiler_gnu 3471 3472fi 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3474$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3475if test $ac_compiler_gnu = yes; then 3476 GCC=yes 3477else 3478 GCC= 3479fi 3480ac_test_CFLAGS=${CFLAGS+set} 3481ac_save_CFLAGS=$CFLAGS 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3483$as_echo_n "checking whether $CC accepts -g... " >&6; } 3484if ${ac_cv_prog_cc_g+:} false; then : 3485 $as_echo_n "(cached) " >&6 3486else 3487 ac_save_c_werror_flag=$ac_c_werror_flag 3488 ac_c_werror_flag=yes 3489 ac_cv_prog_cc_g=no 3490 CFLAGS="-g" 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492/* end confdefs.h. */ 3493 3494int 3495main () 3496{ 3497 3498 ; 3499 return 0; 3500} 3501_ACEOF 3502if ac_fn_c_try_compile "$LINENO"; then : 3503 ac_cv_prog_cc_g=yes 3504else 3505 CFLAGS="" 3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_compile "$LINENO"; then : 3518 3519else 3520 ac_c_werror_flag=$ac_save_c_werror_flag 3521 CFLAGS="-g" 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528 3529 ; 3530 return 0; 3531} 3532_ACEOF 3533if ac_fn_c_try_compile "$LINENO"; then : 3534 ac_cv_prog_cc_g=yes 3535fi 3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3537fi 3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3539fi 3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3541 ac_c_werror_flag=$ac_save_c_werror_flag 3542fi 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3544$as_echo "$ac_cv_prog_cc_g" >&6; } 3545if test "$ac_test_CFLAGS" = set; then 3546 CFLAGS=$ac_save_CFLAGS 3547elif test $ac_cv_prog_cc_g = yes; then 3548 if test "$GCC" = yes; then 3549 CFLAGS="-g -O2" 3550 else 3551 CFLAGS="-g" 3552 fi 3553else 3554 if test "$GCC" = yes; then 3555 CFLAGS="-O2" 3556 else 3557 CFLAGS= 3558 fi 3559fi 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3561$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3562if ${ac_cv_prog_cc_c89+:} false; then : 3563 $as_echo_n "(cached) " >&6 3564else 3565 ac_cv_prog_cc_c89=no 3566ac_save_CC=$CC 3567cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568/* end confdefs.h. */ 3569#include <stdarg.h> 3570#include <stdio.h> 3571struct stat; 3572/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3573struct buf { int x; }; 3574FILE * (*rcsopen) (struct buf *, struct stat *, int); 3575static char *e (p, i) 3576 char **p; 3577 int i; 3578{ 3579 return p[i]; 3580} 3581static char *f (char * (*g) (char **, int), char **p, ...) 3582{ 3583 char *s; 3584 va_list v; 3585 va_start (v,p); 3586 s = g (p, va_arg (v,int)); 3587 va_end (v); 3588 return s; 3589} 3590 3591/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3592 function prototypes and stuff, but not '\xHH' hex character constants. 3593 These don't provoke an error unfortunately, instead are silently treated 3594 as 'x'. The following induces an error, until -std is added to get 3595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3596 array size at least. It's necessary to write '\x00'==0 to get something 3597 that's true only with -std. */ 3598int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3599 3600/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3601 inside strings and character constants. */ 3602#define FOO(x) 'x' 3603int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3604 3605int test (int i, double x); 3606struct s1 {int (*f) (int a);}; 3607struct s2 {int (*f) (double a);}; 3608int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3609int argc; 3610char **argv; 3611int 3612main () 3613{ 3614return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3615 ; 3616 return 0; 3617} 3618_ACEOF 3619for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3620 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3621do 3622 CC="$ac_save_CC $ac_arg" 3623 if ac_fn_c_try_compile "$LINENO"; then : 3624 ac_cv_prog_cc_c89=$ac_arg 3625fi 3626rm -f core conftest.err conftest.$ac_objext 3627 test "x$ac_cv_prog_cc_c89" != "xno" && break 3628done 3629rm -f conftest.$ac_ext 3630CC=$ac_save_CC 3631 3632fi 3633# AC_CACHE_VAL 3634case "x$ac_cv_prog_cc_c89" in 3635 x) 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3637$as_echo "none needed" >&6; } ;; 3638 xno) 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3640$as_echo "unsupported" >&6; } ;; 3641 *) 3642 CC="$CC $ac_cv_prog_cc_c89" 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3644$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3645esac 3646if test "x$ac_cv_prog_cc_c89" != xno; then : 3647 3648fi 3649 3650ac_ext=c 3651ac_cpp='$CPP $CPPFLAGS' 3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3654ac_compiler_gnu=$ac_cv_c_compiler_gnu 3655 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3657$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3658if ${ac_cv_path_SED+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3662 for ac_i in 1 2 3 4 5 6 7; do 3663 ac_script="$ac_script$as_nl$ac_script" 3664 done 3665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3666 { ac_script=; unset ac_script;} 3667 if test -z "$SED"; then 3668 ac_path_SED_found=false 3669 # Loop through the user's path and test for each of PROGNAME-LIST 3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3671for as_dir in $PATH 3672do 3673 IFS=$as_save_IFS 3674 test -z "$as_dir" && as_dir=. 3675 for ac_prog in sed gsed; do 3676 for ac_exec_ext in '' $ac_executable_extensions; do 3677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3678 as_fn_executable_p "$ac_path_SED" || continue 3679# Check for GNU ac_path_SED and select it if it is found. 3680 # Check for GNU $ac_path_SED 3681case `"$ac_path_SED" --version 2>&1` in 3682*GNU*) 3683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3684*) 3685 ac_count=0 3686 $as_echo_n 0123456789 >"conftest.in" 3687 while : 3688 do 3689 cat "conftest.in" "conftest.in" >"conftest.tmp" 3690 mv "conftest.tmp" "conftest.in" 3691 cp "conftest.in" "conftest.nl" 3692 $as_echo '' >> "conftest.nl" 3693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3695 as_fn_arith $ac_count + 1 && ac_count=$as_val 3696 if test $ac_count -gt ${ac_path_SED_max-0}; then 3697 # Best one so far, save it but keep looking for a better one 3698 ac_cv_path_SED="$ac_path_SED" 3699 ac_path_SED_max=$ac_count 3700 fi 3701 # 10*(2^10) chars as input seems more than enough 3702 test $ac_count -gt 10 && break 3703 done 3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3705esac 3706 3707 $ac_path_SED_found && break 3 3708 done 3709 done 3710 done 3711IFS=$as_save_IFS 3712 if test -z "$ac_cv_path_SED"; then 3713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3714 fi 3715else 3716 ac_cv_path_SED=$SED 3717fi 3718 3719fi 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3721$as_echo "$ac_cv_path_SED" >&6; } 3722 SED="$ac_cv_path_SED" 3723 rm -f conftest.sed 3724 3725test -z "$SED" && SED=sed 3726Xsed="$SED -e 1s/^X//" 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3739$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3740if ${ac_cv_path_GREP+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -z "$GREP"; then 3744 ac_path_GREP_found=false 3745 # Loop through the user's path and test for each of PROGNAME-LIST 3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3748do 3749 IFS=$as_save_IFS 3750 test -z "$as_dir" && as_dir=. 3751 for ac_prog in grep ggrep; do 3752 for ac_exec_ext in '' $ac_executable_extensions; do 3753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3754 as_fn_executable_p "$ac_path_GREP" || continue 3755# Check for GNU ac_path_GREP and select it if it is found. 3756 # Check for GNU $ac_path_GREP 3757case `"$ac_path_GREP" --version 2>&1` in 3758*GNU*) 3759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3760*) 3761 ac_count=0 3762 $as_echo_n 0123456789 >"conftest.in" 3763 while : 3764 do 3765 cat "conftest.in" "conftest.in" >"conftest.tmp" 3766 mv "conftest.tmp" "conftest.in" 3767 cp "conftest.in" "conftest.nl" 3768 $as_echo 'GREP' >> "conftest.nl" 3769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3771 as_fn_arith $ac_count + 1 && ac_count=$as_val 3772 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3773 # Best one so far, save it but keep looking for a better one 3774 ac_cv_path_GREP="$ac_path_GREP" 3775 ac_path_GREP_max=$ac_count 3776 fi 3777 # 10*(2^10) chars as input seems more than enough 3778 test $ac_count -gt 10 && break 3779 done 3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3781esac 3782 3783 $ac_path_GREP_found && break 3 3784 done 3785 done 3786 done 3787IFS=$as_save_IFS 3788 if test -z "$ac_cv_path_GREP"; then 3789 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3790 fi 3791else 3792 ac_cv_path_GREP=$GREP 3793fi 3794 3795fi 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3797$as_echo "$ac_cv_path_GREP" >&6; } 3798 GREP="$ac_cv_path_GREP" 3799 3800 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3802$as_echo_n "checking for egrep... " >&6; } 3803if ${ac_cv_path_EGREP+:} false; then : 3804 $as_echo_n "(cached) " >&6 3805else 3806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3807 then ac_cv_path_EGREP="$GREP -E" 3808 else 3809 if test -z "$EGREP"; then 3810 ac_path_EGREP_found=false 3811 # Loop through the user's path and test for each of PROGNAME-LIST 3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3813for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3814do 3815 IFS=$as_save_IFS 3816 test -z "$as_dir" && as_dir=. 3817 for ac_prog in egrep; do 3818 for ac_exec_ext in '' $ac_executable_extensions; do 3819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3820 as_fn_executable_p "$ac_path_EGREP" || continue 3821# Check for GNU ac_path_EGREP and select it if it is found. 3822 # Check for GNU $ac_path_EGREP 3823case `"$ac_path_EGREP" --version 2>&1` in 3824*GNU*) 3825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3826*) 3827 ac_count=0 3828 $as_echo_n 0123456789 >"conftest.in" 3829 while : 3830 do 3831 cat "conftest.in" "conftest.in" >"conftest.tmp" 3832 mv "conftest.tmp" "conftest.in" 3833 cp "conftest.in" "conftest.nl" 3834 $as_echo 'EGREP' >> "conftest.nl" 3835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3837 as_fn_arith $ac_count + 1 && ac_count=$as_val 3838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3839 # Best one so far, save it but keep looking for a better one 3840 ac_cv_path_EGREP="$ac_path_EGREP" 3841 ac_path_EGREP_max=$ac_count 3842 fi 3843 # 10*(2^10) chars as input seems more than enough 3844 test $ac_count -gt 10 && break 3845 done 3846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3847esac 3848 3849 $ac_path_EGREP_found && break 3 3850 done 3851 done 3852 done 3853IFS=$as_save_IFS 3854 if test -z "$ac_cv_path_EGREP"; then 3855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3856 fi 3857else 3858 ac_cv_path_EGREP=$EGREP 3859fi 3860 3861 fi 3862fi 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3864$as_echo "$ac_cv_path_EGREP" >&6; } 3865 EGREP="$ac_cv_path_EGREP" 3866 3867 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3869$as_echo_n "checking for fgrep... " >&6; } 3870if ${ac_cv_path_FGREP+:} false; then : 3871 $as_echo_n "(cached) " >&6 3872else 3873 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3874 then ac_cv_path_FGREP="$GREP -F" 3875 else 3876 if test -z "$FGREP"; then 3877 ac_path_FGREP_found=false 3878 # Loop through the user's path and test for each of PROGNAME-LIST 3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3881do 3882 IFS=$as_save_IFS 3883 test -z "$as_dir" && as_dir=. 3884 for ac_prog in fgrep; do 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3887 as_fn_executable_p "$ac_path_FGREP" || continue 3888# Check for GNU ac_path_FGREP and select it if it is found. 3889 # Check for GNU $ac_path_FGREP 3890case `"$ac_path_FGREP" --version 2>&1` in 3891*GNU*) 3892 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3893*) 3894 ac_count=0 3895 $as_echo_n 0123456789 >"conftest.in" 3896 while : 3897 do 3898 cat "conftest.in" "conftest.in" >"conftest.tmp" 3899 mv "conftest.tmp" "conftest.in" 3900 cp "conftest.in" "conftest.nl" 3901 $as_echo 'FGREP' >> "conftest.nl" 3902 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3904 as_fn_arith $ac_count + 1 && ac_count=$as_val 3905 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3906 # Best one so far, save it but keep looking for a better one 3907 ac_cv_path_FGREP="$ac_path_FGREP" 3908 ac_path_FGREP_max=$ac_count 3909 fi 3910 # 10*(2^10) chars as input seems more than enough 3911 test $ac_count -gt 10 && break 3912 done 3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3914esac 3915 3916 $ac_path_FGREP_found && break 3 3917 done 3918 done 3919 done 3920IFS=$as_save_IFS 3921 if test -z "$ac_cv_path_FGREP"; then 3922 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3923 fi 3924else 3925 ac_cv_path_FGREP=$FGREP 3926fi 3927 3928 fi 3929fi 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3931$as_echo "$ac_cv_path_FGREP" >&6; } 3932 FGREP="$ac_cv_path_FGREP" 3933 3934 3935test -z "$GREP" && GREP=grep 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955# Check whether --with-gnu-ld was given. 3956if test "${with_gnu_ld+set}" = set; then : 3957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3958else 3959 with_gnu_ld=no 3960fi 3961 3962ac_prog=ld 3963if test "$GCC" = yes; then 3964 # Check if gcc -print-prog-name=ld gives a path. 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3966$as_echo_n "checking for ld used by $CC... " >&6; } 3967 case $host in 3968 *-*-mingw*) 3969 # gcc leaves a trailing carriage return which upsets mingw 3970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3971 *) 3972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3973 esac 3974 case $ac_prog in 3975 # Accept absolute paths. 3976 [\\/]* | ?:[\\/]*) 3977 re_direlt='/[^/][^/]*/\.\./' 3978 # Canonicalize the pathname of ld 3979 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3980 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3981 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3982 done 3983 test -z "$LD" && LD="$ac_prog" 3984 ;; 3985 "") 3986 # If it fails, then pretend we aren't using GCC. 3987 ac_prog=ld 3988 ;; 3989 *) 3990 # If it is relative, then search for the first ld in PATH. 3991 with_gnu_ld=unknown 3992 ;; 3993 esac 3994elif test "$with_gnu_ld" = yes; then 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3996$as_echo_n "checking for GNU ld... " >&6; } 3997else 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3999$as_echo_n "checking for non-GNU ld... " >&6; } 4000fi 4001if ${lt_cv_path_LD+:} false; then : 4002 $as_echo_n "(cached) " >&6 4003else 4004 if test -z "$LD"; then 4005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4006 for ac_dir in $PATH; do 4007 IFS="$lt_save_ifs" 4008 test -z "$ac_dir" && ac_dir=. 4009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4010 lt_cv_path_LD="$ac_dir/$ac_prog" 4011 # Check to see if the program is GNU ld. I'd rather use --version, 4012 # but apparently some variants of GNU ld only accept -v. 4013 # Break only if it was the GNU/non-GNU ld that we prefer. 4014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4015 *GNU* | *'with BFD'*) 4016 test "$with_gnu_ld" != no && break 4017 ;; 4018 *) 4019 test "$with_gnu_ld" != yes && break 4020 ;; 4021 esac 4022 fi 4023 done 4024 IFS="$lt_save_ifs" 4025else 4026 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4027fi 4028fi 4029 4030LD="$lt_cv_path_LD" 4031if test -n "$LD"; then 4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4033$as_echo "$LD" >&6; } 4034else 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4036$as_echo "no" >&6; } 4037fi 4038test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4040$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4041if ${lt_cv_prog_gnu_ld+:} false; then : 4042 $as_echo_n "(cached) " >&6 4043else 4044 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4045case `$LD -v 2>&1 </dev/null` in 4046*GNU* | *'with BFD'*) 4047 lt_cv_prog_gnu_ld=yes 4048 ;; 4049*) 4050 lt_cv_prog_gnu_ld=no 4051 ;; 4052esac 4053fi 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4055$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4056with_gnu_ld=$lt_cv_prog_gnu_ld 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4067$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4068if ${lt_cv_path_NM+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 if test -n "$NM"; then 4072 # Let the user override the test. 4073 lt_cv_path_NM="$NM" 4074else 4075 lt_nm_to_check="${ac_tool_prefix}nm" 4076 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4077 lt_nm_to_check="$lt_nm_to_check nm" 4078 fi 4079 for lt_tmp_nm in $lt_nm_to_check; do 4080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4081 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4082 IFS="$lt_save_ifs" 4083 test -z "$ac_dir" && ac_dir=. 4084 tmp_nm="$ac_dir/$lt_tmp_nm" 4085 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4086 # Check to see if the nm accepts a BSD-compat flag. 4087 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4088 # nm: unknown option "B" ignored 4089 # Tru64's nm complains that /dev/null is an invalid object file 4090 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4091 */dev/null* | *'Invalid file or object type'*) 4092 lt_cv_path_NM="$tmp_nm -B" 4093 break 4094 ;; 4095 *) 4096 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4097 */dev/null*) 4098 lt_cv_path_NM="$tmp_nm -p" 4099 break 4100 ;; 4101 *) 4102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4103 continue # so that we can try to find one that supports BSD flags 4104 ;; 4105 esac 4106 ;; 4107 esac 4108 fi 4109 done 4110 IFS="$lt_save_ifs" 4111 done 4112 : ${lt_cv_path_NM=no} 4113fi 4114fi 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4116$as_echo "$lt_cv_path_NM" >&6; } 4117if test "$lt_cv_path_NM" != "no"; then 4118 NM="$lt_cv_path_NM" 4119else 4120 # Didn't find any BSD compatible name lister, look for dumpbin. 4121 if test -n "$DUMPBIN"; then : 4122 # Let the user override the test. 4123 else 4124 if test -n "$ac_tool_prefix"; then 4125 for ac_prog in dumpbin "link -dump" 4126 do 4127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4130$as_echo_n "checking for $ac_word... " >&6; } 4131if ${ac_cv_prog_DUMPBIN+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133else 4134 if test -n "$DUMPBIN"; then 4135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4136else 4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138for as_dir in $PATH 4139do 4140 IFS=$as_save_IFS 4141 test -z "$as_dir" && as_dir=. 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4146 break 2 4147 fi 4148done 4149 done 4150IFS=$as_save_IFS 4151 4152fi 4153fi 4154DUMPBIN=$ac_cv_prog_DUMPBIN 4155if test -n "$DUMPBIN"; then 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4157$as_echo "$DUMPBIN" >&6; } 4158else 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4160$as_echo "no" >&6; } 4161fi 4162 4163 4164 test -n "$DUMPBIN" && break 4165 done 4166fi 4167if test -z "$DUMPBIN"; then 4168 ac_ct_DUMPBIN=$DUMPBIN 4169 for ac_prog in dumpbin "link -dump" 4170do 4171 # Extract the first word of "$ac_prog", so it can be a program name with args. 4172set dummy $ac_prog; ac_word=$2 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4174$as_echo_n "checking for $ac_word... " >&6; } 4175if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4176 $as_echo_n "(cached) " >&6 4177else 4178 if test -n "$ac_ct_DUMPBIN"; then 4179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4180else 4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4182for as_dir in $PATH 4183do 4184 IFS=$as_save_IFS 4185 test -z "$as_dir" && as_dir=. 4186 for ac_exec_ext in '' $ac_executable_extensions; do 4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4190 break 2 4191 fi 4192done 4193 done 4194IFS=$as_save_IFS 4195 4196fi 4197fi 4198ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4199if test -n "$ac_ct_DUMPBIN"; then 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4201$as_echo "$ac_ct_DUMPBIN" >&6; } 4202else 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4204$as_echo "no" >&6; } 4205fi 4206 4207 4208 test -n "$ac_ct_DUMPBIN" && break 4209done 4210 4211 if test "x$ac_ct_DUMPBIN" = x; then 4212 DUMPBIN=":" 4213 else 4214 case $cross_compiling:$ac_tool_warned in 4215yes:) 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4218ac_tool_warned=yes ;; 4219esac 4220 DUMPBIN=$ac_ct_DUMPBIN 4221 fi 4222fi 4223 4224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4225 *COFF*) 4226 DUMPBIN="$DUMPBIN -symbols" 4227 ;; 4228 *) 4229 DUMPBIN=: 4230 ;; 4231 esac 4232 fi 4233 4234 if test "$DUMPBIN" != ":"; then 4235 NM="$DUMPBIN" 4236 fi 4237fi 4238test -z "$NM" && NM=nm 4239 4240 4241 4242 4243 4244 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4246$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4247if ${lt_cv_nm_interface+:} false; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 lt_cv_nm_interface="BSD nm" 4251 echo "int some_variable = 0;" > conftest.$ac_ext 4252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4253 (eval "$ac_compile" 2>conftest.err) 4254 cat conftest.err >&5 4255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4257 cat conftest.err >&5 4258 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4259 cat conftest.out >&5 4260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4261 lt_cv_nm_interface="MS dumpbin" 4262 fi 4263 rm -f conftest* 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4266$as_echo "$lt_cv_nm_interface" >&6; } 4267 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4269$as_echo_n "checking whether ln -s works... " >&6; } 4270LN_S=$as_ln_s 4271if test "$LN_S" = "ln -s"; then 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4273$as_echo "yes" >&6; } 4274else 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4276$as_echo "no, using $LN_S" >&6; } 4277fi 4278 4279# find the maximum length of command line arguments 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4281$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4282if ${lt_cv_sys_max_cmd_len+:} false; then : 4283 $as_echo_n "(cached) " >&6 4284else 4285 i=0 4286 teststring="ABCD" 4287 4288 case $build_os in 4289 msdosdjgpp*) 4290 # On DJGPP, this test can blow up pretty badly due to problems in libc 4291 # (any single argument exceeding 2000 bytes causes a buffer overrun 4292 # during glob expansion). Even if it were fixed, the result of this 4293 # check would be larger than it should be. 4294 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4295 ;; 4296 4297 gnu*) 4298 # Under GNU Hurd, this test is not required because there is 4299 # no limit to the length of command line arguments. 4300 # Libtool will interpret -1 as no limit whatsoever 4301 lt_cv_sys_max_cmd_len=-1; 4302 ;; 4303 4304 cygwin* | mingw* | cegcc*) 4305 # On Win9x/ME, this test blows up -- it succeeds, but takes 4306 # about 5 minutes as the teststring grows exponentially. 4307 # Worse, since 9x/ME are not pre-emptively multitasking, 4308 # you end up with a "frozen" computer, even though with patience 4309 # the test eventually succeeds (with a max line length of 256k). 4310 # Instead, let's just punt: use the minimum linelength reported by 4311 # all of the supported platforms: 8192 (on NT/2K/XP). 4312 lt_cv_sys_max_cmd_len=8192; 4313 ;; 4314 4315 mint*) 4316 # On MiNT this can take a long time and run out of memory. 4317 lt_cv_sys_max_cmd_len=8192; 4318 ;; 4319 4320 amigaos*) 4321 # On AmigaOS with pdksh, this test takes hours, literally. 4322 # So we just punt and use a minimum line length of 8192. 4323 lt_cv_sys_max_cmd_len=8192; 4324 ;; 4325 4326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4327 # This has been around since 386BSD, at least. Likely further. 4328 if test -x /sbin/sysctl; then 4329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4330 elif test -x /usr/sbin/sysctl; then 4331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4332 else 4333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4334 fi 4335 # And add a safety zone 4336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4338 ;; 4339 4340 interix*) 4341 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4342 lt_cv_sys_max_cmd_len=196608 4343 ;; 4344 4345 os2*) 4346 # The test takes a long time on OS/2. 4347 lt_cv_sys_max_cmd_len=8192 4348 ;; 4349 4350 osf*) 4351 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4352 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4353 # nice to cause kernel panics so lets avoid the loop below. 4354 # First set a reasonable default. 4355 lt_cv_sys_max_cmd_len=16384 4356 # 4357 if test -x /sbin/sysconfig; then 4358 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4359 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4360 esac 4361 fi 4362 ;; 4363 sco3.2v5*) 4364 lt_cv_sys_max_cmd_len=102400 4365 ;; 4366 sysv5* | sco5v6* | sysv4.2uw2*) 4367 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4368 if test -n "$kargmax"; then 4369 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4370 else 4371 lt_cv_sys_max_cmd_len=32768 4372 fi 4373 ;; 4374 *) 4375 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4376 if test -n "$lt_cv_sys_max_cmd_len"; then 4377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4379 else 4380 # Make teststring a little bigger before we do anything with it. 4381 # a 1K string should be a reasonable start. 4382 for i in 1 2 3 4 5 6 7 8 ; do 4383 teststring=$teststring$teststring 4384 done 4385 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4386 # If test is not a shell built-in, we'll probably end up computing a 4387 # maximum length that is only half of the actual maximum length, but 4388 # we can't tell. 4389 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4390 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4391 test $i != 17 # 1/2 MB should be enough 4392 do 4393 i=`expr $i + 1` 4394 teststring=$teststring$teststring 4395 done 4396 # Only check the string length outside the loop. 4397 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4398 teststring= 4399 # Add a significant safety factor because C++ compilers can tack on 4400 # massive amounts of additional arguments before passing them to the 4401 # linker. It appears as though 1/2 is a usable value. 4402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4403 fi 4404 ;; 4405 esac 4406 4407fi 4408 4409if test -n $lt_cv_sys_max_cmd_len ; then 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4411$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4412else 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4414$as_echo "none" >&6; } 4415fi 4416max_cmd_len=$lt_cv_sys_max_cmd_len 4417 4418 4419 4420 4421 4422 4423: ${CP="cp -f"} 4424: ${MV="mv -f"} 4425: ${RM="rm -f"} 4426 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4428$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4429# Try some XSI features 4430xsi_shell=no 4431( _lt_dummy="a/b/c" 4432 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4433 = c,a/b,b/c, \ 4434 && eval 'test $(( 1 + 1 )) -eq 2 \ 4435 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4436 && xsi_shell=yes 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4438$as_echo "$xsi_shell" >&6; } 4439 4440 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4442$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4443lt_shell_append=no 4444( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4445 >/dev/null 2>&1 \ 4446 && lt_shell_append=yes 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4448$as_echo "$lt_shell_append" >&6; } 4449 4450 4451if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4452 lt_unset=unset 4453else 4454 lt_unset=false 4455fi 4456 4457 4458 4459 4460 4461# test EBCDIC or ASCII 4462case `echo X|tr X '\101'` in 4463 A) # ASCII based system 4464 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4465 lt_SP2NL='tr \040 \012' 4466 lt_NL2SP='tr \015\012 \040\040' 4467 ;; 4468 *) # EBCDIC based system 4469 lt_SP2NL='tr \100 \n' 4470 lt_NL2SP='tr \r\n \100\100' 4471 ;; 4472esac 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4483$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4484if ${lt_cv_to_host_file_cmd+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 case $host in 4488 *-*-mingw* ) 4489 case $build in 4490 *-*-mingw* ) # actually msys 4491 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4492 ;; 4493 *-*-cygwin* ) 4494 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4495 ;; 4496 * ) # otherwise, assume *nix 4497 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4498 ;; 4499 esac 4500 ;; 4501 *-*-cygwin* ) 4502 case $build in 4503 *-*-mingw* ) # actually msys 4504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4505 ;; 4506 *-*-cygwin* ) 4507 lt_cv_to_host_file_cmd=func_convert_file_noop 4508 ;; 4509 * ) # otherwise, assume *nix 4510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4511 ;; 4512 esac 4513 ;; 4514 * ) # unhandled hosts (and "normal" native builds) 4515 lt_cv_to_host_file_cmd=func_convert_file_noop 4516 ;; 4517esac 4518 4519fi 4520 4521to_host_file_cmd=$lt_cv_to_host_file_cmd 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4523$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4524 4525 4526 4527 4528 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4530$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4531if ${lt_cv_to_tool_file_cmd+:} false; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 #assume ordinary cross tools, or native build. 4535lt_cv_to_tool_file_cmd=func_convert_file_noop 4536case $host in 4537 *-*-mingw* ) 4538 case $build in 4539 *-*-mingw* ) # actually msys 4540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4541 ;; 4542 esac 4543 ;; 4544esac 4545 4546fi 4547 4548to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4550$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4551 4552 4553 4554 4555 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4557$as_echo_n "checking for $LD option to reload object files... " >&6; } 4558if ${lt_cv_ld_reload_flag+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560else 4561 lt_cv_ld_reload_flag='-r' 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4564$as_echo "$lt_cv_ld_reload_flag" >&6; } 4565reload_flag=$lt_cv_ld_reload_flag 4566case $reload_flag in 4567"" | " "*) ;; 4568*) reload_flag=" $reload_flag" ;; 4569esac 4570reload_cmds='$LD$reload_flag -o $output$reload_objs' 4571case $host_os in 4572 cygwin* | mingw* | pw32* | cegcc*) 4573 if test "$GCC" != yes; then 4574 reload_cmds=false 4575 fi 4576 ;; 4577 darwin*) 4578 if test "$GCC" = yes; then 4579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4580 else 4581 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4582 fi 4583 ;; 4584esac 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594if test -n "$ac_tool_prefix"; then 4595 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4596set dummy ${ac_tool_prefix}objdump; ac_word=$2 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4598$as_echo_n "checking for $ac_word... " >&6; } 4599if ${ac_cv_prog_OBJDUMP+:} false; then : 4600 $as_echo_n "(cached) " >&6 4601else 4602 if test -n "$OBJDUMP"; then 4603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4604else 4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4606for as_dir in $PATH 4607do 4608 IFS=$as_save_IFS 4609 test -z "$as_dir" && as_dir=. 4610 for ac_exec_ext in '' $ac_executable_extensions; do 4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4612 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4614 break 2 4615 fi 4616done 4617 done 4618IFS=$as_save_IFS 4619 4620fi 4621fi 4622OBJDUMP=$ac_cv_prog_OBJDUMP 4623if test -n "$OBJDUMP"; then 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4625$as_echo "$OBJDUMP" >&6; } 4626else 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628$as_echo "no" >&6; } 4629fi 4630 4631 4632fi 4633if test -z "$ac_cv_prog_OBJDUMP"; then 4634 ac_ct_OBJDUMP=$OBJDUMP 4635 # Extract the first word of "objdump", so it can be a program name with args. 4636set dummy objdump; ac_word=$2 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4638$as_echo_n "checking for $ac_word... " >&6; } 4639if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4640 $as_echo_n "(cached) " >&6 4641else 4642 if test -n "$ac_ct_OBJDUMP"; then 4643 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4644else 4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4646for as_dir in $PATH 4647do 4648 IFS=$as_save_IFS 4649 test -z "$as_dir" && as_dir=. 4650 for ac_exec_ext in '' $ac_executable_extensions; do 4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4652 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4654 break 2 4655 fi 4656done 4657 done 4658IFS=$as_save_IFS 4659 4660fi 4661fi 4662ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4663if test -n "$ac_ct_OBJDUMP"; then 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4665$as_echo "$ac_ct_OBJDUMP" >&6; } 4666else 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4668$as_echo "no" >&6; } 4669fi 4670 4671 if test "x$ac_ct_OBJDUMP" = x; then 4672 OBJDUMP="false" 4673 else 4674 case $cross_compiling:$ac_tool_warned in 4675yes:) 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4678ac_tool_warned=yes ;; 4679esac 4680 OBJDUMP=$ac_ct_OBJDUMP 4681 fi 4682else 4683 OBJDUMP="$ac_cv_prog_OBJDUMP" 4684fi 4685 4686test -z "$OBJDUMP" && OBJDUMP=objdump 4687 4688 4689 4690 4691 4692 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4694$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4695if ${lt_cv_deplibs_check_method+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 lt_cv_file_magic_cmd='$MAGIC_CMD' 4699lt_cv_file_magic_test_file= 4700lt_cv_deplibs_check_method='unknown' 4701# Need to set the preceding variable on all platforms that support 4702# interlibrary dependencies. 4703# 'none' -- dependencies not supported. 4704# `unknown' -- same as none, but documents that we really don't know. 4705# 'pass_all' -- all dependencies passed with no checks. 4706# 'test_compile' -- check by making test program. 4707# 'file_magic [[regex]]' -- check by looking for files in library path 4708# which responds to the $file_magic_cmd with a given extended regex. 4709# If you have `file' or equivalent on your system and you're not sure 4710# whether `pass_all' will *always* work, you probably want this one. 4711 4712case $host_os in 4713aix[4-9]*) 4714 lt_cv_deplibs_check_method=pass_all 4715 ;; 4716 4717beos*) 4718 lt_cv_deplibs_check_method=pass_all 4719 ;; 4720 4721bsdi[45]*) 4722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4723 lt_cv_file_magic_cmd='/usr/bin/file -L' 4724 lt_cv_file_magic_test_file=/shlib/libc.so 4725 ;; 4726 4727cygwin*) 4728 # func_win32_libid is a shell function defined in ltmain.sh 4729 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4730 lt_cv_file_magic_cmd='func_win32_libid' 4731 ;; 4732 4733mingw* | pw32*) 4734 # Base MSYS/MinGW do not provide the 'file' command needed by 4735 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4736 # unless we find 'file', for example because we are cross-compiling. 4737 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4738 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4739 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4740 lt_cv_file_magic_cmd='func_win32_libid' 4741 else 4742 # Keep this pattern in sync with the one in func_win32_libid. 4743 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4744 lt_cv_file_magic_cmd='$OBJDUMP -f' 4745 fi 4746 ;; 4747 4748cegcc*) 4749 # use the weaker test based on 'objdump'. See mingw*. 4750 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4751 lt_cv_file_magic_cmd='$OBJDUMP -f' 4752 ;; 4753 4754darwin* | rhapsody*) 4755 lt_cv_deplibs_check_method=pass_all 4756 ;; 4757 4758freebsd* | dragonfly*) 4759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4760 case $host_cpu in 4761 i*86 ) 4762 # Not sure whether the presence of OpenBSD here was a mistake. 4763 # Let's accept both of them until this is cleared up. 4764 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4765 lt_cv_file_magic_cmd=/usr/bin/file 4766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4767 ;; 4768 esac 4769 else 4770 lt_cv_deplibs_check_method=pass_all 4771 fi 4772 ;; 4773 4774gnu*) 4775 lt_cv_deplibs_check_method=pass_all 4776 ;; 4777 4778haiku*) 4779 lt_cv_deplibs_check_method=pass_all 4780 ;; 4781 4782hpux10.20* | hpux11*) 4783 lt_cv_file_magic_cmd=/usr/bin/file 4784 case $host_cpu in 4785 ia64*) 4786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4787 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4788 ;; 4789 hppa*64*) 4790 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]' 4791 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4792 ;; 4793 *) 4794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4795 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4796 ;; 4797 esac 4798 ;; 4799 4800interix[3-9]*) 4801 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4803 ;; 4804 4805irix5* | irix6* | nonstopux*) 4806 case $LD in 4807 *-32|*"-32 ") libmagic=32-bit;; 4808 *-n32|*"-n32 ") libmagic=N32;; 4809 *-64|*"-64 ") libmagic=64-bit;; 4810 *) libmagic=never-match;; 4811 esac 4812 lt_cv_deplibs_check_method=pass_all 4813 ;; 4814 4815# This must be glibc/ELF. 4816linux* | k*bsd*-gnu | kopensolaris*-gnu) 4817 lt_cv_deplibs_check_method=pass_all 4818 ;; 4819 4820netbsd*) 4821 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4823 else 4824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4825 fi 4826 ;; 4827 4828newos6*) 4829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4830 lt_cv_file_magic_cmd=/usr/bin/file 4831 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4832 ;; 4833 4834*nto* | *qnx*) 4835 lt_cv_deplibs_check_method=pass_all 4836 ;; 4837 4838openbsd*) 4839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4841 else 4842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4843 fi 4844 ;; 4845 4846osf3* | osf4* | osf5*) 4847 lt_cv_deplibs_check_method=pass_all 4848 ;; 4849 4850rdos*) 4851 lt_cv_deplibs_check_method=pass_all 4852 ;; 4853 4854solaris*) 4855 lt_cv_deplibs_check_method=pass_all 4856 ;; 4857 4858sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4859 lt_cv_deplibs_check_method=pass_all 4860 ;; 4861 4862sysv4 | sysv4.3*) 4863 case $host_vendor in 4864 motorola) 4865 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]' 4866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4867 ;; 4868 ncr) 4869 lt_cv_deplibs_check_method=pass_all 4870 ;; 4871 sequent) 4872 lt_cv_file_magic_cmd='/bin/file' 4873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4874 ;; 4875 sni) 4876 lt_cv_file_magic_cmd='/bin/file' 4877 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4878 lt_cv_file_magic_test_file=/lib/libc.so 4879 ;; 4880 siemens) 4881 lt_cv_deplibs_check_method=pass_all 4882 ;; 4883 pc) 4884 lt_cv_deplibs_check_method=pass_all 4885 ;; 4886 esac 4887 ;; 4888 4889tpf*) 4890 lt_cv_deplibs_check_method=pass_all 4891 ;; 4892esac 4893 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4896$as_echo "$lt_cv_deplibs_check_method" >&6; } 4897 4898file_magic_glob= 4899want_nocaseglob=no 4900if test "$build" = "$host"; then 4901 case $host_os in 4902 mingw* | pw32*) 4903 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4904 want_nocaseglob=yes 4905 else 4906 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4907 fi 4908 ;; 4909 esac 4910fi 4911 4912file_magic_cmd=$lt_cv_file_magic_cmd 4913deplibs_check_method=$lt_cv_deplibs_check_method 4914test -z "$deplibs_check_method" && deplibs_check_method=unknown 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937if test -n "$ac_tool_prefix"; then 4938 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4939set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4941$as_echo_n "checking for $ac_word... " >&6; } 4942if ${ac_cv_prog_DLLTOOL+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 if test -n "$DLLTOOL"; then 4946 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4947else 4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949for as_dir in $PATH 4950do 4951 IFS=$as_save_IFS 4952 test -z "$as_dir" && as_dir=. 4953 for ac_exec_ext in '' $ac_executable_extensions; do 4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4955 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4957 break 2 4958 fi 4959done 4960 done 4961IFS=$as_save_IFS 4962 4963fi 4964fi 4965DLLTOOL=$ac_cv_prog_DLLTOOL 4966if test -n "$DLLTOOL"; then 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4968$as_echo "$DLLTOOL" >&6; } 4969else 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4971$as_echo "no" >&6; } 4972fi 4973 4974 4975fi 4976if test -z "$ac_cv_prog_DLLTOOL"; then 4977 ac_ct_DLLTOOL=$DLLTOOL 4978 # Extract the first word of "dlltool", so it can be a program name with args. 4979set dummy dlltool; ac_word=$2 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4981$as_echo_n "checking for $ac_word... " >&6; } 4982if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4983 $as_echo_n "(cached) " >&6 4984else 4985 if test -n "$ac_ct_DLLTOOL"; then 4986 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4987else 4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4989for as_dir in $PATH 4990do 4991 IFS=$as_save_IFS 4992 test -z "$as_dir" && as_dir=. 4993 for ac_exec_ext in '' $ac_executable_extensions; do 4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4995 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4997 break 2 4998 fi 4999done 5000 done 5001IFS=$as_save_IFS 5002 5003fi 5004fi 5005ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5006if test -n "$ac_ct_DLLTOOL"; then 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5008$as_echo "$ac_ct_DLLTOOL" >&6; } 5009else 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5011$as_echo "no" >&6; } 5012fi 5013 5014 if test "x$ac_ct_DLLTOOL" = x; then 5015 DLLTOOL="false" 5016 else 5017 case $cross_compiling:$ac_tool_warned in 5018yes:) 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5021ac_tool_warned=yes ;; 5022esac 5023 DLLTOOL=$ac_ct_DLLTOOL 5024 fi 5025else 5026 DLLTOOL="$ac_cv_prog_DLLTOOL" 5027fi 5028 5029test -z "$DLLTOOL" && DLLTOOL=dlltool 5030 5031 5032 5033 5034 5035 5036 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5038$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5039if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5040 $as_echo_n "(cached) " >&6 5041else 5042 lt_cv_sharedlib_from_linklib_cmd='unknown' 5043 5044case $host_os in 5045cygwin* | mingw* | pw32* | cegcc*) 5046 # two different shell functions defined in ltmain.sh 5047 # decide which to use based on capabilities of $DLLTOOL 5048 case `$DLLTOOL --help 2>&1` in 5049 *--identify-strict*) 5050 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5051 ;; 5052 *) 5053 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5054 ;; 5055 esac 5056 ;; 5057*) 5058 # fallback: assume linklib IS sharedlib 5059 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5060 ;; 5061esac 5062 5063fi 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5065$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5066sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5067test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5068 5069 5070 5071 5072 5073 5074 5075 5076if test -n "$ac_tool_prefix"; then 5077 for ac_prog in ar 5078 do 5079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5080set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5082$as_echo_n "checking for $ac_word... " >&6; } 5083if ${ac_cv_prog_AR+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 if test -n "$AR"; then 5087 ac_cv_prog_AR="$AR" # Let the user override the test. 5088else 5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5090for as_dir in $PATH 5091do 5092 IFS=$as_save_IFS 5093 test -z "$as_dir" && as_dir=. 5094 for ac_exec_ext in '' $ac_executable_extensions; do 5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5096 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5098 break 2 5099 fi 5100done 5101 done 5102IFS=$as_save_IFS 5103 5104fi 5105fi 5106AR=$ac_cv_prog_AR 5107if test -n "$AR"; then 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5109$as_echo "$AR" >&6; } 5110else 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5112$as_echo "no" >&6; } 5113fi 5114 5115 5116 test -n "$AR" && break 5117 done 5118fi 5119if test -z "$AR"; then 5120 ac_ct_AR=$AR 5121 for ac_prog in ar 5122do 5123 # Extract the first word of "$ac_prog", so it can be a program name with args. 5124set dummy $ac_prog; ac_word=$2 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5126$as_echo_n "checking for $ac_word... " >&6; } 5127if ${ac_cv_prog_ac_ct_AR+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 if test -n "$ac_ct_AR"; then 5131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5132else 5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5134for as_dir in $PATH 5135do 5136 IFS=$as_save_IFS 5137 test -z "$as_dir" && as_dir=. 5138 for ac_exec_ext in '' $ac_executable_extensions; do 5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5140 ac_cv_prog_ac_ct_AR="$ac_prog" 5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5142 break 2 5143 fi 5144done 5145 done 5146IFS=$as_save_IFS 5147 5148fi 5149fi 5150ac_ct_AR=$ac_cv_prog_ac_ct_AR 5151if test -n "$ac_ct_AR"; then 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5153$as_echo "$ac_ct_AR" >&6; } 5154else 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5156$as_echo "no" >&6; } 5157fi 5158 5159 5160 test -n "$ac_ct_AR" && break 5161done 5162 5163 if test "x$ac_ct_AR" = x; then 5164 AR="false" 5165 else 5166 case $cross_compiling:$ac_tool_warned in 5167yes:) 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5170ac_tool_warned=yes ;; 5171esac 5172 AR=$ac_ct_AR 5173 fi 5174fi 5175 5176: ${AR=ar} 5177: ${AR_FLAGS=cru} 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5190$as_echo_n "checking for archiver @FILE support... " >&6; } 5191if ${lt_cv_ar_at_file+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 lt_cv_ar_at_file=no 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197 5198int 5199main () 5200{ 5201 5202 ; 5203 return 0; 5204} 5205_ACEOF 5206if ac_fn_c_try_compile "$LINENO"; then : 5207 echo conftest.$ac_objext > conftest.lst 5208 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5210 (eval $lt_ar_try) 2>&5 5211 ac_status=$? 5212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5213 test $ac_status = 0; } 5214 if test "$ac_status" -eq 0; then 5215 # Ensure the archiver fails upon bogus file names. 5216 rm -f conftest.$ac_objext libconftest.a 5217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5218 (eval $lt_ar_try) 2>&5 5219 ac_status=$? 5220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5221 test $ac_status = 0; } 5222 if test "$ac_status" -ne 0; then 5223 lt_cv_ar_at_file=@ 5224 fi 5225 fi 5226 rm -f conftest.* libconftest.a 5227 5228fi 5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5230 5231fi 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5233$as_echo "$lt_cv_ar_at_file" >&6; } 5234 5235if test "x$lt_cv_ar_at_file" = xno; then 5236 archiver_list_spec= 5237else 5238 archiver_list_spec=$lt_cv_ar_at_file 5239fi 5240 5241 5242 5243 5244 5245 5246 5247if test -n "$ac_tool_prefix"; then 5248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5249set dummy ${ac_tool_prefix}strip; ac_word=$2 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5251$as_echo_n "checking for $ac_word... " >&6; } 5252if ${ac_cv_prog_STRIP+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 if test -n "$STRIP"; then 5256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5257else 5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259for as_dir in $PATH 5260do 5261 IFS=$as_save_IFS 5262 test -z "$as_dir" && as_dir=. 5263 for ac_exec_ext in '' $ac_executable_extensions; do 5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5265 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5267 break 2 5268 fi 5269done 5270 done 5271IFS=$as_save_IFS 5272 5273fi 5274fi 5275STRIP=$ac_cv_prog_STRIP 5276if test -n "$STRIP"; then 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5278$as_echo "$STRIP" >&6; } 5279else 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5281$as_echo "no" >&6; } 5282fi 5283 5284 5285fi 5286if test -z "$ac_cv_prog_STRIP"; then 5287 ac_ct_STRIP=$STRIP 5288 # Extract the first word of "strip", so it can be a program name with args. 5289set dummy strip; ac_word=$2 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5291$as_echo_n "checking for $ac_word... " >&6; } 5292if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5293 $as_echo_n "(cached) " >&6 5294else 5295 if test -n "$ac_ct_STRIP"; then 5296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5297else 5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5299for as_dir in $PATH 5300do 5301 IFS=$as_save_IFS 5302 test -z "$as_dir" && as_dir=. 5303 for ac_exec_ext in '' $ac_executable_extensions; do 5304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5305 ac_cv_prog_ac_ct_STRIP="strip" 5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5307 break 2 5308 fi 5309done 5310 done 5311IFS=$as_save_IFS 5312 5313fi 5314fi 5315ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5316if test -n "$ac_ct_STRIP"; then 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5318$as_echo "$ac_ct_STRIP" >&6; } 5319else 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5321$as_echo "no" >&6; } 5322fi 5323 5324 if test "x$ac_ct_STRIP" = x; then 5325 STRIP=":" 5326 else 5327 case $cross_compiling:$ac_tool_warned in 5328yes:) 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5331ac_tool_warned=yes ;; 5332esac 5333 STRIP=$ac_ct_STRIP 5334 fi 5335else 5336 STRIP="$ac_cv_prog_STRIP" 5337fi 5338 5339test -z "$STRIP" && STRIP=: 5340 5341 5342 5343 5344 5345 5346if test -n "$ac_tool_prefix"; then 5347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5348set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5350$as_echo_n "checking for $ac_word... " >&6; } 5351if ${ac_cv_prog_RANLIB+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 if test -n "$RANLIB"; then 5355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5356else 5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5358for as_dir in $PATH 5359do 5360 IFS=$as_save_IFS 5361 test -z "$as_dir" && as_dir=. 5362 for ac_exec_ext in '' $ac_executable_extensions; do 5363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5366 break 2 5367 fi 5368done 5369 done 5370IFS=$as_save_IFS 5371 5372fi 5373fi 5374RANLIB=$ac_cv_prog_RANLIB 5375if test -n "$RANLIB"; then 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5377$as_echo "$RANLIB" >&6; } 5378else 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5380$as_echo "no" >&6; } 5381fi 5382 5383 5384fi 5385if test -z "$ac_cv_prog_RANLIB"; then 5386 ac_ct_RANLIB=$RANLIB 5387 # Extract the first word of "ranlib", so it can be a program name with args. 5388set dummy ranlib; ac_word=$2 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5390$as_echo_n "checking for $ac_word... " >&6; } 5391if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 if test -n "$ac_ct_RANLIB"; then 5395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5396else 5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5398for as_dir in $PATH 5399do 5400 IFS=$as_save_IFS 5401 test -z "$as_dir" && as_dir=. 5402 for ac_exec_ext in '' $ac_executable_extensions; do 5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5404 ac_cv_prog_ac_ct_RANLIB="ranlib" 5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5406 break 2 5407 fi 5408done 5409 done 5410IFS=$as_save_IFS 5411 5412fi 5413fi 5414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5415if test -n "$ac_ct_RANLIB"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5417$as_echo "$ac_ct_RANLIB" >&6; } 5418else 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5420$as_echo "no" >&6; } 5421fi 5422 5423 if test "x$ac_ct_RANLIB" = x; then 5424 RANLIB=":" 5425 else 5426 case $cross_compiling:$ac_tool_warned in 5427yes:) 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5430ac_tool_warned=yes ;; 5431esac 5432 RANLIB=$ac_ct_RANLIB 5433 fi 5434else 5435 RANLIB="$ac_cv_prog_RANLIB" 5436fi 5437 5438test -z "$RANLIB" && RANLIB=: 5439 5440 5441 5442 5443 5444 5445# Determine commands to create old-style static archives. 5446old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5447old_postinstall_cmds='chmod 644 $oldlib' 5448old_postuninstall_cmds= 5449 5450if test -n "$RANLIB"; then 5451 case $host_os in 5452 openbsd*) 5453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5454 ;; 5455 *) 5456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5457 ;; 5458 esac 5459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5460fi 5461 5462case $host_os in 5463 darwin*) 5464 lock_old_archive_extraction=yes ;; 5465 *) 5466 lock_old_archive_extraction=no ;; 5467esac 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489for ac_prog in gawk mawk nawk awk 5490do 5491 # Extract the first word of "$ac_prog", so it can be a program name with args. 5492set dummy $ac_prog; ac_word=$2 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5494$as_echo_n "checking for $ac_word... " >&6; } 5495if ${ac_cv_prog_AWK+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 if test -n "$AWK"; then 5499 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5500else 5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502for as_dir in $PATH 5503do 5504 IFS=$as_save_IFS 5505 test -z "$as_dir" && as_dir=. 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5508 ac_cv_prog_AWK="$ac_prog" 5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5510 break 2 5511 fi 5512done 5513 done 5514IFS=$as_save_IFS 5515 5516fi 5517fi 5518AWK=$ac_cv_prog_AWK 5519if test -n "$AWK"; then 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5521$as_echo "$AWK" >&6; } 5522else 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524$as_echo "no" >&6; } 5525fi 5526 5527 5528 test -n "$AWK" && break 5529done 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549# If no C compiler was specified, use CC. 5550LTCC=${LTCC-"$CC"} 5551 5552# If no C compiler flags were specified, use CFLAGS. 5553LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5554 5555# Allow CC to be a program name with arguments. 5556compiler=$CC 5557 5558 5559# Check for command to grab the raw symbol name followed by C symbol from nm. 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5561$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5562if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 5566# These are sane defaults that work on at least a few old systems. 5567# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5568 5569# Character class describing NM global symbol codes. 5570symcode='[BCDEGRST]' 5571 5572# Regexp to match symbols that can be accessed directly from C. 5573sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5574 5575# Define system-specific variables. 5576case $host_os in 5577aix*) 5578 symcode='[BCDT]' 5579 ;; 5580cygwin* | mingw* | pw32* | cegcc*) 5581 symcode='[ABCDGISTW]' 5582 ;; 5583hpux*) 5584 if test "$host_cpu" = ia64; then 5585 symcode='[ABCDEGRST]' 5586 fi 5587 ;; 5588irix* | nonstopux*) 5589 symcode='[BCDEGRST]' 5590 ;; 5591osf*) 5592 symcode='[BCDEGQRST]' 5593 ;; 5594solaris*) 5595 symcode='[BDRT]' 5596 ;; 5597sco3.2v5*) 5598 symcode='[DT]' 5599 ;; 5600sysv4.2uw2*) 5601 symcode='[DT]' 5602 ;; 5603sysv5* | sco5v6* | unixware* | OpenUNIX*) 5604 symcode='[ABDT]' 5605 ;; 5606sysv4) 5607 symcode='[DFNSTU]' 5608 ;; 5609esac 5610 5611# If we're using GNU nm, then use its standard symbol codes. 5612case `$NM -V 2>&1` in 5613*GNU* | *'with BFD'*) 5614 symcode='[ABCDGIRSTW]' ;; 5615esac 5616 5617# Transform an extracted symbol line into a proper C declaration. 5618# Some systems (esp. on ia64) link data and code symbols differently, 5619# so use this general approach. 5620lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5621 5622# Transform an extracted symbol line into symbol name and symbol address 5623lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5624lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5625 5626# Handle CRLF in mingw tool chain 5627opt_cr= 5628case $build_os in 5629mingw*) 5630 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5631 ;; 5632esac 5633 5634# Try without a prefix underscore, then with it. 5635for ac_symprfx in "" "_"; do 5636 5637 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5638 symxfrm="\\1 $ac_symprfx\\2 \\2" 5639 5640 # Write the raw and C identifiers. 5641 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5642 # Fake it for dumpbin and say T for any non-static function 5643 # and D for any global variable. 5644 # Also find C++ and __fastcall symbols from MSVC++, 5645 # which start with @ or ?. 5646 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5647" {last_section=section; section=\$ 3};"\ 5648" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5649" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5650" \$ 0!~/External *\|/{next};"\ 5651" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5652" {if(hide[section]) next};"\ 5653" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5654" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5655" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5656" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5657" ' prfx=^$ac_symprfx" 5658 else 5659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5660 fi 5661 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5662 5663 # Check to see that the pipe works correctly. 5664 pipe_works=no 5665 5666 rm -f conftest* 5667 cat > conftest.$ac_ext <<_LT_EOF 5668#ifdef __cplusplus 5669extern "C" { 5670#endif 5671char nm_test_var; 5672void nm_test_func(void); 5673void nm_test_func(void){} 5674#ifdef __cplusplus 5675} 5676#endif 5677int main(){nm_test_var='a';nm_test_func();return(0);} 5678_LT_EOF 5679 5680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5681 (eval $ac_compile) 2>&5 5682 ac_status=$? 5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5684 test $ac_status = 0; }; then 5685 # Now try to grab the symbols. 5686 nlist=conftest.nm 5687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5688 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5689 ac_status=$? 5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5691 test $ac_status = 0; } && test -s "$nlist"; then 5692 # Try sorting and uniquifying the output. 5693 if sort "$nlist" | uniq > "$nlist"T; then 5694 mv -f "$nlist"T "$nlist" 5695 else 5696 rm -f "$nlist"T 5697 fi 5698 5699 # Make sure that we snagged all the symbols we need. 5700 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5701 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5702 cat <<_LT_EOF > conftest.$ac_ext 5703/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5704#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5705/* DATA imports from DLLs on WIN32 con't be const, because runtime 5706 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5707# define LT_DLSYM_CONST 5708#elif defined(__osf__) 5709/* This system does not cope well with relocations in const data. */ 5710# define LT_DLSYM_CONST 5711#else 5712# define LT_DLSYM_CONST const 5713#endif 5714 5715#ifdef __cplusplus 5716extern "C" { 5717#endif 5718 5719_LT_EOF 5720 # Now generate the symbol file. 5721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5722 5723 cat <<_LT_EOF >> conftest.$ac_ext 5724 5725/* The mapping between symbol names and symbols. */ 5726LT_DLSYM_CONST struct { 5727 const char *name; 5728 void *address; 5729} 5730lt__PROGRAM__LTX_preloaded_symbols[] = 5731{ 5732 { "@PROGRAM@", (void *) 0 }, 5733_LT_EOF 5734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5735 cat <<\_LT_EOF >> conftest.$ac_ext 5736 {0, (void *) 0} 5737}; 5738 5739/* This works around a problem in FreeBSD linker */ 5740#ifdef FREEBSD_WORKAROUND 5741static const void *lt_preloaded_setup() { 5742 return lt__PROGRAM__LTX_preloaded_symbols; 5743} 5744#endif 5745 5746#ifdef __cplusplus 5747} 5748#endif 5749_LT_EOF 5750 # Now try linking the two files. 5751 mv conftest.$ac_objext conftstm.$ac_objext 5752 lt_globsym_save_LIBS=$LIBS 5753 lt_globsym_save_CFLAGS=$CFLAGS 5754 LIBS="conftstm.$ac_objext" 5755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5757 (eval $ac_link) 2>&5 5758 ac_status=$? 5759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5760 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5761 pipe_works=yes 5762 fi 5763 LIBS=$lt_globsym_save_LIBS 5764 CFLAGS=$lt_globsym_save_CFLAGS 5765 else 5766 echo "cannot find nm_test_func in $nlist" >&5 5767 fi 5768 else 5769 echo "cannot find nm_test_var in $nlist" >&5 5770 fi 5771 else 5772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5773 fi 5774 else 5775 echo "$progname: failed program was:" >&5 5776 cat conftest.$ac_ext >&5 5777 fi 5778 rm -rf conftest* conftst* 5779 5780 # Do not use the global_symbol_pipe unless it works. 5781 if test "$pipe_works" = yes; then 5782 break 5783 else 5784 lt_cv_sys_global_symbol_pipe= 5785 fi 5786done 5787 5788fi 5789 5790if test -z "$lt_cv_sys_global_symbol_pipe"; then 5791 lt_cv_sys_global_symbol_to_cdecl= 5792fi 5793if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5795$as_echo "failed" >&6; } 5796else 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5798$as_echo "ok" >&6; } 5799fi 5800 5801# Response file support. 5802if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5803 nm_file_list_spec='@' 5804elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5805 nm_file_list_spec='@' 5806fi 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5835$as_echo_n "checking for sysroot... " >&6; } 5836 5837# Check whether --with-sysroot was given. 5838if test "${with_sysroot+set}" = set; then : 5839 withval=$with_sysroot; 5840else 5841 with_sysroot=no 5842fi 5843 5844 5845lt_sysroot= 5846case ${with_sysroot} in #( 5847 yes) 5848 if test "$GCC" = yes; then 5849 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5850 fi 5851 ;; #( 5852 /*) 5853 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5854 ;; #( 5855 no|'') 5856 ;; #( 5857 *) 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 5859$as_echo "${with_sysroot}" >&6; } 5860 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5861 ;; 5862esac 5863 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5865$as_echo "${lt_sysroot:-no}" >&6; } 5866 5867 5868 5869 5870 5871# Check whether --enable-libtool-lock was given. 5872if test "${enable_libtool_lock+set}" = set; then : 5873 enableval=$enable_libtool_lock; 5874fi 5875 5876test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5877 5878# Some flags need to be propagated to the compiler or linker for good 5879# libtool support. 5880case $host in 5881ia64-*-hpux*) 5882 # Find out which ABI we are using. 5883 echo 'int i;' > conftest.$ac_ext 5884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5885 (eval $ac_compile) 2>&5 5886 ac_status=$? 5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5888 test $ac_status = 0; }; then 5889 case `/usr/bin/file conftest.$ac_objext` in 5890 *ELF-32*) 5891 HPUX_IA64_MODE="32" 5892 ;; 5893 *ELF-64*) 5894 HPUX_IA64_MODE="64" 5895 ;; 5896 esac 5897 fi 5898 rm -rf conftest* 5899 ;; 5900*-*-irix6*) 5901 # Find out which ABI we are using. 5902 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5904 (eval $ac_compile) 2>&5 5905 ac_status=$? 5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5907 test $ac_status = 0; }; then 5908 if test "$lt_cv_prog_gnu_ld" = yes; then 5909 case `/usr/bin/file conftest.$ac_objext` in 5910 *32-bit*) 5911 LD="${LD-ld} -melf32bsmip" 5912 ;; 5913 *N32*) 5914 LD="${LD-ld} -melf32bmipn32" 5915 ;; 5916 *64-bit*) 5917 LD="${LD-ld} -melf64bmip" 5918 ;; 5919 esac 5920 else 5921 case `/usr/bin/file conftest.$ac_objext` in 5922 *32-bit*) 5923 LD="${LD-ld} -32" 5924 ;; 5925 *N32*) 5926 LD="${LD-ld} -n32" 5927 ;; 5928 *64-bit*) 5929 LD="${LD-ld} -64" 5930 ;; 5931 esac 5932 fi 5933 fi 5934 rm -rf conftest* 5935 ;; 5936 5937x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5938s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5939 # Find out which ABI we are using. 5940 echo 'int i;' > conftest.$ac_ext 5941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5942 (eval $ac_compile) 2>&5 5943 ac_status=$? 5944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5945 test $ac_status = 0; }; then 5946 case `/usr/bin/file conftest.o` in 5947 *32-bit*) 5948 case $host in 5949 x86_64-*kfreebsd*-gnu) 5950 LD="${LD-ld} -m elf_i386_fbsd" 5951 ;; 5952 x86_64-*linux*) 5953 LD="${LD-ld} -m elf_i386" 5954 ;; 5955 ppc64-*linux*|powerpc64-*linux*) 5956 LD="${LD-ld} -m elf32ppclinux" 5957 ;; 5958 s390x-*linux*) 5959 LD="${LD-ld} -m elf_s390" 5960 ;; 5961 sparc64-*linux*) 5962 LD="${LD-ld} -m elf32_sparc" 5963 ;; 5964 esac 5965 ;; 5966 *64-bit*) 5967 case $host in 5968 x86_64-*kfreebsd*-gnu) 5969 LD="${LD-ld} -m elf_x86_64_fbsd" 5970 ;; 5971 x86_64-*linux*) 5972 LD="${LD-ld} -m elf_x86_64" 5973 ;; 5974 ppc*-*linux*|powerpc*-*linux*) 5975 LD="${LD-ld} -m elf64ppc" 5976 ;; 5977 s390*-*linux*|s390*-*tpf*) 5978 LD="${LD-ld} -m elf64_s390" 5979 ;; 5980 sparc*-*linux*) 5981 LD="${LD-ld} -m elf64_sparc" 5982 ;; 5983 esac 5984 ;; 5985 esac 5986 fi 5987 rm -rf conftest* 5988 ;; 5989 5990*-*-sco3.2v5*) 5991 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5992 SAVE_CFLAGS="$CFLAGS" 5993 CFLAGS="$CFLAGS -belf" 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5995$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5996if ${lt_cv_cc_needs_belf+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 ac_ext=c 6000ac_cpp='$CPP $CPPFLAGS' 6001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6003ac_compiler_gnu=$ac_cv_c_compiler_gnu 6004 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007 6008int 6009main () 6010{ 6011 6012 ; 6013 return 0; 6014} 6015_ACEOF 6016if ac_fn_c_try_link "$LINENO"; then : 6017 lt_cv_cc_needs_belf=yes 6018else 6019 lt_cv_cc_needs_belf=no 6020fi 6021rm -f core conftest.err conftest.$ac_objext \ 6022 conftest$ac_exeext conftest.$ac_ext 6023 ac_ext=c 6024ac_cpp='$CPP $CPPFLAGS' 6025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6027ac_compiler_gnu=$ac_cv_c_compiler_gnu 6028 6029fi 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6031$as_echo "$lt_cv_cc_needs_belf" >&6; } 6032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6034 CFLAGS="$SAVE_CFLAGS" 6035 fi 6036 ;; 6037*-*solaris*) 6038 # Find out which ABI we are using. 6039 echo 'int i;' > conftest.$ac_ext 6040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6041 (eval $ac_compile) 2>&5 6042 ac_status=$? 6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6044 test $ac_status = 0; }; then 6045 case `/usr/bin/file conftest.o` in 6046 *64-bit*) 6047 case $lt_cv_prog_gnu_ld in 6048 yes*) 6049 case $host in 6050 i?86-*-solaris*) 6051 LD="${LD-ld} -m elf_x86_64" 6052 ;; 6053 sparc*-*-solaris*) 6054 LD="${LD-ld} -m elf64_sparc" 6055 ;; 6056 esac 6057 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6058 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6059 LD="${LD-ld}_sol2" 6060 fi 6061 ;; 6062 *) 6063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6064 LD="${LD-ld} -64" 6065 fi 6066 ;; 6067 esac 6068 ;; 6069 esac 6070 fi 6071 rm -rf conftest* 6072 ;; 6073esac 6074 6075need_locks="$enable_libtool_lock" 6076 6077if test -n "$ac_tool_prefix"; then 6078 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6079set dummy ${ac_tool_prefix}mt; ac_word=$2 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6081$as_echo_n "checking for $ac_word... " >&6; } 6082if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 if test -n "$MANIFEST_TOOL"; then 6086 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6087else 6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089for as_dir in $PATH 6090do 6091 IFS=$as_save_IFS 6092 test -z "$as_dir" && as_dir=. 6093 for ac_exec_ext in '' $ac_executable_extensions; do 6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6095 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6097 break 2 6098 fi 6099done 6100 done 6101IFS=$as_save_IFS 6102 6103fi 6104fi 6105MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6106if test -n "$MANIFEST_TOOL"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6108$as_echo "$MANIFEST_TOOL" >&6; } 6109else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111$as_echo "no" >&6; } 6112fi 6113 6114 6115fi 6116if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6117 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6118 # Extract the first word of "mt", so it can be a program name with args. 6119set dummy mt; ac_word=$2 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6121$as_echo_n "checking for $ac_word... " >&6; } 6122if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 if test -n "$ac_ct_MANIFEST_TOOL"; then 6126 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6127else 6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6129for as_dir in $PATH 6130do 6131 IFS=$as_save_IFS 6132 test -z "$as_dir" && as_dir=. 6133 for ac_exec_ext in '' $ac_executable_extensions; do 6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6135 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6137 break 2 6138 fi 6139done 6140 done 6141IFS=$as_save_IFS 6142 6143fi 6144fi 6145ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6146if test -n "$ac_ct_MANIFEST_TOOL"; then 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6148$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6149else 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6151$as_echo "no" >&6; } 6152fi 6153 6154 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6155 MANIFEST_TOOL=":" 6156 else 6157 case $cross_compiling:$ac_tool_warned in 6158yes:) 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6161ac_tool_warned=yes ;; 6162esac 6163 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6164 fi 6165else 6166 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6167fi 6168 6169test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6171$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6172if ${lt_cv_path_mainfest_tool+:} false; then : 6173 $as_echo_n "(cached) " >&6 6174else 6175 lt_cv_path_mainfest_tool=no 6176 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6177 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6178 cat conftest.err >&5 6179 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6180 lt_cv_path_mainfest_tool=yes 6181 fi 6182 rm -f conftest* 6183fi 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6185$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6186if test "x$lt_cv_path_mainfest_tool" != xyes; then 6187 MANIFEST_TOOL=: 6188fi 6189 6190 6191 6192 6193 6194 6195 case $host_os in 6196 rhapsody* | darwin*) 6197 if test -n "$ac_tool_prefix"; then 6198 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6199set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6201$as_echo_n "checking for $ac_word... " >&6; } 6202if ${ac_cv_prog_DSYMUTIL+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 if test -n "$DSYMUTIL"; then 6206 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6207else 6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209for as_dir in $PATH 6210do 6211 IFS=$as_save_IFS 6212 test -z "$as_dir" && as_dir=. 6213 for ac_exec_ext in '' $ac_executable_extensions; do 6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6215 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6217 break 2 6218 fi 6219done 6220 done 6221IFS=$as_save_IFS 6222 6223fi 6224fi 6225DSYMUTIL=$ac_cv_prog_DSYMUTIL 6226if test -n "$DSYMUTIL"; then 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6228$as_echo "$DSYMUTIL" >&6; } 6229else 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231$as_echo "no" >&6; } 6232fi 6233 6234 6235fi 6236if test -z "$ac_cv_prog_DSYMUTIL"; then 6237 ac_ct_DSYMUTIL=$DSYMUTIL 6238 # Extract the first word of "dsymutil", so it can be a program name with args. 6239set dummy dsymutil; ac_word=$2 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241$as_echo_n "checking for $ac_word... " >&6; } 6242if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 if test -n "$ac_ct_DSYMUTIL"; then 6246 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6247else 6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249for as_dir in $PATH 6250do 6251 IFS=$as_save_IFS 6252 test -z "$as_dir" && as_dir=. 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6255 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6257 break 2 6258 fi 6259done 6260 done 6261IFS=$as_save_IFS 6262 6263fi 6264fi 6265ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6266if test -n "$ac_ct_DSYMUTIL"; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6268$as_echo "$ac_ct_DSYMUTIL" >&6; } 6269else 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 if test "x$ac_ct_DSYMUTIL" = x; then 6275 DSYMUTIL=":" 6276 else 6277 case $cross_compiling:$ac_tool_warned in 6278yes:) 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6281ac_tool_warned=yes ;; 6282esac 6283 DSYMUTIL=$ac_ct_DSYMUTIL 6284 fi 6285else 6286 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6287fi 6288 6289 if test -n "$ac_tool_prefix"; then 6290 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6291set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6293$as_echo_n "checking for $ac_word... " >&6; } 6294if ${ac_cv_prog_NMEDIT+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 if test -n "$NMEDIT"; then 6298 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6299else 6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301for as_dir in $PATH 6302do 6303 IFS=$as_save_IFS 6304 test -z "$as_dir" && as_dir=. 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6307 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6309 break 2 6310 fi 6311done 6312 done 6313IFS=$as_save_IFS 6314 6315fi 6316fi 6317NMEDIT=$ac_cv_prog_NMEDIT 6318if test -n "$NMEDIT"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6320$as_echo "$NMEDIT" >&6; } 6321else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323$as_echo "no" >&6; } 6324fi 6325 6326 6327fi 6328if test -z "$ac_cv_prog_NMEDIT"; then 6329 ac_ct_NMEDIT=$NMEDIT 6330 # Extract the first word of "nmedit", so it can be a program name with args. 6331set dummy nmedit; ac_word=$2 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6333$as_echo_n "checking for $ac_word... " >&6; } 6334if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 if test -n "$ac_ct_NMEDIT"; then 6338 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 test -z "$as_dir" && as_dir=. 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6347 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6349 break 2 6350 fi 6351done 6352 done 6353IFS=$as_save_IFS 6354 6355fi 6356fi 6357ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6358if test -n "$ac_ct_NMEDIT"; then 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6360$as_echo "$ac_ct_NMEDIT" >&6; } 6361else 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6363$as_echo "no" >&6; } 6364fi 6365 6366 if test "x$ac_ct_NMEDIT" = x; then 6367 NMEDIT=":" 6368 else 6369 case $cross_compiling:$ac_tool_warned in 6370yes:) 6371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6373ac_tool_warned=yes ;; 6374esac 6375 NMEDIT=$ac_ct_NMEDIT 6376 fi 6377else 6378 NMEDIT="$ac_cv_prog_NMEDIT" 6379fi 6380 6381 if test -n "$ac_tool_prefix"; then 6382 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6383set dummy ${ac_tool_prefix}lipo; ac_word=$2 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6385$as_echo_n "checking for $ac_word... " >&6; } 6386if ${ac_cv_prog_LIPO+:} false; then : 6387 $as_echo_n "(cached) " >&6 6388else 6389 if test -n "$LIPO"; then 6390 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6391else 6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6393for as_dir in $PATH 6394do 6395 IFS=$as_save_IFS 6396 test -z "$as_dir" && as_dir=. 6397 for ac_exec_ext in '' $ac_executable_extensions; do 6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6399 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6401 break 2 6402 fi 6403done 6404 done 6405IFS=$as_save_IFS 6406 6407fi 6408fi 6409LIPO=$ac_cv_prog_LIPO 6410if test -n "$LIPO"; then 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6412$as_echo "$LIPO" >&6; } 6413else 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6415$as_echo "no" >&6; } 6416fi 6417 6418 6419fi 6420if test -z "$ac_cv_prog_LIPO"; then 6421 ac_ct_LIPO=$LIPO 6422 # Extract the first word of "lipo", so it can be a program name with args. 6423set dummy lipo; ac_word=$2 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6425$as_echo_n "checking for $ac_word... " >&6; } 6426if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 if test -n "$ac_ct_LIPO"; then 6430 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6431else 6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433for as_dir in $PATH 6434do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6439 ac_cv_prog_ac_ct_LIPO="lipo" 6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443done 6444 done 6445IFS=$as_save_IFS 6446 6447fi 6448fi 6449ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6450if test -n "$ac_ct_LIPO"; then 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6452$as_echo "$ac_ct_LIPO" >&6; } 6453else 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6455$as_echo "no" >&6; } 6456fi 6457 6458 if test "x$ac_ct_LIPO" = x; then 6459 LIPO=":" 6460 else 6461 case $cross_compiling:$ac_tool_warned in 6462yes:) 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6465ac_tool_warned=yes ;; 6466esac 6467 LIPO=$ac_ct_LIPO 6468 fi 6469else 6470 LIPO="$ac_cv_prog_LIPO" 6471fi 6472 6473 if test -n "$ac_tool_prefix"; then 6474 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6475set dummy ${ac_tool_prefix}otool; ac_word=$2 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477$as_echo_n "checking for $ac_word... " >&6; } 6478if ${ac_cv_prog_OTOOL+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 if test -n "$OTOOL"; then 6482 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6483else 6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6485for as_dir in $PATH 6486do 6487 IFS=$as_save_IFS 6488 test -z "$as_dir" && as_dir=. 6489 for ac_exec_ext in '' $ac_executable_extensions; do 6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6491 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6493 break 2 6494 fi 6495done 6496 done 6497IFS=$as_save_IFS 6498 6499fi 6500fi 6501OTOOL=$ac_cv_prog_OTOOL 6502if test -n "$OTOOL"; then 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6504$as_echo "$OTOOL" >&6; } 6505else 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507$as_echo "no" >&6; } 6508fi 6509 6510 6511fi 6512if test -z "$ac_cv_prog_OTOOL"; then 6513 ac_ct_OTOOL=$OTOOL 6514 # Extract the first word of "otool", so it can be a program name with args. 6515set dummy otool; ac_word=$2 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6517$as_echo_n "checking for $ac_word... " >&6; } 6518if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6519 $as_echo_n "(cached) " >&6 6520else 6521 if test -n "$ac_ct_OTOOL"; then 6522 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6523else 6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525for as_dir in $PATH 6526do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_exec_ext in '' $ac_executable_extensions; do 6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6531 ac_cv_prog_ac_ct_OTOOL="otool" 6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6533 break 2 6534 fi 6535done 6536 done 6537IFS=$as_save_IFS 6538 6539fi 6540fi 6541ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6542if test -n "$ac_ct_OTOOL"; then 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6544$as_echo "$ac_ct_OTOOL" >&6; } 6545else 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6547$as_echo "no" >&6; } 6548fi 6549 6550 if test "x$ac_ct_OTOOL" = x; then 6551 OTOOL=":" 6552 else 6553 case $cross_compiling:$ac_tool_warned in 6554yes:) 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6557ac_tool_warned=yes ;; 6558esac 6559 OTOOL=$ac_ct_OTOOL 6560 fi 6561else 6562 OTOOL="$ac_cv_prog_OTOOL" 6563fi 6564 6565 if test -n "$ac_tool_prefix"; then 6566 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6567set dummy ${ac_tool_prefix}otool64; ac_word=$2 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6569$as_echo_n "checking for $ac_word... " >&6; } 6570if ${ac_cv_prog_OTOOL64+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 if test -n "$OTOOL64"; then 6574 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6575else 6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH 6578do 6579 IFS=$as_save_IFS 6580 test -z "$as_dir" && as_dir=. 6581 for ac_exec_ext in '' $ac_executable_extensions; do 6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6583 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6585 break 2 6586 fi 6587done 6588 done 6589IFS=$as_save_IFS 6590 6591fi 6592fi 6593OTOOL64=$ac_cv_prog_OTOOL64 6594if test -n "$OTOOL64"; then 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6596$as_echo "$OTOOL64" >&6; } 6597else 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6599$as_echo "no" >&6; } 6600fi 6601 6602 6603fi 6604if test -z "$ac_cv_prog_OTOOL64"; then 6605 ac_ct_OTOOL64=$OTOOL64 6606 # Extract the first word of "otool64", so it can be a program name with args. 6607set dummy otool64; ac_word=$2 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6609$as_echo_n "checking for $ac_word... " >&6; } 6610if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test -n "$ac_ct_OTOOL64"; then 6614 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6615else 6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6623 ac_cv_prog_ac_ct_OTOOL64="otool64" 6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627done 6628 done 6629IFS=$as_save_IFS 6630 6631fi 6632fi 6633ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6634if test -n "$ac_ct_OTOOL64"; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6636$as_echo "$ac_ct_OTOOL64" >&6; } 6637else 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6639$as_echo "no" >&6; } 6640fi 6641 6642 if test "x$ac_ct_OTOOL64" = x; then 6643 OTOOL64=":" 6644 else 6645 case $cross_compiling:$ac_tool_warned in 6646yes:) 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6649ac_tool_warned=yes ;; 6650esac 6651 OTOOL64=$ac_ct_OTOOL64 6652 fi 6653else 6654 OTOOL64="$ac_cv_prog_OTOOL64" 6655fi 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6684$as_echo_n "checking for -single_module linker flag... " >&6; } 6685if ${lt_cv_apple_cc_single_mod+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 lt_cv_apple_cc_single_mod=no 6689 if test -z "${LT_MULTI_MODULE}"; then 6690 # By default we will add the -single_module flag. You can override 6691 # by either setting the environment variable LT_MULTI_MODULE 6692 # non-empty at configure time, or by adding -multi_module to the 6693 # link flags. 6694 rm -rf libconftest.dylib* 6695 echo "int foo(void){return 1;}" > conftest.c 6696 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6697-dynamiclib -Wl,-single_module conftest.c" >&5 6698 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6699 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6700 _lt_result=$? 6701 # If there is a non-empty error log, and "single_module" 6702 # appears in it, assume the flag caused a linker warning 6703 if test -s conftest.err && $GREP single_module conftest.err; then 6704 cat conftest.err >&5 6705 # Otherwise, if the output was created with a 0 exit code from 6706 # the compiler, it worked. 6707 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6708 lt_cv_apple_cc_single_mod=yes 6709 else 6710 cat conftest.err >&5 6711 fi 6712 rm -rf libconftest.dylib* 6713 rm -f conftest.* 6714 fi 6715fi 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6717$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6718 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6720$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6721if ${lt_cv_ld_exported_symbols_list+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 lt_cv_ld_exported_symbols_list=no 6725 save_LDFLAGS=$LDFLAGS 6726 echo "_main" > conftest.sym 6727 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6729/* end confdefs.h. */ 6730 6731int 6732main () 6733{ 6734 6735 ; 6736 return 0; 6737} 6738_ACEOF 6739if ac_fn_c_try_link "$LINENO"; then : 6740 lt_cv_ld_exported_symbols_list=yes 6741else 6742 lt_cv_ld_exported_symbols_list=no 6743fi 6744rm -f core conftest.err conftest.$ac_objext \ 6745 conftest$ac_exeext conftest.$ac_ext 6746 LDFLAGS="$save_LDFLAGS" 6747 6748fi 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6750$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6751 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6753$as_echo_n "checking for -force_load linker flag... " >&6; } 6754if ${lt_cv_ld_force_load+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 lt_cv_ld_force_load=no 6758 cat > conftest.c << _LT_EOF 6759int forced_loaded() { return 2;} 6760_LT_EOF 6761 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6762 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6763 echo "$AR cru libconftest.a conftest.o" >&5 6764 $AR cru libconftest.a conftest.o 2>&5 6765 echo "$RANLIB libconftest.a" >&5 6766 $RANLIB libconftest.a 2>&5 6767 cat > conftest.c << _LT_EOF 6768int main() { return 0;} 6769_LT_EOF 6770 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6771 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6772 _lt_result=$? 6773 if test -s conftest.err && $GREP force_load conftest.err; then 6774 cat conftest.err >&5 6775 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6776 lt_cv_ld_force_load=yes 6777 else 6778 cat conftest.err >&5 6779 fi 6780 rm -f conftest.err libconftest.a conftest conftest.c 6781 rm -rf conftest.dSYM 6782 6783fi 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6785$as_echo "$lt_cv_ld_force_load" >&6; } 6786 case $host_os in 6787 rhapsody* | darwin1.[012]) 6788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6789 darwin1.*) 6790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6791 darwin*) # darwin 5.x on 6792 # if running on 10.5 or later, the deployment target defaults 6793 # to the OS version, if on x86, and 10.4, the deployment 6794 # target defaults to 10.4. Don't you love it? 6795 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6796 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6798 10.[012]*) 6799 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6800 10.*) 6801 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6802 esac 6803 ;; 6804 esac 6805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6806 _lt_dar_single_mod='$single_module' 6807 fi 6808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6810 else 6811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6812 fi 6813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6814 _lt_dsymutil='~$DSYMUTIL $lib || :' 6815 else 6816 _lt_dsymutil= 6817 fi 6818 ;; 6819 esac 6820 6821ac_ext=c 6822ac_cpp='$CPP $CPPFLAGS' 6823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6825ac_compiler_gnu=$ac_cv_c_compiler_gnu 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6827$as_echo_n "checking how to run the C preprocessor... " >&6; } 6828# On Suns, sometimes $CPP names a directory. 6829if test -n "$CPP" && test -d "$CPP"; then 6830 CPP= 6831fi 6832if test -z "$CPP"; then 6833 if ${ac_cv_prog_CPP+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 # Double quotes because CPP needs to be expanded 6837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6838 do 6839 ac_preproc_ok=false 6840for ac_c_preproc_warn_flag in '' yes 6841do 6842 # Use a header file that comes with gcc, so configuring glibc 6843 # with a fresh cross-compiler works. 6844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6845 # <limits.h> exists even on freestanding compilers. 6846 # On the NeXT, cc -E runs the code through the compiler's parser, 6847 # not just through cpp. "Syntax error" is here to catch this case. 6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849/* end confdefs.h. */ 6850#ifdef __STDC__ 6851# include <limits.h> 6852#else 6853# include <assert.h> 6854#endif 6855 Syntax error 6856_ACEOF 6857if ac_fn_c_try_cpp "$LINENO"; then : 6858 6859else 6860 # Broken: fails on valid input. 6861continue 6862fi 6863rm -f conftest.err conftest.i conftest.$ac_ext 6864 6865 # OK, works on sane cases. Now check whether nonexistent headers 6866 # can be detected and how. 6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6868/* end confdefs.h. */ 6869#include <ac_nonexistent.h> 6870_ACEOF 6871if ac_fn_c_try_cpp "$LINENO"; then : 6872 # Broken: success on invalid input. 6873continue 6874else 6875 # Passes both tests. 6876ac_preproc_ok=: 6877break 6878fi 6879rm -f conftest.err conftest.i conftest.$ac_ext 6880 6881done 6882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6883rm -f conftest.i conftest.err conftest.$ac_ext 6884if $ac_preproc_ok; then : 6885 break 6886fi 6887 6888 done 6889 ac_cv_prog_CPP=$CPP 6890 6891fi 6892 CPP=$ac_cv_prog_CPP 6893else 6894 ac_cv_prog_CPP=$CPP 6895fi 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6897$as_echo "$CPP" >&6; } 6898ac_preproc_ok=false 6899for ac_c_preproc_warn_flag in '' yes 6900do 6901 # Use a header file that comes with gcc, so configuring glibc 6902 # with a fresh cross-compiler works. 6903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6904 # <limits.h> exists even on freestanding compilers. 6905 # On the NeXT, cc -E runs the code through the compiler's parser, 6906 # not just through cpp. "Syntax error" is here to catch this case. 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908/* end confdefs.h. */ 6909#ifdef __STDC__ 6910# include <limits.h> 6911#else 6912# include <assert.h> 6913#endif 6914 Syntax error 6915_ACEOF 6916if ac_fn_c_try_cpp "$LINENO"; then : 6917 6918else 6919 # Broken: fails on valid input. 6920continue 6921fi 6922rm -f conftest.err conftest.i conftest.$ac_ext 6923 6924 # OK, works on sane cases. Now check whether nonexistent headers 6925 # can be detected and how. 6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927/* end confdefs.h. */ 6928#include <ac_nonexistent.h> 6929_ACEOF 6930if ac_fn_c_try_cpp "$LINENO"; then : 6931 # Broken: success on invalid input. 6932continue 6933else 6934 # Passes both tests. 6935ac_preproc_ok=: 6936break 6937fi 6938rm -f conftest.err conftest.i conftest.$ac_ext 6939 6940done 6941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6942rm -f conftest.i conftest.err conftest.$ac_ext 6943if $ac_preproc_ok; then : 6944 6945else 6946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6948as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6949See \`config.log' for more details" "$LINENO" 5; } 6950fi 6951 6952ac_ext=c 6953ac_cpp='$CPP $CPPFLAGS' 6954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6956ac_compiler_gnu=$ac_cv_c_compiler_gnu 6957 6958 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6960$as_echo_n "checking for ANSI C header files... " >&6; } 6961if ${ac_cv_header_stdc+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966#include <stdlib.h> 6967#include <stdarg.h> 6968#include <string.h> 6969#include <float.h> 6970 6971int 6972main () 6973{ 6974 6975 ; 6976 return 0; 6977} 6978_ACEOF 6979if ac_fn_c_try_compile "$LINENO"; then : 6980 ac_cv_header_stdc=yes 6981else 6982 ac_cv_header_stdc=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6985 6986if test $ac_cv_header_stdc = yes; then 6987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6989/* end confdefs.h. */ 6990#include <string.h> 6991 6992_ACEOF 6993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6994 $EGREP "memchr" >/dev/null 2>&1; then : 6995 6996else 6997 ac_cv_header_stdc=no 6998fi 6999rm -f conftest* 7000 7001fi 7002 7003if test $ac_cv_header_stdc = yes; then 7004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7006/* end confdefs.h. */ 7007#include <stdlib.h> 7008 7009_ACEOF 7010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7011 $EGREP "free" >/dev/null 2>&1; then : 7012 7013else 7014 ac_cv_header_stdc=no 7015fi 7016rm -f conftest* 7017 7018fi 7019 7020if test $ac_cv_header_stdc = yes; then 7021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7022 if test "$cross_compiling" = yes; then : 7023 : 7024else 7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7026/* end confdefs.h. */ 7027#include <ctype.h> 7028#include <stdlib.h> 7029#if ((' ' & 0x0FF) == 0x020) 7030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7032#else 7033# define ISLOWER(c) \ 7034 (('a' <= (c) && (c) <= 'i') \ 7035 || ('j' <= (c) && (c) <= 'r') \ 7036 || ('s' <= (c) && (c) <= 'z')) 7037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7038#endif 7039 7040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7041int 7042main () 7043{ 7044 int i; 7045 for (i = 0; i < 256; i++) 7046 if (XOR (islower (i), ISLOWER (i)) 7047 || toupper (i) != TOUPPER (i)) 7048 return 2; 7049 return 0; 7050} 7051_ACEOF 7052if ac_fn_c_try_run "$LINENO"; then : 7053 7054else 7055 ac_cv_header_stdc=no 7056fi 7057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7058 conftest.$ac_objext conftest.beam conftest.$ac_ext 7059fi 7060 7061fi 7062fi 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7064$as_echo "$ac_cv_header_stdc" >&6; } 7065if test $ac_cv_header_stdc = yes; then 7066 7067$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7068 7069fi 7070 7071# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7072for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7073 inttypes.h stdint.h unistd.h 7074do : 7075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7076ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7077" 7078if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7079 cat >>confdefs.h <<_ACEOF 7080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7081_ACEOF 7082 7083fi 7084 7085done 7086 7087 7088for ac_header in dlfcn.h 7089do : 7090 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7091" 7092if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7093 cat >>confdefs.h <<_ACEOF 7094#define HAVE_DLFCN_H 1 7095_ACEOF 7096 7097fi 7098 7099done 7100 7101 7102 7103 7104 7105# Set options 7106 7107 7108 7109 enable_dlopen=no 7110 7111 7112 7113 # Check whether --enable-shared was given. 7114if test "${enable_shared+set}" = set; then : 7115 enableval=$enable_shared; p=${PACKAGE-default} 7116 case $enableval in 7117 yes) enable_shared=yes ;; 7118 no) enable_shared=no ;; 7119 *) 7120 enable_shared=no 7121 # Look at the argument we got. We use all the common list separators. 7122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7123 for pkg in $enableval; do 7124 IFS="$lt_save_ifs" 7125 if test "X$pkg" = "X$p"; then 7126 enable_shared=yes 7127 fi 7128 done 7129 IFS="$lt_save_ifs" 7130 ;; 7131 esac 7132else 7133 enable_shared=yes 7134fi 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 # Check whether --enable-static was given. 7145if test "${enable_static+set}" = set; then : 7146 enableval=$enable_static; p=${PACKAGE-default} 7147 case $enableval in 7148 yes) enable_static=yes ;; 7149 no) enable_static=no ;; 7150 *) 7151 enable_static=no 7152 # Look at the argument we got. We use all the common list separators. 7153 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7154 for pkg in $enableval; do 7155 IFS="$lt_save_ifs" 7156 if test "X$pkg" = "X$p"; then 7157 enable_static=yes 7158 fi 7159 done 7160 IFS="$lt_save_ifs" 7161 ;; 7162 esac 7163else 7164 enable_static=yes 7165fi 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176# Check whether --with-pic was given. 7177if test "${with_pic+set}" = set; then : 7178 withval=$with_pic; lt_p=${PACKAGE-default} 7179 case $withval in 7180 yes|no) pic_mode=$withval ;; 7181 *) 7182 pic_mode=default 7183 # Look at the argument we got. We use all the common list separators. 7184 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7185 for lt_pkg in $withval; do 7186 IFS="$lt_save_ifs" 7187 if test "X$lt_pkg" = "X$lt_p"; then 7188 pic_mode=yes 7189 fi 7190 done 7191 IFS="$lt_save_ifs" 7192 ;; 7193 esac 7194else 7195 pic_mode=default 7196fi 7197 7198 7199test -z "$pic_mode" && pic_mode=default 7200 7201 7202 7203 7204 7205 7206 7207 # Check whether --enable-fast-install was given. 7208if test "${enable_fast_install+set}" = set; then : 7209 enableval=$enable_fast_install; p=${PACKAGE-default} 7210 case $enableval in 7211 yes) enable_fast_install=yes ;; 7212 no) enable_fast_install=no ;; 7213 *) 7214 enable_fast_install=no 7215 # Look at the argument we got. We use all the common list separators. 7216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7217 for pkg in $enableval; do 7218 IFS="$lt_save_ifs" 7219 if test "X$pkg" = "X$p"; then 7220 enable_fast_install=yes 7221 fi 7222 done 7223 IFS="$lt_save_ifs" 7224 ;; 7225 esac 7226else 7227 enable_fast_install=yes 7228fi 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240# This can be used to rebuild libtool when needed 7241LIBTOOL_DEPS="$ltmain" 7242 7243# Always use our own libtool. 7244LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275test -z "$LN_S" && LN_S="ln -s" 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290if test -n "${ZSH_VERSION+set}" ; then 7291 setopt NO_GLOB_SUBST 7292fi 7293 7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7295$as_echo_n "checking for objdir... " >&6; } 7296if ${lt_cv_objdir+:} false; then : 7297 $as_echo_n "(cached) " >&6 7298else 7299 rm -f .libs 2>/dev/null 7300mkdir .libs 2>/dev/null 7301if test -d .libs; then 7302 lt_cv_objdir=.libs 7303else 7304 # MS-DOS does not allow filenames that begin with a dot. 7305 lt_cv_objdir=_libs 7306fi 7307rmdir .libs 2>/dev/null 7308fi 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7310$as_echo "$lt_cv_objdir" >&6; } 7311objdir=$lt_cv_objdir 7312 7313 7314 7315 7316 7317cat >>confdefs.h <<_ACEOF 7318#define LT_OBJDIR "$lt_cv_objdir/" 7319_ACEOF 7320 7321 7322 7323 7324case $host_os in 7325aix3*) 7326 # AIX sometimes has problems with the GCC collect2 program. For some 7327 # reason, if we set the COLLECT_NAMES environment variable, the problems 7328 # vanish in a puff of smoke. 7329 if test "X${COLLECT_NAMES+set}" != Xset; then 7330 COLLECT_NAMES= 7331 export COLLECT_NAMES 7332 fi 7333 ;; 7334esac 7335 7336# Global variables: 7337ofile=libtool 7338can_build_shared=yes 7339 7340# All known linkers require a `.a' archive for static linking (except MSVC, 7341# which needs '.lib'). 7342libext=a 7343 7344with_gnu_ld="$lt_cv_prog_gnu_ld" 7345 7346old_CC="$CC" 7347old_CFLAGS="$CFLAGS" 7348 7349# Set sane defaults for various variables 7350test -z "$CC" && CC=cc 7351test -z "$LTCC" && LTCC=$CC 7352test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7353test -z "$LD" && LD=ld 7354test -z "$ac_objext" && ac_objext=o 7355 7356for cc_temp in $compiler""; do 7357 case $cc_temp in 7358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7360 \-*) ;; 7361 *) break;; 7362 esac 7363done 7364cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7365 7366 7367# Only perform the check for file, if the check method requires it 7368test -z "$MAGIC_CMD" && MAGIC_CMD=file 7369case $deplibs_check_method in 7370file_magic*) 7371 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7373$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7374if ${lt_cv_path_MAGIC_CMD+:} false; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 case $MAGIC_CMD in 7378[\\/*] | ?:[\\/]*) 7379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7380 ;; 7381*) 7382 lt_save_MAGIC_CMD="$MAGIC_CMD" 7383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7385 for ac_dir in $ac_dummy; do 7386 IFS="$lt_save_ifs" 7387 test -z "$ac_dir" && ac_dir=. 7388 if test -f $ac_dir/${ac_tool_prefix}file; then 7389 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7390 if test -n "$file_magic_test_file"; then 7391 case $deplibs_check_method in 7392 "file_magic "*) 7393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7396 $EGREP "$file_magic_regex" > /dev/null; then 7397 : 7398 else 7399 cat <<_LT_EOF 1>&2 7400 7401*** Warning: the command libtool uses to detect shared libraries, 7402*** $file_magic_cmd, produces output that libtool cannot recognize. 7403*** The result is that libtool may fail to recognize shared libraries 7404*** as such. This will affect the creation of libtool libraries that 7405*** depend on shared libraries, but programs linked with such libtool 7406*** libraries will work regardless of this problem. Nevertheless, you 7407*** may want to report the problem to your system manager and/or to 7408*** bug-libtool@gnu.org 7409 7410_LT_EOF 7411 fi ;; 7412 esac 7413 fi 7414 break 7415 fi 7416 done 7417 IFS="$lt_save_ifs" 7418 MAGIC_CMD="$lt_save_MAGIC_CMD" 7419 ;; 7420esac 7421fi 7422 7423MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7424if test -n "$MAGIC_CMD"; then 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7426$as_echo "$MAGIC_CMD" >&6; } 7427else 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7429$as_echo "no" >&6; } 7430fi 7431 7432 7433 7434 7435 7436if test -z "$lt_cv_path_MAGIC_CMD"; then 7437 if test -n "$ac_tool_prefix"; then 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7439$as_echo_n "checking for file... " >&6; } 7440if ${lt_cv_path_MAGIC_CMD+:} false; then : 7441 $as_echo_n "(cached) " >&6 7442else 7443 case $MAGIC_CMD in 7444[\\/*] | ?:[\\/]*) 7445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7446 ;; 7447*) 7448 lt_save_MAGIC_CMD="$MAGIC_CMD" 7449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7451 for ac_dir in $ac_dummy; do 7452 IFS="$lt_save_ifs" 7453 test -z "$ac_dir" && ac_dir=. 7454 if test -f $ac_dir/file; then 7455 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7456 if test -n "$file_magic_test_file"; then 7457 case $deplibs_check_method in 7458 "file_magic "*) 7459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7462 $EGREP "$file_magic_regex" > /dev/null; then 7463 : 7464 else 7465 cat <<_LT_EOF 1>&2 7466 7467*** Warning: the command libtool uses to detect shared libraries, 7468*** $file_magic_cmd, produces output that libtool cannot recognize. 7469*** The result is that libtool may fail to recognize shared libraries 7470*** as such. This will affect the creation of libtool libraries that 7471*** depend on shared libraries, but programs linked with such libtool 7472*** libraries will work regardless of this problem. Nevertheless, you 7473*** may want to report the problem to your system manager and/or to 7474*** bug-libtool@gnu.org 7475 7476_LT_EOF 7477 fi ;; 7478 esac 7479 fi 7480 break 7481 fi 7482 done 7483 IFS="$lt_save_ifs" 7484 MAGIC_CMD="$lt_save_MAGIC_CMD" 7485 ;; 7486esac 7487fi 7488 7489MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7490if test -n "$MAGIC_CMD"; then 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7492$as_echo "$MAGIC_CMD" >&6; } 7493else 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7495$as_echo "no" >&6; } 7496fi 7497 7498 7499 else 7500 MAGIC_CMD=: 7501 fi 7502fi 7503 7504 fi 7505 ;; 7506esac 7507 7508# Use C for the default configuration in the libtool script 7509 7510lt_save_CC="$CC" 7511ac_ext=c 7512ac_cpp='$CPP $CPPFLAGS' 7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7515ac_compiler_gnu=$ac_cv_c_compiler_gnu 7516 7517 7518# Source file extension for C test sources. 7519ac_ext=c 7520 7521# Object file extension for compiled C test sources. 7522objext=o 7523objext=$objext 7524 7525# Code to be used in simple compile tests 7526lt_simple_compile_test_code="int some_variable = 0;" 7527 7528# Code to be used in simple link tests 7529lt_simple_link_test_code='int main(){return(0);}' 7530 7531 7532 7533 7534 7535 7536 7537# If no C compiler was specified, use CC. 7538LTCC=${LTCC-"$CC"} 7539 7540# If no C compiler flags were specified, use CFLAGS. 7541LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7542 7543# Allow CC to be a program name with arguments. 7544compiler=$CC 7545 7546# Save the default compiler, since it gets overwritten when the other 7547# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7548compiler_DEFAULT=$CC 7549 7550# save warnings/boilerplate of simple test code 7551ac_outfile=conftest.$ac_objext 7552echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7553eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7554_lt_compiler_boilerplate=`cat conftest.err` 7555$RM conftest* 7556 7557ac_outfile=conftest.$ac_objext 7558echo "$lt_simple_link_test_code" >conftest.$ac_ext 7559eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7560_lt_linker_boilerplate=`cat conftest.err` 7561$RM -r conftest* 7562 7563 7564## CAVEAT EMPTOR: 7565## There is no encapsulation within the following macros, do not change 7566## the running order or otherwise move them around unless you know exactly 7567## what you are doing... 7568if test -n "$compiler"; then 7569 7570lt_prog_compiler_no_builtin_flag= 7571 7572if test "$GCC" = yes; then 7573 case $cc_basename in 7574 nvcc*) 7575 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7576 *) 7577 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7578 esac 7579 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7581$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7582if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 lt_cv_prog_compiler_rtti_exceptions=no 7586 ac_outfile=conftest.$ac_objext 7587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7588 lt_compiler_flag="-fno-rtti -fno-exceptions" 7589 # Insert the option either (1) after the last *FLAGS variable, or 7590 # (2) before a word containing "conftest.", or (3) at the end. 7591 # Note that $ac_compile itself does not contain backslashes and begins 7592 # with a dollar sign (not a hyphen), so the echo should work correctly. 7593 # The option is referenced via a variable to avoid confusing sed. 7594 lt_compile=`echo "$ac_compile" | $SED \ 7595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7597 -e 's:$: $lt_compiler_flag:'` 7598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7599 (eval "$lt_compile" 2>conftest.err) 7600 ac_status=$? 7601 cat conftest.err >&5 7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7603 if (exit $ac_status) && test -s "$ac_outfile"; then 7604 # The compiler can only warn and ignore the option if not recognized 7605 # So say no if there are warnings other than the usual output. 7606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7609 lt_cv_prog_compiler_rtti_exceptions=yes 7610 fi 7611 fi 7612 $RM conftest* 7613 7614fi 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7616$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7617 7618if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7619 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7620else 7621 : 7622fi 7623 7624fi 7625 7626 7627 7628 7629 7630 7631 lt_prog_compiler_wl= 7632lt_prog_compiler_pic= 7633lt_prog_compiler_static= 7634 7635 7636 if test "$GCC" = yes; then 7637 lt_prog_compiler_wl='-Wl,' 7638 lt_prog_compiler_static='-static' 7639 7640 case $host_os in 7641 aix*) 7642 # All AIX code is PIC. 7643 if test "$host_cpu" = ia64; then 7644 # AIX 5 now supports IA64 processor 7645 lt_prog_compiler_static='-Bstatic' 7646 fi 7647 ;; 7648 7649 amigaos*) 7650 case $host_cpu in 7651 powerpc) 7652 # see comment about AmigaOS4 .so support 7653 lt_prog_compiler_pic='-fPIC' 7654 ;; 7655 m68k) 7656 # FIXME: we need at least 68020 code to build shared libraries, but 7657 # adding the `-m68020' flag to GCC prevents building anything better, 7658 # like `-m68040'. 7659 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7660 ;; 7661 esac 7662 ;; 7663 7664 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7665 # PIC is the default for these OSes. 7666 ;; 7667 7668 mingw* | cygwin* | pw32* | os2* | cegcc*) 7669 # This hack is so that the source file can tell whether it is being 7670 # built for inclusion in a dll (and should export symbols for example). 7671 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7672 # (--disable-auto-import) libraries 7673 lt_prog_compiler_pic='-DDLL_EXPORT' 7674 ;; 7675 7676 darwin* | rhapsody*) 7677 # PIC is the default on this platform 7678 # Common symbols not allowed in MH_DYLIB files 7679 lt_prog_compiler_pic='-fno-common' 7680 ;; 7681 7682 haiku*) 7683 # PIC is the default for Haiku. 7684 # The "-static" flag exists, but is broken. 7685 lt_prog_compiler_static= 7686 ;; 7687 7688 hpux*) 7689 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7690 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7691 # sets the default TLS model and affects inlining. 7692 case $host_cpu in 7693 hppa*64*) 7694 # +Z the default 7695 ;; 7696 *) 7697 lt_prog_compiler_pic='-fPIC' 7698 ;; 7699 esac 7700 ;; 7701 7702 interix[3-9]*) 7703 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7704 # Instead, we relocate shared libraries at runtime. 7705 ;; 7706 7707 msdosdjgpp*) 7708 # Just because we use GCC doesn't mean we suddenly get shared libraries 7709 # on systems that don't support them. 7710 lt_prog_compiler_can_build_shared=no 7711 enable_shared=no 7712 ;; 7713 7714 *nto* | *qnx*) 7715 # QNX uses GNU C++, but need to define -shared option too, otherwise 7716 # it will coredump. 7717 lt_prog_compiler_pic='-fPIC -shared' 7718 ;; 7719 7720 sysv4*MP*) 7721 if test -d /usr/nec; then 7722 lt_prog_compiler_pic=-Kconform_pic 7723 fi 7724 ;; 7725 7726 *) 7727 lt_prog_compiler_pic='-fPIC' 7728 ;; 7729 esac 7730 7731 case $cc_basename in 7732 nvcc*) # Cuda Compiler Driver 2.2 7733 lt_prog_compiler_wl='-Xlinker ' 7734 if test -n "$lt_prog_compiler_pic"; then 7735 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7736 fi 7737 ;; 7738 esac 7739 else 7740 # PORTME Check for flag to pass linker flags through the system compiler. 7741 case $host_os in 7742 aix*) 7743 lt_prog_compiler_wl='-Wl,' 7744 if test "$host_cpu" = ia64; then 7745 # AIX 5 now supports IA64 processor 7746 lt_prog_compiler_static='-Bstatic' 7747 else 7748 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7749 fi 7750 ;; 7751 7752 mingw* | cygwin* | pw32* | os2* | cegcc*) 7753 # This hack is so that the source file can tell whether it is being 7754 # built for inclusion in a dll (and should export symbols for example). 7755 lt_prog_compiler_pic='-DDLL_EXPORT' 7756 ;; 7757 7758 hpux9* | hpux10* | hpux11*) 7759 lt_prog_compiler_wl='-Wl,' 7760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7761 # not for PA HP-UX. 7762 case $host_cpu in 7763 hppa*64*|ia64*) 7764 # +Z the default 7765 ;; 7766 *) 7767 lt_prog_compiler_pic='+Z' 7768 ;; 7769 esac 7770 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7771 lt_prog_compiler_static='${wl}-a ${wl}archive' 7772 ;; 7773 7774 irix5* | irix6* | nonstopux*) 7775 lt_prog_compiler_wl='-Wl,' 7776 # PIC (with -KPIC) is the default. 7777 lt_prog_compiler_static='-non_shared' 7778 ;; 7779 7780 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7781 case $cc_basename in 7782 # old Intel for x86_64 which still supported -KPIC. 7783 ecc*) 7784 lt_prog_compiler_wl='-Wl,' 7785 lt_prog_compiler_pic='-KPIC' 7786 lt_prog_compiler_static='-static' 7787 ;; 7788 # icc used to be incompatible with GCC. 7789 # ICC 10 doesn't accept -KPIC any more. 7790 icc* | ifort*) 7791 lt_prog_compiler_wl='-Wl,' 7792 lt_prog_compiler_pic='-fPIC' 7793 lt_prog_compiler_static='-static' 7794 ;; 7795 # Lahey Fortran 8.1. 7796 lf95*) 7797 lt_prog_compiler_wl='-Wl,' 7798 lt_prog_compiler_pic='--shared' 7799 lt_prog_compiler_static='--static' 7800 ;; 7801 nagfor*) 7802 # NAG Fortran compiler 7803 lt_prog_compiler_wl='-Wl,-Wl,,' 7804 lt_prog_compiler_pic='-PIC' 7805 lt_prog_compiler_static='-Bstatic' 7806 ;; 7807 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7808 # Portland Group compilers (*not* the Pentium gcc compiler, 7809 # which looks to be a dead project) 7810 lt_prog_compiler_wl='-Wl,' 7811 lt_prog_compiler_pic='-fpic' 7812 lt_prog_compiler_static='-Bstatic' 7813 ;; 7814 ccc*) 7815 lt_prog_compiler_wl='-Wl,' 7816 # All Alpha code is PIC. 7817 lt_prog_compiler_static='-non_shared' 7818 ;; 7819 xl* | bgxl* | bgf* | mpixl*) 7820 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7821 lt_prog_compiler_wl='-Wl,' 7822 lt_prog_compiler_pic='-qpic' 7823 lt_prog_compiler_static='-qstaticlink' 7824 ;; 7825 *) 7826 case `$CC -V 2>&1 | sed 5q` in 7827 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 7828 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7829 lt_prog_compiler_pic='-KPIC' 7830 lt_prog_compiler_static='-Bstatic' 7831 lt_prog_compiler_wl='' 7832 ;; 7833 *Sun\ F* | *Sun*Fortran*) 7834 lt_prog_compiler_pic='-KPIC' 7835 lt_prog_compiler_static='-Bstatic' 7836 lt_prog_compiler_wl='-Qoption ld ' 7837 ;; 7838 *Sun\ C*) 7839 # Sun C 5.9 7840 lt_prog_compiler_pic='-KPIC' 7841 lt_prog_compiler_static='-Bstatic' 7842 lt_prog_compiler_wl='-Wl,' 7843 ;; 7844 *Intel*\ [CF]*Compiler*) 7845 lt_prog_compiler_wl='-Wl,' 7846 lt_prog_compiler_pic='-fPIC' 7847 lt_prog_compiler_static='-static' 7848 ;; 7849 *Portland\ Group*) 7850 lt_prog_compiler_wl='-Wl,' 7851 lt_prog_compiler_pic='-fpic' 7852 lt_prog_compiler_static='-Bstatic' 7853 ;; 7854 esac 7855 ;; 7856 esac 7857 ;; 7858 7859 newsos6) 7860 lt_prog_compiler_pic='-KPIC' 7861 lt_prog_compiler_static='-Bstatic' 7862 ;; 7863 7864 *nto* | *qnx*) 7865 # QNX uses GNU C++, but need to define -shared option too, otherwise 7866 # it will coredump. 7867 lt_prog_compiler_pic='-fPIC -shared' 7868 ;; 7869 7870 osf3* | osf4* | osf5*) 7871 lt_prog_compiler_wl='-Wl,' 7872 # All OSF/1 code is PIC. 7873 lt_prog_compiler_static='-non_shared' 7874 ;; 7875 7876 rdos*) 7877 lt_prog_compiler_static='-non_shared' 7878 ;; 7879 7880 solaris*) 7881 lt_prog_compiler_pic='-KPIC' 7882 lt_prog_compiler_static='-Bstatic' 7883 case $cc_basename in 7884 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7885 lt_prog_compiler_wl='-Qoption ld ';; 7886 *) 7887 lt_prog_compiler_wl='-Wl,';; 7888 esac 7889 ;; 7890 7891 sunos4*) 7892 lt_prog_compiler_wl='-Qoption ld ' 7893 lt_prog_compiler_pic='-PIC' 7894 lt_prog_compiler_static='-Bstatic' 7895 ;; 7896 7897 sysv4 | sysv4.2uw2* | sysv4.3*) 7898 lt_prog_compiler_wl='-Wl,' 7899 lt_prog_compiler_pic='-KPIC' 7900 lt_prog_compiler_static='-Bstatic' 7901 ;; 7902 7903 sysv4*MP*) 7904 if test -d /usr/nec ;then 7905 lt_prog_compiler_pic='-Kconform_pic' 7906 lt_prog_compiler_static='-Bstatic' 7907 fi 7908 ;; 7909 7910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7911 lt_prog_compiler_wl='-Wl,' 7912 lt_prog_compiler_pic='-KPIC' 7913 lt_prog_compiler_static='-Bstatic' 7914 ;; 7915 7916 unicos*) 7917 lt_prog_compiler_wl='-Wl,' 7918 lt_prog_compiler_can_build_shared=no 7919 ;; 7920 7921 uts4*) 7922 lt_prog_compiler_pic='-pic' 7923 lt_prog_compiler_static='-Bstatic' 7924 ;; 7925 7926 *) 7927 lt_prog_compiler_can_build_shared=no 7928 ;; 7929 esac 7930 fi 7931 7932case $host_os in 7933 # For platforms which do not support PIC, -DPIC is meaningless: 7934 *djgpp*) 7935 lt_prog_compiler_pic= 7936 ;; 7937 *) 7938 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7939 ;; 7940esac 7941 7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7943$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7944if ${lt_cv_prog_compiler_pic+:} false; then : 7945 $as_echo_n "(cached) " >&6 7946else 7947 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 7948fi 7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 7950$as_echo "$lt_cv_prog_compiler_pic" >&6; } 7951lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 7952 7953# 7954# Check to make sure the PIC flag actually works. 7955# 7956if test -n "$lt_prog_compiler_pic"; then 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7958$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7959if ${lt_cv_prog_compiler_pic_works+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 lt_cv_prog_compiler_pic_works=no 7963 ac_outfile=conftest.$ac_objext 7964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7965 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7966 # Insert the option either (1) after the last *FLAGS variable, or 7967 # (2) before a word containing "conftest.", or (3) at the end. 7968 # Note that $ac_compile itself does not contain backslashes and begins 7969 # with a dollar sign (not a hyphen), so the echo should work correctly. 7970 # The option is referenced via a variable to avoid confusing sed. 7971 lt_compile=`echo "$ac_compile" | $SED \ 7972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7974 -e 's:$: $lt_compiler_flag:'` 7975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7976 (eval "$lt_compile" 2>conftest.err) 7977 ac_status=$? 7978 cat conftest.err >&5 7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7980 if (exit $ac_status) && test -s "$ac_outfile"; then 7981 # The compiler can only warn and ignore the option if not recognized 7982 # So say no if there are warnings other than the usual output. 7983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7986 lt_cv_prog_compiler_pic_works=yes 7987 fi 7988 fi 7989 $RM conftest* 7990 7991fi 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7993$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7994 7995if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7996 case $lt_prog_compiler_pic in 7997 "" | " "*) ;; 7998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7999 esac 8000else 8001 lt_prog_compiler_pic= 8002 lt_prog_compiler_can_build_shared=no 8003fi 8004 8005fi 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017# 8018# Check to make sure the static flag actually works. 8019# 8020wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8022$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8023if ${lt_cv_prog_compiler_static_works+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 lt_cv_prog_compiler_static_works=no 8027 save_LDFLAGS="$LDFLAGS" 8028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8029 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8031 # The linker can only warn and ignore the option if not recognized 8032 # So say no if there are warnings 8033 if test -s conftest.err; then 8034 # Append any errors to the config.log. 8035 cat conftest.err 1>&5 8036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8038 if diff conftest.exp conftest.er2 >/dev/null; then 8039 lt_cv_prog_compiler_static_works=yes 8040 fi 8041 else 8042 lt_cv_prog_compiler_static_works=yes 8043 fi 8044 fi 8045 $RM -r conftest* 8046 LDFLAGS="$save_LDFLAGS" 8047 8048fi 8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8050$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8051 8052if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8053 : 8054else 8055 lt_prog_compiler_static= 8056fi 8057 8058 8059 8060 8061 8062 8063 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8065$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8066if ${lt_cv_prog_compiler_c_o+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 lt_cv_prog_compiler_c_o=no 8070 $RM -r conftest 2>/dev/null 8071 mkdir conftest 8072 cd conftest 8073 mkdir out 8074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8075 8076 lt_compiler_flag="-o out/conftest2.$ac_objext" 8077 # Insert the option either (1) after the last *FLAGS variable, or 8078 # (2) before a word containing "conftest.", or (3) at the end. 8079 # Note that $ac_compile itself does not contain backslashes and begins 8080 # with a dollar sign (not a hyphen), so the echo should work correctly. 8081 lt_compile=`echo "$ac_compile" | $SED \ 8082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8084 -e 's:$: $lt_compiler_flag:'` 8085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8086 (eval "$lt_compile" 2>out/conftest.err) 8087 ac_status=$? 8088 cat out/conftest.err >&5 8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8090 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8091 then 8092 # The compiler can only warn and ignore the option if not recognized 8093 # So say no if there are warnings 8094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8097 lt_cv_prog_compiler_c_o=yes 8098 fi 8099 fi 8100 chmod u+w . 2>&5 8101 $RM conftest* 8102 # SGI C++ compiler will create directory out/ii_files/ for 8103 # template instantiation 8104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8105 $RM out/* && rmdir out 8106 cd .. 8107 $RM -r conftest 8108 $RM conftest* 8109 8110fi 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8112$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8113 8114 8115 8116 8117 8118 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8120$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8121if ${lt_cv_prog_compiler_c_o+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 lt_cv_prog_compiler_c_o=no 8125 $RM -r conftest 2>/dev/null 8126 mkdir conftest 8127 cd conftest 8128 mkdir out 8129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8130 8131 lt_compiler_flag="-o out/conftest2.$ac_objext" 8132 # Insert the option either (1) after the last *FLAGS variable, or 8133 # (2) before a word containing "conftest.", or (3) at the end. 8134 # Note that $ac_compile itself does not contain backslashes and begins 8135 # with a dollar sign (not a hyphen), so the echo should work correctly. 8136 lt_compile=`echo "$ac_compile" | $SED \ 8137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8139 -e 's:$: $lt_compiler_flag:'` 8140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8141 (eval "$lt_compile" 2>out/conftest.err) 8142 ac_status=$? 8143 cat out/conftest.err >&5 8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8145 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8146 then 8147 # The compiler can only warn and ignore the option if not recognized 8148 # So say no if there are warnings 8149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8152 lt_cv_prog_compiler_c_o=yes 8153 fi 8154 fi 8155 chmod u+w . 2>&5 8156 $RM conftest* 8157 # SGI C++ compiler will create directory out/ii_files/ for 8158 # template instantiation 8159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8160 $RM out/* && rmdir out 8161 cd .. 8162 $RM -r conftest 8163 $RM conftest* 8164 8165fi 8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8167$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8168 8169 8170 8171 8172hard_links="nottested" 8173if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8174 # do not overwrite the value of need_locks provided by the user 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8176$as_echo_n "checking if we can lock with hard links... " >&6; } 8177 hard_links=yes 8178 $RM conftest* 8179 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8180 touch conftest.a 8181 ln conftest.a conftest.b 2>&5 || hard_links=no 8182 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8184$as_echo "$hard_links" >&6; } 8185 if test "$hard_links" = no; then 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8187$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8188 need_locks=warn 8189 fi 8190else 8191 need_locks=no 8192fi 8193 8194 8195 8196 8197 8198 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8200$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8201 8202 runpath_var= 8203 allow_undefined_flag= 8204 always_export_symbols=no 8205 archive_cmds= 8206 archive_expsym_cmds= 8207 compiler_needs_object=no 8208 enable_shared_with_static_runtimes=no 8209 export_dynamic_flag_spec= 8210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8211 hardcode_automatic=no 8212 hardcode_direct=no 8213 hardcode_direct_absolute=no 8214 hardcode_libdir_flag_spec= 8215 hardcode_libdir_separator= 8216 hardcode_minus_L=no 8217 hardcode_shlibpath_var=unsupported 8218 inherit_rpath=no 8219 link_all_deplibs=unknown 8220 module_cmds= 8221 module_expsym_cmds= 8222 old_archive_from_new_cmds= 8223 old_archive_from_expsyms_cmds= 8224 thread_safe_flag_spec= 8225 whole_archive_flag_spec= 8226 # include_expsyms should be a list of space-separated symbols to be *always* 8227 # included in the symbol list 8228 include_expsyms= 8229 # exclude_expsyms can be an extended regexp of symbols to exclude 8230 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8231 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8232 # as well as any symbol that contains `d'. 8233 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8234 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8235 # platforms (ab)use it in PIC code, but their linkers get confused if 8236 # the symbol is explicitly referenced. Since portable code cannot 8237 # rely on this symbol name, it's probably fine to never include it in 8238 # preloaded symbol tables. 8239 # Exclude shared library initialization/finalization symbols. 8240 extract_expsyms_cmds= 8241 8242 case $host_os in 8243 cygwin* | mingw* | pw32* | cegcc*) 8244 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8245 # When not using gcc, we currently assume that we are using 8246 # Microsoft Visual C++. 8247 if test "$GCC" != yes; then 8248 with_gnu_ld=no 8249 fi 8250 ;; 8251 interix*) 8252 # we just hope/assume this is gcc and not c89 (= MSVC++) 8253 with_gnu_ld=yes 8254 ;; 8255 openbsd*) 8256 with_gnu_ld=no 8257 ;; 8258 esac 8259 8260 ld_shlibs=yes 8261 8262 # On some targets, GNU ld is compatible enough with the native linker 8263 # that we're better off using the native interface for both. 8264 lt_use_gnu_ld_interface=no 8265 if test "$with_gnu_ld" = yes; then 8266 case $host_os in 8267 aix*) 8268 # The AIX port of GNU ld has always aspired to compatibility 8269 # with the native linker. However, as the warning in the GNU ld 8270 # block says, versions before 2.19.5* couldn't really create working 8271 # shared libraries, regardless of the interface used. 8272 case `$LD -v 2>&1` in 8273 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8274 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8275 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8276 *) 8277 lt_use_gnu_ld_interface=yes 8278 ;; 8279 esac 8280 ;; 8281 *) 8282 lt_use_gnu_ld_interface=yes 8283 ;; 8284 esac 8285 fi 8286 8287 if test "$lt_use_gnu_ld_interface" = yes; then 8288 # If archive_cmds runs LD, not CC, wlarc should be empty 8289 wlarc='${wl}' 8290 8291 # Set some defaults for GNU ld with shared library support. These 8292 # are reset later if shared libraries are not supported. Putting them 8293 # here allows them to be overridden if necessary. 8294 runpath_var=LD_RUN_PATH 8295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8296 export_dynamic_flag_spec='${wl}--export-dynamic' 8297 # ancient GNU ld didn't support --whole-archive et. al. 8298 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8299 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8300 else 8301 whole_archive_flag_spec= 8302 fi 8303 supports_anon_versioning=no 8304 case `$LD -v 2>&1` in 8305 *GNU\ gold*) supports_anon_versioning=yes ;; 8306 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8308 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8309 *\ 2.11.*) ;; # other 2.11 versions 8310 *) supports_anon_versioning=yes ;; 8311 esac 8312 8313 # See if GNU ld supports shared libraries. 8314 case $host_os in 8315 aix[3-9]*) 8316 # On AIX/PPC, the GNU linker is very broken 8317 if test "$host_cpu" != ia64; then 8318 ld_shlibs=no 8319 cat <<_LT_EOF 1>&2 8320 8321*** Warning: the GNU linker, at least up to release 2.19, is reported 8322*** to be unable to reliably create shared libraries on AIX. 8323*** Therefore, libtool is disabling shared libraries support. If you 8324*** really care for shared libraries, you may want to install binutils 8325*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8326*** You will then need to restart the configuration process. 8327 8328_LT_EOF 8329 fi 8330 ;; 8331 8332 amigaos*) 8333 case $host_cpu in 8334 powerpc) 8335 # see comment about AmigaOS4 .so support 8336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8337 archive_expsym_cmds='' 8338 ;; 8339 m68k) 8340 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)' 8341 hardcode_libdir_flag_spec='-L$libdir' 8342 hardcode_minus_L=yes 8343 ;; 8344 esac 8345 ;; 8346 8347 beos*) 8348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8349 allow_undefined_flag=unsupported 8350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8351 # support --undefined. This deserves some investigation. FIXME 8352 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8353 else 8354 ld_shlibs=no 8355 fi 8356 ;; 8357 8358 cygwin* | mingw* | pw32* | cegcc*) 8359 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8360 # as there is no search path for DLLs. 8361 hardcode_libdir_flag_spec='-L$libdir' 8362 export_dynamic_flag_spec='${wl}--export-all-symbols' 8363 allow_undefined_flag=unsupported 8364 always_export_symbols=no 8365 enable_shared_with_static_runtimes=yes 8366 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' 8367 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8368 8369 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8371 # If the export-symbols file already is a .def file (1st line 8372 # is EXPORTS), use it as is; otherwise, prepend... 8373 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8374 cp $export_symbols $output_objdir/$soname.def; 8375 else 8376 echo EXPORTS > $output_objdir/$soname.def; 8377 cat $export_symbols >> $output_objdir/$soname.def; 8378 fi~ 8379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8380 else 8381 ld_shlibs=no 8382 fi 8383 ;; 8384 8385 haiku*) 8386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8387 link_all_deplibs=yes 8388 ;; 8389 8390 interix[3-9]*) 8391 hardcode_direct=no 8392 hardcode_shlibpath_var=no 8393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8394 export_dynamic_flag_spec='${wl}-E' 8395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8396 # Instead, shared libraries are loaded at an image base (0x10000000 by 8397 # default) and relocated if they conflict, which is a slow very memory 8398 # consuming and fragmenting process. To avoid this, we pick a random, 8399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8400 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8402 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' 8403 ;; 8404 8405 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8406 tmp_diet=no 8407 if test "$host_os" = linux-dietlibc; then 8408 case $cc_basename in 8409 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8410 esac 8411 fi 8412 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8413 && test "$tmp_diet" = no 8414 then 8415 tmp_addflag=' $pic_flag' 8416 tmp_sharedflag='-shared' 8417 case $cc_basename,$host_cpu in 8418 pgcc*) # Portland Group C compiler 8419 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' 8420 tmp_addflag=' $pic_flag' 8421 ;; 8422 pgf77* | pgf90* | pgf95* | pgfortran*) 8423 # Portland Group f77 and f90 compilers 8424 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' 8425 tmp_addflag=' $pic_flag -Mnomain' ;; 8426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8427 tmp_addflag=' -i_dynamic' ;; 8428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8429 tmp_addflag=' -i_dynamic -nofor_main' ;; 8430 ifc* | ifort*) # Intel Fortran compiler 8431 tmp_addflag=' -nofor_main' ;; 8432 lf95*) # Lahey Fortran 8.1 8433 whole_archive_flag_spec= 8434 tmp_sharedflag='--shared' ;; 8435 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8436 tmp_sharedflag='-qmkshrobj' 8437 tmp_addflag= ;; 8438 nvcc*) # Cuda Compiler Driver 2.2 8439 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' 8440 compiler_needs_object=yes 8441 ;; 8442 esac 8443 case `$CC -V 2>&1 | sed 5q` in 8444 *Sun\ C*) # Sun C 5.9 8445 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' 8446 compiler_needs_object=yes 8447 tmp_sharedflag='-G' ;; 8448 *Sun\ F*) # Sun Fortran 8.3 8449 tmp_sharedflag='-G' ;; 8450 esac 8451 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8452 8453 if test "x$supports_anon_versioning" = xyes; then 8454 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8456 echo "local: *; };" >> $output_objdir/$libname.ver~ 8457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8458 fi 8459 8460 case $cc_basename in 8461 xlf* | bgf* | bgxlf* | mpixlf*) 8462 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8463 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8465 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8466 if test "x$supports_anon_versioning" = xyes; then 8467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8469 echo "local: *; };" >> $output_objdir/$libname.ver~ 8470 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8471 fi 8472 ;; 8473 esac 8474 else 8475 ld_shlibs=no 8476 fi 8477 ;; 8478 8479 netbsd*) 8480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8481 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8482 wlarc= 8483 else 8484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8486 fi 8487 ;; 8488 8489 solaris*) 8490 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8491 ld_shlibs=no 8492 cat <<_LT_EOF 1>&2 8493 8494*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8495*** create shared libraries on Solaris systems. Therefore, libtool 8496*** is disabling shared libraries support. We urge you to upgrade GNU 8497*** binutils to release 2.9.1 or newer. Another option is to modify 8498*** your PATH or compiler configuration so that the native linker is 8499*** used, and then restart. 8500 8501_LT_EOF 8502 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8505 else 8506 ld_shlibs=no 8507 fi 8508 ;; 8509 8510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8511 case `$LD -v 2>&1` in 8512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8513 ld_shlibs=no 8514 cat <<_LT_EOF 1>&2 8515 8516*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8517*** reliably create shared libraries on SCO systems. Therefore, libtool 8518*** is disabling shared libraries support. We urge you to upgrade GNU 8519*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8520*** your PATH or compiler configuration so that the native linker is 8521*** used, and then restart. 8522 8523_LT_EOF 8524 ;; 8525 *) 8526 # For security reasons, it is highly recommended that you always 8527 # use absolute paths for naming shared libraries, and exclude the 8528 # DT_RUNPATH tag from executables and libraries. But doing so 8529 # requires that you compile everything twice, which is a pain. 8530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8534 else 8535 ld_shlibs=no 8536 fi 8537 ;; 8538 esac 8539 ;; 8540 8541 sunos4*) 8542 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8543 wlarc= 8544 hardcode_direct=yes 8545 hardcode_shlibpath_var=no 8546 ;; 8547 8548 *) 8549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8551 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8552 else 8553 ld_shlibs=no 8554 fi 8555 ;; 8556 esac 8557 8558 if test "$ld_shlibs" = no; then 8559 runpath_var= 8560 hardcode_libdir_flag_spec= 8561 export_dynamic_flag_spec= 8562 whole_archive_flag_spec= 8563 fi 8564 else 8565 # PORTME fill in a description of your system's linker (not GNU ld) 8566 case $host_os in 8567 aix3*) 8568 allow_undefined_flag=unsupported 8569 always_export_symbols=yes 8570 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' 8571 # Note: this linker hardcodes the directories in LIBPATH if there 8572 # are no directories specified by -L. 8573 hardcode_minus_L=yes 8574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8575 # Neither direct hardcoding nor static linking is supported with a 8576 # broken collect2. 8577 hardcode_direct=unsupported 8578 fi 8579 ;; 8580 8581 aix[4-9]*) 8582 if test "$host_cpu" = ia64; then 8583 # On IA64, the linker does run time linking by default, so we don't 8584 # have to do anything special. 8585 aix_use_runtimelinking=no 8586 exp_sym_flag='-Bexport' 8587 no_entry_flag="" 8588 else 8589 # If we're using GNU nm, then we don't want the "-C" option. 8590 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8591 # Also, AIX nm treats weak defined symbols like other global 8592 # defined symbols, whereas GNU nm marks them as "W". 8593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8594 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8595 else 8596 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8597 fi 8598 aix_use_runtimelinking=no 8599 8600 # Test if we are trying to use run time linking or normal 8601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8602 # need to do runtime linking. 8603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8604 for ld_flag in $LDFLAGS; do 8605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8606 aix_use_runtimelinking=yes 8607 break 8608 fi 8609 done 8610 ;; 8611 esac 8612 8613 exp_sym_flag='-bexport' 8614 no_entry_flag='-bnoentry' 8615 fi 8616 8617 # When large executables or shared objects are built, AIX ld can 8618 # have problems creating the table of contents. If linking a library 8619 # or program results in "error TOC overflow" add -mminimal-toc to 8620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8622 8623 archive_cmds='' 8624 hardcode_direct=yes 8625 hardcode_direct_absolute=yes 8626 hardcode_libdir_separator=':' 8627 link_all_deplibs=yes 8628 file_list_spec='${wl}-f,' 8629 8630 if test "$GCC" = yes; then 8631 case $host_os in aix4.[012]|aix4.[012].*) 8632 # We only want to do this on AIX 4.2 and lower, the check 8633 # below for broken collect2 doesn't work under 4.3+ 8634 collect2name=`${CC} -print-prog-name=collect2` 8635 if test -f "$collect2name" && 8636 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8637 then 8638 # We have reworked collect2 8639 : 8640 else 8641 # We have old collect2 8642 hardcode_direct=unsupported 8643 # It fails to find uninstalled libraries when the uninstalled 8644 # path is not listed in the libpath. Setting hardcode_minus_L 8645 # to unsupported forces relinking 8646 hardcode_minus_L=yes 8647 hardcode_libdir_flag_spec='-L$libdir' 8648 hardcode_libdir_separator= 8649 fi 8650 ;; 8651 esac 8652 shared_flag='-shared' 8653 if test "$aix_use_runtimelinking" = yes; then 8654 shared_flag="$shared_flag "'${wl}-G' 8655 fi 8656 else 8657 # not using gcc 8658 if test "$host_cpu" = ia64; then 8659 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8660 # chokes on -Wl,-G. The following line is correct: 8661 shared_flag='-G' 8662 else 8663 if test "$aix_use_runtimelinking" = yes; then 8664 shared_flag='${wl}-G' 8665 else 8666 shared_flag='${wl}-bM:SRE' 8667 fi 8668 fi 8669 fi 8670 8671 export_dynamic_flag_spec='${wl}-bexpall' 8672 # It seems that -bexpall does not export symbols beginning with 8673 # underscore (_), so it is better to generate a list of symbols to export. 8674 always_export_symbols=yes 8675 if test "$aix_use_runtimelinking" = yes; then 8676 # Warning - without using the other runtime loading flags (-brtl), 8677 # -berok will link without error, but may produce a broken library. 8678 allow_undefined_flag='-berok' 8679 # Determine the default libpath from the value encoded in an 8680 # empty executable. 8681 if test "${lt_cv_aix_libpath+set}" = set; then 8682 aix_libpath=$lt_cv_aix_libpath 8683else 8684 if ${lt_cv_aix_libpath_+:} false; then : 8685 $as_echo_n "(cached) " >&6 8686else 8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8688/* end confdefs.h. */ 8689 8690int 8691main () 8692{ 8693 8694 ; 8695 return 0; 8696} 8697_ACEOF 8698if ac_fn_c_try_link "$LINENO"; then : 8699 8700 lt_aix_libpath_sed=' 8701 /Import File Strings/,/^$/ { 8702 /^0/ { 8703 s/^0 *\([^ ]*\) *$/\1/ 8704 p 8705 } 8706 }' 8707 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8708 # Check for a 64-bit object if we didn't find anything. 8709 if test -z "$lt_cv_aix_libpath_"; then 8710 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8711 fi 8712fi 8713rm -f core conftest.err conftest.$ac_objext \ 8714 conftest$ac_exeext conftest.$ac_ext 8715 if test -z "$lt_cv_aix_libpath_"; then 8716 lt_cv_aix_libpath_="/usr/lib:/lib" 8717 fi 8718 8719fi 8720 8721 aix_libpath=$lt_cv_aix_libpath_ 8722fi 8723 8724 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8725 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8726 else 8727 if test "$host_cpu" = ia64; then 8728 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8729 allow_undefined_flag="-z nodefs" 8730 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" 8731 else 8732 # Determine the default libpath from the value encoded in an 8733 # empty executable. 8734 if test "${lt_cv_aix_libpath+set}" = set; then 8735 aix_libpath=$lt_cv_aix_libpath 8736else 8737 if ${lt_cv_aix_libpath_+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739else 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742 8743int 8744main () 8745{ 8746 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751if ac_fn_c_try_link "$LINENO"; then : 8752 8753 lt_aix_libpath_sed=' 8754 /Import File Strings/,/^$/ { 8755 /^0/ { 8756 s/^0 *\([^ ]*\) *$/\1/ 8757 p 8758 } 8759 }' 8760 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8761 # Check for a 64-bit object if we didn't find anything. 8762 if test -z "$lt_cv_aix_libpath_"; then 8763 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8764 fi 8765fi 8766rm -f core conftest.err conftest.$ac_objext \ 8767 conftest$ac_exeext conftest.$ac_ext 8768 if test -z "$lt_cv_aix_libpath_"; then 8769 lt_cv_aix_libpath_="/usr/lib:/lib" 8770 fi 8771 8772fi 8773 8774 aix_libpath=$lt_cv_aix_libpath_ 8775fi 8776 8777 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8778 # Warning - without using the other run time loading flags, 8779 # -berok will link without error, but may produce a broken library. 8780 no_undefined_flag=' ${wl}-bernotok' 8781 allow_undefined_flag=' ${wl}-berok' 8782 if test "$with_gnu_ld" = yes; then 8783 # We only use this code for GNU lds that support --whole-archive. 8784 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8785 else 8786 # Exported symbols can be pulled into shared objects from archives 8787 whole_archive_flag_spec='$convenience' 8788 fi 8789 archive_cmds_need_lc=yes 8790 # This is similar to how AIX traditionally builds its shared libraries. 8791 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8792 fi 8793 fi 8794 ;; 8795 8796 amigaos*) 8797 case $host_cpu in 8798 powerpc) 8799 # see comment about AmigaOS4 .so support 8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8801 archive_expsym_cmds='' 8802 ;; 8803 m68k) 8804 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)' 8805 hardcode_libdir_flag_spec='-L$libdir' 8806 hardcode_minus_L=yes 8807 ;; 8808 esac 8809 ;; 8810 8811 bsdi[45]*) 8812 export_dynamic_flag_spec=-rdynamic 8813 ;; 8814 8815 cygwin* | mingw* | pw32* | cegcc*) 8816 # When not using gcc, we currently assume that we are using 8817 # Microsoft Visual C++. 8818 # hardcode_libdir_flag_spec is actually meaningless, as there is 8819 # no search path for DLLs. 8820 case $cc_basename in 8821 cl*) 8822 # Native MSVC 8823 hardcode_libdir_flag_spec=' ' 8824 allow_undefined_flag=unsupported 8825 always_export_symbols=yes 8826 file_list_spec='@' 8827 # Tell ltmain to make .lib files, not .a files. 8828 libext=lib 8829 # Tell ltmain to make .dll files, not .so files. 8830 shrext_cmds=".dll" 8831 # FIXME: Setting linknames here is a bad hack. 8832 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 8833 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8834 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 8835 else 8836 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 8837 fi~ 8838 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8839 linknames=' 8840 # The linker will not automatically build a static lib if we build a DLL. 8841 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 8842 enable_shared_with_static_runtimes=yes 8843 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8845 # Don't use ranlib 8846 old_postinstall_cmds='chmod 644 $oldlib' 8847 postlink_cmds='lt_outputfile="@OUTPUT@"~ 8848 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8849 case $lt_outputfile in 8850 *.exe|*.EXE) ;; 8851 *) 8852 lt_outputfile="$lt_outputfile.exe" 8853 lt_tool_outputfile="$lt_tool_outputfile.exe" 8854 ;; 8855 esac~ 8856 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 8857 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8858 $RM "$lt_outputfile.manifest"; 8859 fi' 8860 ;; 8861 *) 8862 # Assume MSVC wrapper 8863 hardcode_libdir_flag_spec=' ' 8864 allow_undefined_flag=unsupported 8865 # Tell ltmain to make .lib files, not .a files. 8866 libext=lib 8867 # Tell ltmain to make .dll files, not .so files. 8868 shrext_cmds=".dll" 8869 # FIXME: Setting linknames here is a bad hack. 8870 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8871 # The linker will automatically build a .lib file if we build a DLL. 8872 old_archive_from_new_cmds='true' 8873 # FIXME: Should let the user specify the lib program. 8874 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8875 enable_shared_with_static_runtimes=yes 8876 ;; 8877 esac 8878 ;; 8879 8880 darwin* | rhapsody*) 8881 8882 8883 archive_cmds_need_lc=no 8884 hardcode_direct=no 8885 hardcode_automatic=yes 8886 hardcode_shlibpath_var=unsupported 8887 if test "$lt_cv_ld_force_load" = "yes"; then 8888 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\"`' 8889 8890 else 8891 whole_archive_flag_spec='' 8892 fi 8893 link_all_deplibs=yes 8894 allow_undefined_flag="$_lt_dar_allow_undefined" 8895 case $cc_basename in 8896 ifort*) _lt_dar_can_shared=yes ;; 8897 *) _lt_dar_can_shared=$GCC ;; 8898 esac 8899 if test "$_lt_dar_can_shared" = "yes"; then 8900 output_verbose_link_cmd=func_echo_all 8901 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8902 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8903 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}" 8904 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}" 8905 8906 else 8907 ld_shlibs=no 8908 fi 8909 8910 ;; 8911 8912 dgux*) 8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8914 hardcode_libdir_flag_spec='-L$libdir' 8915 hardcode_shlibpath_var=no 8916 ;; 8917 8918 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8919 # support. Future versions do this automatically, but an explicit c++rt0.o 8920 # does not break anything, and helps significantly (at the cost of a little 8921 # extra space). 8922 freebsd2.2*) 8923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8924 hardcode_libdir_flag_spec='-R$libdir' 8925 hardcode_direct=yes 8926 hardcode_shlibpath_var=no 8927 ;; 8928 8929 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8930 freebsd2.*) 8931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8932 hardcode_direct=yes 8933 hardcode_minus_L=yes 8934 hardcode_shlibpath_var=no 8935 ;; 8936 8937 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8938 freebsd* | dragonfly*) 8939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8940 hardcode_libdir_flag_spec='-R$libdir' 8941 hardcode_direct=yes 8942 hardcode_shlibpath_var=no 8943 ;; 8944 8945 hpux9*) 8946 if test "$GCC" = yes; then 8947 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8948 else 8949 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8950 fi 8951 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8952 hardcode_libdir_separator=: 8953 hardcode_direct=yes 8954 8955 # hardcode_minus_L: Not really in the search PATH, 8956 # but as the default location of the library. 8957 hardcode_minus_L=yes 8958 export_dynamic_flag_spec='${wl}-E' 8959 ;; 8960 8961 hpux10*) 8962 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8963 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8964 else 8965 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8966 fi 8967 if test "$with_gnu_ld" = no; then 8968 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8969 hardcode_libdir_separator=: 8970 hardcode_direct=yes 8971 hardcode_direct_absolute=yes 8972 export_dynamic_flag_spec='${wl}-E' 8973 # hardcode_minus_L: Not really in the search PATH, 8974 # but as the default location of the library. 8975 hardcode_minus_L=yes 8976 fi 8977 ;; 8978 8979 hpux11*) 8980 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8981 case $host_cpu in 8982 hppa*64*) 8983 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8984 ;; 8985 ia64*) 8986 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8987 ;; 8988 *) 8989 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8990 ;; 8991 esac 8992 else 8993 case $host_cpu in 8994 hppa*64*) 8995 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8996 ;; 8997 ia64*) 8998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8999 ;; 9000 *) 9001 9002 # Older versions of the 11.00 compiler do not understand -b yet 9003 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9005$as_echo_n "checking if $CC understands -b... " >&6; } 9006if ${lt_cv_prog_compiler__b+:} false; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 lt_cv_prog_compiler__b=no 9010 save_LDFLAGS="$LDFLAGS" 9011 LDFLAGS="$LDFLAGS -b" 9012 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9013 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9014 # The linker can only warn and ignore the option if not recognized 9015 # So say no if there are warnings 9016 if test -s conftest.err; then 9017 # Append any errors to the config.log. 9018 cat conftest.err 1>&5 9019 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9021 if diff conftest.exp conftest.er2 >/dev/null; then 9022 lt_cv_prog_compiler__b=yes 9023 fi 9024 else 9025 lt_cv_prog_compiler__b=yes 9026 fi 9027 fi 9028 $RM -r conftest* 9029 LDFLAGS="$save_LDFLAGS" 9030 9031fi 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9033$as_echo "$lt_cv_prog_compiler__b" >&6; } 9034 9035if test x"$lt_cv_prog_compiler__b" = xyes; then 9036 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9037else 9038 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9039fi 9040 9041 ;; 9042 esac 9043 fi 9044 if test "$with_gnu_ld" = no; then 9045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9046 hardcode_libdir_separator=: 9047 9048 case $host_cpu in 9049 hppa*64*|ia64*) 9050 hardcode_direct=no 9051 hardcode_shlibpath_var=no 9052 ;; 9053 *) 9054 hardcode_direct=yes 9055 hardcode_direct_absolute=yes 9056 export_dynamic_flag_spec='${wl}-E' 9057 9058 # hardcode_minus_L: Not really in the search PATH, 9059 # but as the default location of the library. 9060 hardcode_minus_L=yes 9061 ;; 9062 esac 9063 fi 9064 ;; 9065 9066 irix5* | irix6* | nonstopux*) 9067 if test "$GCC" = yes; then 9068 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' 9069 # Try to use the -exported_symbol ld option, if it does not 9070 # work, assume that -exports_file does not work either and 9071 # implicitly export all symbols. 9072 # This should be the same for all languages, so no per-tag cache variable. 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9074$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9075if ${lt_cv_irix_exported_symbol+:} false; then : 9076 $as_echo_n "(cached) " >&6 9077else 9078 save_LDFLAGS="$LDFLAGS" 9079 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082int foo (void) { return 0; } 9083_ACEOF 9084if ac_fn_c_try_link "$LINENO"; then : 9085 lt_cv_irix_exported_symbol=yes 9086else 9087 lt_cv_irix_exported_symbol=no 9088fi 9089rm -f core conftest.err conftest.$ac_objext \ 9090 conftest$ac_exeext conftest.$ac_ext 9091 LDFLAGS="$save_LDFLAGS" 9092fi 9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9094$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9095 if test "$lt_cv_irix_exported_symbol" = yes; then 9096 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' 9097 fi 9098 else 9099 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' 9100 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' 9101 fi 9102 archive_cmds_need_lc='no' 9103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9104 hardcode_libdir_separator=: 9105 inherit_rpath=yes 9106 link_all_deplibs=yes 9107 ;; 9108 9109 netbsd*) 9110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9112 else 9113 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9114 fi 9115 hardcode_libdir_flag_spec='-R$libdir' 9116 hardcode_direct=yes 9117 hardcode_shlibpath_var=no 9118 ;; 9119 9120 newsos6) 9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9122 hardcode_direct=yes 9123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9124 hardcode_libdir_separator=: 9125 hardcode_shlibpath_var=no 9126 ;; 9127 9128 *nto* | *qnx*) 9129 ;; 9130 9131 openbsd*) 9132 if test -f /usr/libexec/ld.so; then 9133 hardcode_direct=yes 9134 hardcode_shlibpath_var=no 9135 hardcode_direct_absolute=yes 9136 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9138 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9139 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9140 export_dynamic_flag_spec='${wl}-E' 9141 else 9142 case $host_os in 9143 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9145 hardcode_libdir_flag_spec='-R$libdir' 9146 ;; 9147 *) 9148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9150 ;; 9151 esac 9152 fi 9153 else 9154 ld_shlibs=no 9155 fi 9156 ;; 9157 9158 os2*) 9159 hardcode_libdir_flag_spec='-L$libdir' 9160 hardcode_minus_L=yes 9161 allow_undefined_flag=unsupported 9162 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9163 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9164 ;; 9165 9166 osf3*) 9167 if test "$GCC" = yes; then 9168 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9169 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' 9170 else 9171 allow_undefined_flag=' -expect_unresolved \*' 9172 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' 9173 fi 9174 archive_cmds_need_lc='no' 9175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9176 hardcode_libdir_separator=: 9177 ;; 9178 9179 osf4* | osf5*) # as osf3* with the addition of -msym flag 9180 if test "$GCC" = yes; then 9181 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9182 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' 9183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9184 else 9185 allow_undefined_flag=' -expect_unresolved \*' 9186 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' 9187 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~ 9188 $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' 9189 9190 # Both c and cxx compiler support -rpath directly 9191 hardcode_libdir_flag_spec='-rpath $libdir' 9192 fi 9193 archive_cmds_need_lc='no' 9194 hardcode_libdir_separator=: 9195 ;; 9196 9197 solaris*) 9198 no_undefined_flag=' -z defs' 9199 if test "$GCC" = yes; then 9200 wlarc='${wl}' 9201 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9202 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9203 $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' 9204 else 9205 case `$CC -V 2>&1` in 9206 *"Compilers 5.0"*) 9207 wlarc='' 9208 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9210 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9211 ;; 9212 *) 9213 wlarc='${wl}' 9214 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9215 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9216 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9217 ;; 9218 esac 9219 fi 9220 hardcode_libdir_flag_spec='-R$libdir' 9221 hardcode_shlibpath_var=no 9222 case $host_os in 9223 solaris2.[0-5] | solaris2.[0-5].*) ;; 9224 *) 9225 # The compiler driver will combine and reorder linker options, 9226 # but understands `-z linker_flag'. GCC discards it without `$wl', 9227 # but is careful enough not to reorder. 9228 # Supported since Solaris 2.6 (maybe 2.5.1?) 9229 if test "$GCC" = yes; then 9230 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9231 else 9232 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9233 fi 9234 ;; 9235 esac 9236 link_all_deplibs=yes 9237 ;; 9238 9239 sunos4*) 9240 if test "x$host_vendor" = xsequent; then 9241 # Use $CC to link under sequent, because it throws in some extra .o 9242 # files that make .init and .fini sections work. 9243 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9244 else 9245 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9246 fi 9247 hardcode_libdir_flag_spec='-L$libdir' 9248 hardcode_direct=yes 9249 hardcode_minus_L=yes 9250 hardcode_shlibpath_var=no 9251 ;; 9252 9253 sysv4) 9254 case $host_vendor in 9255 sni) 9256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9257 hardcode_direct=yes # is this really true??? 9258 ;; 9259 siemens) 9260 ## LD is ld it makes a PLAMLIB 9261 ## CC just makes a GrossModule. 9262 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9263 reload_cmds='$CC -r -o $output$reload_objs' 9264 hardcode_direct=no 9265 ;; 9266 motorola) 9267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9268 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9269 ;; 9270 esac 9271 runpath_var='LD_RUN_PATH' 9272 hardcode_shlibpath_var=no 9273 ;; 9274 9275 sysv4.3*) 9276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9277 hardcode_shlibpath_var=no 9278 export_dynamic_flag_spec='-Bexport' 9279 ;; 9280 9281 sysv4*MP*) 9282 if test -d /usr/nec; then 9283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9284 hardcode_shlibpath_var=no 9285 runpath_var=LD_RUN_PATH 9286 hardcode_runpath_var=yes 9287 ld_shlibs=yes 9288 fi 9289 ;; 9290 9291 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9292 no_undefined_flag='${wl}-z,text' 9293 archive_cmds_need_lc=no 9294 hardcode_shlibpath_var=no 9295 runpath_var='LD_RUN_PATH' 9296 9297 if test "$GCC" = yes; then 9298 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9299 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9300 else 9301 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9302 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9303 fi 9304 ;; 9305 9306 sysv5* | sco3.2v5* | sco5v6*) 9307 # Note: We can NOT use -z defs as we might desire, because we do not 9308 # link with -lc, and that would cause any symbols used from libc to 9309 # always be unresolved, which means just about no library would 9310 # ever link correctly. If we're not using GNU ld we use -z text 9311 # though, which does catch some bad symbols but isn't as heavy-handed 9312 # as -z defs. 9313 no_undefined_flag='${wl}-z,text' 9314 allow_undefined_flag='${wl}-z,nodefs' 9315 archive_cmds_need_lc=no 9316 hardcode_shlibpath_var=no 9317 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9318 hardcode_libdir_separator=':' 9319 link_all_deplibs=yes 9320 export_dynamic_flag_spec='${wl}-Bexport' 9321 runpath_var='LD_RUN_PATH' 9322 9323 if test "$GCC" = yes; then 9324 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9325 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9326 else 9327 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9328 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9329 fi 9330 ;; 9331 9332 uts4*) 9333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9334 hardcode_libdir_flag_spec='-L$libdir' 9335 hardcode_shlibpath_var=no 9336 ;; 9337 9338 *) 9339 ld_shlibs=no 9340 ;; 9341 esac 9342 9343 if test x$host_vendor = xsni; then 9344 case $host in 9345 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9346 export_dynamic_flag_spec='${wl}-Blargedynsym' 9347 ;; 9348 esac 9349 fi 9350 fi 9351 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9353$as_echo "$ld_shlibs" >&6; } 9354test "$ld_shlibs" = no && can_build_shared=no 9355 9356with_gnu_ld=$with_gnu_ld 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372# 9373# Do we need to explicitly link libc? 9374# 9375case "x$archive_cmds_need_lc" in 9376x|xyes) 9377 # Assume -lc should be added 9378 archive_cmds_need_lc=yes 9379 9380 if test "$enable_shared" = yes && test "$GCC" = yes; then 9381 case $archive_cmds in 9382 *'~'*) 9383 # FIXME: we may have to deal with multi-command sequences. 9384 ;; 9385 '$CC '*) 9386 # Test whether the compiler implicitly links with -lc since on some 9387 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9388 # to ld, don't add -lc before -lgcc. 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9390$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9391if ${lt_cv_archive_cmds_need_lc+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 $RM conftest* 9395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9396 9397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9398 (eval $ac_compile) 2>&5 9399 ac_status=$? 9400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9401 test $ac_status = 0; } 2>conftest.err; then 9402 soname=conftest 9403 lib=conftest 9404 libobjs=conftest.$ac_objext 9405 deplibs= 9406 wl=$lt_prog_compiler_wl 9407 pic_flag=$lt_prog_compiler_pic 9408 compiler_flags=-v 9409 linker_flags=-v 9410 verstring= 9411 output_objdir=. 9412 libname=conftest 9413 lt_save_allow_undefined_flag=$allow_undefined_flag 9414 allow_undefined_flag= 9415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9416 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9417 ac_status=$? 9418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9419 test $ac_status = 0; } 9420 then 9421 lt_cv_archive_cmds_need_lc=no 9422 else 9423 lt_cv_archive_cmds_need_lc=yes 9424 fi 9425 allow_undefined_flag=$lt_save_allow_undefined_flag 9426 else 9427 cat conftest.err 1>&5 9428 fi 9429 $RM conftest* 9430 9431fi 9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9433$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9434 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9435 ;; 9436 esac 9437 fi 9438 ;; 9439esac 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9593$as_echo_n "checking dynamic linker characteristics... " >&6; } 9594 9595if test "$GCC" = yes; then 9596 case $host_os in 9597 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9598 *) lt_awk_arg="/^libraries:/" ;; 9599 esac 9600 case $host_os in 9601 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9602 *) lt_sed_strip_eq="s,=/,/,g" ;; 9603 esac 9604 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9605 case $lt_search_path_spec in 9606 *\;*) 9607 # if the path contains ";" then we assume it to be the separator 9608 # otherwise default to the standard path separator (i.e. ":") - it is 9609 # assumed that no part of a normal pathname contains ";" but that should 9610 # okay in the real world where ";" in dirpaths is itself problematic. 9611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9612 ;; 9613 *) 9614 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9615 ;; 9616 esac 9617 # Ok, now we have the path, separated by spaces, we can step through it 9618 # and add multilib dir if necessary. 9619 lt_tmp_lt_search_path_spec= 9620 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9621 for lt_sys_path in $lt_search_path_spec; do 9622 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9624 else 9625 test -d "$lt_sys_path" && \ 9626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9627 fi 9628 done 9629 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9630BEGIN {RS=" "; FS="/|\n";} { 9631 lt_foo=""; 9632 lt_count=0; 9633 for (lt_i = NF; lt_i > 0; lt_i--) { 9634 if ($lt_i != "" && $lt_i != ".") { 9635 if ($lt_i == "..") { 9636 lt_count++; 9637 } else { 9638 if (lt_count == 0) { 9639 lt_foo="/" $lt_i lt_foo; 9640 } else { 9641 lt_count--; 9642 } 9643 } 9644 } 9645 } 9646 if (lt_foo != "") { lt_freq[lt_foo]++; } 9647 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9648}'` 9649 # AWK program above erroneously prepends '/' to C:/dos/paths 9650 # for these hosts. 9651 case $host_os in 9652 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9653 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9654 esac 9655 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9656else 9657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9658fi 9659library_names_spec= 9660libname_spec='lib$name' 9661soname_spec= 9662shrext_cmds=".so" 9663postinstall_cmds= 9664postuninstall_cmds= 9665finish_cmds= 9666finish_eval= 9667shlibpath_var= 9668shlibpath_overrides_runpath=unknown 9669version_type=none 9670dynamic_linker="$host_os ld.so" 9671sys_lib_dlsearch_path_spec="/lib /usr/lib" 9672need_lib_prefix=unknown 9673hardcode_into_libs=no 9674 9675# when you set need_version to no, make sure it does not cause -set_version 9676# flags to be left without arguments 9677need_version=unknown 9678 9679case $host_os in 9680aix3*) 9681 version_type=linux # correct to gnu/linux during the next big refactor 9682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9683 shlibpath_var=LIBPATH 9684 9685 # AIX 3 has no versioning support, so we append a major version to the name. 9686 soname_spec='${libname}${release}${shared_ext}$major' 9687 ;; 9688 9689aix[4-9]*) 9690 version_type=linux # correct to gnu/linux during the next big refactor 9691 need_lib_prefix=no 9692 need_version=no 9693 hardcode_into_libs=yes 9694 if test "$host_cpu" = ia64; then 9695 # AIX 5 supports IA64 9696 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9697 shlibpath_var=LD_LIBRARY_PATH 9698 else 9699 # With GCC up to 2.95.x, collect2 would create an import file 9700 # for dependence libraries. The import file would start with 9701 # the line `#! .'. This would cause the generated library to 9702 # depend on `.', always an invalid library. This was fixed in 9703 # development snapshots of GCC prior to 3.0. 9704 case $host_os in 9705 aix4 | aix4.[01] | aix4.[01].*) 9706 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9707 echo ' yes ' 9708 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9709 : 9710 else 9711 can_build_shared=no 9712 fi 9713 ;; 9714 esac 9715 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9716 # soname into executable. Probably we can add versioning support to 9717 # collect2, so additional links can be useful in future. 9718 if test "$aix_use_runtimelinking" = yes; then 9719 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9720 # instead of lib<name>.a to let people know that these are not 9721 # typical AIX shared libraries. 9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9723 else 9724 # We preserve .a as extension for shared libraries through AIX4.2 9725 # and later when we are not doing run time linking. 9726 library_names_spec='${libname}${release}.a $libname.a' 9727 soname_spec='${libname}${release}${shared_ext}$major' 9728 fi 9729 shlibpath_var=LIBPATH 9730 fi 9731 ;; 9732 9733amigaos*) 9734 case $host_cpu in 9735 powerpc) 9736 # Since July 2007 AmigaOS4 officially supports .so libraries. 9737 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9739 ;; 9740 m68k) 9741 library_names_spec='$libname.ixlibrary $libname.a' 9742 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9743 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9744 ;; 9745 esac 9746 ;; 9747 9748beos*) 9749 library_names_spec='${libname}${shared_ext}' 9750 dynamic_linker="$host_os ld.so" 9751 shlibpath_var=LIBRARY_PATH 9752 ;; 9753 9754bsdi[45]*) 9755 version_type=linux # correct to gnu/linux during the next big refactor 9756 need_version=no 9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9758 soname_spec='${libname}${release}${shared_ext}$major' 9759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9760 shlibpath_var=LD_LIBRARY_PATH 9761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9763 # the default ld.so.conf also contains /usr/contrib/lib and 9764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9765 # libtool to hard-code these into programs 9766 ;; 9767 9768cygwin* | mingw* | pw32* | cegcc*) 9769 version_type=windows 9770 shrext_cmds=".dll" 9771 need_version=no 9772 need_lib_prefix=no 9773 9774 case $GCC,$cc_basename in 9775 yes,*) 9776 # gcc 9777 library_names_spec='$libname.dll.a' 9778 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9779 postinstall_cmds='base_file=`basename \${file}`~ 9780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9781 dldir=$destdir/`dirname \$dlpath`~ 9782 test -d \$dldir || mkdir -p \$dldir~ 9783 $install_prog $dir/$dlname \$dldir/$dlname~ 9784 chmod a+x \$dldir/$dlname~ 9785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9787 fi' 9788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9789 dlpath=$dir/\$dldll~ 9790 $RM \$dlpath' 9791 shlibpath_overrides_runpath=yes 9792 9793 case $host_os in 9794 cygwin*) 9795 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9796 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9797 9798 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9799 ;; 9800 mingw* | cegcc*) 9801 # MinGW DLLs use traditional 'lib' prefix 9802 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9803 ;; 9804 pw32*) 9805 # pw32 DLLs use 'pw' prefix rather than 'lib' 9806 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9807 ;; 9808 esac 9809 dynamic_linker='Win32 ld.exe' 9810 ;; 9811 9812 *,cl*) 9813 # Native MSVC 9814 libname_spec='$name' 9815 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9816 library_names_spec='${libname}.dll.lib' 9817 9818 case $build_os in 9819 mingw*) 9820 sys_lib_search_path_spec= 9821 lt_save_ifs=$IFS 9822 IFS=';' 9823 for lt_path in $LIB 9824 do 9825 IFS=$lt_save_ifs 9826 # Let DOS variable expansion print the short 8.3 style file name. 9827 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 9828 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 9829 done 9830 IFS=$lt_save_ifs 9831 # Convert to MSYS style. 9832 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 9833 ;; 9834 cygwin*) 9835 # Convert to unix form, then to dos form, then back to unix form 9836 # but this time dos style (no spaces!) so that the unix form looks 9837 # like /cygdrive/c/PROGRA~1:/cygdr... 9838 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 9839 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 9840 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9841 ;; 9842 *) 9843 sys_lib_search_path_spec="$LIB" 9844 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9845 # It is most probably a Windows format PATH. 9846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9847 else 9848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9849 fi 9850 # FIXME: find the short name or the path components, as spaces are 9851 # common. (e.g. "Program Files" -> "PROGRA~1") 9852 ;; 9853 esac 9854 9855 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9856 postinstall_cmds='base_file=`basename \${file}`~ 9857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9858 dldir=$destdir/`dirname \$dlpath`~ 9859 test -d \$dldir || mkdir -p \$dldir~ 9860 $install_prog $dir/$dlname \$dldir/$dlname' 9861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9862 dlpath=$dir/\$dldll~ 9863 $RM \$dlpath' 9864 shlibpath_overrides_runpath=yes 9865 dynamic_linker='Win32 link.exe' 9866 ;; 9867 9868 *) 9869 # Assume MSVC wrapper 9870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9871 dynamic_linker='Win32 ld.exe' 9872 ;; 9873 esac 9874 # FIXME: first we should search . and the directory the executable is in 9875 shlibpath_var=PATH 9876 ;; 9877 9878darwin* | rhapsody*) 9879 dynamic_linker="$host_os dyld" 9880 version_type=darwin 9881 need_lib_prefix=no 9882 need_version=no 9883 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9884 soname_spec='${libname}${release}${major}$shared_ext' 9885 shlibpath_overrides_runpath=yes 9886 shlibpath_var=DYLD_LIBRARY_PATH 9887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9888 9889 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9891 ;; 9892 9893dgux*) 9894 version_type=linux # correct to gnu/linux during the next big refactor 9895 need_lib_prefix=no 9896 need_version=no 9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9898 soname_spec='${libname}${release}${shared_ext}$major' 9899 shlibpath_var=LD_LIBRARY_PATH 9900 ;; 9901 9902freebsd* | dragonfly*) 9903 # DragonFly does not have aout. When/if they implement a new 9904 # versioning mechanism, adjust this. 9905 if test -x /usr/bin/objformat; then 9906 objformat=`/usr/bin/objformat` 9907 else 9908 case $host_os in 9909 freebsd[23].*) objformat=aout ;; 9910 *) objformat=elf ;; 9911 esac 9912 fi 9913 version_type=freebsd-$objformat 9914 case $version_type in 9915 freebsd-elf*) 9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9917 need_version=no 9918 need_lib_prefix=no 9919 ;; 9920 freebsd-*) 9921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9922 need_version=yes 9923 ;; 9924 esac 9925 shlibpath_var=LD_LIBRARY_PATH 9926 case $host_os in 9927 freebsd2.*) 9928 shlibpath_overrides_runpath=yes 9929 ;; 9930 freebsd3.[01]* | freebsdelf3.[01]*) 9931 shlibpath_overrides_runpath=yes 9932 hardcode_into_libs=yes 9933 ;; 9934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9936 shlibpath_overrides_runpath=no 9937 hardcode_into_libs=yes 9938 ;; 9939 *) # from 4.6 on, and DragonFly 9940 shlibpath_overrides_runpath=yes 9941 hardcode_into_libs=yes 9942 ;; 9943 esac 9944 ;; 9945 9946gnu*) 9947 version_type=linux # correct to gnu/linux during the next big refactor 9948 need_lib_prefix=no 9949 need_version=no 9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9951 soname_spec='${libname}${release}${shared_ext}$major' 9952 shlibpath_var=LD_LIBRARY_PATH 9953 shlibpath_overrides_runpath=no 9954 hardcode_into_libs=yes 9955 ;; 9956 9957haiku*) 9958 version_type=linux # correct to gnu/linux during the next big refactor 9959 need_lib_prefix=no 9960 need_version=no 9961 dynamic_linker="$host_os runtime_loader" 9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9963 soname_spec='${libname}${release}${shared_ext}$major' 9964 shlibpath_var=LIBRARY_PATH 9965 shlibpath_overrides_runpath=yes 9966 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9967 hardcode_into_libs=yes 9968 ;; 9969 9970hpux9* | hpux10* | hpux11*) 9971 # Give a soname corresponding to the major version so that dld.sl refuses to 9972 # link against other versions. 9973 version_type=sunos 9974 need_lib_prefix=no 9975 need_version=no 9976 case $host_cpu in 9977 ia64*) 9978 shrext_cmds='.so' 9979 hardcode_into_libs=yes 9980 dynamic_linker="$host_os dld.so" 9981 shlibpath_var=LD_LIBRARY_PATH 9982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9984 soname_spec='${libname}${release}${shared_ext}$major' 9985 if test "X$HPUX_IA64_MODE" = X32; then 9986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9987 else 9988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9989 fi 9990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9991 ;; 9992 hppa*64*) 9993 shrext_cmds='.sl' 9994 hardcode_into_libs=yes 9995 dynamic_linker="$host_os dld.sl" 9996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9999 soname_spec='${libname}${release}${shared_ext}$major' 10000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10002 ;; 10003 *) 10004 shrext_cmds='.sl' 10005 dynamic_linker="$host_os dld.sl" 10006 shlibpath_var=SHLIB_PATH 10007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10009 soname_spec='${libname}${release}${shared_ext}$major' 10010 ;; 10011 esac 10012 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10013 postinstall_cmds='chmod 555 $lib' 10014 # or fails outright, so override atomically: 10015 install_override_mode=555 10016 ;; 10017 10018interix[3-9]*) 10019 version_type=linux # correct to gnu/linux during the next big refactor 10020 need_lib_prefix=no 10021 need_version=no 10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10023 soname_spec='${libname}${release}${shared_ext}$major' 10024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10025 shlibpath_var=LD_LIBRARY_PATH 10026 shlibpath_overrides_runpath=no 10027 hardcode_into_libs=yes 10028 ;; 10029 10030irix5* | irix6* | nonstopux*) 10031 case $host_os in 10032 nonstopux*) version_type=nonstopux ;; 10033 *) 10034 if test "$lt_cv_prog_gnu_ld" = yes; then 10035 version_type=linux # correct to gnu/linux during the next big refactor 10036 else 10037 version_type=irix 10038 fi ;; 10039 esac 10040 need_lib_prefix=no 10041 need_version=no 10042 soname_spec='${libname}${release}${shared_ext}$major' 10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10044 case $host_os in 10045 irix5* | nonstopux*) 10046 libsuff= shlibsuff= 10047 ;; 10048 *) 10049 case $LD in # libtool.m4 will add one of these switches to LD 10050 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10051 libsuff= shlibsuff= libmagic=32-bit;; 10052 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10053 libsuff=32 shlibsuff=N32 libmagic=N32;; 10054 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10055 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10056 *) libsuff= shlibsuff= libmagic=never-match;; 10057 esac 10058 ;; 10059 esac 10060 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10061 shlibpath_overrides_runpath=no 10062 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10063 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10064 hardcode_into_libs=yes 10065 ;; 10066 10067# No shared lib support for Linux oldld, aout, or coff. 10068linux*oldld* | linux*aout* | linux*coff*) 10069 dynamic_linker=no 10070 ;; 10071 10072# This must be glibc/ELF. 10073linux* | k*bsd*-gnu | kopensolaris*-gnu) 10074 version_type=linux # correct to gnu/linux during the next big refactor 10075 need_lib_prefix=no 10076 need_version=no 10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10078 soname_spec='${libname}${release}${shared_ext}$major' 10079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10080 shlibpath_var=LD_LIBRARY_PATH 10081 shlibpath_overrides_runpath=no 10082 10083 # Some binutils ld are patched to set DT_RUNPATH 10084 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10085 $as_echo_n "(cached) " >&6 10086else 10087 lt_cv_shlibpath_overrides_runpath=no 10088 save_LDFLAGS=$LDFLAGS 10089 save_libdir=$libdir 10090 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10091 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094 10095int 10096main () 10097{ 10098 10099 ; 10100 return 0; 10101} 10102_ACEOF 10103if ac_fn_c_try_link "$LINENO"; then : 10104 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10105 lt_cv_shlibpath_overrides_runpath=yes 10106fi 10107fi 10108rm -f core conftest.err conftest.$ac_objext \ 10109 conftest$ac_exeext conftest.$ac_ext 10110 LDFLAGS=$save_LDFLAGS 10111 libdir=$save_libdir 10112 10113fi 10114 10115 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10116 10117 # This implies no fast_install, which is unacceptable. 10118 # Some rework will be needed to allow for fast_install 10119 # before this can be enabled. 10120 hardcode_into_libs=yes 10121 10122 # Append ld.so.conf contents to the search path 10123 if test -f /etc/ld.so.conf; then 10124 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' ' '` 10125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10126 fi 10127 10128 # We used to test for /lib/ld.so.1 and disable shared libraries on 10129 # powerpc, because MkLinux only supported shared libraries with the 10130 # GNU dynamic linker. Since this was broken with cross compilers, 10131 # most powerpc-linux boxes support dynamic linking these days and 10132 # people can always --disable-shared, the test was removed, and we 10133 # assume the GNU/Linux dynamic linker is in use. 10134 dynamic_linker='GNU/Linux ld.so' 10135 ;; 10136 10137netbsd*) 10138 version_type=sunos 10139 need_lib_prefix=no 10140 need_version=no 10141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10144 dynamic_linker='NetBSD (a.out) ld.so' 10145 else 10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10147 soname_spec='${libname}${release}${shared_ext}$major' 10148 dynamic_linker='NetBSD ld.elf_so' 10149 fi 10150 shlibpath_var=LD_LIBRARY_PATH 10151 shlibpath_overrides_runpath=yes 10152 hardcode_into_libs=yes 10153 ;; 10154 10155newsos6) 10156 version_type=linux # correct to gnu/linux during the next big refactor 10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10158 shlibpath_var=LD_LIBRARY_PATH 10159 shlibpath_overrides_runpath=yes 10160 ;; 10161 10162*nto* | *qnx*) 10163 version_type=qnx 10164 need_lib_prefix=no 10165 need_version=no 10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10167 soname_spec='${libname}${release}${shared_ext}$major' 10168 shlibpath_var=LD_LIBRARY_PATH 10169 shlibpath_overrides_runpath=no 10170 hardcode_into_libs=yes 10171 dynamic_linker='ldqnx.so' 10172 ;; 10173 10174openbsd*) 10175 version_type=sunos 10176 sys_lib_dlsearch_path_spec="/usr/lib" 10177 need_lib_prefix=no 10178 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10179 case $host_os in 10180 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10181 *) need_version=no ;; 10182 esac 10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10185 shlibpath_var=LD_LIBRARY_PATH 10186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10187 case $host_os in 10188 openbsd2.[89] | openbsd2.[89].*) 10189 shlibpath_overrides_runpath=no 10190 ;; 10191 *) 10192 shlibpath_overrides_runpath=yes 10193 ;; 10194 esac 10195 else 10196 shlibpath_overrides_runpath=yes 10197 fi 10198 ;; 10199 10200os2*) 10201 libname_spec='$name' 10202 shrext_cmds=".dll" 10203 need_lib_prefix=no 10204 library_names_spec='$libname${shared_ext} $libname.a' 10205 dynamic_linker='OS/2 ld.exe' 10206 shlibpath_var=LIBPATH 10207 ;; 10208 10209osf3* | osf4* | osf5*) 10210 version_type=osf 10211 need_lib_prefix=no 10212 need_version=no 10213 soname_spec='${libname}${release}${shared_ext}$major' 10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10215 shlibpath_var=LD_LIBRARY_PATH 10216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10218 ;; 10219 10220rdos*) 10221 dynamic_linker=no 10222 ;; 10223 10224solaris*) 10225 version_type=linux # correct to gnu/linux during the next big refactor 10226 need_lib_prefix=no 10227 need_version=no 10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10229 soname_spec='${libname}${release}${shared_ext}$major' 10230 shlibpath_var=LD_LIBRARY_PATH 10231 shlibpath_overrides_runpath=yes 10232 hardcode_into_libs=yes 10233 # ldd complains unless libraries are executable 10234 postinstall_cmds='chmod +x $lib' 10235 ;; 10236 10237sunos4*) 10238 version_type=sunos 10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10241 shlibpath_var=LD_LIBRARY_PATH 10242 shlibpath_overrides_runpath=yes 10243 if test "$with_gnu_ld" = yes; then 10244 need_lib_prefix=no 10245 fi 10246 need_version=yes 10247 ;; 10248 10249sysv4 | sysv4.3*) 10250 version_type=linux # correct to gnu/linux during the next big refactor 10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10252 soname_spec='${libname}${release}${shared_ext}$major' 10253 shlibpath_var=LD_LIBRARY_PATH 10254 case $host_vendor in 10255 sni) 10256 shlibpath_overrides_runpath=no 10257 need_lib_prefix=no 10258 runpath_var=LD_RUN_PATH 10259 ;; 10260 siemens) 10261 need_lib_prefix=no 10262 ;; 10263 motorola) 10264 need_lib_prefix=no 10265 need_version=no 10266 shlibpath_overrides_runpath=no 10267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10268 ;; 10269 esac 10270 ;; 10271 10272sysv4*MP*) 10273 if test -d /usr/nec ;then 10274 version_type=linux # correct to gnu/linux during the next big refactor 10275 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10276 soname_spec='$libname${shared_ext}.$major' 10277 shlibpath_var=LD_LIBRARY_PATH 10278 fi 10279 ;; 10280 10281sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10282 version_type=freebsd-elf 10283 need_lib_prefix=no 10284 need_version=no 10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10286 soname_spec='${libname}${release}${shared_ext}$major' 10287 shlibpath_var=LD_LIBRARY_PATH 10288 shlibpath_overrides_runpath=yes 10289 hardcode_into_libs=yes 10290 if test "$with_gnu_ld" = yes; then 10291 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10292 else 10293 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10294 case $host_os in 10295 sco3.2v5*) 10296 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10297 ;; 10298 esac 10299 fi 10300 sys_lib_dlsearch_path_spec='/usr/lib' 10301 ;; 10302 10303tpf*) 10304 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10305 version_type=linux # correct to gnu/linux during the next big refactor 10306 need_lib_prefix=no 10307 need_version=no 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10309 shlibpath_var=LD_LIBRARY_PATH 10310 shlibpath_overrides_runpath=no 10311 hardcode_into_libs=yes 10312 ;; 10313 10314uts4*) 10315 version_type=linux # correct to gnu/linux during the next big refactor 10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10317 soname_spec='${libname}${release}${shared_ext}$major' 10318 shlibpath_var=LD_LIBRARY_PATH 10319 ;; 10320 10321*) 10322 dynamic_linker=no 10323 ;; 10324esac 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10326$as_echo "$dynamic_linker" >&6; } 10327test "$dynamic_linker" = no && can_build_shared=no 10328 10329variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10330if test "$GCC" = yes; then 10331 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10332fi 10333 10334if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10335 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10336fi 10337if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10338 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10339fi 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10433$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10434hardcode_action= 10435if test -n "$hardcode_libdir_flag_spec" || 10436 test -n "$runpath_var" || 10437 test "X$hardcode_automatic" = "Xyes" ; then 10438 10439 # We can hardcode non-existent directories. 10440 if test "$hardcode_direct" != no && 10441 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10442 # have to relink, otherwise we might link with an installed library 10443 # when we should be linking with a yet-to-be-installed one 10444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10445 test "$hardcode_minus_L" != no; then 10446 # Linking always hardcodes the temporary library directory. 10447 hardcode_action=relink 10448 else 10449 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10450 hardcode_action=immediate 10451 fi 10452else 10453 # We cannot hardcode anything, or else we can only hardcode existing 10454 # directories. 10455 hardcode_action=unsupported 10456fi 10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10458$as_echo "$hardcode_action" >&6; } 10459 10460if test "$hardcode_action" = relink || 10461 test "$inherit_rpath" = yes; then 10462 # Fast installation is not supported 10463 enable_fast_install=no 10464elif test "$shlibpath_overrides_runpath" = yes || 10465 test "$enable_shared" = no; then 10466 # Fast installation is not necessary 10467 enable_fast_install=needless 10468fi 10469 10470 10471 10472 10473 10474 10475 if test "x$enable_dlopen" != xyes; then 10476 enable_dlopen=unknown 10477 enable_dlopen_self=unknown 10478 enable_dlopen_self_static=unknown 10479else 10480 lt_cv_dlopen=no 10481 lt_cv_dlopen_libs= 10482 10483 case $host_os in 10484 beos*) 10485 lt_cv_dlopen="load_add_on" 10486 lt_cv_dlopen_libs= 10487 lt_cv_dlopen_self=yes 10488 ;; 10489 10490 mingw* | pw32* | cegcc*) 10491 lt_cv_dlopen="LoadLibrary" 10492 lt_cv_dlopen_libs= 10493 ;; 10494 10495 cygwin*) 10496 lt_cv_dlopen="dlopen" 10497 lt_cv_dlopen_libs= 10498 ;; 10499 10500 darwin*) 10501 # if libdl is installed we need to link against it 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10503$as_echo_n "checking for dlopen in -ldl... " >&6; } 10504if ${ac_cv_lib_dl_dlopen+:} false; then : 10505 $as_echo_n "(cached) " >&6 10506else 10507 ac_check_lib_save_LIBS=$LIBS 10508LIBS="-ldl $LIBS" 10509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10510/* end confdefs.h. */ 10511 10512/* Override any GCC internal prototype to avoid an error. 10513 Use char because int might match the return type of a GCC 10514 builtin and then its argument prototype would still apply. */ 10515#ifdef __cplusplus 10516extern "C" 10517#endif 10518char dlopen (); 10519int 10520main () 10521{ 10522return dlopen (); 10523 ; 10524 return 0; 10525} 10526_ACEOF 10527if ac_fn_c_try_link "$LINENO"; then : 10528 ac_cv_lib_dl_dlopen=yes 10529else 10530 ac_cv_lib_dl_dlopen=no 10531fi 10532rm -f core conftest.err conftest.$ac_objext \ 10533 conftest$ac_exeext conftest.$ac_ext 10534LIBS=$ac_check_lib_save_LIBS 10535fi 10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10537$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10538if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10539 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10540else 10541 10542 lt_cv_dlopen="dyld" 10543 lt_cv_dlopen_libs= 10544 lt_cv_dlopen_self=yes 10545 10546fi 10547 10548 ;; 10549 10550 *) 10551 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10552if test "x$ac_cv_func_shl_load" = xyes; then : 10553 lt_cv_dlopen="shl_load" 10554else 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10556$as_echo_n "checking for shl_load in -ldld... " >&6; } 10557if ${ac_cv_lib_dld_shl_load+:} false; then : 10558 $as_echo_n "(cached) " >&6 10559else 10560 ac_check_lib_save_LIBS=$LIBS 10561LIBS="-ldld $LIBS" 10562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10563/* end confdefs.h. */ 10564 10565/* Override any GCC internal prototype to avoid an error. 10566 Use char because int might match the return type of a GCC 10567 builtin and then its argument prototype would still apply. */ 10568#ifdef __cplusplus 10569extern "C" 10570#endif 10571char shl_load (); 10572int 10573main () 10574{ 10575return shl_load (); 10576 ; 10577 return 0; 10578} 10579_ACEOF 10580if ac_fn_c_try_link "$LINENO"; then : 10581 ac_cv_lib_dld_shl_load=yes 10582else 10583 ac_cv_lib_dld_shl_load=no 10584fi 10585rm -f core conftest.err conftest.$ac_objext \ 10586 conftest$ac_exeext conftest.$ac_ext 10587LIBS=$ac_check_lib_save_LIBS 10588fi 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10590$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10591if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10592 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10593else 10594 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10595if test "x$ac_cv_func_dlopen" = xyes; then : 10596 lt_cv_dlopen="dlopen" 10597else 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10599$as_echo_n "checking for dlopen in -ldl... " >&6; } 10600if ${ac_cv_lib_dl_dlopen+:} false; then : 10601 $as_echo_n "(cached) " >&6 10602else 10603 ac_check_lib_save_LIBS=$LIBS 10604LIBS="-ldl $LIBS" 10605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10606/* end confdefs.h. */ 10607 10608/* Override any GCC internal prototype to avoid an error. 10609 Use char because int might match the return type of a GCC 10610 builtin and then its argument prototype would still apply. */ 10611#ifdef __cplusplus 10612extern "C" 10613#endif 10614char dlopen (); 10615int 10616main () 10617{ 10618return dlopen (); 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623if ac_fn_c_try_link "$LINENO"; then : 10624 ac_cv_lib_dl_dlopen=yes 10625else 10626 ac_cv_lib_dl_dlopen=no 10627fi 10628rm -f core conftest.err conftest.$ac_objext \ 10629 conftest$ac_exeext conftest.$ac_ext 10630LIBS=$ac_check_lib_save_LIBS 10631fi 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10633$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10634if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10636else 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10638$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10639if ${ac_cv_lib_svld_dlopen+:} false; then : 10640 $as_echo_n "(cached) " >&6 10641else 10642 ac_check_lib_save_LIBS=$LIBS 10643LIBS="-lsvld $LIBS" 10644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10645/* end confdefs.h. */ 10646 10647/* Override any GCC internal prototype to avoid an error. 10648 Use char because int might match the return type of a GCC 10649 builtin and then its argument prototype would still apply. */ 10650#ifdef __cplusplus 10651extern "C" 10652#endif 10653char dlopen (); 10654int 10655main () 10656{ 10657return dlopen (); 10658 ; 10659 return 0; 10660} 10661_ACEOF 10662if ac_fn_c_try_link "$LINENO"; then : 10663 ac_cv_lib_svld_dlopen=yes 10664else 10665 ac_cv_lib_svld_dlopen=no 10666fi 10667rm -f core conftest.err conftest.$ac_objext \ 10668 conftest$ac_exeext conftest.$ac_ext 10669LIBS=$ac_check_lib_save_LIBS 10670fi 10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10672$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10673if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10675else 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10677$as_echo_n "checking for dld_link in -ldld... " >&6; } 10678if ${ac_cv_lib_dld_dld_link+:} false; then : 10679 $as_echo_n "(cached) " >&6 10680else 10681 ac_check_lib_save_LIBS=$LIBS 10682LIBS="-ldld $LIBS" 10683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10684/* end confdefs.h. */ 10685 10686/* Override any GCC internal prototype to avoid an error. 10687 Use char because int might match the return type of a GCC 10688 builtin and then its argument prototype would still apply. */ 10689#ifdef __cplusplus 10690extern "C" 10691#endif 10692char dld_link (); 10693int 10694main () 10695{ 10696return dld_link (); 10697 ; 10698 return 0; 10699} 10700_ACEOF 10701if ac_fn_c_try_link "$LINENO"; then : 10702 ac_cv_lib_dld_dld_link=yes 10703else 10704 ac_cv_lib_dld_dld_link=no 10705fi 10706rm -f core conftest.err conftest.$ac_objext \ 10707 conftest$ac_exeext conftest.$ac_ext 10708LIBS=$ac_check_lib_save_LIBS 10709fi 10710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10711$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10712if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10713 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10714fi 10715 10716 10717fi 10718 10719 10720fi 10721 10722 10723fi 10724 10725 10726fi 10727 10728 10729fi 10730 10731 ;; 10732 esac 10733 10734 if test "x$lt_cv_dlopen" != xno; then 10735 enable_dlopen=yes 10736 else 10737 enable_dlopen=no 10738 fi 10739 10740 case $lt_cv_dlopen in 10741 dlopen) 10742 save_CPPFLAGS="$CPPFLAGS" 10743 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10744 10745 save_LDFLAGS="$LDFLAGS" 10746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10747 10748 save_LIBS="$LIBS" 10749 LIBS="$lt_cv_dlopen_libs $LIBS" 10750 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10752$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10753if ${lt_cv_dlopen_self+:} false; then : 10754 $as_echo_n "(cached) " >&6 10755else 10756 if test "$cross_compiling" = yes; then : 10757 lt_cv_dlopen_self=cross 10758else 10759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10760 lt_status=$lt_dlunknown 10761 cat > conftest.$ac_ext <<_LT_EOF 10762#line $LINENO "configure" 10763#include "confdefs.h" 10764 10765#if HAVE_DLFCN_H 10766#include <dlfcn.h> 10767#endif 10768 10769#include <stdio.h> 10770 10771#ifdef RTLD_GLOBAL 10772# define LT_DLGLOBAL RTLD_GLOBAL 10773#else 10774# ifdef DL_GLOBAL 10775# define LT_DLGLOBAL DL_GLOBAL 10776# else 10777# define LT_DLGLOBAL 0 10778# endif 10779#endif 10780 10781/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10782 find out it does not work in some platform. */ 10783#ifndef LT_DLLAZY_OR_NOW 10784# ifdef RTLD_LAZY 10785# define LT_DLLAZY_OR_NOW RTLD_LAZY 10786# else 10787# ifdef DL_LAZY 10788# define LT_DLLAZY_OR_NOW DL_LAZY 10789# else 10790# ifdef RTLD_NOW 10791# define LT_DLLAZY_OR_NOW RTLD_NOW 10792# else 10793# ifdef DL_NOW 10794# define LT_DLLAZY_OR_NOW DL_NOW 10795# else 10796# define LT_DLLAZY_OR_NOW 0 10797# endif 10798# endif 10799# endif 10800# endif 10801#endif 10802 10803/* When -fvisbility=hidden is used, assume the code has been annotated 10804 correspondingly for the symbols needed. */ 10805#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10806int fnord () __attribute__((visibility("default"))); 10807#endif 10808 10809int fnord () { return 42; } 10810int main () 10811{ 10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10813 int status = $lt_dlunknown; 10814 10815 if (self) 10816 { 10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10818 else 10819 { 10820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10821 else puts (dlerror ()); 10822 } 10823 /* dlclose (self); */ 10824 } 10825 else 10826 puts (dlerror ()); 10827 10828 return status; 10829} 10830_LT_EOF 10831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10832 (eval $ac_link) 2>&5 10833 ac_status=$? 10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10835 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10836 (./conftest; exit; ) >&5 2>/dev/null 10837 lt_status=$? 10838 case x$lt_status in 10839 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10840 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10841 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10842 esac 10843 else : 10844 # compilation failed 10845 lt_cv_dlopen_self=no 10846 fi 10847fi 10848rm -fr conftest* 10849 10850 10851fi 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10853$as_echo "$lt_cv_dlopen_self" >&6; } 10854 10855 if test "x$lt_cv_dlopen_self" = xyes; then 10856 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10858$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10859if ${lt_cv_dlopen_self_static+:} false; then : 10860 $as_echo_n "(cached) " >&6 10861else 10862 if test "$cross_compiling" = yes; then : 10863 lt_cv_dlopen_self_static=cross 10864else 10865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10866 lt_status=$lt_dlunknown 10867 cat > conftest.$ac_ext <<_LT_EOF 10868#line $LINENO "configure" 10869#include "confdefs.h" 10870 10871#if HAVE_DLFCN_H 10872#include <dlfcn.h> 10873#endif 10874 10875#include <stdio.h> 10876 10877#ifdef RTLD_GLOBAL 10878# define LT_DLGLOBAL RTLD_GLOBAL 10879#else 10880# ifdef DL_GLOBAL 10881# define LT_DLGLOBAL DL_GLOBAL 10882# else 10883# define LT_DLGLOBAL 0 10884# endif 10885#endif 10886 10887/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10888 find out it does not work in some platform. */ 10889#ifndef LT_DLLAZY_OR_NOW 10890# ifdef RTLD_LAZY 10891# define LT_DLLAZY_OR_NOW RTLD_LAZY 10892# else 10893# ifdef DL_LAZY 10894# define LT_DLLAZY_OR_NOW DL_LAZY 10895# else 10896# ifdef RTLD_NOW 10897# define LT_DLLAZY_OR_NOW RTLD_NOW 10898# else 10899# ifdef DL_NOW 10900# define LT_DLLAZY_OR_NOW DL_NOW 10901# else 10902# define LT_DLLAZY_OR_NOW 0 10903# endif 10904# endif 10905# endif 10906# endif 10907#endif 10908 10909/* When -fvisbility=hidden is used, assume the code has been annotated 10910 correspondingly for the symbols needed. */ 10911#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10912int fnord () __attribute__((visibility("default"))); 10913#endif 10914 10915int fnord () { return 42; } 10916int main () 10917{ 10918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10919 int status = $lt_dlunknown; 10920 10921 if (self) 10922 { 10923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10924 else 10925 { 10926 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10927 else puts (dlerror ()); 10928 } 10929 /* dlclose (self); */ 10930 } 10931 else 10932 puts (dlerror ()); 10933 10934 return status; 10935} 10936_LT_EOF 10937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10938 (eval $ac_link) 2>&5 10939 ac_status=$? 10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10941 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10942 (./conftest; exit; ) >&5 2>/dev/null 10943 lt_status=$? 10944 case x$lt_status in 10945 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10946 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10947 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10948 esac 10949 else : 10950 # compilation failed 10951 lt_cv_dlopen_self_static=no 10952 fi 10953fi 10954rm -fr conftest* 10955 10956 10957fi 10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10959$as_echo "$lt_cv_dlopen_self_static" >&6; } 10960 fi 10961 10962 CPPFLAGS="$save_CPPFLAGS" 10963 LDFLAGS="$save_LDFLAGS" 10964 LIBS="$save_LIBS" 10965 ;; 10966 esac 10967 10968 case $lt_cv_dlopen_self in 10969 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10970 *) enable_dlopen_self=unknown ;; 10971 esac 10972 10973 case $lt_cv_dlopen_self_static in 10974 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10975 *) enable_dlopen_self_static=unknown ;; 10976 esac 10977fi 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995striplib= 10996old_striplib= 10997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10998$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10999if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11000 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11001 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11003$as_echo "yes" >&6; } 11004else 11005# FIXME - insert some real tests, host_os isn't really good enough 11006 case $host_os in 11007 darwin*) 11008 if test -n "$STRIP" ; then 11009 striplib="$STRIP -x" 11010 old_striplib="$STRIP -S" 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11012$as_echo "yes" >&6; } 11013 else 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11015$as_echo "no" >&6; } 11016 fi 11017 ;; 11018 *) 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11020$as_echo "no" >&6; } 11021 ;; 11022 esac 11023fi 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 # Report which library types will actually be built 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11038$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11040$as_echo "$can_build_shared" >&6; } 11041 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11043$as_echo_n "checking whether to build shared libraries... " >&6; } 11044 test "$can_build_shared" = "no" && enable_shared=no 11045 11046 # On AIX, shared libraries and static libraries use the same namespace, and 11047 # are all built from PIC. 11048 case $host_os in 11049 aix3*) 11050 test "$enable_shared" = yes && enable_static=no 11051 if test -n "$RANLIB"; then 11052 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11053 postinstall_cmds='$RANLIB $lib' 11054 fi 11055 ;; 11056 11057 aix[4-9]*) 11058 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11059 test "$enable_shared" = yes && enable_static=no 11060 fi 11061 ;; 11062 esac 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11064$as_echo "$enable_shared" >&6; } 11065 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11067$as_echo_n "checking whether to build static libraries... " >&6; } 11068 # Make sure either enable_shared or enable_static is yes. 11069 test "$enable_shared" = yes || enable_static=yes 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11071$as_echo "$enable_static" >&6; } 11072 11073 11074 11075 11076fi 11077ac_ext=c 11078ac_cpp='$CPP $CPPFLAGS' 11079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11081ac_compiler_gnu=$ac_cv_c_compiler_gnu 11082 11083CC="$lt_save_CC" 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 ac_config_commands="$ac_config_commands libtool" 11100 11101 11102 11103 11104# Only expand once: 11105 11106 11107 11108 11109 11110 11111 11112ac_ext=c 11113ac_cpp='$CPP $CPPFLAGS' 11114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11116ac_compiler_gnu=$ac_cv_c_compiler_gnu 11117if test -n "$ac_tool_prefix"; then 11118 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11119set dummy ${ac_tool_prefix}gcc; ac_word=$2 11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11121$as_echo_n "checking for $ac_word... " >&6; } 11122if ${ac_cv_prog_CC+:} false; then : 11123 $as_echo_n "(cached) " >&6 11124else 11125 if test -n "$CC"; then 11126 ac_cv_prog_CC="$CC" # Let the user override the test. 11127else 11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11129for as_dir in $PATH 11130do 11131 IFS=$as_save_IFS 11132 test -z "$as_dir" && as_dir=. 11133 for ac_exec_ext in '' $ac_executable_extensions; do 11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11135 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11137 break 2 11138 fi 11139done 11140 done 11141IFS=$as_save_IFS 11142 11143fi 11144fi 11145CC=$ac_cv_prog_CC 11146if test -n "$CC"; then 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11148$as_echo "$CC" >&6; } 11149else 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11151$as_echo "no" >&6; } 11152fi 11153 11154 11155fi 11156if test -z "$ac_cv_prog_CC"; then 11157 ac_ct_CC=$CC 11158 # Extract the first word of "gcc", so it can be a program name with args. 11159set dummy gcc; ac_word=$2 11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11161$as_echo_n "checking for $ac_word... " >&6; } 11162if ${ac_cv_prog_ac_ct_CC+:} false; then : 11163 $as_echo_n "(cached) " >&6 11164else 11165 if test -n "$ac_ct_CC"; then 11166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11167else 11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11169for as_dir in $PATH 11170do 11171 IFS=$as_save_IFS 11172 test -z "$as_dir" && as_dir=. 11173 for ac_exec_ext in '' $ac_executable_extensions; do 11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11175 ac_cv_prog_ac_ct_CC="gcc" 11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11177 break 2 11178 fi 11179done 11180 done 11181IFS=$as_save_IFS 11182 11183fi 11184fi 11185ac_ct_CC=$ac_cv_prog_ac_ct_CC 11186if test -n "$ac_ct_CC"; then 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11188$as_echo "$ac_ct_CC" >&6; } 11189else 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11191$as_echo "no" >&6; } 11192fi 11193 11194 if test "x$ac_ct_CC" = x; then 11195 CC="" 11196 else 11197 case $cross_compiling:$ac_tool_warned in 11198yes:) 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11201ac_tool_warned=yes ;; 11202esac 11203 CC=$ac_ct_CC 11204 fi 11205else 11206 CC="$ac_cv_prog_CC" 11207fi 11208 11209if test -z "$CC"; then 11210 if test -n "$ac_tool_prefix"; then 11211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11212set dummy ${ac_tool_prefix}cc; ac_word=$2 11213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11214$as_echo_n "checking for $ac_word... " >&6; } 11215if ${ac_cv_prog_CC+:} false; then : 11216 $as_echo_n "(cached) " >&6 11217else 11218 if test -n "$CC"; then 11219 ac_cv_prog_CC="$CC" # Let the user override the test. 11220else 11221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11222for as_dir in $PATH 11223do 11224 IFS=$as_save_IFS 11225 test -z "$as_dir" && as_dir=. 11226 for ac_exec_ext in '' $ac_executable_extensions; do 11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11228 ac_cv_prog_CC="${ac_tool_prefix}cc" 11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11230 break 2 11231 fi 11232done 11233 done 11234IFS=$as_save_IFS 11235 11236fi 11237fi 11238CC=$ac_cv_prog_CC 11239if test -n "$CC"; then 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11241$as_echo "$CC" >&6; } 11242else 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11244$as_echo "no" >&6; } 11245fi 11246 11247 11248 fi 11249fi 11250if test -z "$CC"; then 11251 # Extract the first word of "cc", so it can be a program name with args. 11252set dummy cc; ac_word=$2 11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11254$as_echo_n "checking for $ac_word... " >&6; } 11255if ${ac_cv_prog_CC+:} false; then : 11256 $as_echo_n "(cached) " >&6 11257else 11258 if test -n "$CC"; then 11259 ac_cv_prog_CC="$CC" # Let the user override the test. 11260else 11261 ac_prog_rejected=no 11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11263for as_dir in $PATH 11264do 11265 IFS=$as_save_IFS 11266 test -z "$as_dir" && as_dir=. 11267 for ac_exec_ext in '' $ac_executable_extensions; do 11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11269 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11270 ac_prog_rejected=yes 11271 continue 11272 fi 11273 ac_cv_prog_CC="cc" 11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11275 break 2 11276 fi 11277done 11278 done 11279IFS=$as_save_IFS 11280 11281if test $ac_prog_rejected = yes; then 11282 # We found a bogon in the path, so make sure we never use it. 11283 set dummy $ac_cv_prog_CC 11284 shift 11285 if test $# != 0; then 11286 # We chose a different compiler from the bogus one. 11287 # However, it has the same basename, so the bogon will be chosen 11288 # first if we set CC to just the basename; use the full file name. 11289 shift 11290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11291 fi 11292fi 11293fi 11294fi 11295CC=$ac_cv_prog_CC 11296if test -n "$CC"; then 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11298$as_echo "$CC" >&6; } 11299else 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11301$as_echo "no" >&6; } 11302fi 11303 11304 11305fi 11306if test -z "$CC"; then 11307 if test -n "$ac_tool_prefix"; then 11308 for ac_prog in cl.exe 11309 do 11310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11311set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11313$as_echo_n "checking for $ac_word... " >&6; } 11314if ${ac_cv_prog_CC+:} false; then : 11315 $as_echo_n "(cached) " >&6 11316else 11317 if test -n "$CC"; then 11318 ac_cv_prog_CC="$CC" # Let the user override the test. 11319else 11320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11321for as_dir in $PATH 11322do 11323 IFS=$as_save_IFS 11324 test -z "$as_dir" && as_dir=. 11325 for ac_exec_ext in '' $ac_executable_extensions; do 11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11329 break 2 11330 fi 11331done 11332 done 11333IFS=$as_save_IFS 11334 11335fi 11336fi 11337CC=$ac_cv_prog_CC 11338if test -n "$CC"; then 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11340$as_echo "$CC" >&6; } 11341else 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11343$as_echo "no" >&6; } 11344fi 11345 11346 11347 test -n "$CC" && break 11348 done 11349fi 11350if test -z "$CC"; then 11351 ac_ct_CC=$CC 11352 for ac_prog in cl.exe 11353do 11354 # Extract the first word of "$ac_prog", so it can be a program name with args. 11355set dummy $ac_prog; ac_word=$2 11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11357$as_echo_n "checking for $ac_word... " >&6; } 11358if ${ac_cv_prog_ac_ct_CC+:} false; then : 11359 $as_echo_n "(cached) " >&6 11360else 11361 if test -n "$ac_ct_CC"; then 11362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11363else 11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11365for as_dir in $PATH 11366do 11367 IFS=$as_save_IFS 11368 test -z "$as_dir" && as_dir=. 11369 for ac_exec_ext in '' $ac_executable_extensions; do 11370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11371 ac_cv_prog_ac_ct_CC="$ac_prog" 11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11373 break 2 11374 fi 11375done 11376 done 11377IFS=$as_save_IFS 11378 11379fi 11380fi 11381ac_ct_CC=$ac_cv_prog_ac_ct_CC 11382if test -n "$ac_ct_CC"; then 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11384$as_echo "$ac_ct_CC" >&6; } 11385else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387$as_echo "no" >&6; } 11388fi 11389 11390 11391 test -n "$ac_ct_CC" && break 11392done 11393 11394 if test "x$ac_ct_CC" = x; then 11395 CC="" 11396 else 11397 case $cross_compiling:$ac_tool_warned in 11398yes:) 11399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11401ac_tool_warned=yes ;; 11402esac 11403 CC=$ac_ct_CC 11404 fi 11405fi 11406 11407fi 11408 11409 11410test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11412as_fn_error $? "no acceptable C compiler found in \$PATH 11413See \`config.log' for more details" "$LINENO" 5; } 11414 11415# Provide some information about the compiler. 11416$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11417set X $ac_compile 11418ac_compiler=$2 11419for ac_option in --version -v -V -qversion; do 11420 { { ac_try="$ac_compiler $ac_option >&5" 11421case "(($ac_try" in 11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11423 *) ac_try_echo=$ac_try;; 11424esac 11425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11426$as_echo "$ac_try_echo"; } >&5 11427 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11428 ac_status=$? 11429 if test -s conftest.err; then 11430 sed '10a\ 11431... rest of stderr output deleted ... 11432 10q' conftest.err >conftest.er1 11433 cat conftest.er1 >&5 11434 fi 11435 rm -f conftest.er1 conftest.err 11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11437 test $ac_status = 0; } 11438done 11439 11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11441$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11442if ${ac_cv_c_compiler_gnu+:} false; then : 11443 $as_echo_n "(cached) " >&6 11444else 11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11446/* end confdefs.h. */ 11447 11448int 11449main () 11450{ 11451#ifndef __GNUC__ 11452 choke me 11453#endif 11454 11455 ; 11456 return 0; 11457} 11458_ACEOF 11459if ac_fn_c_try_compile "$LINENO"; then : 11460 ac_compiler_gnu=yes 11461else 11462 ac_compiler_gnu=no 11463fi 11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11465ac_cv_c_compiler_gnu=$ac_compiler_gnu 11466 11467fi 11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11469$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11470if test $ac_compiler_gnu = yes; then 11471 GCC=yes 11472else 11473 GCC= 11474fi 11475ac_test_CFLAGS=${CFLAGS+set} 11476ac_save_CFLAGS=$CFLAGS 11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11478$as_echo_n "checking whether $CC accepts -g... " >&6; } 11479if ${ac_cv_prog_cc_g+:} false; then : 11480 $as_echo_n "(cached) " >&6 11481else 11482 ac_save_c_werror_flag=$ac_c_werror_flag 11483 ac_c_werror_flag=yes 11484 ac_cv_prog_cc_g=no 11485 CFLAGS="-g" 11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11487/* end confdefs.h. */ 11488 11489int 11490main () 11491{ 11492 11493 ; 11494 return 0; 11495} 11496_ACEOF 11497if ac_fn_c_try_compile "$LINENO"; then : 11498 ac_cv_prog_cc_g=yes 11499else 11500 CFLAGS="" 11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11502/* end confdefs.h. */ 11503 11504int 11505main () 11506{ 11507 11508 ; 11509 return 0; 11510} 11511_ACEOF 11512if ac_fn_c_try_compile "$LINENO"; then : 11513 11514else 11515 ac_c_werror_flag=$ac_save_c_werror_flag 11516 CFLAGS="-g" 11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11518/* end confdefs.h. */ 11519 11520int 11521main () 11522{ 11523 11524 ; 11525 return 0; 11526} 11527_ACEOF 11528if ac_fn_c_try_compile "$LINENO"; then : 11529 ac_cv_prog_cc_g=yes 11530fi 11531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11532fi 11533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11534fi 11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11536 ac_c_werror_flag=$ac_save_c_werror_flag 11537fi 11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11539$as_echo "$ac_cv_prog_cc_g" >&6; } 11540if test "$ac_test_CFLAGS" = set; then 11541 CFLAGS=$ac_save_CFLAGS 11542elif test $ac_cv_prog_cc_g = yes; then 11543 if test "$GCC" = yes; then 11544 CFLAGS="-g -O2" 11545 else 11546 CFLAGS="-g" 11547 fi 11548else 11549 if test "$GCC" = yes; then 11550 CFLAGS="-O2" 11551 else 11552 CFLAGS= 11553 fi 11554fi 11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11556$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11557if ${ac_cv_prog_cc_c89+:} false; then : 11558 $as_echo_n "(cached) " >&6 11559else 11560 ac_cv_prog_cc_c89=no 11561ac_save_CC=$CC 11562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11563/* end confdefs.h. */ 11564#include <stdarg.h> 11565#include <stdio.h> 11566struct stat; 11567/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11568struct buf { int x; }; 11569FILE * (*rcsopen) (struct buf *, struct stat *, int); 11570static char *e (p, i) 11571 char **p; 11572 int i; 11573{ 11574 return p[i]; 11575} 11576static char *f (char * (*g) (char **, int), char **p, ...) 11577{ 11578 char *s; 11579 va_list v; 11580 va_start (v,p); 11581 s = g (p, va_arg (v,int)); 11582 va_end (v); 11583 return s; 11584} 11585 11586/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11587 function prototypes and stuff, but not '\xHH' hex character constants. 11588 These don't provoke an error unfortunately, instead are silently treated 11589 as 'x'. The following induces an error, until -std is added to get 11590 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11591 array size at least. It's necessary to write '\x00'==0 to get something 11592 that's true only with -std. */ 11593int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11594 11595/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11596 inside strings and character constants. */ 11597#define FOO(x) 'x' 11598int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11599 11600int test (int i, double x); 11601struct s1 {int (*f) (int a);}; 11602struct s2 {int (*f) (double a);}; 11603int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11604int argc; 11605char **argv; 11606int 11607main () 11608{ 11609return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11610 ; 11611 return 0; 11612} 11613_ACEOF 11614for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11615 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11616do 11617 CC="$ac_save_CC $ac_arg" 11618 if ac_fn_c_try_compile "$LINENO"; then : 11619 ac_cv_prog_cc_c89=$ac_arg 11620fi 11621rm -f core conftest.err conftest.$ac_objext 11622 test "x$ac_cv_prog_cc_c89" != "xno" && break 11623done 11624rm -f conftest.$ac_ext 11625CC=$ac_save_CC 11626 11627fi 11628# AC_CACHE_VAL 11629case "x$ac_cv_prog_cc_c89" in 11630 x) 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11632$as_echo "none needed" >&6; } ;; 11633 xno) 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11635$as_echo "unsupported" >&6; } ;; 11636 *) 11637 CC="$CC $ac_cv_prog_cc_c89" 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11639$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11640esac 11641if test "x$ac_cv_prog_cc_c89" != xno; then : 11642 11643fi 11644 11645ac_ext=c 11646ac_cpp='$CPP $CPPFLAGS' 11647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11649ac_compiler_gnu=$ac_cv_c_compiler_gnu 11650 11651ac_ext=cpp 11652ac_cpp='$CXXCPP $CPPFLAGS' 11653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11656if test -z "$CXX"; then 11657 if test -n "$CCC"; then 11658 CXX=$CCC 11659 else 11660 if test -n "$ac_tool_prefix"; then 11661 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11662 do 11663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11664set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11666$as_echo_n "checking for $ac_word... " >&6; } 11667if ${ac_cv_prog_CXX+:} false; then : 11668 $as_echo_n "(cached) " >&6 11669else 11670 if test -n "$CXX"; then 11671 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11672else 11673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11674for as_dir in $PATH 11675do 11676 IFS=$as_save_IFS 11677 test -z "$as_dir" && as_dir=. 11678 for ac_exec_ext in '' $ac_executable_extensions; do 11679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11680 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11682 break 2 11683 fi 11684done 11685 done 11686IFS=$as_save_IFS 11687 11688fi 11689fi 11690CXX=$ac_cv_prog_CXX 11691if test -n "$CXX"; then 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 11693$as_echo "$CXX" >&6; } 11694else 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11696$as_echo "no" >&6; } 11697fi 11698 11699 11700 test -n "$CXX" && break 11701 done 11702fi 11703if test -z "$CXX"; then 11704 ac_ct_CXX=$CXX 11705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11706do 11707 # Extract the first word of "$ac_prog", so it can be a program name with args. 11708set dummy $ac_prog; ac_word=$2 11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11710$as_echo_n "checking for $ac_word... " >&6; } 11711if ${ac_cv_prog_ac_ct_CXX+:} false; then : 11712 $as_echo_n "(cached) " >&6 11713else 11714 if test -n "$ac_ct_CXX"; then 11715 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 11716else 11717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11718for as_dir in $PATH 11719do 11720 IFS=$as_save_IFS 11721 test -z "$as_dir" && as_dir=. 11722 for ac_exec_ext in '' $ac_executable_extensions; do 11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11724 ac_cv_prog_ac_ct_CXX="$ac_prog" 11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11726 break 2 11727 fi 11728done 11729 done 11730IFS=$as_save_IFS 11731 11732fi 11733fi 11734ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 11735if test -n "$ac_ct_CXX"; then 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 11737$as_echo "$ac_ct_CXX" >&6; } 11738else 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11740$as_echo "no" >&6; } 11741fi 11742 11743 11744 test -n "$ac_ct_CXX" && break 11745done 11746 11747 if test "x$ac_ct_CXX" = x; then 11748 CXX="g++" 11749 else 11750 case $cross_compiling:$ac_tool_warned in 11751yes:) 11752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11754ac_tool_warned=yes ;; 11755esac 11756 CXX=$ac_ct_CXX 11757 fi 11758fi 11759 11760 fi 11761fi 11762# Provide some information about the compiler. 11763$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 11764set X $ac_compile 11765ac_compiler=$2 11766for ac_option in --version -v -V -qversion; do 11767 { { ac_try="$ac_compiler $ac_option >&5" 11768case "(($ac_try" in 11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11770 *) ac_try_echo=$ac_try;; 11771esac 11772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11773$as_echo "$ac_try_echo"; } >&5 11774 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11775 ac_status=$? 11776 if test -s conftest.err; then 11777 sed '10a\ 11778... rest of stderr output deleted ... 11779 10q' conftest.err >conftest.er1 11780 cat conftest.er1 >&5 11781 fi 11782 rm -f conftest.er1 conftest.err 11783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11784 test $ac_status = 0; } 11785done 11786 11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11788$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11789if ${ac_cv_cxx_compiler_gnu+:} false; then : 11790 $as_echo_n "(cached) " >&6 11791else 11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11793/* end confdefs.h. */ 11794 11795int 11796main () 11797{ 11798#ifndef __GNUC__ 11799 choke me 11800#endif 11801 11802 ; 11803 return 0; 11804} 11805_ACEOF 11806if ac_fn_cxx_try_compile "$LINENO"; then : 11807 ac_compiler_gnu=yes 11808else 11809 ac_compiler_gnu=no 11810fi 11811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11812ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11813 11814fi 11815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11816$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11817if test $ac_compiler_gnu = yes; then 11818 GXX=yes 11819else 11820 GXX= 11821fi 11822ac_test_CXXFLAGS=${CXXFLAGS+set} 11823ac_save_CXXFLAGS=$CXXFLAGS 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11825$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11826if ${ac_cv_prog_cxx_g+:} false; then : 11827 $as_echo_n "(cached) " >&6 11828else 11829 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11830 ac_cxx_werror_flag=yes 11831 ac_cv_prog_cxx_g=no 11832 CXXFLAGS="-g" 11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11834/* end confdefs.h. */ 11835 11836int 11837main () 11838{ 11839 11840 ; 11841 return 0; 11842} 11843_ACEOF 11844if ac_fn_cxx_try_compile "$LINENO"; then : 11845 ac_cv_prog_cxx_g=yes 11846else 11847 CXXFLAGS="" 11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11849/* end confdefs.h. */ 11850 11851int 11852main () 11853{ 11854 11855 ; 11856 return 0; 11857} 11858_ACEOF 11859if ac_fn_cxx_try_compile "$LINENO"; then : 11860 11861else 11862 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11863 CXXFLAGS="-g" 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11865/* end confdefs.h. */ 11866 11867int 11868main () 11869{ 11870 11871 ; 11872 return 0; 11873} 11874_ACEOF 11875if ac_fn_cxx_try_compile "$LINENO"; then : 11876 ac_cv_prog_cxx_g=yes 11877fi 11878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11879fi 11880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11881fi 11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11883 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11884fi 11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 11886$as_echo "$ac_cv_prog_cxx_g" >&6; } 11887if test "$ac_test_CXXFLAGS" = set; then 11888 CXXFLAGS=$ac_save_CXXFLAGS 11889elif test $ac_cv_prog_cxx_g = yes; then 11890 if test "$GXX" = yes; then 11891 CXXFLAGS="-g -O2" 11892 else 11893 CXXFLAGS="-g" 11894 fi 11895else 11896 if test "$GXX" = yes; then 11897 CXXFLAGS="-O2" 11898 else 11899 CXXFLAGS= 11900 fi 11901fi 11902ac_ext=c 11903ac_cpp='$CPP $CPPFLAGS' 11904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11906ac_compiler_gnu=$ac_cv_c_compiler_gnu 11907 11908 11909 11910func_stripname_cnf () 11911{ 11912 case ${2} in 11913 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 11914 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 11915 esac 11916} # func_stripname_cnf 11917 11918 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11919 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11920 (test "X$CXX" != "Xg++"))) ; then 11921 ac_ext=cpp 11922ac_cpp='$CXXCPP $CPPFLAGS' 11923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11927$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11928if test -z "$CXXCPP"; then 11929 if ${ac_cv_prog_CXXCPP+:} false; then : 11930 $as_echo_n "(cached) " >&6 11931else 11932 # Double quotes because CXXCPP needs to be expanded 11933 for CXXCPP in "$CXX -E" "/lib/cpp" 11934 do 11935 ac_preproc_ok=false 11936for ac_cxx_preproc_warn_flag in '' yes 11937do 11938 # Use a header file that comes with gcc, so configuring glibc 11939 # with a fresh cross-compiler works. 11940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11941 # <limits.h> exists even on freestanding compilers. 11942 # On the NeXT, cc -E runs the code through the compiler's parser, 11943 # not just through cpp. "Syntax error" is here to catch this case. 11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11945/* end confdefs.h. */ 11946#ifdef __STDC__ 11947# include <limits.h> 11948#else 11949# include <assert.h> 11950#endif 11951 Syntax error 11952_ACEOF 11953if ac_fn_cxx_try_cpp "$LINENO"; then : 11954 11955else 11956 # Broken: fails on valid input. 11957continue 11958fi 11959rm -f conftest.err conftest.i conftest.$ac_ext 11960 11961 # OK, works on sane cases. Now check whether nonexistent headers 11962 # can be detected and how. 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965#include <ac_nonexistent.h> 11966_ACEOF 11967if ac_fn_cxx_try_cpp "$LINENO"; then : 11968 # Broken: success on invalid input. 11969continue 11970else 11971 # Passes both tests. 11972ac_preproc_ok=: 11973break 11974fi 11975rm -f conftest.err conftest.i conftest.$ac_ext 11976 11977done 11978# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11979rm -f conftest.i conftest.err conftest.$ac_ext 11980if $ac_preproc_ok; then : 11981 break 11982fi 11983 11984 done 11985 ac_cv_prog_CXXCPP=$CXXCPP 11986 11987fi 11988 CXXCPP=$ac_cv_prog_CXXCPP 11989else 11990 ac_cv_prog_CXXCPP=$CXXCPP 11991fi 11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11993$as_echo "$CXXCPP" >&6; } 11994ac_preproc_ok=false 11995for ac_cxx_preproc_warn_flag in '' yes 11996do 11997 # Use a header file that comes with gcc, so configuring glibc 11998 # with a fresh cross-compiler works. 11999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12000 # <limits.h> exists even on freestanding compilers. 12001 # On the NeXT, cc -E runs the code through the compiler's parser, 12002 # not just through cpp. "Syntax error" is here to catch this case. 12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12004/* end confdefs.h. */ 12005#ifdef __STDC__ 12006# include <limits.h> 12007#else 12008# include <assert.h> 12009#endif 12010 Syntax error 12011_ACEOF 12012if ac_fn_cxx_try_cpp "$LINENO"; then : 12013 12014else 12015 # Broken: fails on valid input. 12016continue 12017fi 12018rm -f conftest.err conftest.i conftest.$ac_ext 12019 12020 # OK, works on sane cases. Now check whether nonexistent headers 12021 # can be detected and how. 12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12023/* end confdefs.h. */ 12024#include <ac_nonexistent.h> 12025_ACEOF 12026if ac_fn_cxx_try_cpp "$LINENO"; then : 12027 # Broken: success on invalid input. 12028continue 12029else 12030 # Passes both tests. 12031ac_preproc_ok=: 12032break 12033fi 12034rm -f conftest.err conftest.i conftest.$ac_ext 12035 12036done 12037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12038rm -f conftest.i conftest.err conftest.$ac_ext 12039if $ac_preproc_ok; then : 12040 12041else 12042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12044as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12045See \`config.log' for more details" "$LINENO" 5; } 12046fi 12047 12048ac_ext=c 12049ac_cpp='$CPP $CPPFLAGS' 12050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12052ac_compiler_gnu=$ac_cv_c_compiler_gnu 12053 12054else 12055 _lt_caught_CXX_error=yes 12056fi 12057 12058ac_ext=cpp 12059ac_cpp='$CXXCPP $CPPFLAGS' 12060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12063 12064archive_cmds_need_lc_CXX=no 12065allow_undefined_flag_CXX= 12066always_export_symbols_CXX=no 12067archive_expsym_cmds_CXX= 12068compiler_needs_object_CXX=no 12069export_dynamic_flag_spec_CXX= 12070hardcode_direct_CXX=no 12071hardcode_direct_absolute_CXX=no 12072hardcode_libdir_flag_spec_CXX= 12073hardcode_libdir_separator_CXX= 12074hardcode_minus_L_CXX=no 12075hardcode_shlibpath_var_CXX=unsupported 12076hardcode_automatic_CXX=no 12077inherit_rpath_CXX=no 12078module_cmds_CXX= 12079module_expsym_cmds_CXX= 12080link_all_deplibs_CXX=unknown 12081old_archive_cmds_CXX=$old_archive_cmds 12082reload_flag_CXX=$reload_flag 12083reload_cmds_CXX=$reload_cmds 12084no_undefined_flag_CXX= 12085whole_archive_flag_spec_CXX= 12086enable_shared_with_static_runtimes_CXX=no 12087 12088# Source file extension for C++ test sources. 12089ac_ext=cpp 12090 12091# Object file extension for compiled C++ test sources. 12092objext=o 12093objext_CXX=$objext 12094 12095# No sense in running all these tests if we already determined that 12096# the CXX compiler isn't working. Some variables (like enable_shared) 12097# are currently assumed to apply to all compilers on this platform, 12098# and will be corrupted by setting them based on a non-working compiler. 12099if test "$_lt_caught_CXX_error" != yes; then 12100 # Code to be used in simple compile tests 12101 lt_simple_compile_test_code="int some_variable = 0;" 12102 12103 # Code to be used in simple link tests 12104 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12105 12106 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12107 12108 12109 12110 12111 12112 12113# If no C compiler was specified, use CC. 12114LTCC=${LTCC-"$CC"} 12115 12116# If no C compiler flags were specified, use CFLAGS. 12117LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12118 12119# Allow CC to be a program name with arguments. 12120compiler=$CC 12121 12122 12123 # save warnings/boilerplate of simple test code 12124 ac_outfile=conftest.$ac_objext 12125echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12126eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12127_lt_compiler_boilerplate=`cat conftest.err` 12128$RM conftest* 12129 12130 ac_outfile=conftest.$ac_objext 12131echo "$lt_simple_link_test_code" >conftest.$ac_ext 12132eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12133_lt_linker_boilerplate=`cat conftest.err` 12134$RM -r conftest* 12135 12136 12137 # Allow CC to be a program name with arguments. 12138 lt_save_CC=$CC 12139 lt_save_CFLAGS=$CFLAGS 12140 lt_save_LD=$LD 12141 lt_save_GCC=$GCC 12142 GCC=$GXX 12143 lt_save_with_gnu_ld=$with_gnu_ld 12144 lt_save_path_LD=$lt_cv_path_LD 12145 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12146 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12147 else 12148 $as_unset lt_cv_prog_gnu_ld 12149 fi 12150 if test -n "${lt_cv_path_LDCXX+set}"; then 12151 lt_cv_path_LD=$lt_cv_path_LDCXX 12152 else 12153 $as_unset lt_cv_path_LD 12154 fi 12155 test -z "${LDCXX+set}" || LD=$LDCXX 12156 CC=${CXX-"c++"} 12157 CFLAGS=$CXXFLAGS 12158 compiler=$CC 12159 compiler_CXX=$CC 12160 for cc_temp in $compiler""; do 12161 case $cc_temp in 12162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12164 \-*) ;; 12165 *) break;; 12166 esac 12167done 12168cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12169 12170 12171 if test -n "$compiler"; then 12172 # We don't want -fno-exception when compiling C++ code, so set the 12173 # no_builtin_flag separately 12174 if test "$GXX" = yes; then 12175 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12176 else 12177 lt_prog_compiler_no_builtin_flag_CXX= 12178 fi 12179 12180 if test "$GXX" = yes; then 12181 # Set up default GNU C++ configuration 12182 12183 12184 12185# Check whether --with-gnu-ld was given. 12186if test "${with_gnu_ld+set}" = set; then : 12187 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12188else 12189 with_gnu_ld=no 12190fi 12191 12192ac_prog=ld 12193if test "$GCC" = yes; then 12194 # Check if gcc -print-prog-name=ld gives a path. 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12196$as_echo_n "checking for ld used by $CC... " >&6; } 12197 case $host in 12198 *-*-mingw*) 12199 # gcc leaves a trailing carriage return which upsets mingw 12200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12201 *) 12202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12203 esac 12204 case $ac_prog in 12205 # Accept absolute paths. 12206 [\\/]* | ?:[\\/]*) 12207 re_direlt='/[^/][^/]*/\.\./' 12208 # Canonicalize the pathname of ld 12209 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12210 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12211 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12212 done 12213 test -z "$LD" && LD="$ac_prog" 12214 ;; 12215 "") 12216 # If it fails, then pretend we aren't using GCC. 12217 ac_prog=ld 12218 ;; 12219 *) 12220 # If it is relative, then search for the first ld in PATH. 12221 with_gnu_ld=unknown 12222 ;; 12223 esac 12224elif test "$with_gnu_ld" = yes; then 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12226$as_echo_n "checking for GNU ld... " >&6; } 12227else 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12229$as_echo_n "checking for non-GNU ld... " >&6; } 12230fi 12231if ${lt_cv_path_LD+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233else 12234 if test -z "$LD"; then 12235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12236 for ac_dir in $PATH; do 12237 IFS="$lt_save_ifs" 12238 test -z "$ac_dir" && ac_dir=. 12239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12240 lt_cv_path_LD="$ac_dir/$ac_prog" 12241 # Check to see if the program is GNU ld. I'd rather use --version, 12242 # but apparently some variants of GNU ld only accept -v. 12243 # Break only if it was the GNU/non-GNU ld that we prefer. 12244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12245 *GNU* | *'with BFD'*) 12246 test "$with_gnu_ld" != no && break 12247 ;; 12248 *) 12249 test "$with_gnu_ld" != yes && break 12250 ;; 12251 esac 12252 fi 12253 done 12254 IFS="$lt_save_ifs" 12255else 12256 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12257fi 12258fi 12259 12260LD="$lt_cv_path_LD" 12261if test -n "$LD"; then 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12263$as_echo "$LD" >&6; } 12264else 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12266$as_echo "no" >&6; } 12267fi 12268test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12270$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12271if ${lt_cv_prog_gnu_ld+:} false; then : 12272 $as_echo_n "(cached) " >&6 12273else 12274 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12275case `$LD -v 2>&1 </dev/null` in 12276*GNU* | *'with BFD'*) 12277 lt_cv_prog_gnu_ld=yes 12278 ;; 12279*) 12280 lt_cv_prog_gnu_ld=no 12281 ;; 12282esac 12283fi 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12285$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12286with_gnu_ld=$lt_cv_prog_gnu_ld 12287 12288 12289 12290 12291 12292 12293 12294 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12295 # archiving commands below assume that GNU ld is being used. 12296 if test "$with_gnu_ld" = yes; then 12297 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12298 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' 12299 12300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12301 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12302 12303 # If archive_cmds runs LD, not CC, wlarc should be empty 12304 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12305 # investigate it a little bit more. (MM) 12306 wlarc='${wl}' 12307 12308 # ancient GNU ld didn't support --whole-archive et. al. 12309 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12310 $GREP 'no-whole-archive' > /dev/null; then 12311 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12312 else 12313 whole_archive_flag_spec_CXX= 12314 fi 12315 else 12316 with_gnu_ld=no 12317 wlarc= 12318 12319 # A generic and very simple default shared library creation 12320 # command for GNU C++ for the case where it uses the native 12321 # linker, instead of GNU ld. If possible, this setting should 12322 # overridden to take advantage of the native linker features on 12323 # the platform it is being used on. 12324 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12325 fi 12326 12327 # Commands to make compiler produce verbose output that lists 12328 # what "hidden" libraries, object files and flags are used when 12329 # linking a shared library. 12330 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12331 12332 else 12333 GXX=no 12334 with_gnu_ld=no 12335 wlarc= 12336 fi 12337 12338 # PORTME: fill in a description of your system's C++ link characteristics 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12340$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12341 ld_shlibs_CXX=yes 12342 case $host_os in 12343 aix3*) 12344 # FIXME: insert proper C++ library support 12345 ld_shlibs_CXX=no 12346 ;; 12347 aix[4-9]*) 12348 if test "$host_cpu" = ia64; then 12349 # On IA64, the linker does run time linking by default, so we don't 12350 # have to do anything special. 12351 aix_use_runtimelinking=no 12352 exp_sym_flag='-Bexport' 12353 no_entry_flag="" 12354 else 12355 aix_use_runtimelinking=no 12356 12357 # Test if we are trying to use run time linking or normal 12358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12359 # need to do runtime linking. 12360 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12361 for ld_flag in $LDFLAGS; do 12362 case $ld_flag in 12363 *-brtl*) 12364 aix_use_runtimelinking=yes 12365 break 12366 ;; 12367 esac 12368 done 12369 ;; 12370 esac 12371 12372 exp_sym_flag='-bexport' 12373 no_entry_flag='-bnoentry' 12374 fi 12375 12376 # When large executables or shared objects are built, AIX ld can 12377 # have problems creating the table of contents. If linking a library 12378 # or program results in "error TOC overflow" add -mminimal-toc to 12379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12381 12382 archive_cmds_CXX='' 12383 hardcode_direct_CXX=yes 12384 hardcode_direct_absolute_CXX=yes 12385 hardcode_libdir_separator_CXX=':' 12386 link_all_deplibs_CXX=yes 12387 file_list_spec_CXX='${wl}-f,' 12388 12389 if test "$GXX" = yes; then 12390 case $host_os in aix4.[012]|aix4.[012].*) 12391 # We only want to do this on AIX 4.2 and lower, the check 12392 # below for broken collect2 doesn't work under 4.3+ 12393 collect2name=`${CC} -print-prog-name=collect2` 12394 if test -f "$collect2name" && 12395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12396 then 12397 # We have reworked collect2 12398 : 12399 else 12400 # We have old collect2 12401 hardcode_direct_CXX=unsupported 12402 # It fails to find uninstalled libraries when the uninstalled 12403 # path is not listed in the libpath. Setting hardcode_minus_L 12404 # to unsupported forces relinking 12405 hardcode_minus_L_CXX=yes 12406 hardcode_libdir_flag_spec_CXX='-L$libdir' 12407 hardcode_libdir_separator_CXX= 12408 fi 12409 esac 12410 shared_flag='-shared' 12411 if test "$aix_use_runtimelinking" = yes; then 12412 shared_flag="$shared_flag "'${wl}-G' 12413 fi 12414 else 12415 # not using gcc 12416 if test "$host_cpu" = ia64; then 12417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12418 # chokes on -Wl,-G. The following line is correct: 12419 shared_flag='-G' 12420 else 12421 if test "$aix_use_runtimelinking" = yes; then 12422 shared_flag='${wl}-G' 12423 else 12424 shared_flag='${wl}-bM:SRE' 12425 fi 12426 fi 12427 fi 12428 12429 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12430 # It seems that -bexpall does not export symbols beginning with 12431 # underscore (_), so it is better to generate a list of symbols to 12432 # export. 12433 always_export_symbols_CXX=yes 12434 if test "$aix_use_runtimelinking" = yes; then 12435 # Warning - without using the other runtime loading flags (-brtl), 12436 # -berok will link without error, but may produce a broken library. 12437 allow_undefined_flag_CXX='-berok' 12438 # Determine the default libpath from the value encoded in an empty 12439 # executable. 12440 if test "${lt_cv_aix_libpath+set}" = set; then 12441 aix_libpath=$lt_cv_aix_libpath 12442else 12443 if ${lt_cv_aix_libpath__CXX+:} false; then : 12444 $as_echo_n "(cached) " >&6 12445else 12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12447/* end confdefs.h. */ 12448 12449int 12450main () 12451{ 12452 12453 ; 12454 return 0; 12455} 12456_ACEOF 12457if ac_fn_cxx_try_link "$LINENO"; then : 12458 12459 lt_aix_libpath_sed=' 12460 /Import File Strings/,/^$/ { 12461 /^0/ { 12462 s/^0 *\([^ ]*\) *$/\1/ 12463 p 12464 } 12465 }' 12466 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12467 # Check for a 64-bit object if we didn't find anything. 12468 if test -z "$lt_cv_aix_libpath__CXX"; then 12469 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12470 fi 12471fi 12472rm -f core conftest.err conftest.$ac_objext \ 12473 conftest$ac_exeext conftest.$ac_ext 12474 if test -z "$lt_cv_aix_libpath__CXX"; then 12475 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12476 fi 12477 12478fi 12479 12480 aix_libpath=$lt_cv_aix_libpath__CXX 12481fi 12482 12483 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12484 12485 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12486 else 12487 if test "$host_cpu" = ia64; then 12488 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12489 allow_undefined_flag_CXX="-z nodefs" 12490 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" 12491 else 12492 # Determine the default libpath from the value encoded in an 12493 # empty executable. 12494 if test "${lt_cv_aix_libpath+set}" = set; then 12495 aix_libpath=$lt_cv_aix_libpath 12496else 12497 if ${lt_cv_aix_libpath__CXX+:} false; then : 12498 $as_echo_n "(cached) " >&6 12499else 12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12501/* end confdefs.h. */ 12502 12503int 12504main () 12505{ 12506 12507 ; 12508 return 0; 12509} 12510_ACEOF 12511if ac_fn_cxx_try_link "$LINENO"; then : 12512 12513 lt_aix_libpath_sed=' 12514 /Import File Strings/,/^$/ { 12515 /^0/ { 12516 s/^0 *\([^ ]*\) *$/\1/ 12517 p 12518 } 12519 }' 12520 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12521 # Check for a 64-bit object if we didn't find anything. 12522 if test -z "$lt_cv_aix_libpath__CXX"; then 12523 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12524 fi 12525fi 12526rm -f core conftest.err conftest.$ac_objext \ 12527 conftest$ac_exeext conftest.$ac_ext 12528 if test -z "$lt_cv_aix_libpath__CXX"; then 12529 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12530 fi 12531 12532fi 12533 12534 aix_libpath=$lt_cv_aix_libpath__CXX 12535fi 12536 12537 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12538 # Warning - without using the other run time loading flags, 12539 # -berok will link without error, but may produce a broken library. 12540 no_undefined_flag_CXX=' ${wl}-bernotok' 12541 allow_undefined_flag_CXX=' ${wl}-berok' 12542 if test "$with_gnu_ld" = yes; then 12543 # We only use this code for GNU lds that support --whole-archive. 12544 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12545 else 12546 # Exported symbols can be pulled into shared objects from archives 12547 whole_archive_flag_spec_CXX='$convenience' 12548 fi 12549 archive_cmds_need_lc_CXX=yes 12550 # This is similar to how AIX traditionally builds its shared 12551 # libraries. 12552 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12553 fi 12554 fi 12555 ;; 12556 12557 beos*) 12558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12559 allow_undefined_flag_CXX=unsupported 12560 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12561 # support --undefined. This deserves some investigation. FIXME 12562 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12563 else 12564 ld_shlibs_CXX=no 12565 fi 12566 ;; 12567 12568 chorus*) 12569 case $cc_basename in 12570 *) 12571 # FIXME: insert proper C++ library support 12572 ld_shlibs_CXX=no 12573 ;; 12574 esac 12575 ;; 12576 12577 cygwin* | mingw* | pw32* | cegcc*) 12578 case $GXX,$cc_basename in 12579 ,cl* | no,cl*) 12580 # Native MSVC 12581 # hardcode_libdir_flag_spec is actually meaningless, as there is 12582 # no search path for DLLs. 12583 hardcode_libdir_flag_spec_CXX=' ' 12584 allow_undefined_flag_CXX=unsupported 12585 always_export_symbols_CXX=yes 12586 file_list_spec_CXX='@' 12587 # Tell ltmain to make .lib files, not .a files. 12588 libext=lib 12589 # Tell ltmain to make .dll files, not .so files. 12590 shrext_cmds=".dll" 12591 # FIXME: Setting linknames here is a bad hack. 12592 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12593 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12594 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12595 else 12596 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12597 fi~ 12598 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12599 linknames=' 12600 # The linker will not automatically build a static lib if we build a DLL. 12601 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12602 enable_shared_with_static_runtimes_CXX=yes 12603 # Don't use ranlib 12604 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12605 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12606 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12607 case $lt_outputfile in 12608 *.exe|*.EXE) ;; 12609 *) 12610 lt_outputfile="$lt_outputfile.exe" 12611 lt_tool_outputfile="$lt_tool_outputfile.exe" 12612 ;; 12613 esac~ 12614 func_to_tool_file "$lt_outputfile"~ 12615 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12616 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12617 $RM "$lt_outputfile.manifest"; 12618 fi' 12619 ;; 12620 *) 12621 # g++ 12622 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12623 # as there is no search path for DLLs. 12624 hardcode_libdir_flag_spec_CXX='-L$libdir' 12625 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12626 allow_undefined_flag_CXX=unsupported 12627 always_export_symbols_CXX=no 12628 enable_shared_with_static_runtimes_CXX=yes 12629 12630 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12631 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' 12632 # If the export-symbols file already is a .def file (1st line 12633 # is EXPORTS), use it as is; otherwise, prepend... 12634 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12635 cp $export_symbols $output_objdir/$soname.def; 12636 else 12637 echo EXPORTS > $output_objdir/$soname.def; 12638 cat $export_symbols >> $output_objdir/$soname.def; 12639 fi~ 12640 $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' 12641 else 12642 ld_shlibs_CXX=no 12643 fi 12644 ;; 12645 esac 12646 ;; 12647 darwin* | rhapsody*) 12648 12649 12650 archive_cmds_need_lc_CXX=no 12651 hardcode_direct_CXX=no 12652 hardcode_automatic_CXX=yes 12653 hardcode_shlibpath_var_CXX=unsupported 12654 if test "$lt_cv_ld_force_load" = "yes"; then 12655 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\"`' 12656 12657 else 12658 whole_archive_flag_spec_CXX='' 12659 fi 12660 link_all_deplibs_CXX=yes 12661 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12662 case $cc_basename in 12663 ifort*) _lt_dar_can_shared=yes ;; 12664 *) _lt_dar_can_shared=$GCC ;; 12665 esac 12666 if test "$_lt_dar_can_shared" = "yes"; then 12667 output_verbose_link_cmd=func_echo_all 12668 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}" 12669 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12670 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}" 12671 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}" 12672 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12673 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}" 12674 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}" 12675 fi 12676 12677 else 12678 ld_shlibs_CXX=no 12679 fi 12680 12681 ;; 12682 12683 dgux*) 12684 case $cc_basename in 12685 ec++*) 12686 # FIXME: insert proper C++ library support 12687 ld_shlibs_CXX=no 12688 ;; 12689 ghcx*) 12690 # Green Hills C++ Compiler 12691 # FIXME: insert proper C++ library support 12692 ld_shlibs_CXX=no 12693 ;; 12694 *) 12695 # FIXME: insert proper C++ library support 12696 ld_shlibs_CXX=no 12697 ;; 12698 esac 12699 ;; 12700 12701 freebsd2.*) 12702 # C++ shared libraries reported to be fairly broken before 12703 # switch to ELF 12704 ld_shlibs_CXX=no 12705 ;; 12706 12707 freebsd-elf*) 12708 archive_cmds_need_lc_CXX=no 12709 ;; 12710 12711 freebsd* | dragonfly*) 12712 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12713 # conventions 12714 ld_shlibs_CXX=yes 12715 ;; 12716 12717 gnu*) 12718 ;; 12719 12720 haiku*) 12721 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12722 link_all_deplibs_CXX=yes 12723 ;; 12724 12725 hpux9*) 12726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12727 hardcode_libdir_separator_CXX=: 12728 export_dynamic_flag_spec_CXX='${wl}-E' 12729 hardcode_direct_CXX=yes 12730 hardcode_minus_L_CXX=yes # Not in the search PATH, 12731 # but as the default 12732 # location of the library. 12733 12734 case $cc_basename in 12735 CC*) 12736 # FIXME: insert proper C++ library support 12737 ld_shlibs_CXX=no 12738 ;; 12739 aCC*) 12740 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12741 # Commands to make compiler produce verbose output that lists 12742 # what "hidden" libraries, object files and flags are used when 12743 # linking a shared library. 12744 # 12745 # There doesn't appear to be a way to prevent this compiler from 12746 # explicitly linking system object files so we need to strip them 12747 # from the output so that they don't get included in the library 12748 # dependencies. 12749 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"' 12750 ;; 12751 *) 12752 if test "$GXX" = yes; then 12753 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12754 else 12755 # FIXME: insert proper C++ library support 12756 ld_shlibs_CXX=no 12757 fi 12758 ;; 12759 esac 12760 ;; 12761 12762 hpux10*|hpux11*) 12763 if test $with_gnu_ld = no; then 12764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12765 hardcode_libdir_separator_CXX=: 12766 12767 case $host_cpu in 12768 hppa*64*|ia64*) 12769 ;; 12770 *) 12771 export_dynamic_flag_spec_CXX='${wl}-E' 12772 ;; 12773 esac 12774 fi 12775 case $host_cpu in 12776 hppa*64*|ia64*) 12777 hardcode_direct_CXX=no 12778 hardcode_shlibpath_var_CXX=no 12779 ;; 12780 *) 12781 hardcode_direct_CXX=yes 12782 hardcode_direct_absolute_CXX=yes 12783 hardcode_minus_L_CXX=yes # Not in the search PATH, 12784 # but as the default 12785 # location of the library. 12786 ;; 12787 esac 12788 12789 case $cc_basename in 12790 CC*) 12791 # FIXME: insert proper C++ library support 12792 ld_shlibs_CXX=no 12793 ;; 12794 aCC*) 12795 case $host_cpu in 12796 hppa*64*) 12797 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12798 ;; 12799 ia64*) 12800 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12801 ;; 12802 *) 12803 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12804 ;; 12805 esac 12806 # Commands to make compiler produce verbose output that lists 12807 # what "hidden" libraries, object files and flags are used when 12808 # linking a shared library. 12809 # 12810 # There doesn't appear to be a way to prevent this compiler from 12811 # explicitly linking system object files so we need to strip them 12812 # from the output so that they don't get included in the library 12813 # dependencies. 12814 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"' 12815 ;; 12816 *) 12817 if test "$GXX" = yes; then 12818 if test $with_gnu_ld = no; then 12819 case $host_cpu in 12820 hppa*64*) 12821 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12822 ;; 12823 ia64*) 12824 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12825 ;; 12826 *) 12827 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' 12828 ;; 12829 esac 12830 fi 12831 else 12832 # FIXME: insert proper C++ library support 12833 ld_shlibs_CXX=no 12834 fi 12835 ;; 12836 esac 12837 ;; 12838 12839 interix[3-9]*) 12840 hardcode_direct_CXX=no 12841 hardcode_shlibpath_var_CXX=no 12842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12843 export_dynamic_flag_spec_CXX='${wl}-E' 12844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12845 # Instead, shared libraries are loaded at an image base (0x10000000 by 12846 # default) and relocated if they conflict, which is a slow very memory 12847 # consuming and fragmenting process. To avoid this, we pick a random, 12848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12849 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12850 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' 12851 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' 12852 ;; 12853 irix5* | irix6*) 12854 case $cc_basename in 12855 CC*) 12856 # SGI C++ 12857 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' 12858 12859 # Archives containing C++ object files must be created using 12860 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12861 # necessary to make sure instantiated templates are included 12862 # in the archive. 12863 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12864 ;; 12865 *) 12866 if test "$GXX" = yes; then 12867 if test "$with_gnu_ld" = no; then 12868 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' 12869 else 12870 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' 12871 fi 12872 fi 12873 link_all_deplibs_CXX=yes 12874 ;; 12875 esac 12876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12877 hardcode_libdir_separator_CXX=: 12878 inherit_rpath_CXX=yes 12879 ;; 12880 12881 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12882 case $cc_basename in 12883 KCC*) 12884 # Kuck and Associates, Inc. (KAI) C++ Compiler 12885 12886 # KCC will only create a shared library if the output file 12887 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12888 # to its proper name (with version) after linking. 12889 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' 12890 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' 12891 # Commands to make compiler produce verbose output that lists 12892 # what "hidden" libraries, object files and flags are used when 12893 # linking a shared library. 12894 # 12895 # There doesn't appear to be a way to prevent this compiler from 12896 # explicitly linking system object files so we need to strip them 12897 # from the output so that they don't get included in the library 12898 # dependencies. 12899 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"' 12900 12901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12903 12904 # Archives containing C++ object files must be created using 12905 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12906 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12907 ;; 12908 icpc* | ecpc* ) 12909 # Intel C++ 12910 with_gnu_ld=yes 12911 # version 8.0 and above of icpc choke on multiply defined symbols 12912 # if we add $predep_objects and $postdep_objects, however 7.1 and 12913 # earlier do not add the objects themselves. 12914 case `$CC -V 2>&1` in 12915 *"Version 7."*) 12916 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12917 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' 12918 ;; 12919 *) # Version 8.0 or newer 12920 tmp_idyn= 12921 case $host_cpu in 12922 ia64*) tmp_idyn=' -i_dynamic';; 12923 esac 12924 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12925 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' 12926 ;; 12927 esac 12928 archive_cmds_need_lc_CXX=no 12929 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12931 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12932 ;; 12933 pgCC* | pgcpp*) 12934 # Portland Group C++ compiler 12935 case `$CC -V` in 12936 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12937 prelink_cmds_CXX='tpldir=Template.dir~ 12938 rm -rf $tpldir~ 12939 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12940 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12941 old_archive_cmds_CXX='tpldir=Template.dir~ 12942 rm -rf $tpldir~ 12943 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12944 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12945 $RANLIB $oldlib' 12946 archive_cmds_CXX='tpldir=Template.dir~ 12947 rm -rf $tpldir~ 12948 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12949 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12950 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12951 rm -rf $tpldir~ 12952 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12953 $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' 12954 ;; 12955 *) # Version 6 and above use weak symbols 12956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12957 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' 12958 ;; 12959 esac 12960 12961 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12963 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' 12964 ;; 12965 cxx*) 12966 # Compaq C++ 12967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12968 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' 12969 12970 runpath_var=LD_RUN_PATH 12971 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12972 hardcode_libdir_separator_CXX=: 12973 12974 # Commands to make compiler produce verbose output that lists 12975 # what "hidden" libraries, object files and flags are used when 12976 # linking a shared library. 12977 # 12978 # There doesn't appear to be a way to prevent this compiler from 12979 # explicitly linking system object files so we need to strip them 12980 # from the output so that they don't get included in the library 12981 # dependencies. 12982 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' 12983 ;; 12984 xl* | mpixl* | bgxl*) 12985 # IBM XL 8.0 on PPC, with GNU ld 12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12988 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12989 if test "x$supports_anon_versioning" = xyes; then 12990 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12992 echo "local: *; };" >> $output_objdir/$libname.ver~ 12993 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12994 fi 12995 ;; 12996 *) 12997 case `$CC -V 2>&1 | sed 5q` in 12998 *Sun\ C*) 12999 # Sun C++ 5.9 13000 no_undefined_flag_CXX=' -zdefs' 13001 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13002 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' 13003 hardcode_libdir_flag_spec_CXX='-R$libdir' 13004 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' 13005 compiler_needs_object_CXX=yes 13006 13007 # Not sure whether something based on 13008 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13009 # would be better. 13010 output_verbose_link_cmd='func_echo_all' 13011 13012 # Archives containing C++ object files must be created using 13013 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13014 # necessary to make sure instantiated templates are included 13015 # in the archive. 13016 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13017 ;; 13018 esac 13019 ;; 13020 esac 13021 ;; 13022 13023 lynxos*) 13024 # FIXME: insert proper C++ library support 13025 ld_shlibs_CXX=no 13026 ;; 13027 13028 m88k*) 13029 # FIXME: insert proper C++ library support 13030 ld_shlibs_CXX=no 13031 ;; 13032 13033 mvs*) 13034 case $cc_basename in 13035 cxx*) 13036 # FIXME: insert proper C++ library support 13037 ld_shlibs_CXX=no 13038 ;; 13039 *) 13040 # FIXME: insert proper C++ library support 13041 ld_shlibs_CXX=no 13042 ;; 13043 esac 13044 ;; 13045 13046 netbsd*) 13047 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13048 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13049 wlarc= 13050 hardcode_libdir_flag_spec_CXX='-R$libdir' 13051 hardcode_direct_CXX=yes 13052 hardcode_shlibpath_var_CXX=no 13053 fi 13054 # Workaround some broken pre-1.5 toolchains 13055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13056 ;; 13057 13058 *nto* | *qnx*) 13059 ld_shlibs_CXX=yes 13060 ;; 13061 13062 openbsd2*) 13063 # C++ shared libraries are fairly broken 13064 ld_shlibs_CXX=no 13065 ;; 13066 13067 openbsd*) 13068 if test -f /usr/libexec/ld.so; then 13069 hardcode_direct_CXX=yes 13070 hardcode_shlibpath_var_CXX=no 13071 hardcode_direct_absolute_CXX=yes 13072 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13075 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13076 export_dynamic_flag_spec_CXX='${wl}-E' 13077 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13078 fi 13079 output_verbose_link_cmd=func_echo_all 13080 else 13081 ld_shlibs_CXX=no 13082 fi 13083 ;; 13084 13085 osf3* | osf4* | osf5*) 13086 case $cc_basename in 13087 KCC*) 13088 # Kuck and Associates, Inc. (KAI) C++ Compiler 13089 13090 # KCC will only create a shared library if the output file 13091 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13092 # to its proper name (with version) after linking. 13093 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' 13094 13095 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13096 hardcode_libdir_separator_CXX=: 13097 13098 # Archives containing C++ object files must be created using 13099 # the KAI C++ compiler. 13100 case $host in 13101 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13102 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13103 esac 13104 ;; 13105 RCC*) 13106 # Rational C++ 2.4.1 13107 # FIXME: insert proper C++ library support 13108 ld_shlibs_CXX=no 13109 ;; 13110 cxx*) 13111 case $host in 13112 osf3*) 13113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13114 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' 13115 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13116 ;; 13117 *) 13118 allow_undefined_flag_CXX=' -expect_unresolved \*' 13119 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' 13120 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13121 echo "-hidden">> $lib.exp~ 13122 $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~ 13123 $RM $lib.exp' 13124 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13125 ;; 13126 esac 13127 13128 hardcode_libdir_separator_CXX=: 13129 13130 # Commands to make compiler produce verbose output that lists 13131 # what "hidden" libraries, object files and flags are used when 13132 # linking a shared library. 13133 # 13134 # There doesn't appear to be a way to prevent this compiler from 13135 # explicitly linking system object files so we need to strip them 13136 # from the output so that they don't get included in the library 13137 # dependencies. 13138 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $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"' 13139 ;; 13140 *) 13141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13143 case $host in 13144 osf3*) 13145 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' 13146 ;; 13147 *) 13148 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' 13149 ;; 13150 esac 13151 13152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13153 hardcode_libdir_separator_CXX=: 13154 13155 # Commands to make compiler produce verbose output that lists 13156 # what "hidden" libraries, object files and flags are used when 13157 # linking a shared library. 13158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13159 13160 else 13161 # FIXME: insert proper C++ library support 13162 ld_shlibs_CXX=no 13163 fi 13164 ;; 13165 esac 13166 ;; 13167 13168 psos*) 13169 # FIXME: insert proper C++ library support 13170 ld_shlibs_CXX=no 13171 ;; 13172 13173 sunos4*) 13174 case $cc_basename in 13175 CC*) 13176 # Sun C++ 4.x 13177 # FIXME: insert proper C++ library support 13178 ld_shlibs_CXX=no 13179 ;; 13180 lcc*) 13181 # Lucid 13182 # FIXME: insert proper C++ library support 13183 ld_shlibs_CXX=no 13184 ;; 13185 *) 13186 # FIXME: insert proper C++ library support 13187 ld_shlibs_CXX=no 13188 ;; 13189 esac 13190 ;; 13191 13192 solaris*) 13193 case $cc_basename in 13194 CC* | sunCC*) 13195 # Sun C++ 4.2, 5.x and Centerline C++ 13196 archive_cmds_need_lc_CXX=yes 13197 no_undefined_flag_CXX=' -zdefs' 13198 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13199 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13200 $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' 13201 13202 hardcode_libdir_flag_spec_CXX='-R$libdir' 13203 hardcode_shlibpath_var_CXX=no 13204 case $host_os in 13205 solaris2.[0-5] | solaris2.[0-5].*) ;; 13206 *) 13207 # The compiler driver will combine and reorder linker options, 13208 # but understands `-z linker_flag'. 13209 # Supported since Solaris 2.6 (maybe 2.5.1?) 13210 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13211 ;; 13212 esac 13213 link_all_deplibs_CXX=yes 13214 13215 output_verbose_link_cmd='func_echo_all' 13216 13217 # Archives containing C++ object files must be created using 13218 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13219 # necessary to make sure instantiated templates are included 13220 # in the archive. 13221 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13222 ;; 13223 gcx*) 13224 # Green Hills C++ Compiler 13225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13226 13227 # The C++ compiler must be used to create the archive. 13228 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13229 ;; 13230 *) 13231 # GNU C++ compiler with Solaris linker 13232 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13233 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13234 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13235 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13236 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13237 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13238 13239 # Commands to make compiler produce verbose output that lists 13240 # what "hidden" libraries, object files and flags are used when 13241 # linking a shared library. 13242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13243 else 13244 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13245 # platform. 13246 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13247 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13248 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13249 13250 # Commands to make compiler produce verbose output that lists 13251 # what "hidden" libraries, object files and flags are used when 13252 # linking a shared library. 13253 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13254 fi 13255 13256 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13257 case $host_os in 13258 solaris2.[0-5] | solaris2.[0-5].*) ;; 13259 *) 13260 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13261 ;; 13262 esac 13263 fi 13264 ;; 13265 esac 13266 ;; 13267 13268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13269 no_undefined_flag_CXX='${wl}-z,text' 13270 archive_cmds_need_lc_CXX=no 13271 hardcode_shlibpath_var_CXX=no 13272 runpath_var='LD_RUN_PATH' 13273 13274 case $cc_basename in 13275 CC*) 13276 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13277 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13278 ;; 13279 *) 13280 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13281 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13282 ;; 13283 esac 13284 ;; 13285 13286 sysv5* | sco3.2v5* | sco5v6*) 13287 # Note: We can NOT use -z defs as we might desire, because we do not 13288 # link with -lc, and that would cause any symbols used from libc to 13289 # always be unresolved, which means just about no library would 13290 # ever link correctly. If we're not using GNU ld we use -z text 13291 # though, which does catch some bad symbols but isn't as heavy-handed 13292 # as -z defs. 13293 no_undefined_flag_CXX='${wl}-z,text' 13294 allow_undefined_flag_CXX='${wl}-z,nodefs' 13295 archive_cmds_need_lc_CXX=no 13296 hardcode_shlibpath_var_CXX=no 13297 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13298 hardcode_libdir_separator_CXX=':' 13299 link_all_deplibs_CXX=yes 13300 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13301 runpath_var='LD_RUN_PATH' 13302 13303 case $cc_basename in 13304 CC*) 13305 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13306 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13307 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13308 '"$old_archive_cmds_CXX" 13309 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13310 '"$reload_cmds_CXX" 13311 ;; 13312 *) 13313 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13314 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13315 ;; 13316 esac 13317 ;; 13318 13319 tandem*) 13320 case $cc_basename in 13321 NCC*) 13322 # NonStop-UX NCC 3.20 13323 # FIXME: insert proper C++ library support 13324 ld_shlibs_CXX=no 13325 ;; 13326 *) 13327 # FIXME: insert proper C++ library support 13328 ld_shlibs_CXX=no 13329 ;; 13330 esac 13331 ;; 13332 13333 vxworks*) 13334 # FIXME: insert proper C++ library support 13335 ld_shlibs_CXX=no 13336 ;; 13337 13338 *) 13339 # FIXME: insert proper C++ library support 13340 ld_shlibs_CXX=no 13341 ;; 13342 esac 13343 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13345$as_echo "$ld_shlibs_CXX" >&6; } 13346 test "$ld_shlibs_CXX" = no && can_build_shared=no 13347 13348 GCC_CXX="$GXX" 13349 LD_CXX="$LD" 13350 13351 ## CAVEAT EMPTOR: 13352 ## There is no encapsulation within the following macros, do not change 13353 ## the running order or otherwise move them around unless you know exactly 13354 ## what you are doing... 13355 # Dependencies to place before and after the object being linked: 13356predep_objects_CXX= 13357postdep_objects_CXX= 13358predeps_CXX= 13359postdeps_CXX= 13360compiler_lib_search_path_CXX= 13361 13362cat > conftest.$ac_ext <<_LT_EOF 13363class Foo 13364{ 13365public: 13366 Foo (void) { a = 0; } 13367private: 13368 int a; 13369}; 13370_LT_EOF 13371 13372 13373_lt_libdeps_save_CFLAGS=$CFLAGS 13374case "$CC $CFLAGS " in #( 13375*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13376*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13377*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13378esac 13379 13380if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13381 (eval $ac_compile) 2>&5 13382 ac_status=$? 13383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13384 test $ac_status = 0; }; then 13385 # Parse the compiler output and extract the necessary 13386 # objects, libraries and library flags. 13387 13388 # Sentinel used to keep track of whether or not we are before 13389 # the conftest object file. 13390 pre_test_object_deps_done=no 13391 13392 for p in `eval "$output_verbose_link_cmd"`; do 13393 case ${prev}${p} in 13394 13395 -L* | -R* | -l*) 13396 # Some compilers place space between "-{L,R}" and the path. 13397 # Remove the space. 13398 if test $p = "-L" || 13399 test $p = "-R"; then 13400 prev=$p 13401 continue 13402 fi 13403 13404 # Expand the sysroot to ease extracting the directories later. 13405 if test -z "$prev"; then 13406 case $p in 13407 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13408 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13409 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13410 esac 13411 fi 13412 case $p in 13413 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13414 esac 13415 if test "$pre_test_object_deps_done" = no; then 13416 case ${prev} in 13417 -L | -R) 13418 # Internal compiler library paths should come after those 13419 # provided the user. The postdeps already come after the 13420 # user supplied libs so there is no need to process them. 13421 if test -z "$compiler_lib_search_path_CXX"; then 13422 compiler_lib_search_path_CXX="${prev}${p}" 13423 else 13424 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13425 fi 13426 ;; 13427 # The "-l" case would never come before the object being 13428 # linked, so don't bother handling this case. 13429 esac 13430 else 13431 if test -z "$postdeps_CXX"; then 13432 postdeps_CXX="${prev}${p}" 13433 else 13434 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13435 fi 13436 fi 13437 prev= 13438 ;; 13439 13440 *.lto.$objext) ;; # Ignore GCC LTO objects 13441 *.$objext) 13442 # This assumes that the test object file only shows up 13443 # once in the compiler output. 13444 if test "$p" = "conftest.$objext"; then 13445 pre_test_object_deps_done=yes 13446 continue 13447 fi 13448 13449 if test "$pre_test_object_deps_done" = no; then 13450 if test -z "$predep_objects_CXX"; then 13451 predep_objects_CXX="$p" 13452 else 13453 predep_objects_CXX="$predep_objects_CXX $p" 13454 fi 13455 else 13456 if test -z "$postdep_objects_CXX"; then 13457 postdep_objects_CXX="$p" 13458 else 13459 postdep_objects_CXX="$postdep_objects_CXX $p" 13460 fi 13461 fi 13462 ;; 13463 13464 *) ;; # Ignore the rest. 13465 13466 esac 13467 done 13468 13469 # Clean up. 13470 rm -f a.out a.exe 13471else 13472 echo "libtool.m4: error: problem compiling CXX test program" 13473fi 13474 13475$RM -f confest.$objext 13476CFLAGS=$_lt_libdeps_save_CFLAGS 13477 13478# PORTME: override above test on systems where it is broken 13479case $host_os in 13480interix[3-9]*) 13481 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13482 # hack all around it, let's just trust "g++" to DTRT. 13483 predep_objects_CXX= 13484 postdep_objects_CXX= 13485 postdeps_CXX= 13486 ;; 13487 13488linux*) 13489 case `$CC -V 2>&1 | sed 5q` in 13490 *Sun\ C*) 13491 # Sun C++ 5.9 13492 13493 # The more standards-conforming stlport4 library is 13494 # incompatible with the Cstd library. Avoid specifying 13495 # it if it's in CXXFLAGS. Ignore libCrun as 13496 # -library=stlport4 depends on it. 13497 case " $CXX $CXXFLAGS " in 13498 *" -library=stlport4 "*) 13499 solaris_use_stlport4=yes 13500 ;; 13501 esac 13502 13503 if test "$solaris_use_stlport4" != yes; then 13504 postdeps_CXX='-library=Cstd -library=Crun' 13505 fi 13506 ;; 13507 esac 13508 ;; 13509 13510solaris*) 13511 case $cc_basename in 13512 CC* | sunCC*) 13513 # The more standards-conforming stlport4 library is 13514 # incompatible with the Cstd library. Avoid specifying 13515 # it if it's in CXXFLAGS. Ignore libCrun as 13516 # -library=stlport4 depends on it. 13517 case " $CXX $CXXFLAGS " in 13518 *" -library=stlport4 "*) 13519 solaris_use_stlport4=yes 13520 ;; 13521 esac 13522 13523 # Adding this requires a known-good setup of shared libraries for 13524 # Sun compiler versions before 5.6, else PIC objects from an old 13525 # archive will be linked into the output, leading to subtle bugs. 13526 if test "$solaris_use_stlport4" != yes; then 13527 postdeps_CXX='-library=Cstd -library=Crun' 13528 fi 13529 ;; 13530 esac 13531 ;; 13532esac 13533 13534 13535case " $postdeps_CXX " in 13536*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13537esac 13538 compiler_lib_search_dirs_CXX= 13539if test -n "${compiler_lib_search_path_CXX}"; then 13540 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13541fi 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 lt_prog_compiler_wl_CXX= 13574lt_prog_compiler_pic_CXX= 13575lt_prog_compiler_static_CXX= 13576 13577 13578 # C++ specific cases for pic, static, wl, etc. 13579 if test "$GXX" = yes; then 13580 lt_prog_compiler_wl_CXX='-Wl,' 13581 lt_prog_compiler_static_CXX='-static' 13582 13583 case $host_os in 13584 aix*) 13585 # All AIX code is PIC. 13586 if test "$host_cpu" = ia64; then 13587 # AIX 5 now supports IA64 processor 13588 lt_prog_compiler_static_CXX='-Bstatic' 13589 fi 13590 ;; 13591 13592 amigaos*) 13593 case $host_cpu in 13594 powerpc) 13595 # see comment about AmigaOS4 .so support 13596 lt_prog_compiler_pic_CXX='-fPIC' 13597 ;; 13598 m68k) 13599 # FIXME: we need at least 68020 code to build shared libraries, but 13600 # adding the `-m68020' flag to GCC prevents building anything better, 13601 # like `-m68040'. 13602 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13603 ;; 13604 esac 13605 ;; 13606 13607 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13608 # PIC is the default for these OSes. 13609 ;; 13610 mingw* | cygwin* | os2* | pw32* | cegcc*) 13611 # This hack is so that the source file can tell whether it is being 13612 # built for inclusion in a dll (and should export symbols for example). 13613 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13614 # (--disable-auto-import) libraries 13615 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13616 ;; 13617 darwin* | rhapsody*) 13618 # PIC is the default on this platform 13619 # Common symbols not allowed in MH_DYLIB files 13620 lt_prog_compiler_pic_CXX='-fno-common' 13621 ;; 13622 *djgpp*) 13623 # DJGPP does not support shared libraries at all 13624 lt_prog_compiler_pic_CXX= 13625 ;; 13626 haiku*) 13627 # PIC is the default for Haiku. 13628 # The "-static" flag exists, but is broken. 13629 lt_prog_compiler_static_CXX= 13630 ;; 13631 interix[3-9]*) 13632 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13633 # Instead, we relocate shared libraries at runtime. 13634 ;; 13635 sysv4*MP*) 13636 if test -d /usr/nec; then 13637 lt_prog_compiler_pic_CXX=-Kconform_pic 13638 fi 13639 ;; 13640 hpux*) 13641 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13642 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13643 # sets the default TLS model and affects inlining. 13644 case $host_cpu in 13645 hppa*64*) 13646 ;; 13647 *) 13648 lt_prog_compiler_pic_CXX='-fPIC' 13649 ;; 13650 esac 13651 ;; 13652 *qnx* | *nto*) 13653 # QNX uses GNU C++, but need to define -shared option too, otherwise 13654 # it will coredump. 13655 lt_prog_compiler_pic_CXX='-fPIC -shared' 13656 ;; 13657 *) 13658 lt_prog_compiler_pic_CXX='-fPIC' 13659 ;; 13660 esac 13661 else 13662 case $host_os in 13663 aix[4-9]*) 13664 # All AIX code is PIC. 13665 if test "$host_cpu" = ia64; then 13666 # AIX 5 now supports IA64 processor 13667 lt_prog_compiler_static_CXX='-Bstatic' 13668 else 13669 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13670 fi 13671 ;; 13672 chorus*) 13673 case $cc_basename in 13674 cxch68*) 13675 # Green Hills C++ Compiler 13676 # _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" 13677 ;; 13678 esac 13679 ;; 13680 mingw* | cygwin* | os2* | pw32* | cegcc*) 13681 # This hack is so that the source file can tell whether it is being 13682 # built for inclusion in a dll (and should export symbols for example). 13683 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13684 ;; 13685 dgux*) 13686 case $cc_basename in 13687 ec++*) 13688 lt_prog_compiler_pic_CXX='-KPIC' 13689 ;; 13690 ghcx*) 13691 # Green Hills C++ Compiler 13692 lt_prog_compiler_pic_CXX='-pic' 13693 ;; 13694 *) 13695 ;; 13696 esac 13697 ;; 13698 freebsd* | dragonfly*) 13699 # FreeBSD uses GNU C++ 13700 ;; 13701 hpux9* | hpux10* | hpux11*) 13702 case $cc_basename in 13703 CC*) 13704 lt_prog_compiler_wl_CXX='-Wl,' 13705 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13706 if test "$host_cpu" != ia64; then 13707 lt_prog_compiler_pic_CXX='+Z' 13708 fi 13709 ;; 13710 aCC*) 13711 lt_prog_compiler_wl_CXX='-Wl,' 13712 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13713 case $host_cpu in 13714 hppa*64*|ia64*) 13715 # +Z the default 13716 ;; 13717 *) 13718 lt_prog_compiler_pic_CXX='+Z' 13719 ;; 13720 esac 13721 ;; 13722 *) 13723 ;; 13724 esac 13725 ;; 13726 interix*) 13727 # This is c89, which is MS Visual C++ (no shared libs) 13728 # Anyone wants to do a port? 13729 ;; 13730 irix5* | irix6* | nonstopux*) 13731 case $cc_basename in 13732 CC*) 13733 lt_prog_compiler_wl_CXX='-Wl,' 13734 lt_prog_compiler_static_CXX='-non_shared' 13735 # CC pic flag -KPIC is the default. 13736 ;; 13737 *) 13738 ;; 13739 esac 13740 ;; 13741 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13742 case $cc_basename in 13743 KCC*) 13744 # KAI C++ Compiler 13745 lt_prog_compiler_wl_CXX='--backend -Wl,' 13746 lt_prog_compiler_pic_CXX='-fPIC' 13747 ;; 13748 ecpc* ) 13749 # old Intel C++ for x86_64 which still supported -KPIC. 13750 lt_prog_compiler_wl_CXX='-Wl,' 13751 lt_prog_compiler_pic_CXX='-KPIC' 13752 lt_prog_compiler_static_CXX='-static' 13753 ;; 13754 icpc* ) 13755 # Intel C++, used to be incompatible with GCC. 13756 # ICC 10 doesn't accept -KPIC any more. 13757 lt_prog_compiler_wl_CXX='-Wl,' 13758 lt_prog_compiler_pic_CXX='-fPIC' 13759 lt_prog_compiler_static_CXX='-static' 13760 ;; 13761 pgCC* | pgcpp*) 13762 # Portland Group C++ compiler 13763 lt_prog_compiler_wl_CXX='-Wl,' 13764 lt_prog_compiler_pic_CXX='-fpic' 13765 lt_prog_compiler_static_CXX='-Bstatic' 13766 ;; 13767 cxx*) 13768 # Compaq C++ 13769 # Make sure the PIC flag is empty. It appears that all Alpha 13770 # Linux and Compaq Tru64 Unix objects are PIC. 13771 lt_prog_compiler_pic_CXX= 13772 lt_prog_compiler_static_CXX='-non_shared' 13773 ;; 13774 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13775 # IBM XL 8.0, 9.0 on PPC and BlueGene 13776 lt_prog_compiler_wl_CXX='-Wl,' 13777 lt_prog_compiler_pic_CXX='-qpic' 13778 lt_prog_compiler_static_CXX='-qstaticlink' 13779 ;; 13780 *) 13781 case `$CC -V 2>&1 | sed 5q` in 13782 *Sun\ C*) 13783 # Sun C++ 5.9 13784 lt_prog_compiler_pic_CXX='-KPIC' 13785 lt_prog_compiler_static_CXX='-Bstatic' 13786 lt_prog_compiler_wl_CXX='-Qoption ld ' 13787 ;; 13788 esac 13789 ;; 13790 esac 13791 ;; 13792 lynxos*) 13793 ;; 13794 m88k*) 13795 ;; 13796 mvs*) 13797 case $cc_basename in 13798 cxx*) 13799 lt_prog_compiler_pic_CXX='-W c,exportall' 13800 ;; 13801 *) 13802 ;; 13803 esac 13804 ;; 13805 netbsd*) 13806 ;; 13807 *qnx* | *nto*) 13808 # QNX uses GNU C++, but need to define -shared option too, otherwise 13809 # it will coredump. 13810 lt_prog_compiler_pic_CXX='-fPIC -shared' 13811 ;; 13812 osf3* | osf4* | osf5*) 13813 case $cc_basename in 13814 KCC*) 13815 lt_prog_compiler_wl_CXX='--backend -Wl,' 13816 ;; 13817 RCC*) 13818 # Rational C++ 2.4.1 13819 lt_prog_compiler_pic_CXX='-pic' 13820 ;; 13821 cxx*) 13822 # Digital/Compaq C++ 13823 lt_prog_compiler_wl_CXX='-Wl,' 13824 # Make sure the PIC flag is empty. It appears that all Alpha 13825 # Linux and Compaq Tru64 Unix objects are PIC. 13826 lt_prog_compiler_pic_CXX= 13827 lt_prog_compiler_static_CXX='-non_shared' 13828 ;; 13829 *) 13830 ;; 13831 esac 13832 ;; 13833 psos*) 13834 ;; 13835 solaris*) 13836 case $cc_basename in 13837 CC* | sunCC*) 13838 # Sun C++ 4.2, 5.x and Centerline C++ 13839 lt_prog_compiler_pic_CXX='-KPIC' 13840 lt_prog_compiler_static_CXX='-Bstatic' 13841 lt_prog_compiler_wl_CXX='-Qoption ld ' 13842 ;; 13843 gcx*) 13844 # Green Hills C++ Compiler 13845 lt_prog_compiler_pic_CXX='-PIC' 13846 ;; 13847 *) 13848 ;; 13849 esac 13850 ;; 13851 sunos4*) 13852 case $cc_basename in 13853 CC*) 13854 # Sun C++ 4.x 13855 lt_prog_compiler_pic_CXX='-pic' 13856 lt_prog_compiler_static_CXX='-Bstatic' 13857 ;; 13858 lcc*) 13859 # Lucid 13860 lt_prog_compiler_pic_CXX='-pic' 13861 ;; 13862 *) 13863 ;; 13864 esac 13865 ;; 13866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13867 case $cc_basename in 13868 CC*) 13869 lt_prog_compiler_wl_CXX='-Wl,' 13870 lt_prog_compiler_pic_CXX='-KPIC' 13871 lt_prog_compiler_static_CXX='-Bstatic' 13872 ;; 13873 esac 13874 ;; 13875 tandem*) 13876 case $cc_basename in 13877 NCC*) 13878 # NonStop-UX NCC 3.20 13879 lt_prog_compiler_pic_CXX='-KPIC' 13880 ;; 13881 *) 13882 ;; 13883 esac 13884 ;; 13885 vxworks*) 13886 ;; 13887 *) 13888 lt_prog_compiler_can_build_shared_CXX=no 13889 ;; 13890 esac 13891 fi 13892 13893case $host_os in 13894 # For platforms which do not support PIC, -DPIC is meaningless: 13895 *djgpp*) 13896 lt_prog_compiler_pic_CXX= 13897 ;; 13898 *) 13899 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13900 ;; 13901esac 13902 13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13904$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13905if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 13906 $as_echo_n "(cached) " >&6 13907else 13908 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 13909fi 13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 13911$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 13912lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 13913 13914# 13915# Check to make sure the PIC flag actually works. 13916# 13917if test -n "$lt_prog_compiler_pic_CXX"; then 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13919$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13920if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13921 $as_echo_n "(cached) " >&6 13922else 13923 lt_cv_prog_compiler_pic_works_CXX=no 13924 ac_outfile=conftest.$ac_objext 13925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13926 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13927 # Insert the option either (1) after the last *FLAGS variable, or 13928 # (2) before a word containing "conftest.", or (3) at the end. 13929 # Note that $ac_compile itself does not contain backslashes and begins 13930 # with a dollar sign (not a hyphen), so the echo should work correctly. 13931 # The option is referenced via a variable to avoid confusing sed. 13932 lt_compile=`echo "$ac_compile" | $SED \ 13933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13935 -e 's:$: $lt_compiler_flag:'` 13936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13937 (eval "$lt_compile" 2>conftest.err) 13938 ac_status=$? 13939 cat conftest.err >&5 13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13941 if (exit $ac_status) && test -s "$ac_outfile"; then 13942 # The compiler can only warn and ignore the option if not recognized 13943 # So say no if there are warnings other than the usual output. 13944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13947 lt_cv_prog_compiler_pic_works_CXX=yes 13948 fi 13949 fi 13950 $RM conftest* 13951 13952fi 13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13954$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13955 13956if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13957 case $lt_prog_compiler_pic_CXX in 13958 "" | " "*) ;; 13959 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13960 esac 13961else 13962 lt_prog_compiler_pic_CXX= 13963 lt_prog_compiler_can_build_shared_CXX=no 13964fi 13965 13966fi 13967 13968 13969 13970 13971 13972# 13973# Check to make sure the static flag actually works. 13974# 13975wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13977$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13978if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13979 $as_echo_n "(cached) " >&6 13980else 13981 lt_cv_prog_compiler_static_works_CXX=no 13982 save_LDFLAGS="$LDFLAGS" 13983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13984 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13986 # The linker can only warn and ignore the option if not recognized 13987 # So say no if there are warnings 13988 if test -s conftest.err; then 13989 # Append any errors to the config.log. 13990 cat conftest.err 1>&5 13991 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13993 if diff conftest.exp conftest.er2 >/dev/null; then 13994 lt_cv_prog_compiler_static_works_CXX=yes 13995 fi 13996 else 13997 lt_cv_prog_compiler_static_works_CXX=yes 13998 fi 13999 fi 14000 $RM -r conftest* 14001 LDFLAGS="$save_LDFLAGS" 14002 14003fi 14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14005$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14006 14007if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14008 : 14009else 14010 lt_prog_compiler_static_CXX= 14011fi 14012 14013 14014 14015 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14017$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14018if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14019 $as_echo_n "(cached) " >&6 14020else 14021 lt_cv_prog_compiler_c_o_CXX=no 14022 $RM -r conftest 2>/dev/null 14023 mkdir conftest 14024 cd conftest 14025 mkdir out 14026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14027 14028 lt_compiler_flag="-o out/conftest2.$ac_objext" 14029 # Insert the option either (1) after the last *FLAGS variable, or 14030 # (2) before a word containing "conftest.", or (3) at the end. 14031 # Note that $ac_compile itself does not contain backslashes and begins 14032 # with a dollar sign (not a hyphen), so the echo should work correctly. 14033 lt_compile=`echo "$ac_compile" | $SED \ 14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14036 -e 's:$: $lt_compiler_flag:'` 14037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14038 (eval "$lt_compile" 2>out/conftest.err) 14039 ac_status=$? 14040 cat out/conftest.err >&5 14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14042 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14043 then 14044 # The compiler can only warn and ignore the option if not recognized 14045 # So say no if there are warnings 14046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14049 lt_cv_prog_compiler_c_o_CXX=yes 14050 fi 14051 fi 14052 chmod u+w . 2>&5 14053 $RM conftest* 14054 # SGI C++ compiler will create directory out/ii_files/ for 14055 # template instantiation 14056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14057 $RM out/* && rmdir out 14058 cd .. 14059 $RM -r conftest 14060 $RM conftest* 14061 14062fi 14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14064$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14065 14066 14067 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14069$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14070if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14071 $as_echo_n "(cached) " >&6 14072else 14073 lt_cv_prog_compiler_c_o_CXX=no 14074 $RM -r conftest 2>/dev/null 14075 mkdir conftest 14076 cd conftest 14077 mkdir out 14078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14079 14080 lt_compiler_flag="-o out/conftest2.$ac_objext" 14081 # Insert the option either (1) after the last *FLAGS variable, or 14082 # (2) before a word containing "conftest.", or (3) at the end. 14083 # Note that $ac_compile itself does not contain backslashes and begins 14084 # with a dollar sign (not a hyphen), so the echo should work correctly. 14085 lt_compile=`echo "$ac_compile" | $SED \ 14086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14088 -e 's:$: $lt_compiler_flag:'` 14089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14090 (eval "$lt_compile" 2>out/conftest.err) 14091 ac_status=$? 14092 cat out/conftest.err >&5 14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14094 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14095 then 14096 # The compiler can only warn and ignore the option if not recognized 14097 # So say no if there are warnings 14098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14101 lt_cv_prog_compiler_c_o_CXX=yes 14102 fi 14103 fi 14104 chmod u+w . 2>&5 14105 $RM conftest* 14106 # SGI C++ compiler will create directory out/ii_files/ for 14107 # template instantiation 14108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14109 $RM out/* && rmdir out 14110 cd .. 14111 $RM -r conftest 14112 $RM conftest* 14113 14114fi 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14116$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14117 14118 14119 14120 14121hard_links="nottested" 14122if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14123 # do not overwrite the value of need_locks provided by the user 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14125$as_echo_n "checking if we can lock with hard links... " >&6; } 14126 hard_links=yes 14127 $RM conftest* 14128 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14129 touch conftest.a 14130 ln conftest.a conftest.b 2>&5 || hard_links=no 14131 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14133$as_echo "$hard_links" >&6; } 14134 if test "$hard_links" = no; then 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14136$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14137 need_locks=warn 14138 fi 14139else 14140 need_locks=no 14141fi 14142 14143 14144 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14146$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14147 14148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14149 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14150 case $host_os in 14151 aix[4-9]*) 14152 # If we're using GNU nm, then we don't want the "-C" option. 14153 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14154 # Also, AIX nm treats weak defined symbols like other global defined 14155 # symbols, whereas GNU nm marks them as "W". 14156 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14157 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14158 else 14159 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14160 fi 14161 ;; 14162 pw32*) 14163 export_symbols_cmds_CXX="$ltdll_cmds" 14164 ;; 14165 cygwin* | mingw* | cegcc*) 14166 case $cc_basename in 14167 cl*) 14168 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14169 ;; 14170 *) 14171 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' 14172 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14173 ;; 14174 esac 14175 ;; 14176 *) 14177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14178 ;; 14179 esac 14180 14181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14182$as_echo "$ld_shlibs_CXX" >&6; } 14183test "$ld_shlibs_CXX" = no && can_build_shared=no 14184 14185with_gnu_ld_CXX=$with_gnu_ld 14186 14187 14188 14189 14190 14191 14192# 14193# Do we need to explicitly link libc? 14194# 14195case "x$archive_cmds_need_lc_CXX" in 14196x|xyes) 14197 # Assume -lc should be added 14198 archive_cmds_need_lc_CXX=yes 14199 14200 if test "$enable_shared" = yes && test "$GCC" = yes; then 14201 case $archive_cmds_CXX in 14202 *'~'*) 14203 # FIXME: we may have to deal with multi-command sequences. 14204 ;; 14205 '$CC '*) 14206 # Test whether the compiler implicitly links with -lc since on some 14207 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14208 # to ld, don't add -lc before -lgcc. 14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14210$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14211if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14212 $as_echo_n "(cached) " >&6 14213else 14214 $RM conftest* 14215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14216 14217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14218 (eval $ac_compile) 2>&5 14219 ac_status=$? 14220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14221 test $ac_status = 0; } 2>conftest.err; then 14222 soname=conftest 14223 lib=conftest 14224 libobjs=conftest.$ac_objext 14225 deplibs= 14226 wl=$lt_prog_compiler_wl_CXX 14227 pic_flag=$lt_prog_compiler_pic_CXX 14228 compiler_flags=-v 14229 linker_flags=-v 14230 verstring= 14231 output_objdir=. 14232 libname=conftest 14233 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14234 allow_undefined_flag_CXX= 14235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14236 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14237 ac_status=$? 14238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14239 test $ac_status = 0; } 14240 then 14241 lt_cv_archive_cmds_need_lc_CXX=no 14242 else 14243 lt_cv_archive_cmds_need_lc_CXX=yes 14244 fi 14245 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14246 else 14247 cat conftest.err 1>&5 14248 fi 14249 $RM conftest* 14250 14251fi 14252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14253$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14254 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14255 ;; 14256 esac 14257 fi 14258 ;; 14259esac 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14323$as_echo_n "checking dynamic linker characteristics... " >&6; } 14324 14325library_names_spec= 14326libname_spec='lib$name' 14327soname_spec= 14328shrext_cmds=".so" 14329postinstall_cmds= 14330postuninstall_cmds= 14331finish_cmds= 14332finish_eval= 14333shlibpath_var= 14334shlibpath_overrides_runpath=unknown 14335version_type=none 14336dynamic_linker="$host_os ld.so" 14337sys_lib_dlsearch_path_spec="/lib /usr/lib" 14338need_lib_prefix=unknown 14339hardcode_into_libs=no 14340 14341# when you set need_version to no, make sure it does not cause -set_version 14342# flags to be left without arguments 14343need_version=unknown 14344 14345case $host_os in 14346aix3*) 14347 version_type=linux # correct to gnu/linux during the next big refactor 14348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14349 shlibpath_var=LIBPATH 14350 14351 # AIX 3 has no versioning support, so we append a major version to the name. 14352 soname_spec='${libname}${release}${shared_ext}$major' 14353 ;; 14354 14355aix[4-9]*) 14356 version_type=linux # correct to gnu/linux during the next big refactor 14357 need_lib_prefix=no 14358 need_version=no 14359 hardcode_into_libs=yes 14360 if test "$host_cpu" = ia64; then 14361 # AIX 5 supports IA64 14362 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14363 shlibpath_var=LD_LIBRARY_PATH 14364 else 14365 # With GCC up to 2.95.x, collect2 would create an import file 14366 # for dependence libraries. The import file would start with 14367 # the line `#! .'. This would cause the generated library to 14368 # depend on `.', always an invalid library. This was fixed in 14369 # development snapshots of GCC prior to 3.0. 14370 case $host_os in 14371 aix4 | aix4.[01] | aix4.[01].*) 14372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14373 echo ' yes ' 14374 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14375 : 14376 else 14377 can_build_shared=no 14378 fi 14379 ;; 14380 esac 14381 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14382 # soname into executable. Probably we can add versioning support to 14383 # collect2, so additional links can be useful in future. 14384 if test "$aix_use_runtimelinking" = yes; then 14385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14386 # instead of lib<name>.a to let people know that these are not 14387 # typical AIX shared libraries. 14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14389 else 14390 # We preserve .a as extension for shared libraries through AIX4.2 14391 # and later when we are not doing run time linking. 14392 library_names_spec='${libname}${release}.a $libname.a' 14393 soname_spec='${libname}${release}${shared_ext}$major' 14394 fi 14395 shlibpath_var=LIBPATH 14396 fi 14397 ;; 14398 14399amigaos*) 14400 case $host_cpu in 14401 powerpc) 14402 # Since July 2007 AmigaOS4 officially supports .so libraries. 14403 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14405 ;; 14406 m68k) 14407 library_names_spec='$libname.ixlibrary $libname.a' 14408 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14409 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14410 ;; 14411 esac 14412 ;; 14413 14414beos*) 14415 library_names_spec='${libname}${shared_ext}' 14416 dynamic_linker="$host_os ld.so" 14417 shlibpath_var=LIBRARY_PATH 14418 ;; 14419 14420bsdi[45]*) 14421 version_type=linux # correct to gnu/linux during the next big refactor 14422 need_version=no 14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14424 soname_spec='${libname}${release}${shared_ext}$major' 14425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14426 shlibpath_var=LD_LIBRARY_PATH 14427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14429 # the default ld.so.conf also contains /usr/contrib/lib and 14430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14431 # libtool to hard-code these into programs 14432 ;; 14433 14434cygwin* | mingw* | pw32* | cegcc*) 14435 version_type=windows 14436 shrext_cmds=".dll" 14437 need_version=no 14438 need_lib_prefix=no 14439 14440 case $GCC,$cc_basename in 14441 yes,*) 14442 # gcc 14443 library_names_spec='$libname.dll.a' 14444 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14445 postinstall_cmds='base_file=`basename \${file}`~ 14446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14447 dldir=$destdir/`dirname \$dlpath`~ 14448 test -d \$dldir || mkdir -p \$dldir~ 14449 $install_prog $dir/$dlname \$dldir/$dlname~ 14450 chmod a+x \$dldir/$dlname~ 14451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14453 fi' 14454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14455 dlpath=$dir/\$dldll~ 14456 $RM \$dlpath' 14457 shlibpath_overrides_runpath=yes 14458 14459 case $host_os in 14460 cygwin*) 14461 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14463 14464 ;; 14465 mingw* | cegcc*) 14466 # MinGW DLLs use traditional 'lib' prefix 14467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14468 ;; 14469 pw32*) 14470 # pw32 DLLs use 'pw' prefix rather than 'lib' 14471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14472 ;; 14473 esac 14474 dynamic_linker='Win32 ld.exe' 14475 ;; 14476 14477 *,cl*) 14478 # Native MSVC 14479 libname_spec='$name' 14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14481 library_names_spec='${libname}.dll.lib' 14482 14483 case $build_os in 14484 mingw*) 14485 sys_lib_search_path_spec= 14486 lt_save_ifs=$IFS 14487 IFS=';' 14488 for lt_path in $LIB 14489 do 14490 IFS=$lt_save_ifs 14491 # Let DOS variable expansion print the short 8.3 style file name. 14492 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14493 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14494 done 14495 IFS=$lt_save_ifs 14496 # Convert to MSYS style. 14497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14498 ;; 14499 cygwin*) 14500 # Convert to unix form, then to dos form, then back to unix form 14501 # but this time dos style (no spaces!) so that the unix form looks 14502 # like /cygdrive/c/PROGRA~1:/cygdr... 14503 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14504 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14505 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14506 ;; 14507 *) 14508 sys_lib_search_path_spec="$LIB" 14509 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14510 # It is most probably a Windows format PATH. 14511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14512 else 14513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14514 fi 14515 # FIXME: find the short name or the path components, as spaces are 14516 # common. (e.g. "Program Files" -> "PROGRA~1") 14517 ;; 14518 esac 14519 14520 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14521 postinstall_cmds='base_file=`basename \${file}`~ 14522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14523 dldir=$destdir/`dirname \$dlpath`~ 14524 test -d \$dldir || mkdir -p \$dldir~ 14525 $install_prog $dir/$dlname \$dldir/$dlname' 14526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14527 dlpath=$dir/\$dldll~ 14528 $RM \$dlpath' 14529 shlibpath_overrides_runpath=yes 14530 dynamic_linker='Win32 link.exe' 14531 ;; 14532 14533 *) 14534 # Assume MSVC wrapper 14535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14536 dynamic_linker='Win32 ld.exe' 14537 ;; 14538 esac 14539 # FIXME: first we should search . and the directory the executable is in 14540 shlibpath_var=PATH 14541 ;; 14542 14543darwin* | rhapsody*) 14544 dynamic_linker="$host_os dyld" 14545 version_type=darwin 14546 need_lib_prefix=no 14547 need_version=no 14548 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14549 soname_spec='${libname}${release}${major}$shared_ext' 14550 shlibpath_overrides_runpath=yes 14551 shlibpath_var=DYLD_LIBRARY_PATH 14552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14553 14554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14555 ;; 14556 14557dgux*) 14558 version_type=linux # correct to gnu/linux during the next big refactor 14559 need_lib_prefix=no 14560 need_version=no 14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14562 soname_spec='${libname}${release}${shared_ext}$major' 14563 shlibpath_var=LD_LIBRARY_PATH 14564 ;; 14565 14566freebsd* | dragonfly*) 14567 # DragonFly does not have aout. When/if they implement a new 14568 # versioning mechanism, adjust this. 14569 if test -x /usr/bin/objformat; then 14570 objformat=`/usr/bin/objformat` 14571 else 14572 case $host_os in 14573 freebsd[23].*) objformat=aout ;; 14574 *) objformat=elf ;; 14575 esac 14576 fi 14577 version_type=freebsd-$objformat 14578 case $version_type in 14579 freebsd-elf*) 14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14581 need_version=no 14582 need_lib_prefix=no 14583 ;; 14584 freebsd-*) 14585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14586 need_version=yes 14587 ;; 14588 esac 14589 shlibpath_var=LD_LIBRARY_PATH 14590 case $host_os in 14591 freebsd2.*) 14592 shlibpath_overrides_runpath=yes 14593 ;; 14594 freebsd3.[01]* | freebsdelf3.[01]*) 14595 shlibpath_overrides_runpath=yes 14596 hardcode_into_libs=yes 14597 ;; 14598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14600 shlibpath_overrides_runpath=no 14601 hardcode_into_libs=yes 14602 ;; 14603 *) # from 4.6 on, and DragonFly 14604 shlibpath_overrides_runpath=yes 14605 hardcode_into_libs=yes 14606 ;; 14607 esac 14608 ;; 14609 14610gnu*) 14611 version_type=linux # correct to gnu/linux during the next big refactor 14612 need_lib_prefix=no 14613 need_version=no 14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14615 soname_spec='${libname}${release}${shared_ext}$major' 14616 shlibpath_var=LD_LIBRARY_PATH 14617 shlibpath_overrides_runpath=no 14618 hardcode_into_libs=yes 14619 ;; 14620 14621haiku*) 14622 version_type=linux # correct to gnu/linux during the next big refactor 14623 need_lib_prefix=no 14624 need_version=no 14625 dynamic_linker="$host_os runtime_loader" 14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14627 soname_spec='${libname}${release}${shared_ext}$major' 14628 shlibpath_var=LIBRARY_PATH 14629 shlibpath_overrides_runpath=yes 14630 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14631 hardcode_into_libs=yes 14632 ;; 14633 14634hpux9* | hpux10* | hpux11*) 14635 # Give a soname corresponding to the major version so that dld.sl refuses to 14636 # link against other versions. 14637 version_type=sunos 14638 need_lib_prefix=no 14639 need_version=no 14640 case $host_cpu in 14641 ia64*) 14642 shrext_cmds='.so' 14643 hardcode_into_libs=yes 14644 dynamic_linker="$host_os dld.so" 14645 shlibpath_var=LD_LIBRARY_PATH 14646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14648 soname_spec='${libname}${release}${shared_ext}$major' 14649 if test "X$HPUX_IA64_MODE" = X32; then 14650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14651 else 14652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14653 fi 14654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14655 ;; 14656 hppa*64*) 14657 shrext_cmds='.sl' 14658 hardcode_into_libs=yes 14659 dynamic_linker="$host_os dld.sl" 14660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14663 soname_spec='${libname}${release}${shared_ext}$major' 14664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14666 ;; 14667 *) 14668 shrext_cmds='.sl' 14669 dynamic_linker="$host_os dld.sl" 14670 shlibpath_var=SHLIB_PATH 14671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14673 soname_spec='${libname}${release}${shared_ext}$major' 14674 ;; 14675 esac 14676 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14677 postinstall_cmds='chmod 555 $lib' 14678 # or fails outright, so override atomically: 14679 install_override_mode=555 14680 ;; 14681 14682interix[3-9]*) 14683 version_type=linux # correct to gnu/linux during the next big refactor 14684 need_lib_prefix=no 14685 need_version=no 14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14687 soname_spec='${libname}${release}${shared_ext}$major' 14688 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14689 shlibpath_var=LD_LIBRARY_PATH 14690 shlibpath_overrides_runpath=no 14691 hardcode_into_libs=yes 14692 ;; 14693 14694irix5* | irix6* | nonstopux*) 14695 case $host_os in 14696 nonstopux*) version_type=nonstopux ;; 14697 *) 14698 if test "$lt_cv_prog_gnu_ld" = yes; then 14699 version_type=linux # correct to gnu/linux during the next big refactor 14700 else 14701 version_type=irix 14702 fi ;; 14703 esac 14704 need_lib_prefix=no 14705 need_version=no 14706 soname_spec='${libname}${release}${shared_ext}$major' 14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14708 case $host_os in 14709 irix5* | nonstopux*) 14710 libsuff= shlibsuff= 14711 ;; 14712 *) 14713 case $LD in # libtool.m4 will add one of these switches to LD 14714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14715 libsuff= shlibsuff= libmagic=32-bit;; 14716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14717 libsuff=32 shlibsuff=N32 libmagic=N32;; 14718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14719 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14720 *) libsuff= shlibsuff= libmagic=never-match;; 14721 esac 14722 ;; 14723 esac 14724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14725 shlibpath_overrides_runpath=no 14726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14728 hardcode_into_libs=yes 14729 ;; 14730 14731# No shared lib support for Linux oldld, aout, or coff. 14732linux*oldld* | linux*aout* | linux*coff*) 14733 dynamic_linker=no 14734 ;; 14735 14736# This must be glibc/ELF. 14737linux* | k*bsd*-gnu | kopensolaris*-gnu) 14738 version_type=linux # correct to gnu/linux during the next big refactor 14739 need_lib_prefix=no 14740 need_version=no 14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14742 soname_spec='${libname}${release}${shared_ext}$major' 14743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14744 shlibpath_var=LD_LIBRARY_PATH 14745 shlibpath_overrides_runpath=no 14746 14747 # Some binutils ld are patched to set DT_RUNPATH 14748 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14749 $as_echo_n "(cached) " >&6 14750else 14751 lt_cv_shlibpath_overrides_runpath=no 14752 save_LDFLAGS=$LDFLAGS 14753 save_libdir=$libdir 14754 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14755 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758 14759int 14760main () 14761{ 14762 14763 ; 14764 return 0; 14765} 14766_ACEOF 14767if ac_fn_cxx_try_link "$LINENO"; then : 14768 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14769 lt_cv_shlibpath_overrides_runpath=yes 14770fi 14771fi 14772rm -f core conftest.err conftest.$ac_objext \ 14773 conftest$ac_exeext conftest.$ac_ext 14774 LDFLAGS=$save_LDFLAGS 14775 libdir=$save_libdir 14776 14777fi 14778 14779 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14780 14781 # This implies no fast_install, which is unacceptable. 14782 # Some rework will be needed to allow for fast_install 14783 # before this can be enabled. 14784 hardcode_into_libs=yes 14785 14786 # Append ld.so.conf contents to the search path 14787 if test -f /etc/ld.so.conf; then 14788 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' ' '` 14789 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14790 fi 14791 14792 # We used to test for /lib/ld.so.1 and disable shared libraries on 14793 # powerpc, because MkLinux only supported shared libraries with the 14794 # GNU dynamic linker. Since this was broken with cross compilers, 14795 # most powerpc-linux boxes support dynamic linking these days and 14796 # people can always --disable-shared, the test was removed, and we 14797 # assume the GNU/Linux dynamic linker is in use. 14798 dynamic_linker='GNU/Linux ld.so' 14799 ;; 14800 14801netbsd*) 14802 version_type=sunos 14803 need_lib_prefix=no 14804 need_version=no 14805 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14808 dynamic_linker='NetBSD (a.out) ld.so' 14809 else 14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14811 soname_spec='${libname}${release}${shared_ext}$major' 14812 dynamic_linker='NetBSD ld.elf_so' 14813 fi 14814 shlibpath_var=LD_LIBRARY_PATH 14815 shlibpath_overrides_runpath=yes 14816 hardcode_into_libs=yes 14817 ;; 14818 14819newsos6) 14820 version_type=linux # correct to gnu/linux during the next big refactor 14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14822 shlibpath_var=LD_LIBRARY_PATH 14823 shlibpath_overrides_runpath=yes 14824 ;; 14825 14826*nto* | *qnx*) 14827 version_type=qnx 14828 need_lib_prefix=no 14829 need_version=no 14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14831 soname_spec='${libname}${release}${shared_ext}$major' 14832 shlibpath_var=LD_LIBRARY_PATH 14833 shlibpath_overrides_runpath=no 14834 hardcode_into_libs=yes 14835 dynamic_linker='ldqnx.so' 14836 ;; 14837 14838openbsd*) 14839 version_type=sunos 14840 sys_lib_dlsearch_path_spec="/usr/lib" 14841 need_lib_prefix=no 14842 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14843 case $host_os in 14844 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14845 *) need_version=no ;; 14846 esac 14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14849 shlibpath_var=LD_LIBRARY_PATH 14850 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14851 case $host_os in 14852 openbsd2.[89] | openbsd2.[89].*) 14853 shlibpath_overrides_runpath=no 14854 ;; 14855 *) 14856 shlibpath_overrides_runpath=yes 14857 ;; 14858 esac 14859 else 14860 shlibpath_overrides_runpath=yes 14861 fi 14862 ;; 14863 14864os2*) 14865 libname_spec='$name' 14866 shrext_cmds=".dll" 14867 need_lib_prefix=no 14868 library_names_spec='$libname${shared_ext} $libname.a' 14869 dynamic_linker='OS/2 ld.exe' 14870 shlibpath_var=LIBPATH 14871 ;; 14872 14873osf3* | osf4* | osf5*) 14874 version_type=osf 14875 need_lib_prefix=no 14876 need_version=no 14877 soname_spec='${libname}${release}${shared_ext}$major' 14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14879 shlibpath_var=LD_LIBRARY_PATH 14880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14881 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14882 ;; 14883 14884rdos*) 14885 dynamic_linker=no 14886 ;; 14887 14888solaris*) 14889 version_type=linux # correct to gnu/linux during the next big refactor 14890 need_lib_prefix=no 14891 need_version=no 14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14893 soname_spec='${libname}${release}${shared_ext}$major' 14894 shlibpath_var=LD_LIBRARY_PATH 14895 shlibpath_overrides_runpath=yes 14896 hardcode_into_libs=yes 14897 # ldd complains unless libraries are executable 14898 postinstall_cmds='chmod +x $lib' 14899 ;; 14900 14901sunos4*) 14902 version_type=sunos 14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14905 shlibpath_var=LD_LIBRARY_PATH 14906 shlibpath_overrides_runpath=yes 14907 if test "$with_gnu_ld" = yes; then 14908 need_lib_prefix=no 14909 fi 14910 need_version=yes 14911 ;; 14912 14913sysv4 | sysv4.3*) 14914 version_type=linux # correct to gnu/linux during the next big refactor 14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14916 soname_spec='${libname}${release}${shared_ext}$major' 14917 shlibpath_var=LD_LIBRARY_PATH 14918 case $host_vendor in 14919 sni) 14920 shlibpath_overrides_runpath=no 14921 need_lib_prefix=no 14922 runpath_var=LD_RUN_PATH 14923 ;; 14924 siemens) 14925 need_lib_prefix=no 14926 ;; 14927 motorola) 14928 need_lib_prefix=no 14929 need_version=no 14930 shlibpath_overrides_runpath=no 14931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14932 ;; 14933 esac 14934 ;; 14935 14936sysv4*MP*) 14937 if test -d /usr/nec ;then 14938 version_type=linux # correct to gnu/linux during the next big refactor 14939 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14940 soname_spec='$libname${shared_ext}.$major' 14941 shlibpath_var=LD_LIBRARY_PATH 14942 fi 14943 ;; 14944 14945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14946 version_type=freebsd-elf 14947 need_lib_prefix=no 14948 need_version=no 14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14950 soname_spec='${libname}${release}${shared_ext}$major' 14951 shlibpath_var=LD_LIBRARY_PATH 14952 shlibpath_overrides_runpath=yes 14953 hardcode_into_libs=yes 14954 if test "$with_gnu_ld" = yes; then 14955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14956 else 14957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14958 case $host_os in 14959 sco3.2v5*) 14960 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14961 ;; 14962 esac 14963 fi 14964 sys_lib_dlsearch_path_spec='/usr/lib' 14965 ;; 14966 14967tpf*) 14968 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14969 version_type=linux # correct to gnu/linux during the next big refactor 14970 need_lib_prefix=no 14971 need_version=no 14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14973 shlibpath_var=LD_LIBRARY_PATH 14974 shlibpath_overrides_runpath=no 14975 hardcode_into_libs=yes 14976 ;; 14977 14978uts4*) 14979 version_type=linux # correct to gnu/linux during the next big refactor 14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14981 soname_spec='${libname}${release}${shared_ext}$major' 14982 shlibpath_var=LD_LIBRARY_PATH 14983 ;; 14984 14985*) 14986 dynamic_linker=no 14987 ;; 14988esac 14989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14990$as_echo "$dynamic_linker" >&6; } 14991test "$dynamic_linker" = no && can_build_shared=no 14992 14993variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14994if test "$GCC" = yes; then 14995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14996fi 14997 14998if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14999 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15000fi 15001if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15002 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15003fi 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15043$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15044hardcode_action_CXX= 15045if test -n "$hardcode_libdir_flag_spec_CXX" || 15046 test -n "$runpath_var_CXX" || 15047 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15048 15049 # We can hardcode non-existent directories. 15050 if test "$hardcode_direct_CXX" != no && 15051 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15052 # have to relink, otherwise we might link with an installed library 15053 # when we should be linking with a yet-to-be-installed one 15054 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15055 test "$hardcode_minus_L_CXX" != no; then 15056 # Linking always hardcodes the temporary library directory. 15057 hardcode_action_CXX=relink 15058 else 15059 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15060 hardcode_action_CXX=immediate 15061 fi 15062else 15063 # We cannot hardcode anything, or else we can only hardcode existing 15064 # directories. 15065 hardcode_action_CXX=unsupported 15066fi 15067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15068$as_echo "$hardcode_action_CXX" >&6; } 15069 15070if test "$hardcode_action_CXX" = relink || 15071 test "$inherit_rpath_CXX" = yes; then 15072 # Fast installation is not supported 15073 enable_fast_install=no 15074elif test "$shlibpath_overrides_runpath" = yes || 15075 test "$enable_shared" = no; then 15076 # Fast installation is not necessary 15077 enable_fast_install=needless 15078fi 15079 15080 15081 15082 15083 15084 15085 15086 fi # test -n "$compiler" 15087 15088 CC=$lt_save_CC 15089 CFLAGS=$lt_save_CFLAGS 15090 LDCXX=$LD 15091 LD=$lt_save_LD 15092 GCC=$lt_save_GCC 15093 with_gnu_ld=$lt_save_with_gnu_ld 15094 lt_cv_path_LDCXX=$lt_cv_path_LD 15095 lt_cv_path_LD=$lt_save_path_LD 15096 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15097 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15098fi # test "$_lt_caught_CXX_error" != yes 15099 15100ac_ext=c 15101ac_cpp='$CPP $CPPFLAGS' 15102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15104ac_compiler_gnu=$ac_cv_c_compiler_gnu 15105 15106 15107# Find a good install program. We prefer a C program (faster), 15108# so one script is as good as another. But avoid the broken or 15109# incompatible versions: 15110# SysV /etc/install, /usr/sbin/install 15111# SunOS /usr/etc/install 15112# IRIX /sbin/install 15113# AIX /bin/install 15114# AmigaOS /C/install, which installs bootblocks on floppy discs 15115# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 15116# AFS /usr/afsws/bin/install, which mishandles nonexistent args 15117# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 15118# OS/2's system install, which has a completely different semantic 15119# ./install, which can be erroneously created by make from ./install.sh. 15120# Reject install programs that cannot install multiple files. 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 15122$as_echo_n "checking for a BSD-compatible install... " >&6; } 15123if test -z "$INSTALL"; then 15124if ${ac_cv_path_install+:} false; then : 15125 $as_echo_n "(cached) " >&6 15126else 15127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15128for as_dir in $PATH 15129do 15130 IFS=$as_save_IFS 15131 test -z "$as_dir" && as_dir=. 15132 # Account for people who put trailing slashes in PATH elements. 15133case $as_dir/ in #(( 15134 ./ | .// | /[cC]/* | \ 15135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 15136 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 15137 /usr/ucb/* ) ;; 15138 *) 15139 # OSF1 and SCO ODT 3.0 have their own names for install. 15140 # Don't use installbsd from OSF since it installs stuff as root 15141 # by default. 15142 for ac_prog in ginstall scoinst install; do 15143 for ac_exec_ext in '' $ac_executable_extensions; do 15144 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 15145 if test $ac_prog = install && 15146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15147 # AIX install. It has an incompatible calling convention. 15148 : 15149 elif test $ac_prog = install && 15150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15151 # program-specific install script used by HP pwplus--don't use. 15152 : 15153 else 15154 rm -rf conftest.one conftest.two conftest.dir 15155 echo one > conftest.one 15156 echo two > conftest.two 15157 mkdir conftest.dir 15158 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 15159 test -s conftest.one && test -s conftest.two && 15160 test -s conftest.dir/conftest.one && 15161 test -s conftest.dir/conftest.two 15162 then 15163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 15164 break 3 15165 fi 15166 fi 15167 fi 15168 done 15169 done 15170 ;; 15171esac 15172 15173 done 15174IFS=$as_save_IFS 15175 15176rm -rf conftest.one conftest.two conftest.dir 15177 15178fi 15179 if test "${ac_cv_path_install+set}" = set; then 15180 INSTALL=$ac_cv_path_install 15181 else 15182 # As a last resort, use the slow shell script. Don't cache a 15183 # value for INSTALL within a source directory, because that will 15184 # break other packages using the cache if that directory is 15185 # removed, or if the value is a relative name. 15186 INSTALL=$ac_install_sh 15187 fi 15188fi 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 15190$as_echo "$INSTALL" >&6; } 15191 15192# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 15193# It thinks the first close brace ends the variable substitution. 15194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 15195 15196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 15197 15198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 15199 15200 15201if test "$GCC" = yes ; then 15202 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes" 15203 CFLAGS="$OLDCFLAGS -fexceptions" 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5 15205$as_echo_n "checking whether $CC accepts -fexceptions... " >&6; } 15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15207/* end confdefs.h. */ 15208 15209int 15210main () 15211{ 15212 15213 ; 15214 return 0; 15215} 15216_ACEOF 15217if ac_fn_c_try_link "$LINENO"; then : 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15219$as_echo "yes" >&6; } 15220else 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15222$as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS" 15223fi 15224rm -f core conftest.err conftest.$ac_objext \ 15225 conftest$ac_exeext conftest.$ac_ext 15226 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'` 15227fi 15228 15229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15230$as_echo_n "checking for ANSI C header files... " >&6; } 15231if ${ac_cv_header_stdc+:} false; then : 15232 $as_echo_n "(cached) " >&6 15233else 15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15235/* end confdefs.h. */ 15236#include <stdlib.h> 15237#include <stdarg.h> 15238#include <string.h> 15239#include <float.h> 15240 15241int 15242main () 15243{ 15244 15245 ; 15246 return 0; 15247} 15248_ACEOF 15249if ac_fn_c_try_compile "$LINENO"; then : 15250 ac_cv_header_stdc=yes 15251else 15252 ac_cv_header_stdc=no 15253fi 15254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15255 15256if test $ac_cv_header_stdc = yes; then 15257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15259/* end confdefs.h. */ 15260#include <string.h> 15261 15262_ACEOF 15263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15264 $EGREP "memchr" >/dev/null 2>&1; then : 15265 15266else 15267 ac_cv_header_stdc=no 15268fi 15269rm -f conftest* 15270 15271fi 15272 15273if test $ac_cv_header_stdc = yes; then 15274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15276/* end confdefs.h. */ 15277#include <stdlib.h> 15278 15279_ACEOF 15280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15281 $EGREP "free" >/dev/null 2>&1; then : 15282 15283else 15284 ac_cv_header_stdc=no 15285fi 15286rm -f conftest* 15287 15288fi 15289 15290if test $ac_cv_header_stdc = yes; then 15291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15292 if test "$cross_compiling" = yes; then : 15293 : 15294else 15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15296/* end confdefs.h. */ 15297#include <ctype.h> 15298#include <stdlib.h> 15299#if ((' ' & 0x0FF) == 0x020) 15300# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15301# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15302#else 15303# define ISLOWER(c) \ 15304 (('a' <= (c) && (c) <= 'i') \ 15305 || ('j' <= (c) && (c) <= 'r') \ 15306 || ('s' <= (c) && (c) <= 'z')) 15307# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15308#endif 15309 15310#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15311int 15312main () 15313{ 15314 int i; 15315 for (i = 0; i < 256; i++) 15316 if (XOR (islower (i), ISLOWER (i)) 15317 || toupper (i) != TOUPPER (i)) 15318 return 2; 15319 return 0; 15320} 15321_ACEOF 15322if ac_fn_c_try_run "$LINENO"; then : 15323 15324else 15325 ac_cv_header_stdc=no 15326fi 15327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15328 conftest.$ac_objext conftest.beam conftest.$ac_ext 15329fi 15330 15331fi 15332fi 15333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15334$as_echo "$ac_cv_header_stdc" >&6; } 15335if test $ac_cv_header_stdc = yes; then 15336 15337$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15338 15339fi 15340 15341 15342 15343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15344$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15345if ${ac_cv_c_bigendian+:} false; then : 15346 $as_echo_n "(cached) " >&6 15347else 15348 ac_cv_c_bigendian=unknown 15349# See if sys/param.h defines the BYTE_ORDER macro. 15350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15351/* end confdefs.h. */ 15352#include <sys/types.h> 15353#include <sys/param.h> 15354int 15355main () 15356{ 15357 15358#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 15359 bogus endian macros 15360#endif 15361 ; 15362 return 0; 15363} 15364_ACEOF 15365if ac_fn_c_try_compile "$LINENO"; then : 15366 # It does; now see whether it defined to BIG_ENDIAN or not. 15367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15368/* end confdefs.h. */ 15369#include <sys/types.h> 15370#include <sys/param.h> 15371int 15372main () 15373{ 15374 15375#if BYTE_ORDER != BIG_ENDIAN 15376 not big endian 15377#endif 15378 ; 15379 return 0; 15380} 15381_ACEOF 15382if ac_fn_c_try_compile "$LINENO"; then : 15383 ac_cv_c_bigendian=yes 15384else 15385 ac_cv_c_bigendian=no 15386fi 15387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15388fi 15389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15390if test $ac_cv_c_bigendian = unknown; then 15391if test "$cross_compiling" = yes; then : 15392 echo $ac_n "cross-compiling... " 2>&6 15393else 15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15395/* end confdefs.h. */ 15396main () { 15397 /* Are we little or big endian? From Harbison&Steele. */ 15398 union 15399 { 15400 long l; 15401 char c[sizeof (long)]; 15402 } u; 15403 u.l = 1; 15404 exit (u.c[sizeof (long) - 1] == 1); 15405} 15406_ACEOF 15407if ac_fn_c_try_run "$LINENO"; then : 15408 ac_cv_c_bigendian=no 15409else 15410 ac_cv_c_bigendian=yes 15411fi 15412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15413 conftest.$ac_objext conftest.beam conftest.$ac_ext 15414fi 15415 15416fi 15417fi 15418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15419$as_echo "$ac_cv_c_bigendian" >&6; } 15420if test $ac_cv_c_bigendian = unknown; then 15421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5 15422$as_echo_n "checking to probe for byte ordering... " >&6; } 15423 15424cat >conftest.c <<EOF 15425short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15426short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15427void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; } 15428short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15429short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15430void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; } 15431int main() { _ascii (); _ebcdic (); return 0; } 15432EOF 15433 if test -f conftest.c ; then 15434 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then 15435 if test `grep -l BIGenDianSyS conftest.o` ; then 15436 echo $ac_n ' big endian probe OK, ' 1>&6 15437 ac_cv_c_bigendian=yes 15438 fi 15439 if test `grep -l LiTTleEnDian conftest.o` ; then 15440 echo $ac_n ' little endian probe OK, ' 1>&6 15441 if test $ac_cv_c_bigendian = yes ; then 15442 ac_cv_c_bigendian=unknown; 15443 else 15444 ac_cv_c_bigendian=no 15445 fi 15446 fi 15447 echo $ac_n 'guessing bigendian ... ' >&6 15448 fi 15449 fi 15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15451$as_echo "$ac_cv_c_bigendian" >&6; } 15452fi 15453if test $ac_cv_c_bigendian = yes; then 15454 15455$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15456 15457 BYTEORDER=4321 15458else 15459 BYTEORDER=1234 15460fi 15461 15462cat >>confdefs.h <<_ACEOF 15463#define BYTEORDER $BYTEORDER 15464_ACEOF 15465 15466if test $ac_cv_c_bigendian = unknown; then 15467 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5 15468fi 15469 15470 15471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15472$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15473if ${ac_cv_c_const+:} false; then : 15474 $as_echo_n "(cached) " >&6 15475else 15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15477/* end confdefs.h. */ 15478 15479int 15480main () 15481{ 15482 15483#ifndef __cplusplus 15484 /* Ultrix mips cc rejects this sort of thing. */ 15485 typedef int charset[2]; 15486 const charset cs = { 0, 0 }; 15487 /* SunOS 4.1.1 cc rejects this. */ 15488 char const *const *pcpcc; 15489 char **ppc; 15490 /* NEC SVR4.0.2 mips cc rejects this. */ 15491 struct point {int x, y;}; 15492 static struct point const zero = {0,0}; 15493 /* AIX XL C 1.02.0.0 rejects this. 15494 It does not let you subtract one const X* pointer from another in 15495 an arm of an if-expression whose if-part is not a constant 15496 expression */ 15497 const char *g = "string"; 15498 pcpcc = &g + (g ? g-g : 0); 15499 /* HPUX 7.0 cc rejects these. */ 15500 ++pcpcc; 15501 ppc = (char**) pcpcc; 15502 pcpcc = (char const *const *) ppc; 15503 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15504 char tx; 15505 char *t = &tx; 15506 char const *s = 0 ? (char *) 0 : (char const *) 0; 15507 15508 *t++ = 0; 15509 if (s) return 0; 15510 } 15511 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15512 int x[] = {25, 17}; 15513 const int *foo = &x[0]; 15514 ++foo; 15515 } 15516 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15517 typedef const int *iptr; 15518 iptr p = 0; 15519 ++p; 15520 } 15521 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 15522 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15523 struct s { int j; const int *ap[3]; } bx; 15524 struct s *b = &bx; b->j = 5; 15525 } 15526 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15527 const int foo = 10; 15528 if (!foo) return 0; 15529 } 15530 return !cs[0] && !zero.x; 15531#endif 15532 15533 ; 15534 return 0; 15535} 15536_ACEOF 15537if ac_fn_c_try_compile "$LINENO"; then : 15538 ac_cv_c_const=yes 15539else 15540 ac_cv_c_const=no 15541fi 15542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15543fi 15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15545$as_echo "$ac_cv_c_const" >&6; } 15546if test $ac_cv_c_const = no; then 15547 15548$as_echo "#define const /**/" >>confdefs.h 15549 15550fi 15551 15552ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15553if test "x$ac_cv_type_size_t" = xyes; then : 15554 15555else 15556 15557cat >>confdefs.h <<_ACEOF 15558#define size_t unsigned int 15559_ACEOF 15560 15561fi 15562 15563for ac_func in memmove bcopy 15564do : 15565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15566ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15567if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15568 cat >>confdefs.h <<_ACEOF 15569#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15570_ACEOF 15571 15572fi 15573done 15574 15575 15576for ac_header in fcntl.h unistd.h 15577do : 15578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15581 cat >>confdefs.h <<_ACEOF 15582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15583_ACEOF 15584 15585fi 15586 15587done 15588 15589ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 15590if test "x$ac_cv_type_off_t" = xyes; then : 15591 15592else 15593 15594cat >>confdefs.h <<_ACEOF 15595#define off_t long int 15596_ACEOF 15597 15598fi 15599 15600 15601 15602 15603 for ac_header in $ac_header_list 15604do : 15605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15606ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15607" 15608if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15609 cat >>confdefs.h <<_ACEOF 15610#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15611_ACEOF 15612 15613fi 15614 15615done 15616 15617 15618 15619 15620 15621 15622 15623 15624for ac_func in getpagesize 15625do : 15626 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 15627if test "x$ac_cv_func_getpagesize" = xyes; then : 15628 cat >>confdefs.h <<_ACEOF 15629#define HAVE_GETPAGESIZE 1 15630_ACEOF 15631 15632fi 15633done 15634 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15636$as_echo_n "checking for working mmap... " >&6; } 15637if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 15638 $as_echo_n "(cached) " >&6 15639else 15640 if test "$cross_compiling" = yes; then : 15641 ac_cv_func_mmap_fixed_mapped=no 15642else 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645$ac_includes_default 15646/* malloc might have been renamed as rpl_malloc. */ 15647#undef malloc 15648 15649/* Thanks to Mike Haertel and Jim Avera for this test. 15650 Here is a matrix of mmap possibilities: 15651 mmap private not fixed 15652 mmap private fixed at somewhere currently unmapped 15653 mmap private fixed at somewhere already mapped 15654 mmap shared not fixed 15655 mmap shared fixed at somewhere currently unmapped 15656 mmap shared fixed at somewhere already mapped 15657 For private mappings, we should verify that changes cannot be read() 15658 back from the file, nor mmap's back from the file at a different 15659 address. (There have been systems where private was not correctly 15660 implemented like the infamous i386 svr4.0, and systems where the 15661 VM page cache was not coherent with the file system buffer cache 15662 like early versions of FreeBSD and possibly contemporary NetBSD.) 15663 For shared mappings, we should conversely verify that changes get 15664 propagated back to all the places they're supposed to be. 15665 15666 Grep wants private fixed already mapped. 15667 The main things grep needs to know about mmap are: 15668 * does it exist and is it safe to write into the mmap'd area 15669 * how to use it (BSD variants) */ 15670 15671#include <fcntl.h> 15672#include <sys/mman.h> 15673 15674#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 15675char *malloc (); 15676#endif 15677 15678/* This mess was copied from the GNU getpagesize.h. */ 15679#ifndef HAVE_GETPAGESIZE 15680# ifdef _SC_PAGESIZE 15681# define getpagesize() sysconf(_SC_PAGESIZE) 15682# else /* no _SC_PAGESIZE */ 15683# ifdef HAVE_SYS_PARAM_H 15684# include <sys/param.h> 15685# ifdef EXEC_PAGESIZE 15686# define getpagesize() EXEC_PAGESIZE 15687# else /* no EXEC_PAGESIZE */ 15688# ifdef NBPG 15689# define getpagesize() NBPG * CLSIZE 15690# ifndef CLSIZE 15691# define CLSIZE 1 15692# endif /* no CLSIZE */ 15693# else /* no NBPG */ 15694# ifdef NBPC 15695# define getpagesize() NBPC 15696# else /* no NBPC */ 15697# ifdef PAGESIZE 15698# define getpagesize() PAGESIZE 15699# endif /* PAGESIZE */ 15700# endif /* no NBPC */ 15701# endif /* no NBPG */ 15702# endif /* no EXEC_PAGESIZE */ 15703# else /* no HAVE_SYS_PARAM_H */ 15704# define getpagesize() 8192 /* punt totally */ 15705# endif /* no HAVE_SYS_PARAM_H */ 15706# endif /* no _SC_PAGESIZE */ 15707 15708#endif /* no HAVE_GETPAGESIZE */ 15709 15710int 15711main () 15712{ 15713 char *data, *data2, *data3; 15714 const char *cdata2; 15715 int i, pagesize; 15716 int fd, fd2; 15717 15718 pagesize = getpagesize (); 15719 15720 /* First, make a file with some known garbage in it. */ 15721 data = (char *) malloc (pagesize); 15722 if (!data) 15723 return 1; 15724 for (i = 0; i < pagesize; ++i) 15725 *(data + i) = rand (); 15726 umask (0); 15727 fd = creat ("conftest.mmap", 0600); 15728 if (fd < 0) 15729 return 2; 15730 if (write (fd, data, pagesize) != pagesize) 15731 return 3; 15732 close (fd); 15733 15734 /* Next, check that the tail of a page is zero-filled. File must have 15735 non-zero length, otherwise we risk SIGBUS for entire page. */ 15736 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 15737 if (fd2 < 0) 15738 return 4; 15739 cdata2 = ""; 15740 if (write (fd2, cdata2, 1) != 1) 15741 return 5; 15742 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 15743 if (data2 == MAP_FAILED) 15744 return 6; 15745 for (i = 0; i < pagesize; ++i) 15746 if (*(data2 + i)) 15747 return 7; 15748 close (fd2); 15749 if (munmap (data2, pagesize)) 15750 return 8; 15751 15752 /* Next, try to mmap the file at a fixed address which already has 15753 something else allocated at it. If we can, also make sure that 15754 we see the same garbage. */ 15755 fd = open ("conftest.mmap", O_RDWR); 15756 if (fd < 0) 15757 return 9; 15758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15759 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15760 return 10; 15761 for (i = 0; i < pagesize; ++i) 15762 if (*(data + i) != *(data2 + i)) 15763 return 11; 15764 15765 /* Finally, make sure that changes to the mapped area do not 15766 percolate back to the file as seen by read(). (This is a bug on 15767 some variants of i386 svr4.0.) */ 15768 for (i = 0; i < pagesize; ++i) 15769 *(data2 + i) = *(data2 + i) + 1; 15770 data3 = (char *) malloc (pagesize); 15771 if (!data3) 15772 return 12; 15773 if (read (fd, data3, pagesize) != pagesize) 15774 return 13; 15775 for (i = 0; i < pagesize; ++i) 15776 if (*(data + i) != *(data3 + i)) 15777 return 14; 15778 close (fd); 15779 return 0; 15780} 15781_ACEOF 15782if ac_fn_c_try_run "$LINENO"; then : 15783 ac_cv_func_mmap_fixed_mapped=yes 15784else 15785 ac_cv_func_mmap_fixed_mapped=no 15786fi 15787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15788 conftest.$ac_objext conftest.beam conftest.$ac_ext 15789fi 15790 15791fi 15792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15793$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 15794if test $ac_cv_func_mmap_fixed_mapped = yes; then 15795 15796$as_echo "#define HAVE_MMAP 1" >>confdefs.h 15797 15798fi 15799rm -f conftest.mmap conftest.txt 15800 15801 15802if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then 15803 FILEMAP=unixfilemap 15804else 15805 FILEMAP=readfilemap 15806fi 15807 15808 15809 15810# AC_CPP_FUNC 15811# ------------------ # 15812# Checks to see if ANSI C99 CPP variable __func__ works. 15813# If not, perhaps __FUNCTION__ works instead. 15814# If not, we'll just define __func__ to "". 15815# AC_CPP_FUNC 15816 15817 case $ac_cv_prog_cc_stdc in #( 15818 no) : 15819 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 15820 *) : 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 15822$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 15823if ${ac_cv_prog_cc_c99+:} false; then : 15824 $as_echo_n "(cached) " >&6 15825else 15826 ac_cv_prog_cc_c99=no 15827ac_save_CC=$CC 15828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15829/* end confdefs.h. */ 15830#include <stdarg.h> 15831#include <stdbool.h> 15832#include <stdlib.h> 15833#include <wchar.h> 15834#include <stdio.h> 15835 15836// Check varargs macros. These examples are taken from C99 6.10.3.5. 15837#define debug(...) fprintf (stderr, __VA_ARGS__) 15838#define showlist(...) puts (#__VA_ARGS__) 15839#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 15840static void 15841test_varargs_macros (void) 15842{ 15843 int x = 1234; 15844 int y = 5678; 15845 debug ("Flag"); 15846 debug ("X = %d\n", x); 15847 showlist (The first, second, and third items.); 15848 report (x>y, "x is %d but y is %d", x, y); 15849} 15850 15851// Check long long types. 15852#define BIG64 18446744073709551615ull 15853#define BIG32 4294967295ul 15854#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 15855#if !BIG_OK 15856 your preprocessor is broken; 15857#endif 15858#if BIG_OK 15859#else 15860 your preprocessor is broken; 15861#endif 15862static long long int bignum = -9223372036854775807LL; 15863static unsigned long long int ubignum = BIG64; 15864 15865struct incomplete_array 15866{ 15867 int datasize; 15868 double data[]; 15869}; 15870 15871struct named_init { 15872 int number; 15873 const wchar_t *name; 15874 double average; 15875}; 15876 15877typedef const char *ccp; 15878 15879static inline int 15880test_restrict (ccp restrict text) 15881{ 15882 // See if C++-style comments work. 15883 // Iterate through items via the restricted pointer. 15884 // Also check for declarations in for loops. 15885 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 15886 continue; 15887 return 0; 15888} 15889 15890// Check varargs and va_copy. 15891static void 15892test_varargs (const char *format, ...) 15893{ 15894 va_list args; 15895 va_start (args, format); 15896 va_list args_copy; 15897 va_copy (args_copy, args); 15898 15899 const char *str; 15900 int number; 15901 float fnumber; 15902 15903 while (*format) 15904 { 15905 switch (*format++) 15906 { 15907 case 's': // string 15908 str = va_arg (args_copy, const char *); 15909 break; 15910 case 'd': // int 15911 number = va_arg (args_copy, int); 15912 break; 15913 case 'f': // float 15914 fnumber = va_arg (args_copy, double); 15915 break; 15916 default: 15917 break; 15918 } 15919 } 15920 va_end (args_copy); 15921 va_end (args); 15922} 15923 15924int 15925main () 15926{ 15927 15928 // Check bool. 15929 _Bool success = false; 15930 15931 // Check restrict. 15932 if (test_restrict ("String literal") == 0) 15933 success = true; 15934 char *restrict newvar = "Another string"; 15935 15936 // Check varargs. 15937 test_varargs ("s, d' f .", "string", 65, 34.234); 15938 test_varargs_macros (); 15939 15940 // Check flexible array members. 15941 struct incomplete_array *ia = 15942 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 15943 ia->datasize = 10; 15944 for (int i = 0; i < ia->datasize; ++i) 15945 ia->data[i] = i * 1.234; 15946 15947 // Check named initializers. 15948 struct named_init ni = { 15949 .number = 34, 15950 .name = L"Test wide string", 15951 .average = 543.34343, 15952 }; 15953 15954 ni.number = 58; 15955 15956 int dynamic_array[ni.number]; 15957 dynamic_array[ni.number - 1] = 543; 15958 15959 // work around unused variable warnings 15960 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 15961 || dynamic_array[ni.number - 1] != 543); 15962 15963 ; 15964 return 0; 15965} 15966_ACEOF 15967for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 15968do 15969 CC="$ac_save_CC $ac_arg" 15970 if ac_fn_c_try_compile "$LINENO"; then : 15971 ac_cv_prog_cc_c99=$ac_arg 15972fi 15973rm -f core conftest.err conftest.$ac_objext 15974 test "x$ac_cv_prog_cc_c99" != "xno" && break 15975done 15976rm -f conftest.$ac_ext 15977CC=$ac_save_CC 15978 15979fi 15980# AC_CACHE_VAL 15981case "x$ac_cv_prog_cc_c99" in 15982 x) 15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15984$as_echo "none needed" >&6; } ;; 15985 xno) 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15987$as_echo "unsupported" >&6; } ;; 15988 *) 15989 CC="$CC $ac_cv_prog_cc_c99" 15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 15991$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 15992esac 15993if test "x$ac_cv_prog_cc_c99" != xno; then : 15994 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 15995else 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 15997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 15998if ${ac_cv_prog_cc_c89+:} false; then : 15999 $as_echo_n "(cached) " >&6 16000else 16001 ac_cv_prog_cc_c89=no 16002ac_save_CC=$CC 16003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16004/* end confdefs.h. */ 16005#include <stdarg.h> 16006#include <stdio.h> 16007struct stat; 16008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 16009struct buf { int x; }; 16010FILE * (*rcsopen) (struct buf *, struct stat *, int); 16011static char *e (p, i) 16012 char **p; 16013 int i; 16014{ 16015 return p[i]; 16016} 16017static char *f (char * (*g) (char **, int), char **p, ...) 16018{ 16019 char *s; 16020 va_list v; 16021 va_start (v,p); 16022 s = g (p, va_arg (v,int)); 16023 va_end (v); 16024 return s; 16025} 16026 16027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 16028 function prototypes and stuff, but not '\xHH' hex character constants. 16029 These don't provoke an error unfortunately, instead are silently treated 16030 as 'x'. The following induces an error, until -std is added to get 16031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 16032 array size at least. It's necessary to write '\x00'==0 to get something 16033 that's true only with -std. */ 16034int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 16035 16036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 16037 inside strings and character constants. */ 16038#define FOO(x) 'x' 16039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 16040 16041int test (int i, double x); 16042struct s1 {int (*f) (int a);}; 16043struct s2 {int (*f) (double a);}; 16044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 16045int argc; 16046char **argv; 16047int 16048main () 16049{ 16050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 16051 ; 16052 return 0; 16053} 16054_ACEOF 16055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 16056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 16057do 16058 CC="$ac_save_CC $ac_arg" 16059 if ac_fn_c_try_compile "$LINENO"; then : 16060 ac_cv_prog_cc_c89=$ac_arg 16061fi 16062rm -f core conftest.err conftest.$ac_objext 16063 test "x$ac_cv_prog_cc_c89" != "xno" && break 16064done 16065rm -f conftest.$ac_ext 16066CC=$ac_save_CC 16067 16068fi 16069# AC_CACHE_VAL 16070case "x$ac_cv_prog_cc_c89" in 16071 x) 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16073$as_echo "none needed" >&6; } ;; 16074 xno) 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16076$as_echo "unsupported" >&6; } ;; 16077 *) 16078 CC="$CC $ac_cv_prog_cc_c89" 16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 16080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 16081esac 16082if test "x$ac_cv_prog_cc_c89" != xno; then : 16083 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 16084else 16085 ac_cv_prog_cc_stdc=no 16086fi 16087 16088fi 16089 ;; 16090esac 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 16092$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 16093 if ${ac_cv_prog_cc_stdc+:} false; then : 16094 $as_echo_n "(cached) " >&6 16095fi 16096 16097 case $ac_cv_prog_cc_stdc in #( 16098 no) : 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16100$as_echo "unsupported" >&6; } ;; #( 16101 '') : 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16103$as_echo "none needed" >&6; } ;; #( 16104 *) : 16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 16106$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 16107esac 16108 16109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5 16110$as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; } 16111if ${ac_cv_cpp_func+:} false; then : 16112 $as_echo_n "(cached) " >&6 16113else 16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16115/* end confdefs.h. */ 16116 16117int 16118main () 16119{ 16120char *foo = __func__; 16121 ; 16122 return 0; 16123} 16124_ACEOF 16125if ac_fn_c_try_compile "$LINENO"; then : 16126 ac_cv_cpp_func=yes 16127else 16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16129/* end confdefs.h. */ 16130 16131int 16132main () 16133{ 16134char *foo = __FUNCTION__; 16135 ; 16136 return 0; 16137} 16138_ACEOF 16139if ac_fn_c_try_compile "$LINENO"; then : 16140 ac_cv_cpp_func=__FUNCTION__ 16141else 16142 ac_cv_cpp_func=no 16143fi 16144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16145fi 16146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16147fi 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5 16149$as_echo "$ac_cv_cpp_func" >&6; } 16150if test $ac_cv_cpp_func = __FUNCTION__; then 16151 16152$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 16153 16154elif test $ac_cv_cpp_func = no; then 16155 16156$as_echo "#define __func__ \"\"" >>confdefs.h 16157 16158fi 16159 16160 16161 16162 16163$as_echo "#define XML_NS 1" >>confdefs.h 16164 16165 16166$as_echo "#define XML_DTD 1" >>confdefs.h 16167 16168 16169$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h 16170 16171 16172ac_config_files="$ac_config_files Makefile expat.pc" 16173 16174cat >confcache <<\_ACEOF 16175# This file is a shell script that caches the results of configure 16176# tests run on this system so they can be shared between configure 16177# scripts and configure runs, see configure's option --config-cache. 16178# It is not useful on other systems. If it contains results you don't 16179# want to keep, you may remove or edit it. 16180# 16181# config.status only pays attention to the cache file if you give it 16182# the --recheck option to rerun configure. 16183# 16184# `ac_cv_env_foo' variables (set or unset) will be overridden when 16185# loading this file, other *unset* `ac_cv_foo' will be assigned the 16186# following values. 16187 16188_ACEOF 16189 16190# The following way of writing the cache mishandles newlines in values, 16191# but we know of no workaround that is simple, portable, and efficient. 16192# So, we kill variables containing newlines. 16193# Ultrix sh set writes to stderr and can't be redirected directly, 16194# and sets the high bit in the cache file unless we assign to the vars. 16195( 16196 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16197 eval ac_val=\$$ac_var 16198 case $ac_val in #( 16199 *${as_nl}*) 16200 case $ac_var in #( 16201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16202$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16203 esac 16204 case $ac_var in #( 16205 _ | IFS | as_nl) ;; #( 16206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16207 *) { eval $ac_var=; unset $ac_var;} ;; 16208 esac ;; 16209 esac 16210 done 16211 16212 (set) 2>&1 | 16213 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16214 *${as_nl}ac_space=\ *) 16215 # `set' does not quote correctly, so add quotes: double-quote 16216 # substitution turns \\\\ into \\, and sed turns \\ into \. 16217 sed -n \ 16218 "s/'/'\\\\''/g; 16219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16220 ;; #( 16221 *) 16222 # `set' quotes correctly as required by POSIX, so do not add quotes. 16223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16224 ;; 16225 esac | 16226 sort 16227) | 16228 sed ' 16229 /^ac_cv_env_/b end 16230 t clear 16231 :clear 16232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16233 t end 16234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16235 :end' >>confcache 16236if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16237 if test -w "$cache_file"; then 16238 if test "x$cache_file" != "x/dev/null"; then 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16240$as_echo "$as_me: updating cache $cache_file" >&6;} 16241 if test ! -f "$cache_file" || test -h "$cache_file"; then 16242 cat confcache >"$cache_file" 16243 else 16244 case $cache_file in #( 16245 */* | ?:*) 16246 mv -f confcache "$cache_file"$$ && 16247 mv -f "$cache_file"$$ "$cache_file" ;; #( 16248 *) 16249 mv -f confcache "$cache_file" ;; 16250 esac 16251 fi 16252 fi 16253 else 16254 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16255$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16256 fi 16257fi 16258rm -f confcache 16259 16260test "x$prefix" = xNONE && prefix=$ac_default_prefix 16261# Let make expand exec_prefix. 16262test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16263 16264DEFS=-DHAVE_CONFIG_H 16265 16266ac_libobjs= 16267ac_ltlibobjs= 16268U= 16269for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16270 # 1. Remove the extension, and $U if already installed. 16271 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16272 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16273 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16274 # will be set to the directory where LIBOBJS objects are built. 16275 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16276 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16277done 16278LIBOBJS=$ac_libobjs 16279 16280LTLIBOBJS=$ac_ltlibobjs 16281 16282 16283 16284: "${CONFIG_STATUS=./config.status}" 16285ac_write_fail=0 16286ac_clean_files_save=$ac_clean_files 16287ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16288{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16289$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16290as_write_fail=0 16291cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16292#! $SHELL 16293# Generated by $as_me. 16294# Run this file to recreate the current configuration. 16295# Compiler output produced by configure, useful for debugging 16296# configure, is in config.log if it exists. 16297 16298debug=false 16299ac_cs_recheck=false 16300ac_cs_silent=false 16301 16302SHELL=\${CONFIG_SHELL-$SHELL} 16303export SHELL 16304_ASEOF 16305cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16306## -------------------- ## 16307## M4sh Initialization. ## 16308## -------------------- ## 16309 16310# Be more Bourne compatible 16311DUALCASE=1; export DUALCASE # for MKS sh 16312if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16313 emulate sh 16314 NULLCMD=: 16315 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16316 # is contrary to our usage. Disable this feature. 16317 alias -g '${1+"$@"}'='"$@"' 16318 setopt NO_GLOB_SUBST 16319else 16320 case `(set -o) 2>/dev/null` in #( 16321 *posix*) : 16322 set -o posix ;; #( 16323 *) : 16324 ;; 16325esac 16326fi 16327 16328 16329as_nl=' 16330' 16331export as_nl 16332# Printing a long string crashes Solaris 7 /usr/bin/printf. 16333as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16334as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16335as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16336# Prefer a ksh shell builtin over an external printf program on Solaris, 16337# but without wasting forks for bash or zsh. 16338if test -z "$BASH_VERSION$ZSH_VERSION" \ 16339 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16340 as_echo='print -r --' 16341 as_echo_n='print -rn --' 16342elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16343 as_echo='printf %s\n' 16344 as_echo_n='printf %s' 16345else 16346 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16347 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16348 as_echo_n='/usr/ucb/echo -n' 16349 else 16350 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16351 as_echo_n_body='eval 16352 arg=$1; 16353 case $arg in #( 16354 *"$as_nl"*) 16355 expr "X$arg" : "X\\(.*\\)$as_nl"; 16356 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16357 esac; 16358 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16359 ' 16360 export as_echo_n_body 16361 as_echo_n='sh -c $as_echo_n_body as_echo' 16362 fi 16363 export as_echo_body 16364 as_echo='sh -c $as_echo_body as_echo' 16365fi 16366 16367# The user is always right. 16368if test "${PATH_SEPARATOR+set}" != set; then 16369 PATH_SEPARATOR=: 16370 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16371 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16372 PATH_SEPARATOR=';' 16373 } 16374fi 16375 16376 16377# IFS 16378# We need space, tab and new line, in precisely that order. Quoting is 16379# there to prevent editors from complaining about space-tab. 16380# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16381# splitting by setting IFS to empty value.) 16382IFS=" "" $as_nl" 16383 16384# Find who we are. Look in the path if we contain no directory separator. 16385as_myself= 16386case $0 in #(( 16387 *[\\/]* ) as_myself=$0 ;; 16388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16389for as_dir in $PATH 16390do 16391 IFS=$as_save_IFS 16392 test -z "$as_dir" && as_dir=. 16393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16394 done 16395IFS=$as_save_IFS 16396 16397 ;; 16398esac 16399# We did not find ourselves, most probably we were run as `sh COMMAND' 16400# in which case we are not to be found in the path. 16401if test "x$as_myself" = x; then 16402 as_myself=$0 16403fi 16404if test ! -f "$as_myself"; then 16405 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16406 exit 1 16407fi 16408 16409# Unset variables that we do not need and which cause bugs (e.g. in 16410# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16411# suppresses any "Segmentation fault" message there. '((' could 16412# trigger a bug in pdksh 5.2.14. 16413for as_var in BASH_ENV ENV MAIL MAILPATH 16414do eval test x\${$as_var+set} = xset \ 16415 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16416done 16417PS1='$ ' 16418PS2='> ' 16419PS4='+ ' 16420 16421# NLS nuisances. 16422LC_ALL=C 16423export LC_ALL 16424LANGUAGE=C 16425export LANGUAGE 16426 16427# CDPATH. 16428(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16429 16430 16431# as_fn_error STATUS ERROR [LINENO LOG_FD] 16432# ---------------------------------------- 16433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16435# script with STATUS, using 1 if that was 0. 16436as_fn_error () 16437{ 16438 as_status=$1; test $as_status -eq 0 && as_status=1 16439 if test "$4"; then 16440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16441 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16442 fi 16443 $as_echo "$as_me: error: $2" >&2 16444 as_fn_exit $as_status 16445} # as_fn_error 16446 16447 16448# as_fn_set_status STATUS 16449# ----------------------- 16450# Set $? to STATUS, without forking. 16451as_fn_set_status () 16452{ 16453 return $1 16454} # as_fn_set_status 16455 16456# as_fn_exit STATUS 16457# ----------------- 16458# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16459as_fn_exit () 16460{ 16461 set +e 16462 as_fn_set_status $1 16463 exit $1 16464} # as_fn_exit 16465 16466# as_fn_unset VAR 16467# --------------- 16468# Portably unset VAR. 16469as_fn_unset () 16470{ 16471 { eval $1=; unset $1;} 16472} 16473as_unset=as_fn_unset 16474# as_fn_append VAR VALUE 16475# ---------------------- 16476# Append the text in VALUE to the end of the definition contained in VAR. Take 16477# advantage of any shell optimizations that allow amortized linear growth over 16478# repeated appends, instead of the typical quadratic growth present in naive 16479# implementations. 16480if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16481 eval 'as_fn_append () 16482 { 16483 eval $1+=\$2 16484 }' 16485else 16486 as_fn_append () 16487 { 16488 eval $1=\$$1\$2 16489 } 16490fi # as_fn_append 16491 16492# as_fn_arith ARG... 16493# ------------------ 16494# Perform arithmetic evaluation on the ARGs, and store the result in the 16495# global $as_val. Take advantage of shells that can avoid forks. The arguments 16496# must be portable across $(()) and expr. 16497if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16498 eval 'as_fn_arith () 16499 { 16500 as_val=$(( $* )) 16501 }' 16502else 16503 as_fn_arith () 16504 { 16505 as_val=`expr "$@" || test $? -eq 1` 16506 } 16507fi # as_fn_arith 16508 16509 16510if expr a : '\(a\)' >/dev/null 2>&1 && 16511 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16512 as_expr=expr 16513else 16514 as_expr=false 16515fi 16516 16517if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16518 as_basename=basename 16519else 16520 as_basename=false 16521fi 16522 16523if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16524 as_dirname=dirname 16525else 16526 as_dirname=false 16527fi 16528 16529as_me=`$as_basename -- "$0" || 16530$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16531 X"$0" : 'X\(//\)$' \| \ 16532 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16533$as_echo X/"$0" | 16534 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16535 s//\1/ 16536 q 16537 } 16538 /^X\/\(\/\/\)$/{ 16539 s//\1/ 16540 q 16541 } 16542 /^X\/\(\/\).*/{ 16543 s//\1/ 16544 q 16545 } 16546 s/.*/./; q'` 16547 16548# Avoid depending upon Character Ranges. 16549as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16550as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16551as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16552as_cr_digits='0123456789' 16553as_cr_alnum=$as_cr_Letters$as_cr_digits 16554 16555ECHO_C= ECHO_N= ECHO_T= 16556case `echo -n x` in #((((( 16557-n*) 16558 case `echo 'xy\c'` in 16559 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16560 xy) ECHO_C='\c';; 16561 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16562 ECHO_T=' ';; 16563 esac;; 16564*) 16565 ECHO_N='-n';; 16566esac 16567 16568rm -f conf$$ conf$$.exe conf$$.file 16569if test -d conf$$.dir; then 16570 rm -f conf$$.dir/conf$$.file 16571else 16572 rm -f conf$$.dir 16573 mkdir conf$$.dir 2>/dev/null 16574fi 16575if (echo >conf$$.file) 2>/dev/null; then 16576 if ln -s conf$$.file conf$$ 2>/dev/null; then 16577 as_ln_s='ln -s' 16578 # ... but there are two gotchas: 16579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16581 # In both cases, we have to default to `cp -pR'. 16582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16583 as_ln_s='cp -pR' 16584 elif ln conf$$.file conf$$ 2>/dev/null; then 16585 as_ln_s=ln 16586 else 16587 as_ln_s='cp -pR' 16588 fi 16589else 16590 as_ln_s='cp -pR' 16591fi 16592rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16593rmdir conf$$.dir 2>/dev/null 16594 16595 16596# as_fn_mkdir_p 16597# ------------- 16598# Create "$as_dir" as a directory, including parents if necessary. 16599as_fn_mkdir_p () 16600{ 16601 16602 case $as_dir in #( 16603 -*) as_dir=./$as_dir;; 16604 esac 16605 test -d "$as_dir" || eval $as_mkdir_p || { 16606 as_dirs= 16607 while :; do 16608 case $as_dir in #( 16609 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16610 *) as_qdir=$as_dir;; 16611 esac 16612 as_dirs="'$as_qdir' $as_dirs" 16613 as_dir=`$as_dirname -- "$as_dir" || 16614$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16615 X"$as_dir" : 'X\(//\)[^/]' \| \ 16616 X"$as_dir" : 'X\(//\)$' \| \ 16617 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16618$as_echo X"$as_dir" | 16619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16620 s//\1/ 16621 q 16622 } 16623 /^X\(\/\/\)[^/].*/{ 16624 s//\1/ 16625 q 16626 } 16627 /^X\(\/\/\)$/{ 16628 s//\1/ 16629 q 16630 } 16631 /^X\(\/\).*/{ 16632 s//\1/ 16633 q 16634 } 16635 s/.*/./; q'` 16636 test -d "$as_dir" && break 16637 done 16638 test -z "$as_dirs" || eval "mkdir $as_dirs" 16639 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16640 16641 16642} # as_fn_mkdir_p 16643if mkdir -p . 2>/dev/null; then 16644 as_mkdir_p='mkdir -p "$as_dir"' 16645else 16646 test -d ./-p && rmdir ./-p 16647 as_mkdir_p=false 16648fi 16649 16650 16651# as_fn_executable_p FILE 16652# ----------------------- 16653# Test if FILE is an executable regular file. 16654as_fn_executable_p () 16655{ 16656 test -f "$1" && test -x "$1" 16657} # as_fn_executable_p 16658as_test_x='test -x' 16659as_executable_p=as_fn_executable_p 16660 16661# Sed expression to map a string onto a valid CPP name. 16662as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16663 16664# Sed expression to map a string onto a valid variable name. 16665as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16666 16667 16668exec 6>&1 16669## ----------------------------------- ## 16670## Main body of $CONFIG_STATUS script. ## 16671## ----------------------------------- ## 16672_ASEOF 16673test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16674 16675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16676# Save the log message, to keep $0 and so on meaningful, and to 16677# report actual input values of CONFIG_FILES etc. instead of their 16678# values after options handling. 16679ac_log=" 16680This file was extended by expat $as_me 2.1.0, which was 16681generated by GNU Autoconf 2.69. Invocation command line was 16682 16683 CONFIG_FILES = $CONFIG_FILES 16684 CONFIG_HEADERS = $CONFIG_HEADERS 16685 CONFIG_LINKS = $CONFIG_LINKS 16686 CONFIG_COMMANDS = $CONFIG_COMMANDS 16687 $ $0 $@ 16688 16689on `(hostname || uname -n) 2>/dev/null | sed 1q` 16690" 16691 16692_ACEOF 16693 16694case $ac_config_files in *" 16695"*) set x $ac_config_files; shift; ac_config_files=$*;; 16696esac 16697 16698case $ac_config_headers in *" 16699"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16700esac 16701 16702 16703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16704# Files that config.status was made for. 16705config_files="$ac_config_files" 16706config_headers="$ac_config_headers" 16707config_commands="$ac_config_commands" 16708 16709_ACEOF 16710 16711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16712ac_cs_usage="\ 16713\`$as_me' instantiates files and other configuration actions 16714from templates according to the current configuration. Unless the files 16715and actions are specified as TAGs, all are instantiated by default. 16716 16717Usage: $0 [OPTION]... [TAG]... 16718 16719 -h, --help print this help, then exit 16720 -V, --version print version number and configuration settings, then exit 16721 --config print configuration, then exit 16722 -q, --quiet, --silent 16723 do not print progress messages 16724 -d, --debug don't remove temporary files 16725 --recheck update $as_me by reconfiguring in the same conditions 16726 --file=FILE[:TEMPLATE] 16727 instantiate the configuration file FILE 16728 --header=FILE[:TEMPLATE] 16729 instantiate the configuration header FILE 16730 16731Configuration files: 16732$config_files 16733 16734Configuration headers: 16735$config_headers 16736 16737Configuration commands: 16738$config_commands 16739 16740Report bugs to <expat-bugs@libexpat.org>." 16741 16742_ACEOF 16743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16744ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16745ac_cs_version="\\ 16746expat config.status 2.1.0 16747configured by $0, generated by GNU Autoconf 2.69, 16748 with options \\"\$ac_cs_config\\" 16749 16750Copyright (C) 2012 Free Software Foundation, Inc. 16751This config.status script is free software; the Free Software Foundation 16752gives unlimited permission to copy, distribute and modify it." 16753 16754ac_pwd='$ac_pwd' 16755srcdir='$srcdir' 16756INSTALL='$INSTALL' 16757AWK='$AWK' 16758test -n "\$AWK" || AWK=awk 16759_ACEOF 16760 16761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16762# The default lists apply if the user does not specify any file. 16763ac_need_defaults=: 16764while test $# != 0 16765do 16766 case $1 in 16767 --*=?*) 16768 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16770 ac_shift=: 16771 ;; 16772 --*=) 16773 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16774 ac_optarg= 16775 ac_shift=: 16776 ;; 16777 *) 16778 ac_option=$1 16779 ac_optarg=$2 16780 ac_shift=shift 16781 ;; 16782 esac 16783 16784 case $ac_option in 16785 # Handling of the options. 16786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16787 ac_cs_recheck=: ;; 16788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16789 $as_echo "$ac_cs_version"; exit ;; 16790 --config | --confi | --conf | --con | --co | --c ) 16791 $as_echo "$ac_cs_config"; exit ;; 16792 --debug | --debu | --deb | --de | --d | -d ) 16793 debug=: ;; 16794 --file | --fil | --fi | --f ) 16795 $ac_shift 16796 case $ac_optarg in 16797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16798 '') as_fn_error $? "missing file argument" ;; 16799 esac 16800 as_fn_append CONFIG_FILES " '$ac_optarg'" 16801 ac_need_defaults=false;; 16802 --header | --heade | --head | --hea ) 16803 $ac_shift 16804 case $ac_optarg in 16805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16806 esac 16807 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16808 ac_need_defaults=false;; 16809 --he | --h) 16810 # Conflict between --help and --header 16811 as_fn_error $? "ambiguous option: \`$1' 16812Try \`$0 --help' for more information.";; 16813 --help | --hel | -h ) 16814 $as_echo "$ac_cs_usage"; exit ;; 16815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16816 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16817 ac_cs_silent=: ;; 16818 16819 # This is an error. 16820 -*) as_fn_error $? "unrecognized option: \`$1' 16821Try \`$0 --help' for more information." ;; 16822 16823 *) as_fn_append ac_config_targets " $1" 16824 ac_need_defaults=false ;; 16825 16826 esac 16827 shift 16828done 16829 16830ac_configure_extra_args= 16831 16832if $ac_cs_silent; then 16833 exec 6>/dev/null 16834 ac_configure_extra_args="$ac_configure_extra_args --silent" 16835fi 16836 16837_ACEOF 16838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16839if \$ac_cs_recheck; then 16840 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16841 shift 16842 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16843 CONFIG_SHELL='$SHELL' 16844 export CONFIG_SHELL 16845 exec "\$@" 16846fi 16847 16848_ACEOF 16849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16850exec 5>>config.log 16851{ 16852 echo 16853 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16854## Running $as_me. ## 16855_ASBOX 16856 $as_echo "$ac_log" 16857} >&5 16858 16859_ACEOF 16860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16861# 16862# INIT-COMMANDS 16863# 16864 16865 16866# The HP-UX ksh and POSIX shell print the target directory to stdout 16867# if CDPATH is set. 16868(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16869 16870sed_quote_subst='$sed_quote_subst' 16871double_quote_subst='$double_quote_subst' 16872delay_variable_subst='$delay_variable_subst' 16873AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 16874DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16875OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16876macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16877macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16878enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16879enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16880pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16881enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16882SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16883ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16884PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16885host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16886host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16887host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16888build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16889build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16890build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16891SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16892Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16893GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16894EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16895FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16896LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16897NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16898LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16899max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16900ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16901exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16902lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16903lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16904lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16905lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16906lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16907reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16908reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16909deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16910file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16911file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16912want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16913sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16914AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16915AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16916archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16917STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16918RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16919old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16920old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16921old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16922lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16923CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16924CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16925compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16926GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16927lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16928lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16929lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16930lt_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"`' 16931nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16932lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16933objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16934MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16935lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16936lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16937lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16938lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16939lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16940need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16941MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16942DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16943NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16944LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16945OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16946OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16947libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16948shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16949extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16950archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16951enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16952export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16953whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16954compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16955old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16956old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16957archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16958archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16959module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16960module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16961with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16962allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16963no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16964hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16965hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16966hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16967hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16968hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16969hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16970hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16971inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16972link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16973always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16974export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16975exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16976include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16977prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16978postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16979file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16980variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16981need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16982need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16983version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16984runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16985shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16986shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16987libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16988library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16989soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16990install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16991postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16992postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16993finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16994finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16995hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16996sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16997sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16998hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16999enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17000enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17001enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17002old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17003striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17004compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17005predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17006postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17007predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17008postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17009compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17010LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17011reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17012reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17013old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17014compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17015GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17016lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17017lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17018lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17019lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17020lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17021archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17022enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17023export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17024whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17025compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17026old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17027old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17028archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17029archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17030module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17031module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17032with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17033allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17034no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17035hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17036hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17037hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17038hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17039hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17040hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17041hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17042inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17043link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17044always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17045export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17046exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17047include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17048prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17049postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17050file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17051hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17052compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17053predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17054postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17055predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17056postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17057compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17058 17059LTCC='$LTCC' 17060LTCFLAGS='$LTCFLAGS' 17061compiler='$compiler_DEFAULT' 17062 17063# A function that is used when there is no print builtin or printf. 17064func_fallback_echo () 17065{ 17066 eval 'cat <<_LTECHO_EOF 17067\$1 17068_LTECHO_EOF' 17069} 17070 17071# Quote evaled strings. 17072for var in AS \ 17073DLLTOOL \ 17074OBJDUMP \ 17075SHELL \ 17076ECHO \ 17077PATH_SEPARATOR \ 17078SED \ 17079GREP \ 17080EGREP \ 17081FGREP \ 17082LD \ 17083NM \ 17084LN_S \ 17085lt_SP2NL \ 17086lt_NL2SP \ 17087reload_flag \ 17088deplibs_check_method \ 17089file_magic_cmd \ 17090file_magic_glob \ 17091want_nocaseglob \ 17092sharedlib_from_linklib_cmd \ 17093AR \ 17094AR_FLAGS \ 17095archiver_list_spec \ 17096STRIP \ 17097RANLIB \ 17098CC \ 17099CFLAGS \ 17100compiler \ 17101lt_cv_sys_global_symbol_pipe \ 17102lt_cv_sys_global_symbol_to_cdecl \ 17103lt_cv_sys_global_symbol_to_c_name_address \ 17104lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17105nm_file_list_spec \ 17106lt_prog_compiler_no_builtin_flag \ 17107lt_prog_compiler_pic \ 17108lt_prog_compiler_wl \ 17109lt_prog_compiler_static \ 17110lt_cv_prog_compiler_c_o \ 17111need_locks \ 17112MANIFEST_TOOL \ 17113DSYMUTIL \ 17114NMEDIT \ 17115LIPO \ 17116OTOOL \ 17117OTOOL64 \ 17118shrext_cmds \ 17119export_dynamic_flag_spec \ 17120whole_archive_flag_spec \ 17121compiler_needs_object \ 17122with_gnu_ld \ 17123allow_undefined_flag \ 17124no_undefined_flag \ 17125hardcode_libdir_flag_spec \ 17126hardcode_libdir_separator \ 17127exclude_expsyms \ 17128include_expsyms \ 17129file_list_spec \ 17130variables_saved_for_relink \ 17131libname_spec \ 17132library_names_spec \ 17133soname_spec \ 17134install_override_mode \ 17135finish_eval \ 17136old_striplib \ 17137striplib \ 17138compiler_lib_search_dirs \ 17139predep_objects \ 17140postdep_objects \ 17141predeps \ 17142postdeps \ 17143compiler_lib_search_path \ 17144LD_CXX \ 17145reload_flag_CXX \ 17146compiler_CXX \ 17147lt_prog_compiler_no_builtin_flag_CXX \ 17148lt_prog_compiler_pic_CXX \ 17149lt_prog_compiler_wl_CXX \ 17150lt_prog_compiler_static_CXX \ 17151lt_cv_prog_compiler_c_o_CXX \ 17152export_dynamic_flag_spec_CXX \ 17153whole_archive_flag_spec_CXX \ 17154compiler_needs_object_CXX \ 17155with_gnu_ld_CXX \ 17156allow_undefined_flag_CXX \ 17157no_undefined_flag_CXX \ 17158hardcode_libdir_flag_spec_CXX \ 17159hardcode_libdir_separator_CXX \ 17160exclude_expsyms_CXX \ 17161include_expsyms_CXX \ 17162file_list_spec_CXX \ 17163compiler_lib_search_dirs_CXX \ 17164predep_objects_CXX \ 17165postdep_objects_CXX \ 17166predeps_CXX \ 17167postdeps_CXX \ 17168compiler_lib_search_path_CXX; do 17169 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17170 *[\\\\\\\`\\"\\\$]*) 17171 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17172 ;; 17173 *) 17174 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17175 ;; 17176 esac 17177done 17178 17179# Double-quote double-evaled strings. 17180for var in reload_cmds \ 17181old_postinstall_cmds \ 17182old_postuninstall_cmds \ 17183old_archive_cmds \ 17184extract_expsyms_cmds \ 17185old_archive_from_new_cmds \ 17186old_archive_from_expsyms_cmds \ 17187archive_cmds \ 17188archive_expsym_cmds \ 17189module_cmds \ 17190module_expsym_cmds \ 17191export_symbols_cmds \ 17192prelink_cmds \ 17193postlink_cmds \ 17194postinstall_cmds \ 17195postuninstall_cmds \ 17196finish_cmds \ 17197sys_lib_search_path_spec \ 17198sys_lib_dlsearch_path_spec \ 17199reload_cmds_CXX \ 17200old_archive_cmds_CXX \ 17201old_archive_from_new_cmds_CXX \ 17202old_archive_from_expsyms_cmds_CXX \ 17203archive_cmds_CXX \ 17204archive_expsym_cmds_CXX \ 17205module_cmds_CXX \ 17206module_expsym_cmds_CXX \ 17207export_symbols_cmds_CXX \ 17208prelink_cmds_CXX \ 17209postlink_cmds_CXX; do 17210 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17211 *[\\\\\\\`\\"\\\$]*) 17212 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17213 ;; 17214 *) 17215 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17216 ;; 17217 esac 17218done 17219 17220ac_aux_dir='$ac_aux_dir' 17221xsi_shell='$xsi_shell' 17222lt_shell_append='$lt_shell_append' 17223 17224# See if we are running on zsh, and set the options which allow our 17225# commands through without removal of \ escapes INIT. 17226if test -n "\${ZSH_VERSION+set}" ; then 17227 setopt NO_GLOB_SUBST 17228fi 17229 17230 17231 PACKAGE='$PACKAGE' 17232 VERSION='$VERSION' 17233 TIMESTAMP='$TIMESTAMP' 17234 RM='$RM' 17235 ofile='$ofile' 17236 17237 17238 17239 17240 17241 17242_ACEOF 17243 17244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17245 17246# Handling of arguments. 17247for ac_config_target in $ac_config_targets 17248do 17249 case $ac_config_target in 17250 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;; 17251 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17253 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;; 17254 17255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17256 esac 17257done 17258 17259 17260# If the user did not use the arguments to specify the items to instantiate, 17261# then the envvar interface is used. Set only those that are not. 17262# We use the long form for the default assignment because of an extremely 17263# bizarre bug on SunOS 4.1.3. 17264if $ac_need_defaults; then 17265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17268fi 17269 17270# Have a temporary directory for convenience. Make it in the build tree 17271# simply because there is no reason against having it here, and in addition, 17272# creating and moving files from /tmp can sometimes cause problems. 17273# Hook for its removal unless debugging. 17274# Note that there is a small window in which the directory will not be cleaned: 17275# after its creation but before its name has been assigned to `$tmp'. 17276$debug || 17277{ 17278 tmp= ac_tmp= 17279 trap 'exit_status=$? 17280 : "${ac_tmp:=$tmp}" 17281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17282' 0 17283 trap 'as_fn_exit 1' 1 2 13 15 17284} 17285# Create a (secure) tmp directory for tmp files. 17286 17287{ 17288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17289 test -d "$tmp" 17290} || 17291{ 17292 tmp=./conf$$-$RANDOM 17293 (umask 077 && mkdir "$tmp") 17294} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17295ac_tmp=$tmp 17296 17297# Set up the scripts for CONFIG_FILES section. 17298# No need to generate them if there are no CONFIG_FILES. 17299# This happens for instance with `./config.status config.h'. 17300if test -n "$CONFIG_FILES"; then 17301 17302 17303ac_cr=`echo X | tr X '\015'` 17304# On cygwin, bash can eat \r inside `` if the user requested igncr. 17305# But we know of no other shell where ac_cr would be empty at this 17306# point, so we can use a bashism as a fallback. 17307if test "x$ac_cr" = x; then 17308 eval ac_cr=\$\'\\r\' 17309fi 17310ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17311if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17312 ac_cs_awk_cr='\\r' 17313else 17314 ac_cs_awk_cr=$ac_cr 17315fi 17316 17317echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17318_ACEOF 17319 17320 17321{ 17322 echo "cat >conf$$subs.awk <<_ACEOF" && 17323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17324 echo "_ACEOF" 17325} >conf$$subs.sh || 17326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17327ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17328ac_delim='%!_!# ' 17329for ac_last_try in false false false false false :; do 17330 . ./conf$$subs.sh || 17331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17332 17333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17334 if test $ac_delim_n = $ac_delim_num; then 17335 break 17336 elif $ac_last_try; then 17337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17338 else 17339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17340 fi 17341done 17342rm -f conf$$subs.sh 17343 17344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17345cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17346_ACEOF 17347sed -n ' 17348h 17349s/^/S["/; s/!.*/"]=/ 17350p 17351g 17352s/^[^!]*!// 17353:repl 17354t repl 17355s/'"$ac_delim"'$// 17356t delim 17357:nl 17358h 17359s/\(.\{148\}\)..*/\1/ 17360t more1 17361s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17362p 17363n 17364b repl 17365:more1 17366s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17367p 17368g 17369s/.\{148\}// 17370t nl 17371:delim 17372h 17373s/\(.\{148\}\)..*/\1/ 17374t more2 17375s/["\\]/\\&/g; s/^/"/; s/$/"/ 17376p 17377b 17378:more2 17379s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17380p 17381g 17382s/.\{148\}// 17383t delim 17384' <conf$$subs.awk | sed ' 17385/^[^""]/{ 17386 N 17387 s/\n// 17388} 17389' >>$CONFIG_STATUS || ac_write_fail=1 17390rm -f conf$$subs.awk 17391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17392_ACAWK 17393cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17394 for (key in S) S_is_set[key] = 1 17395 FS = "" 17396 17397} 17398{ 17399 line = $ 0 17400 nfields = split(line, field, "@") 17401 substed = 0 17402 len = length(field[1]) 17403 for (i = 2; i < nfields; i++) { 17404 key = field[i] 17405 keylen = length(key) 17406 if (S_is_set[key]) { 17407 value = S[key] 17408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17409 len += length(value) + length(field[++i]) 17410 substed = 1 17411 } else 17412 len += 1 + keylen 17413 } 17414 17415 print line 17416} 17417 17418_ACAWK 17419_ACEOF 17420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17421if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17423else 17424 cat 17425fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17427_ACEOF 17428 17429# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17430# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17431# trailing colons and then remove the whole line if VPATH becomes empty 17432# (actually we leave an empty line to preserve line numbers). 17433if test "x$srcdir" = x.; then 17434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17435h 17436s/// 17437s/^/:/ 17438s/[ ]*$/:/ 17439s/:\$(srcdir):/:/g 17440s/:\${srcdir}:/:/g 17441s/:@srcdir@:/:/g 17442s/^:*// 17443s/:*$// 17444x 17445s/\(=[ ]*\).*/\1/ 17446G 17447s/\n// 17448s/^[^=]*=[ ]*$// 17449}' 17450fi 17451 17452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17453fi # test -n "$CONFIG_FILES" 17454 17455# Set up the scripts for CONFIG_HEADERS section. 17456# No need to generate them if there are no CONFIG_HEADERS. 17457# This happens for instance with `./config.status Makefile'. 17458if test -n "$CONFIG_HEADERS"; then 17459cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17460BEGIN { 17461_ACEOF 17462 17463# Transform confdefs.h into an awk script `defines.awk', embedded as 17464# here-document in config.status, that substitutes the proper values into 17465# config.h.in to produce config.h. 17466 17467# Create a delimiter string that does not exist in confdefs.h, to ease 17468# handling of long lines. 17469ac_delim='%!_!# ' 17470for ac_last_try in false false :; do 17471 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17472 if test -z "$ac_tt"; then 17473 break 17474 elif $ac_last_try; then 17475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17476 else 17477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17478 fi 17479done 17480 17481# For the awk script, D is an array of macro values keyed by name, 17482# likewise P contains macro parameters if any. Preserve backslash 17483# newline sequences. 17484 17485ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17486sed -n ' 17487s/.\{148\}/&'"$ac_delim"'/g 17488t rset 17489:rset 17490s/^[ ]*#[ ]*define[ ][ ]*/ / 17491t def 17492d 17493:def 17494s/\\$// 17495t bsnl 17496s/["\\]/\\&/g 17497s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17498D["\1"]=" \3"/p 17499s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17500d 17501:bsnl 17502s/["\\]/\\&/g 17503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17504D["\1"]=" \3\\\\\\n"\\/p 17505t cont 17506s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17507t cont 17508d 17509:cont 17510n 17511s/.\{148\}/&'"$ac_delim"'/g 17512t clear 17513:clear 17514s/\\$// 17515t bsnlc 17516s/["\\]/\\&/g; s/^/"/; s/$/"/p 17517d 17518:bsnlc 17519s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17520b cont 17521' <confdefs.h | sed ' 17522s/'"$ac_delim"'/"\\\ 17523"/g' >>$CONFIG_STATUS || ac_write_fail=1 17524 17525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17526 for (key in D) D_is_set[key] = 1 17527 FS = "" 17528} 17529/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17530 line = \$ 0 17531 split(line, arg, " ") 17532 if (arg[1] == "#") { 17533 defundef = arg[2] 17534 mac1 = arg[3] 17535 } else { 17536 defundef = substr(arg[1], 2) 17537 mac1 = arg[2] 17538 } 17539 split(mac1, mac2, "(") #) 17540 macro = mac2[1] 17541 prefix = substr(line, 1, index(line, defundef) - 1) 17542 if (D_is_set[macro]) { 17543 # Preserve the white space surrounding the "#". 17544 print prefix "define", macro P[macro] D[macro] 17545 next 17546 } else { 17547 # Replace #undef with comments. This is necessary, for example, 17548 # in the case of _POSIX_SOURCE, which is predefined and required 17549 # on some systems where configure will not decide to define it. 17550 if (defundef == "undef") { 17551 print "/*", prefix defundef, macro, "*/" 17552 next 17553 } 17554 } 17555} 17556{ print } 17557_ACAWK 17558_ACEOF 17559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17561fi # test -n "$CONFIG_HEADERS" 17562 17563 17564eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17565shift 17566for ac_tag 17567do 17568 case $ac_tag in 17569 :[FHLC]) ac_mode=$ac_tag; continue;; 17570 esac 17571 case $ac_mode$ac_tag in 17572 :[FHL]*:*);; 17573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17574 :[FH]-) ac_tag=-:-;; 17575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17576 esac 17577 ac_save_IFS=$IFS 17578 IFS=: 17579 set x $ac_tag 17580 IFS=$ac_save_IFS 17581 shift 17582 ac_file=$1 17583 shift 17584 17585 case $ac_mode in 17586 :L) ac_source=$1;; 17587 :[FH]) 17588 ac_file_inputs= 17589 for ac_f 17590 do 17591 case $ac_f in 17592 -) ac_f="$ac_tmp/stdin";; 17593 *) # Look for the file first in the build tree, then in the source tree 17594 # (if the path is not absolute). The absolute path cannot be DOS-style, 17595 # because $ac_f cannot contain `:'. 17596 test -f "$ac_f" || 17597 case $ac_f in 17598 [\\/$]*) false;; 17599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17600 esac || 17601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17602 esac 17603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17604 as_fn_append ac_file_inputs " '$ac_f'" 17605 done 17606 17607 # Let's still pretend it is `configure' which instantiates (i.e., don't 17608 # use $as_me), people would be surprised to read: 17609 # /* config.h. Generated by config.status. */ 17610 configure_input='Generated from '` 17611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17612 `' by configure.' 17613 if test x"$ac_file" != x-; then 17614 configure_input="$ac_file. $configure_input" 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17616$as_echo "$as_me: creating $ac_file" >&6;} 17617 fi 17618 # Neutralize special characters interpreted by sed in replacement strings. 17619 case $configure_input in #( 17620 *\&* | *\|* | *\\* ) 17621 ac_sed_conf_input=`$as_echo "$configure_input" | 17622 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17623 *) ac_sed_conf_input=$configure_input;; 17624 esac 17625 17626 case $ac_tag in 17627 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17629 esac 17630 ;; 17631 esac 17632 17633 ac_dir=`$as_dirname -- "$ac_file" || 17634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17635 X"$ac_file" : 'X\(//\)[^/]' \| \ 17636 X"$ac_file" : 'X\(//\)$' \| \ 17637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17638$as_echo X"$ac_file" | 17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17640 s//\1/ 17641 q 17642 } 17643 /^X\(\/\/\)[^/].*/{ 17644 s//\1/ 17645 q 17646 } 17647 /^X\(\/\/\)$/{ 17648 s//\1/ 17649 q 17650 } 17651 /^X\(\/\).*/{ 17652 s//\1/ 17653 q 17654 } 17655 s/.*/./; q'` 17656 as_dir="$ac_dir"; as_fn_mkdir_p 17657 ac_builddir=. 17658 17659case "$ac_dir" in 17660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17661*) 17662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17663 # A ".." for each directory in $ac_dir_suffix. 17664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17665 case $ac_top_builddir_sub in 17666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17668 esac ;; 17669esac 17670ac_abs_top_builddir=$ac_pwd 17671ac_abs_builddir=$ac_pwd$ac_dir_suffix 17672# for backward compatibility: 17673ac_top_builddir=$ac_top_build_prefix 17674 17675case $srcdir in 17676 .) # We are building in place. 17677 ac_srcdir=. 17678 ac_top_srcdir=$ac_top_builddir_sub 17679 ac_abs_top_srcdir=$ac_pwd ;; 17680 [\\/]* | ?:[\\/]* ) # Absolute name. 17681 ac_srcdir=$srcdir$ac_dir_suffix; 17682 ac_top_srcdir=$srcdir 17683 ac_abs_top_srcdir=$srcdir ;; 17684 *) # Relative name. 17685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17686 ac_top_srcdir=$ac_top_build_prefix$srcdir 17687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17688esac 17689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17690 17691 17692 case $ac_mode in 17693 :F) 17694 # 17695 # CONFIG_FILE 17696 # 17697 17698 case $INSTALL in 17699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17701 esac 17702_ACEOF 17703 17704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17705# If the template does not know about datarootdir, expand it. 17706# FIXME: This hack should be removed a few years after 2.60. 17707ac_datarootdir_hack=; ac_datarootdir_seen= 17708ac_sed_dataroot=' 17709/datarootdir/ { 17710 p 17711 q 17712} 17713/@datadir@/p 17714/@docdir@/p 17715/@infodir@/p 17716/@localedir@/p 17717/@mandir@/p' 17718case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17719*datarootdir*) ac_datarootdir_seen=yes;; 17720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17722$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17723_ACEOF 17724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17725 ac_datarootdir_hack=' 17726 s&@datadir@&$datadir&g 17727 s&@docdir@&$docdir&g 17728 s&@infodir@&$infodir&g 17729 s&@localedir@&$localedir&g 17730 s&@mandir@&$mandir&g 17731 s&\\\${datarootdir}&$datarootdir&g' ;; 17732esac 17733_ACEOF 17734 17735# Neutralize VPATH when `$srcdir' = `.'. 17736# Shell code in configure.ac might set extrasub. 17737# FIXME: do we really want to maintain this feature? 17738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17739ac_sed_extra="$ac_vpsub 17740$extrasub 17741_ACEOF 17742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17743:t 17744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17745s|@configure_input@|$ac_sed_conf_input|;t t 17746s&@top_builddir@&$ac_top_builddir_sub&;t t 17747s&@top_build_prefix@&$ac_top_build_prefix&;t t 17748s&@srcdir@&$ac_srcdir&;t t 17749s&@abs_srcdir@&$ac_abs_srcdir&;t t 17750s&@top_srcdir@&$ac_top_srcdir&;t t 17751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17752s&@builddir@&$ac_builddir&;t t 17753s&@abs_builddir@&$ac_abs_builddir&;t t 17754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17755s&@INSTALL@&$ac_INSTALL&;t t 17756$ac_datarootdir_hack 17757" 17758eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17759 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17760 17761test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17762 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17764 "$ac_tmp/out"`; test -z "$ac_out"; } && 17765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17766which seems to be undefined. Please make sure it is defined" >&5 17767$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17768which seems to be undefined. Please make sure it is defined" >&2;} 17769 17770 rm -f "$ac_tmp/stdin" 17771 case $ac_file in 17772 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17773 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17774 esac \ 17775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17776 ;; 17777 :H) 17778 # 17779 # CONFIG_HEADER 17780 # 17781 if test x"$ac_file" != x-; then 17782 { 17783 $as_echo "/* $configure_input */" \ 17784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17785 } >"$ac_tmp/config.h" \ 17786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17787 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17789$as_echo "$as_me: $ac_file is unchanged" >&6;} 17790 else 17791 rm -f "$ac_file" 17792 mv "$ac_tmp/config.h" "$ac_file" \ 17793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17794 fi 17795 else 17796 $as_echo "/* $configure_input */" \ 17797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17798 || as_fn_error $? "could not create -" "$LINENO" 5 17799 fi 17800 ;; 17801 17802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17803$as_echo "$as_me: executing $ac_file commands" >&6;} 17804 ;; 17805 esac 17806 17807 17808 case $ac_file$ac_mode in 17809 "libtool":C) 17810 17811 # See if we are running on zsh, and set the options which allow our 17812 # commands through without removal of \ escapes. 17813 if test -n "${ZSH_VERSION+set}" ; then 17814 setopt NO_GLOB_SUBST 17815 fi 17816 17817 cfgfile="${ofile}T" 17818 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17819 $RM "$cfgfile" 17820 17821 cat <<_LT_EOF >> "$cfgfile" 17822#! $SHELL 17823 17824# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17825# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17826# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17827# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17828# 17829# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17830# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17831# Foundation, Inc. 17832# Written by Gordon Matzigkeit, 1996 17833# 17834# This file is part of GNU Libtool. 17835# 17836# GNU Libtool is free software; you can redistribute it and/or 17837# modify it under the terms of the GNU General Public License as 17838# published by the Free Software Foundation; either version 2 of 17839# the License, or (at your option) any later version. 17840# 17841# As a special exception to the GNU General Public License, 17842# if you distribute this file as part of a program or library that 17843# is built using GNU Libtool, you may include this file under the 17844# same distribution terms that you use for the rest of that program. 17845# 17846# GNU Libtool is distributed in the hope that it will be useful, 17847# but WITHOUT ANY WARRANTY; without even the implied warranty of 17848# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17849# GNU General Public License for more details. 17850# 17851# You should have received a copy of the GNU General Public License 17852# along with GNU Libtool; see the file COPYING. If not, a copy 17853# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17854# obtained by writing to the Free Software Foundation, Inc., 17855# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17856 17857 17858# The names of the tagged configurations supported by this script. 17859available_tags="CXX " 17860 17861# ### BEGIN LIBTOOL CONFIG 17862 17863# Assembler program. 17864AS=$lt_AS 17865 17866# DLL creation program. 17867DLLTOOL=$lt_DLLTOOL 17868 17869# Object dumper program. 17870OBJDUMP=$lt_OBJDUMP 17871 17872# Which release of libtool.m4 was used? 17873macro_version=$macro_version 17874macro_revision=$macro_revision 17875 17876# Whether or not to build shared libraries. 17877build_libtool_libs=$enable_shared 17878 17879# Whether or not to build static libraries. 17880build_old_libs=$enable_static 17881 17882# What type of objects to build. 17883pic_mode=$pic_mode 17884 17885# Whether or not to optimize for fast installation. 17886fast_install=$enable_fast_install 17887 17888# Shell to use when invoking shell scripts. 17889SHELL=$lt_SHELL 17890 17891# An echo program that protects backslashes. 17892ECHO=$lt_ECHO 17893 17894# The PATH separator for the build system. 17895PATH_SEPARATOR=$lt_PATH_SEPARATOR 17896 17897# The host system. 17898host_alias=$host_alias 17899host=$host 17900host_os=$host_os 17901 17902# The build system. 17903build_alias=$build_alias 17904build=$build 17905build_os=$build_os 17906 17907# A sed program that does not truncate output. 17908SED=$lt_SED 17909 17910# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17911Xsed="\$SED -e 1s/^X//" 17912 17913# A grep program that handles long lines. 17914GREP=$lt_GREP 17915 17916# An ERE matcher. 17917EGREP=$lt_EGREP 17918 17919# A literal string matcher. 17920FGREP=$lt_FGREP 17921 17922# A BSD- or MS-compatible name lister. 17923NM=$lt_NM 17924 17925# Whether we need soft or hard links. 17926LN_S=$lt_LN_S 17927 17928# What is the maximum length of a command? 17929max_cmd_len=$max_cmd_len 17930 17931# Object file suffix (normally "o"). 17932objext=$ac_objext 17933 17934# Executable file suffix (normally ""). 17935exeext=$exeext 17936 17937# whether the shell understands "unset". 17938lt_unset=$lt_unset 17939 17940# turn spaces into newlines. 17941SP2NL=$lt_lt_SP2NL 17942 17943# turn newlines into spaces. 17944NL2SP=$lt_lt_NL2SP 17945 17946# convert \$build file names to \$host format. 17947to_host_file_cmd=$lt_cv_to_host_file_cmd 17948 17949# convert \$build files to toolchain format. 17950to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17951 17952# Method to check whether dependent libraries are shared objects. 17953deplibs_check_method=$lt_deplibs_check_method 17954 17955# Command to use when deplibs_check_method = "file_magic". 17956file_magic_cmd=$lt_file_magic_cmd 17957 17958# How to find potential files when deplibs_check_method = "file_magic". 17959file_magic_glob=$lt_file_magic_glob 17960 17961# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17962want_nocaseglob=$lt_want_nocaseglob 17963 17964# Command to associate shared and link libraries. 17965sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17966 17967# The archiver. 17968AR=$lt_AR 17969 17970# Flags to create an archive. 17971AR_FLAGS=$lt_AR_FLAGS 17972 17973# How to feed a file listing to the archiver. 17974archiver_list_spec=$lt_archiver_list_spec 17975 17976# A symbol stripping program. 17977STRIP=$lt_STRIP 17978 17979# Commands used to install an old-style archive. 17980RANLIB=$lt_RANLIB 17981old_postinstall_cmds=$lt_old_postinstall_cmds 17982old_postuninstall_cmds=$lt_old_postuninstall_cmds 17983 17984# Whether to use a lock for old archive extraction. 17985lock_old_archive_extraction=$lock_old_archive_extraction 17986 17987# A C compiler. 17988LTCC=$lt_CC 17989 17990# LTCC compiler flags. 17991LTCFLAGS=$lt_CFLAGS 17992 17993# Take the output of nm and produce a listing of raw symbols and C names. 17994global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17995 17996# Transform the output of nm in a proper C declaration. 17997global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17998 17999# Transform the output of nm in a C name address pair. 18000global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18001 18002# Transform the output of nm in a C name address pair when lib prefix is needed. 18003global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18004 18005# Specify filename containing input files for \$NM. 18006nm_file_list_spec=$lt_nm_file_list_spec 18007 18008# The root where to search for dependent libraries,and in which our libraries should be installed. 18009lt_sysroot=$lt_sysroot 18010 18011# The name of the directory that contains temporary libtool files. 18012objdir=$objdir 18013 18014# Used to examine libraries when file_magic_cmd begins with "file". 18015MAGIC_CMD=$MAGIC_CMD 18016 18017# Must we lock files when doing compilation? 18018need_locks=$lt_need_locks 18019 18020# Manifest tool. 18021MANIFEST_TOOL=$lt_MANIFEST_TOOL 18022 18023# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18024DSYMUTIL=$lt_DSYMUTIL 18025 18026# Tool to change global to local symbols on Mac OS X. 18027NMEDIT=$lt_NMEDIT 18028 18029# Tool to manipulate fat objects and archives on Mac OS X. 18030LIPO=$lt_LIPO 18031 18032# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18033OTOOL=$lt_OTOOL 18034 18035# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18036OTOOL64=$lt_OTOOL64 18037 18038# Old archive suffix (normally "a"). 18039libext=$libext 18040 18041# Shared library suffix (normally ".so"). 18042shrext_cmds=$lt_shrext_cmds 18043 18044# The commands to extract the exported symbol list from a shared archive. 18045extract_expsyms_cmds=$lt_extract_expsyms_cmds 18046 18047# Variables whose values should be saved in libtool wrapper scripts and 18048# restored at link time. 18049variables_saved_for_relink=$lt_variables_saved_for_relink 18050 18051# Do we need the "lib" prefix for modules? 18052need_lib_prefix=$need_lib_prefix 18053 18054# Do we need a version for libraries? 18055need_version=$need_version 18056 18057# Library versioning type. 18058version_type=$version_type 18059 18060# Shared library runtime path variable. 18061runpath_var=$runpath_var 18062 18063# Shared library path variable. 18064shlibpath_var=$shlibpath_var 18065 18066# Is shlibpath searched before the hard-coded library search path? 18067shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18068 18069# Format of library name prefix. 18070libname_spec=$lt_libname_spec 18071 18072# List of archive names. First name is the real one, the rest are links. 18073# The last name is the one that the linker finds with -lNAME 18074library_names_spec=$lt_library_names_spec 18075 18076# The coded name of the library, if different from the real name. 18077soname_spec=$lt_soname_spec 18078 18079# Permission mode override for installation of shared libraries. 18080install_override_mode=$lt_install_override_mode 18081 18082# Command to use after installation of a shared archive. 18083postinstall_cmds=$lt_postinstall_cmds 18084 18085# Command to use after uninstallation of a shared archive. 18086postuninstall_cmds=$lt_postuninstall_cmds 18087 18088# Commands used to finish a libtool library installation in a directory. 18089finish_cmds=$lt_finish_cmds 18090 18091# As "finish_cmds", except a single script fragment to be evaled but 18092# not shown. 18093finish_eval=$lt_finish_eval 18094 18095# Whether we should hardcode library paths into libraries. 18096hardcode_into_libs=$hardcode_into_libs 18097 18098# Compile-time system search path for libraries. 18099sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18100 18101# Run-time system search path for libraries. 18102sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18103 18104# Whether dlopen is supported. 18105dlopen_support=$enable_dlopen 18106 18107# Whether dlopen of programs is supported. 18108dlopen_self=$enable_dlopen_self 18109 18110# Whether dlopen of statically linked programs is supported. 18111dlopen_self_static=$enable_dlopen_self_static 18112 18113# Commands to strip libraries. 18114old_striplib=$lt_old_striplib 18115striplib=$lt_striplib 18116 18117 18118# The linker used to build libraries. 18119LD=$lt_LD 18120 18121# How to create reloadable object files. 18122reload_flag=$lt_reload_flag 18123reload_cmds=$lt_reload_cmds 18124 18125# Commands used to build an old-style archive. 18126old_archive_cmds=$lt_old_archive_cmds 18127 18128# A language specific compiler. 18129CC=$lt_compiler 18130 18131# Is the compiler the GNU compiler? 18132with_gcc=$GCC 18133 18134# Compiler flag to turn off builtin functions. 18135no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18136 18137# Additional compiler flags for building library objects. 18138pic_flag=$lt_lt_prog_compiler_pic 18139 18140# How to pass a linker flag through the compiler. 18141wl=$lt_lt_prog_compiler_wl 18142 18143# Compiler flag to prevent dynamic linking. 18144link_static_flag=$lt_lt_prog_compiler_static 18145 18146# Does compiler simultaneously support -c and -o options? 18147compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18148 18149# Whether or not to add -lc for building shared libraries. 18150build_libtool_need_lc=$archive_cmds_need_lc 18151 18152# Whether or not to disallow shared libs when runtime libs are static. 18153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18154 18155# Compiler flag to allow reflexive dlopens. 18156export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18157 18158# Compiler flag to generate shared objects directly from archives. 18159whole_archive_flag_spec=$lt_whole_archive_flag_spec 18160 18161# Whether the compiler copes with passing no objects directly. 18162compiler_needs_object=$lt_compiler_needs_object 18163 18164# Create an old-style archive from a shared archive. 18165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18166 18167# Create a temporary old-style archive to link instead of a shared archive. 18168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18169 18170# Commands used to build a shared archive. 18171archive_cmds=$lt_archive_cmds 18172archive_expsym_cmds=$lt_archive_expsym_cmds 18173 18174# Commands used to build a loadable module if different from building 18175# a shared archive. 18176module_cmds=$lt_module_cmds 18177module_expsym_cmds=$lt_module_expsym_cmds 18178 18179# Whether we are building with GNU ld or not. 18180with_gnu_ld=$lt_with_gnu_ld 18181 18182# Flag that allows shared libraries with undefined symbols to be built. 18183allow_undefined_flag=$lt_allow_undefined_flag 18184 18185# Flag that enforces no undefined symbols. 18186no_undefined_flag=$lt_no_undefined_flag 18187 18188# Flag to hardcode \$libdir into a binary during linking. 18189# This must work even if \$libdir does not exist 18190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18191 18192# Whether we need a single "-rpath" flag with a separated argument. 18193hardcode_libdir_separator=$lt_hardcode_libdir_separator 18194 18195# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18196# DIR into the resulting binary. 18197hardcode_direct=$hardcode_direct 18198 18199# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18200# DIR into the resulting binary and the resulting library dependency is 18201# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18202# library is relocated. 18203hardcode_direct_absolute=$hardcode_direct_absolute 18204 18205# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18206# into the resulting binary. 18207hardcode_minus_L=$hardcode_minus_L 18208 18209# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18210# into the resulting binary. 18211hardcode_shlibpath_var=$hardcode_shlibpath_var 18212 18213# Set to "yes" if building a shared library automatically hardcodes DIR 18214# into the library and all subsequent libraries and executables linked 18215# against it. 18216hardcode_automatic=$hardcode_automatic 18217 18218# Set to yes if linker adds runtime paths of dependent libraries 18219# to runtime path list. 18220inherit_rpath=$inherit_rpath 18221 18222# Whether libtool must link a program against all its dependency libraries. 18223link_all_deplibs=$link_all_deplibs 18224 18225# Set to "yes" if exported symbols are required. 18226always_export_symbols=$always_export_symbols 18227 18228# The commands to list exported symbols. 18229export_symbols_cmds=$lt_export_symbols_cmds 18230 18231# Symbols that should not be listed in the preloaded symbols. 18232exclude_expsyms=$lt_exclude_expsyms 18233 18234# Symbols that must always be exported. 18235include_expsyms=$lt_include_expsyms 18236 18237# Commands necessary for linking programs (against libraries) with templates. 18238prelink_cmds=$lt_prelink_cmds 18239 18240# Commands necessary for finishing linking programs. 18241postlink_cmds=$lt_postlink_cmds 18242 18243# Specify filename containing input files. 18244file_list_spec=$lt_file_list_spec 18245 18246# How to hardcode a shared library path into an executable. 18247hardcode_action=$hardcode_action 18248 18249# The directories searched by this compiler when creating a shared library. 18250compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18251 18252# Dependencies to place before and after the objects being linked to 18253# create a shared library. 18254predep_objects=$lt_predep_objects 18255postdep_objects=$lt_postdep_objects 18256predeps=$lt_predeps 18257postdeps=$lt_postdeps 18258 18259# The library search path used internally by the compiler when linking 18260# a shared library. 18261compiler_lib_search_path=$lt_compiler_lib_search_path 18262 18263# ### END LIBTOOL CONFIG 18264 18265_LT_EOF 18266 18267 case $host_os in 18268 aix3*) 18269 cat <<\_LT_EOF >> "$cfgfile" 18270# AIX sometimes has problems with the GCC collect2 program. For some 18271# reason, if we set the COLLECT_NAMES environment variable, the problems 18272# vanish in a puff of smoke. 18273if test "X${COLLECT_NAMES+set}" != Xset; then 18274 COLLECT_NAMES= 18275 export COLLECT_NAMES 18276fi 18277_LT_EOF 18278 ;; 18279 esac 18280 18281 18282ltmain="$ac_aux_dir/ltmain.sh" 18283 18284 18285 # We use sed instead of cat because bash on DJGPP gets confused if 18286 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18287 # text mode, it properly converts lines to CR/LF. This bash problem 18288 # is reportedly fixed, but why not run on old versions too? 18289 sed '$q' "$ltmain" >> "$cfgfile" \ 18290 || (rm -f "$cfgfile"; exit 1) 18291 18292 if test x"$xsi_shell" = xyes; then 18293 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18294func_dirname ()\ 18295{\ 18296\ case ${1} in\ 18297\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18298\ * ) func_dirname_result="${3}" ;;\ 18299\ esac\ 18300} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18301 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18303test 0 -eq $? || _lt_function_replace_fail=: 18304 18305 18306 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18307func_basename ()\ 18308{\ 18309\ func_basename_result="${1##*/}"\ 18310} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18311 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18313test 0 -eq $? || _lt_function_replace_fail=: 18314 18315 18316 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18317func_dirname_and_basename ()\ 18318{\ 18319\ case ${1} in\ 18320\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18321\ * ) func_dirname_result="${3}" ;;\ 18322\ esac\ 18323\ func_basename_result="${1##*/}"\ 18324} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18325 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18327test 0 -eq $? || _lt_function_replace_fail=: 18328 18329 18330 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18331func_stripname ()\ 18332{\ 18333\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18334\ # positional parameters, so assign one to ordinary parameter first.\ 18335\ func_stripname_result=${3}\ 18336\ func_stripname_result=${func_stripname_result#"${1}"}\ 18337\ func_stripname_result=${func_stripname_result%"${2}"}\ 18338} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18339 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18341test 0 -eq $? || _lt_function_replace_fail=: 18342 18343 18344 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18345func_split_long_opt ()\ 18346{\ 18347\ func_split_long_opt_name=${1%%=*}\ 18348\ func_split_long_opt_arg=${1#*=}\ 18349} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18350 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18351 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18352test 0 -eq $? || _lt_function_replace_fail=: 18353 18354 18355 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18356func_split_short_opt ()\ 18357{\ 18358\ func_split_short_opt_arg=${1#??}\ 18359\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18360} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18361 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18363test 0 -eq $? || _lt_function_replace_fail=: 18364 18365 18366 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18367func_lo2o ()\ 18368{\ 18369\ case ${1} in\ 18370\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18371\ *) func_lo2o_result=${1} ;;\ 18372\ esac\ 18373} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18374 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18376test 0 -eq $? || _lt_function_replace_fail=: 18377 18378 18379 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18380func_xform ()\ 18381{\ 18382 func_xform_result=${1%.*}.lo\ 18383} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18384 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18386test 0 -eq $? || _lt_function_replace_fail=: 18387 18388 18389 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18390func_arith ()\ 18391{\ 18392 func_arith_result=$(( $* ))\ 18393} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18394 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18396test 0 -eq $? || _lt_function_replace_fail=: 18397 18398 18399 sed -e '/^func_len ()$/,/^} # func_len /c\ 18400func_len ()\ 18401{\ 18402 func_len_result=${#1}\ 18403} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18404 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18406test 0 -eq $? || _lt_function_replace_fail=: 18407 18408fi 18409 18410if test x"$lt_shell_append" = xyes; then 18411 sed -e '/^func_append ()$/,/^} # func_append /c\ 18412func_append ()\ 18413{\ 18414 eval "${1}+=\\${2}"\ 18415} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18416 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18418test 0 -eq $? || _lt_function_replace_fail=: 18419 18420 18421 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18422func_append_quoted ()\ 18423{\ 18424\ func_quote_for_eval "${2}"\ 18425\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18426} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18427 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18429test 0 -eq $? || _lt_function_replace_fail=: 18430 18431 18432 # Save a `func_append' function call where possible by direct use of '+=' 18433 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18434 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18435 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18436 test 0 -eq $? || _lt_function_replace_fail=: 18437else 18438 # Save a `func_append' function call even when '+=' is not available 18439 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18440 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18442 test 0 -eq $? || _lt_function_replace_fail=: 18443fi 18444 18445if test x"$_lt_function_replace_fail" = x":"; then 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18447$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18448fi 18449 18450 18451 mv -f "$cfgfile" "$ofile" || 18452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18453 chmod +x "$ofile" 18454 18455 18456 cat <<_LT_EOF >> "$ofile" 18457 18458# ### BEGIN LIBTOOL TAG CONFIG: CXX 18459 18460# The linker used to build libraries. 18461LD=$lt_LD_CXX 18462 18463# How to create reloadable object files. 18464reload_flag=$lt_reload_flag_CXX 18465reload_cmds=$lt_reload_cmds_CXX 18466 18467# Commands used to build an old-style archive. 18468old_archive_cmds=$lt_old_archive_cmds_CXX 18469 18470# A language specific compiler. 18471CC=$lt_compiler_CXX 18472 18473# Is the compiler the GNU compiler? 18474with_gcc=$GCC_CXX 18475 18476# Compiler flag to turn off builtin functions. 18477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18478 18479# Additional compiler flags for building library objects. 18480pic_flag=$lt_lt_prog_compiler_pic_CXX 18481 18482# How to pass a linker flag through the compiler. 18483wl=$lt_lt_prog_compiler_wl_CXX 18484 18485# Compiler flag to prevent dynamic linking. 18486link_static_flag=$lt_lt_prog_compiler_static_CXX 18487 18488# Does compiler simultaneously support -c and -o options? 18489compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18490 18491# Whether or not to add -lc for building shared libraries. 18492build_libtool_need_lc=$archive_cmds_need_lc_CXX 18493 18494# Whether or not to disallow shared libs when runtime libs are static. 18495allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18496 18497# Compiler flag to allow reflexive dlopens. 18498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18499 18500# Compiler flag to generate shared objects directly from archives. 18501whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18502 18503# Whether the compiler copes with passing no objects directly. 18504compiler_needs_object=$lt_compiler_needs_object_CXX 18505 18506# Create an old-style archive from a shared archive. 18507old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18508 18509# Create a temporary old-style archive to link instead of a shared archive. 18510old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18511 18512# Commands used to build a shared archive. 18513archive_cmds=$lt_archive_cmds_CXX 18514archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18515 18516# Commands used to build a loadable module if different from building 18517# a shared archive. 18518module_cmds=$lt_module_cmds_CXX 18519module_expsym_cmds=$lt_module_expsym_cmds_CXX 18520 18521# Whether we are building with GNU ld or not. 18522with_gnu_ld=$lt_with_gnu_ld_CXX 18523 18524# Flag that allows shared libraries with undefined symbols to be built. 18525allow_undefined_flag=$lt_allow_undefined_flag_CXX 18526 18527# Flag that enforces no undefined symbols. 18528no_undefined_flag=$lt_no_undefined_flag_CXX 18529 18530# Flag to hardcode \$libdir into a binary during linking. 18531# This must work even if \$libdir does not exist 18532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18533 18534# Whether we need a single "-rpath" flag with a separated argument. 18535hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18536 18537# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18538# DIR into the resulting binary. 18539hardcode_direct=$hardcode_direct_CXX 18540 18541# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18542# DIR into the resulting binary and the resulting library dependency is 18543# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18544# library is relocated. 18545hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18546 18547# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18548# into the resulting binary. 18549hardcode_minus_L=$hardcode_minus_L_CXX 18550 18551# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18552# into the resulting binary. 18553hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18554 18555# Set to "yes" if building a shared library automatically hardcodes DIR 18556# into the library and all subsequent libraries and executables linked 18557# against it. 18558hardcode_automatic=$hardcode_automatic_CXX 18559 18560# Set to yes if linker adds runtime paths of dependent libraries 18561# to runtime path list. 18562inherit_rpath=$inherit_rpath_CXX 18563 18564# Whether libtool must link a program against all its dependency libraries. 18565link_all_deplibs=$link_all_deplibs_CXX 18566 18567# Set to "yes" if exported symbols are required. 18568always_export_symbols=$always_export_symbols_CXX 18569 18570# The commands to list exported symbols. 18571export_symbols_cmds=$lt_export_symbols_cmds_CXX 18572 18573# Symbols that should not be listed in the preloaded symbols. 18574exclude_expsyms=$lt_exclude_expsyms_CXX 18575 18576# Symbols that must always be exported. 18577include_expsyms=$lt_include_expsyms_CXX 18578 18579# Commands necessary for linking programs (against libraries) with templates. 18580prelink_cmds=$lt_prelink_cmds_CXX 18581 18582# Commands necessary for finishing linking programs. 18583postlink_cmds=$lt_postlink_cmds_CXX 18584 18585# Specify filename containing input files. 18586file_list_spec=$lt_file_list_spec_CXX 18587 18588# How to hardcode a shared library path into an executable. 18589hardcode_action=$hardcode_action_CXX 18590 18591# The directories searched by this compiler when creating a shared library. 18592compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18593 18594# Dependencies to place before and after the objects being linked to 18595# create a shared library. 18596predep_objects=$lt_predep_objects_CXX 18597postdep_objects=$lt_postdep_objects_CXX 18598predeps=$lt_predeps_CXX 18599postdeps=$lt_postdeps_CXX 18600 18601# The library search path used internally by the compiler when linking 18602# a shared library. 18603compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18604 18605# ### END LIBTOOL TAG CONFIG: CXX 18606_LT_EOF 18607 18608 ;; 18609 18610 esac 18611done # for ac_tag 18612 18613 18614as_fn_exit 0 18615_ACEOF 18616ac_clean_files=$ac_clean_files_save 18617 18618test $ac_write_fail = 0 || 18619 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18620 18621 18622# configure is writing to config.log, and then calls config.status. 18623# config.status does its own redirection, appending to config.log. 18624# Unfortunately, on DOS this fails, as config.log is still kept open 18625# by configure, so config.status won't be able to write to it; its 18626# output is simply discarded. So we exec the FD to /dev/null, 18627# effectively closing config.log, so it can be properly (re)opened and 18628# appended to by config.status. When coming back to configure, we 18629# need to make the FD available again. 18630if test "$no_create" != yes; then 18631 ac_cs_success=: 18632 ac_config_status_args= 18633 test "$silent" = yes && 18634 ac_config_status_args="$ac_config_status_args --quiet" 18635 exec 5>/dev/null 18636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18637 exec 5>>config.log 18638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18639 # would make configure fail if this is the last instruction. 18640 $ac_cs_success || as_fn_exit 1 18641fi 18642if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18644$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18645fi 18646 18647 18648abs_srcdir="`cd $srcdir && pwd`" 18649abs_builddir="`pwd`" 18650if test "$abs_srcdir" != "$abs_builddir"; then 18651 make mkdir-init 18652fi 18653