1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gambit 16.0.1. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='gambit' 589PACKAGE_TARNAME='gambit' 590PACKAGE_VERSION='16.0.1' 591PACKAGE_STRING='gambit 16.0.1' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="library/include/gambit/gambit.h" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636REZFLAGS 637ENUMPOLY_PROGS 638GUI_PROGS 639RC_OBJECT_PATH 640RC_OBJECT 641WX_RESCOMP 642WX_VERSION 643WX_LIBS_STATIC 644WX_LIBS 645WX_CXXFLAGS_ONLY 646WX_CFLAGS_ONLY 647WX_CXXFLAGS 648WX_CFLAGS 649WX_CPPFLAGS 650WX_CONFIG_PATH 651IS_WIN32_FALSE 652IS_WIN32_TRUE 653CXXCPP 654CPP 655LT_SYS_LIBRARY_PATH 656OTOOL64 657OTOOL 658LIPO 659NMEDIT 660DSYMUTIL 661MANIFEST_TOOL 662RANLIB 663ac_ct_AR 664AR 665DLLTOOL 666OBJDUMP 667LN_S 668NM 669ac_ct_DUMPBIN 670DUMPBIN 671LD 672FGREP 673EGREP 674GREP 675SED 676host_os 677host_vendor 678host_cpu 679host 680build_os 681build_vendor 682build_cpu 683build 684LIBTOOL 685am__fastdepCXX_FALSE 686am__fastdepCXX_TRUE 687CXXDEPMODE 688ac_ct_CXX 689CXXFLAGS 690CXX 691am__fastdepCC_FALSE 692am__fastdepCC_TRUE 693CCDEPMODE 694am__nodep 695AMDEPBACKSLASH 696AMDEP_FALSE 697AMDEP_TRUE 698am__quote 699am__include 700DEPDIR 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708WITH_ENUMPOLY_FALSE 709WITH_ENUMPOLY_TRUE 710WITH_GUI_FALSE 711WITH_GUI_TRUE 712AM_BACKSLASH 713AM_DEFAULT_VERBOSITY 714AM_DEFAULT_V 715AM_V 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_silent_rules 781with_wxdir 782with_wx_config 783with_wx_prefix 784with_wx_exec_prefix 785enable_gui 786enable_enumpoly 787enable_dependency_tracking 788enable_shared 789enable_static 790with_pic 791enable_fast_install 792with_aix_soname 793with_gnu_ld 794with_sysroot 795enable_libtool_lock 796' 797 ac_precious_vars='build_alias 798host_alias 799target_alias 800CC 801CFLAGS 802LDFLAGS 803LIBS 804CPPFLAGS 805CXX 806CXXFLAGS 807CCC 808LT_SYS_LIBRARY_PATH 809CPP 810CXXCPP' 811 812 813# Initialize some variables set by options. 814ac_init_help= 815ac_init_version=false 816ac_unrecognized_opts= 817ac_unrecognized_sep= 818# The variables have the same names as the options, with 819# dashes changed to underlines. 820cache_file=/dev/null 821exec_prefix=NONE 822no_create= 823no_recursion= 824prefix=NONE 825program_prefix=NONE 826program_suffix=NONE 827program_transform_name=s,x,x, 828silent= 829site= 830srcdir= 831verbose= 832x_includes=NONE 833x_libraries=NONE 834 835# Installation directory options. 836# These are left unexpanded so users can "make install exec_prefix=/foo" 837# and all the variables that are supposed to be based on exec_prefix 838# by default will actually change. 839# Use braces instead of parens because sh, perl, etc. also accept them. 840# (The list follows the same order as the GNU Coding Standards.) 841bindir='${exec_prefix}/bin' 842sbindir='${exec_prefix}/sbin' 843libexecdir='${exec_prefix}/libexec' 844datarootdir='${prefix}/share' 845datadir='${datarootdir}' 846sysconfdir='${prefix}/etc' 847sharedstatedir='${prefix}/com' 848localstatedir='${prefix}/var' 849includedir='${prefix}/include' 850oldincludedir='/usr/include' 851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 852infodir='${datarootdir}/info' 853htmldir='${docdir}' 854dvidir='${docdir}' 855pdfdir='${docdir}' 856psdir='${docdir}' 857libdir='${exec_prefix}/lib' 858localedir='${datarootdir}/locale' 859mandir='${datarootdir}/man' 860 861ac_prev= 862ac_dashdash= 863for ac_option 864do 865 # If the previous option needs an argument, assign it. 866 if test -n "$ac_prev"; then 867 eval $ac_prev=\$ac_option 868 ac_prev= 869 continue 870 fi 871 872 case $ac_option in 873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 874 *=) ac_optarg= ;; 875 *) ac_optarg=yes ;; 876 esac 877 878 # Accept the important Cygnus configure options, so we can diagnose typos. 879 880 case $ac_dashdash$ac_option in 881 --) 882 ac_dashdash=yes ;; 883 884 -bindir | --bindir | --bindi | --bind | --bin | --bi) 885 ac_prev=bindir ;; 886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 887 bindir=$ac_optarg ;; 888 889 -build | --build | --buil | --bui | --bu) 890 ac_prev=build_alias ;; 891 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 892 build_alias=$ac_optarg ;; 893 894 -cache-file | --cache-file | --cache-fil | --cache-fi \ 895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 896 ac_prev=cache_file ;; 897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 899 cache_file=$ac_optarg ;; 900 901 --config-cache | -C) 902 cache_file=config.cache ;; 903 904 -datadir | --datadir | --datadi | --datad) 905 ac_prev=datadir ;; 906 -datadir=* | --datadir=* | --datadi=* | --datad=*) 907 datadir=$ac_optarg ;; 908 909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 910 | --dataroo | --dataro | --datar) 911 ac_prev=datarootdir ;; 912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 914 datarootdir=$ac_optarg ;; 915 916 -disable-* | --disable-*) 917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 918 # Reject names that are not valid shell variable names. 919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 920 as_fn_error $? "invalid feature name: $ac_useropt" 921 ac_useropt_orig=$ac_useropt 922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 923 case $ac_user_opts in 924 *" 925"enable_$ac_useropt" 926"*) ;; 927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 928 ac_unrecognized_sep=', ';; 929 esac 930 eval enable_$ac_useropt=no ;; 931 932 -docdir | --docdir | --docdi | --doc | --do) 933 ac_prev=docdir ;; 934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 935 docdir=$ac_optarg ;; 936 937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 938 ac_prev=dvidir ;; 939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 940 dvidir=$ac_optarg ;; 941 942 -enable-* | --enable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=\$ac_optarg ;; 957 958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 960 | --exec | --exe | --ex) 961 ac_prev=exec_prefix ;; 962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 964 | --exec=* | --exe=* | --ex=*) 965 exec_prefix=$ac_optarg ;; 966 967 -gas | --gas | --ga | --g) 968 # Obsolete; use --with-gas. 969 with_gas=yes ;; 970 971 -help | --help | --hel | --he | -h) 972 ac_init_help=long ;; 973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 974 ac_init_help=recursive ;; 975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 976 ac_init_help=short ;; 977 978 -host | --host | --hos | --ho) 979 ac_prev=host_alias ;; 980 -host=* | --host=* | --hos=* | --ho=*) 981 host_alias=$ac_optarg ;; 982 983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 984 ac_prev=htmldir ;; 985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 986 | --ht=*) 987 htmldir=$ac_optarg ;; 988 989 -includedir | --includedir | --includedi | --included | --include \ 990 | --includ | --inclu | --incl | --inc) 991 ac_prev=includedir ;; 992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 993 | --includ=* | --inclu=* | --incl=* | --inc=*) 994 includedir=$ac_optarg ;; 995 996 -infodir | --infodir | --infodi | --infod | --info | --inf) 997 ac_prev=infodir ;; 998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 999 infodir=$ac_optarg ;; 1000 1001 -libdir | --libdir | --libdi | --libd) 1002 ac_prev=libdir ;; 1003 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1004 libdir=$ac_optarg ;; 1005 1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1007 | --libexe | --libex | --libe) 1008 ac_prev=libexecdir ;; 1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1010 | --libexe=* | --libex=* | --libe=*) 1011 libexecdir=$ac_optarg ;; 1012 1013 -localedir | --localedir | --localedi | --localed | --locale) 1014 ac_prev=localedir ;; 1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1016 localedir=$ac_optarg ;; 1017 1018 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1019 | --localstate | --localstat | --localsta | --localst | --locals) 1020 ac_prev=localstatedir ;; 1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1023 localstatedir=$ac_optarg ;; 1024 1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1026 ac_prev=mandir ;; 1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1028 mandir=$ac_optarg ;; 1029 1030 -nfp | --nfp | --nf) 1031 # Obsolete; use --without-fp. 1032 with_fp=no ;; 1033 1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1035 | --no-cr | --no-c | -n) 1036 no_create=yes ;; 1037 1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1040 no_recursion=yes ;; 1041 1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1044 | --oldin | --oldi | --old | --ol | --o) 1045 ac_prev=oldincludedir ;; 1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1049 oldincludedir=$ac_optarg ;; 1050 1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1052 ac_prev=prefix ;; 1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1054 prefix=$ac_optarg ;; 1055 1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1057 | --program-pre | --program-pr | --program-p) 1058 ac_prev=program_prefix ;; 1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1061 program_prefix=$ac_optarg ;; 1062 1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1064 | --program-suf | --program-su | --program-s) 1065 ac_prev=program_suffix ;; 1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1068 program_suffix=$ac_optarg ;; 1069 1070 -program-transform-name | --program-transform-name \ 1071 | --program-transform-nam | --program-transform-na \ 1072 | --program-transform-n | --program-transform- \ 1073 | --program-transform | --program-transfor \ 1074 | --program-transfo | --program-transf \ 1075 | --program-trans | --program-tran \ 1076 | --progr-tra | --program-tr | --program-t) 1077 ac_prev=program_transform_name ;; 1078 -program-transform-name=* | --program-transform-name=* \ 1079 | --program-transform-nam=* | --program-transform-na=* \ 1080 | --program-transform-n=* | --program-transform-=* \ 1081 | --program-transform=* | --program-transfor=* \ 1082 | --program-transfo=* | --program-transf=* \ 1083 | --program-trans=* | --program-tran=* \ 1084 | --progr-tra=* | --program-tr=* | --program-t=*) 1085 program_transform_name=$ac_optarg ;; 1086 1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1088 ac_prev=pdfdir ;; 1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1090 pdfdir=$ac_optarg ;; 1091 1092 -psdir | --psdir | --psdi | --psd | --ps) 1093 ac_prev=psdir ;; 1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1095 psdir=$ac_optarg ;; 1096 1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1098 | -silent | --silent | --silen | --sile | --sil) 1099 silent=yes ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=\$ac_optarg ;; 1161 1162 -without-* | --without-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: $ac_useropt" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=no ;; 1177 1178 --x) 1179 # Obsolete; use --with-x. 1180 with_x=yes ;; 1181 1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1183 | --x-incl | --x-inc | --x-in | --x-i) 1184 ac_prev=x_includes ;; 1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1187 x_includes=$ac_optarg ;; 1188 1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1191 ac_prev=x_libraries ;; 1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1194 x_libraries=$ac_optarg ;; 1195 1196 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1197Try \`$0 --help' for more information" 1198 ;; 1199 1200 *=*) 1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1202 # Reject names that are not valid shell variable names. 1203 case $ac_envvar in #( 1204 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1206 esac 1207 eval $ac_envvar=\$ac_optarg 1208 export $ac_envvar ;; 1209 1210 *) 1211 # FIXME: should be removed in autoconf 3.0. 1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1216 ;; 1217 1218 esac 1219done 1220 1221if test -n "$ac_prev"; then 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1223 as_fn_error $? "missing argument to $ac_option" 1224fi 1225 1226if test -n "$ac_unrecognized_opts"; then 1227 case $enable_option_checking in 1228 no) ;; 1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1231 esac 1232fi 1233 1234# Check all directory arguments for consistency. 1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1236 datadir sysconfdir sharedstatedir localstatedir includedir \ 1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1238 libdir localedir mandir 1239do 1240 eval ac_val=\$$ac_var 1241 # Remove trailing slashes. 1242 case $ac_val in 1243 */ ) 1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1245 eval $ac_var=\$ac_val;; 1246 esac 1247 # Be sure to have absolute directory names. 1248 case $ac_val in 1249 [\\/$]* | ?:[\\/]* ) continue;; 1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1251 esac 1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1253done 1254 1255# There might be people who depend on the old broken behavior: `$host' 1256# used to hold the argument of --host etc. 1257# FIXME: To remove some day. 1258build=$build_alias 1259host=$host_alias 1260target=$target_alias 1261 1262# FIXME: To remove some day. 1263if test "x$host_alias" != x; then 1264 if test "x$build_alias" = x; then 1265 cross_compiling=maybe 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269fi 1270 1271ac_tool_prefix= 1272test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274test "$silent" = yes && exec 6>/dev/null 1275 1276 1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1278ac_ls_di=`ls -di .` && 1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error $? "working directory cannot be determined" 1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error $? "pwd does not report name of working directory" 1283 1284 1285# Find the source files, if location was not specified. 1286if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294$as_echo X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316else 1317 ac_srcdir_defaulted=no 1318fi 1319if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1322fi 1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1324ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1326 pwd)` 1327# When building in place, set srcdir=. 1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330fi 1331# Remove unnecessary trailing slashes from srcdir. 1332# Double slashes in file names in object file debugging info 1333# mess up M-x gdb in Emacs. 1334case $srcdir in 1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336esac 1337for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342done 1343 1344# 1345# Report the --help message. 1346# 1347if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351\`configure' configures gambit 16.0.1 to adapt to many kinds of systems. 1352 1353Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358Defaults for the options are specified in brackets. 1359 1360Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print \`checking ...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for \`--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1370 1371Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377By default, \`make install' will install all the files in 1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1379an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1380for instance \`--prefix=\$HOME'. 1381 1382For better control, use the options below. 1383 1384Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/gambit] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404_ACEOF 1405 1406 cat <<\_ACEOF 1407 1408Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413System types: 1414 --build=BUILD configure for building on BUILD [guessed] 1415 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1416_ACEOF 1417fi 1418 1419if test -n "$ac_init_help"; then 1420 case $ac_init_help in 1421 short | recursive ) echo "Configuration of gambit 16.0.1:";; 1422 esac 1423 cat <<\_ACEOF 1424 1425Optional Features: 1426 --disable-option-checking ignore unrecognized --enable/--with options 1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1429 --enable-silent-rules less verbose build output (undo: "make V=1") 1430 --disable-silent-rules verbose build output (undo: "make V=0") 1431 --disable-gui don't build graphical interface 1432 --disable-enumpoly don't build gambit-enumpoly (not supported on 64bit) 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --enable-shared[=PKGS] build shared libraries [default=yes] 1438 --enable-static[=PKGS] build static libraries [default=yes] 1439 --enable-fast-install[=PKGS] 1440 optimize for fast installation [default=yes] 1441 --disable-libtool-lock avoid locking (might break parallel builds) 1442 1443Optional Packages: 1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1446 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH 1447 --with-wx-config=CONFIG wx-config script to use (optional) 1448 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional) 1449 --with-wx-exec-prefix=PREFIX 1450 Exec prefix where wxWidgets is installed (optional) 1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1452 both] 1453 --with-aix-soname=aix|svr4|both 1454 shared library versioning (aka "SONAME") variant to 1455 provide on AIX, [default=aix]. 1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1457 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1458 compiler's sysroot if not specified). 1459 1460Some influential environment variables: 1461 CC C compiler command 1462 CFLAGS C compiler flags 1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464 nonstandard directory <lib dir> 1465 LIBS libraries to pass to the linker, e.g. -l<library> 1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1467 you have headers in a nonstandard directory <include dir> 1468 CXX C++ compiler command 1469 CXXFLAGS C++ compiler flags 1470 LT_SYS_LIBRARY_PATH 1471 User-defined run-time library search path. 1472 CPP C preprocessor 1473 CXXCPP C++ preprocessor 1474 1475Use these variables to override the choices made by `configure' or to help 1476it to find libraries and programs with nonstandard names/locations. 1477 1478Report bugs to the package provider. 1479_ACEOF 1480ac_status=$? 1481fi 1482 1483if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491case "$ac_dir" in 1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493*) 1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501esac 1502ac_abs_top_builddir=$ac_pwd 1503ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504# for backward compatibility: 1505ac_top_builddir=$ac_top_build_prefix 1506 1507case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520esac 1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for guested configure. 1525 if test -f "$ac_srcdir/configure.gnu"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1528 elif test -f "$ac_srcdir/configure"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure" --help=recursive 1531 else 1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1533 fi || ac_status=$? 1534 cd "$ac_pwd" || { ac_status=$?; break; } 1535 done 1536fi 1537 1538test -n "$ac_init_help" && exit $ac_status 1539if $ac_init_version; then 1540 cat <<\_ACEOF 1541gambit configure 16.0.1 1542generated by GNU Autoconf 2.69 1543 1544Copyright (C) 2012 Free Software Foundation, Inc. 1545This configure script is free software; the Free Software Foundation 1546gives unlimited permission to copy, distribute and modify it. 1547_ACEOF 1548 exit 1549fi 1550 1551## ------------------------ ## 1552## Autoconf initialization. ## 1553## ------------------------ ## 1554 1555# ac_fn_c_try_compile LINENO 1556# -------------------------- 1557# Try to compile conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_c_try_compile () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 rm -f conftest.$ac_objext 1562 if { { ac_try="$ac_compile" 1563case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_compile") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } && { 1578 test -z "$ac_c_werror_flag" || 1579 test ! -s conftest.err 1580 } && test -s conftest.$ac_objext; then : 1581 ac_retval=0 1582else 1583 $as_echo "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_compile 1592 1593# ac_fn_cxx_try_compile LINENO 1594# ---------------------------- 1595# Try to compile conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_cxx_try_compile () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 rm -f conftest.$ac_objext 1600 if { { ac_try="$ac_compile" 1601case "(($ac_try" in 1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1603 *) ac_try_echo=$ac_try;; 1604esac 1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1606$as_echo "$ac_try_echo"; } >&5 1607 (eval "$ac_compile") 2>conftest.err 1608 ac_status=$? 1609 if test -s conftest.err; then 1610 grep -v '^ *+' conftest.err >conftest.er1 1611 cat conftest.er1 >&5 1612 mv -f conftest.er1 conftest.err 1613 fi 1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1615 test $ac_status = 0; } && { 1616 test -z "$ac_cxx_werror_flag" || 1617 test ! -s conftest.err 1618 } && test -s conftest.$ac_objext; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: failed program was:" >&5 1622sed 's/^/| /' conftest.$ac_ext >&5 1623 1624 ac_retval=1 1625fi 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 as_fn_set_status $ac_retval 1628 1629} # ac_fn_cxx_try_compile 1630 1631# ac_fn_c_try_link LINENO 1632# ----------------------- 1633# Try to link conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_link () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 rm -f conftest.$ac_objext conftest$ac_exeext 1638 if { { ac_try="$ac_link" 1639case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_link") 2>conftest.err 1646 ac_status=$? 1647 if test -s conftest.err; then 1648 grep -v '^ *+' conftest.err >conftest.er1 1649 cat conftest.er1 >&5 1650 mv -f conftest.er1 conftest.err 1651 fi 1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1653 test $ac_status = 0; } && { 1654 test -z "$ac_c_werror_flag" || 1655 test ! -s conftest.err 1656 } && test -s conftest$ac_exeext && { 1657 test "$cross_compiling" = yes || 1658 test -x conftest$ac_exeext 1659 }; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1669 # interfere with the next link command; also delete a directory that is 1670 # left behind by Apple's compiler. We do this before executing the actions. 1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_link 1676 1677# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1678# ------------------------------------------------------- 1679# Tests whether HEADER exists and can be compiled using the include files in 1680# INCLUDES, setting the cache variable VAR accordingly. 1681ac_fn_c_check_header_compile () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1685$as_echo_n "checking for $2... " >&6; } 1686if eval \${$3+:} false; then : 1687 $as_echo_n "(cached) " >&6 1688else 1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1690/* end confdefs.h. */ 1691$4 1692#include <$2> 1693_ACEOF 1694if ac_fn_c_try_compile "$LINENO"; then : 1695 eval "$3=yes" 1696else 1697 eval "$3=no" 1698fi 1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1700fi 1701eval ac_res=\$$3 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1703$as_echo "$ac_res" >&6; } 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 1706} # ac_fn_c_check_header_compile 1707 1708# ac_fn_c_try_cpp LINENO 1709# ---------------------- 1710# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_cpp () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { { ac_try="$ac_cpp conftest.$ac_ext" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1722 ac_status=$? 1723 if test -s conftest.err; then 1724 grep -v '^ *+' conftest.err >conftest.er1 1725 cat conftest.er1 >&5 1726 mv -f conftest.er1 conftest.err 1727 fi 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } > conftest.i && { 1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1731 test ! -s conftest.err 1732 }; then : 1733 ac_retval=0 1734else 1735 $as_echo "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=1 1739fi 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 as_fn_set_status $ac_retval 1742 1743} # ac_fn_c_try_cpp 1744 1745# ac_fn_c_try_run LINENO 1746# ---------------------- 1747# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1748# that executables *can* be run. 1749ac_fn_c_try_run () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { { ac_try="$ac_link" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_link") 2>&5 1760 ac_status=$? 1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1763 { { case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_try") 2>&5 1770 ac_status=$? 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; }; }; then : 1773 ac_retval=0 1774else 1775 $as_echo "$as_me: program exited with status $ac_status" >&5 1776 $as_echo "$as_me: failed program was:" >&5 1777sed 's/^/| /' conftest.$ac_ext >&5 1778 1779 ac_retval=$ac_status 1780fi 1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_c_try_run 1786 1787# ac_fn_c_check_func LINENO FUNC VAR 1788# ---------------------------------- 1789# Tests whether FUNC exists, setting the cache variable VAR accordingly 1790ac_fn_c_check_func () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797else 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1802#define $2 innocuous_$2 1803 1804/* System header to define __stub macros and hopefully few prototypes, 1805 which can conflict with char $2 (); below. 1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1807 <limits.h> exists even on freestanding compilers. */ 1808 1809#ifdef __STDC__ 1810# include <limits.h> 1811#else 1812# include <assert.h> 1813#endif 1814 1815#undef $2 1816 1817/* Override any GCC internal prototype to avoid an error. 1818 Use char because int might match the return type of a GCC 1819 builtin and then its argument prototype would still apply. */ 1820#ifdef __cplusplus 1821extern "C" 1822#endif 1823char $2 (); 1824/* The GNU C library defines this for functions which it implements 1825 to always fail with ENOSYS. Some functions are actually named 1826 something starting with __ and the normal name is an alias. */ 1827#if defined __stub_$2 || defined __stub___$2 1828choke me 1829#endif 1830 1831int 1832main () 1833{ 1834return $2 (); 1835 ; 1836 return 0; 1837} 1838_ACEOF 1839if ac_fn_c_try_link "$LINENO"; then : 1840 eval "$3=yes" 1841else 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext \ 1845 conftest$ac_exeext conftest.$ac_ext 1846fi 1847eval ac_res=\$$3 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849$as_echo "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_c_check_func 1853 1854# ac_fn_cxx_try_cpp LINENO 1855# ------------------------ 1856# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1857ac_fn_cxx_try_cpp () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 if { { ac_try="$ac_cpp conftest.$ac_ext" 1861case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864esac 1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866$as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1868 ac_status=$? 1869 if test -s conftest.err; then 1870 grep -v '^ *+' conftest.err >conftest.er1 1871 cat conftest.er1 >&5 1872 mv -f conftest.er1 conftest.err 1873 fi 1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1875 test $ac_status = 0; } > conftest.i && { 1876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1877 test ! -s conftest.err 1878 }; then : 1879 ac_retval=0 1880else 1881 $as_echo "$as_me: failed program was:" >&5 1882sed 's/^/| /' conftest.$ac_ext >&5 1883 1884 ac_retval=1 1885fi 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 as_fn_set_status $ac_retval 1888 1889} # ac_fn_cxx_try_cpp 1890 1891# ac_fn_cxx_try_link LINENO 1892# ------------------------- 1893# Try to link conftest.$ac_ext, and return whether this succeeded. 1894ac_fn_cxx_try_link () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 rm -f conftest.$ac_objext conftest$ac_exeext 1898 if { { ac_try="$ac_link" 1899case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904$as_echo "$ac_try_echo"; } >&5 1905 (eval "$ac_link") 2>conftest.err 1906 ac_status=$? 1907 if test -s conftest.err; then 1908 grep -v '^ *+' conftest.err >conftest.er1 1909 cat conftest.er1 >&5 1910 mv -f conftest.er1 conftest.err 1911 fi 1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1913 test $ac_status = 0; } && { 1914 test -z "$ac_cxx_werror_flag" || 1915 test ! -s conftest.err 1916 } && test -s conftest$ac_exeext && { 1917 test "$cross_compiling" = yes || 1918 test -x conftest$ac_exeext 1919 }; then : 1920 ac_retval=0 1921else 1922 $as_echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=1 1926fi 1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1929 # interfere with the next link command; also delete a directory that is 1930 # left behind by Apple's compiler. We do this before executing the actions. 1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_link 1936cat >config.log <<_ACEOF 1937This file contains any messages produced by compilers while 1938running configure, to aid debugging if configure makes a mistake. 1939 1940It was created by gambit $as_me 16.0.1, which was 1941generated by GNU Autoconf 2.69. Invocation command line was 1942 1943 $ $0 $@ 1944 1945_ACEOF 1946exec 5>>config.log 1947{ 1948cat <<_ASUNAME 1949## --------- ## 1950## Platform. ## 1951## --------- ## 1952 1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1954uname -m = `(uname -m) 2>/dev/null || echo unknown` 1955uname -r = `(uname -r) 2>/dev/null || echo unknown` 1956uname -s = `(uname -s) 2>/dev/null || echo unknown` 1957uname -v = `(uname -v) 2>/dev/null || echo unknown` 1958 1959/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1960/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1961 1962/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1963/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1964/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1965/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1966/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1967/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1968/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1969 1970_ASUNAME 1971 1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1973for as_dir in $PATH 1974do 1975 IFS=$as_save_IFS 1976 test -z "$as_dir" && as_dir=. 1977 $as_echo "PATH: $as_dir" 1978 done 1979IFS=$as_save_IFS 1980 1981} >&5 1982 1983cat >&5 <<_ACEOF 1984 1985 1986## ----------- ## 1987## Core tests. ## 1988## ----------- ## 1989 1990_ACEOF 1991 1992 1993# Keep a trace of the command line. 1994# Strip out --no-create and --no-recursion so they do not pile up. 1995# Strip out --silent because we don't want to record it for future runs. 1996# Also quote any args containing shell meta-characters. 1997# Make two passes to allow for proper duplicate-argument suppression. 1998ac_configure_args= 1999ac_configure_args0= 2000ac_configure_args1= 2001ac_must_keep_next=false 2002for ac_pass in 1 2 2003do 2004 for ac_arg 2005 do 2006 case $ac_arg in 2007 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2009 | -silent | --silent | --silen | --sile | --sil) 2010 continue ;; 2011 *\'*) 2012 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2013 esac 2014 case $ac_pass in 2015 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2016 2) 2017 as_fn_append ac_configure_args1 " '$ac_arg'" 2018 if test $ac_must_keep_next = true; then 2019 ac_must_keep_next=false # Got value, back to normal. 2020 else 2021 case $ac_arg in 2022 *=* | --config-cache | -C | -disable-* | --disable-* \ 2023 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2024 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2025 | -with-* | --with-* | -without-* | --without-* | --x) 2026 case "$ac_configure_args0 " in 2027 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2028 esac 2029 ;; 2030 -* ) ac_must_keep_next=true ;; 2031 esac 2032 fi 2033 as_fn_append ac_configure_args " '$ac_arg'" 2034 ;; 2035 esac 2036 done 2037done 2038{ ac_configure_args0=; unset ac_configure_args0;} 2039{ ac_configure_args1=; unset ac_configure_args1;} 2040 2041# When interrupted or exit'd, cleanup temporary files, and complete 2042# config.log. We remove comments because anyway the quotes in there 2043# would cause problems or look ugly. 2044# WARNING: Use '\'' to represent an apostrophe within the trap. 2045# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2046trap 'exit_status=$? 2047 # Save into config.log some information that might help in debugging. 2048 { 2049 echo 2050 2051 $as_echo "## ---------------- ## 2052## Cache variables. ## 2053## ---------------- ##" 2054 echo 2055 # The following way of writing the cache mishandles newlines in values, 2056( 2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2058 eval ac_val=\$$ac_var 2059 case $ac_val in #( 2060 *${as_nl}*) 2061 case $ac_var in #( 2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2064 esac 2065 case $ac_var in #( 2066 _ | IFS | as_nl) ;; #( 2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2068 *) { eval $ac_var=; unset $ac_var;} ;; 2069 esac ;; 2070 esac 2071 done 2072 (set) 2>&1 | 2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2074 *${as_nl}ac_space=\ *) 2075 sed -n \ 2076 "s/'\''/'\''\\\\'\'''\''/g; 2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2078 ;; #( 2079 *) 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2081 ;; 2082 esac | 2083 sort 2084) 2085 echo 2086 2087 $as_echo "## ----------------- ## 2088## Output variables. ## 2089## ----------------- ##" 2090 echo 2091 for ac_var in $ac_subst_vars 2092 do 2093 eval ac_val=\$$ac_var 2094 case $ac_val in 2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2096 esac 2097 $as_echo "$ac_var='\''$ac_val'\''" 2098 done | sort 2099 echo 2100 2101 if test -n "$ac_subst_files"; then 2102 $as_echo "## ------------------- ## 2103## File substitutions. ## 2104## ------------------- ##" 2105 echo 2106 for ac_var in $ac_subst_files 2107 do 2108 eval ac_val=\$$ac_var 2109 case $ac_val in 2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2111 esac 2112 $as_echo "$ac_var='\''$ac_val'\''" 2113 done | sort 2114 echo 2115 fi 2116 2117 if test -s confdefs.h; then 2118 $as_echo "## ----------- ## 2119## confdefs.h. ## 2120## ----------- ##" 2121 echo 2122 cat confdefs.h 2123 echo 2124 fi 2125 test "$ac_signal" != 0 && 2126 $as_echo "$as_me: caught signal $ac_signal" 2127 $as_echo "$as_me: exit $exit_status" 2128 } >&5 2129 rm -f core *.core core.conftest.* && 2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2131 exit $exit_status 2132' 0 2133for ac_signal in 1 2 13 15; do 2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2135done 2136ac_signal=0 2137 2138# confdefs.h avoids OS command line length limits that DEFS can exceed. 2139rm -f -r conftest* confdefs.h 2140 2141$as_echo "/* confdefs.h */" > confdefs.h 2142 2143# Predefined preprocessor variables. 2144 2145cat >>confdefs.h <<_ACEOF 2146#define PACKAGE_NAME "$PACKAGE_NAME" 2147_ACEOF 2148 2149cat >>confdefs.h <<_ACEOF 2150#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2151_ACEOF 2152 2153cat >>confdefs.h <<_ACEOF 2154#define PACKAGE_VERSION "$PACKAGE_VERSION" 2155_ACEOF 2156 2157cat >>confdefs.h <<_ACEOF 2158#define PACKAGE_STRING "$PACKAGE_STRING" 2159_ACEOF 2160 2161cat >>confdefs.h <<_ACEOF 2162#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2163_ACEOF 2164 2165cat >>confdefs.h <<_ACEOF 2166#define PACKAGE_URL "$PACKAGE_URL" 2167_ACEOF 2168 2169 2170# Let the site file select an alternate cache file if it wants to. 2171# Prefer an explicitly selected file to automatically selected ones. 2172ac_site_file1=NONE 2173ac_site_file2=NONE 2174if test -n "$CONFIG_SITE"; then 2175 # We do not want a PATH search for config.site. 2176 case $CONFIG_SITE in #(( 2177 -*) ac_site_file1=./$CONFIG_SITE;; 2178 */*) ac_site_file1=$CONFIG_SITE;; 2179 *) ac_site_file1=./$CONFIG_SITE;; 2180 esac 2181elif test "x$prefix" != xNONE; then 2182 ac_site_file1=$prefix/share/config.site 2183 ac_site_file2=$prefix/etc/config.site 2184else 2185 ac_site_file1=$ac_default_prefix/share/config.site 2186 ac_site_file2=$ac_default_prefix/etc/config.site 2187fi 2188for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2189do 2190 test "x$ac_site_file" = xNONE && continue 2191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2193$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2194 sed 's/^/| /' "$ac_site_file" >&5 2195 . "$ac_site_file" \ 2196 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2198as_fn_error $? "failed to load site script $ac_site_file 2199See \`config.log' for more details" "$LINENO" 5; } 2200 fi 2201done 2202 2203if test -r "$cache_file"; then 2204 # Some versions of bash will fail to source /dev/null (special files 2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2208$as_echo "$as_me: loading cache $cache_file" >&6;} 2209 case $cache_file in 2210 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2211 *) . "./$cache_file";; 2212 esac 2213 fi 2214else 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2216$as_echo "$as_me: creating cache $cache_file" >&6;} 2217 >$cache_file 2218fi 2219 2220# Check that the precious variables saved in the cache have kept the same 2221# value. 2222ac_cache_corrupted=false 2223for ac_var in $ac_precious_vars; do 2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2225 eval ac_new_set=\$ac_env_${ac_var}_set 2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2227 eval ac_new_val=\$ac_env_${ac_var}_value 2228 case $ac_old_set,$ac_new_set in 2229 set,) 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2231$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2232 ac_cache_corrupted=: ;; 2233 ,set) 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2235$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2236 ac_cache_corrupted=: ;; 2237 ,);; 2238 *) 2239 if test "x$ac_old_val" != "x$ac_new_val"; then 2240 # differences in whitespace do not lead to failure. 2241 ac_old_val_w=`echo x $ac_old_val` 2242 ac_new_val_w=`echo x $ac_new_val` 2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2245$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2246 ac_cache_corrupted=: 2247 else 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2249$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2250 eval $ac_var=\$ac_old_val 2251 fi 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2253$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2255$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2256 fi;; 2257 esac 2258 # Pass precious variables to config.status. 2259 if test "$ac_new_set" = set; then 2260 case $ac_new_val in 2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2262 *) ac_arg=$ac_var=$ac_new_val ;; 2263 esac 2264 case " $ac_configure_args " in 2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2267 esac 2268 fi 2269done 2270if $ac_cache_corrupted; then 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2274$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2276fi 2277## -------------------- ## 2278## Main body of script. ## 2279## -------------------- ## 2280 2281ac_ext=c 2282ac_cpp='$CPP $CPPFLAGS' 2283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2285ac_compiler_gnu=$ac_cv_c_compiler_gnu 2286 2287 2288 2289ac_config_headers="$ac_config_headers config.h" 2290 2291am__api_version='1.15' 2292 2293ac_aux_dir= 2294for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2295 if test -f "$ac_dir/install-sh"; then 2296 ac_aux_dir=$ac_dir 2297 ac_install_sh="$ac_aux_dir/install-sh -c" 2298 break 2299 elif test -f "$ac_dir/install.sh"; then 2300 ac_aux_dir=$ac_dir 2301 ac_install_sh="$ac_aux_dir/install.sh -c" 2302 break 2303 elif test -f "$ac_dir/shtool"; then 2304 ac_aux_dir=$ac_dir 2305 ac_install_sh="$ac_aux_dir/shtool install -c" 2306 break 2307 fi 2308done 2309if test -z "$ac_aux_dir"; then 2310 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2311fi 2312 2313# These three variables are undocumented and unsupported, 2314# and are intended to be withdrawn in a future Autoconf release. 2315# They can cause serious problems if a builder's source tree is in a directory 2316# whose full name contains unusual characters. 2317ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2318ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2319ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2320 2321 2322# Find a good install program. We prefer a C program (faster), 2323# so one script is as good as another. But avoid the broken or 2324# incompatible versions: 2325# SysV /etc/install, /usr/sbin/install 2326# SunOS /usr/etc/install 2327# IRIX /sbin/install 2328# AIX /bin/install 2329# AmigaOS /C/install, which installs bootblocks on floppy discs 2330# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2331# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2332# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2333# OS/2's system install, which has a completely different semantic 2334# ./install, which can be erroneously created by make from ./install.sh. 2335# Reject install programs that cannot install multiple files. 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2337$as_echo_n "checking for a BSD-compatible install... " >&6; } 2338if test -z "$INSTALL"; then 2339if ${ac_cv_path_install+:} false; then : 2340 $as_echo_n "(cached) " >&6 2341else 2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 # Account for people who put trailing slashes in PATH elements. 2348case $as_dir/ in #(( 2349 ./ | .// | /[cC]/* | \ 2350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2351 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2352 /usr/ucb/* ) ;; 2353 *) 2354 # OSF1 and SCO ODT 3.0 have their own names for install. 2355 # Don't use installbsd from OSF since it installs stuff as root 2356 # by default. 2357 for ac_prog in ginstall scoinst install; do 2358 for ac_exec_ext in '' $ac_executable_extensions; do 2359 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2360 if test $ac_prog = install && 2361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2362 # AIX install. It has an incompatible calling convention. 2363 : 2364 elif test $ac_prog = install && 2365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2366 # program-specific install script used by HP pwplus--don't use. 2367 : 2368 else 2369 rm -rf conftest.one conftest.two conftest.dir 2370 echo one > conftest.one 2371 echo two > conftest.two 2372 mkdir conftest.dir 2373 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2374 test -s conftest.one && test -s conftest.two && 2375 test -s conftest.dir/conftest.one && 2376 test -s conftest.dir/conftest.two 2377 then 2378 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2379 break 3 2380 fi 2381 fi 2382 fi 2383 done 2384 done 2385 ;; 2386esac 2387 2388 done 2389IFS=$as_save_IFS 2390 2391rm -rf conftest.one conftest.two conftest.dir 2392 2393fi 2394 if test "${ac_cv_path_install+set}" = set; then 2395 INSTALL=$ac_cv_path_install 2396 else 2397 # As a last resort, use the slow shell script. Don't cache a 2398 # value for INSTALL within a source directory, because that will 2399 # break other packages using the cache if that directory is 2400 # removed, or if the value is a relative name. 2401 INSTALL=$ac_install_sh 2402 fi 2403fi 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2405$as_echo "$INSTALL" >&6; } 2406 2407# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2408# It thinks the first close brace ends the variable substitution. 2409test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2410 2411test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2412 2413test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2414 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2416$as_echo_n "checking whether build environment is sane... " >&6; } 2417# Reject unsafe characters in $srcdir or the absolute working directory 2418# name. Accept space and tab only in the latter. 2419am_lf=' 2420' 2421case `pwd` in 2422 *[\\\"\#\$\&\'\`$am_lf]*) 2423 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2424esac 2425case $srcdir in 2426 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2427 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2428esac 2429 2430# Do 'set' in a subshell so we don't clobber the current shell's 2431# arguments. Must try -L first in case configure is actually a 2432# symlink; some systems play weird games with the mod time of symlinks 2433# (eg FreeBSD returns the mod time of the symlink's containing 2434# directory). 2435if ( 2436 am_has_slept=no 2437 for am_try in 1 2; do 2438 echo "timestamp, slept: $am_has_slept" > conftest.file 2439 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2440 if test "$*" = "X"; then 2441 # -L didn't work. 2442 set X `ls -t "$srcdir/configure" conftest.file` 2443 fi 2444 if test "$*" != "X $srcdir/configure conftest.file" \ 2445 && test "$*" != "X conftest.file $srcdir/configure"; then 2446 2447 # If neither matched, then we have a broken ls. This can happen 2448 # if, for instance, CONFIG_SHELL is bash and it inherits a 2449 # broken ls alias from the environment. This has actually 2450 # happened. Such a system could not be considered "sane". 2451 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2452 alias in your environment" "$LINENO" 5 2453 fi 2454 if test "$2" = conftest.file || test $am_try -eq 2; then 2455 break 2456 fi 2457 # Just in case. 2458 sleep 1 2459 am_has_slept=yes 2460 done 2461 test "$2" = conftest.file 2462 ) 2463then 2464 # Ok. 2465 : 2466else 2467 as_fn_error $? "newly created file is older than distributed files! 2468Check your system clock" "$LINENO" 5 2469fi 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2471$as_echo "yes" >&6; } 2472# If we didn't sleep, we still need to ensure time stamps of config.status and 2473# generated files are strictly newer. 2474am_sleep_pid= 2475if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2476 ( sleep 1 ) & 2477 am_sleep_pid=$! 2478fi 2479 2480rm -f conftest.file 2481 2482test "$program_prefix" != NONE && 2483 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2484# Use a double $ so make ignores it. 2485test "$program_suffix" != NONE && 2486 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2487# Double any \ or $. 2488# By default was `s,x,x', remove it if useless. 2489ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2490program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2491 2492# Expand $ac_aux_dir to an absolute path. 2493am_aux_dir=`cd "$ac_aux_dir" && pwd` 2494 2495if test x"${MISSING+set}" != xset; then 2496 case $am_aux_dir in 2497 *\ * | *\ *) 2498 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2499 *) 2500 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2501 esac 2502fi 2503# Use eval to expand $SHELL 2504if eval "$MISSING --is-lightweight"; then 2505 am_missing_run="$MISSING " 2506else 2507 am_missing_run= 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2509$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2510fi 2511 2512if test x"${install_sh+set}" != xset; then 2513 case $am_aux_dir in 2514 *\ * | *\ *) 2515 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2516 *) 2517 install_sh="\${SHELL} $am_aux_dir/install-sh" 2518 esac 2519fi 2520 2521# Installed binaries are usually stripped using 'strip' when the user 2522# run "make install-strip". However 'strip' might not be the right 2523# tool to use in cross-compilation environments, therefore Automake 2524# will honor the 'STRIP' environment variable to overrule this program. 2525if test "$cross_compiling" != no; then 2526 if test -n "$ac_tool_prefix"; then 2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2528set dummy ${ac_tool_prefix}strip; ac_word=$2 2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2530$as_echo_n "checking for $ac_word... " >&6; } 2531if ${ac_cv_prog_STRIP+:} false; then : 2532 $as_echo_n "(cached) " >&6 2533else 2534 if test -n "$STRIP"; then 2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2536else 2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538for as_dir in $PATH 2539do 2540 IFS=$as_save_IFS 2541 test -z "$as_dir" && as_dir=. 2542 for ac_exec_ext in '' $ac_executable_extensions; do 2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2546 break 2 2547 fi 2548done 2549 done 2550IFS=$as_save_IFS 2551 2552fi 2553fi 2554STRIP=$ac_cv_prog_STRIP 2555if test -n "$STRIP"; then 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2557$as_echo "$STRIP" >&6; } 2558else 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2560$as_echo "no" >&6; } 2561fi 2562 2563 2564fi 2565if test -z "$ac_cv_prog_STRIP"; then 2566 ac_ct_STRIP=$STRIP 2567 # Extract the first word of "strip", so it can be a program name with args. 2568set dummy strip; 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_ac_ct_STRIP+:} false; then : 2572 $as_echo_n "(cached) " >&6 2573else 2574 if test -n "$ac_ct_STRIP"; then 2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip" 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 2594ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2595if test -n "$ac_ct_STRIP"; then 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2597$as_echo "$ac_ct_STRIP" >&6; } 2598else 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2600$as_echo "no" >&6; } 2601fi 2602 2603 if test "x$ac_ct_STRIP" = x; then 2604 STRIP=":" 2605 else 2606 case $cross_compiling:$ac_tool_warned in 2607yes:) 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2610ac_tool_warned=yes ;; 2611esac 2612 STRIP=$ac_ct_STRIP 2613 fi 2614else 2615 STRIP="$ac_cv_prog_STRIP" 2616fi 2617 2618fi 2619INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2620 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2622$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2623if test -z "$MKDIR_P"; then 2624 if ${ac_cv_path_mkdir+:} false; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2629do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 for ac_prog in mkdir gmkdir; do 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2636 'mkdir (GNU coreutils) '* | \ 2637 'mkdir (coreutils) '* | \ 2638 'mkdir (fileutils) '4.1*) 2639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2640 break 3;; 2641 esac 2642 done 2643 done 2644 done 2645IFS=$as_save_IFS 2646 2647fi 2648 2649 test -d ./--version && rmdir ./--version 2650 if test "${ac_cv_path_mkdir+set}" = set; then 2651 MKDIR_P="$ac_cv_path_mkdir -p" 2652 else 2653 # As a last resort, use the slow shell script. Don't cache a 2654 # value for MKDIR_P within a source directory, because that will 2655 # break other packages using the cache if that directory is 2656 # removed, or if the value is a relative name. 2657 MKDIR_P="$ac_install_sh -d" 2658 fi 2659fi 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2661$as_echo "$MKDIR_P" >&6; } 2662 2663for ac_prog in gawk mawk nawk awk 2664do 2665 # Extract the first word of "$ac_prog", so it can be a program name with args. 2666set dummy $ac_prog; ac_word=$2 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if ${ac_cv_prog_AWK+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$AWK"; then 2673 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2682 ac_cv_prog_AWK="$ac_prog" 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687 done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692AWK=$ac_cv_prog_AWK 2693if test -n "$AWK"; then 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2695$as_echo "$AWK" >&6; } 2696else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 2702 test -n "$AWK" && break 2703done 2704 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2706$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2707set x ${MAKE-make} 2708ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2709if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2710 $as_echo_n "(cached) " >&6 2711else 2712 cat >conftest.make <<\_ACEOF 2713SHELL = /bin/sh 2714all: 2715 @echo '@@@%%%=$(MAKE)=@@@%%%' 2716_ACEOF 2717# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2718case `${MAKE-make} -f conftest.make 2>/dev/null` in 2719 *@@@%%%=?*=@@@%%%*) 2720 eval ac_cv_prog_make_${ac_make}_set=yes;; 2721 *) 2722 eval ac_cv_prog_make_${ac_make}_set=no;; 2723esac 2724rm -f conftest.make 2725fi 2726if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2728$as_echo "yes" >&6; } 2729 SET_MAKE= 2730else 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2732$as_echo "no" >&6; } 2733 SET_MAKE="MAKE=${MAKE-make}" 2734fi 2735 2736rm -rf .tst 2>/dev/null 2737mkdir .tst 2>/dev/null 2738if test -d .tst; then 2739 am__leading_dot=. 2740else 2741 am__leading_dot=_ 2742fi 2743rmdir .tst 2>/dev/null 2744 2745# Check whether --enable-silent-rules was given. 2746if test "${enable_silent_rules+set}" = set; then : 2747 enableval=$enable_silent_rules; 2748fi 2749 2750case $enable_silent_rules in # ((( 2751 yes) AM_DEFAULT_VERBOSITY=0;; 2752 no) AM_DEFAULT_VERBOSITY=1;; 2753 *) AM_DEFAULT_VERBOSITY=1;; 2754esac 2755am_make=${MAKE-make} 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2757$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2758if ${am_cv_make_support_nested_variables+:} false; then : 2759 $as_echo_n "(cached) " >&6 2760else 2761 if $as_echo 'TRUE=$(BAR$(V)) 2762BAR0=false 2763BAR1=true 2764V=1 2765am__doit: 2766 @$(TRUE) 2767.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2768 am_cv_make_support_nested_variables=yes 2769else 2770 am_cv_make_support_nested_variables=no 2771fi 2772fi 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2774$as_echo "$am_cv_make_support_nested_variables" >&6; } 2775if test $am_cv_make_support_nested_variables = yes; then 2776 AM_V='$(V)' 2777 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2778else 2779 AM_V=$AM_DEFAULT_VERBOSITY 2780 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2781fi 2782AM_BACKSLASH='\' 2783 2784if test "`cd $srcdir && pwd`" != "`pwd`"; then 2785 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2786 # is not polluted with repeated "-I." 2787 am__isrc=' -I$(srcdir)' 2788 # test to see if srcdir already configured 2789 if test -f $srcdir/config.status; then 2790 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2791 fi 2792fi 2793 2794# test whether we have cygpath 2795if test -z "$CYGPATH_W"; then 2796 if (cygpath --version) >/dev/null 2>/dev/null; then 2797 CYGPATH_W='cygpath -w' 2798 else 2799 CYGPATH_W=echo 2800 fi 2801fi 2802 2803 2804# Define the identity of the package. 2805 PACKAGE='gambit' 2806 VERSION='16.0.1' 2807 2808 2809cat >>confdefs.h <<_ACEOF 2810#define PACKAGE "$PACKAGE" 2811_ACEOF 2812 2813 2814cat >>confdefs.h <<_ACEOF 2815#define VERSION "$VERSION" 2816_ACEOF 2817 2818# Some tools Automake needs. 2819 2820ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2821 2822 2823AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2824 2825 2826AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2827 2828 2829AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2830 2831 2832MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2833 2834# For better backward compatibility. To be removed once Automake 1.9.x 2835# dies out for good. For more background, see: 2836# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2837# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2838mkdir_p='$(MKDIR_P)' 2839 2840# We need awk for the "check" target (and possibly the TAP driver). The 2841# system "awk" is bad on some platforms. 2842# Always define AMTAR for backward compatibility. Yes, it's still used 2843# in the wild :-( We should find a proper way to deprecate it ... 2844AMTAR='$${TAR-tar}' 2845 2846 2847# We'll loop over all known methods to create a tar archive until one works. 2848_am_tools='gnutar pax cpio none' 2849 2850am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2851 2852 2853 2854 2855 2856 2857# POSIX will say in a future version that running "rm -f" with no argument 2858# is OK; and we want to be able to make that assumption in our Makefile 2859# recipes. So use an aggressive probe to check that the usage we want is 2860# actually supported "in the wild" to an acceptable degree. 2861# See automake bug#10828. 2862# To make any issue more visible, cause the running configure to be aborted 2863# by default if the 'rm' program in use doesn't match our expectations; the 2864# user can still override this though. 2865if rm -f && rm -fr && rm -rf; then : OK; else 2866 cat >&2 <<'END' 2867Oops! 2868 2869Your 'rm' program seems unable to run without file operands specified 2870on the command line, even when the '-f' option is present. This is contrary 2871to the behaviour of most rm programs out there, and not conforming with 2872the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2873 2874Please tell bug-automake@gnu.org about your system, including the value 2875of your $PATH and any error possibly output before this message. This 2876can help us improve future automake versions. 2877 2878END 2879 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2880 echo 'Configuration will proceed anyway, since you have set the' >&2 2881 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2882 echo >&2 2883 else 2884 cat >&2 <<'END' 2885Aborting the configuration process, to ensure you take notice of the issue. 2886 2887You can download and install GNU coreutils to get an 'rm' implementation 2888that behaves properly: <http://www.gnu.org/software/coreutils/>. 2889 2890If you want to complete the configuration process using your problematic 2891'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2892to "yes", and re-run configure. 2893 2894END 2895 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2896 fi 2897fi 2898 2899 2900 2901 2902# Check whether --with-wxdir was given. 2903if test "${with_wxdir+set}" = set; then : 2904 withval=$with_wxdir; wx_config_name="$withval/wx-config" 2905 wx_config_args="--inplace" 2906fi 2907 2908 2909# Check whether --with-wx-config was given. 2910if test "${with_wx_config+set}" = set; then : 2911 withval=$with_wx_config; wx_config_name="$withval" 2912fi 2913 2914 2915# Check whether --with-wx-prefix was given. 2916if test "${with_wx_prefix+set}" = set; then : 2917 withval=$with_wx_prefix; wx_config_prefix="$withval" 2918else 2919 wx_config_prefix="" 2920fi 2921 2922 2923# Check whether --with-wx-exec-prefix was given. 2924if test "${with_wx_exec_prefix+set}" = set; then : 2925 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval" 2926else 2927 wx_config_exec_prefix="" 2928fi 2929 2930 2931 2932# Check whether --enable-gui was given. 2933if test "${enable_gui+set}" = set; then : 2934 enableval=$enable_gui; case "${enableval}" in 2935 yes) with_gui=true ;; 2936 no) with_gui=false ;; 2937 *) as_fn_error $? "bad value ${enableval} for --enable-gui" "$LINENO" 5 ;; 2938 esac 2939else 2940 with_gui=true 2941fi 2942 2943 if test x$with_gui = xtrue; then 2944 WITH_GUI_TRUE= 2945 WITH_GUI_FALSE='#' 2946else 2947 WITH_GUI_TRUE='#' 2948 WITH_GUI_FALSE= 2949fi 2950 2951 2952# Check whether --enable-enumpoly was given. 2953if test "${enable_enumpoly+set}" = set; then : 2954 enableval=$enable_enumpoly; case "${enableval}" in 2955 yes) with_enumpoly=true ;; 2956 no) with_enumpoly=false ;; 2957 *) as_fn_error $? "bad value ${enableval} for --enable-enumpoly" "$LINENO" 5 ;; 2958 esac 2959else 2960 with_enumpoly=true 2961fi 2962 2963 if test x$with_enumpoly = xtrue; then 2964 WITH_ENUMPOLY_TRUE= 2965 WITH_ENUMPOLY_FALSE='#' 2966else 2967 WITH_ENUMPOLY_TRUE='#' 2968 WITH_ENUMPOLY_FALSE= 2969fi 2970 2971 2972 2973 2974ac_ext=c 2975ac_cpp='$CPP $CPPFLAGS' 2976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2978ac_compiler_gnu=$ac_cv_c_compiler_gnu 2979if test -n "$ac_tool_prefix"; then 2980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2981set dummy ${ac_tool_prefix}gcc; ac_word=$2 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2983$as_echo_n "checking for $ac_word... " >&6; } 2984if ${ac_cv_prog_CC+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986else 2987 if test -n "$CC"; then 2988 ac_cv_prog_CC="$CC" # Let the user override the test. 2989else 2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2991for as_dir in $PATH 2992do 2993 IFS=$as_save_IFS 2994 test -z "$as_dir" && as_dir=. 2995 for ac_exec_ext in '' $ac_executable_extensions; do 2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2997 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2999 break 2 3000 fi 3001done 3002 done 3003IFS=$as_save_IFS 3004 3005fi 3006fi 3007CC=$ac_cv_prog_CC 3008if test -n "$CC"; then 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3010$as_echo "$CC" >&6; } 3011else 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013$as_echo "no" >&6; } 3014fi 3015 3016 3017fi 3018if test -z "$ac_cv_prog_CC"; then 3019 ac_ct_CC=$CC 3020 # Extract the first word of "gcc", so it can be a program name with args. 3021set dummy gcc; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if ${ac_cv_prog_ac_ct_CC+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$ac_ct_CC"; then 3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_ac_ct_CC="gcc" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047ac_ct_CC=$ac_cv_prog_ac_ct_CC 3048if test -n "$ac_ct_CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3050$as_echo "$ac_ct_CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 if test "x$ac_ct_CC" = x; then 3057 CC="" 3058 else 3059 case $cross_compiling:$ac_tool_warned in 3060yes:) 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3063ac_tool_warned=yes ;; 3064esac 3065 CC=$ac_ct_CC 3066 fi 3067else 3068 CC="$ac_cv_prog_CC" 3069fi 3070 3071if test -z "$CC"; then 3072 if test -n "$ac_tool_prefix"; then 3073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3074set dummy ${ac_tool_prefix}cc; ac_word=$2 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3076$as_echo_n "checking for $ac_word... " >&6; } 3077if ${ac_cv_prog_CC+:} false; then : 3078 $as_echo_n "(cached) " >&6 3079else 3080 if test -n "$CC"; then 3081 ac_cv_prog_CC="$CC" # Let the user override the test. 3082else 3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3084for as_dir in $PATH 3085do 3086 IFS=$as_save_IFS 3087 test -z "$as_dir" && as_dir=. 3088 for ac_exec_ext in '' $ac_executable_extensions; do 3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3090 ac_cv_prog_CC="${ac_tool_prefix}cc" 3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3092 break 2 3093 fi 3094done 3095 done 3096IFS=$as_save_IFS 3097 3098fi 3099fi 3100CC=$ac_cv_prog_CC 3101if test -n "$CC"; then 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3103$as_echo "$CC" >&6; } 3104else 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3106$as_echo "no" >&6; } 3107fi 3108 3109 3110 fi 3111fi 3112if test -z "$CC"; then 3113 # Extract the first word of "cc", so it can be a program name with args. 3114set dummy cc; ac_word=$2 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3116$as_echo_n "checking for $ac_word... " >&6; } 3117if ${ac_cv_prog_CC+:} false; then : 3118 $as_echo_n "(cached) " >&6 3119else 3120 if test -n "$CC"; then 3121 ac_cv_prog_CC="$CC" # Let the user override the test. 3122else 3123 ac_prog_rejected=no 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3132 ac_prog_rejected=yes 3133 continue 3134 fi 3135 ac_cv_prog_CC="cc" 3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3137 break 2 3138 fi 3139done 3140 done 3141IFS=$as_save_IFS 3142 3143if test $ac_prog_rejected = yes; then 3144 # We found a bogon in the path, so make sure we never use it. 3145 set dummy $ac_cv_prog_CC 3146 shift 3147 if test $# != 0; then 3148 # We chose a different compiler from the bogus one. 3149 # However, it has the same basename, so the bogon will be chosen 3150 # first if we set CC to just the basename; use the full file name. 3151 shift 3152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3153 fi 3154fi 3155fi 3156fi 3157CC=$ac_cv_prog_CC 3158if test -n "$CC"; then 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3160$as_echo "$CC" >&6; } 3161else 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3163$as_echo "no" >&6; } 3164fi 3165 3166 3167fi 3168if test -z "$CC"; then 3169 if test -n "$ac_tool_prefix"; then 3170 for ac_prog in cl.exe 3171 do 3172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3173set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if ${ac_cv_prog_CC+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$CC"; then 3180 ac_cv_prog_CC="$CC" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199CC=$ac_cv_prog_CC 3200if test -n "$CC"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3202$as_echo "$CC" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 3209 test -n "$CC" && break 3210 done 3211fi 3212if test -z "$CC"; then 3213 ac_ct_CC=$CC 3214 for ac_prog in cl.exe 3215do 3216 # Extract the first word of "$ac_prog", so it can be a program name with args. 3217set dummy $ac_prog; ac_word=$2 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3219$as_echo_n "checking for $ac_word... " >&6; } 3220if ${ac_cv_prog_ac_ct_CC+:} false; then : 3221 $as_echo_n "(cached) " >&6 3222else 3223 if test -n "$ac_ct_CC"; then 3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3225else 3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3227for as_dir in $PATH 3228do 3229 IFS=$as_save_IFS 3230 test -z "$as_dir" && as_dir=. 3231 for ac_exec_ext in '' $ac_executable_extensions; do 3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3233 ac_cv_prog_ac_ct_CC="$ac_prog" 3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3235 break 2 3236 fi 3237done 3238 done 3239IFS=$as_save_IFS 3240 3241fi 3242fi 3243ac_ct_CC=$ac_cv_prog_ac_ct_CC 3244if test -n "$ac_ct_CC"; then 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3246$as_echo "$ac_ct_CC" >&6; } 3247else 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3249$as_echo "no" >&6; } 3250fi 3251 3252 3253 test -n "$ac_ct_CC" && break 3254done 3255 3256 if test "x$ac_ct_CC" = x; then 3257 CC="" 3258 else 3259 case $cross_compiling:$ac_tool_warned in 3260yes:) 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3263ac_tool_warned=yes ;; 3264esac 3265 CC=$ac_ct_CC 3266 fi 3267fi 3268 3269fi 3270 3271 3272test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3274as_fn_error $? "no acceptable C compiler found in \$PATH 3275See \`config.log' for more details" "$LINENO" 5; } 3276 3277# Provide some information about the compiler. 3278$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3279set X $ac_compile 3280ac_compiler=$2 3281for ac_option in --version -v -V -qversion; do 3282 { { ac_try="$ac_compiler $ac_option >&5" 3283case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286esac 3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3288$as_echo "$ac_try_echo"; } >&5 3289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3290 ac_status=$? 3291 if test -s conftest.err; then 3292 sed '10a\ 3293... rest of stderr output deleted ... 3294 10q' conftest.err >conftest.er1 3295 cat conftest.er1 >&5 3296 fi 3297 rm -f conftest.er1 conftest.err 3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3299 test $ac_status = 0; } 3300done 3301 3302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3303/* end confdefs.h. */ 3304 3305int 3306main () 3307{ 3308 3309 ; 3310 return 0; 3311} 3312_ACEOF 3313ac_clean_files_save=$ac_clean_files 3314ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3315# Try to create an executable without -o first, disregard a.out. 3316# It will help us diagnose broken compilers, and finding out an intuition 3317# of exeext. 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3319$as_echo_n "checking whether the C compiler works... " >&6; } 3320ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3321 3322# The possible output files: 3323ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3324 3325ac_rmfiles= 3326for ac_file in $ac_files 3327do 3328 case $ac_file in 3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3330 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3331 esac 3332done 3333rm -f $ac_rmfiles 3334 3335if { { ac_try="$ac_link_default" 3336case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339esac 3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3341$as_echo "$ac_try_echo"; } >&5 3342 (eval "$ac_link_default") 2>&5 3343 ac_status=$? 3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3345 test $ac_status = 0; }; then : 3346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3347# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3348# in a Makefile. We should not override ac_cv_exeext if it was cached, 3349# so that the user can short-circuit this test for compilers unknown to 3350# Autoconf. 3351for ac_file in $ac_files '' 3352do 3353 test -f "$ac_file" || continue 3354 case $ac_file in 3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3356 ;; 3357 [ab].out ) 3358 # We found the default executable, but exeext='' is most 3359 # certainly right. 3360 break;; 3361 *.* ) 3362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3363 then :; else 3364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3365 fi 3366 # We set ac_cv_exeext here because the later test for it is not 3367 # safe: cross compilers may not add the suffix if given an `-o' 3368 # argument, so we may need to know it at that point already. 3369 # Even if this section looks crufty: it has the advantage of 3370 # actually working. 3371 break;; 3372 * ) 3373 break;; 3374 esac 3375done 3376test "$ac_cv_exeext" = no && ac_cv_exeext= 3377 3378else 3379 ac_file='' 3380fi 3381if test -z "$ac_file"; then : 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383$as_echo "no" >&6; } 3384$as_echo "$as_me: failed program was:" >&5 3385sed 's/^/| /' conftest.$ac_ext >&5 3386 3387{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3389as_fn_error 77 "C compiler cannot create executables 3390See \`config.log' for more details" "$LINENO" 5; } 3391else 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3393$as_echo "yes" >&6; } 3394fi 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3396$as_echo_n "checking for C compiler default output file name... " >&6; } 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3398$as_echo "$ac_file" >&6; } 3399ac_exeext=$ac_cv_exeext 3400 3401rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3402ac_clean_files=$ac_clean_files_save 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3404$as_echo_n "checking for suffix of executables... " >&6; } 3405if { { ac_try="$ac_link" 3406case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409esac 3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411$as_echo "$ac_try_echo"; } >&5 3412 (eval "$ac_link") 2>&5 3413 ac_status=$? 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3415 test $ac_status = 0; }; then : 3416 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3417# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3418# work properly (i.e., refer to `conftest.exe'), while it won't with 3419# `rm'. 3420for ac_file in conftest.exe conftest conftest.*; do 3421 test -f "$ac_file" || continue 3422 case $ac_file in 3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3424 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3425 break;; 3426 * ) break;; 3427 esac 3428done 3429else 3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3432as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3433See \`config.log' for more details" "$LINENO" 5; } 3434fi 3435rm -f conftest conftest$ac_cv_exeext 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3437$as_echo "$ac_cv_exeext" >&6; } 3438 3439rm -f conftest.$ac_ext 3440EXEEXT=$ac_cv_exeext 3441ac_exeext=$EXEEXT 3442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3443/* end confdefs.h. */ 3444#include <stdio.h> 3445int 3446main () 3447{ 3448FILE *f = fopen ("conftest.out", "w"); 3449 return ferror (f) || fclose (f) != 0; 3450 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455ac_clean_files="$ac_clean_files conftest.out" 3456# Check that the compiler produces executables we can run. If not, either 3457# the compiler is broken, or we cross compile. 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3459$as_echo_n "checking whether we are cross compiling... " >&6; } 3460if test "$cross_compiling" != yes; then 3461 { { ac_try="$ac_link" 3462case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467$as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_link") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; } 3472 if { ac_try='./conftest$ac_cv_exeext' 3473 { { case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3478$as_echo "$ac_try_echo"; } >&5 3479 (eval "$ac_try") 2>&5 3480 ac_status=$? 3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3482 test $ac_status = 0; }; }; then 3483 cross_compiling=no 3484 else 3485 if test "$cross_compiling" = maybe; then 3486 cross_compiling=yes 3487 else 3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3490as_fn_error $? "cannot run C compiled programs. 3491If you meant to cross compile, use \`--host'. 3492See \`config.log' for more details" "$LINENO" 5; } 3493 fi 3494 fi 3495fi 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3497$as_echo "$cross_compiling" >&6; } 3498 3499rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3500ac_clean_files=$ac_clean_files_save 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3502$as_echo_n "checking for suffix of object files... " >&6; } 3503if ${ac_cv_objext+:} false; then : 3504 $as_echo_n "(cached) " >&6 3505else 3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517rm -f conftest.o conftest.obj 3518if { { ac_try="$ac_compile" 3519case "(($ac_try" in 3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3521 *) ac_try_echo=$ac_try;; 3522esac 3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3524$as_echo "$ac_try_echo"; } >&5 3525 (eval "$ac_compile") 2>&5 3526 ac_status=$? 3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3528 test $ac_status = 0; }; then : 3529 for ac_file in conftest.o conftest.obj conftest.*; do 3530 test -f "$ac_file" || continue; 3531 case $ac_file in 3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3534 break;; 3535 esac 3536done 3537else 3538 $as_echo "$as_me: failed program was:" >&5 3539sed 's/^/| /' conftest.$ac_ext >&5 3540 3541{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3543as_fn_error $? "cannot compute suffix of object files: cannot compile 3544See \`config.log' for more details" "$LINENO" 5; } 3545fi 3546rm -f conftest.$ac_cv_objext conftest.$ac_ext 3547fi 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3549$as_echo "$ac_cv_objext" >&6; } 3550OBJEXT=$ac_cv_objext 3551ac_objext=$OBJEXT 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3553$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3554if ${ac_cv_c_compiler_gnu+:} false; then : 3555 $as_echo_n "(cached) " >&6 3556else 3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563#ifndef __GNUC__ 3564 choke me 3565#endif 3566 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571if ac_fn_c_try_compile "$LINENO"; then : 3572 ac_compiler_gnu=yes 3573else 3574 ac_compiler_gnu=no 3575fi 3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3577ac_cv_c_compiler_gnu=$ac_compiler_gnu 3578 3579fi 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3581$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3582if test $ac_compiler_gnu = yes; then 3583 GCC=yes 3584else 3585 GCC= 3586fi 3587ac_test_CFLAGS=${CFLAGS+set} 3588ac_save_CFLAGS=$CFLAGS 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3590$as_echo_n "checking whether $CC accepts -g... " >&6; } 3591if ${ac_cv_prog_cc_g+:} false; then : 3592 $as_echo_n "(cached) " >&6 3593else 3594 ac_save_c_werror_flag=$ac_c_werror_flag 3595 ac_c_werror_flag=yes 3596 ac_cv_prog_cc_g=no 3597 CFLAGS="-g" 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600 3601int 3602main () 3603{ 3604 3605 ; 3606 return 0; 3607} 3608_ACEOF 3609if ac_fn_c_try_compile "$LINENO"; then : 3610 ac_cv_prog_cc_g=yes 3611else 3612 CFLAGS="" 3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615 3616int 3617main () 3618{ 3619 3620 ; 3621 return 0; 3622} 3623_ACEOF 3624if ac_fn_c_try_compile "$LINENO"; then : 3625 3626else 3627 ac_c_werror_flag=$ac_save_c_werror_flag 3628 CFLAGS="-g" 3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631 3632int 3633main () 3634{ 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640if ac_fn_c_try_compile "$LINENO"; then : 3641 ac_cv_prog_cc_g=yes 3642fi 3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3644fi 3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3646fi 3647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3648 ac_c_werror_flag=$ac_save_c_werror_flag 3649fi 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3651$as_echo "$ac_cv_prog_cc_g" >&6; } 3652if test "$ac_test_CFLAGS" = set; then 3653 CFLAGS=$ac_save_CFLAGS 3654elif test $ac_cv_prog_cc_g = yes; then 3655 if test "$GCC" = yes; then 3656 CFLAGS="-g -O2" 3657 else 3658 CFLAGS="-g" 3659 fi 3660else 3661 if test "$GCC" = yes; then 3662 CFLAGS="-O2" 3663 else 3664 CFLAGS= 3665 fi 3666fi 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3668$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3669if ${ac_cv_prog_cc_c89+:} false; then : 3670 $as_echo_n "(cached) " >&6 3671else 3672 ac_cv_prog_cc_c89=no 3673ac_save_CC=$CC 3674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675/* end confdefs.h. */ 3676#include <stdarg.h> 3677#include <stdio.h> 3678struct stat; 3679/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3680struct buf { int x; }; 3681FILE * (*rcsopen) (struct buf *, struct stat *, int); 3682static char *e (p, i) 3683 char **p; 3684 int i; 3685{ 3686 return p[i]; 3687} 3688static char *f (char * (*g) (char **, int), char **p, ...) 3689{ 3690 char *s; 3691 va_list v; 3692 va_start (v,p); 3693 s = g (p, va_arg (v,int)); 3694 va_end (v); 3695 return s; 3696} 3697 3698/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3699 function prototypes and stuff, but not '\xHH' hex character constants. 3700 These don't provoke an error unfortunately, instead are silently treated 3701 as 'x'. The following induces an error, until -std is added to get 3702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3703 array size at least. It's necessary to write '\x00'==0 to get something 3704 that's true only with -std. */ 3705int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3706 3707/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3708 inside strings and character constants. */ 3709#define FOO(x) 'x' 3710int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3711 3712int test (int i, double x); 3713struct s1 {int (*f) (int a);}; 3714struct s2 {int (*f) (double a);}; 3715int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3716int argc; 3717char **argv; 3718int 3719main () 3720{ 3721return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3722 ; 3723 return 0; 3724} 3725_ACEOF 3726for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3728do 3729 CC="$ac_save_CC $ac_arg" 3730 if ac_fn_c_try_compile "$LINENO"; then : 3731 ac_cv_prog_cc_c89=$ac_arg 3732fi 3733rm -f core conftest.err conftest.$ac_objext 3734 test "x$ac_cv_prog_cc_c89" != "xno" && break 3735done 3736rm -f conftest.$ac_ext 3737CC=$ac_save_CC 3738 3739fi 3740# AC_CACHE_VAL 3741case "x$ac_cv_prog_cc_c89" in 3742 x) 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3744$as_echo "none needed" >&6; } ;; 3745 xno) 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3747$as_echo "unsupported" >&6; } ;; 3748 *) 3749 CC="$CC $ac_cv_prog_cc_c89" 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3751$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3752esac 3753if test "x$ac_cv_prog_cc_c89" != xno; then : 3754 3755fi 3756 3757ac_ext=c 3758ac_cpp='$CPP $CPPFLAGS' 3759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3761ac_compiler_gnu=$ac_cv_c_compiler_gnu 3762 3763ac_ext=c 3764ac_cpp='$CPP $CPPFLAGS' 3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3767ac_compiler_gnu=$ac_cv_c_compiler_gnu 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3769$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3770if ${am_cv_prog_cc_c_o+:} false; then : 3771 $as_echo_n "(cached) " >&6 3772else 3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774/* end confdefs.h. */ 3775 3776int 3777main () 3778{ 3779 3780 ; 3781 return 0; 3782} 3783_ACEOF 3784 # Make sure it works both with $CC and with simple cc. 3785 # Following AC_PROG_CC_C_O, we do the test twice because some 3786 # compilers refuse to overwrite an existing .o file with -o, 3787 # though they will create one. 3788 am_cv_prog_cc_c_o=yes 3789 for am_i in 1 2; do 3790 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3791 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3792 ac_status=$? 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); } \ 3795 && test -f conftest2.$ac_objext; then 3796 : OK 3797 else 3798 am_cv_prog_cc_c_o=no 3799 break 3800 fi 3801 done 3802 rm -f core conftest* 3803 unset am_i 3804fi 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3806$as_echo "$am_cv_prog_cc_c_o" >&6; } 3807if test "$am_cv_prog_cc_c_o" != yes; then 3808 # Losing compiler, so override with the script. 3809 # FIXME: It is wrong to rewrite CC. 3810 # But if we don't then we get into trouble of one sort or another. 3811 # A longer-term fix would be to have automake use am__CC in this case, 3812 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3813 CC="$am_aux_dir/compile $CC" 3814fi 3815ac_ext=c 3816ac_cpp='$CPP $CPPFLAGS' 3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3819ac_compiler_gnu=$ac_cv_c_compiler_gnu 3820 3821DEPDIR="${am__leading_dot}deps" 3822 3823ac_config_commands="$ac_config_commands depfiles" 3824 3825 3826am_make=${MAKE-make} 3827cat > confinc << 'END' 3828am__doit: 3829 @echo this is the am__doit target 3830.PHONY: am__doit 3831END 3832# If we don't find an include directive, just comment out the code. 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3834$as_echo_n "checking for style of include used by $am_make... " >&6; } 3835am__include="#" 3836am__quote= 3837_am_result=none 3838# First try GNU make style include. 3839echo "include confinc" > confmf 3840# Ignore all kinds of additional output from 'make'. 3841case `$am_make -s -f confmf 2> /dev/null` in #( 3842*the\ am__doit\ target*) 3843 am__include=include 3844 am__quote= 3845 _am_result=GNU 3846 ;; 3847esac 3848# Now try BSD make style include. 3849if test "$am__include" = "#"; then 3850 echo '.include "confinc"' > confmf 3851 case `$am_make -s -f confmf 2> /dev/null` in #( 3852 *the\ am__doit\ target*) 3853 am__include=.include 3854 am__quote="\"" 3855 _am_result=BSD 3856 ;; 3857 esac 3858fi 3859 3860 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3862$as_echo "$_am_result" >&6; } 3863rm -f confinc confmf 3864 3865# Check whether --enable-dependency-tracking was given. 3866if test "${enable_dependency_tracking+set}" = set; then : 3867 enableval=$enable_dependency_tracking; 3868fi 3869 3870if test "x$enable_dependency_tracking" != xno; then 3871 am_depcomp="$ac_aux_dir/depcomp" 3872 AMDEPBACKSLASH='\' 3873 am__nodep='_no' 3874fi 3875 if test "x$enable_dependency_tracking" != xno; then 3876 AMDEP_TRUE= 3877 AMDEP_FALSE='#' 3878else 3879 AMDEP_TRUE='#' 3880 AMDEP_FALSE= 3881fi 3882 3883 3884 3885depcc="$CC" am_compiler_list= 3886 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3888$as_echo_n "checking dependency style of $depcc... " >&6; } 3889if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3890 $as_echo_n "(cached) " >&6 3891else 3892 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3893 # We make a subdir and do the tests there. Otherwise we can end up 3894 # making bogus files that we don't know about and never remove. For 3895 # instance it was reported that on HP-UX the gcc test will end up 3896 # making a dummy file named 'D' -- because '-MD' means "put the output 3897 # in D". 3898 rm -rf conftest.dir 3899 mkdir conftest.dir 3900 # Copy depcomp to subdir because otherwise we won't find it if we're 3901 # using a relative directory. 3902 cp "$am_depcomp" conftest.dir 3903 cd conftest.dir 3904 # We will build objects and dependencies in a subdirectory because 3905 # it helps to detect inapplicable dependency modes. For instance 3906 # both Tru64's cc and ICC support -MD to output dependencies as a 3907 # side effect of compilation, but ICC will put the dependencies in 3908 # the current directory while Tru64 will put them in the object 3909 # directory. 3910 mkdir sub 3911 3912 am_cv_CC_dependencies_compiler_type=none 3913 if test "$am_compiler_list" = ""; then 3914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3915 fi 3916 am__universal=false 3917 case " $depcc " in #( 3918 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3919 esac 3920 3921 for depmode in $am_compiler_list; do 3922 # Setup a source with many dependencies, because some compilers 3923 # like to wrap large dependency lists on column 80 (with \), and 3924 # we should not choose a depcomp mode which is confused by this. 3925 # 3926 # We need to recreate these files for each test, as the compiler may 3927 # overwrite some of them when testing with obscure command lines. 3928 # This happens at least with the AIX C compiler. 3929 : > sub/conftest.c 3930 for i in 1 2 3 4 5 6; do 3931 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3932 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3933 # Solaris 10 /bin/sh. 3934 echo '/* dummy */' > sub/conftst$i.h 3935 done 3936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3937 3938 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3939 # mode. It turns out that the SunPro C++ compiler does not properly 3940 # handle '-M -o', and we need to detect this. Also, some Intel 3941 # versions had trouble with output in subdirs. 3942 am__obj=sub/conftest.${OBJEXT-o} 3943 am__minus_obj="-o $am__obj" 3944 case $depmode in 3945 gcc) 3946 # This depmode causes a compiler race in universal mode. 3947 test "$am__universal" = false || continue 3948 ;; 3949 nosideeffect) 3950 # After this tag, mechanisms are not by side-effect, so they'll 3951 # only be used when explicitly requested. 3952 if test "x$enable_dependency_tracking" = xyes; then 3953 continue 3954 else 3955 break 3956 fi 3957 ;; 3958 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3959 # This compiler won't grok '-c -o', but also, the minuso test has 3960 # not run yet. These depmodes are late enough in the game, and 3961 # so weak that their functioning should not be impacted. 3962 am__obj=conftest.${OBJEXT-o} 3963 am__minus_obj= 3964 ;; 3965 none) break ;; 3966 esac 3967 if depmode=$depmode \ 3968 source=sub/conftest.c object=$am__obj \ 3969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3970 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3971 >/dev/null 2>conftest.err && 3972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3974 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3976 # icc doesn't choke on unknown options, it will just issue warnings 3977 # or remarks (even with -Werror). So we grep stderr for any message 3978 # that says an option was ignored or not supported. 3979 # When given -MP, icc 7.0 and 7.1 complain thusly: 3980 # icc: Command line warning: ignoring option '-M'; no argument required 3981 # The diagnosis changed in icc 8.0: 3982 # icc: Command line remark: option '-MP' not supported 3983 if (grep 'ignoring option' conftest.err || 3984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3985 am_cv_CC_dependencies_compiler_type=$depmode 3986 break 3987 fi 3988 fi 3989 done 3990 3991 cd .. 3992 rm -rf conftest.dir 3993else 3994 am_cv_CC_dependencies_compiler_type=none 3995fi 3996 3997fi 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3999$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4000CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4001 4002 if 4003 test "x$enable_dependency_tracking" != xno \ 4004 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4005 am__fastdepCC_TRUE= 4006 am__fastdepCC_FALSE='#' 4007else 4008 am__fastdepCC_TRUE='#' 4009 am__fastdepCC_FALSE= 4010fi 4011 4012 4013ac_ext=cpp 4014ac_cpp='$CXXCPP $CPPFLAGS' 4015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4018if test -z "$CXX"; then 4019 if test -n "$CCC"; then 4020 CXX=$CCC 4021 else 4022 if test -n "$ac_tool_prefix"; then 4023 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4024 do 4025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4026set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028$as_echo_n "checking for $ac_word... " >&6; } 4029if ${ac_cv_prog_CXX+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 if test -n "$CXX"; then 4033 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4034else 4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4036for as_dir in $PATH 4037do 4038 IFS=$as_save_IFS 4039 test -z "$as_dir" && as_dir=. 4040 for ac_exec_ext in '' $ac_executable_extensions; do 4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4042 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4044 break 2 4045 fi 4046done 4047 done 4048IFS=$as_save_IFS 4049 4050fi 4051fi 4052CXX=$ac_cv_prog_CXX 4053if test -n "$CXX"; then 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4055$as_echo "$CXX" >&6; } 4056else 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058$as_echo "no" >&6; } 4059fi 4060 4061 4062 test -n "$CXX" && break 4063 done 4064fi 4065if test -z "$CXX"; then 4066 ac_ct_CXX=$CXX 4067 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4068do 4069 # Extract the first word of "$ac_prog", so it can be a program name with args. 4070set dummy $ac_prog; ac_word=$2 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4072$as_echo_n "checking for $ac_word... " >&6; } 4073if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 if test -n "$ac_ct_CXX"; then 4077 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4078else 4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4080for as_dir in $PATH 4081do 4082 IFS=$as_save_IFS 4083 test -z "$as_dir" && as_dir=. 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4086 ac_cv_prog_ac_ct_CXX="$ac_prog" 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4088 break 2 4089 fi 4090done 4091 done 4092IFS=$as_save_IFS 4093 4094fi 4095fi 4096ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4097if test -n "$ac_ct_CXX"; then 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4099$as_echo "$ac_ct_CXX" >&6; } 4100else 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4102$as_echo "no" >&6; } 4103fi 4104 4105 4106 test -n "$ac_ct_CXX" && break 4107done 4108 4109 if test "x$ac_ct_CXX" = x; then 4110 CXX="g++" 4111 else 4112 case $cross_compiling:$ac_tool_warned in 4113yes:) 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4116ac_tool_warned=yes ;; 4117esac 4118 CXX=$ac_ct_CXX 4119 fi 4120fi 4121 4122 fi 4123fi 4124# Provide some information about the compiler. 4125$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4126set X $ac_compile 4127ac_compiler=$2 4128for ac_option in --version -v -V -qversion; do 4129 { { ac_try="$ac_compiler $ac_option >&5" 4130case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4135$as_echo "$ac_try_echo"; } >&5 4136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4137 ac_status=$? 4138 if test -s conftest.err; then 4139 sed '10a\ 4140... rest of stderr output deleted ... 4141 10q' conftest.err >conftest.er1 4142 cat conftest.er1 >&5 4143 fi 4144 rm -f conftest.er1 conftest.err 4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4146 test $ac_status = 0; } 4147done 4148 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4150$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4151if ${ac_cv_cxx_compiler_gnu+:} false; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156 4157int 4158main () 4159{ 4160#ifndef __GNUC__ 4161 choke me 4162#endif 4163 4164 ; 4165 return 0; 4166} 4167_ACEOF 4168if ac_fn_cxx_try_compile "$LINENO"; then : 4169 ac_compiler_gnu=yes 4170else 4171 ac_compiler_gnu=no 4172fi 4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4174ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4175 4176fi 4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4178$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4179if test $ac_compiler_gnu = yes; then 4180 GXX=yes 4181else 4182 GXX= 4183fi 4184ac_test_CXXFLAGS=${CXXFLAGS+set} 4185ac_save_CXXFLAGS=$CXXFLAGS 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4187$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4188if ${ac_cv_prog_cxx_g+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4192 ac_cxx_werror_flag=yes 4193 ac_cv_prog_cxx_g=no 4194 CXXFLAGS="-g" 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197 4198int 4199main () 4200{ 4201 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206if ac_fn_cxx_try_compile "$LINENO"; then : 4207 ac_cv_prog_cxx_g=yes 4208else 4209 CXXFLAGS="" 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211/* end confdefs.h. */ 4212 4213int 4214main () 4215{ 4216 4217 ; 4218 return 0; 4219} 4220_ACEOF 4221if ac_fn_cxx_try_compile "$LINENO"; then : 4222 4223else 4224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4225 CXXFLAGS="-g" 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228 4229int 4230main () 4231{ 4232 4233 ; 4234 return 0; 4235} 4236_ACEOF 4237if ac_fn_cxx_try_compile "$LINENO"; then : 4238 ac_cv_prog_cxx_g=yes 4239fi 4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4241fi 4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4243fi 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4248$as_echo "$ac_cv_prog_cxx_g" >&6; } 4249if test "$ac_test_CXXFLAGS" = set; then 4250 CXXFLAGS=$ac_save_CXXFLAGS 4251elif test $ac_cv_prog_cxx_g = yes; then 4252 if test "$GXX" = yes; then 4253 CXXFLAGS="-g -O2" 4254 else 4255 CXXFLAGS="-g" 4256 fi 4257else 4258 if test "$GXX" = yes; then 4259 CXXFLAGS="-O2" 4260 else 4261 CXXFLAGS= 4262 fi 4263fi 4264ac_ext=c 4265ac_cpp='$CPP $CPPFLAGS' 4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4268ac_compiler_gnu=$ac_cv_c_compiler_gnu 4269 4270depcc="$CXX" am_compiler_list= 4271 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4273$as_echo_n "checking dependency style of $depcc... " >&6; } 4274if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4275 $as_echo_n "(cached) " >&6 4276else 4277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4278 # We make a subdir and do the tests there. Otherwise we can end up 4279 # making bogus files that we don't know about and never remove. For 4280 # instance it was reported that on HP-UX the gcc test will end up 4281 # making a dummy file named 'D' -- because '-MD' means "put the output 4282 # in D". 4283 rm -rf conftest.dir 4284 mkdir conftest.dir 4285 # Copy depcomp to subdir because otherwise we won't find it if we're 4286 # using a relative directory. 4287 cp "$am_depcomp" conftest.dir 4288 cd conftest.dir 4289 # We will build objects and dependencies in a subdirectory because 4290 # it helps to detect inapplicable dependency modes. For instance 4291 # both Tru64's cc and ICC support -MD to output dependencies as a 4292 # side effect of compilation, but ICC will put the dependencies in 4293 # the current directory while Tru64 will put them in the object 4294 # directory. 4295 mkdir sub 4296 4297 am_cv_CXX_dependencies_compiler_type=none 4298 if test "$am_compiler_list" = ""; then 4299 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4300 fi 4301 am__universal=false 4302 case " $depcc " in #( 4303 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4304 esac 4305 4306 for depmode in $am_compiler_list; do 4307 # Setup a source with many dependencies, because some compilers 4308 # like to wrap large dependency lists on column 80 (with \), and 4309 # we should not choose a depcomp mode which is confused by this. 4310 # 4311 # We need to recreate these files for each test, as the compiler may 4312 # overwrite some of them when testing with obscure command lines. 4313 # This happens at least with the AIX C compiler. 4314 : > sub/conftest.c 4315 for i in 1 2 3 4 5 6; do 4316 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4317 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4318 # Solaris 10 /bin/sh. 4319 echo '/* dummy */' > sub/conftst$i.h 4320 done 4321 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4322 4323 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4324 # mode. It turns out that the SunPro C++ compiler does not properly 4325 # handle '-M -o', and we need to detect this. Also, some Intel 4326 # versions had trouble with output in subdirs. 4327 am__obj=sub/conftest.${OBJEXT-o} 4328 am__minus_obj="-o $am__obj" 4329 case $depmode in 4330 gcc) 4331 # This depmode causes a compiler race in universal mode. 4332 test "$am__universal" = false || continue 4333 ;; 4334 nosideeffect) 4335 # After this tag, mechanisms are not by side-effect, so they'll 4336 # only be used when explicitly requested. 4337 if test "x$enable_dependency_tracking" = xyes; then 4338 continue 4339 else 4340 break 4341 fi 4342 ;; 4343 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4344 # This compiler won't grok '-c -o', but also, the minuso test has 4345 # not run yet. These depmodes are late enough in the game, and 4346 # so weak that their functioning should not be impacted. 4347 am__obj=conftest.${OBJEXT-o} 4348 am__minus_obj= 4349 ;; 4350 none) break ;; 4351 esac 4352 if depmode=$depmode \ 4353 source=sub/conftest.c object=$am__obj \ 4354 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4355 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4356 >/dev/null 2>conftest.err && 4357 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4359 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4361 # icc doesn't choke on unknown options, it will just issue warnings 4362 # or remarks (even with -Werror). So we grep stderr for any message 4363 # that says an option was ignored or not supported. 4364 # When given -MP, icc 7.0 and 7.1 complain thusly: 4365 # icc: Command line warning: ignoring option '-M'; no argument required 4366 # The diagnosis changed in icc 8.0: 4367 # icc: Command line remark: option '-MP' not supported 4368 if (grep 'ignoring option' conftest.err || 4369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4370 am_cv_CXX_dependencies_compiler_type=$depmode 4371 break 4372 fi 4373 fi 4374 done 4375 4376 cd .. 4377 rm -rf conftest.dir 4378else 4379 am_cv_CXX_dependencies_compiler_type=none 4380fi 4381 4382fi 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4384$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4385CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4386 4387 if 4388 test "x$enable_dependency_tracking" != xno \ 4389 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4390 am__fastdepCXX_TRUE= 4391 am__fastdepCXX_FALSE='#' 4392else 4393 am__fastdepCXX_TRUE='#' 4394 am__fastdepCXX_FALSE= 4395fi 4396 4397 4398case `pwd` in 4399 *\ * | *\ *) 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4401$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4402esac 4403 4404 4405 4406macro_version='2.4.6' 4407macro_revision='2.4.6' 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421ltmain=$ac_aux_dir/ltmain.sh 4422 4423# Make sure we can run config.sub. 4424$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4425 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4426 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4428$as_echo_n "checking build system type... " >&6; } 4429if ${ac_cv_build+:} false; then : 4430 $as_echo_n "(cached) " >&6 4431else 4432 ac_build_alias=$build_alias 4433test "x$ac_build_alias" = x && 4434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4435test "x$ac_build_alias" = x && 4436 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4437ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4439 4440fi 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4442$as_echo "$ac_cv_build" >&6; } 4443case $ac_cv_build in 4444*-*-*) ;; 4445*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4446esac 4447build=$ac_cv_build 4448ac_save_IFS=$IFS; IFS='-' 4449set x $ac_cv_build 4450shift 4451build_cpu=$1 4452build_vendor=$2 4453shift; shift 4454# Remember, the first character of IFS is used to create $*, 4455# except with old shells: 4456build_os=$* 4457IFS=$ac_save_IFS 4458case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4459 4460 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4462$as_echo_n "checking host system type... " >&6; } 4463if ${ac_cv_host+:} false; then : 4464 $as_echo_n "(cached) " >&6 4465else 4466 if test "x$host_alias" = x; then 4467 ac_cv_host=$ac_cv_build 4468else 4469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4471fi 4472 4473fi 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4475$as_echo "$ac_cv_host" >&6; } 4476case $ac_cv_host in 4477*-*-*) ;; 4478*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4479esac 4480host=$ac_cv_host 4481ac_save_IFS=$IFS; IFS='-' 4482set x $ac_cv_host 4483shift 4484host_cpu=$1 4485host_vendor=$2 4486shift; shift 4487# Remember, the first character of IFS is used to create $*, 4488# except with old shells: 4489host_os=$* 4490IFS=$ac_save_IFS 4491case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4492 4493 4494# Backslashify metacharacters that are still active within 4495# double-quoted strings. 4496sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4497 4498# Same as above, but do not quote variable references. 4499double_quote_subst='s/\(["`\\]\)/\\\1/g' 4500 4501# Sed substitution to delay expansion of an escaped shell variable in a 4502# double_quote_subst'ed string. 4503delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4504 4505# Sed substitution to delay expansion of an escaped single quote. 4506delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4507 4508# Sed substitution to avoid accidental globbing in evaled expressions 4509no_glob_subst='s/\*/\\\*/g' 4510 4511ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4512ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4513ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4514 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4516$as_echo_n "checking how to print strings... " >&6; } 4517# Test print first, because it will be a builtin if present. 4518if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4519 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4520 ECHO='print -r --' 4521elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4522 ECHO='printf %s\n' 4523else 4524 # Use this function as a fallback that always works. 4525 func_fallback_echo () 4526 { 4527 eval 'cat <<_LTECHO_EOF 4528$1 4529_LTECHO_EOF' 4530 } 4531 ECHO='func_fallback_echo' 4532fi 4533 4534# func_echo_all arg... 4535# Invoke $ECHO with all args, space-separated. 4536func_echo_all () 4537{ 4538 $ECHO "" 4539} 4540 4541case $ECHO in 4542 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4543$as_echo "printf" >&6; } ;; 4544 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4545$as_echo "print -r" >&6; } ;; 4546 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4547$as_echo "cat" >&6; } ;; 4548esac 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4564$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4565if ${ac_cv_path_SED+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4569 for ac_i in 1 2 3 4 5 6 7; do 4570 ac_script="$ac_script$as_nl$ac_script" 4571 done 4572 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4573 { ac_script=; unset ac_script;} 4574 if test -z "$SED"; then 4575 ac_path_SED_found=false 4576 # Loop through the user's path and test for each of PROGNAME-LIST 4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4578for as_dir in $PATH 4579do 4580 IFS=$as_save_IFS 4581 test -z "$as_dir" && as_dir=. 4582 for ac_prog in sed gsed; do 4583 for ac_exec_ext in '' $ac_executable_extensions; do 4584 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4585 as_fn_executable_p "$ac_path_SED" || continue 4586# Check for GNU ac_path_SED and select it if it is found. 4587 # Check for GNU $ac_path_SED 4588case `"$ac_path_SED" --version 2>&1` in 4589*GNU*) 4590 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4591*) 4592 ac_count=0 4593 $as_echo_n 0123456789 >"conftest.in" 4594 while : 4595 do 4596 cat "conftest.in" "conftest.in" >"conftest.tmp" 4597 mv "conftest.tmp" "conftest.in" 4598 cp "conftest.in" "conftest.nl" 4599 $as_echo '' >> "conftest.nl" 4600 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4602 as_fn_arith $ac_count + 1 && ac_count=$as_val 4603 if test $ac_count -gt ${ac_path_SED_max-0}; then 4604 # Best one so far, save it but keep looking for a better one 4605 ac_cv_path_SED="$ac_path_SED" 4606 ac_path_SED_max=$ac_count 4607 fi 4608 # 10*(2^10) chars as input seems more than enough 4609 test $ac_count -gt 10 && break 4610 done 4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4612esac 4613 4614 $ac_path_SED_found && break 3 4615 done 4616 done 4617 done 4618IFS=$as_save_IFS 4619 if test -z "$ac_cv_path_SED"; then 4620 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4621 fi 4622else 4623 ac_cv_path_SED=$SED 4624fi 4625 4626fi 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4628$as_echo "$ac_cv_path_SED" >&6; } 4629 SED="$ac_cv_path_SED" 4630 rm -f conftest.sed 4631 4632test -z "$SED" && SED=sed 4633Xsed="$SED -e 1s/^X//" 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4646$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4647if ${ac_cv_path_GREP+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 if test -z "$GREP"; then 4651 ac_path_GREP_found=false 4652 # Loop through the user's path and test for each of PROGNAME-LIST 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_prog in grep ggrep; do 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4661 as_fn_executable_p "$ac_path_GREP" || continue 4662# Check for GNU ac_path_GREP and select it if it is found. 4663 # Check for GNU $ac_path_GREP 4664case `"$ac_path_GREP" --version 2>&1` in 4665*GNU*) 4666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4667*) 4668 ac_count=0 4669 $as_echo_n 0123456789 >"conftest.in" 4670 while : 4671 do 4672 cat "conftest.in" "conftest.in" >"conftest.tmp" 4673 mv "conftest.tmp" "conftest.in" 4674 cp "conftest.in" "conftest.nl" 4675 $as_echo 'GREP' >> "conftest.nl" 4676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4678 as_fn_arith $ac_count + 1 && ac_count=$as_val 4679 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4680 # Best one so far, save it but keep looking for a better one 4681 ac_cv_path_GREP="$ac_path_GREP" 4682 ac_path_GREP_max=$ac_count 4683 fi 4684 # 10*(2^10) chars as input seems more than enough 4685 test $ac_count -gt 10 && break 4686 done 4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4688esac 4689 4690 $ac_path_GREP_found && break 3 4691 done 4692 done 4693 done 4694IFS=$as_save_IFS 4695 if test -z "$ac_cv_path_GREP"; then 4696 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4697 fi 4698else 4699 ac_cv_path_GREP=$GREP 4700fi 4701 4702fi 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4704$as_echo "$ac_cv_path_GREP" >&6; } 4705 GREP="$ac_cv_path_GREP" 4706 4707 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4709$as_echo_n "checking for egrep... " >&6; } 4710if ${ac_cv_path_EGREP+:} false; then : 4711 $as_echo_n "(cached) " >&6 4712else 4713 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4714 then ac_cv_path_EGREP="$GREP -E" 4715 else 4716 if test -z "$EGREP"; then 4717 ac_path_EGREP_found=false 4718 # Loop through the user's path and test for each of PROGNAME-LIST 4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4720for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4721do 4722 IFS=$as_save_IFS 4723 test -z "$as_dir" && as_dir=. 4724 for ac_prog in egrep; do 4725 for ac_exec_ext in '' $ac_executable_extensions; do 4726 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4727 as_fn_executable_p "$ac_path_EGREP" || continue 4728# Check for GNU ac_path_EGREP and select it if it is found. 4729 # Check for GNU $ac_path_EGREP 4730case `"$ac_path_EGREP" --version 2>&1` in 4731*GNU*) 4732 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4733*) 4734 ac_count=0 4735 $as_echo_n 0123456789 >"conftest.in" 4736 while : 4737 do 4738 cat "conftest.in" "conftest.in" >"conftest.tmp" 4739 mv "conftest.tmp" "conftest.in" 4740 cp "conftest.in" "conftest.nl" 4741 $as_echo 'EGREP' >> "conftest.nl" 4742 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4744 as_fn_arith $ac_count + 1 && ac_count=$as_val 4745 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4746 # Best one so far, save it but keep looking for a better one 4747 ac_cv_path_EGREP="$ac_path_EGREP" 4748 ac_path_EGREP_max=$ac_count 4749 fi 4750 # 10*(2^10) chars as input seems more than enough 4751 test $ac_count -gt 10 && break 4752 done 4753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4754esac 4755 4756 $ac_path_EGREP_found && break 3 4757 done 4758 done 4759 done 4760IFS=$as_save_IFS 4761 if test -z "$ac_cv_path_EGREP"; then 4762 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4763 fi 4764else 4765 ac_cv_path_EGREP=$EGREP 4766fi 4767 4768 fi 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4771$as_echo "$ac_cv_path_EGREP" >&6; } 4772 EGREP="$ac_cv_path_EGREP" 4773 4774 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4776$as_echo_n "checking for fgrep... " >&6; } 4777if ${ac_cv_path_FGREP+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4781 then ac_cv_path_FGREP="$GREP -F" 4782 else 4783 if test -z "$FGREP"; then 4784 ac_path_FGREP_found=false 4785 # Loop through the user's path and test for each of PROGNAME-LIST 4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4787for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4788do 4789 IFS=$as_save_IFS 4790 test -z "$as_dir" && as_dir=. 4791 for ac_prog in fgrep; do 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4794 as_fn_executable_p "$ac_path_FGREP" || continue 4795# Check for GNU ac_path_FGREP and select it if it is found. 4796 # Check for GNU $ac_path_FGREP 4797case `"$ac_path_FGREP" --version 2>&1` in 4798*GNU*) 4799 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4800*) 4801 ac_count=0 4802 $as_echo_n 0123456789 >"conftest.in" 4803 while : 4804 do 4805 cat "conftest.in" "conftest.in" >"conftest.tmp" 4806 mv "conftest.tmp" "conftest.in" 4807 cp "conftest.in" "conftest.nl" 4808 $as_echo 'FGREP' >> "conftest.nl" 4809 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4811 as_fn_arith $ac_count + 1 && ac_count=$as_val 4812 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4813 # Best one so far, save it but keep looking for a better one 4814 ac_cv_path_FGREP="$ac_path_FGREP" 4815 ac_path_FGREP_max=$ac_count 4816 fi 4817 # 10*(2^10) chars as input seems more than enough 4818 test $ac_count -gt 10 && break 4819 done 4820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4821esac 4822 4823 $ac_path_FGREP_found && break 3 4824 done 4825 done 4826 done 4827IFS=$as_save_IFS 4828 if test -z "$ac_cv_path_FGREP"; then 4829 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4830 fi 4831else 4832 ac_cv_path_FGREP=$FGREP 4833fi 4834 4835 fi 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4838$as_echo "$ac_cv_path_FGREP" >&6; } 4839 FGREP="$ac_cv_path_FGREP" 4840 4841 4842test -z "$GREP" && GREP=grep 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862# Check whether --with-gnu-ld was given. 4863if test "${with_gnu_ld+set}" = set; then : 4864 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4865else 4866 with_gnu_ld=no 4867fi 4868 4869ac_prog=ld 4870if test yes = "$GCC"; then 4871 # Check if gcc -print-prog-name=ld gives a path. 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4873$as_echo_n "checking for ld used by $CC... " >&6; } 4874 case $host in 4875 *-*-mingw*) 4876 # gcc leaves a trailing carriage return, which upsets mingw 4877 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4878 *) 4879 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4880 esac 4881 case $ac_prog in 4882 # Accept absolute paths. 4883 [\\/]* | ?:[\\/]*) 4884 re_direlt='/[^/][^/]*/\.\./' 4885 # Canonicalize the pathname of ld 4886 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4887 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4888 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4889 done 4890 test -z "$LD" && LD=$ac_prog 4891 ;; 4892 "") 4893 # If it fails, then pretend we aren't using GCC. 4894 ac_prog=ld 4895 ;; 4896 *) 4897 # If it is relative, then search for the first ld in PATH. 4898 with_gnu_ld=unknown 4899 ;; 4900 esac 4901elif test yes = "$with_gnu_ld"; then 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4903$as_echo_n "checking for GNU ld... " >&6; } 4904else 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4906$as_echo_n "checking for non-GNU ld... " >&6; } 4907fi 4908if ${lt_cv_path_LD+:} false; then : 4909 $as_echo_n "(cached) " >&6 4910else 4911 if test -z "$LD"; then 4912 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4913 for ac_dir in $PATH; do 4914 IFS=$lt_save_ifs 4915 test -z "$ac_dir" && ac_dir=. 4916 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4917 lt_cv_path_LD=$ac_dir/$ac_prog 4918 # Check to see if the program is GNU ld. I'd rather use --version, 4919 # but apparently some variants of GNU ld only accept -v. 4920 # Break only if it was the GNU/non-GNU ld that we prefer. 4921 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4922 *GNU* | *'with BFD'*) 4923 test no != "$with_gnu_ld" && break 4924 ;; 4925 *) 4926 test yes != "$with_gnu_ld" && break 4927 ;; 4928 esac 4929 fi 4930 done 4931 IFS=$lt_save_ifs 4932else 4933 lt_cv_path_LD=$LD # Let the user override the test with a path. 4934fi 4935fi 4936 4937LD=$lt_cv_path_LD 4938if test -n "$LD"; then 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4940$as_echo "$LD" >&6; } 4941else 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4943$as_echo "no" >&6; } 4944fi 4945test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4947$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4948if ${lt_cv_prog_gnu_ld+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4952case `$LD -v 2>&1 </dev/null` in 4953*GNU* | *'with BFD'*) 4954 lt_cv_prog_gnu_ld=yes 4955 ;; 4956*) 4957 lt_cv_prog_gnu_ld=no 4958 ;; 4959esac 4960fi 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4962$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4963with_gnu_ld=$lt_cv_prog_gnu_ld 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4974$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4975if ${lt_cv_path_NM+:} false; then : 4976 $as_echo_n "(cached) " >&6 4977else 4978 if test -n "$NM"; then 4979 # Let the user override the test. 4980 lt_cv_path_NM=$NM 4981else 4982 lt_nm_to_check=${ac_tool_prefix}nm 4983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4984 lt_nm_to_check="$lt_nm_to_check nm" 4985 fi 4986 for lt_tmp_nm in $lt_nm_to_check; do 4987 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4989 IFS=$lt_save_ifs 4990 test -z "$ac_dir" && ac_dir=. 4991 tmp_nm=$ac_dir/$lt_tmp_nm 4992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4993 # Check to see if the nm accepts a BSD-compat flag. 4994 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4995 # nm: unknown option "B" ignored 4996 # Tru64's nm complains that /dev/null is an invalid object file 4997 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4998 case $build_os in 4999 mingw*) lt_bad_file=conftest.nm/nofile ;; 5000 *) lt_bad_file=/dev/null ;; 5001 esac 5002 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5003 *$lt_bad_file* | *'Invalid file or object type'*) 5004 lt_cv_path_NM="$tmp_nm -B" 5005 break 2 5006 ;; 5007 *) 5008 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5009 */dev/null*) 5010 lt_cv_path_NM="$tmp_nm -p" 5011 break 2 5012 ;; 5013 *) 5014 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5015 continue # so that we can try to find one that supports BSD flags 5016 ;; 5017 esac 5018 ;; 5019 esac 5020 fi 5021 done 5022 IFS=$lt_save_ifs 5023 done 5024 : ${lt_cv_path_NM=no} 5025fi 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5028$as_echo "$lt_cv_path_NM" >&6; } 5029if test no != "$lt_cv_path_NM"; then 5030 NM=$lt_cv_path_NM 5031else 5032 # Didn't find any BSD compatible name lister, look for dumpbin. 5033 if test -n "$DUMPBIN"; then : 5034 # Let the user override the test. 5035 else 5036 if test -n "$ac_tool_prefix"; then 5037 for ac_prog in dumpbin "link -dump" 5038 do 5039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5040set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5042$as_echo_n "checking for $ac_word... " >&6; } 5043if ${ac_cv_prog_DUMPBIN+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 if test -n "$DUMPBIN"; then 5047 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5048else 5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5050for as_dir in $PATH 5051do 5052 IFS=$as_save_IFS 5053 test -z "$as_dir" && as_dir=. 5054 for ac_exec_ext in '' $ac_executable_extensions; do 5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5056 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5058 break 2 5059 fi 5060done 5061 done 5062IFS=$as_save_IFS 5063 5064fi 5065fi 5066DUMPBIN=$ac_cv_prog_DUMPBIN 5067if test -n "$DUMPBIN"; then 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5069$as_echo "$DUMPBIN" >&6; } 5070else 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5072$as_echo "no" >&6; } 5073fi 5074 5075 5076 test -n "$DUMPBIN" && break 5077 done 5078fi 5079if test -z "$DUMPBIN"; then 5080 ac_ct_DUMPBIN=$DUMPBIN 5081 for ac_prog in dumpbin "link -dump" 5082do 5083 # Extract the first word of "$ac_prog", so it can be a program name with args. 5084set dummy $ac_prog; ac_word=$2 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5086$as_echo_n "checking for $ac_word... " >&6; } 5087if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5088 $as_echo_n "(cached) " >&6 5089else 5090 if test -n "$ac_ct_DUMPBIN"; then 5091 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5092else 5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5094for as_dir in $PATH 5095do 5096 IFS=$as_save_IFS 5097 test -z "$as_dir" && as_dir=. 5098 for ac_exec_ext in '' $ac_executable_extensions; do 5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5100 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5102 break 2 5103 fi 5104done 5105 done 5106IFS=$as_save_IFS 5107 5108fi 5109fi 5110ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5111if test -n "$ac_ct_DUMPBIN"; then 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5113$as_echo "$ac_ct_DUMPBIN" >&6; } 5114else 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5116$as_echo "no" >&6; } 5117fi 5118 5119 5120 test -n "$ac_ct_DUMPBIN" && break 5121done 5122 5123 if test "x$ac_ct_DUMPBIN" = x; then 5124 DUMPBIN=":" 5125 else 5126 case $cross_compiling:$ac_tool_warned in 5127yes:) 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5130ac_tool_warned=yes ;; 5131esac 5132 DUMPBIN=$ac_ct_DUMPBIN 5133 fi 5134fi 5135 5136 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5137 *COFF*) 5138 DUMPBIN="$DUMPBIN -symbols -headers" 5139 ;; 5140 *) 5141 DUMPBIN=: 5142 ;; 5143 esac 5144 fi 5145 5146 if test : != "$DUMPBIN"; then 5147 NM=$DUMPBIN 5148 fi 5149fi 5150test -z "$NM" && NM=nm 5151 5152 5153 5154 5155 5156 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5158$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5159if ${lt_cv_nm_interface+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 lt_cv_nm_interface="BSD nm" 5163 echo "int some_variable = 0;" > conftest.$ac_ext 5164 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5165 (eval "$ac_compile" 2>conftest.err) 5166 cat conftest.err >&5 5167 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5168 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5169 cat conftest.err >&5 5170 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5171 cat conftest.out >&5 5172 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5173 lt_cv_nm_interface="MS dumpbin" 5174 fi 5175 rm -f conftest* 5176fi 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5178$as_echo "$lt_cv_nm_interface" >&6; } 5179 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5181$as_echo_n "checking whether ln -s works... " >&6; } 5182LN_S=$as_ln_s 5183if test "$LN_S" = "ln -s"; then 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5185$as_echo "yes" >&6; } 5186else 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5188$as_echo "no, using $LN_S" >&6; } 5189fi 5190 5191# find the maximum length of command line arguments 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5193$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5194if ${lt_cv_sys_max_cmd_len+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 i=0 5198 teststring=ABCD 5199 5200 case $build_os in 5201 msdosdjgpp*) 5202 # On DJGPP, this test can blow up pretty badly due to problems in libc 5203 # (any single argument exceeding 2000 bytes causes a buffer overrun 5204 # during glob expansion). Even if it were fixed, the result of this 5205 # check would be larger than it should be. 5206 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5207 ;; 5208 5209 gnu*) 5210 # Under GNU Hurd, this test is not required because there is 5211 # no limit to the length of command line arguments. 5212 # Libtool will interpret -1 as no limit whatsoever 5213 lt_cv_sys_max_cmd_len=-1; 5214 ;; 5215 5216 cygwin* | mingw* | cegcc*) 5217 # On Win9x/ME, this test blows up -- it succeeds, but takes 5218 # about 5 minutes as the teststring grows exponentially. 5219 # Worse, since 9x/ME are not pre-emptively multitasking, 5220 # you end up with a "frozen" computer, even though with patience 5221 # the test eventually succeeds (with a max line length of 256k). 5222 # Instead, let's just punt: use the minimum linelength reported by 5223 # all of the supported platforms: 8192 (on NT/2K/XP). 5224 lt_cv_sys_max_cmd_len=8192; 5225 ;; 5226 5227 mint*) 5228 # On MiNT this can take a long time and run out of memory. 5229 lt_cv_sys_max_cmd_len=8192; 5230 ;; 5231 5232 amigaos*) 5233 # On AmigaOS with pdksh, this test takes hours, literally. 5234 # So we just punt and use a minimum line length of 8192. 5235 lt_cv_sys_max_cmd_len=8192; 5236 ;; 5237 5238 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5239 # This has been around since 386BSD, at least. Likely further. 5240 if test -x /sbin/sysctl; then 5241 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5242 elif test -x /usr/sbin/sysctl; then 5243 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5244 else 5245 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5246 fi 5247 # And add a safety zone 5248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5250 ;; 5251 5252 interix*) 5253 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5254 lt_cv_sys_max_cmd_len=196608 5255 ;; 5256 5257 os2*) 5258 # The test takes a long time on OS/2. 5259 lt_cv_sys_max_cmd_len=8192 5260 ;; 5261 5262 osf*) 5263 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5264 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5265 # nice to cause kernel panics so lets avoid the loop below. 5266 # First set a reasonable default. 5267 lt_cv_sys_max_cmd_len=16384 5268 # 5269 if test -x /sbin/sysconfig; then 5270 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5271 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5272 esac 5273 fi 5274 ;; 5275 sco3.2v5*) 5276 lt_cv_sys_max_cmd_len=102400 5277 ;; 5278 sysv5* | sco5v6* | sysv4.2uw2*) 5279 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5280 if test -n "$kargmax"; then 5281 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5282 else 5283 lt_cv_sys_max_cmd_len=32768 5284 fi 5285 ;; 5286 *) 5287 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5288 if test -n "$lt_cv_sys_max_cmd_len" && \ 5289 test undefined != "$lt_cv_sys_max_cmd_len"; then 5290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5292 else 5293 # Make teststring a little bigger before we do anything with it. 5294 # a 1K string should be a reasonable start. 5295 for i in 1 2 3 4 5 6 7 8; do 5296 teststring=$teststring$teststring 5297 done 5298 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5299 # If test is not a shell built-in, we'll probably end up computing a 5300 # maximum length that is only half of the actual maximum length, but 5301 # we can't tell. 5302 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5303 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5304 test 17 != "$i" # 1/2 MB should be enough 5305 do 5306 i=`expr $i + 1` 5307 teststring=$teststring$teststring 5308 done 5309 # Only check the string length outside the loop. 5310 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5311 teststring= 5312 # Add a significant safety factor because C++ compilers can tack on 5313 # massive amounts of additional arguments before passing them to the 5314 # linker. It appears as though 1/2 is a usable value. 5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5316 fi 5317 ;; 5318 esac 5319 5320fi 5321 5322if test -n "$lt_cv_sys_max_cmd_len"; then 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5324$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5325else 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5327$as_echo "none" >&6; } 5328fi 5329max_cmd_len=$lt_cv_sys_max_cmd_len 5330 5331 5332 5333 5334 5335 5336: ${CP="cp -f"} 5337: ${MV="mv -f"} 5338: ${RM="rm -f"} 5339 5340if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5341 lt_unset=unset 5342else 5343 lt_unset=false 5344fi 5345 5346 5347 5348 5349 5350# test EBCDIC or ASCII 5351case `echo X|tr X '\101'` in 5352 A) # ASCII based system 5353 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5354 lt_SP2NL='tr \040 \012' 5355 lt_NL2SP='tr \015\012 \040\040' 5356 ;; 5357 *) # EBCDIC based system 5358 lt_SP2NL='tr \100 \n' 5359 lt_NL2SP='tr \r\n \100\100' 5360 ;; 5361esac 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5372$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5373if ${lt_cv_to_host_file_cmd+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 case $host in 5377 *-*-mingw* ) 5378 case $build in 5379 *-*-mingw* ) # actually msys 5380 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5381 ;; 5382 *-*-cygwin* ) 5383 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5384 ;; 5385 * ) # otherwise, assume *nix 5386 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5387 ;; 5388 esac 5389 ;; 5390 *-*-cygwin* ) 5391 case $build in 5392 *-*-mingw* ) # actually msys 5393 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5394 ;; 5395 *-*-cygwin* ) 5396 lt_cv_to_host_file_cmd=func_convert_file_noop 5397 ;; 5398 * ) # otherwise, assume *nix 5399 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5400 ;; 5401 esac 5402 ;; 5403 * ) # unhandled hosts (and "normal" native builds) 5404 lt_cv_to_host_file_cmd=func_convert_file_noop 5405 ;; 5406esac 5407 5408fi 5409 5410to_host_file_cmd=$lt_cv_to_host_file_cmd 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5412$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5413 5414 5415 5416 5417 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5419$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5420if ${lt_cv_to_tool_file_cmd+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 #assume ordinary cross tools, or native build. 5424lt_cv_to_tool_file_cmd=func_convert_file_noop 5425case $host in 5426 *-*-mingw* ) 5427 case $build in 5428 *-*-mingw* ) # actually msys 5429 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5430 ;; 5431 esac 5432 ;; 5433esac 5434 5435fi 5436 5437to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5439$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5440 5441 5442 5443 5444 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5446$as_echo_n "checking for $LD option to reload object files... " >&6; } 5447if ${lt_cv_ld_reload_flag+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 lt_cv_ld_reload_flag='-r' 5451fi 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5453$as_echo "$lt_cv_ld_reload_flag" >&6; } 5454reload_flag=$lt_cv_ld_reload_flag 5455case $reload_flag in 5456"" | " "*) ;; 5457*) reload_flag=" $reload_flag" ;; 5458esac 5459reload_cmds='$LD$reload_flag -o $output$reload_objs' 5460case $host_os in 5461 cygwin* | mingw* | pw32* | cegcc*) 5462 if test yes != "$GCC"; then 5463 reload_cmds=false 5464 fi 5465 ;; 5466 darwin*) 5467 if test yes = "$GCC"; then 5468 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5469 else 5470 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5471 fi 5472 ;; 5473esac 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483if test -n "$ac_tool_prefix"; then 5484 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5485set dummy ${ac_tool_prefix}objdump; ac_word=$2 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5487$as_echo_n "checking for $ac_word... " >&6; } 5488if ${ac_cv_prog_OBJDUMP+:} false; then : 5489 $as_echo_n "(cached) " >&6 5490else 5491 if test -n "$OBJDUMP"; then 5492 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5493else 5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495for as_dir in $PATH 5496do 5497 IFS=$as_save_IFS 5498 test -z "$as_dir" && as_dir=. 5499 for ac_exec_ext in '' $ac_executable_extensions; do 5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5501 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5503 break 2 5504 fi 5505done 5506 done 5507IFS=$as_save_IFS 5508 5509fi 5510fi 5511OBJDUMP=$ac_cv_prog_OBJDUMP 5512if test -n "$OBJDUMP"; then 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5514$as_echo "$OBJDUMP" >&6; } 5515else 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5517$as_echo "no" >&6; } 5518fi 5519 5520 5521fi 5522if test -z "$ac_cv_prog_OBJDUMP"; then 5523 ac_ct_OBJDUMP=$OBJDUMP 5524 # Extract the first word of "objdump", so it can be a program name with args. 5525set dummy objdump; ac_word=$2 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5527$as_echo_n "checking for $ac_word... " >&6; } 5528if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 if test -n "$ac_ct_OBJDUMP"; then 5532 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5533else 5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5535for as_dir in $PATH 5536do 5537 IFS=$as_save_IFS 5538 test -z "$as_dir" && as_dir=. 5539 for ac_exec_ext in '' $ac_executable_extensions; do 5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5541 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5543 break 2 5544 fi 5545done 5546 done 5547IFS=$as_save_IFS 5548 5549fi 5550fi 5551ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5552if test -n "$ac_ct_OBJDUMP"; then 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5554$as_echo "$ac_ct_OBJDUMP" >&6; } 5555else 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5557$as_echo "no" >&6; } 5558fi 5559 5560 if test "x$ac_ct_OBJDUMP" = x; then 5561 OBJDUMP="false" 5562 else 5563 case $cross_compiling:$ac_tool_warned in 5564yes:) 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5567ac_tool_warned=yes ;; 5568esac 5569 OBJDUMP=$ac_ct_OBJDUMP 5570 fi 5571else 5572 OBJDUMP="$ac_cv_prog_OBJDUMP" 5573fi 5574 5575test -z "$OBJDUMP" && OBJDUMP=objdump 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5586$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5587if ${lt_cv_deplibs_check_method+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 lt_cv_file_magic_cmd='$MAGIC_CMD' 5591lt_cv_file_magic_test_file= 5592lt_cv_deplibs_check_method='unknown' 5593# Need to set the preceding variable on all platforms that support 5594# interlibrary dependencies. 5595# 'none' -- dependencies not supported. 5596# 'unknown' -- same as none, but documents that we really don't know. 5597# 'pass_all' -- all dependencies passed with no checks. 5598# 'test_compile' -- check by making test program. 5599# 'file_magic [[regex]]' -- check by looking for files in library path 5600# that responds to the $file_magic_cmd with a given extended regex. 5601# If you have 'file' or equivalent on your system and you're not sure 5602# whether 'pass_all' will *always* work, you probably want this one. 5603 5604case $host_os in 5605aix[4-9]*) 5606 lt_cv_deplibs_check_method=pass_all 5607 ;; 5608 5609beos*) 5610 lt_cv_deplibs_check_method=pass_all 5611 ;; 5612 5613bsdi[45]*) 5614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5615 lt_cv_file_magic_cmd='/usr/bin/file -L' 5616 lt_cv_file_magic_test_file=/shlib/libc.so 5617 ;; 5618 5619cygwin*) 5620 # func_win32_libid is a shell function defined in ltmain.sh 5621 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5622 lt_cv_file_magic_cmd='func_win32_libid' 5623 ;; 5624 5625mingw* | pw32*) 5626 # Base MSYS/MinGW do not provide the 'file' command needed by 5627 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5628 # unless we find 'file', for example because we are cross-compiling. 5629 if ( file / ) >/dev/null 2>&1; then 5630 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5631 lt_cv_file_magic_cmd='func_win32_libid' 5632 else 5633 # Keep this pattern in sync with the one in func_win32_libid. 5634 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5635 lt_cv_file_magic_cmd='$OBJDUMP -f' 5636 fi 5637 ;; 5638 5639cegcc*) 5640 # use the weaker test based on 'objdump'. See mingw*. 5641 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5642 lt_cv_file_magic_cmd='$OBJDUMP -f' 5643 ;; 5644 5645darwin* | rhapsody*) 5646 lt_cv_deplibs_check_method=pass_all 5647 ;; 5648 5649freebsd* | dragonfly*) 5650 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5651 case $host_cpu in 5652 i*86 ) 5653 # Not sure whether the presence of OpenBSD here was a mistake. 5654 # Let's accept both of them until this is cleared up. 5655 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5656 lt_cv_file_magic_cmd=/usr/bin/file 5657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5658 ;; 5659 esac 5660 else 5661 lt_cv_deplibs_check_method=pass_all 5662 fi 5663 ;; 5664 5665haiku*) 5666 lt_cv_deplibs_check_method=pass_all 5667 ;; 5668 5669hpux10.20* | hpux11*) 5670 lt_cv_file_magic_cmd=/usr/bin/file 5671 case $host_cpu in 5672 ia64*) 5673 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5674 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5675 ;; 5676 hppa*64*) 5677 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]' 5678 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5679 ;; 5680 *) 5681 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5682 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5683 ;; 5684 esac 5685 ;; 5686 5687interix[3-9]*) 5688 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5690 ;; 5691 5692irix5* | irix6* | nonstopux*) 5693 case $LD in 5694 *-32|*"-32 ") libmagic=32-bit;; 5695 *-n32|*"-n32 ") libmagic=N32;; 5696 *-64|*"-64 ") libmagic=64-bit;; 5697 *) libmagic=never-match;; 5698 esac 5699 lt_cv_deplibs_check_method=pass_all 5700 ;; 5701 5702# This must be glibc/ELF. 5703linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5704 lt_cv_deplibs_check_method=pass_all 5705 ;; 5706 5707netbsd*) 5708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5710 else 5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5712 fi 5713 ;; 5714 5715newos6*) 5716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5717 lt_cv_file_magic_cmd=/usr/bin/file 5718 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5719 ;; 5720 5721*nto* | *qnx*) 5722 lt_cv_deplibs_check_method=pass_all 5723 ;; 5724 5725openbsd* | bitrig*) 5726 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5728 else 5729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5730 fi 5731 ;; 5732 5733osf3* | osf4* | osf5*) 5734 lt_cv_deplibs_check_method=pass_all 5735 ;; 5736 5737rdos*) 5738 lt_cv_deplibs_check_method=pass_all 5739 ;; 5740 5741solaris*) 5742 lt_cv_deplibs_check_method=pass_all 5743 ;; 5744 5745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5746 lt_cv_deplibs_check_method=pass_all 5747 ;; 5748 5749sysv4 | sysv4.3*) 5750 case $host_vendor in 5751 motorola) 5752 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]' 5753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5754 ;; 5755 ncr) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 sequent) 5759 lt_cv_file_magic_cmd='/bin/file' 5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5761 ;; 5762 sni) 5763 lt_cv_file_magic_cmd='/bin/file' 5764 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5765 lt_cv_file_magic_test_file=/lib/libc.so 5766 ;; 5767 siemens) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 pc) 5771 lt_cv_deplibs_check_method=pass_all 5772 ;; 5773 esac 5774 ;; 5775 5776tpf*) 5777 lt_cv_deplibs_check_method=pass_all 5778 ;; 5779os2*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782esac 5783 5784fi 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5786$as_echo "$lt_cv_deplibs_check_method" >&6; } 5787 5788file_magic_glob= 5789want_nocaseglob=no 5790if test "$build" = "$host"; then 5791 case $host_os in 5792 mingw* | pw32*) 5793 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5794 want_nocaseglob=yes 5795 else 5796 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5797 fi 5798 ;; 5799 esac 5800fi 5801 5802file_magic_cmd=$lt_cv_file_magic_cmd 5803deplibs_check_method=$lt_cv_deplibs_check_method 5804test -z "$deplibs_check_method" && deplibs_check_method=unknown 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827if test -n "$ac_tool_prefix"; then 5828 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5829set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5831$as_echo_n "checking for $ac_word... " >&6; } 5832if ${ac_cv_prog_DLLTOOL+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 if test -n "$DLLTOOL"; then 5836 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5837else 5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5839for as_dir in $PATH 5840do 5841 IFS=$as_save_IFS 5842 test -z "$as_dir" && as_dir=. 5843 for ac_exec_ext in '' $ac_executable_extensions; do 5844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5845 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5847 break 2 5848 fi 5849done 5850 done 5851IFS=$as_save_IFS 5852 5853fi 5854fi 5855DLLTOOL=$ac_cv_prog_DLLTOOL 5856if test -n "$DLLTOOL"; then 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5858$as_echo "$DLLTOOL" >&6; } 5859else 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861$as_echo "no" >&6; } 5862fi 5863 5864 5865fi 5866if test -z "$ac_cv_prog_DLLTOOL"; then 5867 ac_ct_DLLTOOL=$DLLTOOL 5868 # Extract the first word of "dlltool", so it can be a program name with args. 5869set dummy dlltool; ac_word=$2 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5871$as_echo_n "checking for $ac_word... " >&6; } 5872if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5873 $as_echo_n "(cached) " >&6 5874else 5875 if test -n "$ac_ct_DLLTOOL"; then 5876 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5877else 5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5879for as_dir in $PATH 5880do 5881 IFS=$as_save_IFS 5882 test -z "$as_dir" && as_dir=. 5883 for ac_exec_ext in '' $ac_executable_extensions; do 5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5885 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5887 break 2 5888 fi 5889done 5890 done 5891IFS=$as_save_IFS 5892 5893fi 5894fi 5895ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5896if test -n "$ac_ct_DLLTOOL"; then 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5898$as_echo "$ac_ct_DLLTOOL" >&6; } 5899else 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5901$as_echo "no" >&6; } 5902fi 5903 5904 if test "x$ac_ct_DLLTOOL" = x; then 5905 DLLTOOL="false" 5906 else 5907 case $cross_compiling:$ac_tool_warned in 5908yes:) 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5911ac_tool_warned=yes ;; 5912esac 5913 DLLTOOL=$ac_ct_DLLTOOL 5914 fi 5915else 5916 DLLTOOL="$ac_cv_prog_DLLTOOL" 5917fi 5918 5919test -z "$DLLTOOL" && DLLTOOL=dlltool 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5931$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5932if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934else 5935 lt_cv_sharedlib_from_linklib_cmd='unknown' 5936 5937case $host_os in 5938cygwin* | mingw* | pw32* | cegcc*) 5939 # two different shell functions defined in ltmain.sh; 5940 # decide which one to use based on capabilities of $DLLTOOL 5941 case `$DLLTOOL --help 2>&1` in 5942 *--identify-strict*) 5943 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5944 ;; 5945 *) 5946 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5947 ;; 5948 esac 5949 ;; 5950*) 5951 # fallback: assume linklib IS sharedlib 5952 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5953 ;; 5954esac 5955 5956fi 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5958$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5959sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5960test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5961 5962 5963 5964 5965 5966 5967 5968 5969if test -n "$ac_tool_prefix"; then 5970 for ac_prog in ar 5971 do 5972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5973set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5975$as_echo_n "checking for $ac_word... " >&6; } 5976if ${ac_cv_prog_AR+:} false; then : 5977 $as_echo_n "(cached) " >&6 5978else 5979 if test -n "$AR"; then 5980 ac_cv_prog_AR="$AR" # Let the user override the test. 5981else 5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5983for as_dir in $PATH 5984do 5985 IFS=$as_save_IFS 5986 test -z "$as_dir" && as_dir=. 5987 for ac_exec_ext in '' $ac_executable_extensions; do 5988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5989 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5991 break 2 5992 fi 5993done 5994 done 5995IFS=$as_save_IFS 5996 5997fi 5998fi 5999AR=$ac_cv_prog_AR 6000if test -n "$AR"; then 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6002$as_echo "$AR" >&6; } 6003else 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6005$as_echo "no" >&6; } 6006fi 6007 6008 6009 test -n "$AR" && break 6010 done 6011fi 6012if test -z "$AR"; then 6013 ac_ct_AR=$AR 6014 for ac_prog in ar 6015do 6016 # Extract the first word of "$ac_prog", so it can be a program name with args. 6017set dummy $ac_prog; ac_word=$2 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6019$as_echo_n "checking for $ac_word... " >&6; } 6020if ${ac_cv_prog_ac_ct_AR+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 if test -n "$ac_ct_AR"; then 6024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6025else 6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6027for as_dir in $PATH 6028do 6029 IFS=$as_save_IFS 6030 test -z "$as_dir" && as_dir=. 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6033 ac_cv_prog_ac_ct_AR="$ac_prog" 6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6035 break 2 6036 fi 6037done 6038 done 6039IFS=$as_save_IFS 6040 6041fi 6042fi 6043ac_ct_AR=$ac_cv_prog_ac_ct_AR 6044if test -n "$ac_ct_AR"; then 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6046$as_echo "$ac_ct_AR" >&6; } 6047else 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6049$as_echo "no" >&6; } 6050fi 6051 6052 6053 test -n "$ac_ct_AR" && break 6054done 6055 6056 if test "x$ac_ct_AR" = x; then 6057 AR="false" 6058 else 6059 case $cross_compiling:$ac_tool_warned in 6060yes:) 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6063ac_tool_warned=yes ;; 6064esac 6065 AR=$ac_ct_AR 6066 fi 6067fi 6068 6069: ${AR=ar} 6070: ${AR_FLAGS=cru} 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6083$as_echo_n "checking for archiver @FILE support... " >&6; } 6084if ${lt_cv_ar_at_file+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 lt_cv_ar_at_file=no 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090 6091int 6092main () 6093{ 6094 6095 ; 6096 return 0; 6097} 6098_ACEOF 6099if ac_fn_c_try_compile "$LINENO"; then : 6100 echo conftest.$ac_objext > conftest.lst 6101 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6103 (eval $lt_ar_try) 2>&5 6104 ac_status=$? 6105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6106 test $ac_status = 0; } 6107 if test 0 -eq "$ac_status"; then 6108 # Ensure the archiver fails upon bogus file names. 6109 rm -f conftest.$ac_objext libconftest.a 6110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6111 (eval $lt_ar_try) 2>&5 6112 ac_status=$? 6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6114 test $ac_status = 0; } 6115 if test 0 -ne "$ac_status"; then 6116 lt_cv_ar_at_file=@ 6117 fi 6118 fi 6119 rm -f conftest.* libconftest.a 6120 6121fi 6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6123 6124fi 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6126$as_echo "$lt_cv_ar_at_file" >&6; } 6127 6128if test no = "$lt_cv_ar_at_file"; then 6129 archiver_list_spec= 6130else 6131 archiver_list_spec=$lt_cv_ar_at_file 6132fi 6133 6134 6135 6136 6137 6138 6139 6140if test -n "$ac_tool_prefix"; then 6141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6142set dummy ${ac_tool_prefix}strip; ac_word=$2 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6144$as_echo_n "checking for $ac_word... " >&6; } 6145if ${ac_cv_prog_STRIP+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 if test -n "$STRIP"; then 6149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6150else 6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152for as_dir in $PATH 6153do 6154 IFS=$as_save_IFS 6155 test -z "$as_dir" && as_dir=. 6156 for ac_exec_ext in '' $ac_executable_extensions; do 6157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6158 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6160 break 2 6161 fi 6162done 6163 done 6164IFS=$as_save_IFS 6165 6166fi 6167fi 6168STRIP=$ac_cv_prog_STRIP 6169if test -n "$STRIP"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6171$as_echo "$STRIP" >&6; } 6172else 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6174$as_echo "no" >&6; } 6175fi 6176 6177 6178fi 6179if test -z "$ac_cv_prog_STRIP"; then 6180 ac_ct_STRIP=$STRIP 6181 # Extract the first word of "strip", so it can be a program name with args. 6182set dummy strip; ac_word=$2 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6184$as_echo_n "checking for $ac_word... " >&6; } 6185if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 if test -n "$ac_ct_STRIP"; then 6189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6190else 6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192for as_dir in $PATH 6193do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6198 ac_cv_prog_ac_ct_STRIP="strip" 6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203 done 6204IFS=$as_save_IFS 6205 6206fi 6207fi 6208ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6209if test -n "$ac_ct_STRIP"; then 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6211$as_echo "$ac_ct_STRIP" >&6; } 6212else 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6214$as_echo "no" >&6; } 6215fi 6216 6217 if test "x$ac_ct_STRIP" = x; then 6218 STRIP=":" 6219 else 6220 case $cross_compiling:$ac_tool_warned in 6221yes:) 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6224ac_tool_warned=yes ;; 6225esac 6226 STRIP=$ac_ct_STRIP 6227 fi 6228else 6229 STRIP="$ac_cv_prog_STRIP" 6230fi 6231 6232test -z "$STRIP" && STRIP=: 6233 6234 6235 6236 6237 6238 6239if test -n "$ac_tool_prefix"; then 6240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6241set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6243$as_echo_n "checking for $ac_word... " >&6; } 6244if ${ac_cv_prog_RANLIB+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 if test -n "$RANLIB"; then 6248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6249else 6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251for as_dir in $PATH 6252do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262 done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267RANLIB=$ac_cv_prog_RANLIB 6268if test -n "$RANLIB"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6270$as_echo "$RANLIB" >&6; } 6271else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273$as_echo "no" >&6; } 6274fi 6275 6276 6277fi 6278if test -z "$ac_cv_prog_RANLIB"; then 6279 ac_ct_RANLIB=$RANLIB 6280 # Extract the first word of "ranlib", so it can be a program name with args. 6281set dummy ranlib; ac_word=$2 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6283$as_echo_n "checking for $ac_word... " >&6; } 6284if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 if test -n "$ac_ct_RANLIB"; then 6288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6289else 6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6291for as_dir in $PATH 6292do 6293 IFS=$as_save_IFS 6294 test -z "$as_dir" && as_dir=. 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6297 ac_cv_prog_ac_ct_RANLIB="ranlib" 6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6299 break 2 6300 fi 6301done 6302 done 6303IFS=$as_save_IFS 6304 6305fi 6306fi 6307ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6308if test -n "$ac_ct_RANLIB"; then 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6310$as_echo "$ac_ct_RANLIB" >&6; } 6311else 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6313$as_echo "no" >&6; } 6314fi 6315 6316 if test "x$ac_ct_RANLIB" = x; then 6317 RANLIB=":" 6318 else 6319 case $cross_compiling:$ac_tool_warned in 6320yes:) 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6323ac_tool_warned=yes ;; 6324esac 6325 RANLIB=$ac_ct_RANLIB 6326 fi 6327else 6328 RANLIB="$ac_cv_prog_RANLIB" 6329fi 6330 6331test -z "$RANLIB" && RANLIB=: 6332 6333 6334 6335 6336 6337 6338# Determine commands to create old-style static archives. 6339old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6340old_postinstall_cmds='chmod 644 $oldlib' 6341old_postuninstall_cmds= 6342 6343if test -n "$RANLIB"; then 6344 case $host_os in 6345 bitrig* | openbsd*) 6346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6347 ;; 6348 *) 6349 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6350 ;; 6351 esac 6352 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6353fi 6354 6355case $host_os in 6356 darwin*) 6357 lock_old_archive_extraction=yes ;; 6358 *) 6359 lock_old_archive_extraction=no ;; 6360esac 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400# If no C compiler was specified, use CC. 6401LTCC=${LTCC-"$CC"} 6402 6403# If no C compiler flags were specified, use CFLAGS. 6404LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6405 6406# Allow CC to be a program name with arguments. 6407compiler=$CC 6408 6409 6410# Check for command to grab the raw symbol name followed by C symbol from nm. 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6412$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6413if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 6417# These are sane defaults that work on at least a few old systems. 6418# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6419 6420# Character class describing NM global symbol codes. 6421symcode='[BCDEGRST]' 6422 6423# Regexp to match symbols that can be accessed directly from C. 6424sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6425 6426# Define system-specific variables. 6427case $host_os in 6428aix*) 6429 symcode='[BCDT]' 6430 ;; 6431cygwin* | mingw* | pw32* | cegcc*) 6432 symcode='[ABCDGISTW]' 6433 ;; 6434hpux*) 6435 if test ia64 = "$host_cpu"; then 6436 symcode='[ABCDEGRST]' 6437 fi 6438 ;; 6439irix* | nonstopux*) 6440 symcode='[BCDEGRST]' 6441 ;; 6442osf*) 6443 symcode='[BCDEGQRST]' 6444 ;; 6445solaris*) 6446 symcode='[BDRT]' 6447 ;; 6448sco3.2v5*) 6449 symcode='[DT]' 6450 ;; 6451sysv4.2uw2*) 6452 symcode='[DT]' 6453 ;; 6454sysv5* | sco5v6* | unixware* | OpenUNIX*) 6455 symcode='[ABDT]' 6456 ;; 6457sysv4) 6458 symcode='[DFNSTU]' 6459 ;; 6460esac 6461 6462# If we're using GNU nm, then use its standard symbol codes. 6463case `$NM -V 2>&1` in 6464*GNU* | *'with BFD'*) 6465 symcode='[ABCDGIRSTW]' ;; 6466esac 6467 6468if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6469 # Gets list of data symbols to import. 6470 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6471 # Adjust the below global symbol transforms to fixup imported variables. 6472 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6473 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6474 lt_c_name_lib_hook="\ 6475 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6476 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6477else 6478 # Disable hooks by default. 6479 lt_cv_sys_global_symbol_to_import= 6480 lt_cdecl_hook= 6481 lt_c_name_hook= 6482 lt_c_name_lib_hook= 6483fi 6484 6485# Transform an extracted symbol line into a proper C declaration. 6486# Some systems (esp. on ia64) link data and code symbols differently, 6487# so use this general approach. 6488lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6489$lt_cdecl_hook\ 6490" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6491" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6492 6493# Transform an extracted symbol line into symbol name and symbol address 6494lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6495$lt_c_name_hook\ 6496" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6497" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6498 6499# Transform an extracted symbol line into symbol name with lib prefix and 6500# symbol address. 6501lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6502$lt_c_name_lib_hook\ 6503" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6504" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6505" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6506 6507# Handle CRLF in mingw tool chain 6508opt_cr= 6509case $build_os in 6510mingw*) 6511 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6512 ;; 6513esac 6514 6515# Try without a prefix underscore, then with it. 6516for ac_symprfx in "" "_"; do 6517 6518 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6519 symxfrm="\\1 $ac_symprfx\\2 \\2" 6520 6521 # Write the raw and C identifiers. 6522 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6523 # Fake it for dumpbin and say T for any non-static function, 6524 # D for any global variable and I for any imported variable. 6525 # Also find C++ and __fastcall symbols from MSVC++, 6526 # which start with @ or ?. 6527 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6528" {last_section=section; section=\$ 3};"\ 6529" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6530" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6531" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6532" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6533" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6534" \$ 0!~/External *\|/{next};"\ 6535" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6536" {if(hide[section]) next};"\ 6537" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6538" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6539" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6540" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6541" ' prfx=^$ac_symprfx" 6542 else 6543 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6544 fi 6545 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6546 6547 # Check to see that the pipe works correctly. 6548 pipe_works=no 6549 6550 rm -f conftest* 6551 cat > conftest.$ac_ext <<_LT_EOF 6552#ifdef __cplusplus 6553extern "C" { 6554#endif 6555char nm_test_var; 6556void nm_test_func(void); 6557void nm_test_func(void){} 6558#ifdef __cplusplus 6559} 6560#endif 6561int main(){nm_test_var='a';nm_test_func();return(0);} 6562_LT_EOF 6563 6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6565 (eval $ac_compile) 2>&5 6566 ac_status=$? 6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6568 test $ac_status = 0; }; then 6569 # Now try to grab the symbols. 6570 nlist=conftest.nm 6571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6572 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6573 ac_status=$? 6574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6575 test $ac_status = 0; } && test -s "$nlist"; then 6576 # Try sorting and uniquifying the output. 6577 if sort "$nlist" | uniq > "$nlist"T; then 6578 mv -f "$nlist"T "$nlist" 6579 else 6580 rm -f "$nlist"T 6581 fi 6582 6583 # Make sure that we snagged all the symbols we need. 6584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6586 cat <<_LT_EOF > conftest.$ac_ext 6587/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6588#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6589/* DATA imports from DLLs on WIN32 can't be const, because runtime 6590 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6591# define LT_DLSYM_CONST 6592#elif defined __osf__ 6593/* This system does not cope well with relocations in const data. */ 6594# define LT_DLSYM_CONST 6595#else 6596# define LT_DLSYM_CONST const 6597#endif 6598 6599#ifdef __cplusplus 6600extern "C" { 6601#endif 6602 6603_LT_EOF 6604 # Now generate the symbol file. 6605 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6606 6607 cat <<_LT_EOF >> conftest.$ac_ext 6608 6609/* The mapping between symbol names and symbols. */ 6610LT_DLSYM_CONST struct { 6611 const char *name; 6612 void *address; 6613} 6614lt__PROGRAM__LTX_preloaded_symbols[] = 6615{ 6616 { "@PROGRAM@", (void *) 0 }, 6617_LT_EOF 6618 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6619 cat <<\_LT_EOF >> conftest.$ac_ext 6620 {0, (void *) 0} 6621}; 6622 6623/* This works around a problem in FreeBSD linker */ 6624#ifdef FREEBSD_WORKAROUND 6625static const void *lt_preloaded_setup() { 6626 return lt__PROGRAM__LTX_preloaded_symbols; 6627} 6628#endif 6629 6630#ifdef __cplusplus 6631} 6632#endif 6633_LT_EOF 6634 # Now try linking the two files. 6635 mv conftest.$ac_objext conftstm.$ac_objext 6636 lt_globsym_save_LIBS=$LIBS 6637 lt_globsym_save_CFLAGS=$CFLAGS 6638 LIBS=conftstm.$ac_objext 6639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6641 (eval $ac_link) 2>&5 6642 ac_status=$? 6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6644 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6645 pipe_works=yes 6646 fi 6647 LIBS=$lt_globsym_save_LIBS 6648 CFLAGS=$lt_globsym_save_CFLAGS 6649 else 6650 echo "cannot find nm_test_func in $nlist" >&5 6651 fi 6652 else 6653 echo "cannot find nm_test_var in $nlist" >&5 6654 fi 6655 else 6656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6657 fi 6658 else 6659 echo "$progname: failed program was:" >&5 6660 cat conftest.$ac_ext >&5 6661 fi 6662 rm -rf conftest* conftst* 6663 6664 # Do not use the global_symbol_pipe unless it works. 6665 if test yes = "$pipe_works"; then 6666 break 6667 else 6668 lt_cv_sys_global_symbol_pipe= 6669 fi 6670done 6671 6672fi 6673 6674if test -z "$lt_cv_sys_global_symbol_pipe"; then 6675 lt_cv_sys_global_symbol_to_cdecl= 6676fi 6677if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6679$as_echo "failed" >&6; } 6680else 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6682$as_echo "ok" >&6; } 6683fi 6684 6685# Response file support. 6686if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6687 nm_file_list_spec='@' 6688elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6689 nm_file_list_spec='@' 6690fi 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6729$as_echo_n "checking for sysroot... " >&6; } 6730 6731# Check whether --with-sysroot was given. 6732if test "${with_sysroot+set}" = set; then : 6733 withval=$with_sysroot; 6734else 6735 with_sysroot=no 6736fi 6737 6738 6739lt_sysroot= 6740case $with_sysroot in #( 6741 yes) 6742 if test yes = "$GCC"; then 6743 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6744 fi 6745 ;; #( 6746 /*) 6747 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6748 ;; #( 6749 no|'') 6750 ;; #( 6751 *) 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6753$as_echo "$with_sysroot" >&6; } 6754 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6755 ;; 6756esac 6757 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6759$as_echo "${lt_sysroot:-no}" >&6; } 6760 6761 6762 6763 6764 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6766$as_echo_n "checking for a working dd... " >&6; } 6767if ${ac_cv_path_lt_DD+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 printf 0123456789abcdef0123456789abcdef >conftest.i 6771cat conftest.i conftest.i >conftest2.i 6772: ${lt_DD:=$DD} 6773if test -z "$lt_DD"; then 6774 ac_path_lt_DD_found=false 6775 # Loop through the user's path and test for each of PROGNAME-LIST 6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777for as_dir in $PATH 6778do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_prog in dd; do 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6784 as_fn_executable_p "$ac_path_lt_DD" || continue 6785if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6786 cmp -s conftest.i conftest.out \ 6787 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6788fi 6789 $ac_path_lt_DD_found && break 3 6790 done 6791 done 6792 done 6793IFS=$as_save_IFS 6794 if test -z "$ac_cv_path_lt_DD"; then 6795 : 6796 fi 6797else 6798 ac_cv_path_lt_DD=$lt_DD 6799fi 6800 6801rm -f conftest.i conftest2.i conftest.out 6802fi 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6804$as_echo "$ac_cv_path_lt_DD" >&6; } 6805 6806 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6808$as_echo_n "checking how to truncate binary pipes... " >&6; } 6809if ${lt_cv_truncate_bin+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 printf 0123456789abcdef0123456789abcdef >conftest.i 6813cat conftest.i conftest.i >conftest2.i 6814lt_cv_truncate_bin= 6815if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6816 cmp -s conftest.i conftest.out \ 6817 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6818fi 6819rm -f conftest.i conftest2.i conftest.out 6820test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6821fi 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6823$as_echo "$lt_cv_truncate_bin" >&6; } 6824 6825 6826 6827 6828 6829 6830 6831# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6832func_cc_basename () 6833{ 6834 for cc_temp in $*""; do 6835 case $cc_temp in 6836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6838 \-*) ;; 6839 *) break;; 6840 esac 6841 done 6842 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6843} 6844 6845# Check whether --enable-libtool-lock was given. 6846if test "${enable_libtool_lock+set}" = set; then : 6847 enableval=$enable_libtool_lock; 6848fi 6849 6850test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6851 6852# Some flags need to be propagated to the compiler or linker for good 6853# libtool support. 6854case $host in 6855ia64-*-hpux*) 6856 # Find out what ABI is being produced by ac_compile, and set mode 6857 # options accordingly. 6858 echo 'int i;' > conftest.$ac_ext 6859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6860 (eval $ac_compile) 2>&5 6861 ac_status=$? 6862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6863 test $ac_status = 0; }; then 6864 case `/usr/bin/file conftest.$ac_objext` in 6865 *ELF-32*) 6866 HPUX_IA64_MODE=32 6867 ;; 6868 *ELF-64*) 6869 HPUX_IA64_MODE=64 6870 ;; 6871 esac 6872 fi 6873 rm -rf conftest* 6874 ;; 6875*-*-irix6*) 6876 # Find out what ABI is being produced by ac_compile, and set linker 6877 # options accordingly. 6878 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6880 (eval $ac_compile) 2>&5 6881 ac_status=$? 6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6883 test $ac_status = 0; }; then 6884 if test yes = "$lt_cv_prog_gnu_ld"; then 6885 case `/usr/bin/file conftest.$ac_objext` in 6886 *32-bit*) 6887 LD="${LD-ld} -melf32bsmip" 6888 ;; 6889 *N32*) 6890 LD="${LD-ld} -melf32bmipn32" 6891 ;; 6892 *64-bit*) 6893 LD="${LD-ld} -melf64bmip" 6894 ;; 6895 esac 6896 else 6897 case `/usr/bin/file conftest.$ac_objext` in 6898 *32-bit*) 6899 LD="${LD-ld} -32" 6900 ;; 6901 *N32*) 6902 LD="${LD-ld} -n32" 6903 ;; 6904 *64-bit*) 6905 LD="${LD-ld} -64" 6906 ;; 6907 esac 6908 fi 6909 fi 6910 rm -rf conftest* 6911 ;; 6912 6913mips64*-*linux*) 6914 # Find out what ABI is being produced by ac_compile, and set linker 6915 # options accordingly. 6916 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6918 (eval $ac_compile) 2>&5 6919 ac_status=$? 6920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6921 test $ac_status = 0; }; then 6922 emul=elf 6923 case `/usr/bin/file conftest.$ac_objext` in 6924 *32-bit*) 6925 emul="${emul}32" 6926 ;; 6927 *64-bit*) 6928 emul="${emul}64" 6929 ;; 6930 esac 6931 case `/usr/bin/file conftest.$ac_objext` in 6932 *MSB*) 6933 emul="${emul}btsmip" 6934 ;; 6935 *LSB*) 6936 emul="${emul}ltsmip" 6937 ;; 6938 esac 6939 case `/usr/bin/file conftest.$ac_objext` in 6940 *N32*) 6941 emul="${emul}n32" 6942 ;; 6943 esac 6944 LD="${LD-ld} -m $emul" 6945 fi 6946 rm -rf conftest* 6947 ;; 6948 6949x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6950s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6951 # Find out what ABI is being produced by ac_compile, and set linker 6952 # options accordingly. Note that the listed cases only cover the 6953 # situations where additional linker options are needed (such as when 6954 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6955 # vice versa); the common cases where no linker options are needed do 6956 # not appear in the list. 6957 echo 'int i;' > conftest.$ac_ext 6958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6959 (eval $ac_compile) 2>&5 6960 ac_status=$? 6961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6962 test $ac_status = 0; }; then 6963 case `/usr/bin/file conftest.o` in 6964 *32-bit*) 6965 case $host in 6966 x86_64-*kfreebsd*-gnu) 6967 LD="${LD-ld} -m elf_i386_fbsd" 6968 ;; 6969 x86_64-*linux*) 6970 case `/usr/bin/file conftest.o` in 6971 *x86-64*) 6972 LD="${LD-ld} -m elf32_x86_64" 6973 ;; 6974 *) 6975 LD="${LD-ld} -m elf_i386" 6976 ;; 6977 esac 6978 ;; 6979 powerpc64le-*linux*) 6980 LD="${LD-ld} -m elf32lppclinux" 6981 ;; 6982 powerpc64-*linux*) 6983 LD="${LD-ld} -m elf32ppclinux" 6984 ;; 6985 s390x-*linux*) 6986 LD="${LD-ld} -m elf_s390" 6987 ;; 6988 sparc64-*linux*) 6989 LD="${LD-ld} -m elf32_sparc" 6990 ;; 6991 esac 6992 ;; 6993 *64-bit*) 6994 case $host in 6995 x86_64-*kfreebsd*-gnu) 6996 LD="${LD-ld} -m elf_x86_64_fbsd" 6997 ;; 6998 x86_64-*linux*) 6999 LD="${LD-ld} -m elf_x86_64" 7000 ;; 7001 powerpcle-*linux*) 7002 LD="${LD-ld} -m elf64lppc" 7003 ;; 7004 powerpc-*linux*) 7005 LD="${LD-ld} -m elf64ppc" 7006 ;; 7007 s390*-*linux*|s390*-*tpf*) 7008 LD="${LD-ld} -m elf64_s390" 7009 ;; 7010 sparc*-*linux*) 7011 LD="${LD-ld} -m elf64_sparc" 7012 ;; 7013 esac 7014 ;; 7015 esac 7016 fi 7017 rm -rf conftest* 7018 ;; 7019 7020*-*-sco3.2v5*) 7021 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7022 SAVE_CFLAGS=$CFLAGS 7023 CFLAGS="$CFLAGS -belf" 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7025$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7026if ${lt_cv_cc_needs_belf+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028else 7029 ac_ext=c 7030ac_cpp='$CPP $CPPFLAGS' 7031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7033ac_compiler_gnu=$ac_cv_c_compiler_gnu 7034 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037 7038int 7039main () 7040{ 7041 7042 ; 7043 return 0; 7044} 7045_ACEOF 7046if ac_fn_c_try_link "$LINENO"; then : 7047 lt_cv_cc_needs_belf=yes 7048else 7049 lt_cv_cc_needs_belf=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext \ 7052 conftest$ac_exeext conftest.$ac_ext 7053 ac_ext=c 7054ac_cpp='$CPP $CPPFLAGS' 7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7057ac_compiler_gnu=$ac_cv_c_compiler_gnu 7058 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7061$as_echo "$lt_cv_cc_needs_belf" >&6; } 7062 if test yes != "$lt_cv_cc_needs_belf"; then 7063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7064 CFLAGS=$SAVE_CFLAGS 7065 fi 7066 ;; 7067*-*solaris*) 7068 # Find out what ABI is being produced by ac_compile, and set linker 7069 # options accordingly. 7070 echo 'int i;' > conftest.$ac_ext 7071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7072 (eval $ac_compile) 2>&5 7073 ac_status=$? 7074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7075 test $ac_status = 0; }; then 7076 case `/usr/bin/file conftest.o` in 7077 *64-bit*) 7078 case $lt_cv_prog_gnu_ld in 7079 yes*) 7080 case $host in 7081 i?86-*-solaris*|x86_64-*-solaris*) 7082 LD="${LD-ld} -m elf_x86_64" 7083 ;; 7084 sparc*-*-solaris*) 7085 LD="${LD-ld} -m elf64_sparc" 7086 ;; 7087 esac 7088 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7089 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7090 LD=${LD-ld}_sol2 7091 fi 7092 ;; 7093 *) 7094 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7095 LD="${LD-ld} -64" 7096 fi 7097 ;; 7098 esac 7099 ;; 7100 esac 7101 fi 7102 rm -rf conftest* 7103 ;; 7104esac 7105 7106need_locks=$enable_libtool_lock 7107 7108if test -n "$ac_tool_prefix"; then 7109 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7110set dummy ${ac_tool_prefix}mt; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$MANIFEST_TOOL"; then 7117 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7137if test -n "$MANIFEST_TOOL"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7139$as_echo "$MANIFEST_TOOL" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 7146fi 7147if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7148 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7149 # Extract the first word of "mt", so it can be a program name with args. 7150set dummy mt; ac_word=$2 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7152$as_echo_n "checking for $ac_word... " >&6; } 7153if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 if test -n "$ac_ct_MANIFEST_TOOL"; then 7157 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7158else 7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7160for as_dir in $PATH 7161do 7162 IFS=$as_save_IFS 7163 test -z "$as_dir" && as_dir=. 7164 for ac_exec_ext in '' $ac_executable_extensions; do 7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7166 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7168 break 2 7169 fi 7170done 7171 done 7172IFS=$as_save_IFS 7173 7174fi 7175fi 7176ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7177if test -n "$ac_ct_MANIFEST_TOOL"; then 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7179$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7180else 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7182$as_echo "no" >&6; } 7183fi 7184 7185 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7186 MANIFEST_TOOL=":" 7187 else 7188 case $cross_compiling:$ac_tool_warned in 7189yes:) 7190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7192ac_tool_warned=yes ;; 7193esac 7194 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7195 fi 7196else 7197 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7198fi 7199 7200test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7202$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7203if ${lt_cv_path_mainfest_tool+:} false; then : 7204 $as_echo_n "(cached) " >&6 7205else 7206 lt_cv_path_mainfest_tool=no 7207 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7208 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7209 cat conftest.err >&5 7210 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7211 lt_cv_path_mainfest_tool=yes 7212 fi 7213 rm -f conftest* 7214fi 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7216$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7217if test yes != "$lt_cv_path_mainfest_tool"; then 7218 MANIFEST_TOOL=: 7219fi 7220 7221 7222 7223 7224 7225 7226 case $host_os in 7227 rhapsody* | darwin*) 7228 if test -n "$ac_tool_prefix"; then 7229 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7230set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7232$as_echo_n "checking for $ac_word... " >&6; } 7233if ${ac_cv_prog_DSYMUTIL+:} false; then : 7234 $as_echo_n "(cached) " >&6 7235else 7236 if test -n "$DSYMUTIL"; then 7237 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7238else 7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7240for as_dir in $PATH 7241do 7242 IFS=$as_save_IFS 7243 test -z "$as_dir" && as_dir=. 7244 for ac_exec_ext in '' $ac_executable_extensions; do 7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7246 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7248 break 2 7249 fi 7250done 7251 done 7252IFS=$as_save_IFS 7253 7254fi 7255fi 7256DSYMUTIL=$ac_cv_prog_DSYMUTIL 7257if test -n "$DSYMUTIL"; then 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7259$as_echo "$DSYMUTIL" >&6; } 7260else 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7262$as_echo "no" >&6; } 7263fi 7264 7265 7266fi 7267if test -z "$ac_cv_prog_DSYMUTIL"; then 7268 ac_ct_DSYMUTIL=$DSYMUTIL 7269 # Extract the first word of "dsymutil", so it can be a program name with args. 7270set dummy dsymutil; ac_word=$2 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7272$as_echo_n "checking for $ac_word... " >&6; } 7273if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 if test -n "$ac_ct_DSYMUTIL"; then 7277 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7278else 7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7280for as_dir in $PATH 7281do 7282 IFS=$as_save_IFS 7283 test -z "$as_dir" && as_dir=. 7284 for ac_exec_ext in '' $ac_executable_extensions; do 7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7286 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7288 break 2 7289 fi 7290done 7291 done 7292IFS=$as_save_IFS 7293 7294fi 7295fi 7296ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7297if test -n "$ac_ct_DSYMUTIL"; then 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7299$as_echo "$ac_ct_DSYMUTIL" >&6; } 7300else 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7302$as_echo "no" >&6; } 7303fi 7304 7305 if test "x$ac_ct_DSYMUTIL" = x; then 7306 DSYMUTIL=":" 7307 else 7308 case $cross_compiling:$ac_tool_warned in 7309yes:) 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7312ac_tool_warned=yes ;; 7313esac 7314 DSYMUTIL=$ac_ct_DSYMUTIL 7315 fi 7316else 7317 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7318fi 7319 7320 if test -n "$ac_tool_prefix"; then 7321 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7322set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7324$as_echo_n "checking for $ac_word... " >&6; } 7325if ${ac_cv_prog_NMEDIT+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327else 7328 if test -n "$NMEDIT"; then 7329 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7330else 7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7332for as_dir in $PATH 7333do 7334 IFS=$as_save_IFS 7335 test -z "$as_dir" && as_dir=. 7336 for ac_exec_ext in '' $ac_executable_extensions; do 7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7338 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7340 break 2 7341 fi 7342done 7343 done 7344IFS=$as_save_IFS 7345 7346fi 7347fi 7348NMEDIT=$ac_cv_prog_NMEDIT 7349if test -n "$NMEDIT"; then 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7351$as_echo "$NMEDIT" >&6; } 7352else 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7354$as_echo "no" >&6; } 7355fi 7356 7357 7358fi 7359if test -z "$ac_cv_prog_NMEDIT"; then 7360 ac_ct_NMEDIT=$NMEDIT 7361 # Extract the first word of "nmedit", so it can be a program name with args. 7362set dummy nmedit; ac_word=$2 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7364$as_echo_n "checking for $ac_word... " >&6; } 7365if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 if test -n "$ac_ct_NMEDIT"; then 7369 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7370else 7371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7372for as_dir in $PATH 7373do 7374 IFS=$as_save_IFS 7375 test -z "$as_dir" && as_dir=. 7376 for ac_exec_ext in '' $ac_executable_extensions; do 7377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7378 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7380 break 2 7381 fi 7382done 7383 done 7384IFS=$as_save_IFS 7385 7386fi 7387fi 7388ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7389if test -n "$ac_ct_NMEDIT"; then 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7391$as_echo "$ac_ct_NMEDIT" >&6; } 7392else 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7394$as_echo "no" >&6; } 7395fi 7396 7397 if test "x$ac_ct_NMEDIT" = x; then 7398 NMEDIT=":" 7399 else 7400 case $cross_compiling:$ac_tool_warned in 7401yes:) 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7404ac_tool_warned=yes ;; 7405esac 7406 NMEDIT=$ac_ct_NMEDIT 7407 fi 7408else 7409 NMEDIT="$ac_cv_prog_NMEDIT" 7410fi 7411 7412 if test -n "$ac_tool_prefix"; then 7413 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7414set dummy ${ac_tool_prefix}lipo; ac_word=$2 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7416$as_echo_n "checking for $ac_word... " >&6; } 7417if ${ac_cv_prog_LIPO+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 if test -n "$LIPO"; then 7421 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7422else 7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7424for as_dir in $PATH 7425do 7426 IFS=$as_save_IFS 7427 test -z "$as_dir" && as_dir=. 7428 for ac_exec_ext in '' $ac_executable_extensions; do 7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7430 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7432 break 2 7433 fi 7434done 7435 done 7436IFS=$as_save_IFS 7437 7438fi 7439fi 7440LIPO=$ac_cv_prog_LIPO 7441if test -n "$LIPO"; then 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7443$as_echo "$LIPO" >&6; } 7444else 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7446$as_echo "no" >&6; } 7447fi 7448 7449 7450fi 7451if test -z "$ac_cv_prog_LIPO"; then 7452 ac_ct_LIPO=$LIPO 7453 # Extract the first word of "lipo", so it can be a program name with args. 7454set dummy lipo; ac_word=$2 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7456$as_echo_n "checking for $ac_word... " >&6; } 7457if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 if test -n "$ac_ct_LIPO"; then 7461 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7462else 7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7464for as_dir in $PATH 7465do 7466 IFS=$as_save_IFS 7467 test -z "$as_dir" && as_dir=. 7468 for ac_exec_ext in '' $ac_executable_extensions; do 7469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7470 ac_cv_prog_ac_ct_LIPO="lipo" 7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7472 break 2 7473 fi 7474done 7475 done 7476IFS=$as_save_IFS 7477 7478fi 7479fi 7480ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7481if test -n "$ac_ct_LIPO"; then 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7483$as_echo "$ac_ct_LIPO" >&6; } 7484else 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486$as_echo "no" >&6; } 7487fi 7488 7489 if test "x$ac_ct_LIPO" = x; then 7490 LIPO=":" 7491 else 7492 case $cross_compiling:$ac_tool_warned in 7493yes:) 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7496ac_tool_warned=yes ;; 7497esac 7498 LIPO=$ac_ct_LIPO 7499 fi 7500else 7501 LIPO="$ac_cv_prog_LIPO" 7502fi 7503 7504 if test -n "$ac_tool_prefix"; then 7505 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7506set dummy ${ac_tool_prefix}otool; ac_word=$2 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7508$as_echo_n "checking for $ac_word... " >&6; } 7509if ${ac_cv_prog_OTOOL+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 if test -n "$OTOOL"; then 7513 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7514else 7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516for as_dir in $PATH 7517do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7522 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526done 7527 done 7528IFS=$as_save_IFS 7529 7530fi 7531fi 7532OTOOL=$ac_cv_prog_OTOOL 7533if test -n "$OTOOL"; then 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7535$as_echo "$OTOOL" >&6; } 7536else 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7538$as_echo "no" >&6; } 7539fi 7540 7541 7542fi 7543if test -z "$ac_cv_prog_OTOOL"; then 7544 ac_ct_OTOOL=$OTOOL 7545 # Extract the first word of "otool", so it can be a program name with args. 7546set dummy otool; ac_word=$2 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548$as_echo_n "checking for $ac_word... " >&6; } 7549if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551else 7552 if test -n "$ac_ct_OTOOL"; then 7553 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7562 ac_cv_prog_ac_ct_OTOOL="otool" 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567 done 7568IFS=$as_save_IFS 7569 7570fi 7571fi 7572ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7573if test -n "$ac_ct_OTOOL"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7575$as_echo "$ac_ct_OTOOL" >&6; } 7576else 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7578$as_echo "no" >&6; } 7579fi 7580 7581 if test "x$ac_ct_OTOOL" = x; then 7582 OTOOL=":" 7583 else 7584 case $cross_compiling:$ac_tool_warned in 7585yes:) 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7588ac_tool_warned=yes ;; 7589esac 7590 OTOOL=$ac_ct_OTOOL 7591 fi 7592else 7593 OTOOL="$ac_cv_prog_OTOOL" 7594fi 7595 7596 if test -n "$ac_tool_prefix"; then 7597 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7598set dummy ${ac_tool_prefix}otool64; ac_word=$2 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7600$as_echo_n "checking for $ac_word... " >&6; } 7601if ${ac_cv_prog_OTOOL64+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 if test -n "$OTOOL64"; then 7605 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7606else 7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7608for as_dir in $PATH 7609do 7610 IFS=$as_save_IFS 7611 test -z "$as_dir" && as_dir=. 7612 for ac_exec_ext in '' $ac_executable_extensions; do 7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7614 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7616 break 2 7617 fi 7618done 7619 done 7620IFS=$as_save_IFS 7621 7622fi 7623fi 7624OTOOL64=$ac_cv_prog_OTOOL64 7625if test -n "$OTOOL64"; then 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7627$as_echo "$OTOOL64" >&6; } 7628else 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7630$as_echo "no" >&6; } 7631fi 7632 7633 7634fi 7635if test -z "$ac_cv_prog_OTOOL64"; then 7636 ac_ct_OTOOL64=$OTOOL64 7637 # Extract the first word of "otool64", so it can be a program name with args. 7638set dummy otool64; ac_word=$2 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640$as_echo_n "checking for $ac_word... " >&6; } 7641if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 if test -n "$ac_ct_OTOOL64"; then 7645 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7646else 7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648for as_dir in $PATH 7649do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7654 ac_cv_prog_ac_ct_OTOOL64="otool64" 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7665if test -n "$ac_ct_OTOOL64"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7667$as_echo "$ac_ct_OTOOL64" >&6; } 7668else 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670$as_echo "no" >&6; } 7671fi 7672 7673 if test "x$ac_ct_OTOOL64" = x; then 7674 OTOOL64=":" 7675 else 7676 case $cross_compiling:$ac_tool_warned in 7677yes:) 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7680ac_tool_warned=yes ;; 7681esac 7682 OTOOL64=$ac_ct_OTOOL64 7683 fi 7684else 7685 OTOOL64="$ac_cv_prog_OTOOL64" 7686fi 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7715$as_echo_n "checking for -single_module linker flag... " >&6; } 7716if ${lt_cv_apple_cc_single_mod+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718else 7719 lt_cv_apple_cc_single_mod=no 7720 if test -z "$LT_MULTI_MODULE"; then 7721 # By default we will add the -single_module flag. You can override 7722 # by either setting the environment variable LT_MULTI_MODULE 7723 # non-empty at configure time, or by adding -multi_module to the 7724 # link flags. 7725 rm -rf libconftest.dylib* 7726 echo "int foo(void){return 1;}" > conftest.c 7727 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7728-dynamiclib -Wl,-single_module conftest.c" >&5 7729 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7730 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7731 _lt_result=$? 7732 # If there is a non-empty error log, and "single_module" 7733 # appears in it, assume the flag caused a linker warning 7734 if test -s conftest.err && $GREP single_module conftest.err; then 7735 cat conftest.err >&5 7736 # Otherwise, if the output was created with a 0 exit code from 7737 # the compiler, it worked. 7738 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7739 lt_cv_apple_cc_single_mod=yes 7740 else 7741 cat conftest.err >&5 7742 fi 7743 rm -rf libconftest.dylib* 7744 rm -f conftest.* 7745 fi 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7748$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7749 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7751$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7752if ${lt_cv_ld_exported_symbols_list+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 lt_cv_ld_exported_symbols_list=no 7756 save_LDFLAGS=$LDFLAGS 7757 echo "_main" > conftest.sym 7758 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761 7762int 7763main () 7764{ 7765 7766 ; 7767 return 0; 7768} 7769_ACEOF 7770if ac_fn_c_try_link "$LINENO"; then : 7771 lt_cv_ld_exported_symbols_list=yes 7772else 7773 lt_cv_ld_exported_symbols_list=no 7774fi 7775rm -f core conftest.err conftest.$ac_objext \ 7776 conftest$ac_exeext conftest.$ac_ext 7777 LDFLAGS=$save_LDFLAGS 7778 7779fi 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7781$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7782 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7784$as_echo_n "checking for -force_load linker flag... " >&6; } 7785if ${lt_cv_ld_force_load+:} false; then : 7786 $as_echo_n "(cached) " >&6 7787else 7788 lt_cv_ld_force_load=no 7789 cat > conftest.c << _LT_EOF 7790int forced_loaded() { return 2;} 7791_LT_EOF 7792 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7793 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7794 echo "$AR cru libconftest.a conftest.o" >&5 7795 $AR cru libconftest.a conftest.o 2>&5 7796 echo "$RANLIB libconftest.a" >&5 7797 $RANLIB libconftest.a 2>&5 7798 cat > conftest.c << _LT_EOF 7799int main() { return 0;} 7800_LT_EOF 7801 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7802 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7803 _lt_result=$? 7804 if test -s conftest.err && $GREP force_load conftest.err; then 7805 cat conftest.err >&5 7806 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7807 lt_cv_ld_force_load=yes 7808 else 7809 cat conftest.err >&5 7810 fi 7811 rm -f conftest.err libconftest.a conftest conftest.c 7812 rm -rf conftest.dSYM 7813 7814fi 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7816$as_echo "$lt_cv_ld_force_load" >&6; } 7817 case $host_os in 7818 rhapsody* | darwin1.[012]) 7819 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7820 darwin1.*) 7821 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7822 darwin*) # darwin 5.x on 7823 # if running on 10.5 or later, the deployment target defaults 7824 # to the OS version, if on x86, and 10.4, the deployment 7825 # target defaults to 10.4. Don't you love it? 7826 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7827 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7828 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7829 10.[012][,.]*) 7830 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7831 10.*) 7832 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7833 esac 7834 ;; 7835 esac 7836 if test yes = "$lt_cv_apple_cc_single_mod"; then 7837 _lt_dar_single_mod='$single_module' 7838 fi 7839 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7840 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7841 else 7842 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7843 fi 7844 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7845 _lt_dsymutil='~$DSYMUTIL $lib || :' 7846 else 7847 _lt_dsymutil= 7848 fi 7849 ;; 7850 esac 7851 7852# func_munge_path_list VARIABLE PATH 7853# ----------------------------------- 7854# VARIABLE is name of variable containing _space_ separated list of 7855# directories to be munged by the contents of PATH, which is string 7856# having a format: 7857# "DIR[:DIR]:" 7858# string "DIR[ DIR]" will be prepended to VARIABLE 7859# ":DIR[:DIR]" 7860# string "DIR[ DIR]" will be appended to VARIABLE 7861# "DIRP[:DIRP]::[DIRA:]DIRA" 7862# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7863# "DIRA[ DIRA]" will be appended to VARIABLE 7864# "DIR[:DIR]" 7865# VARIABLE will be replaced by "DIR[ DIR]" 7866func_munge_path_list () 7867{ 7868 case x$2 in 7869 x) 7870 ;; 7871 *:) 7872 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7873 ;; 7874 x:*) 7875 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7876 ;; 7877 *::*) 7878 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7879 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7880 ;; 7881 *) 7882 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7883 ;; 7884 esac 7885} 7886 7887ac_ext=c 7888ac_cpp='$CPP $CPPFLAGS' 7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7891ac_compiler_gnu=$ac_cv_c_compiler_gnu 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7893$as_echo_n "checking how to run the C preprocessor... " >&6; } 7894# On Suns, sometimes $CPP names a directory. 7895if test -n "$CPP" && test -d "$CPP"; then 7896 CPP= 7897fi 7898if test -z "$CPP"; then 7899 if ${ac_cv_prog_CPP+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 # Double quotes because CPP needs to be expanded 7903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7904 do 7905 ac_preproc_ok=false 7906for ac_c_preproc_warn_flag in '' yes 7907do 7908 # Use a header file that comes with gcc, so configuring glibc 7909 # with a fresh cross-compiler works. 7910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7911 # <limits.h> exists even on freestanding compilers. 7912 # On the NeXT, cc -E runs the code through the compiler's parser, 7913 # not just through cpp. "Syntax error" is here to catch this case. 7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7915/* end confdefs.h. */ 7916#ifdef __STDC__ 7917# include <limits.h> 7918#else 7919# include <assert.h> 7920#endif 7921 Syntax error 7922_ACEOF 7923if ac_fn_c_try_cpp "$LINENO"; then : 7924 7925else 7926 # Broken: fails on valid input. 7927continue 7928fi 7929rm -f conftest.err conftest.i conftest.$ac_ext 7930 7931 # OK, works on sane cases. Now check whether nonexistent headers 7932 # can be detected and how. 7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7934/* end confdefs.h. */ 7935#include <ac_nonexistent.h> 7936_ACEOF 7937if ac_fn_c_try_cpp "$LINENO"; then : 7938 # Broken: success on invalid input. 7939continue 7940else 7941 # Passes both tests. 7942ac_preproc_ok=: 7943break 7944fi 7945rm -f conftest.err conftest.i conftest.$ac_ext 7946 7947done 7948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7949rm -f conftest.i conftest.err conftest.$ac_ext 7950if $ac_preproc_ok; then : 7951 break 7952fi 7953 7954 done 7955 ac_cv_prog_CPP=$CPP 7956 7957fi 7958 CPP=$ac_cv_prog_CPP 7959else 7960 ac_cv_prog_CPP=$CPP 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7963$as_echo "$CPP" >&6; } 7964ac_preproc_ok=false 7965for ac_c_preproc_warn_flag in '' yes 7966do 7967 # Use a header file that comes with gcc, so configuring glibc 7968 # with a fresh cross-compiler works. 7969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7970 # <limits.h> exists even on freestanding compilers. 7971 # On the NeXT, cc -E runs the code through the compiler's parser, 7972 # not just through cpp. "Syntax error" is here to catch this case. 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974/* end confdefs.h. */ 7975#ifdef __STDC__ 7976# include <limits.h> 7977#else 7978# include <assert.h> 7979#endif 7980 Syntax error 7981_ACEOF 7982if ac_fn_c_try_cpp "$LINENO"; then : 7983 7984else 7985 # Broken: fails on valid input. 7986continue 7987fi 7988rm -f conftest.err conftest.i conftest.$ac_ext 7989 7990 # OK, works on sane cases. Now check whether nonexistent headers 7991 # can be detected and how. 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994#include <ac_nonexistent.h> 7995_ACEOF 7996if ac_fn_c_try_cpp "$LINENO"; then : 7997 # Broken: success on invalid input. 7998continue 7999else 8000 # Passes both tests. 8001ac_preproc_ok=: 8002break 8003fi 8004rm -f conftest.err conftest.i conftest.$ac_ext 8005 8006done 8007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8008rm -f conftest.i conftest.err conftest.$ac_ext 8009if $ac_preproc_ok; then : 8010 8011else 8012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8014as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8015See \`config.log' for more details" "$LINENO" 5; } 8016fi 8017 8018ac_ext=c 8019ac_cpp='$CPP $CPPFLAGS' 8020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8022ac_compiler_gnu=$ac_cv_c_compiler_gnu 8023 8024 8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8026$as_echo_n "checking for ANSI C header files... " >&6; } 8027if ${ac_cv_header_stdc+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029else 8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8031/* end confdefs.h. */ 8032#include <stdlib.h> 8033#include <stdarg.h> 8034#include <string.h> 8035#include <float.h> 8036 8037int 8038main () 8039{ 8040 8041 ; 8042 return 0; 8043} 8044_ACEOF 8045if ac_fn_c_try_compile "$LINENO"; then : 8046 ac_cv_header_stdc=yes 8047else 8048 ac_cv_header_stdc=no 8049fi 8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8051 8052if test $ac_cv_header_stdc = yes; then 8053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055/* end confdefs.h. */ 8056#include <string.h> 8057 8058_ACEOF 8059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8060 $EGREP "memchr" >/dev/null 2>&1; then : 8061 8062else 8063 ac_cv_header_stdc=no 8064fi 8065rm -f conftest* 8066 8067fi 8068 8069if test $ac_cv_header_stdc = yes; then 8070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8072/* end confdefs.h. */ 8073#include <stdlib.h> 8074 8075_ACEOF 8076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8077 $EGREP "free" >/dev/null 2>&1; then : 8078 8079else 8080 ac_cv_header_stdc=no 8081fi 8082rm -f conftest* 8083 8084fi 8085 8086if test $ac_cv_header_stdc = yes; then 8087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8088 if test "$cross_compiling" = yes; then : 8089 : 8090else 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093#include <ctype.h> 8094#include <stdlib.h> 8095#if ((' ' & 0x0FF) == 0x020) 8096# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8097# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8098#else 8099# define ISLOWER(c) \ 8100 (('a' <= (c) && (c) <= 'i') \ 8101 || ('j' <= (c) && (c) <= 'r') \ 8102 || ('s' <= (c) && (c) <= 'z')) 8103# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8104#endif 8105 8106#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8107int 8108main () 8109{ 8110 int i; 8111 for (i = 0; i < 256; i++) 8112 if (XOR (islower (i), ISLOWER (i)) 8113 || toupper (i) != TOUPPER (i)) 8114 return 2; 8115 return 0; 8116} 8117_ACEOF 8118if ac_fn_c_try_run "$LINENO"; then : 8119 8120else 8121 ac_cv_header_stdc=no 8122fi 8123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8124 conftest.$ac_objext conftest.beam conftest.$ac_ext 8125fi 8126 8127fi 8128fi 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8130$as_echo "$ac_cv_header_stdc" >&6; } 8131if test $ac_cv_header_stdc = yes; then 8132 8133$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8134 8135fi 8136 8137# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8139 inttypes.h stdint.h unistd.h 8140do : 8141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8142ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8143" 8144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8145 cat >>confdefs.h <<_ACEOF 8146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8147_ACEOF 8148 8149fi 8150 8151done 8152 8153 8154for ac_header in dlfcn.h 8155do : 8156 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8157" 8158if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8159 cat >>confdefs.h <<_ACEOF 8160#define HAVE_DLFCN_H 1 8161_ACEOF 8162 8163fi 8164 8165done 8166 8167 8168 8169 8170func_stripname_cnf () 8171{ 8172 case $2 in 8173 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8174 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8175 esac 8176} # func_stripname_cnf 8177 8178 8179 8180 8181 8182# Set options 8183 8184 8185 8186 enable_dlopen=no 8187 8188 8189 enable_win32_dll=no 8190 8191 8192 # Check whether --enable-shared was given. 8193if test "${enable_shared+set}" = set; then : 8194 enableval=$enable_shared; p=${PACKAGE-default} 8195 case $enableval in 8196 yes) enable_shared=yes ;; 8197 no) enable_shared=no ;; 8198 *) 8199 enable_shared=no 8200 # Look at the argument we got. We use all the common list separators. 8201 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8202 for pkg in $enableval; do 8203 IFS=$lt_save_ifs 8204 if test "X$pkg" = "X$p"; then 8205 enable_shared=yes 8206 fi 8207 done 8208 IFS=$lt_save_ifs 8209 ;; 8210 esac 8211else 8212 enable_shared=yes 8213fi 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 # Check whether --enable-static was given. 8224if test "${enable_static+set}" = set; then : 8225 enableval=$enable_static; p=${PACKAGE-default} 8226 case $enableval in 8227 yes) enable_static=yes ;; 8228 no) enable_static=no ;; 8229 *) 8230 enable_static=no 8231 # Look at the argument we got. We use all the common list separators. 8232 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8233 for pkg in $enableval; do 8234 IFS=$lt_save_ifs 8235 if test "X$pkg" = "X$p"; then 8236 enable_static=yes 8237 fi 8238 done 8239 IFS=$lt_save_ifs 8240 ;; 8241 esac 8242else 8243 enable_static=yes 8244fi 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255# Check whether --with-pic was given. 8256if test "${with_pic+set}" = set; then : 8257 withval=$with_pic; lt_p=${PACKAGE-default} 8258 case $withval in 8259 yes|no) pic_mode=$withval ;; 8260 *) 8261 pic_mode=default 8262 # Look at the argument we got. We use all the common list separators. 8263 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8264 for lt_pkg in $withval; do 8265 IFS=$lt_save_ifs 8266 if test "X$lt_pkg" = "X$lt_p"; then 8267 pic_mode=yes 8268 fi 8269 done 8270 IFS=$lt_save_ifs 8271 ;; 8272 esac 8273else 8274 pic_mode=default 8275fi 8276 8277 8278 8279 8280 8281 8282 8283 8284 # Check whether --enable-fast-install was given. 8285if test "${enable_fast_install+set}" = set; then : 8286 enableval=$enable_fast_install; p=${PACKAGE-default} 8287 case $enableval in 8288 yes) enable_fast_install=yes ;; 8289 no) enable_fast_install=no ;; 8290 *) 8291 enable_fast_install=no 8292 # Look at the argument we got. We use all the common list separators. 8293 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8294 for pkg in $enableval; do 8295 IFS=$lt_save_ifs 8296 if test "X$pkg" = "X$p"; then 8297 enable_fast_install=yes 8298 fi 8299 done 8300 IFS=$lt_save_ifs 8301 ;; 8302 esac 8303else 8304 enable_fast_install=yes 8305fi 8306 8307 8308 8309 8310 8311 8312 8313 8314 shared_archive_member_spec= 8315case $host,$enable_shared in 8316power*-*-aix[5-9]*,yes) 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8318$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8319 8320# Check whether --with-aix-soname was given. 8321if test "${with_aix_soname+set}" = set; then : 8322 withval=$with_aix_soname; case $withval in 8323 aix|svr4|both) 8324 ;; 8325 *) 8326 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8327 ;; 8328 esac 8329 lt_cv_with_aix_soname=$with_aix_soname 8330else 8331 if ${lt_cv_with_aix_soname+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 lt_cv_with_aix_soname=aix 8335fi 8336 8337 with_aix_soname=$lt_cv_with_aix_soname 8338fi 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8341$as_echo "$with_aix_soname" >&6; } 8342 if test aix != "$with_aix_soname"; then 8343 # For the AIX way of multilib, we name the shared archive member 8344 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8345 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8346 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8347 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8348 if test 64 = "${OBJECT_MODE-32}"; then 8349 shared_archive_member_spec=shr_64 8350 else 8351 shared_archive_member_spec=shr 8352 fi 8353 fi 8354 ;; 8355*) 8356 with_aix_soname=aix 8357 ;; 8358esac 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369# This can be used to rebuild libtool when needed 8370LIBTOOL_DEPS=$ltmain 8371 8372# Always use our own libtool. 8373LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404test -z "$LN_S" && LN_S="ln -s" 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419if test -n "${ZSH_VERSION+set}"; then 8420 setopt NO_GLOB_SUBST 8421fi 8422 8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8424$as_echo_n "checking for objdir... " >&6; } 8425if ${lt_cv_objdir+:} false; then : 8426 $as_echo_n "(cached) " >&6 8427else 8428 rm -f .libs 2>/dev/null 8429mkdir .libs 2>/dev/null 8430if test -d .libs; then 8431 lt_cv_objdir=.libs 8432else 8433 # MS-DOS does not allow filenames that begin with a dot. 8434 lt_cv_objdir=_libs 8435fi 8436rmdir .libs 2>/dev/null 8437fi 8438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8439$as_echo "$lt_cv_objdir" >&6; } 8440objdir=$lt_cv_objdir 8441 8442 8443 8444 8445 8446cat >>confdefs.h <<_ACEOF 8447#define LT_OBJDIR "$lt_cv_objdir/" 8448_ACEOF 8449 8450 8451 8452 8453case $host_os in 8454aix3*) 8455 # AIX sometimes has problems with the GCC collect2 program. For some 8456 # reason, if we set the COLLECT_NAMES environment variable, the problems 8457 # vanish in a puff of smoke. 8458 if test set != "${COLLECT_NAMES+set}"; then 8459 COLLECT_NAMES= 8460 export COLLECT_NAMES 8461 fi 8462 ;; 8463esac 8464 8465# Global variables: 8466ofile=libtool 8467can_build_shared=yes 8468 8469# All known linkers require a '.a' archive for static linking (except MSVC, 8470# which needs '.lib'). 8471libext=a 8472 8473with_gnu_ld=$lt_cv_prog_gnu_ld 8474 8475old_CC=$CC 8476old_CFLAGS=$CFLAGS 8477 8478# Set sane defaults for various variables 8479test -z "$CC" && CC=cc 8480test -z "$LTCC" && LTCC=$CC 8481test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8482test -z "$LD" && LD=ld 8483test -z "$ac_objext" && ac_objext=o 8484 8485func_cc_basename $compiler 8486cc_basename=$func_cc_basename_result 8487 8488 8489# Only perform the check for file, if the check method requires it 8490test -z "$MAGIC_CMD" && MAGIC_CMD=file 8491case $deplibs_check_method in 8492file_magic*) 8493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8495$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8496if ${lt_cv_path_MAGIC_CMD+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498else 8499 case $MAGIC_CMD in 8500[\\/*] | ?:[\\/]*) 8501 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8502 ;; 8503*) 8504 lt_save_MAGIC_CMD=$MAGIC_CMD 8505 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8507 for ac_dir in $ac_dummy; do 8508 IFS=$lt_save_ifs 8509 test -z "$ac_dir" && ac_dir=. 8510 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8511 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8512 if test -n "$file_magic_test_file"; then 8513 case $deplibs_check_method in 8514 "file_magic "*) 8515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8516 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8518 $EGREP "$file_magic_regex" > /dev/null; then 8519 : 8520 else 8521 cat <<_LT_EOF 1>&2 8522 8523*** Warning: the command libtool uses to detect shared libraries, 8524*** $file_magic_cmd, produces output that libtool cannot recognize. 8525*** The result is that libtool may fail to recognize shared libraries 8526*** as such. This will affect the creation of libtool libraries that 8527*** depend on shared libraries, but programs linked with such libtool 8528*** libraries will work regardless of this problem. Nevertheless, you 8529*** may want to report the problem to your system manager and/or to 8530*** bug-libtool@gnu.org 8531 8532_LT_EOF 8533 fi ;; 8534 esac 8535 fi 8536 break 8537 fi 8538 done 8539 IFS=$lt_save_ifs 8540 MAGIC_CMD=$lt_save_MAGIC_CMD 8541 ;; 8542esac 8543fi 8544 8545MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8546if test -n "$MAGIC_CMD"; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8548$as_echo "$MAGIC_CMD" >&6; } 8549else 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8551$as_echo "no" >&6; } 8552fi 8553 8554 8555 8556 8557 8558if test -z "$lt_cv_path_MAGIC_CMD"; then 8559 if test -n "$ac_tool_prefix"; then 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8561$as_echo_n "checking for file... " >&6; } 8562if ${lt_cv_path_MAGIC_CMD+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564else 8565 case $MAGIC_CMD in 8566[\\/*] | ?:[\\/]*) 8567 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8568 ;; 8569*) 8570 lt_save_MAGIC_CMD=$MAGIC_CMD 8571 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8573 for ac_dir in $ac_dummy; do 8574 IFS=$lt_save_ifs 8575 test -z "$ac_dir" && ac_dir=. 8576 if test -f "$ac_dir/file"; then 8577 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8578 if test -n "$file_magic_test_file"; then 8579 case $deplibs_check_method in 8580 "file_magic "*) 8581 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8582 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8584 $EGREP "$file_magic_regex" > /dev/null; then 8585 : 8586 else 8587 cat <<_LT_EOF 1>&2 8588 8589*** Warning: the command libtool uses to detect shared libraries, 8590*** $file_magic_cmd, produces output that libtool cannot recognize. 8591*** The result is that libtool may fail to recognize shared libraries 8592*** as such. This will affect the creation of libtool libraries that 8593*** depend on shared libraries, but programs linked with such libtool 8594*** libraries will work regardless of this problem. Nevertheless, you 8595*** may want to report the problem to your system manager and/or to 8596*** bug-libtool@gnu.org 8597 8598_LT_EOF 8599 fi ;; 8600 esac 8601 fi 8602 break 8603 fi 8604 done 8605 IFS=$lt_save_ifs 8606 MAGIC_CMD=$lt_save_MAGIC_CMD 8607 ;; 8608esac 8609fi 8610 8611MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8612if test -n "$MAGIC_CMD"; then 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8614$as_echo "$MAGIC_CMD" >&6; } 8615else 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8617$as_echo "no" >&6; } 8618fi 8619 8620 8621 else 8622 MAGIC_CMD=: 8623 fi 8624fi 8625 8626 fi 8627 ;; 8628esac 8629 8630# Use C for the default configuration in the libtool script 8631 8632lt_save_CC=$CC 8633ac_ext=c 8634ac_cpp='$CPP $CPPFLAGS' 8635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8637ac_compiler_gnu=$ac_cv_c_compiler_gnu 8638 8639 8640# Source file extension for C test sources. 8641ac_ext=c 8642 8643# Object file extension for compiled C test sources. 8644objext=o 8645objext=$objext 8646 8647# Code to be used in simple compile tests 8648lt_simple_compile_test_code="int some_variable = 0;" 8649 8650# Code to be used in simple link tests 8651lt_simple_link_test_code='int main(){return(0);}' 8652 8653 8654 8655 8656 8657 8658 8659# If no C compiler was specified, use CC. 8660LTCC=${LTCC-"$CC"} 8661 8662# If no C compiler flags were specified, use CFLAGS. 8663LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8664 8665# Allow CC to be a program name with arguments. 8666compiler=$CC 8667 8668# Save the default compiler, since it gets overwritten when the other 8669# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8670compiler_DEFAULT=$CC 8671 8672# save warnings/boilerplate of simple test code 8673ac_outfile=conftest.$ac_objext 8674echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8675eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8676_lt_compiler_boilerplate=`cat conftest.err` 8677$RM conftest* 8678 8679ac_outfile=conftest.$ac_objext 8680echo "$lt_simple_link_test_code" >conftest.$ac_ext 8681eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8682_lt_linker_boilerplate=`cat conftest.err` 8683$RM -r conftest* 8684 8685 8686## CAVEAT EMPTOR: 8687## There is no encapsulation within the following macros, do not change 8688## the running order or otherwise move them around unless you know exactly 8689## what you are doing... 8690if test -n "$compiler"; then 8691 8692lt_prog_compiler_no_builtin_flag= 8693 8694if test yes = "$GCC"; then 8695 case $cc_basename in 8696 nvcc*) 8697 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8698 *) 8699 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8700 esac 8701 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8703$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8704if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 lt_cv_prog_compiler_rtti_exceptions=no 8708 ac_outfile=conftest.$ac_objext 8709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8710 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8711 # Insert the option either (1) after the last *FLAGS variable, or 8712 # (2) before a word containing "conftest.", or (3) at the end. 8713 # Note that $ac_compile itself does not contain backslashes and begins 8714 # with a dollar sign (not a hyphen), so the echo should work correctly. 8715 # The option is referenced via a variable to avoid confusing sed. 8716 lt_compile=`echo "$ac_compile" | $SED \ 8717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8719 -e 's:$: $lt_compiler_flag:'` 8720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8721 (eval "$lt_compile" 2>conftest.err) 8722 ac_status=$? 8723 cat conftest.err >&5 8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8725 if (exit $ac_status) && test -s "$ac_outfile"; then 8726 # The compiler can only warn and ignore the option if not recognized 8727 # So say no if there are warnings other than the usual output. 8728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8731 lt_cv_prog_compiler_rtti_exceptions=yes 8732 fi 8733 fi 8734 $RM conftest* 8735 8736fi 8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8738$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8739 8740if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8742else 8743 : 8744fi 8745 8746fi 8747 8748 8749 8750 8751 8752 8753 lt_prog_compiler_wl= 8754lt_prog_compiler_pic= 8755lt_prog_compiler_static= 8756 8757 8758 if test yes = "$GCC"; then 8759 lt_prog_compiler_wl='-Wl,' 8760 lt_prog_compiler_static='-static' 8761 8762 case $host_os in 8763 aix*) 8764 # All AIX code is PIC. 8765 if test ia64 = "$host_cpu"; then 8766 # AIX 5 now supports IA64 processor 8767 lt_prog_compiler_static='-Bstatic' 8768 fi 8769 lt_prog_compiler_pic='-fPIC' 8770 ;; 8771 8772 amigaos*) 8773 case $host_cpu in 8774 powerpc) 8775 # see comment about AmigaOS4 .so support 8776 lt_prog_compiler_pic='-fPIC' 8777 ;; 8778 m68k) 8779 # FIXME: we need at least 68020 code to build shared libraries, but 8780 # adding the '-m68020' flag to GCC prevents building anything better, 8781 # like '-m68040'. 8782 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8783 ;; 8784 esac 8785 ;; 8786 8787 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8788 # PIC is the default for these OSes. 8789 ;; 8790 8791 mingw* | cygwin* | pw32* | os2* | cegcc*) 8792 # This hack is so that the source file can tell whether it is being 8793 # built for inclusion in a dll (and should export symbols for example). 8794 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8795 # (--disable-auto-import) libraries 8796 lt_prog_compiler_pic='-DDLL_EXPORT' 8797 case $host_os in 8798 os2*) 8799 lt_prog_compiler_static='$wl-static' 8800 ;; 8801 esac 8802 ;; 8803 8804 darwin* | rhapsody*) 8805 # PIC is the default on this platform 8806 # Common symbols not allowed in MH_DYLIB files 8807 lt_prog_compiler_pic='-fno-common' 8808 ;; 8809 8810 haiku*) 8811 # PIC is the default for Haiku. 8812 # The "-static" flag exists, but is broken. 8813 lt_prog_compiler_static= 8814 ;; 8815 8816 hpux*) 8817 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8818 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8819 # sets the default TLS model and affects inlining. 8820 case $host_cpu in 8821 hppa*64*) 8822 # +Z the default 8823 ;; 8824 *) 8825 lt_prog_compiler_pic='-fPIC' 8826 ;; 8827 esac 8828 ;; 8829 8830 interix[3-9]*) 8831 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8832 # Instead, we relocate shared libraries at runtime. 8833 ;; 8834 8835 msdosdjgpp*) 8836 # Just because we use GCC doesn't mean we suddenly get shared libraries 8837 # on systems that don't support them. 8838 lt_prog_compiler_can_build_shared=no 8839 enable_shared=no 8840 ;; 8841 8842 *nto* | *qnx*) 8843 # QNX uses GNU C++, but need to define -shared option too, otherwise 8844 # it will coredump. 8845 lt_prog_compiler_pic='-fPIC -shared' 8846 ;; 8847 8848 sysv4*MP*) 8849 if test -d /usr/nec; then 8850 lt_prog_compiler_pic=-Kconform_pic 8851 fi 8852 ;; 8853 8854 *) 8855 lt_prog_compiler_pic='-fPIC' 8856 ;; 8857 esac 8858 8859 case $cc_basename in 8860 nvcc*) # Cuda Compiler Driver 2.2 8861 lt_prog_compiler_wl='-Xlinker ' 8862 if test -n "$lt_prog_compiler_pic"; then 8863 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8864 fi 8865 ;; 8866 esac 8867 else 8868 # PORTME Check for flag to pass linker flags through the system compiler. 8869 case $host_os in 8870 aix*) 8871 lt_prog_compiler_wl='-Wl,' 8872 if test ia64 = "$host_cpu"; then 8873 # AIX 5 now supports IA64 processor 8874 lt_prog_compiler_static='-Bstatic' 8875 else 8876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8877 fi 8878 ;; 8879 8880 darwin* | rhapsody*) 8881 # PIC is the default on this platform 8882 # Common symbols not allowed in MH_DYLIB files 8883 lt_prog_compiler_pic='-fno-common' 8884 case $cc_basename in 8885 nagfor*) 8886 # NAG Fortran compiler 8887 lt_prog_compiler_wl='-Wl,-Wl,,' 8888 lt_prog_compiler_pic='-PIC' 8889 lt_prog_compiler_static='-Bstatic' 8890 ;; 8891 esac 8892 ;; 8893 8894 mingw* | cygwin* | pw32* | os2* | cegcc*) 8895 # This hack is so that the source file can tell whether it is being 8896 # built for inclusion in a dll (and should export symbols for example). 8897 lt_prog_compiler_pic='-DDLL_EXPORT' 8898 case $host_os in 8899 os2*) 8900 lt_prog_compiler_static='$wl-static' 8901 ;; 8902 esac 8903 ;; 8904 8905 hpux9* | hpux10* | hpux11*) 8906 lt_prog_compiler_wl='-Wl,' 8907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8908 # not for PA HP-UX. 8909 case $host_cpu in 8910 hppa*64*|ia64*) 8911 # +Z the default 8912 ;; 8913 *) 8914 lt_prog_compiler_pic='+Z' 8915 ;; 8916 esac 8917 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8918 lt_prog_compiler_static='$wl-a ${wl}archive' 8919 ;; 8920 8921 irix5* | irix6* | nonstopux*) 8922 lt_prog_compiler_wl='-Wl,' 8923 # PIC (with -KPIC) is the default. 8924 lt_prog_compiler_static='-non_shared' 8925 ;; 8926 8927 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8928 case $cc_basename in 8929 # old Intel for x86_64, which still supported -KPIC. 8930 ecc*) 8931 lt_prog_compiler_wl='-Wl,' 8932 lt_prog_compiler_pic='-KPIC' 8933 lt_prog_compiler_static='-static' 8934 ;; 8935 # icc used to be incompatible with GCC. 8936 # ICC 10 doesn't accept -KPIC any more. 8937 icc* | ifort*) 8938 lt_prog_compiler_wl='-Wl,' 8939 lt_prog_compiler_pic='-fPIC' 8940 lt_prog_compiler_static='-static' 8941 ;; 8942 # Lahey Fortran 8.1. 8943 lf95*) 8944 lt_prog_compiler_wl='-Wl,' 8945 lt_prog_compiler_pic='--shared' 8946 lt_prog_compiler_static='--static' 8947 ;; 8948 nagfor*) 8949 # NAG Fortran compiler 8950 lt_prog_compiler_wl='-Wl,-Wl,,' 8951 lt_prog_compiler_pic='-PIC' 8952 lt_prog_compiler_static='-Bstatic' 8953 ;; 8954 tcc*) 8955 # Fabrice Bellard et al's Tiny C Compiler 8956 lt_prog_compiler_wl='-Wl,' 8957 lt_prog_compiler_pic='-fPIC' 8958 lt_prog_compiler_static='-static' 8959 ;; 8960 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8961 # Portland Group compilers (*not* the Pentium gcc compiler, 8962 # which looks to be a dead project) 8963 lt_prog_compiler_wl='-Wl,' 8964 lt_prog_compiler_pic='-fpic' 8965 lt_prog_compiler_static='-Bstatic' 8966 ;; 8967 ccc*) 8968 lt_prog_compiler_wl='-Wl,' 8969 # All Alpha code is PIC. 8970 lt_prog_compiler_static='-non_shared' 8971 ;; 8972 xl* | bgxl* | bgf* | mpixl*) 8973 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8974 lt_prog_compiler_wl='-Wl,' 8975 lt_prog_compiler_pic='-qpic' 8976 lt_prog_compiler_static='-qstaticlink' 8977 ;; 8978 *) 8979 case `$CC -V 2>&1 | sed 5q` in 8980 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8981 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8982 lt_prog_compiler_pic='-KPIC' 8983 lt_prog_compiler_static='-Bstatic' 8984 lt_prog_compiler_wl='' 8985 ;; 8986 *Sun\ F* | *Sun*Fortran*) 8987 lt_prog_compiler_pic='-KPIC' 8988 lt_prog_compiler_static='-Bstatic' 8989 lt_prog_compiler_wl='-Qoption ld ' 8990 ;; 8991 *Sun\ C*) 8992 # Sun C 5.9 8993 lt_prog_compiler_pic='-KPIC' 8994 lt_prog_compiler_static='-Bstatic' 8995 lt_prog_compiler_wl='-Wl,' 8996 ;; 8997 *Intel*\ [CF]*Compiler*) 8998 lt_prog_compiler_wl='-Wl,' 8999 lt_prog_compiler_pic='-fPIC' 9000 lt_prog_compiler_static='-static' 9001 ;; 9002 *Portland\ Group*) 9003 lt_prog_compiler_wl='-Wl,' 9004 lt_prog_compiler_pic='-fpic' 9005 lt_prog_compiler_static='-Bstatic' 9006 ;; 9007 esac 9008 ;; 9009 esac 9010 ;; 9011 9012 newsos6) 9013 lt_prog_compiler_pic='-KPIC' 9014 lt_prog_compiler_static='-Bstatic' 9015 ;; 9016 9017 *nto* | *qnx*) 9018 # QNX uses GNU C++, but need to define -shared option too, otherwise 9019 # it will coredump. 9020 lt_prog_compiler_pic='-fPIC -shared' 9021 ;; 9022 9023 osf3* | osf4* | osf5*) 9024 lt_prog_compiler_wl='-Wl,' 9025 # All OSF/1 code is PIC. 9026 lt_prog_compiler_static='-non_shared' 9027 ;; 9028 9029 rdos*) 9030 lt_prog_compiler_static='-non_shared' 9031 ;; 9032 9033 solaris*) 9034 lt_prog_compiler_pic='-KPIC' 9035 lt_prog_compiler_static='-Bstatic' 9036 case $cc_basename in 9037 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9038 lt_prog_compiler_wl='-Qoption ld ';; 9039 *) 9040 lt_prog_compiler_wl='-Wl,';; 9041 esac 9042 ;; 9043 9044 sunos4*) 9045 lt_prog_compiler_wl='-Qoption ld ' 9046 lt_prog_compiler_pic='-PIC' 9047 lt_prog_compiler_static='-Bstatic' 9048 ;; 9049 9050 sysv4 | sysv4.2uw2* | sysv4.3*) 9051 lt_prog_compiler_wl='-Wl,' 9052 lt_prog_compiler_pic='-KPIC' 9053 lt_prog_compiler_static='-Bstatic' 9054 ;; 9055 9056 sysv4*MP*) 9057 if test -d /usr/nec; then 9058 lt_prog_compiler_pic='-Kconform_pic' 9059 lt_prog_compiler_static='-Bstatic' 9060 fi 9061 ;; 9062 9063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9064 lt_prog_compiler_wl='-Wl,' 9065 lt_prog_compiler_pic='-KPIC' 9066 lt_prog_compiler_static='-Bstatic' 9067 ;; 9068 9069 unicos*) 9070 lt_prog_compiler_wl='-Wl,' 9071 lt_prog_compiler_can_build_shared=no 9072 ;; 9073 9074 uts4*) 9075 lt_prog_compiler_pic='-pic' 9076 lt_prog_compiler_static='-Bstatic' 9077 ;; 9078 9079 *) 9080 lt_prog_compiler_can_build_shared=no 9081 ;; 9082 esac 9083 fi 9084 9085case $host_os in 9086 # For platforms that do not support PIC, -DPIC is meaningless: 9087 *djgpp*) 9088 lt_prog_compiler_pic= 9089 ;; 9090 *) 9091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9092 ;; 9093esac 9094 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9096$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9097if ${lt_cv_prog_compiler_pic+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099else 9100 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9101fi 9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9103$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9104lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9105 9106# 9107# Check to make sure the PIC flag actually works. 9108# 9109if test -n "$lt_prog_compiler_pic"; then 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9111$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9112if ${lt_cv_prog_compiler_pic_works+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114else 9115 lt_cv_prog_compiler_pic_works=no 9116 ac_outfile=conftest.$ac_objext 9117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9118 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9119 # Insert the option either (1) after the last *FLAGS variable, or 9120 # (2) before a word containing "conftest.", or (3) at the end. 9121 # Note that $ac_compile itself does not contain backslashes and begins 9122 # with a dollar sign (not a hyphen), so the echo should work correctly. 9123 # The option is referenced via a variable to avoid confusing sed. 9124 lt_compile=`echo "$ac_compile" | $SED \ 9125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9127 -e 's:$: $lt_compiler_flag:'` 9128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9129 (eval "$lt_compile" 2>conftest.err) 9130 ac_status=$? 9131 cat conftest.err >&5 9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9133 if (exit $ac_status) && test -s "$ac_outfile"; then 9134 # The compiler can only warn and ignore the option if not recognized 9135 # So say no if there are warnings other than the usual output. 9136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9139 lt_cv_prog_compiler_pic_works=yes 9140 fi 9141 fi 9142 $RM conftest* 9143 9144fi 9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9146$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9147 9148if test yes = "$lt_cv_prog_compiler_pic_works"; then 9149 case $lt_prog_compiler_pic in 9150 "" | " "*) ;; 9151 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9152 esac 9153else 9154 lt_prog_compiler_pic= 9155 lt_prog_compiler_can_build_shared=no 9156fi 9157 9158fi 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170# 9171# Check to make sure the static flag actually works. 9172# 9173wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9175$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9176if ${lt_cv_prog_compiler_static_works+:} false; then : 9177 $as_echo_n "(cached) " >&6 9178else 9179 lt_cv_prog_compiler_static_works=no 9180 save_LDFLAGS=$LDFLAGS 9181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9182 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9184 # The linker can only warn and ignore the option if not recognized 9185 # So say no if there are warnings 9186 if test -s conftest.err; then 9187 # Append any errors to the config.log. 9188 cat conftest.err 1>&5 9189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9191 if diff conftest.exp conftest.er2 >/dev/null; then 9192 lt_cv_prog_compiler_static_works=yes 9193 fi 9194 else 9195 lt_cv_prog_compiler_static_works=yes 9196 fi 9197 fi 9198 $RM -r conftest* 9199 LDFLAGS=$save_LDFLAGS 9200 9201fi 9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9203$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9204 9205if test yes = "$lt_cv_prog_compiler_static_works"; then 9206 : 9207else 9208 lt_prog_compiler_static= 9209fi 9210 9211 9212 9213 9214 9215 9216 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9218$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9219if ${lt_cv_prog_compiler_c_o+:} false; then : 9220 $as_echo_n "(cached) " >&6 9221else 9222 lt_cv_prog_compiler_c_o=no 9223 $RM -r conftest 2>/dev/null 9224 mkdir conftest 9225 cd conftest 9226 mkdir out 9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9228 9229 lt_compiler_flag="-o out/conftest2.$ac_objext" 9230 # Insert the option either (1) after the last *FLAGS variable, or 9231 # (2) before a word containing "conftest.", or (3) at the end. 9232 # Note that $ac_compile itself does not contain backslashes and begins 9233 # with a dollar sign (not a hyphen), so the echo should work correctly. 9234 lt_compile=`echo "$ac_compile" | $SED \ 9235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9237 -e 's:$: $lt_compiler_flag:'` 9238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9239 (eval "$lt_compile" 2>out/conftest.err) 9240 ac_status=$? 9241 cat out/conftest.err >&5 9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9243 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9244 then 9245 # The compiler can only warn and ignore the option if not recognized 9246 # So say no if there are warnings 9247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9250 lt_cv_prog_compiler_c_o=yes 9251 fi 9252 fi 9253 chmod u+w . 2>&5 9254 $RM conftest* 9255 # SGI C++ compiler will create directory out/ii_files/ for 9256 # template instantiation 9257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9258 $RM out/* && rmdir out 9259 cd .. 9260 $RM -r conftest 9261 $RM conftest* 9262 9263fi 9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9265$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9266 9267 9268 9269 9270 9271 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9273$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9274if ${lt_cv_prog_compiler_c_o+:} false; then : 9275 $as_echo_n "(cached) " >&6 9276else 9277 lt_cv_prog_compiler_c_o=no 9278 $RM -r conftest 2>/dev/null 9279 mkdir conftest 9280 cd conftest 9281 mkdir out 9282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9283 9284 lt_compiler_flag="-o out/conftest2.$ac_objext" 9285 # Insert the option either (1) after the last *FLAGS variable, or 9286 # (2) before a word containing "conftest.", or (3) at the end. 9287 # Note that $ac_compile itself does not contain backslashes and begins 9288 # with a dollar sign (not a hyphen), so the echo should work correctly. 9289 lt_compile=`echo "$ac_compile" | $SED \ 9290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9292 -e 's:$: $lt_compiler_flag:'` 9293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9294 (eval "$lt_compile" 2>out/conftest.err) 9295 ac_status=$? 9296 cat out/conftest.err >&5 9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9298 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9299 then 9300 # The compiler can only warn and ignore the option if not recognized 9301 # So say no if there are warnings 9302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9305 lt_cv_prog_compiler_c_o=yes 9306 fi 9307 fi 9308 chmod u+w . 2>&5 9309 $RM conftest* 9310 # SGI C++ compiler will create directory out/ii_files/ for 9311 # template instantiation 9312 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9313 $RM out/* && rmdir out 9314 cd .. 9315 $RM -r conftest 9316 $RM conftest* 9317 9318fi 9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9320$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9321 9322 9323 9324 9325hard_links=nottested 9326if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9327 # do not overwrite the value of need_locks provided by the user 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9329$as_echo_n "checking if we can lock with hard links... " >&6; } 9330 hard_links=yes 9331 $RM conftest* 9332 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9333 touch conftest.a 9334 ln conftest.a conftest.b 2>&5 || hard_links=no 9335 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9337$as_echo "$hard_links" >&6; } 9338 if test no = "$hard_links"; then 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9340$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9341 need_locks=warn 9342 fi 9343else 9344 need_locks=no 9345fi 9346 9347 9348 9349 9350 9351 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9353$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9354 9355 runpath_var= 9356 allow_undefined_flag= 9357 always_export_symbols=no 9358 archive_cmds= 9359 archive_expsym_cmds= 9360 compiler_needs_object=no 9361 enable_shared_with_static_runtimes=no 9362 export_dynamic_flag_spec= 9363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9364 hardcode_automatic=no 9365 hardcode_direct=no 9366 hardcode_direct_absolute=no 9367 hardcode_libdir_flag_spec= 9368 hardcode_libdir_separator= 9369 hardcode_minus_L=no 9370 hardcode_shlibpath_var=unsupported 9371 inherit_rpath=no 9372 link_all_deplibs=unknown 9373 module_cmds= 9374 module_expsym_cmds= 9375 old_archive_from_new_cmds= 9376 old_archive_from_expsyms_cmds= 9377 thread_safe_flag_spec= 9378 whole_archive_flag_spec= 9379 # include_expsyms should be a list of space-separated symbols to be *always* 9380 # included in the symbol list 9381 include_expsyms= 9382 # exclude_expsyms can be an extended regexp of symbols to exclude 9383 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9384 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9385 # as well as any symbol that contains 'd'. 9386 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9388 # platforms (ab)use it in PIC code, but their linkers get confused if 9389 # the symbol is explicitly referenced. Since portable code cannot 9390 # rely on this symbol name, it's probably fine to never include it in 9391 # preloaded symbol tables. 9392 # Exclude shared library initialization/finalization symbols. 9393 extract_expsyms_cmds= 9394 9395 case $host_os in 9396 cygwin* | mingw* | pw32* | cegcc*) 9397 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9398 # When not using gcc, we currently assume that we are using 9399 # Microsoft Visual C++. 9400 if test yes != "$GCC"; then 9401 with_gnu_ld=no 9402 fi 9403 ;; 9404 interix*) 9405 # we just hope/assume this is gcc and not c89 (= MSVC++) 9406 with_gnu_ld=yes 9407 ;; 9408 openbsd* | bitrig*) 9409 with_gnu_ld=no 9410 ;; 9411 esac 9412 9413 ld_shlibs=yes 9414 9415 # On some targets, GNU ld is compatible enough with the native linker 9416 # that we're better off using the native interface for both. 9417 lt_use_gnu_ld_interface=no 9418 if test yes = "$with_gnu_ld"; then 9419 case $host_os in 9420 aix*) 9421 # The AIX port of GNU ld has always aspired to compatibility 9422 # with the native linker. However, as the warning in the GNU ld 9423 # block says, versions before 2.19.5* couldn't really create working 9424 # shared libraries, regardless of the interface used. 9425 case `$LD -v 2>&1` in 9426 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9427 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9428 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9429 *) 9430 lt_use_gnu_ld_interface=yes 9431 ;; 9432 esac 9433 ;; 9434 *) 9435 lt_use_gnu_ld_interface=yes 9436 ;; 9437 esac 9438 fi 9439 9440 if test yes = "$lt_use_gnu_ld_interface"; then 9441 # If archive_cmds runs LD, not CC, wlarc should be empty 9442 wlarc='$wl' 9443 9444 # Set some defaults for GNU ld with shared library support. These 9445 # are reset later if shared libraries are not supported. Putting them 9446 # here allows them to be overridden if necessary. 9447 runpath_var=LD_RUN_PATH 9448 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9449 export_dynamic_flag_spec='$wl--export-dynamic' 9450 # ancient GNU ld didn't support --whole-archive et. al. 9451 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9452 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9453 else 9454 whole_archive_flag_spec= 9455 fi 9456 supports_anon_versioning=no 9457 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9458 *GNU\ gold*) supports_anon_versioning=yes ;; 9459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9462 *\ 2.11.*) ;; # other 2.11 versions 9463 *) supports_anon_versioning=yes ;; 9464 esac 9465 9466 # See if GNU ld supports shared libraries. 9467 case $host_os in 9468 aix[3-9]*) 9469 # On AIX/PPC, the GNU linker is very broken 9470 if test ia64 != "$host_cpu"; then 9471 ld_shlibs=no 9472 cat <<_LT_EOF 1>&2 9473 9474*** Warning: the GNU linker, at least up to release 2.19, is reported 9475*** to be unable to reliably create shared libraries on AIX. 9476*** Therefore, libtool is disabling shared libraries support. If you 9477*** really care for shared libraries, you may want to install binutils 9478*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9479*** You will then need to restart the configuration process. 9480 9481_LT_EOF 9482 fi 9483 ;; 9484 9485 amigaos*) 9486 case $host_cpu in 9487 powerpc) 9488 # see comment about AmigaOS4 .so support 9489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9490 archive_expsym_cmds='' 9491 ;; 9492 m68k) 9493 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)' 9494 hardcode_libdir_flag_spec='-L$libdir' 9495 hardcode_minus_L=yes 9496 ;; 9497 esac 9498 ;; 9499 9500 beos*) 9501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9502 allow_undefined_flag=unsupported 9503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9504 # support --undefined. This deserves some investigation. FIXME 9505 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9506 else 9507 ld_shlibs=no 9508 fi 9509 ;; 9510 9511 cygwin* | mingw* | pw32* | cegcc*) 9512 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9513 # as there is no search path for DLLs. 9514 hardcode_libdir_flag_spec='-L$libdir' 9515 export_dynamic_flag_spec='$wl--export-all-symbols' 9516 allow_undefined_flag=unsupported 9517 always_export_symbols=no 9518 enable_shared_with_static_runtimes=yes 9519 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' 9520 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9521 9522 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9524 # If the export-symbols file already is a .def file, use it as 9525 # is; otherwise, prepend EXPORTS... 9526 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9527 cp $export_symbols $output_objdir/$soname.def; 9528 else 9529 echo EXPORTS > $output_objdir/$soname.def; 9530 cat $export_symbols >> $output_objdir/$soname.def; 9531 fi~ 9532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9533 else 9534 ld_shlibs=no 9535 fi 9536 ;; 9537 9538 haiku*) 9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9540 link_all_deplibs=yes 9541 ;; 9542 9543 os2*) 9544 hardcode_libdir_flag_spec='-L$libdir' 9545 hardcode_minus_L=yes 9546 allow_undefined_flag=unsupported 9547 shrext_cmds=.dll 9548 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9549 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9550 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9551 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9552 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9554 emximp -o $lib $output_objdir/$libname.def' 9555 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9556 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9557 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9558 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9559 prefix_cmds="$SED"~ 9560 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9561 prefix_cmds="$prefix_cmds -e 1d"; 9562 fi~ 9563 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9564 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9565 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9566 emximp -o $lib $output_objdir/$libname.def' 9567 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9568 enable_shared_with_static_runtimes=yes 9569 ;; 9570 9571 interix[3-9]*) 9572 hardcode_direct=no 9573 hardcode_shlibpath_var=no 9574 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9575 export_dynamic_flag_spec='$wl-E' 9576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9577 # Instead, shared libraries are loaded at an image base (0x10000000 by 9578 # default) and relocated if they conflict, which is a slow very memory 9579 # consuming and fragmenting process. To avoid this, we pick a random, 9580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9581 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9583 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' 9584 ;; 9585 9586 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9587 tmp_diet=no 9588 if test linux-dietlibc = "$host_os"; then 9589 case $cc_basename in 9590 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9591 esac 9592 fi 9593 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9594 && test no = "$tmp_diet" 9595 then 9596 tmp_addflag=' $pic_flag' 9597 tmp_sharedflag='-shared' 9598 case $cc_basename,$host_cpu in 9599 pgcc*) # Portland Group C compiler 9600 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' 9601 tmp_addflag=' $pic_flag' 9602 ;; 9603 pgf77* | pgf90* | pgf95* | pgfortran*) 9604 # Portland Group f77 and f90 compilers 9605 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' 9606 tmp_addflag=' $pic_flag -Mnomain' ;; 9607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9608 tmp_addflag=' -i_dynamic' ;; 9609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9610 tmp_addflag=' -i_dynamic -nofor_main' ;; 9611 ifc* | ifort*) # Intel Fortran compiler 9612 tmp_addflag=' -nofor_main' ;; 9613 lf95*) # Lahey Fortran 8.1 9614 whole_archive_flag_spec= 9615 tmp_sharedflag='--shared' ;; 9616 nagfor*) # NAGFOR 5.3 9617 tmp_sharedflag='-Wl,-shared' ;; 9618 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9619 tmp_sharedflag='-qmkshrobj' 9620 tmp_addflag= ;; 9621 nvcc*) # Cuda Compiler Driver 2.2 9622 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' 9623 compiler_needs_object=yes 9624 ;; 9625 esac 9626 case `$CC -V 2>&1 | sed 5q` in 9627 *Sun\ C*) # Sun C 5.9 9628 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' 9629 compiler_needs_object=yes 9630 tmp_sharedflag='-G' ;; 9631 *Sun\ F*) # Sun Fortran 8.3 9632 tmp_sharedflag='-G' ;; 9633 esac 9634 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9635 9636 if test yes = "$supports_anon_versioning"; then 9637 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9639 echo "local: *; };" >> $output_objdir/$libname.ver~ 9640 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9641 fi 9642 9643 case $cc_basename in 9644 tcc*) 9645 export_dynamic_flag_spec='-rdynamic' 9646 ;; 9647 xlf* | bgf* | bgxlf* | mpixlf*) 9648 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9649 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9651 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9652 if test yes = "$supports_anon_versioning"; then 9653 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9655 echo "local: *; };" >> $output_objdir/$libname.ver~ 9656 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9657 fi 9658 ;; 9659 esac 9660 else 9661 ld_shlibs=no 9662 fi 9663 ;; 9664 9665 netbsd*) 9666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9667 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9668 wlarc= 9669 else 9670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9672 fi 9673 ;; 9674 9675 solaris*) 9676 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9677 ld_shlibs=no 9678 cat <<_LT_EOF 1>&2 9679 9680*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9681*** create shared libraries on Solaris systems. Therefore, libtool 9682*** is disabling shared libraries support. We urge you to upgrade GNU 9683*** binutils to release 2.9.1 or newer. Another option is to modify 9684*** your PATH or compiler configuration so that the native linker is 9685*** used, and then restart. 9686 9687_LT_EOF 9688 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9690 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9691 else 9692 ld_shlibs=no 9693 fi 9694 ;; 9695 9696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9697 case `$LD -v 2>&1` in 9698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9699 ld_shlibs=no 9700 cat <<_LT_EOF 1>&2 9701 9702*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9703*** reliably create shared libraries on SCO systems. Therefore, libtool 9704*** is disabling shared libraries support. We urge you to upgrade GNU 9705*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9706*** your PATH or compiler configuration so that the native linker is 9707*** used, and then restart. 9708 9709_LT_EOF 9710 ;; 9711 *) 9712 # For security reasons, it is highly recommended that you always 9713 # use absolute paths for naming shared libraries, and exclude the 9714 # DT_RUNPATH tag from executables and libraries. But doing so 9715 # requires that you compile everything twice, which is a pain. 9716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9717 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9720 else 9721 ld_shlibs=no 9722 fi 9723 ;; 9724 esac 9725 ;; 9726 9727 sunos4*) 9728 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9729 wlarc= 9730 hardcode_direct=yes 9731 hardcode_shlibpath_var=no 9732 ;; 9733 9734 *) 9735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9738 else 9739 ld_shlibs=no 9740 fi 9741 ;; 9742 esac 9743 9744 if test no = "$ld_shlibs"; then 9745 runpath_var= 9746 hardcode_libdir_flag_spec= 9747 export_dynamic_flag_spec= 9748 whole_archive_flag_spec= 9749 fi 9750 else 9751 # PORTME fill in a description of your system's linker (not GNU ld) 9752 case $host_os in 9753 aix3*) 9754 allow_undefined_flag=unsupported 9755 always_export_symbols=yes 9756 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' 9757 # Note: this linker hardcodes the directories in LIBPATH if there 9758 # are no directories specified by -L. 9759 hardcode_minus_L=yes 9760 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9761 # Neither direct hardcoding nor static linking is supported with a 9762 # broken collect2. 9763 hardcode_direct=unsupported 9764 fi 9765 ;; 9766 9767 aix[4-9]*) 9768 if test ia64 = "$host_cpu"; then 9769 # On IA64, the linker does run time linking by default, so we don't 9770 # have to do anything special. 9771 aix_use_runtimelinking=no 9772 exp_sym_flag='-Bexport' 9773 no_entry_flag= 9774 else 9775 # If we're using GNU nm, then we don't want the "-C" option. 9776 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9777 # Without the "-l" option, or with the "-B" option, AIX nm treats 9778 # weak defined symbols like other global defined symbols, whereas 9779 # GNU nm marks them as "W". 9780 # While the 'weak' keyword is ignored in the Export File, we need 9781 # it in the Import File for the 'aix-soname' feature, so we have 9782 # to replace the "-B" option with "-P" for AIX nm. 9783 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9784 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9785 else 9786 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9787 fi 9788 aix_use_runtimelinking=no 9789 9790 # Test if we are trying to use run time linking or normal 9791 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9792 # have runtime linking enabled, and use it for executables. 9793 # For shared libraries, we enable/disable runtime linking 9794 # depending on the kind of the shared library created - 9795 # when "with_aix_soname,aix_use_runtimelinking" is: 9796 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9797 # "aix,yes" lib.so shared, rtl:yes, for executables 9798 # lib.a static archive 9799 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9800 # lib.a(lib.so.V) shared, rtl:no, for executables 9801 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9802 # lib.a(lib.so.V) shared, rtl:no 9803 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9804 # lib.a static archive 9805 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9806 for ld_flag in $LDFLAGS; do 9807 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9808 aix_use_runtimelinking=yes 9809 break 9810 fi 9811 done 9812 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9813 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9814 # so we don't have lib.a shared libs to link our executables. 9815 # We have to force runtime linking in this case. 9816 aix_use_runtimelinking=yes 9817 LDFLAGS="$LDFLAGS -Wl,-brtl" 9818 fi 9819 ;; 9820 esac 9821 9822 exp_sym_flag='-bexport' 9823 no_entry_flag='-bnoentry' 9824 fi 9825 9826 # When large executables or shared objects are built, AIX ld can 9827 # have problems creating the table of contents. If linking a library 9828 # or program results in "error TOC overflow" add -mminimal-toc to 9829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9831 9832 archive_cmds='' 9833 hardcode_direct=yes 9834 hardcode_direct_absolute=yes 9835 hardcode_libdir_separator=':' 9836 link_all_deplibs=yes 9837 file_list_spec='$wl-f,' 9838 case $with_aix_soname,$aix_use_runtimelinking in 9839 aix,*) ;; # traditional, no import file 9840 svr4,* | *,yes) # use import file 9841 # The Import File defines what to hardcode. 9842 hardcode_direct=no 9843 hardcode_direct_absolute=no 9844 ;; 9845 esac 9846 9847 if test yes = "$GCC"; then 9848 case $host_os in aix4.[012]|aix4.[012].*) 9849 # We only want to do this on AIX 4.2 and lower, the check 9850 # below for broken collect2 doesn't work under 4.3+ 9851 collect2name=`$CC -print-prog-name=collect2` 9852 if test -f "$collect2name" && 9853 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9854 then 9855 # We have reworked collect2 9856 : 9857 else 9858 # We have old collect2 9859 hardcode_direct=unsupported 9860 # It fails to find uninstalled libraries when the uninstalled 9861 # path is not listed in the libpath. Setting hardcode_minus_L 9862 # to unsupported forces relinking 9863 hardcode_minus_L=yes 9864 hardcode_libdir_flag_spec='-L$libdir' 9865 hardcode_libdir_separator= 9866 fi 9867 ;; 9868 esac 9869 shared_flag='-shared' 9870 if test yes = "$aix_use_runtimelinking"; then 9871 shared_flag="$shared_flag "'$wl-G' 9872 fi 9873 # Need to ensure runtime linking is disabled for the traditional 9874 # shared library, or the linker may eventually find shared libraries 9875 # /with/ Import File - we do not want to mix them. 9876 shared_flag_aix='-shared' 9877 shared_flag_svr4='-shared $wl-G' 9878 else 9879 # not using gcc 9880 if test ia64 = "$host_cpu"; then 9881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9882 # chokes on -Wl,-G. The following line is correct: 9883 shared_flag='-G' 9884 else 9885 if test yes = "$aix_use_runtimelinking"; then 9886 shared_flag='$wl-G' 9887 else 9888 shared_flag='$wl-bM:SRE' 9889 fi 9890 shared_flag_aix='$wl-bM:SRE' 9891 shared_flag_svr4='$wl-G' 9892 fi 9893 fi 9894 9895 export_dynamic_flag_spec='$wl-bexpall' 9896 # It seems that -bexpall does not export symbols beginning with 9897 # underscore (_), so it is better to generate a list of symbols to export. 9898 always_export_symbols=yes 9899 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9900 # Warning - without using the other runtime loading flags (-brtl), 9901 # -berok will link without error, but may produce a broken library. 9902 allow_undefined_flag='-berok' 9903 # Determine the default libpath from the value encoded in an 9904 # empty executable. 9905 if test set = "${lt_cv_aix_libpath+set}"; then 9906 aix_libpath=$lt_cv_aix_libpath 9907else 9908 if ${lt_cv_aix_libpath_+:} false; then : 9909 $as_echo_n "(cached) " >&6 9910else 9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9912/* end confdefs.h. */ 9913 9914int 9915main () 9916{ 9917 9918 ; 9919 return 0; 9920} 9921_ACEOF 9922if ac_fn_c_try_link "$LINENO"; then : 9923 9924 lt_aix_libpath_sed=' 9925 /Import File Strings/,/^$/ { 9926 /^0/ { 9927 s/^0 *\([^ ]*\) *$/\1/ 9928 p 9929 } 9930 }' 9931 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9932 # Check for a 64-bit object if we didn't find anything. 9933 if test -z "$lt_cv_aix_libpath_"; then 9934 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9935 fi 9936fi 9937rm -f core conftest.err conftest.$ac_objext \ 9938 conftest$ac_exeext conftest.$ac_ext 9939 if test -z "$lt_cv_aix_libpath_"; then 9940 lt_cv_aix_libpath_=/usr/lib:/lib 9941 fi 9942 9943fi 9944 9945 aix_libpath=$lt_cv_aix_libpath_ 9946fi 9947 9948 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9949 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9950 else 9951 if test ia64 = "$host_cpu"; then 9952 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9953 allow_undefined_flag="-z nodefs" 9954 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" 9955 else 9956 # Determine the default libpath from the value encoded in an 9957 # empty executable. 9958 if test set = "${lt_cv_aix_libpath+set}"; then 9959 aix_libpath=$lt_cv_aix_libpath 9960else 9961 if ${lt_cv_aix_libpath_+:} false; then : 9962 $as_echo_n "(cached) " >&6 9963else 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965/* end confdefs.h. */ 9966 9967int 9968main () 9969{ 9970 9971 ; 9972 return 0; 9973} 9974_ACEOF 9975if ac_fn_c_try_link "$LINENO"; then : 9976 9977 lt_aix_libpath_sed=' 9978 /Import File Strings/,/^$/ { 9979 /^0/ { 9980 s/^0 *\([^ ]*\) *$/\1/ 9981 p 9982 } 9983 }' 9984 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9985 # Check for a 64-bit object if we didn't find anything. 9986 if test -z "$lt_cv_aix_libpath_"; then 9987 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9988 fi 9989fi 9990rm -f core conftest.err conftest.$ac_objext \ 9991 conftest$ac_exeext conftest.$ac_ext 9992 if test -z "$lt_cv_aix_libpath_"; then 9993 lt_cv_aix_libpath_=/usr/lib:/lib 9994 fi 9995 9996fi 9997 9998 aix_libpath=$lt_cv_aix_libpath_ 9999fi 10000 10001 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10002 # Warning - without using the other run time loading flags, 10003 # -berok will link without error, but may produce a broken library. 10004 no_undefined_flag=' $wl-bernotok' 10005 allow_undefined_flag=' $wl-berok' 10006 if test yes = "$with_gnu_ld"; then 10007 # We only use this code for GNU lds that support --whole-archive. 10008 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10009 else 10010 # Exported symbols can be pulled into shared objects from archives 10011 whole_archive_flag_spec='$convenience' 10012 fi 10013 archive_cmds_need_lc=yes 10014 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10015 # -brtl affects multiple linker settings, -berok does not and is overridden later 10016 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10017 if test svr4 != "$with_aix_soname"; then 10018 # This is similar to how AIX traditionally builds its shared libraries. 10019 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10020 fi 10021 if test aix != "$with_aix_soname"; then 10022 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10023 else 10024 # used by -dlpreopen to get the symbols 10025 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10026 fi 10027 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10028 fi 10029 fi 10030 ;; 10031 10032 amigaos*) 10033 case $host_cpu in 10034 powerpc) 10035 # see comment about AmigaOS4 .so support 10036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10037 archive_expsym_cmds='' 10038 ;; 10039 m68k) 10040 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)' 10041 hardcode_libdir_flag_spec='-L$libdir' 10042 hardcode_minus_L=yes 10043 ;; 10044 esac 10045 ;; 10046 10047 bsdi[45]*) 10048 export_dynamic_flag_spec=-rdynamic 10049 ;; 10050 10051 cygwin* | mingw* | pw32* | cegcc*) 10052 # When not using gcc, we currently assume that we are using 10053 # Microsoft Visual C++. 10054 # hardcode_libdir_flag_spec is actually meaningless, as there is 10055 # no search path for DLLs. 10056 case $cc_basename in 10057 cl*) 10058 # Native MSVC 10059 hardcode_libdir_flag_spec=' ' 10060 allow_undefined_flag=unsupported 10061 always_export_symbols=yes 10062 file_list_spec='@' 10063 # Tell ltmain to make .lib files, not .a files. 10064 libext=lib 10065 # Tell ltmain to make .dll files, not .so files. 10066 shrext_cmds=.dll 10067 # FIXME: Setting linknames here is a bad hack. 10068 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10069 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10070 cp "$export_symbols" "$output_objdir/$soname.def"; 10071 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10072 else 10073 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10074 fi~ 10075 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10076 linknames=' 10077 # The linker will not automatically build a static lib if we build a DLL. 10078 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10079 enable_shared_with_static_runtimes=yes 10080 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10082 # Don't use ranlib 10083 old_postinstall_cmds='chmod 644 $oldlib' 10084 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10085 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10086 case $lt_outputfile in 10087 *.exe|*.EXE) ;; 10088 *) 10089 lt_outputfile=$lt_outputfile.exe 10090 lt_tool_outputfile=$lt_tool_outputfile.exe 10091 ;; 10092 esac~ 10093 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10094 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10095 $RM "$lt_outputfile.manifest"; 10096 fi' 10097 ;; 10098 *) 10099 # Assume MSVC wrapper 10100 hardcode_libdir_flag_spec=' ' 10101 allow_undefined_flag=unsupported 10102 # Tell ltmain to make .lib files, not .a files. 10103 libext=lib 10104 # Tell ltmain to make .dll files, not .so files. 10105 shrext_cmds=.dll 10106 # FIXME: Setting linknames here is a bad hack. 10107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10108 # The linker will automatically build a .lib file if we build a DLL. 10109 old_archive_from_new_cmds='true' 10110 # FIXME: Should let the user specify the lib program. 10111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10112 enable_shared_with_static_runtimes=yes 10113 ;; 10114 esac 10115 ;; 10116 10117 darwin* | rhapsody*) 10118 10119 10120 archive_cmds_need_lc=no 10121 hardcode_direct=no 10122 hardcode_automatic=yes 10123 hardcode_shlibpath_var=unsupported 10124 if test yes = "$lt_cv_ld_force_load"; then 10125 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\"`' 10126 10127 else 10128 whole_archive_flag_spec='' 10129 fi 10130 link_all_deplibs=yes 10131 allow_undefined_flag=$_lt_dar_allow_undefined 10132 case $cc_basename in 10133 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10134 *) _lt_dar_can_shared=$GCC ;; 10135 esac 10136 if test yes = "$_lt_dar_can_shared"; then 10137 output_verbose_link_cmd=func_echo_all 10138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10140 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" 10141 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" 10142 10143 else 10144 ld_shlibs=no 10145 fi 10146 10147 ;; 10148 10149 dgux*) 10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10151 hardcode_libdir_flag_spec='-L$libdir' 10152 hardcode_shlibpath_var=no 10153 ;; 10154 10155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10156 # support. Future versions do this automatically, but an explicit c++rt0.o 10157 # does not break anything, and helps significantly (at the cost of a little 10158 # extra space). 10159 freebsd2.2*) 10160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10161 hardcode_libdir_flag_spec='-R$libdir' 10162 hardcode_direct=yes 10163 hardcode_shlibpath_var=no 10164 ;; 10165 10166 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10167 freebsd2.*) 10168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10169 hardcode_direct=yes 10170 hardcode_minus_L=yes 10171 hardcode_shlibpath_var=no 10172 ;; 10173 10174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10175 freebsd* | dragonfly*) 10176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10177 hardcode_libdir_flag_spec='-R$libdir' 10178 hardcode_direct=yes 10179 hardcode_shlibpath_var=no 10180 ;; 10181 10182 hpux9*) 10183 if test yes = "$GCC"; then 10184 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10185 else 10186 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10187 fi 10188 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10189 hardcode_libdir_separator=: 10190 hardcode_direct=yes 10191 10192 # hardcode_minus_L: Not really in the search PATH, 10193 # but as the default location of the library. 10194 hardcode_minus_L=yes 10195 export_dynamic_flag_spec='$wl-E' 10196 ;; 10197 10198 hpux10*) 10199 if test yes,no = "$GCC,$with_gnu_ld"; then 10200 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10201 else 10202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10203 fi 10204 if test no = "$with_gnu_ld"; then 10205 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10206 hardcode_libdir_separator=: 10207 hardcode_direct=yes 10208 hardcode_direct_absolute=yes 10209 export_dynamic_flag_spec='$wl-E' 10210 # hardcode_minus_L: Not really in the search PATH, 10211 # but as the default location of the library. 10212 hardcode_minus_L=yes 10213 fi 10214 ;; 10215 10216 hpux11*) 10217 if test yes,no = "$GCC,$with_gnu_ld"; then 10218 case $host_cpu in 10219 hppa*64*) 10220 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10221 ;; 10222 ia64*) 10223 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10224 ;; 10225 *) 10226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10227 ;; 10228 esac 10229 else 10230 case $host_cpu in 10231 hppa*64*) 10232 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10233 ;; 10234 ia64*) 10235 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10236 ;; 10237 *) 10238 10239 # Older versions of the 11.00 compiler do not understand -b yet 10240 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10242$as_echo_n "checking if $CC understands -b... " >&6; } 10243if ${lt_cv_prog_compiler__b+:} false; then : 10244 $as_echo_n "(cached) " >&6 10245else 10246 lt_cv_prog_compiler__b=no 10247 save_LDFLAGS=$LDFLAGS 10248 LDFLAGS="$LDFLAGS -b" 10249 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10251 # The linker can only warn and ignore the option if not recognized 10252 # So say no if there are warnings 10253 if test -s conftest.err; then 10254 # Append any errors to the config.log. 10255 cat conftest.err 1>&5 10256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10258 if diff conftest.exp conftest.er2 >/dev/null; then 10259 lt_cv_prog_compiler__b=yes 10260 fi 10261 else 10262 lt_cv_prog_compiler__b=yes 10263 fi 10264 fi 10265 $RM -r conftest* 10266 LDFLAGS=$save_LDFLAGS 10267 10268fi 10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10270$as_echo "$lt_cv_prog_compiler__b" >&6; } 10271 10272if test yes = "$lt_cv_prog_compiler__b"; then 10273 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10274else 10275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10276fi 10277 10278 ;; 10279 esac 10280 fi 10281 if test no = "$with_gnu_ld"; then 10282 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10283 hardcode_libdir_separator=: 10284 10285 case $host_cpu in 10286 hppa*64*|ia64*) 10287 hardcode_direct=no 10288 hardcode_shlibpath_var=no 10289 ;; 10290 *) 10291 hardcode_direct=yes 10292 hardcode_direct_absolute=yes 10293 export_dynamic_flag_spec='$wl-E' 10294 10295 # hardcode_minus_L: Not really in the search PATH, 10296 # but as the default location of the library. 10297 hardcode_minus_L=yes 10298 ;; 10299 esac 10300 fi 10301 ;; 10302 10303 irix5* | irix6* | nonstopux*) 10304 if test yes = "$GCC"; then 10305 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' 10306 # Try to use the -exported_symbol ld option, if it does not 10307 # work, assume that -exports_file does not work either and 10308 # implicitly export all symbols. 10309 # This should be the same for all languages, so no per-tag cache variable. 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10311$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10312if ${lt_cv_irix_exported_symbol+:} false; then : 10313 $as_echo_n "(cached) " >&6 10314else 10315 save_LDFLAGS=$LDFLAGS 10316 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319int foo (void) { return 0; } 10320_ACEOF 10321if ac_fn_c_try_link "$LINENO"; then : 10322 lt_cv_irix_exported_symbol=yes 10323else 10324 lt_cv_irix_exported_symbol=no 10325fi 10326rm -f core conftest.err conftest.$ac_objext \ 10327 conftest$ac_exeext conftest.$ac_ext 10328 LDFLAGS=$save_LDFLAGS 10329fi 10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10331$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10332 if test yes = "$lt_cv_irix_exported_symbol"; then 10333 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' 10334 fi 10335 else 10336 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' 10337 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' 10338 fi 10339 archive_cmds_need_lc='no' 10340 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10341 hardcode_libdir_separator=: 10342 inherit_rpath=yes 10343 link_all_deplibs=yes 10344 ;; 10345 10346 linux*) 10347 case $cc_basename in 10348 tcc*) 10349 # Fabrice Bellard et al's Tiny C Compiler 10350 ld_shlibs=yes 10351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10352 ;; 10353 esac 10354 ;; 10355 10356 netbsd*) 10357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10359 else 10360 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10361 fi 10362 hardcode_libdir_flag_spec='-R$libdir' 10363 hardcode_direct=yes 10364 hardcode_shlibpath_var=no 10365 ;; 10366 10367 newsos6) 10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10369 hardcode_direct=yes 10370 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10371 hardcode_libdir_separator=: 10372 hardcode_shlibpath_var=no 10373 ;; 10374 10375 *nto* | *qnx*) 10376 ;; 10377 10378 openbsd* | bitrig*) 10379 if test -f /usr/libexec/ld.so; then 10380 hardcode_direct=yes 10381 hardcode_shlibpath_var=no 10382 hardcode_direct_absolute=yes 10383 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10385 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10386 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10387 export_dynamic_flag_spec='$wl-E' 10388 else 10389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10390 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10391 fi 10392 else 10393 ld_shlibs=no 10394 fi 10395 ;; 10396 10397 os2*) 10398 hardcode_libdir_flag_spec='-L$libdir' 10399 hardcode_minus_L=yes 10400 allow_undefined_flag=unsupported 10401 shrext_cmds=.dll 10402 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10403 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10404 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10405 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10406 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10407 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10408 emximp -o $lib $output_objdir/$libname.def' 10409 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10410 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10411 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10412 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10413 prefix_cmds="$SED"~ 10414 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10415 prefix_cmds="$prefix_cmds -e 1d"; 10416 fi~ 10417 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10418 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10419 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10420 emximp -o $lib $output_objdir/$libname.def' 10421 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10422 enable_shared_with_static_runtimes=yes 10423 ;; 10424 10425 osf3*) 10426 if test yes = "$GCC"; then 10427 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10428 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' 10429 else 10430 allow_undefined_flag=' -expect_unresolved \*' 10431 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' 10432 fi 10433 archive_cmds_need_lc='no' 10434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10435 hardcode_libdir_separator=: 10436 ;; 10437 10438 osf4* | osf5*) # as osf3* with the addition of -msym flag 10439 if test yes = "$GCC"; then 10440 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10441 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' 10442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10443 else 10444 allow_undefined_flag=' -expect_unresolved \*' 10445 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' 10446 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~ 10447 $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' 10448 10449 # Both c and cxx compiler support -rpath directly 10450 hardcode_libdir_flag_spec='-rpath $libdir' 10451 fi 10452 archive_cmds_need_lc='no' 10453 hardcode_libdir_separator=: 10454 ;; 10455 10456 solaris*) 10457 no_undefined_flag=' -z defs' 10458 if test yes = "$GCC"; then 10459 wlarc='$wl' 10460 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10462 $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' 10463 else 10464 case `$CC -V 2>&1` in 10465 *"Compilers 5.0"*) 10466 wlarc='' 10467 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10469 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10470 ;; 10471 *) 10472 wlarc='$wl' 10473 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10475 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10476 ;; 10477 esac 10478 fi 10479 hardcode_libdir_flag_spec='-R$libdir' 10480 hardcode_shlibpath_var=no 10481 case $host_os in 10482 solaris2.[0-5] | solaris2.[0-5].*) ;; 10483 *) 10484 # The compiler driver will combine and reorder linker options, 10485 # but understands '-z linker_flag'. GCC discards it without '$wl', 10486 # but is careful enough not to reorder. 10487 # Supported since Solaris 2.6 (maybe 2.5.1?) 10488 if test yes = "$GCC"; then 10489 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10490 else 10491 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10492 fi 10493 ;; 10494 esac 10495 link_all_deplibs=yes 10496 ;; 10497 10498 sunos4*) 10499 if test sequent = "$host_vendor"; then 10500 # Use $CC to link under sequent, because it throws in some extra .o 10501 # files that make .init and .fini sections work. 10502 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10503 else 10504 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10505 fi 10506 hardcode_libdir_flag_spec='-L$libdir' 10507 hardcode_direct=yes 10508 hardcode_minus_L=yes 10509 hardcode_shlibpath_var=no 10510 ;; 10511 10512 sysv4) 10513 case $host_vendor in 10514 sni) 10515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10516 hardcode_direct=yes # is this really true??? 10517 ;; 10518 siemens) 10519 ## LD is ld it makes a PLAMLIB 10520 ## CC just makes a GrossModule. 10521 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10522 reload_cmds='$CC -r -o $output$reload_objs' 10523 hardcode_direct=no 10524 ;; 10525 motorola) 10526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10527 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10528 ;; 10529 esac 10530 runpath_var='LD_RUN_PATH' 10531 hardcode_shlibpath_var=no 10532 ;; 10533 10534 sysv4.3*) 10535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10536 hardcode_shlibpath_var=no 10537 export_dynamic_flag_spec='-Bexport' 10538 ;; 10539 10540 sysv4*MP*) 10541 if test -d /usr/nec; then 10542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10543 hardcode_shlibpath_var=no 10544 runpath_var=LD_RUN_PATH 10545 hardcode_runpath_var=yes 10546 ld_shlibs=yes 10547 fi 10548 ;; 10549 10550 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10551 no_undefined_flag='$wl-z,text' 10552 archive_cmds_need_lc=no 10553 hardcode_shlibpath_var=no 10554 runpath_var='LD_RUN_PATH' 10555 10556 if test yes = "$GCC"; then 10557 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10558 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10559 else 10560 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10561 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10562 fi 10563 ;; 10564 10565 sysv5* | sco3.2v5* | sco5v6*) 10566 # Note: We CANNOT use -z defs as we might desire, because we do not 10567 # link with -lc, and that would cause any symbols used from libc to 10568 # always be unresolved, which means just about no library would 10569 # ever link correctly. If we're not using GNU ld we use -z text 10570 # though, which does catch some bad symbols but isn't as heavy-handed 10571 # as -z defs. 10572 no_undefined_flag='$wl-z,text' 10573 allow_undefined_flag='$wl-z,nodefs' 10574 archive_cmds_need_lc=no 10575 hardcode_shlibpath_var=no 10576 hardcode_libdir_flag_spec='$wl-R,$libdir' 10577 hardcode_libdir_separator=':' 10578 link_all_deplibs=yes 10579 export_dynamic_flag_spec='$wl-Bexport' 10580 runpath_var='LD_RUN_PATH' 10581 10582 if test yes = "$GCC"; then 10583 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10584 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10585 else 10586 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10587 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10588 fi 10589 ;; 10590 10591 uts4*) 10592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10593 hardcode_libdir_flag_spec='-L$libdir' 10594 hardcode_shlibpath_var=no 10595 ;; 10596 10597 *) 10598 ld_shlibs=no 10599 ;; 10600 esac 10601 10602 if test sni = "$host_vendor"; then 10603 case $host in 10604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10605 export_dynamic_flag_spec='$wl-Blargedynsym' 10606 ;; 10607 esac 10608 fi 10609 fi 10610 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10612$as_echo "$ld_shlibs" >&6; } 10613test no = "$ld_shlibs" && can_build_shared=no 10614 10615with_gnu_ld=$with_gnu_ld 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631# 10632# Do we need to explicitly link libc? 10633# 10634case "x$archive_cmds_need_lc" in 10635x|xyes) 10636 # Assume -lc should be added 10637 archive_cmds_need_lc=yes 10638 10639 if test yes,yes = "$GCC,$enable_shared"; then 10640 case $archive_cmds in 10641 *'~'*) 10642 # FIXME: we may have to deal with multi-command sequences. 10643 ;; 10644 '$CC '*) 10645 # Test whether the compiler implicitly links with -lc since on some 10646 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10647 # to ld, don't add -lc before -lgcc. 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10649$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10650if ${lt_cv_archive_cmds_need_lc+:} false; then : 10651 $as_echo_n "(cached) " >&6 10652else 10653 $RM conftest* 10654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10655 10656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10657 (eval $ac_compile) 2>&5 10658 ac_status=$? 10659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10660 test $ac_status = 0; } 2>conftest.err; then 10661 soname=conftest 10662 lib=conftest 10663 libobjs=conftest.$ac_objext 10664 deplibs= 10665 wl=$lt_prog_compiler_wl 10666 pic_flag=$lt_prog_compiler_pic 10667 compiler_flags=-v 10668 linker_flags=-v 10669 verstring= 10670 output_objdir=. 10671 libname=conftest 10672 lt_save_allow_undefined_flag=$allow_undefined_flag 10673 allow_undefined_flag= 10674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10675 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10676 ac_status=$? 10677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10678 test $ac_status = 0; } 10679 then 10680 lt_cv_archive_cmds_need_lc=no 10681 else 10682 lt_cv_archive_cmds_need_lc=yes 10683 fi 10684 allow_undefined_flag=$lt_save_allow_undefined_flag 10685 else 10686 cat conftest.err 1>&5 10687 fi 10688 $RM conftest* 10689 10690fi 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10692$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10693 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10694 ;; 10695 esac 10696 fi 10697 ;; 10698esac 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10852$as_echo_n "checking dynamic linker characteristics... " >&6; } 10853 10854if test yes = "$GCC"; then 10855 case $host_os in 10856 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10857 *) lt_awk_arg='/^libraries:/' ;; 10858 esac 10859 case $host_os in 10860 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10861 *) lt_sed_strip_eq='s|=/|/|g' ;; 10862 esac 10863 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10864 case $lt_search_path_spec in 10865 *\;*) 10866 # if the path contains ";" then we assume it to be the separator 10867 # otherwise default to the standard path separator (i.e. ":") - it is 10868 # assumed that no part of a normal pathname contains ";" but that should 10869 # okay in the real world where ";" in dirpaths is itself problematic. 10870 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10871 ;; 10872 *) 10873 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10874 ;; 10875 esac 10876 # Ok, now we have the path, separated by spaces, we can step through it 10877 # and add multilib dir if necessary... 10878 lt_tmp_lt_search_path_spec= 10879 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10880 # ...but if some path component already ends with the multilib dir we assume 10881 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10882 case "$lt_multi_os_dir; $lt_search_path_spec " in 10883 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10884 lt_multi_os_dir= 10885 ;; 10886 esac 10887 for lt_sys_path in $lt_search_path_spec; do 10888 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10889 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10890 elif test -n "$lt_multi_os_dir"; then 10891 test -d "$lt_sys_path" && \ 10892 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10893 fi 10894 done 10895 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10896BEGIN {RS = " "; FS = "/|\n";} { 10897 lt_foo = ""; 10898 lt_count = 0; 10899 for (lt_i = NF; lt_i > 0; lt_i--) { 10900 if ($lt_i != "" && $lt_i != ".") { 10901 if ($lt_i == "..") { 10902 lt_count++; 10903 } else { 10904 if (lt_count == 0) { 10905 lt_foo = "/" $lt_i lt_foo; 10906 } else { 10907 lt_count--; 10908 } 10909 } 10910 } 10911 } 10912 if (lt_foo != "") { lt_freq[lt_foo]++; } 10913 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10914}'` 10915 # AWK program above erroneously prepends '/' to C:/dos/paths 10916 # for these hosts. 10917 case $host_os in 10918 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10919 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10920 esac 10921 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10922else 10923 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10924fi 10925library_names_spec= 10926libname_spec='lib$name' 10927soname_spec= 10928shrext_cmds=.so 10929postinstall_cmds= 10930postuninstall_cmds= 10931finish_cmds= 10932finish_eval= 10933shlibpath_var= 10934shlibpath_overrides_runpath=unknown 10935version_type=none 10936dynamic_linker="$host_os ld.so" 10937sys_lib_dlsearch_path_spec="/lib /usr/lib" 10938need_lib_prefix=unknown 10939hardcode_into_libs=no 10940 10941# when you set need_version to no, make sure it does not cause -set_version 10942# flags to be left without arguments 10943need_version=unknown 10944 10945 10946 10947case $host_os in 10948aix3*) 10949 version_type=linux # correct to gnu/linux during the next big refactor 10950 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10951 shlibpath_var=LIBPATH 10952 10953 # AIX 3 has no versioning support, so we append a major version to the name. 10954 soname_spec='$libname$release$shared_ext$major' 10955 ;; 10956 10957aix[4-9]*) 10958 version_type=linux # correct to gnu/linux during the next big refactor 10959 need_lib_prefix=no 10960 need_version=no 10961 hardcode_into_libs=yes 10962 if test ia64 = "$host_cpu"; then 10963 # AIX 5 supports IA64 10964 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10965 shlibpath_var=LD_LIBRARY_PATH 10966 else 10967 # With GCC up to 2.95.x, collect2 would create an import file 10968 # for dependence libraries. The import file would start with 10969 # the line '#! .'. This would cause the generated library to 10970 # depend on '.', always an invalid library. This was fixed in 10971 # development snapshots of GCC prior to 3.0. 10972 case $host_os in 10973 aix4 | aix4.[01] | aix4.[01].*) 10974 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10975 echo ' yes ' 10976 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10977 : 10978 else 10979 can_build_shared=no 10980 fi 10981 ;; 10982 esac 10983 # Using Import Files as archive members, it is possible to support 10984 # filename-based versioning of shared library archives on AIX. While 10985 # this would work for both with and without runtime linking, it will 10986 # prevent static linking of such archives. So we do filename-based 10987 # shared library versioning with .so extension only, which is used 10988 # when both runtime linking and shared linking is enabled. 10989 # Unfortunately, runtime linking may impact performance, so we do 10990 # not want this to be the default eventually. Also, we use the 10991 # versioned .so libs for executables only if there is the -brtl 10992 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10993 # To allow for filename-based versioning support, we need to create 10994 # libNAME.so.V as an archive file, containing: 10995 # *) an Import File, referring to the versioned filename of the 10996 # archive as well as the shared archive member, telling the 10997 # bitwidth (32 or 64) of that shared object, and providing the 10998 # list of exported symbols of that shared object, eventually 10999 # decorated with the 'weak' keyword 11000 # *) the shared object with the F_LOADONLY flag set, to really avoid 11001 # it being seen by the linker. 11002 # At run time we better use the real file rather than another symlink, 11003 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11004 11005 case $with_aix_soname,$aix_use_runtimelinking in 11006 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11007 # soname into executable. Probably we can add versioning support to 11008 # collect2, so additional links can be useful in future. 11009 aix,yes) # traditional libtool 11010 dynamic_linker='AIX unversionable lib.so' 11011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11012 # instead of lib<name>.a to let people know that these are not 11013 # typical AIX shared libraries. 11014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11015 ;; 11016 aix,no) # traditional AIX only 11017 dynamic_linker='AIX lib.a(lib.so.V)' 11018 # We preserve .a as extension for shared libraries through AIX4.2 11019 # and later when we are not doing run time linking. 11020 library_names_spec='$libname$release.a $libname.a' 11021 soname_spec='$libname$release$shared_ext$major' 11022 ;; 11023 svr4,*) # full svr4 only 11024 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11025 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11026 # We do not specify a path in Import Files, so LIBPATH fires. 11027 shlibpath_overrides_runpath=yes 11028 ;; 11029 *,yes) # both, prefer svr4 11030 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11031 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11032 # unpreferred sharedlib libNAME.a needs extra handling 11033 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11034 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11035 # We do not specify a path in Import Files, so LIBPATH fires. 11036 shlibpath_overrides_runpath=yes 11037 ;; 11038 *,no) # both, prefer aix 11039 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11040 library_names_spec='$libname$release.a $libname.a' 11041 soname_spec='$libname$release$shared_ext$major' 11042 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11043 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11044 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11045 ;; 11046 esac 11047 shlibpath_var=LIBPATH 11048 fi 11049 ;; 11050 11051amigaos*) 11052 case $host_cpu in 11053 powerpc) 11054 # Since July 2007 AmigaOS4 officially supports .so libraries. 11055 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11057 ;; 11058 m68k) 11059 library_names_spec='$libname.ixlibrary $libname.a' 11060 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11061 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11062 ;; 11063 esac 11064 ;; 11065 11066beos*) 11067 library_names_spec='$libname$shared_ext' 11068 dynamic_linker="$host_os ld.so" 11069 shlibpath_var=LIBRARY_PATH 11070 ;; 11071 11072bsdi[45]*) 11073 version_type=linux # correct to gnu/linux during the next big refactor 11074 need_version=no 11075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11076 soname_spec='$libname$release$shared_ext$major' 11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11078 shlibpath_var=LD_LIBRARY_PATH 11079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11081 # the default ld.so.conf also contains /usr/contrib/lib and 11082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11083 # libtool to hard-code these into programs 11084 ;; 11085 11086cygwin* | mingw* | pw32* | cegcc*) 11087 version_type=windows 11088 shrext_cmds=.dll 11089 need_version=no 11090 need_lib_prefix=no 11091 11092 case $GCC,$cc_basename in 11093 yes,*) 11094 # gcc 11095 library_names_spec='$libname.dll.a' 11096 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11097 postinstall_cmds='base_file=`basename \$file`~ 11098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11099 dldir=$destdir/`dirname \$dlpath`~ 11100 test -d \$dldir || mkdir -p \$dldir~ 11101 $install_prog $dir/$dlname \$dldir/$dlname~ 11102 chmod a+x \$dldir/$dlname~ 11103 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11104 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11105 fi' 11106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11107 dlpath=$dir/\$dldll~ 11108 $RM \$dlpath' 11109 shlibpath_overrides_runpath=yes 11110 11111 case $host_os in 11112 cygwin*) 11113 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11114 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11115 11116 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11117 ;; 11118 mingw* | cegcc*) 11119 # MinGW DLLs use traditional 'lib' prefix 11120 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11121 ;; 11122 pw32*) 11123 # pw32 DLLs use 'pw' prefix rather than 'lib' 11124 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11125 ;; 11126 esac 11127 dynamic_linker='Win32 ld.exe' 11128 ;; 11129 11130 *,cl*) 11131 # Native MSVC 11132 libname_spec='$name' 11133 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11134 library_names_spec='$libname.dll.lib' 11135 11136 case $build_os in 11137 mingw*) 11138 sys_lib_search_path_spec= 11139 lt_save_ifs=$IFS 11140 IFS=';' 11141 for lt_path in $LIB 11142 do 11143 IFS=$lt_save_ifs 11144 # Let DOS variable expansion print the short 8.3 style file name. 11145 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11146 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11147 done 11148 IFS=$lt_save_ifs 11149 # Convert to MSYS style. 11150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11151 ;; 11152 cygwin*) 11153 # Convert to unix form, then to dos form, then back to unix form 11154 # but this time dos style (no spaces!) so that the unix form looks 11155 # like /cygdrive/c/PROGRA~1:/cygdr... 11156 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11157 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11158 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11159 ;; 11160 *) 11161 sys_lib_search_path_spec=$LIB 11162 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11163 # It is most probably a Windows format PATH. 11164 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11165 else 11166 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11167 fi 11168 # FIXME: find the short name or the path components, as spaces are 11169 # common. (e.g. "Program Files" -> "PROGRA~1") 11170 ;; 11171 esac 11172 11173 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11174 postinstall_cmds='base_file=`basename \$file`~ 11175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11176 dldir=$destdir/`dirname \$dlpath`~ 11177 test -d \$dldir || mkdir -p \$dldir~ 11178 $install_prog $dir/$dlname \$dldir/$dlname' 11179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11180 dlpath=$dir/\$dldll~ 11181 $RM \$dlpath' 11182 shlibpath_overrides_runpath=yes 11183 dynamic_linker='Win32 link.exe' 11184 ;; 11185 11186 *) 11187 # Assume MSVC wrapper 11188 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11189 dynamic_linker='Win32 ld.exe' 11190 ;; 11191 esac 11192 # FIXME: first we should search . and the directory the executable is in 11193 shlibpath_var=PATH 11194 ;; 11195 11196darwin* | rhapsody*) 11197 dynamic_linker="$host_os dyld" 11198 version_type=darwin 11199 need_lib_prefix=no 11200 need_version=no 11201 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11202 soname_spec='$libname$release$major$shared_ext' 11203 shlibpath_overrides_runpath=yes 11204 shlibpath_var=DYLD_LIBRARY_PATH 11205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11206 11207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11209 ;; 11210 11211dgux*) 11212 version_type=linux # correct to gnu/linux during the next big refactor 11213 need_lib_prefix=no 11214 need_version=no 11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11216 soname_spec='$libname$release$shared_ext$major' 11217 shlibpath_var=LD_LIBRARY_PATH 11218 ;; 11219 11220freebsd* | dragonfly*) 11221 # DragonFly does not have aout. When/if they implement a new 11222 # versioning mechanism, adjust this. 11223 if test -x /usr/bin/objformat; then 11224 objformat=`/usr/bin/objformat` 11225 else 11226 case $host_os in 11227 freebsd[23].*) objformat=aout ;; 11228 *) objformat=elf ;; 11229 esac 11230 fi 11231 version_type=freebsd-$objformat 11232 case $version_type in 11233 freebsd-elf*) 11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11235 soname_spec='$libname$release$shared_ext$major' 11236 need_version=no 11237 need_lib_prefix=no 11238 ;; 11239 freebsd-*) 11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11241 need_version=yes 11242 ;; 11243 esac 11244 shlibpath_var=LD_LIBRARY_PATH 11245 case $host_os in 11246 freebsd2.*) 11247 shlibpath_overrides_runpath=yes 11248 ;; 11249 freebsd3.[01]* | freebsdelf3.[01]*) 11250 shlibpath_overrides_runpath=yes 11251 hardcode_into_libs=yes 11252 ;; 11253 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11254 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11255 shlibpath_overrides_runpath=no 11256 hardcode_into_libs=yes 11257 ;; 11258 *) # from 4.6 on, and DragonFly 11259 shlibpath_overrides_runpath=yes 11260 hardcode_into_libs=yes 11261 ;; 11262 esac 11263 ;; 11264 11265haiku*) 11266 version_type=linux # correct to gnu/linux during the next big refactor 11267 need_lib_prefix=no 11268 need_version=no 11269 dynamic_linker="$host_os runtime_loader" 11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11271 soname_spec='$libname$release$shared_ext$major' 11272 shlibpath_var=LIBRARY_PATH 11273 shlibpath_overrides_runpath=no 11274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11275 hardcode_into_libs=yes 11276 ;; 11277 11278hpux9* | hpux10* | hpux11*) 11279 # Give a soname corresponding to the major version so that dld.sl refuses to 11280 # link against other versions. 11281 version_type=sunos 11282 need_lib_prefix=no 11283 need_version=no 11284 case $host_cpu in 11285 ia64*) 11286 shrext_cmds='.so' 11287 hardcode_into_libs=yes 11288 dynamic_linker="$host_os dld.so" 11289 shlibpath_var=LD_LIBRARY_PATH 11290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11292 soname_spec='$libname$release$shared_ext$major' 11293 if test 32 = "$HPUX_IA64_MODE"; then 11294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11295 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11296 else 11297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11298 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11299 fi 11300 ;; 11301 hppa*64*) 11302 shrext_cmds='.sl' 11303 hardcode_into_libs=yes 11304 dynamic_linker="$host_os dld.sl" 11305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11308 soname_spec='$libname$release$shared_ext$major' 11309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11311 ;; 11312 *) 11313 shrext_cmds='.sl' 11314 dynamic_linker="$host_os dld.sl" 11315 shlibpath_var=SHLIB_PATH 11316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11318 soname_spec='$libname$release$shared_ext$major' 11319 ;; 11320 esac 11321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11322 postinstall_cmds='chmod 555 $lib' 11323 # or fails outright, so override atomically: 11324 install_override_mode=555 11325 ;; 11326 11327interix[3-9]*) 11328 version_type=linux # correct to gnu/linux during the next big refactor 11329 need_lib_prefix=no 11330 need_version=no 11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11332 soname_spec='$libname$release$shared_ext$major' 11333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11334 shlibpath_var=LD_LIBRARY_PATH 11335 shlibpath_overrides_runpath=no 11336 hardcode_into_libs=yes 11337 ;; 11338 11339irix5* | irix6* | nonstopux*) 11340 case $host_os in 11341 nonstopux*) version_type=nonstopux ;; 11342 *) 11343 if test yes = "$lt_cv_prog_gnu_ld"; then 11344 version_type=linux # correct to gnu/linux during the next big refactor 11345 else 11346 version_type=irix 11347 fi ;; 11348 esac 11349 need_lib_prefix=no 11350 need_version=no 11351 soname_spec='$libname$release$shared_ext$major' 11352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11353 case $host_os in 11354 irix5* | nonstopux*) 11355 libsuff= shlibsuff= 11356 ;; 11357 *) 11358 case $LD in # libtool.m4 will add one of these switches to LD 11359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11360 libsuff= shlibsuff= libmagic=32-bit;; 11361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11362 libsuff=32 shlibsuff=N32 libmagic=N32;; 11363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11364 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11365 *) libsuff= shlibsuff= libmagic=never-match;; 11366 esac 11367 ;; 11368 esac 11369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11370 shlibpath_overrides_runpath=no 11371 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11372 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11373 hardcode_into_libs=yes 11374 ;; 11375 11376# No shared lib support for Linux oldld, aout, or coff. 11377linux*oldld* | linux*aout* | linux*coff*) 11378 dynamic_linker=no 11379 ;; 11380 11381linux*android*) 11382 version_type=none # Android doesn't support versioned libraries. 11383 need_lib_prefix=no 11384 need_version=no 11385 library_names_spec='$libname$release$shared_ext' 11386 soname_spec='$libname$release$shared_ext' 11387 finish_cmds= 11388 shlibpath_var=LD_LIBRARY_PATH 11389 shlibpath_overrides_runpath=yes 11390 11391 # This implies no fast_install, which is unacceptable. 11392 # Some rework will be needed to allow for fast_install 11393 # before this can be enabled. 11394 hardcode_into_libs=yes 11395 11396 dynamic_linker='Android linker' 11397 # Don't embed -rpath directories since the linker doesn't support them. 11398 hardcode_libdir_flag_spec='-L$libdir' 11399 ;; 11400 11401# This must be glibc/ELF. 11402linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11403 version_type=linux # correct to gnu/linux during the next big refactor 11404 need_lib_prefix=no 11405 need_version=no 11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11407 soname_spec='$libname$release$shared_ext$major' 11408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11409 shlibpath_var=LD_LIBRARY_PATH 11410 shlibpath_overrides_runpath=no 11411 11412 # Some binutils ld are patched to set DT_RUNPATH 11413 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11414 $as_echo_n "(cached) " >&6 11415else 11416 lt_cv_shlibpath_overrides_runpath=no 11417 save_LDFLAGS=$LDFLAGS 11418 save_libdir=$libdir 11419 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11420 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11422/* end confdefs.h. */ 11423 11424int 11425main () 11426{ 11427 11428 ; 11429 return 0; 11430} 11431_ACEOF 11432if ac_fn_c_try_link "$LINENO"; then : 11433 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11434 lt_cv_shlibpath_overrides_runpath=yes 11435fi 11436fi 11437rm -f core conftest.err conftest.$ac_objext \ 11438 conftest$ac_exeext conftest.$ac_ext 11439 LDFLAGS=$save_LDFLAGS 11440 libdir=$save_libdir 11441 11442fi 11443 11444 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11445 11446 # This implies no fast_install, which is unacceptable. 11447 # Some rework will be needed to allow for fast_install 11448 # before this can be enabled. 11449 hardcode_into_libs=yes 11450 11451 # Ideally, we could use ldconfig to report *all* directores which are 11452 # searched for libraries, however this is still not possible. Aside from not 11453 # being certain /sbin/ldconfig is available, command 11454 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11455 # even though it is searched at run-time. Try to do the best guess by 11456 # appending ld.so.conf contents (and includes) to the search path. 11457 if test -f /etc/ld.so.conf; then 11458 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' ' '` 11459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11460 fi 11461 11462 # We used to test for /lib/ld.so.1 and disable shared libraries on 11463 # powerpc, because MkLinux only supported shared libraries with the 11464 # GNU dynamic linker. Since this was broken with cross compilers, 11465 # most powerpc-linux boxes support dynamic linking these days and 11466 # people can always --disable-shared, the test was removed, and we 11467 # assume the GNU/Linux dynamic linker is in use. 11468 dynamic_linker='GNU/Linux ld.so' 11469 ;; 11470 11471netbsd*) 11472 version_type=sunos 11473 need_lib_prefix=no 11474 need_version=no 11475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11478 dynamic_linker='NetBSD (a.out) ld.so' 11479 else 11480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11481 soname_spec='$libname$release$shared_ext$major' 11482 dynamic_linker='NetBSD ld.elf_so' 11483 fi 11484 shlibpath_var=LD_LIBRARY_PATH 11485 shlibpath_overrides_runpath=yes 11486 hardcode_into_libs=yes 11487 ;; 11488 11489newsos6) 11490 version_type=linux # correct to gnu/linux during the next big refactor 11491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11492 shlibpath_var=LD_LIBRARY_PATH 11493 shlibpath_overrides_runpath=yes 11494 ;; 11495 11496*nto* | *qnx*) 11497 version_type=qnx 11498 need_lib_prefix=no 11499 need_version=no 11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11501 soname_spec='$libname$release$shared_ext$major' 11502 shlibpath_var=LD_LIBRARY_PATH 11503 shlibpath_overrides_runpath=no 11504 hardcode_into_libs=yes 11505 dynamic_linker='ldqnx.so' 11506 ;; 11507 11508openbsd* | bitrig*) 11509 version_type=sunos 11510 sys_lib_dlsearch_path_spec=/usr/lib 11511 need_lib_prefix=no 11512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11513 need_version=no 11514 else 11515 need_version=yes 11516 fi 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11519 shlibpath_var=LD_LIBRARY_PATH 11520 shlibpath_overrides_runpath=yes 11521 ;; 11522 11523os2*) 11524 libname_spec='$name' 11525 version_type=windows 11526 shrext_cmds=.dll 11527 need_version=no 11528 need_lib_prefix=no 11529 # OS/2 can only load a DLL with a base name of 8 characters or less. 11530 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11531 v=$($ECHO $release$versuffix | tr -d .-); 11532 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11533 $ECHO $n$v`$shared_ext' 11534 library_names_spec='${libname}_dll.$libext' 11535 dynamic_linker='OS/2 ld.exe' 11536 shlibpath_var=BEGINLIBPATH 11537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11539 postinstall_cmds='base_file=`basename \$file`~ 11540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11541 dldir=$destdir/`dirname \$dlpath`~ 11542 test -d \$dldir || mkdir -p \$dldir~ 11543 $install_prog $dir/$dlname \$dldir/$dlname~ 11544 chmod a+x \$dldir/$dlname~ 11545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11547 fi' 11548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11549 dlpath=$dir/\$dldll~ 11550 $RM \$dlpath' 11551 ;; 11552 11553osf3* | osf4* | osf5*) 11554 version_type=osf 11555 need_lib_prefix=no 11556 need_version=no 11557 soname_spec='$libname$release$shared_ext$major' 11558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11562 ;; 11563 11564rdos*) 11565 dynamic_linker=no 11566 ;; 11567 11568solaris*) 11569 version_type=linux # correct to gnu/linux during the next big refactor 11570 need_lib_prefix=no 11571 need_version=no 11572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11573 soname_spec='$libname$release$shared_ext$major' 11574 shlibpath_var=LD_LIBRARY_PATH 11575 shlibpath_overrides_runpath=yes 11576 hardcode_into_libs=yes 11577 # ldd complains unless libraries are executable 11578 postinstall_cmds='chmod +x $lib' 11579 ;; 11580 11581sunos4*) 11582 version_type=sunos 11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11585 shlibpath_var=LD_LIBRARY_PATH 11586 shlibpath_overrides_runpath=yes 11587 if test yes = "$with_gnu_ld"; then 11588 need_lib_prefix=no 11589 fi 11590 need_version=yes 11591 ;; 11592 11593sysv4 | sysv4.3*) 11594 version_type=linux # correct to gnu/linux during the next big refactor 11595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11596 soname_spec='$libname$release$shared_ext$major' 11597 shlibpath_var=LD_LIBRARY_PATH 11598 case $host_vendor in 11599 sni) 11600 shlibpath_overrides_runpath=no 11601 need_lib_prefix=no 11602 runpath_var=LD_RUN_PATH 11603 ;; 11604 siemens) 11605 need_lib_prefix=no 11606 ;; 11607 motorola) 11608 need_lib_prefix=no 11609 need_version=no 11610 shlibpath_overrides_runpath=no 11611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11612 ;; 11613 esac 11614 ;; 11615 11616sysv4*MP*) 11617 if test -d /usr/nec; then 11618 version_type=linux # correct to gnu/linux during the next big refactor 11619 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11620 soname_spec='$libname$shared_ext.$major' 11621 shlibpath_var=LD_LIBRARY_PATH 11622 fi 11623 ;; 11624 11625sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11626 version_type=sco 11627 need_lib_prefix=no 11628 need_version=no 11629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11630 soname_spec='$libname$release$shared_ext$major' 11631 shlibpath_var=LD_LIBRARY_PATH 11632 shlibpath_overrides_runpath=yes 11633 hardcode_into_libs=yes 11634 if test yes = "$with_gnu_ld"; then 11635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11636 else 11637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11638 case $host_os in 11639 sco3.2v5*) 11640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11641 ;; 11642 esac 11643 fi 11644 sys_lib_dlsearch_path_spec='/usr/lib' 11645 ;; 11646 11647tpf*) 11648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11649 version_type=linux # correct to gnu/linux during the next big refactor 11650 need_lib_prefix=no 11651 need_version=no 11652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11653 shlibpath_var=LD_LIBRARY_PATH 11654 shlibpath_overrides_runpath=no 11655 hardcode_into_libs=yes 11656 ;; 11657 11658uts4*) 11659 version_type=linux # correct to gnu/linux during the next big refactor 11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11661 soname_spec='$libname$release$shared_ext$major' 11662 shlibpath_var=LD_LIBRARY_PATH 11663 ;; 11664 11665*) 11666 dynamic_linker=no 11667 ;; 11668esac 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11670$as_echo "$dynamic_linker" >&6; } 11671test no = "$dynamic_linker" && can_build_shared=no 11672 11673variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11674if test yes = "$GCC"; then 11675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11676fi 11677 11678if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11679 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11680fi 11681 11682if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11683 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11684fi 11685 11686# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11687configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11688 11689# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11690func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11691 11692# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11693configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11792$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11793hardcode_action= 11794if test -n "$hardcode_libdir_flag_spec" || 11795 test -n "$runpath_var" || 11796 test yes = "$hardcode_automatic"; then 11797 11798 # We can hardcode non-existent directories. 11799 if test no != "$hardcode_direct" && 11800 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11801 # have to relink, otherwise we might link with an installed library 11802 # when we should be linking with a yet-to-be-installed one 11803 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11804 test no != "$hardcode_minus_L"; then 11805 # Linking always hardcodes the temporary library directory. 11806 hardcode_action=relink 11807 else 11808 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11809 hardcode_action=immediate 11810 fi 11811else 11812 # We cannot hardcode anything, or else we can only hardcode existing 11813 # directories. 11814 hardcode_action=unsupported 11815fi 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11817$as_echo "$hardcode_action" >&6; } 11818 11819if test relink = "$hardcode_action" || 11820 test yes = "$inherit_rpath"; then 11821 # Fast installation is not supported 11822 enable_fast_install=no 11823elif test yes = "$shlibpath_overrides_runpath" || 11824 test no = "$enable_shared"; then 11825 # Fast installation is not necessary 11826 enable_fast_install=needless 11827fi 11828 11829 11830 11831 11832 11833 11834 if test yes != "$enable_dlopen"; then 11835 enable_dlopen=unknown 11836 enable_dlopen_self=unknown 11837 enable_dlopen_self_static=unknown 11838else 11839 lt_cv_dlopen=no 11840 lt_cv_dlopen_libs= 11841 11842 case $host_os in 11843 beos*) 11844 lt_cv_dlopen=load_add_on 11845 lt_cv_dlopen_libs= 11846 lt_cv_dlopen_self=yes 11847 ;; 11848 11849 mingw* | pw32* | cegcc*) 11850 lt_cv_dlopen=LoadLibrary 11851 lt_cv_dlopen_libs= 11852 ;; 11853 11854 cygwin*) 11855 lt_cv_dlopen=dlopen 11856 lt_cv_dlopen_libs= 11857 ;; 11858 11859 darwin*) 11860 # if libdl is installed we need to link against it 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11862$as_echo_n "checking for dlopen in -ldl... " >&6; } 11863if ${ac_cv_lib_dl_dlopen+:} false; then : 11864 $as_echo_n "(cached) " >&6 11865else 11866 ac_check_lib_save_LIBS=$LIBS 11867LIBS="-ldl $LIBS" 11868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11869/* end confdefs.h. */ 11870 11871/* Override any GCC internal prototype to avoid an error. 11872 Use char because int might match the return type of a GCC 11873 builtin and then its argument prototype would still apply. */ 11874#ifdef __cplusplus 11875extern "C" 11876#endif 11877char dlopen (); 11878int 11879main () 11880{ 11881return dlopen (); 11882 ; 11883 return 0; 11884} 11885_ACEOF 11886if ac_fn_c_try_link "$LINENO"; then : 11887 ac_cv_lib_dl_dlopen=yes 11888else 11889 ac_cv_lib_dl_dlopen=no 11890fi 11891rm -f core conftest.err conftest.$ac_objext \ 11892 conftest$ac_exeext conftest.$ac_ext 11893LIBS=$ac_check_lib_save_LIBS 11894fi 11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11896$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11897if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11899else 11900 11901 lt_cv_dlopen=dyld 11902 lt_cv_dlopen_libs= 11903 lt_cv_dlopen_self=yes 11904 11905fi 11906 11907 ;; 11908 11909 tpf*) 11910 # Don't try to run any link tests for TPF. We know it's impossible 11911 # because TPF is a cross-compiler, and we know how we open DSOs. 11912 lt_cv_dlopen=dlopen 11913 lt_cv_dlopen_libs= 11914 lt_cv_dlopen_self=no 11915 ;; 11916 11917 *) 11918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11919if test "x$ac_cv_func_shl_load" = xyes; then : 11920 lt_cv_dlopen=shl_load 11921else 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11923$as_echo_n "checking for shl_load in -ldld... " >&6; } 11924if ${ac_cv_lib_dld_shl_load+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 ac_check_lib_save_LIBS=$LIBS 11928LIBS="-ldld $LIBS" 11929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11930/* end confdefs.h. */ 11931 11932/* Override any GCC internal prototype to avoid an error. 11933 Use char because int might match the return type of a GCC 11934 builtin and then its argument prototype would still apply. */ 11935#ifdef __cplusplus 11936extern "C" 11937#endif 11938char shl_load (); 11939int 11940main () 11941{ 11942return shl_load (); 11943 ; 11944 return 0; 11945} 11946_ACEOF 11947if ac_fn_c_try_link "$LINENO"; then : 11948 ac_cv_lib_dld_shl_load=yes 11949else 11950 ac_cv_lib_dld_shl_load=no 11951fi 11952rm -f core conftest.err conftest.$ac_objext \ 11953 conftest$ac_exeext conftest.$ac_ext 11954LIBS=$ac_check_lib_save_LIBS 11955fi 11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11957$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11958if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11959 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11960else 11961 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11962if test "x$ac_cv_func_dlopen" = xyes; then : 11963 lt_cv_dlopen=dlopen 11964else 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11966$as_echo_n "checking for dlopen in -ldl... " >&6; } 11967if ${ac_cv_lib_dl_dlopen+:} false; then : 11968 $as_echo_n "(cached) " >&6 11969else 11970 ac_check_lib_save_LIBS=$LIBS 11971LIBS="-ldl $LIBS" 11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974 11975/* Override any GCC internal prototype to avoid an error. 11976 Use char because int might match the return type of a GCC 11977 builtin and then its argument prototype would still apply. */ 11978#ifdef __cplusplus 11979extern "C" 11980#endif 11981char dlopen (); 11982int 11983main () 11984{ 11985return dlopen (); 11986 ; 11987 return 0; 11988} 11989_ACEOF 11990if ac_fn_c_try_link "$LINENO"; then : 11991 ac_cv_lib_dl_dlopen=yes 11992else 11993 ac_cv_lib_dl_dlopen=no 11994fi 11995rm -f core conftest.err conftest.$ac_objext \ 11996 conftest$ac_exeext conftest.$ac_ext 11997LIBS=$ac_check_lib_save_LIBS 11998fi 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12000$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12001if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12002 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12003else 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12005$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12006if ${ac_cv_lib_svld_dlopen+:} false; then : 12007 $as_echo_n "(cached) " >&6 12008else 12009 ac_check_lib_save_LIBS=$LIBS 12010LIBS="-lsvld $LIBS" 12011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12012/* end confdefs.h. */ 12013 12014/* Override any GCC internal prototype to avoid an error. 12015 Use char because int might match the return type of a GCC 12016 builtin and then its argument prototype would still apply. */ 12017#ifdef __cplusplus 12018extern "C" 12019#endif 12020char dlopen (); 12021int 12022main () 12023{ 12024return dlopen (); 12025 ; 12026 return 0; 12027} 12028_ACEOF 12029if ac_fn_c_try_link "$LINENO"; then : 12030 ac_cv_lib_svld_dlopen=yes 12031else 12032 ac_cv_lib_svld_dlopen=no 12033fi 12034rm -f core conftest.err conftest.$ac_objext \ 12035 conftest$ac_exeext conftest.$ac_ext 12036LIBS=$ac_check_lib_save_LIBS 12037fi 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12039$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12040if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12041 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12042else 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12044$as_echo_n "checking for dld_link in -ldld... " >&6; } 12045if ${ac_cv_lib_dld_dld_link+:} false; then : 12046 $as_echo_n "(cached) " >&6 12047else 12048 ac_check_lib_save_LIBS=$LIBS 12049LIBS="-ldld $LIBS" 12050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052 12053/* Override any GCC internal prototype to avoid an error. 12054 Use char because int might match the return type of a GCC 12055 builtin and then its argument prototype would still apply. */ 12056#ifdef __cplusplus 12057extern "C" 12058#endif 12059char dld_link (); 12060int 12061main () 12062{ 12063return dld_link (); 12064 ; 12065 return 0; 12066} 12067_ACEOF 12068if ac_fn_c_try_link "$LINENO"; then : 12069 ac_cv_lib_dld_dld_link=yes 12070else 12071 ac_cv_lib_dld_dld_link=no 12072fi 12073rm -f core conftest.err conftest.$ac_objext \ 12074 conftest$ac_exeext conftest.$ac_ext 12075LIBS=$ac_check_lib_save_LIBS 12076fi 12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12078$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12079if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12080 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12081fi 12082 12083 12084fi 12085 12086 12087fi 12088 12089 12090fi 12091 12092 12093fi 12094 12095 12096fi 12097 12098 ;; 12099 esac 12100 12101 if test no = "$lt_cv_dlopen"; then 12102 enable_dlopen=no 12103 else 12104 enable_dlopen=yes 12105 fi 12106 12107 case $lt_cv_dlopen in 12108 dlopen) 12109 save_CPPFLAGS=$CPPFLAGS 12110 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12111 12112 save_LDFLAGS=$LDFLAGS 12113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12114 12115 save_LIBS=$LIBS 12116 LIBS="$lt_cv_dlopen_libs $LIBS" 12117 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12119$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12120if ${lt_cv_dlopen_self+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122else 12123 if test yes = "$cross_compiling"; then : 12124 lt_cv_dlopen_self=cross 12125else 12126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12127 lt_status=$lt_dlunknown 12128 cat > conftest.$ac_ext <<_LT_EOF 12129#line $LINENO "configure" 12130#include "confdefs.h" 12131 12132#if HAVE_DLFCN_H 12133#include <dlfcn.h> 12134#endif 12135 12136#include <stdio.h> 12137 12138#ifdef RTLD_GLOBAL 12139# define LT_DLGLOBAL RTLD_GLOBAL 12140#else 12141# ifdef DL_GLOBAL 12142# define LT_DLGLOBAL DL_GLOBAL 12143# else 12144# define LT_DLGLOBAL 0 12145# endif 12146#endif 12147 12148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12149 find out it does not work in some platform. */ 12150#ifndef LT_DLLAZY_OR_NOW 12151# ifdef RTLD_LAZY 12152# define LT_DLLAZY_OR_NOW RTLD_LAZY 12153# else 12154# ifdef DL_LAZY 12155# define LT_DLLAZY_OR_NOW DL_LAZY 12156# else 12157# ifdef RTLD_NOW 12158# define LT_DLLAZY_OR_NOW RTLD_NOW 12159# else 12160# ifdef DL_NOW 12161# define LT_DLLAZY_OR_NOW DL_NOW 12162# else 12163# define LT_DLLAZY_OR_NOW 0 12164# endif 12165# endif 12166# endif 12167# endif 12168#endif 12169 12170/* When -fvisibility=hidden is used, assume the code has been annotated 12171 correspondingly for the symbols needed. */ 12172#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12173int fnord () __attribute__((visibility("default"))); 12174#endif 12175 12176int fnord () { return 42; } 12177int main () 12178{ 12179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12180 int status = $lt_dlunknown; 12181 12182 if (self) 12183 { 12184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12185 else 12186 { 12187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12188 else puts (dlerror ()); 12189 } 12190 /* dlclose (self); */ 12191 } 12192 else 12193 puts (dlerror ()); 12194 12195 return status; 12196} 12197_LT_EOF 12198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12199 (eval $ac_link) 2>&5 12200 ac_status=$? 12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12202 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12203 (./conftest; exit; ) >&5 2>/dev/null 12204 lt_status=$? 12205 case x$lt_status in 12206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12209 esac 12210 else : 12211 # compilation failed 12212 lt_cv_dlopen_self=no 12213 fi 12214fi 12215rm -fr conftest* 12216 12217 12218fi 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12220$as_echo "$lt_cv_dlopen_self" >&6; } 12221 12222 if test yes = "$lt_cv_dlopen_self"; then 12223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12225$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12226if ${lt_cv_dlopen_self_static+:} false; then : 12227 $as_echo_n "(cached) " >&6 12228else 12229 if test yes = "$cross_compiling"; then : 12230 lt_cv_dlopen_self_static=cross 12231else 12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12233 lt_status=$lt_dlunknown 12234 cat > conftest.$ac_ext <<_LT_EOF 12235#line $LINENO "configure" 12236#include "confdefs.h" 12237 12238#if HAVE_DLFCN_H 12239#include <dlfcn.h> 12240#endif 12241 12242#include <stdio.h> 12243 12244#ifdef RTLD_GLOBAL 12245# define LT_DLGLOBAL RTLD_GLOBAL 12246#else 12247# ifdef DL_GLOBAL 12248# define LT_DLGLOBAL DL_GLOBAL 12249# else 12250# define LT_DLGLOBAL 0 12251# endif 12252#endif 12253 12254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12255 find out it does not work in some platform. */ 12256#ifndef LT_DLLAZY_OR_NOW 12257# ifdef RTLD_LAZY 12258# define LT_DLLAZY_OR_NOW RTLD_LAZY 12259# else 12260# ifdef DL_LAZY 12261# define LT_DLLAZY_OR_NOW DL_LAZY 12262# else 12263# ifdef RTLD_NOW 12264# define LT_DLLAZY_OR_NOW RTLD_NOW 12265# else 12266# ifdef DL_NOW 12267# define LT_DLLAZY_OR_NOW DL_NOW 12268# else 12269# define LT_DLLAZY_OR_NOW 0 12270# endif 12271# endif 12272# endif 12273# endif 12274#endif 12275 12276/* When -fvisibility=hidden is used, assume the code has been annotated 12277 correspondingly for the symbols needed. */ 12278#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12279int fnord () __attribute__((visibility("default"))); 12280#endif 12281 12282int fnord () { return 42; } 12283int main () 12284{ 12285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12286 int status = $lt_dlunknown; 12287 12288 if (self) 12289 { 12290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12291 else 12292 { 12293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12294 else puts (dlerror ()); 12295 } 12296 /* dlclose (self); */ 12297 } 12298 else 12299 puts (dlerror ()); 12300 12301 return status; 12302} 12303_LT_EOF 12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12305 (eval $ac_link) 2>&5 12306 ac_status=$? 12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12308 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12309 (./conftest; exit; ) >&5 2>/dev/null 12310 lt_status=$? 12311 case x$lt_status in 12312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12315 esac 12316 else : 12317 # compilation failed 12318 lt_cv_dlopen_self_static=no 12319 fi 12320fi 12321rm -fr conftest* 12322 12323 12324fi 12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12326$as_echo "$lt_cv_dlopen_self_static" >&6; } 12327 fi 12328 12329 CPPFLAGS=$save_CPPFLAGS 12330 LDFLAGS=$save_LDFLAGS 12331 LIBS=$save_LIBS 12332 ;; 12333 esac 12334 12335 case $lt_cv_dlopen_self in 12336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12337 *) enable_dlopen_self=unknown ;; 12338 esac 12339 12340 case $lt_cv_dlopen_self_static in 12341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12342 *) enable_dlopen_self_static=unknown ;; 12343 esac 12344fi 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362striplib= 12363old_striplib= 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12365$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12366if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12368 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12370$as_echo "yes" >&6; } 12371else 12372# FIXME - insert some real tests, host_os isn't really good enough 12373 case $host_os in 12374 darwin*) 12375 if test -n "$STRIP"; then 12376 striplib="$STRIP -x" 12377 old_striplib="$STRIP -S" 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12379$as_echo "yes" >&6; } 12380 else 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12382$as_echo "no" >&6; } 12383 fi 12384 ;; 12385 *) 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12387$as_echo "no" >&6; } 12388 ;; 12389 esac 12390fi 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 # Report what library types will actually be built 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12405$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12407$as_echo "$can_build_shared" >&6; } 12408 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12410$as_echo_n "checking whether to build shared libraries... " >&6; } 12411 test no = "$can_build_shared" && enable_shared=no 12412 12413 # On AIX, shared libraries and static libraries use the same namespace, and 12414 # are all built from PIC. 12415 case $host_os in 12416 aix3*) 12417 test yes = "$enable_shared" && enable_static=no 12418 if test -n "$RANLIB"; then 12419 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12420 postinstall_cmds='$RANLIB $lib' 12421 fi 12422 ;; 12423 12424 aix[4-9]*) 12425 if test ia64 != "$host_cpu"; then 12426 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12427 yes,aix,yes) ;; # shared object as lib.so file only 12428 yes,svr4,*) ;; # shared object as lib.so archive member only 12429 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12430 esac 12431 fi 12432 ;; 12433 esac 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12435$as_echo "$enable_shared" >&6; } 12436 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12438$as_echo_n "checking whether to build static libraries... " >&6; } 12439 # Make sure either enable_shared or enable_static is yes. 12440 test yes = "$enable_shared" || enable_static=yes 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12442$as_echo "$enable_static" >&6; } 12443 12444 12445 12446 12447fi 12448ac_ext=c 12449ac_cpp='$CPP $CPPFLAGS' 12450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12452ac_compiler_gnu=$ac_cv_c_compiler_gnu 12453 12454CC=$lt_save_CC 12455 12456 if test -n "$CXX" && ( test no != "$CXX" && 12457 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12458 (test g++ != "$CXX"))); then 12459 ac_ext=cpp 12460ac_cpp='$CXXCPP $CPPFLAGS' 12461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12465$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12466if test -z "$CXXCPP"; then 12467 if ${ac_cv_prog_CXXCPP+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 # Double quotes because CXXCPP needs to be expanded 12471 for CXXCPP in "$CXX -E" "/lib/cpp" 12472 do 12473 ac_preproc_ok=false 12474for ac_cxx_preproc_warn_flag in '' yes 12475do 12476 # Use a header file that comes with gcc, so configuring glibc 12477 # with a fresh cross-compiler works. 12478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12479 # <limits.h> exists even on freestanding compilers. 12480 # On the NeXT, cc -E runs the code through the compiler's parser, 12481 # not just through cpp. "Syntax error" is here to catch this case. 12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12483/* end confdefs.h. */ 12484#ifdef __STDC__ 12485# include <limits.h> 12486#else 12487# include <assert.h> 12488#endif 12489 Syntax error 12490_ACEOF 12491if ac_fn_cxx_try_cpp "$LINENO"; then : 12492 12493else 12494 # Broken: fails on valid input. 12495continue 12496fi 12497rm -f conftest.err conftest.i conftest.$ac_ext 12498 12499 # OK, works on sane cases. Now check whether nonexistent headers 12500 # can be detected and how. 12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12502/* end confdefs.h. */ 12503#include <ac_nonexistent.h> 12504_ACEOF 12505if ac_fn_cxx_try_cpp "$LINENO"; then : 12506 # Broken: success on invalid input. 12507continue 12508else 12509 # Passes both tests. 12510ac_preproc_ok=: 12511break 12512fi 12513rm -f conftest.err conftest.i conftest.$ac_ext 12514 12515done 12516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12517rm -f conftest.i conftest.err conftest.$ac_ext 12518if $ac_preproc_ok; then : 12519 break 12520fi 12521 12522 done 12523 ac_cv_prog_CXXCPP=$CXXCPP 12524 12525fi 12526 CXXCPP=$ac_cv_prog_CXXCPP 12527else 12528 ac_cv_prog_CXXCPP=$CXXCPP 12529fi 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12531$as_echo "$CXXCPP" >&6; } 12532ac_preproc_ok=false 12533for ac_cxx_preproc_warn_flag in '' yes 12534do 12535 # Use a header file that comes with gcc, so configuring glibc 12536 # with a fresh cross-compiler works. 12537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12538 # <limits.h> exists even on freestanding compilers. 12539 # On the NeXT, cc -E runs the code through the compiler's parser, 12540 # not just through cpp. "Syntax error" is here to catch this case. 12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12542/* end confdefs.h. */ 12543#ifdef __STDC__ 12544# include <limits.h> 12545#else 12546# include <assert.h> 12547#endif 12548 Syntax error 12549_ACEOF 12550if ac_fn_cxx_try_cpp "$LINENO"; then : 12551 12552else 12553 # Broken: fails on valid input. 12554continue 12555fi 12556rm -f conftest.err conftest.i conftest.$ac_ext 12557 12558 # OK, works on sane cases. Now check whether nonexistent headers 12559 # can be detected and how. 12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562#include <ac_nonexistent.h> 12563_ACEOF 12564if ac_fn_cxx_try_cpp "$LINENO"; then : 12565 # Broken: success on invalid input. 12566continue 12567else 12568 # Passes both tests. 12569ac_preproc_ok=: 12570break 12571fi 12572rm -f conftest.err conftest.i conftest.$ac_ext 12573 12574done 12575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12576rm -f conftest.i conftest.err conftest.$ac_ext 12577if $ac_preproc_ok; then : 12578 12579else 12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12582as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12583See \`config.log' for more details" "$LINENO" 5; } 12584fi 12585 12586ac_ext=c 12587ac_cpp='$CPP $CPPFLAGS' 12588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12590ac_compiler_gnu=$ac_cv_c_compiler_gnu 12591 12592else 12593 _lt_caught_CXX_error=yes 12594fi 12595 12596ac_ext=cpp 12597ac_cpp='$CXXCPP $CPPFLAGS' 12598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12601 12602archive_cmds_need_lc_CXX=no 12603allow_undefined_flag_CXX= 12604always_export_symbols_CXX=no 12605archive_expsym_cmds_CXX= 12606compiler_needs_object_CXX=no 12607export_dynamic_flag_spec_CXX= 12608hardcode_direct_CXX=no 12609hardcode_direct_absolute_CXX=no 12610hardcode_libdir_flag_spec_CXX= 12611hardcode_libdir_separator_CXX= 12612hardcode_minus_L_CXX=no 12613hardcode_shlibpath_var_CXX=unsupported 12614hardcode_automatic_CXX=no 12615inherit_rpath_CXX=no 12616module_cmds_CXX= 12617module_expsym_cmds_CXX= 12618link_all_deplibs_CXX=unknown 12619old_archive_cmds_CXX=$old_archive_cmds 12620reload_flag_CXX=$reload_flag 12621reload_cmds_CXX=$reload_cmds 12622no_undefined_flag_CXX= 12623whole_archive_flag_spec_CXX= 12624enable_shared_with_static_runtimes_CXX=no 12625 12626# Source file extension for C++ test sources. 12627ac_ext=cpp 12628 12629# Object file extension for compiled C++ test sources. 12630objext=o 12631objext_CXX=$objext 12632 12633# No sense in running all these tests if we already determined that 12634# the CXX compiler isn't working. Some variables (like enable_shared) 12635# are currently assumed to apply to all compilers on this platform, 12636# and will be corrupted by setting them based on a non-working compiler. 12637if test yes != "$_lt_caught_CXX_error"; then 12638 # Code to be used in simple compile tests 12639 lt_simple_compile_test_code="int some_variable = 0;" 12640 12641 # Code to be used in simple link tests 12642 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12643 12644 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12645 12646 12647 12648 12649 12650 12651# If no C compiler was specified, use CC. 12652LTCC=${LTCC-"$CC"} 12653 12654# If no C compiler flags were specified, use CFLAGS. 12655LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12656 12657# Allow CC to be a program name with arguments. 12658compiler=$CC 12659 12660 12661 # save warnings/boilerplate of simple test code 12662 ac_outfile=conftest.$ac_objext 12663echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12665_lt_compiler_boilerplate=`cat conftest.err` 12666$RM conftest* 12667 12668 ac_outfile=conftest.$ac_objext 12669echo "$lt_simple_link_test_code" >conftest.$ac_ext 12670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12671_lt_linker_boilerplate=`cat conftest.err` 12672$RM -r conftest* 12673 12674 12675 # Allow CC to be a program name with arguments. 12676 lt_save_CC=$CC 12677 lt_save_CFLAGS=$CFLAGS 12678 lt_save_LD=$LD 12679 lt_save_GCC=$GCC 12680 GCC=$GXX 12681 lt_save_with_gnu_ld=$with_gnu_ld 12682 lt_save_path_LD=$lt_cv_path_LD 12683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12684 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12685 else 12686 $as_unset lt_cv_prog_gnu_ld 12687 fi 12688 if test -n "${lt_cv_path_LDCXX+set}"; then 12689 lt_cv_path_LD=$lt_cv_path_LDCXX 12690 else 12691 $as_unset lt_cv_path_LD 12692 fi 12693 test -z "${LDCXX+set}" || LD=$LDCXX 12694 CC=${CXX-"c++"} 12695 CFLAGS=$CXXFLAGS 12696 compiler=$CC 12697 compiler_CXX=$CC 12698 func_cc_basename $compiler 12699cc_basename=$func_cc_basename_result 12700 12701 12702 if test -n "$compiler"; then 12703 # We don't want -fno-exception when compiling C++ code, so set the 12704 # no_builtin_flag separately 12705 if test yes = "$GXX"; then 12706 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12707 else 12708 lt_prog_compiler_no_builtin_flag_CXX= 12709 fi 12710 12711 if test yes = "$GXX"; then 12712 # Set up default GNU C++ configuration 12713 12714 12715 12716# Check whether --with-gnu-ld was given. 12717if test "${with_gnu_ld+set}" = set; then : 12718 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12719else 12720 with_gnu_ld=no 12721fi 12722 12723ac_prog=ld 12724if test yes = "$GCC"; then 12725 # Check if gcc -print-prog-name=ld gives a path. 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12727$as_echo_n "checking for ld used by $CC... " >&6; } 12728 case $host in 12729 *-*-mingw*) 12730 # gcc leaves a trailing carriage return, which upsets mingw 12731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12732 *) 12733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12734 esac 12735 case $ac_prog in 12736 # Accept absolute paths. 12737 [\\/]* | ?:[\\/]*) 12738 re_direlt='/[^/][^/]*/\.\./' 12739 # Canonicalize the pathname of ld 12740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12743 done 12744 test -z "$LD" && LD=$ac_prog 12745 ;; 12746 "") 12747 # If it fails, then pretend we aren't using GCC. 12748 ac_prog=ld 12749 ;; 12750 *) 12751 # If it is relative, then search for the first ld in PATH. 12752 with_gnu_ld=unknown 12753 ;; 12754 esac 12755elif test yes = "$with_gnu_ld"; then 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12757$as_echo_n "checking for GNU ld... " >&6; } 12758else 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12760$as_echo_n "checking for non-GNU ld... " >&6; } 12761fi 12762if ${lt_cv_path_LD+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 if test -z "$LD"; then 12766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12767 for ac_dir in $PATH; do 12768 IFS=$lt_save_ifs 12769 test -z "$ac_dir" && ac_dir=. 12770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12771 lt_cv_path_LD=$ac_dir/$ac_prog 12772 # Check to see if the program is GNU ld. I'd rather use --version, 12773 # but apparently some variants of GNU ld only accept -v. 12774 # Break only if it was the GNU/non-GNU ld that we prefer. 12775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12776 *GNU* | *'with BFD'*) 12777 test no != "$with_gnu_ld" && break 12778 ;; 12779 *) 12780 test yes != "$with_gnu_ld" && break 12781 ;; 12782 esac 12783 fi 12784 done 12785 IFS=$lt_save_ifs 12786else 12787 lt_cv_path_LD=$LD # Let the user override the test with a path. 12788fi 12789fi 12790 12791LD=$lt_cv_path_LD 12792if test -n "$LD"; then 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12794$as_echo "$LD" >&6; } 12795else 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12797$as_echo "no" >&6; } 12798fi 12799test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12801$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12802if ${lt_cv_prog_gnu_ld+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804else 12805 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12806case `$LD -v 2>&1 </dev/null` in 12807*GNU* | *'with BFD'*) 12808 lt_cv_prog_gnu_ld=yes 12809 ;; 12810*) 12811 lt_cv_prog_gnu_ld=no 12812 ;; 12813esac 12814fi 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12816$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12817with_gnu_ld=$lt_cv_prog_gnu_ld 12818 12819 12820 12821 12822 12823 12824 12825 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12826 # archiving commands below assume that GNU ld is being used. 12827 if test yes = "$with_gnu_ld"; then 12828 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 12829 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' 12830 12831 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 12832 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12833 12834 # If archive_cmds runs LD, not CC, wlarc should be empty 12835 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12836 # investigate it a little bit more. (MM) 12837 wlarc='$wl' 12838 12839 # ancient GNU ld didn't support --whole-archive et. al. 12840 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12841 $GREP 'no-whole-archive' > /dev/null; then 12842 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12843 else 12844 whole_archive_flag_spec_CXX= 12845 fi 12846 else 12847 with_gnu_ld=no 12848 wlarc= 12849 12850 # A generic and very simple default shared library creation 12851 # command for GNU C++ for the case where it uses the native 12852 # linker, instead of GNU ld. If possible, this setting should 12853 # overridden to take advantage of the native linker features on 12854 # the platform it is being used on. 12855 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12856 fi 12857 12858 # Commands to make compiler produce verbose output that lists 12859 # what "hidden" libraries, object files and flags are used when 12860 # linking a shared library. 12861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12862 12863 else 12864 GXX=no 12865 with_gnu_ld=no 12866 wlarc= 12867 fi 12868 12869 # PORTME: fill in a description of your system's C++ link characteristics 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12871$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12872 ld_shlibs_CXX=yes 12873 case $host_os in 12874 aix3*) 12875 # FIXME: insert proper C++ library support 12876 ld_shlibs_CXX=no 12877 ;; 12878 aix[4-9]*) 12879 if test ia64 = "$host_cpu"; then 12880 # On IA64, the linker does run time linking by default, so we don't 12881 # have to do anything special. 12882 aix_use_runtimelinking=no 12883 exp_sym_flag='-Bexport' 12884 no_entry_flag= 12885 else 12886 aix_use_runtimelinking=no 12887 12888 # Test if we are trying to use run time linking or normal 12889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12890 # have runtime linking enabled, and use it for executables. 12891 # For shared libraries, we enable/disable runtime linking 12892 # depending on the kind of the shared library created - 12893 # when "with_aix_soname,aix_use_runtimelinking" is: 12894 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12895 # "aix,yes" lib.so shared, rtl:yes, for executables 12896 # lib.a static archive 12897 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12898 # lib.a(lib.so.V) shared, rtl:no, for executables 12899 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12900 # lib.a(lib.so.V) shared, rtl:no 12901 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12902 # lib.a static archive 12903 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12904 for ld_flag in $LDFLAGS; do 12905 case $ld_flag in 12906 *-brtl*) 12907 aix_use_runtimelinking=yes 12908 break 12909 ;; 12910 esac 12911 done 12912 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12913 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12914 # so we don't have lib.a shared libs to link our executables. 12915 # We have to force runtime linking in this case. 12916 aix_use_runtimelinking=yes 12917 LDFLAGS="$LDFLAGS -Wl,-brtl" 12918 fi 12919 ;; 12920 esac 12921 12922 exp_sym_flag='-bexport' 12923 no_entry_flag='-bnoentry' 12924 fi 12925 12926 # When large executables or shared objects are built, AIX ld can 12927 # have problems creating the table of contents. If linking a library 12928 # or program results in "error TOC overflow" add -mminimal-toc to 12929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12931 12932 archive_cmds_CXX='' 12933 hardcode_direct_CXX=yes 12934 hardcode_direct_absolute_CXX=yes 12935 hardcode_libdir_separator_CXX=':' 12936 link_all_deplibs_CXX=yes 12937 file_list_spec_CXX='$wl-f,' 12938 case $with_aix_soname,$aix_use_runtimelinking in 12939 aix,*) ;; # no import file 12940 svr4,* | *,yes) # use import file 12941 # The Import File defines what to hardcode. 12942 hardcode_direct_CXX=no 12943 hardcode_direct_absolute_CXX=no 12944 ;; 12945 esac 12946 12947 if test yes = "$GXX"; then 12948 case $host_os in aix4.[012]|aix4.[012].*) 12949 # We only want to do this on AIX 4.2 and lower, the check 12950 # below for broken collect2 doesn't work under 4.3+ 12951 collect2name=`$CC -print-prog-name=collect2` 12952 if test -f "$collect2name" && 12953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12954 then 12955 # We have reworked collect2 12956 : 12957 else 12958 # We have old collect2 12959 hardcode_direct_CXX=unsupported 12960 # It fails to find uninstalled libraries when the uninstalled 12961 # path is not listed in the libpath. Setting hardcode_minus_L 12962 # to unsupported forces relinking 12963 hardcode_minus_L_CXX=yes 12964 hardcode_libdir_flag_spec_CXX='-L$libdir' 12965 hardcode_libdir_separator_CXX= 12966 fi 12967 esac 12968 shared_flag='-shared' 12969 if test yes = "$aix_use_runtimelinking"; then 12970 shared_flag=$shared_flag' $wl-G' 12971 fi 12972 # Need to ensure runtime linking is disabled for the traditional 12973 # shared library, or the linker may eventually find shared libraries 12974 # /with/ Import File - we do not want to mix them. 12975 shared_flag_aix='-shared' 12976 shared_flag_svr4='-shared $wl-G' 12977 else 12978 # not using gcc 12979 if test ia64 = "$host_cpu"; then 12980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12981 # chokes on -Wl,-G. The following line is correct: 12982 shared_flag='-G' 12983 else 12984 if test yes = "$aix_use_runtimelinking"; then 12985 shared_flag='$wl-G' 12986 else 12987 shared_flag='$wl-bM:SRE' 12988 fi 12989 shared_flag_aix='$wl-bM:SRE' 12990 shared_flag_svr4='$wl-G' 12991 fi 12992 fi 12993 12994 export_dynamic_flag_spec_CXX='$wl-bexpall' 12995 # It seems that -bexpall does not export symbols beginning with 12996 # underscore (_), so it is better to generate a list of symbols to 12997 # export. 12998 always_export_symbols_CXX=yes 12999 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13000 # Warning - without using the other runtime loading flags (-brtl), 13001 # -berok will link without error, but may produce a broken library. 13002 # The "-G" linker flag allows undefined symbols. 13003 no_undefined_flag_CXX='-bernotok' 13004 # Determine the default libpath from the value encoded in an empty 13005 # executable. 13006 if test set = "${lt_cv_aix_libpath+set}"; then 13007 aix_libpath=$lt_cv_aix_libpath 13008else 13009 if ${lt_cv_aix_libpath__CXX+:} false; then : 13010 $as_echo_n "(cached) " >&6 13011else 13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13013/* end confdefs.h. */ 13014 13015int 13016main () 13017{ 13018 13019 ; 13020 return 0; 13021} 13022_ACEOF 13023if ac_fn_cxx_try_link "$LINENO"; then : 13024 13025 lt_aix_libpath_sed=' 13026 /Import File Strings/,/^$/ { 13027 /^0/ { 13028 s/^0 *\([^ ]*\) *$/\1/ 13029 p 13030 } 13031 }' 13032 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13033 # Check for a 64-bit object if we didn't find anything. 13034 if test -z "$lt_cv_aix_libpath__CXX"; then 13035 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13036 fi 13037fi 13038rm -f core conftest.err conftest.$ac_objext \ 13039 conftest$ac_exeext conftest.$ac_ext 13040 if test -z "$lt_cv_aix_libpath__CXX"; then 13041 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13042 fi 13043 13044fi 13045 13046 aix_libpath=$lt_cv_aix_libpath__CXX 13047fi 13048 13049 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13050 13051 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13052 else 13053 if test ia64 = "$host_cpu"; then 13054 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13055 allow_undefined_flag_CXX="-z nodefs" 13056 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" 13057 else 13058 # Determine the default libpath from the value encoded in an 13059 # empty executable. 13060 if test set = "${lt_cv_aix_libpath+set}"; then 13061 aix_libpath=$lt_cv_aix_libpath 13062else 13063 if ${lt_cv_aix_libpath__CXX+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13067/* end confdefs.h. */ 13068 13069int 13070main () 13071{ 13072 13073 ; 13074 return 0; 13075} 13076_ACEOF 13077if ac_fn_cxx_try_link "$LINENO"; then : 13078 13079 lt_aix_libpath_sed=' 13080 /Import File Strings/,/^$/ { 13081 /^0/ { 13082 s/^0 *\([^ ]*\) *$/\1/ 13083 p 13084 } 13085 }' 13086 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13087 # Check for a 64-bit object if we didn't find anything. 13088 if test -z "$lt_cv_aix_libpath__CXX"; then 13089 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13090 fi 13091fi 13092rm -f core conftest.err conftest.$ac_objext \ 13093 conftest$ac_exeext conftest.$ac_ext 13094 if test -z "$lt_cv_aix_libpath__CXX"; then 13095 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13096 fi 13097 13098fi 13099 13100 aix_libpath=$lt_cv_aix_libpath__CXX 13101fi 13102 13103 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13104 # Warning - without using the other run time loading flags, 13105 # -berok will link without error, but may produce a broken library. 13106 no_undefined_flag_CXX=' $wl-bernotok' 13107 allow_undefined_flag_CXX=' $wl-berok' 13108 if test yes = "$with_gnu_ld"; then 13109 # We only use this code for GNU lds that support --whole-archive. 13110 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13111 else 13112 # Exported symbols can be pulled into shared objects from archives 13113 whole_archive_flag_spec_CXX='$convenience' 13114 fi 13115 archive_cmds_need_lc_CXX=yes 13116 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13117 # -brtl affects multiple linker settings, -berok does not and is overridden later 13118 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13119 if test svr4 != "$with_aix_soname"; then 13120 # This is similar to how AIX traditionally builds its shared 13121 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13122 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13123 fi 13124 if test aix != "$with_aix_soname"; then 13125 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13126 else 13127 # used by -dlpreopen to get the symbols 13128 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13129 fi 13130 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13131 fi 13132 fi 13133 ;; 13134 13135 beos*) 13136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13137 allow_undefined_flag_CXX=unsupported 13138 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13139 # support --undefined. This deserves some investigation. FIXME 13140 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13141 else 13142 ld_shlibs_CXX=no 13143 fi 13144 ;; 13145 13146 chorus*) 13147 case $cc_basename in 13148 *) 13149 # FIXME: insert proper C++ library support 13150 ld_shlibs_CXX=no 13151 ;; 13152 esac 13153 ;; 13154 13155 cygwin* | mingw* | pw32* | cegcc*) 13156 case $GXX,$cc_basename in 13157 ,cl* | no,cl*) 13158 # Native MSVC 13159 # hardcode_libdir_flag_spec is actually meaningless, as there is 13160 # no search path for DLLs. 13161 hardcode_libdir_flag_spec_CXX=' ' 13162 allow_undefined_flag_CXX=unsupported 13163 always_export_symbols_CXX=yes 13164 file_list_spec_CXX='@' 13165 # Tell ltmain to make .lib files, not .a files. 13166 libext=lib 13167 # Tell ltmain to make .dll files, not .so files. 13168 shrext_cmds=.dll 13169 # FIXME: Setting linknames here is a bad hack. 13170 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13171 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13172 cp "$export_symbols" "$output_objdir/$soname.def"; 13173 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13174 else 13175 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13176 fi~ 13177 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13178 linknames=' 13179 # The linker will not automatically build a static lib if we build a DLL. 13180 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13181 enable_shared_with_static_runtimes_CXX=yes 13182 # Don't use ranlib 13183 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13184 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13185 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13186 case $lt_outputfile in 13187 *.exe|*.EXE) ;; 13188 *) 13189 lt_outputfile=$lt_outputfile.exe 13190 lt_tool_outputfile=$lt_tool_outputfile.exe 13191 ;; 13192 esac~ 13193 func_to_tool_file "$lt_outputfile"~ 13194 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13195 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13196 $RM "$lt_outputfile.manifest"; 13197 fi' 13198 ;; 13199 *) 13200 # g++ 13201 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13202 # as there is no search path for DLLs. 13203 hardcode_libdir_flag_spec_CXX='-L$libdir' 13204 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13205 allow_undefined_flag_CXX=unsupported 13206 always_export_symbols_CXX=no 13207 enable_shared_with_static_runtimes_CXX=yes 13208 13209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13210 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' 13211 # If the export-symbols file already is a .def file, use it as 13212 # is; otherwise, prepend EXPORTS... 13213 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13214 cp $export_symbols $output_objdir/$soname.def; 13215 else 13216 echo EXPORTS > $output_objdir/$soname.def; 13217 cat $export_symbols >> $output_objdir/$soname.def; 13218 fi~ 13219 $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' 13220 else 13221 ld_shlibs_CXX=no 13222 fi 13223 ;; 13224 esac 13225 ;; 13226 darwin* | rhapsody*) 13227 13228 13229 archive_cmds_need_lc_CXX=no 13230 hardcode_direct_CXX=no 13231 hardcode_automatic_CXX=yes 13232 hardcode_shlibpath_var_CXX=unsupported 13233 if test yes = "$lt_cv_ld_force_load"; then 13234 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\"`' 13235 13236 else 13237 whole_archive_flag_spec_CXX='' 13238 fi 13239 link_all_deplibs_CXX=yes 13240 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13241 case $cc_basename in 13242 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13243 *) _lt_dar_can_shared=$GCC ;; 13244 esac 13245 if test yes = "$_lt_dar_can_shared"; then 13246 output_verbose_link_cmd=func_echo_all 13247 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" 13248 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13249 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" 13250 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" 13251 if test yes != "$lt_cv_apple_cc_single_mod"; then 13252 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" 13253 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" 13254 fi 13255 13256 else 13257 ld_shlibs_CXX=no 13258 fi 13259 13260 ;; 13261 13262 os2*) 13263 hardcode_libdir_flag_spec_CXX='-L$libdir' 13264 hardcode_minus_L_CXX=yes 13265 allow_undefined_flag_CXX=unsupported 13266 shrext_cmds=.dll 13267 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13268 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13269 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13270 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13271 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13272 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13273 emximp -o $lib $output_objdir/$libname.def' 13274 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13275 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13276 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13277 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13278 prefix_cmds="$SED"~ 13279 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13280 prefix_cmds="$prefix_cmds -e 1d"; 13281 fi~ 13282 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13283 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13284 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13285 emximp -o $lib $output_objdir/$libname.def' 13286 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13287 enable_shared_with_static_runtimes_CXX=yes 13288 ;; 13289 13290 dgux*) 13291 case $cc_basename in 13292 ec++*) 13293 # FIXME: insert proper C++ library support 13294 ld_shlibs_CXX=no 13295 ;; 13296 ghcx*) 13297 # Green Hills C++ Compiler 13298 # FIXME: insert proper C++ library support 13299 ld_shlibs_CXX=no 13300 ;; 13301 *) 13302 # FIXME: insert proper C++ library support 13303 ld_shlibs_CXX=no 13304 ;; 13305 esac 13306 ;; 13307 13308 freebsd2.*) 13309 # C++ shared libraries reported to be fairly broken before 13310 # switch to ELF 13311 ld_shlibs_CXX=no 13312 ;; 13313 13314 freebsd-elf*) 13315 archive_cmds_need_lc_CXX=no 13316 ;; 13317 13318 freebsd* | dragonfly*) 13319 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13320 # conventions 13321 ld_shlibs_CXX=yes 13322 ;; 13323 13324 haiku*) 13325 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13326 link_all_deplibs_CXX=yes 13327 ;; 13328 13329 hpux9*) 13330 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13331 hardcode_libdir_separator_CXX=: 13332 export_dynamic_flag_spec_CXX='$wl-E' 13333 hardcode_direct_CXX=yes 13334 hardcode_minus_L_CXX=yes # Not in the search PATH, 13335 # but as the default 13336 # location of the library. 13337 13338 case $cc_basename in 13339 CC*) 13340 # FIXME: insert proper C++ library support 13341 ld_shlibs_CXX=no 13342 ;; 13343 aCC*) 13344 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13345 # Commands to make compiler produce verbose output that lists 13346 # what "hidden" libraries, object files and flags are used when 13347 # linking a shared library. 13348 # 13349 # There doesn't appear to be a way to prevent this compiler from 13350 # explicitly linking system object files so we need to strip them 13351 # from the output so that they don't get included in the library 13352 # dependencies. 13353 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"' 13354 ;; 13355 *) 13356 if test yes = "$GXX"; then 13357 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13358 else 13359 # FIXME: insert proper C++ library support 13360 ld_shlibs_CXX=no 13361 fi 13362 ;; 13363 esac 13364 ;; 13365 13366 hpux10*|hpux11*) 13367 if test no = "$with_gnu_ld"; then 13368 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13369 hardcode_libdir_separator_CXX=: 13370 13371 case $host_cpu in 13372 hppa*64*|ia64*) 13373 ;; 13374 *) 13375 export_dynamic_flag_spec_CXX='$wl-E' 13376 ;; 13377 esac 13378 fi 13379 case $host_cpu in 13380 hppa*64*|ia64*) 13381 hardcode_direct_CXX=no 13382 hardcode_shlibpath_var_CXX=no 13383 ;; 13384 *) 13385 hardcode_direct_CXX=yes 13386 hardcode_direct_absolute_CXX=yes 13387 hardcode_minus_L_CXX=yes # Not in the search PATH, 13388 # but as the default 13389 # location of the library. 13390 ;; 13391 esac 13392 13393 case $cc_basename in 13394 CC*) 13395 # FIXME: insert proper C++ library support 13396 ld_shlibs_CXX=no 13397 ;; 13398 aCC*) 13399 case $host_cpu in 13400 hppa*64*) 13401 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13402 ;; 13403 ia64*) 13404 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13405 ;; 13406 *) 13407 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13408 ;; 13409 esac 13410 # Commands to make compiler produce verbose output that lists 13411 # what "hidden" libraries, object files and flags are used when 13412 # linking a shared library. 13413 # 13414 # There doesn't appear to be a way to prevent this compiler from 13415 # explicitly linking system object files so we need to strip them 13416 # from the output so that they don't get included in the library 13417 # dependencies. 13418 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"' 13419 ;; 13420 *) 13421 if test yes = "$GXX"; then 13422 if test no = "$with_gnu_ld"; then 13423 case $host_cpu in 13424 hppa*64*) 13425 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13426 ;; 13427 ia64*) 13428 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13429 ;; 13430 *) 13431 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' 13432 ;; 13433 esac 13434 fi 13435 else 13436 # FIXME: insert proper C++ library support 13437 ld_shlibs_CXX=no 13438 fi 13439 ;; 13440 esac 13441 ;; 13442 13443 interix[3-9]*) 13444 hardcode_direct_CXX=no 13445 hardcode_shlibpath_var_CXX=no 13446 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13447 export_dynamic_flag_spec_CXX='$wl-E' 13448 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13449 # Instead, shared libraries are loaded at an image base (0x10000000 by 13450 # default) and relocated if they conflict, which is a slow very memory 13451 # consuming and fragmenting process. To avoid this, we pick a random, 13452 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13453 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13454 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' 13455 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' 13456 ;; 13457 irix5* | irix6*) 13458 case $cc_basename in 13459 CC*) 13460 # SGI C++ 13461 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' 13462 13463 # Archives containing C++ object files must be created using 13464 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13465 # necessary to make sure instantiated templates are included 13466 # in the archive. 13467 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13468 ;; 13469 *) 13470 if test yes = "$GXX"; then 13471 if test no = "$with_gnu_ld"; then 13472 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' 13473 else 13474 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' 13475 fi 13476 fi 13477 link_all_deplibs_CXX=yes 13478 ;; 13479 esac 13480 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13481 hardcode_libdir_separator_CXX=: 13482 inherit_rpath_CXX=yes 13483 ;; 13484 13485 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13486 case $cc_basename in 13487 KCC*) 13488 # Kuck and Associates, Inc. (KAI) C++ Compiler 13489 13490 # KCC will only create a shared library if the output file 13491 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13492 # to its proper name (with version) after linking. 13493 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' 13494 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' 13495 # Commands to make compiler produce verbose output that lists 13496 # what "hidden" libraries, object files and flags are used when 13497 # linking a shared library. 13498 # 13499 # There doesn't appear to be a way to prevent this compiler from 13500 # explicitly linking system object files so we need to strip them 13501 # from the output so that they don't get included in the library 13502 # dependencies. 13503 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"' 13504 13505 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13506 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13507 13508 # Archives containing C++ object files must be created using 13509 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13510 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13511 ;; 13512 icpc* | ecpc* ) 13513 # Intel C++ 13514 with_gnu_ld=yes 13515 # version 8.0 and above of icpc choke on multiply defined symbols 13516 # if we add $predep_objects and $postdep_objects, however 7.1 and 13517 # earlier do not add the objects themselves. 13518 case `$CC -V 2>&1` in 13519 *"Version 7."*) 13520 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13521 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' 13522 ;; 13523 *) # Version 8.0 or newer 13524 tmp_idyn= 13525 case $host_cpu in 13526 ia64*) tmp_idyn=' -i_dynamic';; 13527 esac 13528 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13529 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' 13530 ;; 13531 esac 13532 archive_cmds_need_lc_CXX=no 13533 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13534 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13535 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13536 ;; 13537 pgCC* | pgcpp*) 13538 # Portland Group C++ compiler 13539 case `$CC -V` in 13540 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13541 prelink_cmds_CXX='tpldir=Template.dir~ 13542 rm -rf $tpldir~ 13543 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13544 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13545 old_archive_cmds_CXX='tpldir=Template.dir~ 13546 rm -rf $tpldir~ 13547 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13548 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13549 $RANLIB $oldlib' 13550 archive_cmds_CXX='tpldir=Template.dir~ 13551 rm -rf $tpldir~ 13552 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13553 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13554 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13555 rm -rf $tpldir~ 13556 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13557 $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' 13558 ;; 13559 *) # Version 6 and above use weak symbols 13560 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13561 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' 13562 ;; 13563 esac 13564 13565 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13566 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13567 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' 13568 ;; 13569 cxx*) 13570 # Compaq C++ 13571 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13572 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' 13573 13574 runpath_var=LD_RUN_PATH 13575 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13576 hardcode_libdir_separator_CXX=: 13577 13578 # Commands to make compiler produce verbose output that lists 13579 # what "hidden" libraries, object files and flags are used when 13580 # linking a shared library. 13581 # 13582 # There doesn't appear to be a way to prevent this compiler from 13583 # explicitly linking system object files so we need to strip them 13584 # from the output so that they don't get included in the library 13585 # dependencies. 13586 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' 13587 ;; 13588 xl* | mpixl* | bgxl*) 13589 # IBM XL 8.0 on PPC, with GNU ld 13590 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13591 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13592 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13593 if test yes = "$supports_anon_versioning"; then 13594 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13596 echo "local: *; };" >> $output_objdir/$libname.ver~ 13597 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13598 fi 13599 ;; 13600 *) 13601 case `$CC -V 2>&1 | sed 5q` in 13602 *Sun\ C*) 13603 # Sun C++ 5.9 13604 no_undefined_flag_CXX=' -zdefs' 13605 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13606 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' 13607 hardcode_libdir_flag_spec_CXX='-R$libdir' 13608 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' 13609 compiler_needs_object_CXX=yes 13610 13611 # Not sure whether something based on 13612 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13613 # would be better. 13614 output_verbose_link_cmd='func_echo_all' 13615 13616 # Archives containing C++ object files must be created using 13617 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13618 # necessary to make sure instantiated templates are included 13619 # in the archive. 13620 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13621 ;; 13622 esac 13623 ;; 13624 esac 13625 ;; 13626 13627 lynxos*) 13628 # FIXME: insert proper C++ library support 13629 ld_shlibs_CXX=no 13630 ;; 13631 13632 m88k*) 13633 # FIXME: insert proper C++ library support 13634 ld_shlibs_CXX=no 13635 ;; 13636 13637 mvs*) 13638 case $cc_basename in 13639 cxx*) 13640 # FIXME: insert proper C++ library support 13641 ld_shlibs_CXX=no 13642 ;; 13643 *) 13644 # FIXME: insert proper C++ library support 13645 ld_shlibs_CXX=no 13646 ;; 13647 esac 13648 ;; 13649 13650 netbsd*) 13651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13652 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13653 wlarc= 13654 hardcode_libdir_flag_spec_CXX='-R$libdir' 13655 hardcode_direct_CXX=yes 13656 hardcode_shlibpath_var_CXX=no 13657 fi 13658 # Workaround some broken pre-1.5 toolchains 13659 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13660 ;; 13661 13662 *nto* | *qnx*) 13663 ld_shlibs_CXX=yes 13664 ;; 13665 13666 openbsd* | bitrig*) 13667 if test -f /usr/libexec/ld.so; then 13668 hardcode_direct_CXX=yes 13669 hardcode_shlibpath_var_CXX=no 13670 hardcode_direct_absolute_CXX=yes 13671 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13672 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13674 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13675 export_dynamic_flag_spec_CXX='$wl-E' 13676 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13677 fi 13678 output_verbose_link_cmd=func_echo_all 13679 else 13680 ld_shlibs_CXX=no 13681 fi 13682 ;; 13683 13684 osf3* | osf4* | osf5*) 13685 case $cc_basename in 13686 KCC*) 13687 # Kuck and Associates, Inc. (KAI) C++ Compiler 13688 13689 # KCC will only create a shared library if the output file 13690 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13691 # to its proper name (with version) after linking. 13692 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' 13693 13694 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13695 hardcode_libdir_separator_CXX=: 13696 13697 # Archives containing C++ object files must be created using 13698 # the KAI C++ compiler. 13699 case $host in 13700 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13701 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13702 esac 13703 ;; 13704 RCC*) 13705 # Rational C++ 2.4.1 13706 # FIXME: insert proper C++ library support 13707 ld_shlibs_CXX=no 13708 ;; 13709 cxx*) 13710 case $host in 13711 osf3*) 13712 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13713 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' 13714 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13715 ;; 13716 *) 13717 allow_undefined_flag_CXX=' -expect_unresolved \*' 13718 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' 13719 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13720 echo "-hidden">> $lib.exp~ 13721 $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~ 13722 $RM $lib.exp' 13723 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13724 ;; 13725 esac 13726 13727 hardcode_libdir_separator_CXX=: 13728 13729 # Commands to make compiler produce verbose output that lists 13730 # what "hidden" libraries, object files and flags are used when 13731 # linking a shared library. 13732 # 13733 # There doesn't appear to be a way to prevent this compiler from 13734 # explicitly linking system object files so we need to strip them 13735 # from the output so that they don't get included in the library 13736 # dependencies. 13737 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"' 13738 ;; 13739 *) 13740 if test yes,no = "$GXX,$with_gnu_ld"; then 13741 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13742 case $host in 13743 osf3*) 13744 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' 13745 ;; 13746 *) 13747 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' 13748 ;; 13749 esac 13750 13751 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13752 hardcode_libdir_separator_CXX=: 13753 13754 # Commands to make compiler produce verbose output that lists 13755 # what "hidden" libraries, object files and flags are used when 13756 # linking a shared library. 13757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13758 13759 else 13760 # FIXME: insert proper C++ library support 13761 ld_shlibs_CXX=no 13762 fi 13763 ;; 13764 esac 13765 ;; 13766 13767 psos*) 13768 # FIXME: insert proper C++ library support 13769 ld_shlibs_CXX=no 13770 ;; 13771 13772 sunos4*) 13773 case $cc_basename in 13774 CC*) 13775 # Sun C++ 4.x 13776 # FIXME: insert proper C++ library support 13777 ld_shlibs_CXX=no 13778 ;; 13779 lcc*) 13780 # Lucid 13781 # FIXME: insert proper C++ library support 13782 ld_shlibs_CXX=no 13783 ;; 13784 *) 13785 # FIXME: insert proper C++ library support 13786 ld_shlibs_CXX=no 13787 ;; 13788 esac 13789 ;; 13790 13791 solaris*) 13792 case $cc_basename in 13793 CC* | sunCC*) 13794 # Sun C++ 4.2, 5.x and Centerline C++ 13795 archive_cmds_need_lc_CXX=yes 13796 no_undefined_flag_CXX=' -zdefs' 13797 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13798 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13799 $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' 13800 13801 hardcode_libdir_flag_spec_CXX='-R$libdir' 13802 hardcode_shlibpath_var_CXX=no 13803 case $host_os in 13804 solaris2.[0-5] | solaris2.[0-5].*) ;; 13805 *) 13806 # The compiler driver will combine and reorder linker options, 13807 # but understands '-z linker_flag'. 13808 # Supported since Solaris 2.6 (maybe 2.5.1?) 13809 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13810 ;; 13811 esac 13812 link_all_deplibs_CXX=yes 13813 13814 output_verbose_link_cmd='func_echo_all' 13815 13816 # Archives containing C++ object files must be created using 13817 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13818 # necessary to make sure instantiated templates are included 13819 # in the archive. 13820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13821 ;; 13822 gcx*) 13823 # Green Hills C++ Compiler 13824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13825 13826 # The C++ compiler must be used to create the archive. 13827 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13828 ;; 13829 *) 13830 # GNU C++ compiler with Solaris linker 13831 if test yes,no = "$GXX,$with_gnu_ld"; then 13832 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13833 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13834 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13835 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13836 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13837 13838 # Commands to make compiler produce verbose output that lists 13839 # what "hidden" libraries, object files and flags are used when 13840 # linking a shared library. 13841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13842 else 13843 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13844 # platform. 13845 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13846 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13847 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13848 13849 # Commands to make compiler produce verbose output that lists 13850 # what "hidden" libraries, object files and flags are used when 13851 # linking a shared library. 13852 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13853 fi 13854 13855 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13856 case $host_os in 13857 solaris2.[0-5] | solaris2.[0-5].*) ;; 13858 *) 13859 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13860 ;; 13861 esac 13862 fi 13863 ;; 13864 esac 13865 ;; 13866 13867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13868 no_undefined_flag_CXX='$wl-z,text' 13869 archive_cmds_need_lc_CXX=no 13870 hardcode_shlibpath_var_CXX=no 13871 runpath_var='LD_RUN_PATH' 13872 13873 case $cc_basename in 13874 CC*) 13875 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13876 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13877 ;; 13878 *) 13879 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13880 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13881 ;; 13882 esac 13883 ;; 13884 13885 sysv5* | sco3.2v5* | sco5v6*) 13886 # Note: We CANNOT use -z defs as we might desire, because we do not 13887 # link with -lc, and that would cause any symbols used from libc to 13888 # always be unresolved, which means just about no library would 13889 # ever link correctly. If we're not using GNU ld we use -z text 13890 # though, which does catch some bad symbols but isn't as heavy-handed 13891 # as -z defs. 13892 no_undefined_flag_CXX='$wl-z,text' 13893 allow_undefined_flag_CXX='$wl-z,nodefs' 13894 archive_cmds_need_lc_CXX=no 13895 hardcode_shlibpath_var_CXX=no 13896 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 13897 hardcode_libdir_separator_CXX=':' 13898 link_all_deplibs_CXX=yes 13899 export_dynamic_flag_spec_CXX='$wl-Bexport' 13900 runpath_var='LD_RUN_PATH' 13901 13902 case $cc_basename in 13903 CC*) 13904 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13905 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13906 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13907 '"$old_archive_cmds_CXX" 13908 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13909 '"$reload_cmds_CXX" 13910 ;; 13911 *) 13912 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13913 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13914 ;; 13915 esac 13916 ;; 13917 13918 tandem*) 13919 case $cc_basename in 13920 NCC*) 13921 # NonStop-UX NCC 3.20 13922 # FIXME: insert proper C++ library support 13923 ld_shlibs_CXX=no 13924 ;; 13925 *) 13926 # FIXME: insert proper C++ library support 13927 ld_shlibs_CXX=no 13928 ;; 13929 esac 13930 ;; 13931 13932 vxworks*) 13933 # FIXME: insert proper C++ library support 13934 ld_shlibs_CXX=no 13935 ;; 13936 13937 *) 13938 # FIXME: insert proper C++ library support 13939 ld_shlibs_CXX=no 13940 ;; 13941 esac 13942 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13944$as_echo "$ld_shlibs_CXX" >&6; } 13945 test no = "$ld_shlibs_CXX" && can_build_shared=no 13946 13947 GCC_CXX=$GXX 13948 LD_CXX=$LD 13949 13950 ## CAVEAT EMPTOR: 13951 ## There is no encapsulation within the following macros, do not change 13952 ## the running order or otherwise move them around unless you know exactly 13953 ## what you are doing... 13954 # Dependencies to place before and after the object being linked: 13955predep_objects_CXX= 13956postdep_objects_CXX= 13957predeps_CXX= 13958postdeps_CXX= 13959compiler_lib_search_path_CXX= 13960 13961cat > conftest.$ac_ext <<_LT_EOF 13962class Foo 13963{ 13964public: 13965 Foo (void) { a = 0; } 13966private: 13967 int a; 13968}; 13969_LT_EOF 13970 13971 13972_lt_libdeps_save_CFLAGS=$CFLAGS 13973case "$CC $CFLAGS " in #( 13974*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13975*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13976*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13977esac 13978 13979if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13980 (eval $ac_compile) 2>&5 13981 ac_status=$? 13982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13983 test $ac_status = 0; }; then 13984 # Parse the compiler output and extract the necessary 13985 # objects, libraries and library flags. 13986 13987 # Sentinel used to keep track of whether or not we are before 13988 # the conftest object file. 13989 pre_test_object_deps_done=no 13990 13991 for p in `eval "$output_verbose_link_cmd"`; do 13992 case $prev$p in 13993 13994 -L* | -R* | -l*) 13995 # Some compilers place space between "-{L,R}" and the path. 13996 # Remove the space. 13997 if test x-L = "$p" || 13998 test x-R = "$p"; then 13999 prev=$p 14000 continue 14001 fi 14002 14003 # Expand the sysroot to ease extracting the directories later. 14004 if test -z "$prev"; then 14005 case $p in 14006 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14007 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14008 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14009 esac 14010 fi 14011 case $p in 14012 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14013 esac 14014 if test no = "$pre_test_object_deps_done"; then 14015 case $prev in 14016 -L | -R) 14017 # Internal compiler library paths should come after those 14018 # provided the user. The postdeps already come after the 14019 # user supplied libs so there is no need to process them. 14020 if test -z "$compiler_lib_search_path_CXX"; then 14021 compiler_lib_search_path_CXX=$prev$p 14022 else 14023 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14024 fi 14025 ;; 14026 # The "-l" case would never come before the object being 14027 # linked, so don't bother handling this case. 14028 esac 14029 else 14030 if test -z "$postdeps_CXX"; then 14031 postdeps_CXX=$prev$p 14032 else 14033 postdeps_CXX="${postdeps_CXX} $prev$p" 14034 fi 14035 fi 14036 prev= 14037 ;; 14038 14039 *.lto.$objext) ;; # Ignore GCC LTO objects 14040 *.$objext) 14041 # This assumes that the test object file only shows up 14042 # once in the compiler output. 14043 if test "$p" = "conftest.$objext"; then 14044 pre_test_object_deps_done=yes 14045 continue 14046 fi 14047 14048 if test no = "$pre_test_object_deps_done"; then 14049 if test -z "$predep_objects_CXX"; then 14050 predep_objects_CXX=$p 14051 else 14052 predep_objects_CXX="$predep_objects_CXX $p" 14053 fi 14054 else 14055 if test -z "$postdep_objects_CXX"; then 14056 postdep_objects_CXX=$p 14057 else 14058 postdep_objects_CXX="$postdep_objects_CXX $p" 14059 fi 14060 fi 14061 ;; 14062 14063 *) ;; # Ignore the rest. 14064 14065 esac 14066 done 14067 14068 # Clean up. 14069 rm -f a.out a.exe 14070else 14071 echo "libtool.m4: error: problem compiling CXX test program" 14072fi 14073 14074$RM -f confest.$objext 14075CFLAGS=$_lt_libdeps_save_CFLAGS 14076 14077# PORTME: override above test on systems where it is broken 14078case $host_os in 14079interix[3-9]*) 14080 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14081 # hack all around it, let's just trust "g++" to DTRT. 14082 predep_objects_CXX= 14083 postdep_objects_CXX= 14084 postdeps_CXX= 14085 ;; 14086esac 14087 14088 14089case " $postdeps_CXX " in 14090*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14091esac 14092 compiler_lib_search_dirs_CXX= 14093if test -n "${compiler_lib_search_path_CXX}"; then 14094 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14095fi 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 lt_prog_compiler_wl_CXX= 14128lt_prog_compiler_pic_CXX= 14129lt_prog_compiler_static_CXX= 14130 14131 14132 # C++ specific cases for pic, static, wl, etc. 14133 if test yes = "$GXX"; then 14134 lt_prog_compiler_wl_CXX='-Wl,' 14135 lt_prog_compiler_static_CXX='-static' 14136 14137 case $host_os in 14138 aix*) 14139 # All AIX code is PIC. 14140 if test ia64 = "$host_cpu"; then 14141 # AIX 5 now supports IA64 processor 14142 lt_prog_compiler_static_CXX='-Bstatic' 14143 fi 14144 lt_prog_compiler_pic_CXX='-fPIC' 14145 ;; 14146 14147 amigaos*) 14148 case $host_cpu in 14149 powerpc) 14150 # see comment about AmigaOS4 .so support 14151 lt_prog_compiler_pic_CXX='-fPIC' 14152 ;; 14153 m68k) 14154 # FIXME: we need at least 68020 code to build shared libraries, but 14155 # adding the '-m68020' flag to GCC prevents building anything better, 14156 # like '-m68040'. 14157 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14158 ;; 14159 esac 14160 ;; 14161 14162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14163 # PIC is the default for these OSes. 14164 ;; 14165 mingw* | cygwin* | os2* | pw32* | cegcc*) 14166 # This hack is so that the source file can tell whether it is being 14167 # built for inclusion in a dll (and should export symbols for example). 14168 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14169 # (--disable-auto-import) libraries 14170 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14171 case $host_os in 14172 os2*) 14173 lt_prog_compiler_static_CXX='$wl-static' 14174 ;; 14175 esac 14176 ;; 14177 darwin* | rhapsody*) 14178 # PIC is the default on this platform 14179 # Common symbols not allowed in MH_DYLIB files 14180 lt_prog_compiler_pic_CXX='-fno-common' 14181 ;; 14182 *djgpp*) 14183 # DJGPP does not support shared libraries at all 14184 lt_prog_compiler_pic_CXX= 14185 ;; 14186 haiku*) 14187 # PIC is the default for Haiku. 14188 # The "-static" flag exists, but is broken. 14189 lt_prog_compiler_static_CXX= 14190 ;; 14191 interix[3-9]*) 14192 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14193 # Instead, we relocate shared libraries at runtime. 14194 ;; 14195 sysv4*MP*) 14196 if test -d /usr/nec; then 14197 lt_prog_compiler_pic_CXX=-Kconform_pic 14198 fi 14199 ;; 14200 hpux*) 14201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14203 # sets the default TLS model and affects inlining. 14204 case $host_cpu in 14205 hppa*64*) 14206 ;; 14207 *) 14208 lt_prog_compiler_pic_CXX='-fPIC' 14209 ;; 14210 esac 14211 ;; 14212 *qnx* | *nto*) 14213 # QNX uses GNU C++, but need to define -shared option too, otherwise 14214 # it will coredump. 14215 lt_prog_compiler_pic_CXX='-fPIC -shared' 14216 ;; 14217 *) 14218 lt_prog_compiler_pic_CXX='-fPIC' 14219 ;; 14220 esac 14221 else 14222 case $host_os in 14223 aix[4-9]*) 14224 # All AIX code is PIC. 14225 if test ia64 = "$host_cpu"; then 14226 # AIX 5 now supports IA64 processor 14227 lt_prog_compiler_static_CXX='-Bstatic' 14228 else 14229 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14230 fi 14231 ;; 14232 chorus*) 14233 case $cc_basename in 14234 cxch68*) 14235 # Green Hills C++ Compiler 14236 # _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" 14237 ;; 14238 esac 14239 ;; 14240 mingw* | cygwin* | os2* | pw32* | cegcc*) 14241 # This hack is so that the source file can tell whether it is being 14242 # built for inclusion in a dll (and should export symbols for example). 14243 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14244 ;; 14245 dgux*) 14246 case $cc_basename in 14247 ec++*) 14248 lt_prog_compiler_pic_CXX='-KPIC' 14249 ;; 14250 ghcx*) 14251 # Green Hills C++ Compiler 14252 lt_prog_compiler_pic_CXX='-pic' 14253 ;; 14254 *) 14255 ;; 14256 esac 14257 ;; 14258 freebsd* | dragonfly*) 14259 # FreeBSD uses GNU C++ 14260 ;; 14261 hpux9* | hpux10* | hpux11*) 14262 case $cc_basename in 14263 CC*) 14264 lt_prog_compiler_wl_CXX='-Wl,' 14265 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14266 if test ia64 != "$host_cpu"; then 14267 lt_prog_compiler_pic_CXX='+Z' 14268 fi 14269 ;; 14270 aCC*) 14271 lt_prog_compiler_wl_CXX='-Wl,' 14272 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14273 case $host_cpu in 14274 hppa*64*|ia64*) 14275 # +Z the default 14276 ;; 14277 *) 14278 lt_prog_compiler_pic_CXX='+Z' 14279 ;; 14280 esac 14281 ;; 14282 *) 14283 ;; 14284 esac 14285 ;; 14286 interix*) 14287 # This is c89, which is MS Visual C++ (no shared libs) 14288 # Anyone wants to do a port? 14289 ;; 14290 irix5* | irix6* | nonstopux*) 14291 case $cc_basename in 14292 CC*) 14293 lt_prog_compiler_wl_CXX='-Wl,' 14294 lt_prog_compiler_static_CXX='-non_shared' 14295 # CC pic flag -KPIC is the default. 14296 ;; 14297 *) 14298 ;; 14299 esac 14300 ;; 14301 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14302 case $cc_basename in 14303 KCC*) 14304 # KAI C++ Compiler 14305 lt_prog_compiler_wl_CXX='--backend -Wl,' 14306 lt_prog_compiler_pic_CXX='-fPIC' 14307 ;; 14308 ecpc* ) 14309 # old Intel C++ for x86_64, which still supported -KPIC. 14310 lt_prog_compiler_wl_CXX='-Wl,' 14311 lt_prog_compiler_pic_CXX='-KPIC' 14312 lt_prog_compiler_static_CXX='-static' 14313 ;; 14314 icpc* ) 14315 # Intel C++, used to be incompatible with GCC. 14316 # ICC 10 doesn't accept -KPIC any more. 14317 lt_prog_compiler_wl_CXX='-Wl,' 14318 lt_prog_compiler_pic_CXX='-fPIC' 14319 lt_prog_compiler_static_CXX='-static' 14320 ;; 14321 pgCC* | pgcpp*) 14322 # Portland Group C++ compiler 14323 lt_prog_compiler_wl_CXX='-Wl,' 14324 lt_prog_compiler_pic_CXX='-fpic' 14325 lt_prog_compiler_static_CXX='-Bstatic' 14326 ;; 14327 cxx*) 14328 # Compaq C++ 14329 # Make sure the PIC flag is empty. It appears that all Alpha 14330 # Linux and Compaq Tru64 Unix objects are PIC. 14331 lt_prog_compiler_pic_CXX= 14332 lt_prog_compiler_static_CXX='-non_shared' 14333 ;; 14334 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14335 # IBM XL 8.0, 9.0 on PPC and BlueGene 14336 lt_prog_compiler_wl_CXX='-Wl,' 14337 lt_prog_compiler_pic_CXX='-qpic' 14338 lt_prog_compiler_static_CXX='-qstaticlink' 14339 ;; 14340 *) 14341 case `$CC -V 2>&1 | sed 5q` in 14342 *Sun\ C*) 14343 # Sun C++ 5.9 14344 lt_prog_compiler_pic_CXX='-KPIC' 14345 lt_prog_compiler_static_CXX='-Bstatic' 14346 lt_prog_compiler_wl_CXX='-Qoption ld ' 14347 ;; 14348 esac 14349 ;; 14350 esac 14351 ;; 14352 lynxos*) 14353 ;; 14354 m88k*) 14355 ;; 14356 mvs*) 14357 case $cc_basename in 14358 cxx*) 14359 lt_prog_compiler_pic_CXX='-W c,exportall' 14360 ;; 14361 *) 14362 ;; 14363 esac 14364 ;; 14365 netbsd*) 14366 ;; 14367 *qnx* | *nto*) 14368 # QNX uses GNU C++, but need to define -shared option too, otherwise 14369 # it will coredump. 14370 lt_prog_compiler_pic_CXX='-fPIC -shared' 14371 ;; 14372 osf3* | osf4* | osf5*) 14373 case $cc_basename in 14374 KCC*) 14375 lt_prog_compiler_wl_CXX='--backend -Wl,' 14376 ;; 14377 RCC*) 14378 # Rational C++ 2.4.1 14379 lt_prog_compiler_pic_CXX='-pic' 14380 ;; 14381 cxx*) 14382 # Digital/Compaq C++ 14383 lt_prog_compiler_wl_CXX='-Wl,' 14384 # Make sure the PIC flag is empty. It appears that all Alpha 14385 # Linux and Compaq Tru64 Unix objects are PIC. 14386 lt_prog_compiler_pic_CXX= 14387 lt_prog_compiler_static_CXX='-non_shared' 14388 ;; 14389 *) 14390 ;; 14391 esac 14392 ;; 14393 psos*) 14394 ;; 14395 solaris*) 14396 case $cc_basename in 14397 CC* | sunCC*) 14398 # Sun C++ 4.2, 5.x and Centerline C++ 14399 lt_prog_compiler_pic_CXX='-KPIC' 14400 lt_prog_compiler_static_CXX='-Bstatic' 14401 lt_prog_compiler_wl_CXX='-Qoption ld ' 14402 ;; 14403 gcx*) 14404 # Green Hills C++ Compiler 14405 lt_prog_compiler_pic_CXX='-PIC' 14406 ;; 14407 *) 14408 ;; 14409 esac 14410 ;; 14411 sunos4*) 14412 case $cc_basename in 14413 CC*) 14414 # Sun C++ 4.x 14415 lt_prog_compiler_pic_CXX='-pic' 14416 lt_prog_compiler_static_CXX='-Bstatic' 14417 ;; 14418 lcc*) 14419 # Lucid 14420 lt_prog_compiler_pic_CXX='-pic' 14421 ;; 14422 *) 14423 ;; 14424 esac 14425 ;; 14426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14427 case $cc_basename in 14428 CC*) 14429 lt_prog_compiler_wl_CXX='-Wl,' 14430 lt_prog_compiler_pic_CXX='-KPIC' 14431 lt_prog_compiler_static_CXX='-Bstatic' 14432 ;; 14433 esac 14434 ;; 14435 tandem*) 14436 case $cc_basename in 14437 NCC*) 14438 # NonStop-UX NCC 3.20 14439 lt_prog_compiler_pic_CXX='-KPIC' 14440 ;; 14441 *) 14442 ;; 14443 esac 14444 ;; 14445 vxworks*) 14446 ;; 14447 *) 14448 lt_prog_compiler_can_build_shared_CXX=no 14449 ;; 14450 esac 14451 fi 14452 14453case $host_os in 14454 # For platforms that do not support PIC, -DPIC is meaningless: 14455 *djgpp*) 14456 lt_prog_compiler_pic_CXX= 14457 ;; 14458 *) 14459 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14460 ;; 14461esac 14462 14463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14464$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14465if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14466 $as_echo_n "(cached) " >&6 14467else 14468 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14469fi 14470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14471$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14472lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14473 14474# 14475# Check to make sure the PIC flag actually works. 14476# 14477if test -n "$lt_prog_compiler_pic_CXX"; then 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14479$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14480if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14481 $as_echo_n "(cached) " >&6 14482else 14483 lt_cv_prog_compiler_pic_works_CXX=no 14484 ac_outfile=conftest.$ac_objext 14485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14486 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14487 # Insert the option either (1) after the last *FLAGS variable, or 14488 # (2) before a word containing "conftest.", or (3) at the end. 14489 # Note that $ac_compile itself does not contain backslashes and begins 14490 # with a dollar sign (not a hyphen), so the echo should work correctly. 14491 # The option is referenced via a variable to avoid confusing sed. 14492 lt_compile=`echo "$ac_compile" | $SED \ 14493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14495 -e 's:$: $lt_compiler_flag:'` 14496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14497 (eval "$lt_compile" 2>conftest.err) 14498 ac_status=$? 14499 cat conftest.err >&5 14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14501 if (exit $ac_status) && test -s "$ac_outfile"; then 14502 # The compiler can only warn and ignore the option if not recognized 14503 # So say no if there are warnings other than the usual output. 14504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14507 lt_cv_prog_compiler_pic_works_CXX=yes 14508 fi 14509 fi 14510 $RM conftest* 14511 14512fi 14513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14514$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14515 14516if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14517 case $lt_prog_compiler_pic_CXX in 14518 "" | " "*) ;; 14519 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14520 esac 14521else 14522 lt_prog_compiler_pic_CXX= 14523 lt_prog_compiler_can_build_shared_CXX=no 14524fi 14525 14526fi 14527 14528 14529 14530 14531 14532# 14533# Check to make sure the static flag actually works. 14534# 14535wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14537$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14538if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14539 $as_echo_n "(cached) " >&6 14540else 14541 lt_cv_prog_compiler_static_works_CXX=no 14542 save_LDFLAGS=$LDFLAGS 14543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14544 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14546 # The linker can only warn and ignore the option if not recognized 14547 # So say no if there are warnings 14548 if test -s conftest.err; then 14549 # Append any errors to the config.log. 14550 cat conftest.err 1>&5 14551 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14553 if diff conftest.exp conftest.er2 >/dev/null; then 14554 lt_cv_prog_compiler_static_works_CXX=yes 14555 fi 14556 else 14557 lt_cv_prog_compiler_static_works_CXX=yes 14558 fi 14559 fi 14560 $RM -r conftest* 14561 LDFLAGS=$save_LDFLAGS 14562 14563fi 14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14565$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14566 14567if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14568 : 14569else 14570 lt_prog_compiler_static_CXX= 14571fi 14572 14573 14574 14575 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14577$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14578if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14579 $as_echo_n "(cached) " >&6 14580else 14581 lt_cv_prog_compiler_c_o_CXX=no 14582 $RM -r conftest 2>/dev/null 14583 mkdir conftest 14584 cd conftest 14585 mkdir out 14586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14587 14588 lt_compiler_flag="-o out/conftest2.$ac_objext" 14589 # Insert the option either (1) after the last *FLAGS variable, or 14590 # (2) before a word containing "conftest.", or (3) at the end. 14591 # Note that $ac_compile itself does not contain backslashes and begins 14592 # with a dollar sign (not a hyphen), so the echo should work correctly. 14593 lt_compile=`echo "$ac_compile" | $SED \ 14594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14596 -e 's:$: $lt_compiler_flag:'` 14597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14598 (eval "$lt_compile" 2>out/conftest.err) 14599 ac_status=$? 14600 cat out/conftest.err >&5 14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14602 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14603 then 14604 # The compiler can only warn and ignore the option if not recognized 14605 # So say no if there are warnings 14606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14609 lt_cv_prog_compiler_c_o_CXX=yes 14610 fi 14611 fi 14612 chmod u+w . 2>&5 14613 $RM conftest* 14614 # SGI C++ compiler will create directory out/ii_files/ for 14615 # template instantiation 14616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14617 $RM out/* && rmdir out 14618 cd .. 14619 $RM -r conftest 14620 $RM conftest* 14621 14622fi 14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14624$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14625 14626 14627 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14629$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14630if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14631 $as_echo_n "(cached) " >&6 14632else 14633 lt_cv_prog_compiler_c_o_CXX=no 14634 $RM -r conftest 2>/dev/null 14635 mkdir conftest 14636 cd conftest 14637 mkdir out 14638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14639 14640 lt_compiler_flag="-o out/conftest2.$ac_objext" 14641 # Insert the option either (1) after the last *FLAGS variable, or 14642 # (2) before a word containing "conftest.", or (3) at the end. 14643 # Note that $ac_compile itself does not contain backslashes and begins 14644 # with a dollar sign (not a hyphen), so the echo should work correctly. 14645 lt_compile=`echo "$ac_compile" | $SED \ 14646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14648 -e 's:$: $lt_compiler_flag:'` 14649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14650 (eval "$lt_compile" 2>out/conftest.err) 14651 ac_status=$? 14652 cat out/conftest.err >&5 14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14654 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14655 then 14656 # The compiler can only warn and ignore the option if not recognized 14657 # So say no if there are warnings 14658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14661 lt_cv_prog_compiler_c_o_CXX=yes 14662 fi 14663 fi 14664 chmod u+w . 2>&5 14665 $RM conftest* 14666 # SGI C++ compiler will create directory out/ii_files/ for 14667 # template instantiation 14668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14669 $RM out/* && rmdir out 14670 cd .. 14671 $RM -r conftest 14672 $RM conftest* 14673 14674fi 14675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14676$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14677 14678 14679 14680 14681hard_links=nottested 14682if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14683 # do not overwrite the value of need_locks provided by the user 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14685$as_echo_n "checking if we can lock with hard links... " >&6; } 14686 hard_links=yes 14687 $RM conftest* 14688 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14689 touch conftest.a 14690 ln conftest.a conftest.b 2>&5 || hard_links=no 14691 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14693$as_echo "$hard_links" >&6; } 14694 if test no = "$hard_links"; then 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14696$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14697 need_locks=warn 14698 fi 14699else 14700 need_locks=no 14701fi 14702 14703 14704 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14706$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14707 14708 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14709 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14710 case $host_os in 14711 aix[4-9]*) 14712 # If we're using GNU nm, then we don't want the "-C" option. 14713 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14714 # Without the "-l" option, or with the "-B" option, AIX nm treats 14715 # weak defined symbols like other global defined symbols, whereas 14716 # GNU nm marks them as "W". 14717 # While the 'weak' keyword is ignored in the Export File, we need 14718 # it in the Import File for the 'aix-soname' feature, so we have 14719 # to replace the "-B" option with "-P" for AIX nm. 14720 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14721 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 14722 else 14723 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 14724 fi 14725 ;; 14726 pw32*) 14727 export_symbols_cmds_CXX=$ltdll_cmds 14728 ;; 14729 cygwin* | mingw* | cegcc*) 14730 case $cc_basename in 14731 cl*) 14732 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14733 ;; 14734 *) 14735 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' 14736 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14737 ;; 14738 esac 14739 ;; 14740 *) 14741 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14742 ;; 14743 esac 14744 14745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14746$as_echo "$ld_shlibs_CXX" >&6; } 14747test no = "$ld_shlibs_CXX" && can_build_shared=no 14748 14749with_gnu_ld_CXX=$with_gnu_ld 14750 14751 14752 14753 14754 14755 14756# 14757# Do we need to explicitly link libc? 14758# 14759case "x$archive_cmds_need_lc_CXX" in 14760x|xyes) 14761 # Assume -lc should be added 14762 archive_cmds_need_lc_CXX=yes 14763 14764 if test yes,yes = "$GCC,$enable_shared"; then 14765 case $archive_cmds_CXX in 14766 *'~'*) 14767 # FIXME: we may have to deal with multi-command sequences. 14768 ;; 14769 '$CC '*) 14770 # Test whether the compiler implicitly links with -lc since on some 14771 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14772 # to ld, don't add -lc before -lgcc. 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14774$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14775if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14776 $as_echo_n "(cached) " >&6 14777else 14778 $RM conftest* 14779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14780 14781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14782 (eval $ac_compile) 2>&5 14783 ac_status=$? 14784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14785 test $ac_status = 0; } 2>conftest.err; then 14786 soname=conftest 14787 lib=conftest 14788 libobjs=conftest.$ac_objext 14789 deplibs= 14790 wl=$lt_prog_compiler_wl_CXX 14791 pic_flag=$lt_prog_compiler_pic_CXX 14792 compiler_flags=-v 14793 linker_flags=-v 14794 verstring= 14795 output_objdir=. 14796 libname=conftest 14797 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14798 allow_undefined_flag_CXX= 14799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14800 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14801 ac_status=$? 14802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14803 test $ac_status = 0; } 14804 then 14805 lt_cv_archive_cmds_need_lc_CXX=no 14806 else 14807 lt_cv_archive_cmds_need_lc_CXX=yes 14808 fi 14809 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14810 else 14811 cat conftest.err 1>&5 14812 fi 14813 $RM conftest* 14814 14815fi 14816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14817$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14818 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14819 ;; 14820 esac 14821 fi 14822 ;; 14823esac 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14887$as_echo_n "checking dynamic linker characteristics... " >&6; } 14888 14889library_names_spec= 14890libname_spec='lib$name' 14891soname_spec= 14892shrext_cmds=.so 14893postinstall_cmds= 14894postuninstall_cmds= 14895finish_cmds= 14896finish_eval= 14897shlibpath_var= 14898shlibpath_overrides_runpath=unknown 14899version_type=none 14900dynamic_linker="$host_os ld.so" 14901sys_lib_dlsearch_path_spec="/lib /usr/lib" 14902need_lib_prefix=unknown 14903hardcode_into_libs=no 14904 14905# when you set need_version to no, make sure it does not cause -set_version 14906# flags to be left without arguments 14907need_version=unknown 14908 14909 14910 14911case $host_os in 14912aix3*) 14913 version_type=linux # correct to gnu/linux during the next big refactor 14914 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14915 shlibpath_var=LIBPATH 14916 14917 # AIX 3 has no versioning support, so we append a major version to the name. 14918 soname_spec='$libname$release$shared_ext$major' 14919 ;; 14920 14921aix[4-9]*) 14922 version_type=linux # correct to gnu/linux during the next big refactor 14923 need_lib_prefix=no 14924 need_version=no 14925 hardcode_into_libs=yes 14926 if test ia64 = "$host_cpu"; then 14927 # AIX 5 supports IA64 14928 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14929 shlibpath_var=LD_LIBRARY_PATH 14930 else 14931 # With GCC up to 2.95.x, collect2 would create an import file 14932 # for dependence libraries. The import file would start with 14933 # the line '#! .'. This would cause the generated library to 14934 # depend on '.', always an invalid library. This was fixed in 14935 # development snapshots of GCC prior to 3.0. 14936 case $host_os in 14937 aix4 | aix4.[01] | aix4.[01].*) 14938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14939 echo ' yes ' 14940 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14941 : 14942 else 14943 can_build_shared=no 14944 fi 14945 ;; 14946 esac 14947 # Using Import Files as archive members, it is possible to support 14948 # filename-based versioning of shared library archives on AIX. While 14949 # this would work for both with and without runtime linking, it will 14950 # prevent static linking of such archives. So we do filename-based 14951 # shared library versioning with .so extension only, which is used 14952 # when both runtime linking and shared linking is enabled. 14953 # Unfortunately, runtime linking may impact performance, so we do 14954 # not want this to be the default eventually. Also, we use the 14955 # versioned .so libs for executables only if there is the -brtl 14956 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14957 # To allow for filename-based versioning support, we need to create 14958 # libNAME.so.V as an archive file, containing: 14959 # *) an Import File, referring to the versioned filename of the 14960 # archive as well as the shared archive member, telling the 14961 # bitwidth (32 or 64) of that shared object, and providing the 14962 # list of exported symbols of that shared object, eventually 14963 # decorated with the 'weak' keyword 14964 # *) the shared object with the F_LOADONLY flag set, to really avoid 14965 # it being seen by the linker. 14966 # At run time we better use the real file rather than another symlink, 14967 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14968 14969 case $with_aix_soname,$aix_use_runtimelinking in 14970 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14971 # soname into executable. Probably we can add versioning support to 14972 # collect2, so additional links can be useful in future. 14973 aix,yes) # traditional libtool 14974 dynamic_linker='AIX unversionable lib.so' 14975 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14976 # instead of lib<name>.a to let people know that these are not 14977 # typical AIX shared libraries. 14978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14979 ;; 14980 aix,no) # traditional AIX only 14981 dynamic_linker='AIX lib.a(lib.so.V)' 14982 # We preserve .a as extension for shared libraries through AIX4.2 14983 # and later when we are not doing run time linking. 14984 library_names_spec='$libname$release.a $libname.a' 14985 soname_spec='$libname$release$shared_ext$major' 14986 ;; 14987 svr4,*) # full svr4 only 14988 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14989 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14990 # We do not specify a path in Import Files, so LIBPATH fires. 14991 shlibpath_overrides_runpath=yes 14992 ;; 14993 *,yes) # both, prefer svr4 14994 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14995 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14996 # unpreferred sharedlib libNAME.a needs extra handling 14997 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 14998 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 14999 # We do not specify a path in Import Files, so LIBPATH fires. 15000 shlibpath_overrides_runpath=yes 15001 ;; 15002 *,no) # both, prefer aix 15003 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15004 library_names_spec='$libname$release.a $libname.a' 15005 soname_spec='$libname$release$shared_ext$major' 15006 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15007 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15008 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15009 ;; 15010 esac 15011 shlibpath_var=LIBPATH 15012 fi 15013 ;; 15014 15015amigaos*) 15016 case $host_cpu in 15017 powerpc) 15018 # Since July 2007 AmigaOS4 officially supports .so libraries. 15019 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15021 ;; 15022 m68k) 15023 library_names_spec='$libname.ixlibrary $libname.a' 15024 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15025 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15026 ;; 15027 esac 15028 ;; 15029 15030beos*) 15031 library_names_spec='$libname$shared_ext' 15032 dynamic_linker="$host_os ld.so" 15033 shlibpath_var=LIBRARY_PATH 15034 ;; 15035 15036bsdi[45]*) 15037 version_type=linux # correct to gnu/linux during the next big refactor 15038 need_version=no 15039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15040 soname_spec='$libname$release$shared_ext$major' 15041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15042 shlibpath_var=LD_LIBRARY_PATH 15043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15045 # the default ld.so.conf also contains /usr/contrib/lib and 15046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15047 # libtool to hard-code these into programs 15048 ;; 15049 15050cygwin* | mingw* | pw32* | cegcc*) 15051 version_type=windows 15052 shrext_cmds=.dll 15053 need_version=no 15054 need_lib_prefix=no 15055 15056 case $GCC,$cc_basename in 15057 yes,*) 15058 # gcc 15059 library_names_spec='$libname.dll.a' 15060 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15061 postinstall_cmds='base_file=`basename \$file`~ 15062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15063 dldir=$destdir/`dirname \$dlpath`~ 15064 test -d \$dldir || mkdir -p \$dldir~ 15065 $install_prog $dir/$dlname \$dldir/$dlname~ 15066 chmod a+x \$dldir/$dlname~ 15067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15069 fi' 15070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15071 dlpath=$dir/\$dldll~ 15072 $RM \$dlpath' 15073 shlibpath_overrides_runpath=yes 15074 15075 case $host_os in 15076 cygwin*) 15077 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15078 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15079 15080 ;; 15081 mingw* | cegcc*) 15082 # MinGW DLLs use traditional 'lib' prefix 15083 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15084 ;; 15085 pw32*) 15086 # pw32 DLLs use 'pw' prefix rather than 'lib' 15087 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15088 ;; 15089 esac 15090 dynamic_linker='Win32 ld.exe' 15091 ;; 15092 15093 *,cl*) 15094 # Native MSVC 15095 libname_spec='$name' 15096 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15097 library_names_spec='$libname.dll.lib' 15098 15099 case $build_os in 15100 mingw*) 15101 sys_lib_search_path_spec= 15102 lt_save_ifs=$IFS 15103 IFS=';' 15104 for lt_path in $LIB 15105 do 15106 IFS=$lt_save_ifs 15107 # Let DOS variable expansion print the short 8.3 style file name. 15108 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15109 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15110 done 15111 IFS=$lt_save_ifs 15112 # Convert to MSYS style. 15113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15114 ;; 15115 cygwin*) 15116 # Convert to unix form, then to dos form, then back to unix form 15117 # but this time dos style (no spaces!) so that the unix form looks 15118 # like /cygdrive/c/PROGRA~1:/cygdr... 15119 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15120 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15121 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15122 ;; 15123 *) 15124 sys_lib_search_path_spec=$LIB 15125 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15126 # It is most probably a Windows format PATH. 15127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15128 else 15129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15130 fi 15131 # FIXME: find the short name or the path components, as spaces are 15132 # common. (e.g. "Program Files" -> "PROGRA~1") 15133 ;; 15134 esac 15135 15136 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15137 postinstall_cmds='base_file=`basename \$file`~ 15138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15139 dldir=$destdir/`dirname \$dlpath`~ 15140 test -d \$dldir || mkdir -p \$dldir~ 15141 $install_prog $dir/$dlname \$dldir/$dlname' 15142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15143 dlpath=$dir/\$dldll~ 15144 $RM \$dlpath' 15145 shlibpath_overrides_runpath=yes 15146 dynamic_linker='Win32 link.exe' 15147 ;; 15148 15149 *) 15150 # Assume MSVC wrapper 15151 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15152 dynamic_linker='Win32 ld.exe' 15153 ;; 15154 esac 15155 # FIXME: first we should search . and the directory the executable is in 15156 shlibpath_var=PATH 15157 ;; 15158 15159darwin* | rhapsody*) 15160 dynamic_linker="$host_os dyld" 15161 version_type=darwin 15162 need_lib_prefix=no 15163 need_version=no 15164 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15165 soname_spec='$libname$release$major$shared_ext' 15166 shlibpath_overrides_runpath=yes 15167 shlibpath_var=DYLD_LIBRARY_PATH 15168 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15169 15170 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15171 ;; 15172 15173dgux*) 15174 version_type=linux # correct to gnu/linux during the next big refactor 15175 need_lib_prefix=no 15176 need_version=no 15177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15178 soname_spec='$libname$release$shared_ext$major' 15179 shlibpath_var=LD_LIBRARY_PATH 15180 ;; 15181 15182freebsd* | dragonfly*) 15183 # DragonFly does not have aout. When/if they implement a new 15184 # versioning mechanism, adjust this. 15185 if test -x /usr/bin/objformat; then 15186 objformat=`/usr/bin/objformat` 15187 else 15188 case $host_os in 15189 freebsd[23].*) objformat=aout ;; 15190 *) objformat=elf ;; 15191 esac 15192 fi 15193 version_type=freebsd-$objformat 15194 case $version_type in 15195 freebsd-elf*) 15196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15197 soname_spec='$libname$release$shared_ext$major' 15198 need_version=no 15199 need_lib_prefix=no 15200 ;; 15201 freebsd-*) 15202 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15203 need_version=yes 15204 ;; 15205 esac 15206 shlibpath_var=LD_LIBRARY_PATH 15207 case $host_os in 15208 freebsd2.*) 15209 shlibpath_overrides_runpath=yes 15210 ;; 15211 freebsd3.[01]* | freebsdelf3.[01]*) 15212 shlibpath_overrides_runpath=yes 15213 hardcode_into_libs=yes 15214 ;; 15215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15217 shlibpath_overrides_runpath=no 15218 hardcode_into_libs=yes 15219 ;; 15220 *) # from 4.6 on, and DragonFly 15221 shlibpath_overrides_runpath=yes 15222 hardcode_into_libs=yes 15223 ;; 15224 esac 15225 ;; 15226 15227haiku*) 15228 version_type=linux # correct to gnu/linux during the next big refactor 15229 need_lib_prefix=no 15230 need_version=no 15231 dynamic_linker="$host_os runtime_loader" 15232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15233 soname_spec='$libname$release$shared_ext$major' 15234 shlibpath_var=LIBRARY_PATH 15235 shlibpath_overrides_runpath=no 15236 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15237 hardcode_into_libs=yes 15238 ;; 15239 15240hpux9* | hpux10* | hpux11*) 15241 # Give a soname corresponding to the major version so that dld.sl refuses to 15242 # link against other versions. 15243 version_type=sunos 15244 need_lib_prefix=no 15245 need_version=no 15246 case $host_cpu in 15247 ia64*) 15248 shrext_cmds='.so' 15249 hardcode_into_libs=yes 15250 dynamic_linker="$host_os dld.so" 15251 shlibpath_var=LD_LIBRARY_PATH 15252 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15254 soname_spec='$libname$release$shared_ext$major' 15255 if test 32 = "$HPUX_IA64_MODE"; then 15256 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15257 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15258 else 15259 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15260 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15261 fi 15262 ;; 15263 hppa*64*) 15264 shrext_cmds='.sl' 15265 hardcode_into_libs=yes 15266 dynamic_linker="$host_os dld.sl" 15267 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15270 soname_spec='$libname$release$shared_ext$major' 15271 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15273 ;; 15274 *) 15275 shrext_cmds='.sl' 15276 dynamic_linker="$host_os dld.sl" 15277 shlibpath_var=SHLIB_PATH 15278 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15280 soname_spec='$libname$release$shared_ext$major' 15281 ;; 15282 esac 15283 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15284 postinstall_cmds='chmod 555 $lib' 15285 # or fails outright, so override atomically: 15286 install_override_mode=555 15287 ;; 15288 15289interix[3-9]*) 15290 version_type=linux # correct to gnu/linux during the next big refactor 15291 need_lib_prefix=no 15292 need_version=no 15293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15294 soname_spec='$libname$release$shared_ext$major' 15295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15296 shlibpath_var=LD_LIBRARY_PATH 15297 shlibpath_overrides_runpath=no 15298 hardcode_into_libs=yes 15299 ;; 15300 15301irix5* | irix6* | nonstopux*) 15302 case $host_os in 15303 nonstopux*) version_type=nonstopux ;; 15304 *) 15305 if test yes = "$lt_cv_prog_gnu_ld"; then 15306 version_type=linux # correct to gnu/linux during the next big refactor 15307 else 15308 version_type=irix 15309 fi ;; 15310 esac 15311 need_lib_prefix=no 15312 need_version=no 15313 soname_spec='$libname$release$shared_ext$major' 15314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15315 case $host_os in 15316 irix5* | nonstopux*) 15317 libsuff= shlibsuff= 15318 ;; 15319 *) 15320 case $LD in # libtool.m4 will add one of these switches to LD 15321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15322 libsuff= shlibsuff= libmagic=32-bit;; 15323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15324 libsuff=32 shlibsuff=N32 libmagic=N32;; 15325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15326 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15327 *) libsuff= shlibsuff= libmagic=never-match;; 15328 esac 15329 ;; 15330 esac 15331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15332 shlibpath_overrides_runpath=no 15333 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15334 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15335 hardcode_into_libs=yes 15336 ;; 15337 15338# No shared lib support for Linux oldld, aout, or coff. 15339linux*oldld* | linux*aout* | linux*coff*) 15340 dynamic_linker=no 15341 ;; 15342 15343linux*android*) 15344 version_type=none # Android doesn't support versioned libraries. 15345 need_lib_prefix=no 15346 need_version=no 15347 library_names_spec='$libname$release$shared_ext' 15348 soname_spec='$libname$release$shared_ext' 15349 finish_cmds= 15350 shlibpath_var=LD_LIBRARY_PATH 15351 shlibpath_overrides_runpath=yes 15352 15353 # This implies no fast_install, which is unacceptable. 15354 # Some rework will be needed to allow for fast_install 15355 # before this can be enabled. 15356 hardcode_into_libs=yes 15357 15358 dynamic_linker='Android linker' 15359 # Don't embed -rpath directories since the linker doesn't support them. 15360 hardcode_libdir_flag_spec_CXX='-L$libdir' 15361 ;; 15362 15363# This must be glibc/ELF. 15364linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15365 version_type=linux # correct to gnu/linux during the next big refactor 15366 need_lib_prefix=no 15367 need_version=no 15368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15369 soname_spec='$libname$release$shared_ext$major' 15370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15371 shlibpath_var=LD_LIBRARY_PATH 15372 shlibpath_overrides_runpath=no 15373 15374 # Some binutils ld are patched to set DT_RUNPATH 15375 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15376 $as_echo_n "(cached) " >&6 15377else 15378 lt_cv_shlibpath_overrides_runpath=no 15379 save_LDFLAGS=$LDFLAGS 15380 save_libdir=$libdir 15381 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15382 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15384/* end confdefs.h. */ 15385 15386int 15387main () 15388{ 15389 15390 ; 15391 return 0; 15392} 15393_ACEOF 15394if ac_fn_cxx_try_link "$LINENO"; then : 15395 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15396 lt_cv_shlibpath_overrides_runpath=yes 15397fi 15398fi 15399rm -f core conftest.err conftest.$ac_objext \ 15400 conftest$ac_exeext conftest.$ac_ext 15401 LDFLAGS=$save_LDFLAGS 15402 libdir=$save_libdir 15403 15404fi 15405 15406 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15407 15408 # This implies no fast_install, which is unacceptable. 15409 # Some rework will be needed to allow for fast_install 15410 # before this can be enabled. 15411 hardcode_into_libs=yes 15412 15413 # Ideally, we could use ldconfig to report *all* directores which are 15414 # searched for libraries, however this is still not possible. Aside from not 15415 # being certain /sbin/ldconfig is available, command 15416 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15417 # even though it is searched at run-time. Try to do the best guess by 15418 # appending ld.so.conf contents (and includes) to the search path. 15419 if test -f /etc/ld.so.conf; then 15420 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' ' '` 15421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15422 fi 15423 15424 # We used to test for /lib/ld.so.1 and disable shared libraries on 15425 # powerpc, because MkLinux only supported shared libraries with the 15426 # GNU dynamic linker. Since this was broken with cross compilers, 15427 # most powerpc-linux boxes support dynamic linking these days and 15428 # people can always --disable-shared, the test was removed, and we 15429 # assume the GNU/Linux dynamic linker is in use. 15430 dynamic_linker='GNU/Linux ld.so' 15431 ;; 15432 15433netbsd*) 15434 version_type=sunos 15435 need_lib_prefix=no 15436 need_version=no 15437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15440 dynamic_linker='NetBSD (a.out) ld.so' 15441 else 15442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15443 soname_spec='$libname$release$shared_ext$major' 15444 dynamic_linker='NetBSD ld.elf_so' 15445 fi 15446 shlibpath_var=LD_LIBRARY_PATH 15447 shlibpath_overrides_runpath=yes 15448 hardcode_into_libs=yes 15449 ;; 15450 15451newsos6) 15452 version_type=linux # correct to gnu/linux during the next big refactor 15453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15454 shlibpath_var=LD_LIBRARY_PATH 15455 shlibpath_overrides_runpath=yes 15456 ;; 15457 15458*nto* | *qnx*) 15459 version_type=qnx 15460 need_lib_prefix=no 15461 need_version=no 15462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15463 soname_spec='$libname$release$shared_ext$major' 15464 shlibpath_var=LD_LIBRARY_PATH 15465 shlibpath_overrides_runpath=no 15466 hardcode_into_libs=yes 15467 dynamic_linker='ldqnx.so' 15468 ;; 15469 15470openbsd* | bitrig*) 15471 version_type=sunos 15472 sys_lib_dlsearch_path_spec=/usr/lib 15473 need_lib_prefix=no 15474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15475 need_version=no 15476 else 15477 need_version=yes 15478 fi 15479 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15481 shlibpath_var=LD_LIBRARY_PATH 15482 shlibpath_overrides_runpath=yes 15483 ;; 15484 15485os2*) 15486 libname_spec='$name' 15487 version_type=windows 15488 shrext_cmds=.dll 15489 need_version=no 15490 need_lib_prefix=no 15491 # OS/2 can only load a DLL with a base name of 8 characters or less. 15492 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15493 v=$($ECHO $release$versuffix | tr -d .-); 15494 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15495 $ECHO $n$v`$shared_ext' 15496 library_names_spec='${libname}_dll.$libext' 15497 dynamic_linker='OS/2 ld.exe' 15498 shlibpath_var=BEGINLIBPATH 15499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15501 postinstall_cmds='base_file=`basename \$file`~ 15502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15503 dldir=$destdir/`dirname \$dlpath`~ 15504 test -d \$dldir || mkdir -p \$dldir~ 15505 $install_prog $dir/$dlname \$dldir/$dlname~ 15506 chmod a+x \$dldir/$dlname~ 15507 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15508 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15509 fi' 15510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15511 dlpath=$dir/\$dldll~ 15512 $RM \$dlpath' 15513 ;; 15514 15515osf3* | osf4* | osf5*) 15516 version_type=osf 15517 need_lib_prefix=no 15518 need_version=no 15519 soname_spec='$libname$release$shared_ext$major' 15520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15521 shlibpath_var=LD_LIBRARY_PATH 15522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15524 ;; 15525 15526rdos*) 15527 dynamic_linker=no 15528 ;; 15529 15530solaris*) 15531 version_type=linux # correct to gnu/linux during the next big refactor 15532 need_lib_prefix=no 15533 need_version=no 15534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15535 soname_spec='$libname$release$shared_ext$major' 15536 shlibpath_var=LD_LIBRARY_PATH 15537 shlibpath_overrides_runpath=yes 15538 hardcode_into_libs=yes 15539 # ldd complains unless libraries are executable 15540 postinstall_cmds='chmod +x $lib' 15541 ;; 15542 15543sunos4*) 15544 version_type=sunos 15545 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15547 shlibpath_var=LD_LIBRARY_PATH 15548 shlibpath_overrides_runpath=yes 15549 if test yes = "$with_gnu_ld"; then 15550 need_lib_prefix=no 15551 fi 15552 need_version=yes 15553 ;; 15554 15555sysv4 | sysv4.3*) 15556 version_type=linux # correct to gnu/linux during the next big refactor 15557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15558 soname_spec='$libname$release$shared_ext$major' 15559 shlibpath_var=LD_LIBRARY_PATH 15560 case $host_vendor in 15561 sni) 15562 shlibpath_overrides_runpath=no 15563 need_lib_prefix=no 15564 runpath_var=LD_RUN_PATH 15565 ;; 15566 siemens) 15567 need_lib_prefix=no 15568 ;; 15569 motorola) 15570 need_lib_prefix=no 15571 need_version=no 15572 shlibpath_overrides_runpath=no 15573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15574 ;; 15575 esac 15576 ;; 15577 15578sysv4*MP*) 15579 if test -d /usr/nec; then 15580 version_type=linux # correct to gnu/linux during the next big refactor 15581 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15582 soname_spec='$libname$shared_ext.$major' 15583 shlibpath_var=LD_LIBRARY_PATH 15584 fi 15585 ;; 15586 15587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15588 version_type=sco 15589 need_lib_prefix=no 15590 need_version=no 15591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15592 soname_spec='$libname$release$shared_ext$major' 15593 shlibpath_var=LD_LIBRARY_PATH 15594 shlibpath_overrides_runpath=yes 15595 hardcode_into_libs=yes 15596 if test yes = "$with_gnu_ld"; then 15597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15598 else 15599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15600 case $host_os in 15601 sco3.2v5*) 15602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15603 ;; 15604 esac 15605 fi 15606 sys_lib_dlsearch_path_spec='/usr/lib' 15607 ;; 15608 15609tpf*) 15610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15611 version_type=linux # correct to gnu/linux during the next big refactor 15612 need_lib_prefix=no 15613 need_version=no 15614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15615 shlibpath_var=LD_LIBRARY_PATH 15616 shlibpath_overrides_runpath=no 15617 hardcode_into_libs=yes 15618 ;; 15619 15620uts4*) 15621 version_type=linux # correct to gnu/linux during the next big refactor 15622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15623 soname_spec='$libname$release$shared_ext$major' 15624 shlibpath_var=LD_LIBRARY_PATH 15625 ;; 15626 15627*) 15628 dynamic_linker=no 15629 ;; 15630esac 15631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15632$as_echo "$dynamic_linker" >&6; } 15633test no = "$dynamic_linker" && can_build_shared=no 15634 15635variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15636if test yes = "$GCC"; then 15637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15638fi 15639 15640if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15641 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15642fi 15643 15644if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15645 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15646fi 15647 15648# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15649configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15650 15651# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15652func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15653 15654# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15655configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15697$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15698hardcode_action_CXX= 15699if test -n "$hardcode_libdir_flag_spec_CXX" || 15700 test -n "$runpath_var_CXX" || 15701 test yes = "$hardcode_automatic_CXX"; then 15702 15703 # We can hardcode non-existent directories. 15704 if test no != "$hardcode_direct_CXX" && 15705 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15706 # have to relink, otherwise we might link with an installed library 15707 # when we should be linking with a yet-to-be-installed one 15708 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15709 test no != "$hardcode_minus_L_CXX"; then 15710 # Linking always hardcodes the temporary library directory. 15711 hardcode_action_CXX=relink 15712 else 15713 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15714 hardcode_action_CXX=immediate 15715 fi 15716else 15717 # We cannot hardcode anything, or else we can only hardcode existing 15718 # directories. 15719 hardcode_action_CXX=unsupported 15720fi 15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15722$as_echo "$hardcode_action_CXX" >&6; } 15723 15724if test relink = "$hardcode_action_CXX" || 15725 test yes = "$inherit_rpath_CXX"; then 15726 # Fast installation is not supported 15727 enable_fast_install=no 15728elif test yes = "$shlibpath_overrides_runpath" || 15729 test no = "$enable_shared"; then 15730 # Fast installation is not necessary 15731 enable_fast_install=needless 15732fi 15733 15734 15735 15736 15737 15738 15739 15740 fi # test -n "$compiler" 15741 15742 CC=$lt_save_CC 15743 CFLAGS=$lt_save_CFLAGS 15744 LDCXX=$LD 15745 LD=$lt_save_LD 15746 GCC=$lt_save_GCC 15747 with_gnu_ld=$lt_save_with_gnu_ld 15748 lt_cv_path_LDCXX=$lt_cv_path_LD 15749 lt_cv_path_LD=$lt_save_path_LD 15750 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15751 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15752fi # test yes != "$_lt_caught_CXX_error" 15753 15754ac_ext=c 15755ac_cpp='$CPP $CPPFLAGS' 15756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15758ac_compiler_gnu=$ac_cv_c_compiler_gnu 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 ac_config_commands="$ac_config_commands libtool" 15775 15776 15777 15778 15779# Only expand once: 15780 15781 15782 15783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building for a Win32 host" >&5 15784$as_echo_n "checking whether we are building for a Win32 host... " >&6; } 15785if ${mingw_cv_win32_host+:} false; then : 15786 $as_echo_n "(cached) " >&6 15787else 15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789/* end confdefs.h. */ 15790 15791#ifdef _WIN32 15792choke me 15793#endif 15794 15795_ACEOF 15796if ac_fn_c_try_compile "$LINENO"; then : 15797 mingw_cv_win32_host=no 15798else 15799 mingw_cv_win32_host=yes 15800fi 15801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15802fi 15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mingw_cv_win32_host" >&5 15804$as_echo "$mingw_cv_win32_host" >&6; } 15805 if test x$mingw_cv_win32_host = xyes; then 15806 IS_WIN32_TRUE= 15807 IS_WIN32_FALSE='#' 15808else 15809 IS_WIN32_TRUE='#' 15810 IS_WIN32_FALSE= 15811fi 15812 15813 15814 15815 15816 15817for ac_func in bcmp srand48 drand48 15818do : 15819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15820ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15821if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15822 cat >>confdefs.h <<_ACEOF 15823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15824_ACEOF 15825 15826fi 15827done 15828 15829 15830 15831if test x$with_gui = xtrue; then 15832 15833 15834 if test x${WX_CONFIG_NAME+set} != xset ; then 15835 WX_CONFIG_NAME=wx-config 15836 fi 15837 15838 if test "x$wx_config_name" != x ; then 15839 WX_CONFIG_NAME="$wx_config_name" 15840 fi 15841 15842 if test x$wx_config_exec_prefix != x ; then 15843 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix" 15844 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin" 15845 fi 15846 if test x$wx_config_prefix != x ; then 15847 wx_config_args="$wx_config_args --prefix=$wx_config_prefix" 15848 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin" 15849 fi 15850 if test "$cross_compiling" = "yes"; then 15851 wx_config_args="$wx_config_args --host=$host_alias" 15852 fi 15853 15854 if test -x "$WX_CONFIG_NAME" ; then 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5 15856$as_echo_n "checking for wx-config... " >&6; } 15857 WX_CONFIG_PATH="$WX_CONFIG_NAME" 15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5 15859$as_echo "$WX_CONFIG_PATH" >&6; } 15860 else 15861 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args. 15862set dummy $WX_CONFIG_NAME; ac_word=$2 15863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15864$as_echo_n "checking for $ac_word... " >&6; } 15865if ${ac_cv_path_WX_CONFIG_PATH+:} false; then : 15866 $as_echo_n "(cached) " >&6 15867else 15868 case $WX_CONFIG_PATH in 15869 [\\/]* | ?:[\\/]*) 15870 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path. 15871 ;; 15872 *) 15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15874as_dummy=""$WX_LOOKUP_PATH:$PATH"" 15875for as_dir in $as_dummy 15876do 15877 IFS=$as_save_IFS 15878 test -z "$as_dir" && as_dir=. 15879 for ac_exec_ext in '' $ac_executable_extensions; do 15880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15881 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 15882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15883 break 2 15884 fi 15885done 15886 done 15887IFS=$as_save_IFS 15888 15889 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no" 15890 ;; 15891esac 15892fi 15893WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH 15894if test -n "$WX_CONFIG_PATH"; then 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5 15896$as_echo "$WX_CONFIG_PATH" >&6; } 15897else 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15899$as_echo "no" >&6; } 15900fi 15901 15902 15903 fi 15904 15905 if test "$WX_CONFIG_PATH" != "no" ; then 15906 WX_VERSION="" 15907 15908 min_wx_version=2.8.12 15909 if test -z "" ; then 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5 15911$as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; } 15912 else 15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ()" >&5 15914$as_echo_n "checking for wxWidgets version >= $min_wx_version ()... " >&6; } 15915 fi 15916 15917 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args " 15918 15919 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null` 15920 wx_config_major_version=`echo $WX_VERSION | \ 15921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 15922 wx_config_minor_version=`echo $WX_VERSION | \ 15923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 15924 wx_config_micro_version=`echo $WX_VERSION | \ 15925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 15926 15927 wx_requested_major_version=`echo $min_wx_version | \ 15928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 15929 wx_requested_minor_version=`echo $min_wx_version | \ 15930 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 15931 wx_requested_micro_version=`echo $min_wx_version | \ 15932 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 15933 15934 15935 wx_ver_ok="" 15936 if test "x$WX_VERSION" != x ; then 15937 if test $wx_config_major_version -gt $wx_requested_major_version; then 15938 wx_ver_ok=yes 15939 else 15940 if test $wx_config_major_version -eq $wx_requested_major_version; then 15941 if test $wx_config_minor_version -gt $wx_requested_minor_version; then 15942 wx_ver_ok=yes 15943 else 15944 if test $wx_config_minor_version -eq $wx_requested_minor_version; then 15945 if test $wx_config_micro_version -ge $wx_requested_micro_version; then 15946 wx_ver_ok=yes 15947 fi 15948 fi 15949 fi 15950 fi 15951 fi 15952 fi 15953 15954 15955 if test -n "$wx_ver_ok"; then 15956 15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5 15958$as_echo "yes (version $WX_VERSION)" >&6; } 15959 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs` 15960 15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5 15962$as_echo_n "checking for wxWidgets static library... " >&6; } 15963 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null` 15964 if test "x$WX_LIBS_STATIC" = "x"; then 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15966$as_echo "no" >&6; } 15967 else 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15969$as_echo "yes" >&6; } 15970 fi 15971 15972 wx_has_cppflags="" 15973 if test $wx_config_major_version -gt 2; then 15974 wx_has_cppflags=yes 15975 else 15976 if test $wx_config_major_version -eq 2; then 15977 if test $wx_config_minor_version -gt 2; then 15978 wx_has_cppflags=yes 15979 else 15980 if test $wx_config_minor_version -eq 2; then 15981 if test $wx_config_micro_version -ge 6; then 15982 wx_has_cppflags=yes 15983 fi 15984 fi 15985 fi 15986 fi 15987 fi 15988 15989 wx_has_rescomp="" 15990 if test $wx_config_major_version -gt 2; then 15991 wx_has_rescomp=yes 15992 else 15993 if test $wx_config_major_version -eq 2; then 15994 if test $wx_config_minor_version -ge 7; then 15995 wx_has_rescomp=yes 15996 fi 15997 fi 15998 fi 15999 if test "x$wx_has_rescomp" = x ; then 16000 WX_RESCOMP= 16001 else 16002 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp` 16003 fi 16004 16005 if test "x$wx_has_cppflags" = x ; then 16006 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` 16007 WX_CPPFLAGS=$WX_CFLAGS 16008 WX_CXXFLAGS=$WX_CFLAGS 16009 16010 WX_CFLAGS_ONLY=$WX_CFLAGS 16011 WX_CXXFLAGS_ONLY=$WX_CFLAGS 16012 else 16013 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags` 16014 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags` 16015 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` 16016 16017 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"` 16018 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"` 16019 fi 16020 16021 WXCONFIG=1 16022 16023 else 16024 16025 if test "x$WX_VERSION" = x; then 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16027$as_echo "no" >&6; } 16028 else 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5 16030$as_echo "no (version $WX_VERSION is not new enough)" >&6; } 16031 fi 16032 16033 WX_CFLAGS="" 16034 WX_CPPFLAGS="" 16035 WX_CXXFLAGS="" 16036 WX_LIBS="" 16037 WX_LIBS_STATIC="" 16038 WX_RESCOMP="" 16039 : 16040 16041 fi 16042 else 16043 16044 WX_CFLAGS="" 16045 WX_CPPFLAGS="" 16046 WX_CXXFLAGS="" 16047 WX_LIBS="" 16048 WX_LIBS_STATIC="" 16049 WX_RESCOMP="" 16050 16051 : 16052 16053 fi 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 if test "$WXCONFIG" != 1; then 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16067 Did not find a new enough version of wxWidgets; disabling build of 16068 graphical interface. If you want to build the graphical interface, 16069 please check that wx-config is in path, the directory 16070 where wxWidgets libraries are installed (returned by 16071 'wx-config --libs' command) is in LD_LIBRARY_PATH or 16072 equivalent variable and wxWidgets is version 2.8.12 or above. 16073 " >&5 16074$as_echo "$as_me: WARNING: 16075 Did not find a new enough version of wxWidgets; disabling build of 16076 graphical interface. If you want to build the graphical interface, 16077 please check that wx-config is in path, the directory 16078 where wxWidgets libraries are installed (returned by 16079 'wx-config --libs' command) is in LD_LIBRARY_PATH or 16080 equivalent variable and wxWidgets is version 2.8.12 or above. 16081 " >&2;} 16082 GUI_PROGS="" 16083 if test x0 = x1; then 16084 WITH_GUI_TRUE= 16085 WITH_GUI_FALSE='#' 16086else 16087 WITH_GUI_TRUE='#' 16088 WITH_GUI_FALSE= 16089fi 16090 16091 fi 16092fi 16093 16094if test "${WITH_GUI}" == 1; then 16095 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets port" >&5 16097$as_echo_n "checking for wxWidgets port... " >&6; } 16098 if test `echo ${WX_CXXFLAGS} | grep -c __WXX11__` -eq 1; then 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: universal" >&5 16100$as_echo "universal" >&6; } 16101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16102 Found universal port of wxWidgets; disabling build of graphical 16103 interface. The graphical interface cannot be built with this 16104 port because this port does not implement drag-and-drop capability. 16105 Gambit recommends the GTK port of wxWidgets for best results. 16106 " >&5 16107$as_echo "$as_me: WARNING: 16108 Found universal port of wxWidgets; disabling build of graphical 16109 interface. The graphical interface cannot be built with this 16110 port because this port does not implement drag-and-drop capability. 16111 Gambit recommends the GTK port of wxWidgets for best results. 16112 " >&2;} 16113 GUI_PROGS="" 16114 if test x0 = x1; then 16115 WITH_GUI_TRUE= 16116 WITH_GUI_FALSE='#' 16117else 16118 WITH_GUI_TRUE='#' 16119 WITH_GUI_FALSE= 16120fi 16121 16122 fi 16123 16124 if test `echo ${WX_CXXFLAGS} | grep -c __WXMOTIF__` -eq 1; then 16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif" >&5 16126$as_echo "Motif" >&6; } 16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16128 Found Motif port of wxWidgets; disabling build of graphical 16129 interface. The graphical interface cannot be built with this 16130 port because this port does not implement drag-and-drop capability. 16131 Gambit recommends the GTK port of wxWidgets for best results. 16132 " >&5 16133$as_echo "$as_me: WARNING: 16134 Found Motif port of wxWidgets; disabling build of graphical 16135 interface. The graphical interface cannot be built with this 16136 port because this port does not implement drag-and-drop capability. 16137 Gambit recommends the GTK port of wxWidgets for best results. 16138 " >&2;} 16139 GUI_PROGS="" 16140 if test x0 = x1; then 16141 WITH_GUI_TRUE= 16142 WITH_GUI_FALSE='#' 16143else 16144 WITH_GUI_TRUE='#' 16145 WITH_GUI_FALSE= 16146fi 16147 16148 fi 16149 16150 if test `echo ${WX_CXXFLAGS} | grep -c __WXGTK__` -eq 1; then 16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK" >&5 16152$as_echo "GTK" >&6; } 16153 WXPORT="GTK" 16154 GUI_PROGS="gambit" 16155 fi 16156 16157 if test `echo ${WX_CXXFLAGS} | grep -c __WXMSW__` -eq 1; then 16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16159$as_echo "Windows" >&6; } 16160 WXPORT="MSW" 16161 GUI_PROGS="gambit" 16162 RC_OBJECT="gambitrc.o" 16163 RC_OBJECT_PATH="bitmaps/gambitrc.o" 16164 16165 16166 fi 16167 16168 if test `echo ${WX_CXXFLAGS} | grep -c __WXMAC__` -eq 1; then 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Macintosh" >&5 16170$as_echo "Macintosh" >&6; } 16171 WXPORT="MAC" 16172 GUI_PROGS="gambit" 16173 fi 16174 16175 if test -z "$WXPORT"; then 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16177 Could not identify wxWidgets port. Disabling build 16178 of Gambit graphical interface. 16179 " >&5 16180$as_echo "$as_me: WARNING: 16181 Could not identify wxWidgets port. Disabling build 16182 of Gambit graphical interface. 16183 " >&2;} 16184 GUI_PROGS="" 16185 if test x0 = x1; then 16186 WITH_GUI_TRUE= 16187 WITH_GUI_FALSE='#' 16188else 16189 WITH_GUI_TRUE='#' 16190 WITH_GUI_FALSE= 16191fi 16192 16193 fi 16194fi 16195 16196 16197 16198 16199 16200 16201 16202REZFLAGS=`echo $CXXFLAGS $WX_CXXFLAGS | sed 's/-mthreads//g' | sed 's/-g//g' | sed 's/-O. / /g' | sed 's/-I/--include-dir /g'` 16203 16204 16205ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/scripts/Makefile contrib/scripts/enumpoly/Makefile" 16206 16207cat >confcache <<\_ACEOF 16208# This file is a shell script that caches the results of configure 16209# tests run on this system so they can be shared between configure 16210# scripts and configure runs, see configure's option --config-cache. 16211# It is not useful on other systems. If it contains results you don't 16212# want to keep, you may remove or edit it. 16213# 16214# config.status only pays attention to the cache file if you give it 16215# the --recheck option to rerun configure. 16216# 16217# `ac_cv_env_foo' variables (set or unset) will be overridden when 16218# loading this file, other *unset* `ac_cv_foo' will be assigned the 16219# following values. 16220 16221_ACEOF 16222 16223# The following way of writing the cache mishandles newlines in values, 16224# but we know of no workaround that is simple, portable, and efficient. 16225# So, we kill variables containing newlines. 16226# Ultrix sh set writes to stderr and can't be redirected directly, 16227# and sets the high bit in the cache file unless we assign to the vars. 16228( 16229 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16230 eval ac_val=\$$ac_var 16231 case $ac_val in #( 16232 *${as_nl}*) 16233 case $ac_var in #( 16234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16235$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16236 esac 16237 case $ac_var in #( 16238 _ | IFS | as_nl) ;; #( 16239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16240 *) { eval $ac_var=; unset $ac_var;} ;; 16241 esac ;; 16242 esac 16243 done 16244 16245 (set) 2>&1 | 16246 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16247 *${as_nl}ac_space=\ *) 16248 # `set' does not quote correctly, so add quotes: double-quote 16249 # substitution turns \\\\ into \\, and sed turns \\ into \. 16250 sed -n \ 16251 "s/'/'\\\\''/g; 16252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16253 ;; #( 16254 *) 16255 # `set' quotes correctly as required by POSIX, so do not add quotes. 16256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16257 ;; 16258 esac | 16259 sort 16260) | 16261 sed ' 16262 /^ac_cv_env_/b end 16263 t clear 16264 :clear 16265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16266 t end 16267 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16268 :end' >>confcache 16269if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16270 if test -w "$cache_file"; then 16271 if test "x$cache_file" != "x/dev/null"; then 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16273$as_echo "$as_me: updating cache $cache_file" >&6;} 16274 if test ! -f "$cache_file" || test -h "$cache_file"; then 16275 cat confcache >"$cache_file" 16276 else 16277 case $cache_file in #( 16278 */* | ?:*) 16279 mv -f confcache "$cache_file"$$ && 16280 mv -f "$cache_file"$$ "$cache_file" ;; #( 16281 *) 16282 mv -f confcache "$cache_file" ;; 16283 esac 16284 fi 16285 fi 16286 else 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16288$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16289 fi 16290fi 16291rm -f confcache 16292 16293test "x$prefix" = xNONE && prefix=$ac_default_prefix 16294# Let make expand exec_prefix. 16295test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16296 16297DEFS=-DHAVE_CONFIG_H 16298 16299ac_libobjs= 16300ac_ltlibobjs= 16301U= 16302for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16303 # 1. Remove the extension, and $U if already installed. 16304 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16305 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16306 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16307 # will be set to the directory where LIBOBJS objects are built. 16308 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16309 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16310done 16311LIBOBJS=$ac_libobjs 16312 16313LTLIBOBJS=$ac_ltlibobjs 16314 16315 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16317$as_echo_n "checking that generated files are newer than configure... " >&6; } 16318 if test -n "$am_sleep_pid"; then 16319 # Hide warnings about reused PIDs. 16320 wait $am_sleep_pid 2>/dev/null 16321 fi 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16323$as_echo "done" >&6; } 16324 if test -n "$EXEEXT"; then 16325 am__EXEEXT_TRUE= 16326 am__EXEEXT_FALSE='#' 16327else 16328 am__EXEEXT_TRUE='#' 16329 am__EXEEXT_FALSE= 16330fi 16331 16332if test -z "${WITH_GUI_TRUE}" && test -z "${WITH_GUI_FALSE}"; then 16333 as_fn_error $? "conditional \"WITH_GUI\" was never defined. 16334Usually this means the macro was only invoked conditionally." "$LINENO" 5 16335fi 16336if test -z "${WITH_ENUMPOLY_TRUE}" && test -z "${WITH_ENUMPOLY_FALSE}"; then 16337 as_fn_error $? "conditional \"WITH_ENUMPOLY\" was never defined. 16338Usually this means the macro was only invoked conditionally." "$LINENO" 5 16339fi 16340if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16341 as_fn_error $? "conditional \"AMDEP\" was never defined. 16342Usually this means the macro was only invoked conditionally." "$LINENO" 5 16343fi 16344if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16345 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16346Usually this means the macro was only invoked conditionally." "$LINENO" 5 16347fi 16348if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16349 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16350Usually this means the macro was only invoked conditionally." "$LINENO" 5 16351fi 16352if test -z "${IS_WIN32_TRUE}" && test -z "${IS_WIN32_FALSE}"; then 16353 as_fn_error $? "conditional \"IS_WIN32\" was never defined. 16354Usually this means the macro was only invoked conditionally." "$LINENO" 5 16355fi 16356if test -z "${WITH_GUI_TRUE}" && test -z "${WITH_GUI_FALSE}"; then 16357 as_fn_error $? "conditional \"WITH_GUI\" was never defined. 16358Usually this means the macro was only invoked conditionally." "$LINENO" 5 16359fi 16360if test -z "${WITH_GUI_TRUE}" && test -z "${WITH_GUI_FALSE}"; then 16361 as_fn_error $? "conditional \"WITH_GUI\" was never defined. 16362Usually this means the macro was only invoked conditionally." "$LINENO" 5 16363fi 16364if test -z "${WITH_GUI_TRUE}" && test -z "${WITH_GUI_FALSE}"; then 16365 as_fn_error $? "conditional \"WITH_GUI\" was never defined. 16366Usually this means the macro was only invoked conditionally." "$LINENO" 5 16367fi 16368if test -z "${WITH_GUI_TRUE}" && test -z "${WITH_GUI_FALSE}"; then 16369 as_fn_error $? "conditional \"WITH_GUI\" was never defined. 16370Usually this means the macro was only invoked conditionally." "$LINENO" 5 16371fi 16372 16373: "${CONFIG_STATUS=./config.status}" 16374ac_write_fail=0 16375ac_clean_files_save=$ac_clean_files 16376ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16377{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16378$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16379as_write_fail=0 16380cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16381#! $SHELL 16382# Generated by $as_me. 16383# Run this file to recreate the current configuration. 16384# Compiler output produced by configure, useful for debugging 16385# configure, is in config.log if it exists. 16386 16387debug=false 16388ac_cs_recheck=false 16389ac_cs_silent=false 16390 16391SHELL=\${CONFIG_SHELL-$SHELL} 16392export SHELL 16393_ASEOF 16394cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16395## -------------------- ## 16396## M4sh Initialization. ## 16397## -------------------- ## 16398 16399# Be more Bourne compatible 16400DUALCASE=1; export DUALCASE # for MKS sh 16401if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16402 emulate sh 16403 NULLCMD=: 16404 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16405 # is contrary to our usage. Disable this feature. 16406 alias -g '${1+"$@"}'='"$@"' 16407 setopt NO_GLOB_SUBST 16408else 16409 case `(set -o) 2>/dev/null` in #( 16410 *posix*) : 16411 set -o posix ;; #( 16412 *) : 16413 ;; 16414esac 16415fi 16416 16417 16418as_nl=' 16419' 16420export as_nl 16421# Printing a long string crashes Solaris 7 /usr/bin/printf. 16422as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16423as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16424as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16425# Prefer a ksh shell builtin over an external printf program on Solaris, 16426# but without wasting forks for bash or zsh. 16427if test -z "$BASH_VERSION$ZSH_VERSION" \ 16428 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16429 as_echo='print -r --' 16430 as_echo_n='print -rn --' 16431elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16432 as_echo='printf %s\n' 16433 as_echo_n='printf %s' 16434else 16435 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16436 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16437 as_echo_n='/usr/ucb/echo -n' 16438 else 16439 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16440 as_echo_n_body='eval 16441 arg=$1; 16442 case $arg in #( 16443 *"$as_nl"*) 16444 expr "X$arg" : "X\\(.*\\)$as_nl"; 16445 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16446 esac; 16447 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16448 ' 16449 export as_echo_n_body 16450 as_echo_n='sh -c $as_echo_n_body as_echo' 16451 fi 16452 export as_echo_body 16453 as_echo='sh -c $as_echo_body as_echo' 16454fi 16455 16456# The user is always right. 16457if test "${PATH_SEPARATOR+set}" != set; then 16458 PATH_SEPARATOR=: 16459 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16460 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16461 PATH_SEPARATOR=';' 16462 } 16463fi 16464 16465 16466# IFS 16467# We need space, tab and new line, in precisely that order. Quoting is 16468# there to prevent editors from complaining about space-tab. 16469# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16470# splitting by setting IFS to empty value.) 16471IFS=" "" $as_nl" 16472 16473# Find who we are. Look in the path if we contain no directory separator. 16474as_myself= 16475case $0 in #(( 16476 *[\\/]* ) as_myself=$0 ;; 16477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16478for as_dir in $PATH 16479do 16480 IFS=$as_save_IFS 16481 test -z "$as_dir" && as_dir=. 16482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16483 done 16484IFS=$as_save_IFS 16485 16486 ;; 16487esac 16488# We did not find ourselves, most probably we were run as `sh COMMAND' 16489# in which case we are not to be found in the path. 16490if test "x$as_myself" = x; then 16491 as_myself=$0 16492fi 16493if test ! -f "$as_myself"; then 16494 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16495 exit 1 16496fi 16497 16498# Unset variables that we do not need and which cause bugs (e.g. in 16499# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16500# suppresses any "Segmentation fault" message there. '((' could 16501# trigger a bug in pdksh 5.2.14. 16502for as_var in BASH_ENV ENV MAIL MAILPATH 16503do eval test x\${$as_var+set} = xset \ 16504 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16505done 16506PS1='$ ' 16507PS2='> ' 16508PS4='+ ' 16509 16510# NLS nuisances. 16511LC_ALL=C 16512export LC_ALL 16513LANGUAGE=C 16514export LANGUAGE 16515 16516# CDPATH. 16517(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16518 16519 16520# as_fn_error STATUS ERROR [LINENO LOG_FD] 16521# ---------------------------------------- 16522# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16523# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16524# script with STATUS, using 1 if that was 0. 16525as_fn_error () 16526{ 16527 as_status=$1; test $as_status -eq 0 && as_status=1 16528 if test "$4"; then 16529 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16530 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16531 fi 16532 $as_echo "$as_me: error: $2" >&2 16533 as_fn_exit $as_status 16534} # as_fn_error 16535 16536 16537# as_fn_set_status STATUS 16538# ----------------------- 16539# Set $? to STATUS, without forking. 16540as_fn_set_status () 16541{ 16542 return $1 16543} # as_fn_set_status 16544 16545# as_fn_exit STATUS 16546# ----------------- 16547# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16548as_fn_exit () 16549{ 16550 set +e 16551 as_fn_set_status $1 16552 exit $1 16553} # as_fn_exit 16554 16555# as_fn_unset VAR 16556# --------------- 16557# Portably unset VAR. 16558as_fn_unset () 16559{ 16560 { eval $1=; unset $1;} 16561} 16562as_unset=as_fn_unset 16563# as_fn_append VAR VALUE 16564# ---------------------- 16565# Append the text in VALUE to the end of the definition contained in VAR. Take 16566# advantage of any shell optimizations that allow amortized linear growth over 16567# repeated appends, instead of the typical quadratic growth present in naive 16568# implementations. 16569if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16570 eval 'as_fn_append () 16571 { 16572 eval $1+=\$2 16573 }' 16574else 16575 as_fn_append () 16576 { 16577 eval $1=\$$1\$2 16578 } 16579fi # as_fn_append 16580 16581# as_fn_arith ARG... 16582# ------------------ 16583# Perform arithmetic evaluation on the ARGs, and store the result in the 16584# global $as_val. Take advantage of shells that can avoid forks. The arguments 16585# must be portable across $(()) and expr. 16586if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16587 eval 'as_fn_arith () 16588 { 16589 as_val=$(( $* )) 16590 }' 16591else 16592 as_fn_arith () 16593 { 16594 as_val=`expr "$@" || test $? -eq 1` 16595 } 16596fi # as_fn_arith 16597 16598 16599if expr a : '\(a\)' >/dev/null 2>&1 && 16600 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16601 as_expr=expr 16602else 16603 as_expr=false 16604fi 16605 16606if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16607 as_basename=basename 16608else 16609 as_basename=false 16610fi 16611 16612if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16613 as_dirname=dirname 16614else 16615 as_dirname=false 16616fi 16617 16618as_me=`$as_basename -- "$0" || 16619$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16620 X"$0" : 'X\(//\)$' \| \ 16621 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16622$as_echo X/"$0" | 16623 sed '/^.*\/\([^/][^/]*\)\/*$/{ 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 16637# Avoid depending upon Character Ranges. 16638as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16639as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16640as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16641as_cr_digits='0123456789' 16642as_cr_alnum=$as_cr_Letters$as_cr_digits 16643 16644ECHO_C= ECHO_N= ECHO_T= 16645case `echo -n x` in #((((( 16646-n*) 16647 case `echo 'xy\c'` in 16648 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16649 xy) ECHO_C='\c';; 16650 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16651 ECHO_T=' ';; 16652 esac;; 16653*) 16654 ECHO_N='-n';; 16655esac 16656 16657rm -f conf$$ conf$$.exe conf$$.file 16658if test -d conf$$.dir; then 16659 rm -f conf$$.dir/conf$$.file 16660else 16661 rm -f conf$$.dir 16662 mkdir conf$$.dir 2>/dev/null 16663fi 16664if (echo >conf$$.file) 2>/dev/null; then 16665 if ln -s conf$$.file conf$$ 2>/dev/null; then 16666 as_ln_s='ln -s' 16667 # ... but there are two gotchas: 16668 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16669 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16670 # In both cases, we have to default to `cp -pR'. 16671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16672 as_ln_s='cp -pR' 16673 elif ln conf$$.file conf$$ 2>/dev/null; then 16674 as_ln_s=ln 16675 else 16676 as_ln_s='cp -pR' 16677 fi 16678else 16679 as_ln_s='cp -pR' 16680fi 16681rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16682rmdir conf$$.dir 2>/dev/null 16683 16684 16685# as_fn_mkdir_p 16686# ------------- 16687# Create "$as_dir" as a directory, including parents if necessary. 16688as_fn_mkdir_p () 16689{ 16690 16691 case $as_dir in #( 16692 -*) as_dir=./$as_dir;; 16693 esac 16694 test -d "$as_dir" || eval $as_mkdir_p || { 16695 as_dirs= 16696 while :; do 16697 case $as_dir in #( 16698 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16699 *) as_qdir=$as_dir;; 16700 esac 16701 as_dirs="'$as_qdir' $as_dirs" 16702 as_dir=`$as_dirname -- "$as_dir" || 16703$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16704 X"$as_dir" : 'X\(//\)[^/]' \| \ 16705 X"$as_dir" : 'X\(//\)$' \| \ 16706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16707$as_echo X"$as_dir" | 16708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16709 s//\1/ 16710 q 16711 } 16712 /^X\(\/\/\)[^/].*/{ 16713 s//\1/ 16714 q 16715 } 16716 /^X\(\/\/\)$/{ 16717 s//\1/ 16718 q 16719 } 16720 /^X\(\/\).*/{ 16721 s//\1/ 16722 q 16723 } 16724 s/.*/./; q'` 16725 test -d "$as_dir" && break 16726 done 16727 test -z "$as_dirs" || eval "mkdir $as_dirs" 16728 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16729 16730 16731} # as_fn_mkdir_p 16732if mkdir -p . 2>/dev/null; then 16733 as_mkdir_p='mkdir -p "$as_dir"' 16734else 16735 test -d ./-p && rmdir ./-p 16736 as_mkdir_p=false 16737fi 16738 16739 16740# as_fn_executable_p FILE 16741# ----------------------- 16742# Test if FILE is an executable regular file. 16743as_fn_executable_p () 16744{ 16745 test -f "$1" && test -x "$1" 16746} # as_fn_executable_p 16747as_test_x='test -x' 16748as_executable_p=as_fn_executable_p 16749 16750# Sed expression to map a string onto a valid CPP name. 16751as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16752 16753# Sed expression to map a string onto a valid variable name. 16754as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16755 16756 16757exec 6>&1 16758## ----------------------------------- ## 16759## Main body of $CONFIG_STATUS script. ## 16760## ----------------------------------- ## 16761_ASEOF 16762test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16763 16764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16765# Save the log message, to keep $0 and so on meaningful, and to 16766# report actual input values of CONFIG_FILES etc. instead of their 16767# values after options handling. 16768ac_log=" 16769This file was extended by gambit $as_me 16.0.1, which was 16770generated by GNU Autoconf 2.69. Invocation command line was 16771 16772 CONFIG_FILES = $CONFIG_FILES 16773 CONFIG_HEADERS = $CONFIG_HEADERS 16774 CONFIG_LINKS = $CONFIG_LINKS 16775 CONFIG_COMMANDS = $CONFIG_COMMANDS 16776 $ $0 $@ 16777 16778on `(hostname || uname -n) 2>/dev/null | sed 1q` 16779" 16780 16781_ACEOF 16782 16783case $ac_config_files in *" 16784"*) set x $ac_config_files; shift; ac_config_files=$*;; 16785esac 16786 16787case $ac_config_headers in *" 16788"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16789esac 16790 16791 16792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16793# Files that config.status was made for. 16794config_files="$ac_config_files" 16795config_headers="$ac_config_headers" 16796config_commands="$ac_config_commands" 16797 16798_ACEOF 16799 16800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16801ac_cs_usage="\ 16802\`$as_me' instantiates files and other configuration actions 16803from templates according to the current configuration. Unless the files 16804and actions are specified as TAGs, all are instantiated by default. 16805 16806Usage: $0 [OPTION]... [TAG]... 16807 16808 -h, --help print this help, then exit 16809 -V, --version print version number and configuration settings, then exit 16810 --config print configuration, then exit 16811 -q, --quiet, --silent 16812 do not print progress messages 16813 -d, --debug don't remove temporary files 16814 --recheck update $as_me by reconfiguring in the same conditions 16815 --file=FILE[:TEMPLATE] 16816 instantiate the configuration file FILE 16817 --header=FILE[:TEMPLATE] 16818 instantiate the configuration header FILE 16819 16820Configuration files: 16821$config_files 16822 16823Configuration headers: 16824$config_headers 16825 16826Configuration commands: 16827$config_commands 16828 16829Report bugs to the package provider." 16830 16831_ACEOF 16832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16833ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16834ac_cs_version="\\ 16835gambit config.status 16.0.1 16836configured by $0, generated by GNU Autoconf 2.69, 16837 with options \\"\$ac_cs_config\\" 16838 16839Copyright (C) 2012 Free Software Foundation, Inc. 16840This config.status script is free software; the Free Software Foundation 16841gives unlimited permission to copy, distribute and modify it." 16842 16843ac_pwd='$ac_pwd' 16844srcdir='$srcdir' 16845INSTALL='$INSTALL' 16846MKDIR_P='$MKDIR_P' 16847AWK='$AWK' 16848test -n "\$AWK" || AWK=awk 16849_ACEOF 16850 16851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16852# The default lists apply if the user does not specify any file. 16853ac_need_defaults=: 16854while test $# != 0 16855do 16856 case $1 in 16857 --*=?*) 16858 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16860 ac_shift=: 16861 ;; 16862 --*=) 16863 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16864 ac_optarg= 16865 ac_shift=: 16866 ;; 16867 *) 16868 ac_option=$1 16869 ac_optarg=$2 16870 ac_shift=shift 16871 ;; 16872 esac 16873 16874 case $ac_option in 16875 # Handling of the options. 16876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16877 ac_cs_recheck=: ;; 16878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16879 $as_echo "$ac_cs_version"; exit ;; 16880 --config | --confi | --conf | --con | --co | --c ) 16881 $as_echo "$ac_cs_config"; exit ;; 16882 --debug | --debu | --deb | --de | --d | -d ) 16883 debug=: ;; 16884 --file | --fil | --fi | --f ) 16885 $ac_shift 16886 case $ac_optarg in 16887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16888 '') as_fn_error $? "missing file argument" ;; 16889 esac 16890 as_fn_append CONFIG_FILES " '$ac_optarg'" 16891 ac_need_defaults=false;; 16892 --header | --heade | --head | --hea ) 16893 $ac_shift 16894 case $ac_optarg in 16895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16896 esac 16897 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16898 ac_need_defaults=false;; 16899 --he | --h) 16900 # Conflict between --help and --header 16901 as_fn_error $? "ambiguous option: \`$1' 16902Try \`$0 --help' for more information.";; 16903 --help | --hel | -h ) 16904 $as_echo "$ac_cs_usage"; exit ;; 16905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16906 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16907 ac_cs_silent=: ;; 16908 16909 # This is an error. 16910 -*) as_fn_error $? "unrecognized option: \`$1' 16911Try \`$0 --help' for more information." ;; 16912 16913 *) as_fn_append ac_config_targets " $1" 16914 ac_need_defaults=false ;; 16915 16916 esac 16917 shift 16918done 16919 16920ac_configure_extra_args= 16921 16922if $ac_cs_silent; then 16923 exec 6>/dev/null 16924 ac_configure_extra_args="$ac_configure_extra_args --silent" 16925fi 16926 16927_ACEOF 16928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16929if \$ac_cs_recheck; then 16930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16931 shift 16932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16933 CONFIG_SHELL='$SHELL' 16934 export CONFIG_SHELL 16935 exec "\$@" 16936fi 16937 16938_ACEOF 16939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16940exec 5>>config.log 16941{ 16942 echo 16943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16944## Running $as_me. ## 16945_ASBOX 16946 $as_echo "$ac_log" 16947} >&5 16948 16949_ACEOF 16950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16951# 16952# INIT-COMMANDS 16953# 16954AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16955 16956 16957# The HP-UX ksh and POSIX shell print the target directory to stdout 16958# if CDPATH is set. 16959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16960 16961sed_quote_subst='$sed_quote_subst' 16962double_quote_subst='$double_quote_subst' 16963delay_variable_subst='$delay_variable_subst' 16964macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16965macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16966enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16967enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16968pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16969enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16970shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16971SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16972ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16973PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16974host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16975host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16976host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16977build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16978build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16979build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16980SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16981Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16982GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16983EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16984FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16985LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16986NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16987LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16988max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16989ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16990exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16991lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16992lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16993lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16994lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16995lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16996reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16997reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16998OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16999deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17000file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17001file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17002want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17003DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17004sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17005AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17006AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17007archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17008STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17009RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17010old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17011old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17012old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17013lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17014CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17015CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17016compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17017GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17018lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17019lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17020lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17021lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17022lt_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"`' 17023lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17024nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17025lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17026lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17027objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17028MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17029lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17030lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17031lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17032lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17033lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17034need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17035MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17036DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17037NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17038LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17039OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17040OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17041libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17042shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17043extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17044archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17045enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17046export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17047whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17048compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17049old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17050old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17051archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17052archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17053module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17054module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17055with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17056allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17057no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17058hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17059hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17060hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17061hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17062hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17063hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17064hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17065inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17066link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17067always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17068export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17069exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17070include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17071prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17072postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17073file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17074variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17075need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17076need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17077version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17078runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17079shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17080shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17081libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17082library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17083soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17084install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17085postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17086postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17087finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17088finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17089hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17090sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17091configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17092configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17093hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17094enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17095enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17096enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17097old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17098striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17099compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17100predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17101postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17102predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17103postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17104compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17105LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17106reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17107reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17108old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17109compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17110GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17111lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17112lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17113lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17114lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17115lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17116archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17117enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17118export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17119whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17120compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17121old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17122old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17123archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17124archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17125module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17126module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17127with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17128allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17129no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17130hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17131hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17132hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17133hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17134hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17135hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17136hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17137inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17138link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17139always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17140export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17141exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17142include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17143prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17144postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17145file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17146hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17147compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17148predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17149postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17150predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17151postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17152compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17153 17154LTCC='$LTCC' 17155LTCFLAGS='$LTCFLAGS' 17156compiler='$compiler_DEFAULT' 17157 17158# A function that is used when there is no print builtin or printf. 17159func_fallback_echo () 17160{ 17161 eval 'cat <<_LTECHO_EOF 17162\$1 17163_LTECHO_EOF' 17164} 17165 17166# Quote evaled strings. 17167for var in SHELL \ 17168ECHO \ 17169PATH_SEPARATOR \ 17170SED \ 17171GREP \ 17172EGREP \ 17173FGREP \ 17174LD \ 17175NM \ 17176LN_S \ 17177lt_SP2NL \ 17178lt_NL2SP \ 17179reload_flag \ 17180OBJDUMP \ 17181deplibs_check_method \ 17182file_magic_cmd \ 17183file_magic_glob \ 17184want_nocaseglob \ 17185DLLTOOL \ 17186sharedlib_from_linklib_cmd \ 17187AR \ 17188AR_FLAGS \ 17189archiver_list_spec \ 17190STRIP \ 17191RANLIB \ 17192CC \ 17193CFLAGS \ 17194compiler \ 17195lt_cv_sys_global_symbol_pipe \ 17196lt_cv_sys_global_symbol_to_cdecl \ 17197lt_cv_sys_global_symbol_to_import \ 17198lt_cv_sys_global_symbol_to_c_name_address \ 17199lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17200lt_cv_nm_interface \ 17201nm_file_list_spec \ 17202lt_cv_truncate_bin \ 17203lt_prog_compiler_no_builtin_flag \ 17204lt_prog_compiler_pic \ 17205lt_prog_compiler_wl \ 17206lt_prog_compiler_static \ 17207lt_cv_prog_compiler_c_o \ 17208need_locks \ 17209MANIFEST_TOOL \ 17210DSYMUTIL \ 17211NMEDIT \ 17212LIPO \ 17213OTOOL \ 17214OTOOL64 \ 17215shrext_cmds \ 17216export_dynamic_flag_spec \ 17217whole_archive_flag_spec \ 17218compiler_needs_object \ 17219with_gnu_ld \ 17220allow_undefined_flag \ 17221no_undefined_flag \ 17222hardcode_libdir_flag_spec \ 17223hardcode_libdir_separator \ 17224exclude_expsyms \ 17225include_expsyms \ 17226file_list_spec \ 17227variables_saved_for_relink \ 17228libname_spec \ 17229library_names_spec \ 17230soname_spec \ 17231install_override_mode \ 17232finish_eval \ 17233old_striplib \ 17234striplib \ 17235compiler_lib_search_dirs \ 17236predep_objects \ 17237postdep_objects \ 17238predeps \ 17239postdeps \ 17240compiler_lib_search_path \ 17241LD_CXX \ 17242reload_flag_CXX \ 17243compiler_CXX \ 17244lt_prog_compiler_no_builtin_flag_CXX \ 17245lt_prog_compiler_pic_CXX \ 17246lt_prog_compiler_wl_CXX \ 17247lt_prog_compiler_static_CXX \ 17248lt_cv_prog_compiler_c_o_CXX \ 17249export_dynamic_flag_spec_CXX \ 17250whole_archive_flag_spec_CXX \ 17251compiler_needs_object_CXX \ 17252with_gnu_ld_CXX \ 17253allow_undefined_flag_CXX \ 17254no_undefined_flag_CXX \ 17255hardcode_libdir_flag_spec_CXX \ 17256hardcode_libdir_separator_CXX \ 17257exclude_expsyms_CXX \ 17258include_expsyms_CXX \ 17259file_list_spec_CXX \ 17260compiler_lib_search_dirs_CXX \ 17261predep_objects_CXX \ 17262postdep_objects_CXX \ 17263predeps_CXX \ 17264postdeps_CXX \ 17265compiler_lib_search_path_CXX; do 17266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17267 *[\\\\\\\`\\"\\\$]*) 17268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17269 ;; 17270 *) 17271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17272 ;; 17273 esac 17274done 17275 17276# Double-quote double-evaled strings. 17277for var in reload_cmds \ 17278old_postinstall_cmds \ 17279old_postuninstall_cmds \ 17280old_archive_cmds \ 17281extract_expsyms_cmds \ 17282old_archive_from_new_cmds \ 17283old_archive_from_expsyms_cmds \ 17284archive_cmds \ 17285archive_expsym_cmds \ 17286module_cmds \ 17287module_expsym_cmds \ 17288export_symbols_cmds \ 17289prelink_cmds \ 17290postlink_cmds \ 17291postinstall_cmds \ 17292postuninstall_cmds \ 17293finish_cmds \ 17294sys_lib_search_path_spec \ 17295configure_time_dlsearch_path \ 17296configure_time_lt_sys_library_path \ 17297reload_cmds_CXX \ 17298old_archive_cmds_CXX \ 17299old_archive_from_new_cmds_CXX \ 17300old_archive_from_expsyms_cmds_CXX \ 17301archive_cmds_CXX \ 17302archive_expsym_cmds_CXX \ 17303module_cmds_CXX \ 17304module_expsym_cmds_CXX \ 17305export_symbols_cmds_CXX \ 17306prelink_cmds_CXX \ 17307postlink_cmds_CXX; do 17308 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17309 *[\\\\\\\`\\"\\\$]*) 17310 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17311 ;; 17312 *) 17313 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17314 ;; 17315 esac 17316done 17317 17318ac_aux_dir='$ac_aux_dir' 17319 17320# See if we are running on zsh, and set the options that allow our 17321# commands through without removal of \ escapes INIT. 17322if test -n "\${ZSH_VERSION+set}"; then 17323 setopt NO_GLOB_SUBST 17324fi 17325 17326 17327 PACKAGE='$PACKAGE' 17328 VERSION='$VERSION' 17329 RM='$RM' 17330 ofile='$ofile' 17331 17332 17333 17334 17335 17336 17337_ACEOF 17338 17339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17340 17341# Handling of arguments. 17342for ac_config_target in $ac_config_targets 17343do 17344 case $ac_config_target in 17345 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17346 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17347 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17348 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17349 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 17350 "contrib/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/scripts/Makefile" ;; 17351 "contrib/scripts/enumpoly/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/scripts/enumpoly/Makefile" ;; 17352 17353 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17354 esac 17355done 17356 17357 17358# If the user did not use the arguments to specify the items to instantiate, 17359# then the envvar interface is used. Set only those that are not. 17360# We use the long form for the default assignment because of an extremely 17361# bizarre bug on SunOS 4.1.3. 17362if $ac_need_defaults; then 17363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17366fi 17367 17368# Have a temporary directory for convenience. Make it in the build tree 17369# simply because there is no reason against having it here, and in addition, 17370# creating and moving files from /tmp can sometimes cause problems. 17371# Hook for its removal unless debugging. 17372# Note that there is a small window in which the directory will not be cleaned: 17373# after its creation but before its name has been assigned to `$tmp'. 17374$debug || 17375{ 17376 tmp= ac_tmp= 17377 trap 'exit_status=$? 17378 : "${ac_tmp:=$tmp}" 17379 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17380' 0 17381 trap 'as_fn_exit 1' 1 2 13 15 17382} 17383# Create a (secure) tmp directory for tmp files. 17384 17385{ 17386 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17387 test -d "$tmp" 17388} || 17389{ 17390 tmp=./conf$$-$RANDOM 17391 (umask 077 && mkdir "$tmp") 17392} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17393ac_tmp=$tmp 17394 17395# Set up the scripts for CONFIG_FILES section. 17396# No need to generate them if there are no CONFIG_FILES. 17397# This happens for instance with `./config.status config.h'. 17398if test -n "$CONFIG_FILES"; then 17399 17400 17401ac_cr=`echo X | tr X '\015'` 17402# On cygwin, bash can eat \r inside `` if the user requested igncr. 17403# But we know of no other shell where ac_cr would be empty at this 17404# point, so we can use a bashism as a fallback. 17405if test "x$ac_cr" = x; then 17406 eval ac_cr=\$\'\\r\' 17407fi 17408ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17409if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17410 ac_cs_awk_cr='\\r' 17411else 17412 ac_cs_awk_cr=$ac_cr 17413fi 17414 17415echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17416_ACEOF 17417 17418 17419{ 17420 echo "cat >conf$$subs.awk <<_ACEOF" && 17421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17422 echo "_ACEOF" 17423} >conf$$subs.sh || 17424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17425ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17426ac_delim='%!_!# ' 17427for ac_last_try in false false false false false :; do 17428 . ./conf$$subs.sh || 17429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17430 17431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17432 if test $ac_delim_n = $ac_delim_num; then 17433 break 17434 elif $ac_last_try; then 17435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17436 else 17437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17438 fi 17439done 17440rm -f conf$$subs.sh 17441 17442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17443cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17444_ACEOF 17445sed -n ' 17446h 17447s/^/S["/; s/!.*/"]=/ 17448p 17449g 17450s/^[^!]*!// 17451:repl 17452t repl 17453s/'"$ac_delim"'$// 17454t delim 17455:nl 17456h 17457s/\(.\{148\}\)..*/\1/ 17458t more1 17459s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17460p 17461n 17462b repl 17463:more1 17464s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17465p 17466g 17467s/.\{148\}// 17468t nl 17469:delim 17470h 17471s/\(.\{148\}\)..*/\1/ 17472t more2 17473s/["\\]/\\&/g; s/^/"/; s/$/"/ 17474p 17475b 17476:more2 17477s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17478p 17479g 17480s/.\{148\}// 17481t delim 17482' <conf$$subs.awk | sed ' 17483/^[^""]/{ 17484 N 17485 s/\n// 17486} 17487' >>$CONFIG_STATUS || ac_write_fail=1 17488rm -f conf$$subs.awk 17489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17490_ACAWK 17491cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17492 for (key in S) S_is_set[key] = 1 17493 FS = "" 17494 17495} 17496{ 17497 line = $ 0 17498 nfields = split(line, field, "@") 17499 substed = 0 17500 len = length(field[1]) 17501 for (i = 2; i < nfields; i++) { 17502 key = field[i] 17503 keylen = length(key) 17504 if (S_is_set[key]) { 17505 value = S[key] 17506 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17507 len += length(value) + length(field[++i]) 17508 substed = 1 17509 } else 17510 len += 1 + keylen 17511 } 17512 17513 print line 17514} 17515 17516_ACAWK 17517_ACEOF 17518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17519if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17521else 17522 cat 17523fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17524 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17525_ACEOF 17526 17527# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17528# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17529# trailing colons and then remove the whole line if VPATH becomes empty 17530# (actually we leave an empty line to preserve line numbers). 17531if test "x$srcdir" = x.; then 17532 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17533h 17534s/// 17535s/^/:/ 17536s/[ ]*$/:/ 17537s/:\$(srcdir):/:/g 17538s/:\${srcdir}:/:/g 17539s/:@srcdir@:/:/g 17540s/^:*// 17541s/:*$// 17542x 17543s/\(=[ ]*\).*/\1/ 17544G 17545s/\n// 17546s/^[^=]*=[ ]*$// 17547}' 17548fi 17549 17550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17551fi # test -n "$CONFIG_FILES" 17552 17553# Set up the scripts for CONFIG_HEADERS section. 17554# No need to generate them if there are no CONFIG_HEADERS. 17555# This happens for instance with `./config.status Makefile'. 17556if test -n "$CONFIG_HEADERS"; then 17557cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17558BEGIN { 17559_ACEOF 17560 17561# Transform confdefs.h into an awk script `defines.awk', embedded as 17562# here-document in config.status, that substitutes the proper values into 17563# config.h.in to produce config.h. 17564 17565# Create a delimiter string that does not exist in confdefs.h, to ease 17566# handling of long lines. 17567ac_delim='%!_!# ' 17568for ac_last_try in false false :; do 17569 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17570 if test -z "$ac_tt"; then 17571 break 17572 elif $ac_last_try; then 17573 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17574 else 17575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17576 fi 17577done 17578 17579# For the awk script, D is an array of macro values keyed by name, 17580# likewise P contains macro parameters if any. Preserve backslash 17581# newline sequences. 17582 17583ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17584sed -n ' 17585s/.\{148\}/&'"$ac_delim"'/g 17586t rset 17587:rset 17588s/^[ ]*#[ ]*define[ ][ ]*/ / 17589t def 17590d 17591:def 17592s/\\$// 17593t bsnl 17594s/["\\]/\\&/g 17595s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17596D["\1"]=" \3"/p 17597s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17598d 17599:bsnl 17600s/["\\]/\\&/g 17601s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17602D["\1"]=" \3\\\\\\n"\\/p 17603t cont 17604s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17605t cont 17606d 17607:cont 17608n 17609s/.\{148\}/&'"$ac_delim"'/g 17610t clear 17611:clear 17612s/\\$// 17613t bsnlc 17614s/["\\]/\\&/g; s/^/"/; s/$/"/p 17615d 17616:bsnlc 17617s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17618b cont 17619' <confdefs.h | sed ' 17620s/'"$ac_delim"'/"\\\ 17621"/g' >>$CONFIG_STATUS || ac_write_fail=1 17622 17623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17624 for (key in D) D_is_set[key] = 1 17625 FS = "" 17626} 17627/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17628 line = \$ 0 17629 split(line, arg, " ") 17630 if (arg[1] == "#") { 17631 defundef = arg[2] 17632 mac1 = arg[3] 17633 } else { 17634 defundef = substr(arg[1], 2) 17635 mac1 = arg[2] 17636 } 17637 split(mac1, mac2, "(") #) 17638 macro = mac2[1] 17639 prefix = substr(line, 1, index(line, defundef) - 1) 17640 if (D_is_set[macro]) { 17641 # Preserve the white space surrounding the "#". 17642 print prefix "define", macro P[macro] D[macro] 17643 next 17644 } else { 17645 # Replace #undef with comments. This is necessary, for example, 17646 # in the case of _POSIX_SOURCE, which is predefined and required 17647 # on some systems where configure will not decide to define it. 17648 if (defundef == "undef") { 17649 print "/*", prefix defundef, macro, "*/" 17650 next 17651 } 17652 } 17653} 17654{ print } 17655_ACAWK 17656_ACEOF 17657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17658 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17659fi # test -n "$CONFIG_HEADERS" 17660 17661 17662eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17663shift 17664for ac_tag 17665do 17666 case $ac_tag in 17667 :[FHLC]) ac_mode=$ac_tag; continue;; 17668 esac 17669 case $ac_mode$ac_tag in 17670 :[FHL]*:*);; 17671 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17672 :[FH]-) ac_tag=-:-;; 17673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17674 esac 17675 ac_save_IFS=$IFS 17676 IFS=: 17677 set x $ac_tag 17678 IFS=$ac_save_IFS 17679 shift 17680 ac_file=$1 17681 shift 17682 17683 case $ac_mode in 17684 :L) ac_source=$1;; 17685 :[FH]) 17686 ac_file_inputs= 17687 for ac_f 17688 do 17689 case $ac_f in 17690 -) ac_f="$ac_tmp/stdin";; 17691 *) # Look for the file first in the build tree, then in the source tree 17692 # (if the path is not absolute). The absolute path cannot be DOS-style, 17693 # because $ac_f cannot contain `:'. 17694 test -f "$ac_f" || 17695 case $ac_f in 17696 [\\/$]*) false;; 17697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17698 esac || 17699 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17700 esac 17701 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17702 as_fn_append ac_file_inputs " '$ac_f'" 17703 done 17704 17705 # Let's still pretend it is `configure' which instantiates (i.e., don't 17706 # use $as_me), people would be surprised to read: 17707 # /* config.h. Generated by config.status. */ 17708 configure_input='Generated from '` 17709 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17710 `' by configure.' 17711 if test x"$ac_file" != x-; then 17712 configure_input="$ac_file. $configure_input" 17713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17714$as_echo "$as_me: creating $ac_file" >&6;} 17715 fi 17716 # Neutralize special characters interpreted by sed in replacement strings. 17717 case $configure_input in #( 17718 *\&* | *\|* | *\\* ) 17719 ac_sed_conf_input=`$as_echo "$configure_input" | 17720 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17721 *) ac_sed_conf_input=$configure_input;; 17722 esac 17723 17724 case $ac_tag in 17725 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17727 esac 17728 ;; 17729 esac 17730 17731 ac_dir=`$as_dirname -- "$ac_file" || 17732$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17733 X"$ac_file" : 'X\(//\)[^/]' \| \ 17734 X"$ac_file" : 'X\(//\)$' \| \ 17735 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17736$as_echo X"$ac_file" | 17737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17738 s//\1/ 17739 q 17740 } 17741 /^X\(\/\/\)[^/].*/{ 17742 s//\1/ 17743 q 17744 } 17745 /^X\(\/\/\)$/{ 17746 s//\1/ 17747 q 17748 } 17749 /^X\(\/\).*/{ 17750 s//\1/ 17751 q 17752 } 17753 s/.*/./; q'` 17754 as_dir="$ac_dir"; as_fn_mkdir_p 17755 ac_builddir=. 17756 17757case "$ac_dir" in 17758.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17759*) 17760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17761 # A ".." for each directory in $ac_dir_suffix. 17762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17763 case $ac_top_builddir_sub in 17764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17766 esac ;; 17767esac 17768ac_abs_top_builddir=$ac_pwd 17769ac_abs_builddir=$ac_pwd$ac_dir_suffix 17770# for backward compatibility: 17771ac_top_builddir=$ac_top_build_prefix 17772 17773case $srcdir in 17774 .) # We are building in place. 17775 ac_srcdir=. 17776 ac_top_srcdir=$ac_top_builddir_sub 17777 ac_abs_top_srcdir=$ac_pwd ;; 17778 [\\/]* | ?:[\\/]* ) # Absolute name. 17779 ac_srcdir=$srcdir$ac_dir_suffix; 17780 ac_top_srcdir=$srcdir 17781 ac_abs_top_srcdir=$srcdir ;; 17782 *) # Relative name. 17783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17784 ac_top_srcdir=$ac_top_build_prefix$srcdir 17785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17786esac 17787ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17788 17789 17790 case $ac_mode in 17791 :F) 17792 # 17793 # CONFIG_FILE 17794 # 17795 17796 case $INSTALL in 17797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17799 esac 17800 ac_MKDIR_P=$MKDIR_P 17801 case $MKDIR_P in 17802 [\\/$]* | ?:[\\/]* ) ;; 17803 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17804 esac 17805_ACEOF 17806 17807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17808# If the template does not know about datarootdir, expand it. 17809# FIXME: This hack should be removed a few years after 2.60. 17810ac_datarootdir_hack=; ac_datarootdir_seen= 17811ac_sed_dataroot=' 17812/datarootdir/ { 17813 p 17814 q 17815} 17816/@datadir@/p 17817/@docdir@/p 17818/@infodir@/p 17819/@localedir@/p 17820/@mandir@/p' 17821case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17822*datarootdir*) ac_datarootdir_seen=yes;; 17823*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17825$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17826_ACEOF 17827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17828 ac_datarootdir_hack=' 17829 s&@datadir@&$datadir&g 17830 s&@docdir@&$docdir&g 17831 s&@infodir@&$infodir&g 17832 s&@localedir@&$localedir&g 17833 s&@mandir@&$mandir&g 17834 s&\\\${datarootdir}&$datarootdir&g' ;; 17835esac 17836_ACEOF 17837 17838# Neutralize VPATH when `$srcdir' = `.'. 17839# Shell code in configure.ac might set extrasub. 17840# FIXME: do we really want to maintain this feature? 17841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17842ac_sed_extra="$ac_vpsub 17843$extrasub 17844_ACEOF 17845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17846:t 17847/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17848s|@configure_input@|$ac_sed_conf_input|;t t 17849s&@top_builddir@&$ac_top_builddir_sub&;t t 17850s&@top_build_prefix@&$ac_top_build_prefix&;t t 17851s&@srcdir@&$ac_srcdir&;t t 17852s&@abs_srcdir@&$ac_abs_srcdir&;t t 17853s&@top_srcdir@&$ac_top_srcdir&;t t 17854s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17855s&@builddir@&$ac_builddir&;t t 17856s&@abs_builddir@&$ac_abs_builddir&;t t 17857s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17858s&@INSTALL@&$ac_INSTALL&;t t 17859s&@MKDIR_P@&$ac_MKDIR_P&;t t 17860$ac_datarootdir_hack 17861" 17862eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17863 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17864 17865test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17866 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17868 "$ac_tmp/out"`; test -z "$ac_out"; } && 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17870which seems to be undefined. Please make sure it is defined" >&5 17871$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17872which seems to be undefined. Please make sure it is defined" >&2;} 17873 17874 rm -f "$ac_tmp/stdin" 17875 case $ac_file in 17876 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17877 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17878 esac \ 17879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17880 ;; 17881 :H) 17882 # 17883 # CONFIG_HEADER 17884 # 17885 if test x"$ac_file" != x-; then 17886 { 17887 $as_echo "/* $configure_input */" \ 17888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17889 } >"$ac_tmp/config.h" \ 17890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17891 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17892 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17893$as_echo "$as_me: $ac_file is unchanged" >&6;} 17894 else 17895 rm -f "$ac_file" 17896 mv "$ac_tmp/config.h" "$ac_file" \ 17897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17898 fi 17899 else 17900 $as_echo "/* $configure_input */" \ 17901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17902 || as_fn_error $? "could not create -" "$LINENO" 5 17903 fi 17904# Compute "$ac_file"'s index in $config_headers. 17905_am_arg="$ac_file" 17906_am_stamp_count=1 17907for _am_header in $config_headers :; do 17908 case $_am_header in 17909 $_am_arg | $_am_arg:* ) 17910 break ;; 17911 * ) 17912 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17913 esac 17914done 17915echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17916$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17917 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17918 X"$_am_arg" : 'X\(//\)$' \| \ 17919 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17920$as_echo X"$_am_arg" | 17921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17922 s//\1/ 17923 q 17924 } 17925 /^X\(\/\/\)[^/].*/{ 17926 s//\1/ 17927 q 17928 } 17929 /^X\(\/\/\)$/{ 17930 s//\1/ 17931 q 17932 } 17933 /^X\(\/\).*/{ 17934 s//\1/ 17935 q 17936 } 17937 s/.*/./; q'`/stamp-h$_am_stamp_count 17938 ;; 17939 17940 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17941$as_echo "$as_me: executing $ac_file commands" >&6;} 17942 ;; 17943 esac 17944 17945 17946 case $ac_file$ac_mode in 17947 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17948 # Older Autoconf quotes --file arguments for eval, but not when files 17949 # are listed without --file. Let's play safe and only enable the eval 17950 # if we detect the quoting. 17951 case $CONFIG_FILES in 17952 *\'*) eval set x "$CONFIG_FILES" ;; 17953 *) set x $CONFIG_FILES ;; 17954 esac 17955 shift 17956 for mf 17957 do 17958 # Strip MF so we end up with the name of the file. 17959 mf=`echo "$mf" | sed -e 's/:.*$//'` 17960 # Check whether this is an Automake generated Makefile or not. 17961 # We used to match only the files named 'Makefile.in', but 17962 # some people rename them; so instead we look at the file content. 17963 # Grep'ing the first line is not enough: some people post-process 17964 # each Makefile.in and add a new line on top of each file to say so. 17965 # Grep'ing the whole file is not good either: AIX grep has a line 17966 # limit of 2048, but all sed's we know have understand at least 4000. 17967 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17968 dirpart=`$as_dirname -- "$mf" || 17969$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17970 X"$mf" : 'X\(//\)[^/]' \| \ 17971 X"$mf" : 'X\(//\)$' \| \ 17972 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17973$as_echo X"$mf" | 17974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17975 s//\1/ 17976 q 17977 } 17978 /^X\(\/\/\)[^/].*/{ 17979 s//\1/ 17980 q 17981 } 17982 /^X\(\/\/\)$/{ 17983 s//\1/ 17984 q 17985 } 17986 /^X\(\/\).*/{ 17987 s//\1/ 17988 q 17989 } 17990 s/.*/./; q'` 17991 else 17992 continue 17993 fi 17994 # Extract the definition of DEPDIR, am__include, and am__quote 17995 # from the Makefile without running 'make'. 17996 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17997 test -z "$DEPDIR" && continue 17998 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17999 test -z "$am__include" && continue 18000 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18001 # Find all dependency output files, they are included files with 18002 # $(DEPDIR) in their names. We invoke sed twice because it is the 18003 # simplest approach to changing $(DEPDIR) to its actual value in the 18004 # expansion. 18005 for file in `sed -n " 18006 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18007 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18008 # Make sure the directory exists. 18009 test -f "$dirpart/$file" && continue 18010 fdir=`$as_dirname -- "$file" || 18011$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18012 X"$file" : 'X\(//\)[^/]' \| \ 18013 X"$file" : 'X\(//\)$' \| \ 18014 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18015$as_echo X"$file" | 18016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18017 s//\1/ 18018 q 18019 } 18020 /^X\(\/\/\)[^/].*/{ 18021 s//\1/ 18022 q 18023 } 18024 /^X\(\/\/\)$/{ 18025 s//\1/ 18026 q 18027 } 18028 /^X\(\/\).*/{ 18029 s//\1/ 18030 q 18031 } 18032 s/.*/./; q'` 18033 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18034 # echo "creating $dirpart/$file" 18035 echo '# dummy' > "$dirpart/$file" 18036 done 18037 done 18038} 18039 ;; 18040 "libtool":C) 18041 18042 # See if we are running on zsh, and set the options that allow our 18043 # commands through without removal of \ escapes. 18044 if test -n "${ZSH_VERSION+set}"; then 18045 setopt NO_GLOB_SUBST 18046 fi 18047 18048 cfgfile=${ofile}T 18049 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18050 $RM "$cfgfile" 18051 18052 cat <<_LT_EOF >> "$cfgfile" 18053#! $SHELL 18054# Generated automatically by $as_me ($PACKAGE) $VERSION 18055# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18056# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18057 18058# Provide generalized library-building support services. 18059# Written by Gordon Matzigkeit, 1996 18060 18061# Copyright (C) 2014 Free Software Foundation, Inc. 18062# This is free software; see the source for copying conditions. There is NO 18063# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18064 18065# GNU Libtool is free software; you can redistribute it and/or modify 18066# it under the terms of the GNU General Public License as published by 18067# the Free Software Foundation; either version 2 of of the License, or 18068# (at your option) any later version. 18069# 18070# As a special exception to the GNU General Public License, if you 18071# distribute this file as part of a program or library that is built 18072# using GNU Libtool, you may include this file under the same 18073# distribution terms that you use for the rest of that program. 18074# 18075# GNU Libtool is distributed in the hope that it will be useful, but 18076# WITHOUT ANY WARRANTY; without even the implied warranty of 18077# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18078# GNU General Public License for more details. 18079# 18080# You should have received a copy of the GNU General Public License 18081# along with this program. If not, see <http://www.gnu.org/licenses/>. 18082 18083 18084# The names of the tagged configurations supported by this script. 18085available_tags='CXX ' 18086 18087# Configured defaults for sys_lib_dlsearch_path munging. 18088: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18089 18090# ### BEGIN LIBTOOL CONFIG 18091 18092# Which release of libtool.m4 was used? 18093macro_version=$macro_version 18094macro_revision=$macro_revision 18095 18096# Whether or not to build shared libraries. 18097build_libtool_libs=$enable_shared 18098 18099# Whether or not to build static libraries. 18100build_old_libs=$enable_static 18101 18102# What type of objects to build. 18103pic_mode=$pic_mode 18104 18105# Whether or not to optimize for fast installation. 18106fast_install=$enable_fast_install 18107 18108# Shared archive member basename,for filename based shared library versioning on AIX. 18109shared_archive_member_spec=$shared_archive_member_spec 18110 18111# Shell to use when invoking shell scripts. 18112SHELL=$lt_SHELL 18113 18114# An echo program that protects backslashes. 18115ECHO=$lt_ECHO 18116 18117# The PATH separator for the build system. 18118PATH_SEPARATOR=$lt_PATH_SEPARATOR 18119 18120# The host system. 18121host_alias=$host_alias 18122host=$host 18123host_os=$host_os 18124 18125# The build system. 18126build_alias=$build_alias 18127build=$build 18128build_os=$build_os 18129 18130# A sed program that does not truncate output. 18131SED=$lt_SED 18132 18133# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18134Xsed="\$SED -e 1s/^X//" 18135 18136# A grep program that handles long lines. 18137GREP=$lt_GREP 18138 18139# An ERE matcher. 18140EGREP=$lt_EGREP 18141 18142# A literal string matcher. 18143FGREP=$lt_FGREP 18144 18145# A BSD- or MS-compatible name lister. 18146NM=$lt_NM 18147 18148# Whether we need soft or hard links. 18149LN_S=$lt_LN_S 18150 18151# What is the maximum length of a command? 18152max_cmd_len=$max_cmd_len 18153 18154# Object file suffix (normally "o"). 18155objext=$ac_objext 18156 18157# Executable file suffix (normally ""). 18158exeext=$exeext 18159 18160# whether the shell understands "unset". 18161lt_unset=$lt_unset 18162 18163# turn spaces into newlines. 18164SP2NL=$lt_lt_SP2NL 18165 18166# turn newlines into spaces. 18167NL2SP=$lt_lt_NL2SP 18168 18169# convert \$build file names to \$host format. 18170to_host_file_cmd=$lt_cv_to_host_file_cmd 18171 18172# convert \$build files to toolchain format. 18173to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18174 18175# An object symbol dumper. 18176OBJDUMP=$lt_OBJDUMP 18177 18178# Method to check whether dependent libraries are shared objects. 18179deplibs_check_method=$lt_deplibs_check_method 18180 18181# Command to use when deplibs_check_method = "file_magic". 18182file_magic_cmd=$lt_file_magic_cmd 18183 18184# How to find potential files when deplibs_check_method = "file_magic". 18185file_magic_glob=$lt_file_magic_glob 18186 18187# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18188want_nocaseglob=$lt_want_nocaseglob 18189 18190# DLL creation program. 18191DLLTOOL=$lt_DLLTOOL 18192 18193# Command to associate shared and link libraries. 18194sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18195 18196# The archiver. 18197AR=$lt_AR 18198 18199# Flags to create an archive. 18200AR_FLAGS=$lt_AR_FLAGS 18201 18202# How to feed a file listing to the archiver. 18203archiver_list_spec=$lt_archiver_list_spec 18204 18205# A symbol stripping program. 18206STRIP=$lt_STRIP 18207 18208# Commands used to install an old-style archive. 18209RANLIB=$lt_RANLIB 18210old_postinstall_cmds=$lt_old_postinstall_cmds 18211old_postuninstall_cmds=$lt_old_postuninstall_cmds 18212 18213# Whether to use a lock for old archive extraction. 18214lock_old_archive_extraction=$lock_old_archive_extraction 18215 18216# A C compiler. 18217LTCC=$lt_CC 18218 18219# LTCC compiler flags. 18220LTCFLAGS=$lt_CFLAGS 18221 18222# Take the output of nm and produce a listing of raw symbols and C names. 18223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18224 18225# Transform the output of nm in a proper C declaration. 18226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18227 18228# Transform the output of nm into a list of symbols to manually relocate. 18229global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18230 18231# Transform the output of nm in a C name address pair. 18232global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18233 18234# Transform the output of nm in a C name address pair when lib prefix is needed. 18235global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18236 18237# The name lister interface. 18238nm_interface=$lt_lt_cv_nm_interface 18239 18240# Specify filename containing input files for \$NM. 18241nm_file_list_spec=$lt_nm_file_list_spec 18242 18243# The root where to search for dependent libraries,and where our libraries should be installed. 18244lt_sysroot=$lt_sysroot 18245 18246# Command to truncate a binary pipe. 18247lt_truncate_bin=$lt_lt_cv_truncate_bin 18248 18249# The name of the directory that contains temporary libtool files. 18250objdir=$objdir 18251 18252# Used to examine libraries when file_magic_cmd begins with "file". 18253MAGIC_CMD=$MAGIC_CMD 18254 18255# Must we lock files when doing compilation? 18256need_locks=$lt_need_locks 18257 18258# Manifest tool. 18259MANIFEST_TOOL=$lt_MANIFEST_TOOL 18260 18261# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18262DSYMUTIL=$lt_DSYMUTIL 18263 18264# Tool to change global to local symbols on Mac OS X. 18265NMEDIT=$lt_NMEDIT 18266 18267# Tool to manipulate fat objects and archives on Mac OS X. 18268LIPO=$lt_LIPO 18269 18270# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18271OTOOL=$lt_OTOOL 18272 18273# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18274OTOOL64=$lt_OTOOL64 18275 18276# Old archive suffix (normally "a"). 18277libext=$libext 18278 18279# Shared library suffix (normally ".so"). 18280shrext_cmds=$lt_shrext_cmds 18281 18282# The commands to extract the exported symbol list from a shared archive. 18283extract_expsyms_cmds=$lt_extract_expsyms_cmds 18284 18285# Variables whose values should be saved in libtool wrapper scripts and 18286# restored at link time. 18287variables_saved_for_relink=$lt_variables_saved_for_relink 18288 18289# Do we need the "lib" prefix for modules? 18290need_lib_prefix=$need_lib_prefix 18291 18292# Do we need a version for libraries? 18293need_version=$need_version 18294 18295# Library versioning type. 18296version_type=$version_type 18297 18298# Shared library runtime path variable. 18299runpath_var=$runpath_var 18300 18301# Shared library path variable. 18302shlibpath_var=$shlibpath_var 18303 18304# Is shlibpath searched before the hard-coded library search path? 18305shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18306 18307# Format of library name prefix. 18308libname_spec=$lt_libname_spec 18309 18310# List of archive names. First name is the real one, the rest are links. 18311# The last name is the one that the linker finds with -lNAME 18312library_names_spec=$lt_library_names_spec 18313 18314# The coded name of the library, if different from the real name. 18315soname_spec=$lt_soname_spec 18316 18317# Permission mode override for installation of shared libraries. 18318install_override_mode=$lt_install_override_mode 18319 18320# Command to use after installation of a shared archive. 18321postinstall_cmds=$lt_postinstall_cmds 18322 18323# Command to use after uninstallation of a shared archive. 18324postuninstall_cmds=$lt_postuninstall_cmds 18325 18326# Commands used to finish a libtool library installation in a directory. 18327finish_cmds=$lt_finish_cmds 18328 18329# As "finish_cmds", except a single script fragment to be evaled but 18330# not shown. 18331finish_eval=$lt_finish_eval 18332 18333# Whether we should hardcode library paths into libraries. 18334hardcode_into_libs=$hardcode_into_libs 18335 18336# Compile-time system search path for libraries. 18337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18338 18339# Detected run-time system search path for libraries. 18340sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18341 18342# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18343configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18344 18345# Whether dlopen is supported. 18346dlopen_support=$enable_dlopen 18347 18348# Whether dlopen of programs is supported. 18349dlopen_self=$enable_dlopen_self 18350 18351# Whether dlopen of statically linked programs is supported. 18352dlopen_self_static=$enable_dlopen_self_static 18353 18354# Commands to strip libraries. 18355old_striplib=$lt_old_striplib 18356striplib=$lt_striplib 18357 18358 18359# The linker used to build libraries. 18360LD=$lt_LD 18361 18362# How to create reloadable object files. 18363reload_flag=$lt_reload_flag 18364reload_cmds=$lt_reload_cmds 18365 18366# Commands used to build an old-style archive. 18367old_archive_cmds=$lt_old_archive_cmds 18368 18369# A language specific compiler. 18370CC=$lt_compiler 18371 18372# Is the compiler the GNU compiler? 18373with_gcc=$GCC 18374 18375# Compiler flag to turn off builtin functions. 18376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18377 18378# Additional compiler flags for building library objects. 18379pic_flag=$lt_lt_prog_compiler_pic 18380 18381# How to pass a linker flag through the compiler. 18382wl=$lt_lt_prog_compiler_wl 18383 18384# Compiler flag to prevent dynamic linking. 18385link_static_flag=$lt_lt_prog_compiler_static 18386 18387# Does compiler simultaneously support -c and -o options? 18388compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18389 18390# Whether or not to add -lc for building shared libraries. 18391build_libtool_need_lc=$archive_cmds_need_lc 18392 18393# Whether or not to disallow shared libs when runtime libs are static. 18394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18395 18396# Compiler flag to allow reflexive dlopens. 18397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18398 18399# Compiler flag to generate shared objects directly from archives. 18400whole_archive_flag_spec=$lt_whole_archive_flag_spec 18401 18402# Whether the compiler copes with passing no objects directly. 18403compiler_needs_object=$lt_compiler_needs_object 18404 18405# Create an old-style archive from a shared archive. 18406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18407 18408# Create a temporary old-style archive to link instead of a shared archive. 18409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18410 18411# Commands used to build a shared archive. 18412archive_cmds=$lt_archive_cmds 18413archive_expsym_cmds=$lt_archive_expsym_cmds 18414 18415# Commands used to build a loadable module if different from building 18416# a shared archive. 18417module_cmds=$lt_module_cmds 18418module_expsym_cmds=$lt_module_expsym_cmds 18419 18420# Whether we are building with GNU ld or not. 18421with_gnu_ld=$lt_with_gnu_ld 18422 18423# Flag that allows shared libraries with undefined symbols to be built. 18424allow_undefined_flag=$lt_allow_undefined_flag 18425 18426# Flag that enforces no undefined symbols. 18427no_undefined_flag=$lt_no_undefined_flag 18428 18429# Flag to hardcode \$libdir into a binary during linking. 18430# This must work even if \$libdir does not exist 18431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18432 18433# Whether we need a single "-rpath" flag with a separated argument. 18434hardcode_libdir_separator=$lt_hardcode_libdir_separator 18435 18436# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18437# DIR into the resulting binary. 18438hardcode_direct=$hardcode_direct 18439 18440# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18441# DIR into the resulting binary and the resulting library dependency is 18442# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18443# library is relocated. 18444hardcode_direct_absolute=$hardcode_direct_absolute 18445 18446# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18447# into the resulting binary. 18448hardcode_minus_L=$hardcode_minus_L 18449 18450# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18451# into the resulting binary. 18452hardcode_shlibpath_var=$hardcode_shlibpath_var 18453 18454# Set to "yes" if building a shared library automatically hardcodes DIR 18455# into the library and all subsequent libraries and executables linked 18456# against it. 18457hardcode_automatic=$hardcode_automatic 18458 18459# Set to yes if linker adds runtime paths of dependent libraries 18460# to runtime path list. 18461inherit_rpath=$inherit_rpath 18462 18463# Whether libtool must link a program against all its dependency libraries. 18464link_all_deplibs=$link_all_deplibs 18465 18466# Set to "yes" if exported symbols are required. 18467always_export_symbols=$always_export_symbols 18468 18469# The commands to list exported symbols. 18470export_symbols_cmds=$lt_export_symbols_cmds 18471 18472# Symbols that should not be listed in the preloaded symbols. 18473exclude_expsyms=$lt_exclude_expsyms 18474 18475# Symbols that must always be exported. 18476include_expsyms=$lt_include_expsyms 18477 18478# Commands necessary for linking programs (against libraries) with templates. 18479prelink_cmds=$lt_prelink_cmds 18480 18481# Commands necessary for finishing linking programs. 18482postlink_cmds=$lt_postlink_cmds 18483 18484# Specify filename containing input files. 18485file_list_spec=$lt_file_list_spec 18486 18487# How to hardcode a shared library path into an executable. 18488hardcode_action=$hardcode_action 18489 18490# The directories searched by this compiler when creating a shared library. 18491compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18492 18493# Dependencies to place before and after the objects being linked to 18494# create a shared library. 18495predep_objects=$lt_predep_objects 18496postdep_objects=$lt_postdep_objects 18497predeps=$lt_predeps 18498postdeps=$lt_postdeps 18499 18500# The library search path used internally by the compiler when linking 18501# a shared library. 18502compiler_lib_search_path=$lt_compiler_lib_search_path 18503 18504# ### END LIBTOOL CONFIG 18505 18506_LT_EOF 18507 18508 cat <<'_LT_EOF' >> "$cfgfile" 18509 18510# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18511 18512# func_munge_path_list VARIABLE PATH 18513# ----------------------------------- 18514# VARIABLE is name of variable containing _space_ separated list of 18515# directories to be munged by the contents of PATH, which is string 18516# having a format: 18517# "DIR[:DIR]:" 18518# string "DIR[ DIR]" will be prepended to VARIABLE 18519# ":DIR[:DIR]" 18520# string "DIR[ DIR]" will be appended to VARIABLE 18521# "DIRP[:DIRP]::[DIRA:]DIRA" 18522# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18523# "DIRA[ DIRA]" will be appended to VARIABLE 18524# "DIR[:DIR]" 18525# VARIABLE will be replaced by "DIR[ DIR]" 18526func_munge_path_list () 18527{ 18528 case x$2 in 18529 x) 18530 ;; 18531 *:) 18532 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18533 ;; 18534 x:*) 18535 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18536 ;; 18537 *::*) 18538 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18539 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18540 ;; 18541 *) 18542 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18543 ;; 18544 esac 18545} 18546 18547 18548# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18549func_cc_basename () 18550{ 18551 for cc_temp in $*""; do 18552 case $cc_temp in 18553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18555 \-*) ;; 18556 *) break;; 18557 esac 18558 done 18559 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18560} 18561 18562 18563# ### END FUNCTIONS SHARED WITH CONFIGURE 18564 18565_LT_EOF 18566 18567 case $host_os in 18568 aix3*) 18569 cat <<\_LT_EOF >> "$cfgfile" 18570# AIX sometimes has problems with the GCC collect2 program. For some 18571# reason, if we set the COLLECT_NAMES environment variable, the problems 18572# vanish in a puff of smoke. 18573if test set != "${COLLECT_NAMES+set}"; then 18574 COLLECT_NAMES= 18575 export COLLECT_NAMES 18576fi 18577_LT_EOF 18578 ;; 18579 esac 18580 18581 18582ltmain=$ac_aux_dir/ltmain.sh 18583 18584 18585 # We use sed instead of cat because bash on DJGPP gets confused if 18586 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18587 # text mode, it properly converts lines to CR/LF. This bash problem 18588 # is reportedly fixed, but why not run on old versions too? 18589 sed '$q' "$ltmain" >> "$cfgfile" \ 18590 || (rm -f "$cfgfile"; exit 1) 18591 18592 mv -f "$cfgfile" "$ofile" || 18593 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18594 chmod +x "$ofile" 18595 18596 18597 cat <<_LT_EOF >> "$ofile" 18598 18599# ### BEGIN LIBTOOL TAG CONFIG: CXX 18600 18601# The linker used to build libraries. 18602LD=$lt_LD_CXX 18603 18604# How to create reloadable object files. 18605reload_flag=$lt_reload_flag_CXX 18606reload_cmds=$lt_reload_cmds_CXX 18607 18608# Commands used to build an old-style archive. 18609old_archive_cmds=$lt_old_archive_cmds_CXX 18610 18611# A language specific compiler. 18612CC=$lt_compiler_CXX 18613 18614# Is the compiler the GNU compiler? 18615with_gcc=$GCC_CXX 18616 18617# Compiler flag to turn off builtin functions. 18618no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18619 18620# Additional compiler flags for building library objects. 18621pic_flag=$lt_lt_prog_compiler_pic_CXX 18622 18623# How to pass a linker flag through the compiler. 18624wl=$lt_lt_prog_compiler_wl_CXX 18625 18626# Compiler flag to prevent dynamic linking. 18627link_static_flag=$lt_lt_prog_compiler_static_CXX 18628 18629# Does compiler simultaneously support -c and -o options? 18630compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18631 18632# Whether or not to add -lc for building shared libraries. 18633build_libtool_need_lc=$archive_cmds_need_lc_CXX 18634 18635# Whether or not to disallow shared libs when runtime libs are static. 18636allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18637 18638# Compiler flag to allow reflexive dlopens. 18639export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18640 18641# Compiler flag to generate shared objects directly from archives. 18642whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18643 18644# Whether the compiler copes with passing no objects directly. 18645compiler_needs_object=$lt_compiler_needs_object_CXX 18646 18647# Create an old-style archive from a shared archive. 18648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18649 18650# Create a temporary old-style archive to link instead of a shared archive. 18651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18652 18653# Commands used to build a shared archive. 18654archive_cmds=$lt_archive_cmds_CXX 18655archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18656 18657# Commands used to build a loadable module if different from building 18658# a shared archive. 18659module_cmds=$lt_module_cmds_CXX 18660module_expsym_cmds=$lt_module_expsym_cmds_CXX 18661 18662# Whether we are building with GNU ld or not. 18663with_gnu_ld=$lt_with_gnu_ld_CXX 18664 18665# Flag that allows shared libraries with undefined symbols to be built. 18666allow_undefined_flag=$lt_allow_undefined_flag_CXX 18667 18668# Flag that enforces no undefined symbols. 18669no_undefined_flag=$lt_no_undefined_flag_CXX 18670 18671# Flag to hardcode \$libdir into a binary during linking. 18672# This must work even if \$libdir does not exist 18673hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18674 18675# Whether we need a single "-rpath" flag with a separated argument. 18676hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18677 18678# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18679# DIR into the resulting binary. 18680hardcode_direct=$hardcode_direct_CXX 18681 18682# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18683# DIR into the resulting binary and the resulting library dependency is 18684# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18685# library is relocated. 18686hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18687 18688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18689# into the resulting binary. 18690hardcode_minus_L=$hardcode_minus_L_CXX 18691 18692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18693# into the resulting binary. 18694hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18695 18696# Set to "yes" if building a shared library automatically hardcodes DIR 18697# into the library and all subsequent libraries and executables linked 18698# against it. 18699hardcode_automatic=$hardcode_automatic_CXX 18700 18701# Set to yes if linker adds runtime paths of dependent libraries 18702# to runtime path list. 18703inherit_rpath=$inherit_rpath_CXX 18704 18705# Whether libtool must link a program against all its dependency libraries. 18706link_all_deplibs=$link_all_deplibs_CXX 18707 18708# Set to "yes" if exported symbols are required. 18709always_export_symbols=$always_export_symbols_CXX 18710 18711# The commands to list exported symbols. 18712export_symbols_cmds=$lt_export_symbols_cmds_CXX 18713 18714# Symbols that should not be listed in the preloaded symbols. 18715exclude_expsyms=$lt_exclude_expsyms_CXX 18716 18717# Symbols that must always be exported. 18718include_expsyms=$lt_include_expsyms_CXX 18719 18720# Commands necessary for linking programs (against libraries) with templates. 18721prelink_cmds=$lt_prelink_cmds_CXX 18722 18723# Commands necessary for finishing linking programs. 18724postlink_cmds=$lt_postlink_cmds_CXX 18725 18726# Specify filename containing input files. 18727file_list_spec=$lt_file_list_spec_CXX 18728 18729# How to hardcode a shared library path into an executable. 18730hardcode_action=$hardcode_action_CXX 18731 18732# The directories searched by this compiler when creating a shared library. 18733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18734 18735# Dependencies to place before and after the objects being linked to 18736# create a shared library. 18737predep_objects=$lt_predep_objects_CXX 18738postdep_objects=$lt_postdep_objects_CXX 18739predeps=$lt_predeps_CXX 18740postdeps=$lt_postdeps_CXX 18741 18742# The library search path used internally by the compiler when linking 18743# a shared library. 18744compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18745 18746# ### END LIBTOOL TAG CONFIG: CXX 18747_LT_EOF 18748 18749 ;; 18750 18751 esac 18752done # for ac_tag 18753 18754 18755as_fn_exit 0 18756_ACEOF 18757ac_clean_files=$ac_clean_files_save 18758 18759test $ac_write_fail = 0 || 18760 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18761 18762 18763# configure is writing to config.log, and then calls config.status. 18764# config.status does its own redirection, appending to config.log. 18765# Unfortunately, on DOS this fails, as config.log is still kept open 18766# by configure, so config.status won't be able to write to it; its 18767# output is simply discarded. So we exec the FD to /dev/null, 18768# effectively closing config.log, so it can be properly (re)opened and 18769# appended to by config.status. When coming back to configure, we 18770# need to make the FD available again. 18771if test "$no_create" != yes; then 18772 ac_cs_success=: 18773 ac_config_status_args= 18774 test "$silent" = yes && 18775 ac_config_status_args="$ac_config_status_args --quiet" 18776 exec 5>/dev/null 18777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18778 exec 5>>config.log 18779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18780 # would make configure fail if this is the last instruction. 18781 $ac_cs_success || as_fn_exit 1 18782fi 18783if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18785$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18786fi 18787 18788 18789